1 2010-03-28 Bruno Haible <bruno@clisp.org>
3 ansi-c++-opt: Allow turning off the C++ build by default.
4 * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5 gl_CXX_CHOICE_DEFAULT_NO is defined.
6 Requested by Eric Blake.
8 2010-03-28 Bruno Haible <bruno@clisp.org>
10 unistd: Avoid #define replacements in C++ mode.
11 * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12 getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13 setsockopt, shutdown, select): In C++, attach a warning to the function
14 if possible, rather than #defining the symbol to a dysfunctional alias.
15 Reported by John W. Eaton <jwe@gnu.org>.
17 2010-03-28 Bruno Haible <bruno@clisp.org>
19 Fix link errors on mingw.
20 * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21 * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
23 * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26 2010-03-28 Bruno Haible <bruno@clisp.org>
27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29 lib-ignore: Determine different options for different compilers.
30 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31 depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33 (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34 * NEWS: Mention the change.
36 2010-03-27 Bruno Haible <bruno@clisp.org>
38 Remove unused GNULIB_XYZ macro definitions.
39 * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
40 * modules/fseek (configure.ac): Likewise.
41 * modules/ioctl (configure.ac): Likewise.
42 * modules/open (configure.ac): Likewise.
43 * modules/stdlib-safer (configure.ac): Likewise.
45 2010-03-27 Bruno Haible <bruno@clisp.org>
47 Add a remark about certain modules.
48 * modules/malloc (Comment): New section.
49 * modules/realloc (Comment): Likewise.
50 * modules/sigpipe (Comment): Likewise.
52 2010-03-27 Bruno Haible <bruno@clisp.org>
54 Resolve conflict between the two kinds of module indicators.
55 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
56 GNULIB_TEST_XYZ instead of GNULIB_XYZ.
57 * modules/canonicalize (configure.ac): Invoke
58 gl_MODULE_INDICATOR_FOR_TESTS.
59 * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
61 * tests/test-dirent-c++.cc: Likewise.
62 * tests/test-dirent-safer.c: Likewise.
63 * tests/test-dup2.c: Likewise.
64 * tests/test-fchdir.c: Likewise.
65 * tests/test-fcntl-h-c++.cc: Likewise.
66 * tests/test-getopt.c: Likewise.
67 * tests/test-getopt.h: Likewise.
68 * tests/test-langinfo-c++.cc: Likewise.
69 * tests/test-locale-c++.cc: Likewise.
70 * tests/test-math-c++.cc: Likewise.
71 * tests/test-pty-c++.cc: Likewise.
72 * tests/test-search-c++.cc: Likewise.
73 * tests/test-signal-c++.cc: Likewise.
74 * tests/test-spawn-c++.cc: Likewise.
75 * tests/test-stdio-c++.cc: Likewise.
76 * tests/test-stdlib-c++.cc: Likewise.
77 * tests/test-string-c++.cc: Likewise.
78 * tests/test-sys_ioctl-c++.cc: Likewise.
79 * tests/test-sys_select-c++.cc: Likewise.
80 * tests/test-sys_socket-c++.cc: Likewise.
81 * tests/test-sys_stat-c++.cc: Likewise.
82 * tests/test-sys_time-c++.cc: Likewise.
83 * tests/test-time-c++.cc: Likewise.
84 * tests/test-unistd-c++.cc: Likewise.
85 * tests/test-wchar-c++.cc: Likewise.
86 * tests/uninorm/test-u8-nfc.c: Likewise.
87 * tests/uninorm/test-u8-nfd.c: Likewise.
88 * tests/uninorm/test-u8-nfkc.c: Likewise.
89 * tests/uninorm/test-u8-nfkd.c: Likewise.
90 * tests/uninorm/test-u16-nfc.c: Likewise.
91 * tests/uninorm/test-u16-nfd.c: Likewise.
92 * tests/uninorm/test-u16-nfkc.c: Likewise.
93 * tests/uninorm/test-u16-nfkd.c: Likewise.
94 * tests/uninorm/test-u32-nfc.c: Likewise.
95 * tests/uninorm/test-u32-nfc-big.c: Likewise.
96 * tests/uninorm/test-u32-nfd.c: Likewise.
97 * tests/uninorm/test-u32-nfd-big.c: Likewise.
98 * tests/uninorm/test-u32-nfkc.c: Likewise.
99 * tests/uninorm/test-u32-nfkc-big.c: Likewise.
100 * tests/uninorm/test-u32-nfkd.c: Likewise.
101 * tests/uninorm/test-u32-nfkd-big.c: Likewise.
102 * tests/uninorm/test-u32-normalize-big.c: Likewise.
104 2010-03-27 Bruno Haible <bruno@clisp.org>
106 Distinguish two kinds of module indicators.
107 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
109 (gl_MODULE_INDICATOR): New macro.
110 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
111 gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
112 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
113 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
114 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
115 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
116 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
117 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
118 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
119 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
120 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
121 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
122 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
123 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
124 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
125 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
126 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
127 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
128 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
129 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
130 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
131 * modules/cloexec (configure.ac): Likewise.
132 * modules/getopt-gnu (configure.ac): Likewise.
133 * modules/uninorm/u8-normalize (configure.ac): Likewise.
134 * modules/uninorm/u16-normalize (configure.ac): Likewise.
135 * modules/uninorm/u32-normalize (configure.ac): Likewise.
136 * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
138 2010-03-27 Bruno Haible <bruno@clisp.org>
140 New module description field 'Comment'.
141 * gnulib-tool: New option --extract-comment.
142 (func_usage): Document it.
143 (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
144 (func_get_comment): New function.
145 * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
147 2010-03-27 Bruno Haible <bruno@clisp.org>
149 Addendum to 2010-02-07 commit.
150 * gnulib-tool (func_usage): Document --extract-applicability option.
152 2010-03-27 Bruno Haible <bruno@clisp.org>
154 Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
155 * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
156 GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
157 rather than link errors.
159 2010-03-27 Bruno Haible <bruno@clisp.org>
161 Avoid side effects from tests-related modules on the compilation of lib.
162 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
163 (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
164 * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
165 parameter. Emit into AM_CPPFLAGS a definition of the designated C
167 (func_import): Define a witness macro. Assign it a value that depends
168 on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
169 tests-related modules.
170 (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
171 Reported by Jim Meyering.
173 2010-03-27 Bruno Haible <bruno@clisp.org>
175 Factorize common .m4 code.
176 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
177 * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
178 * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
179 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
180 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
181 * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
182 * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
183 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
184 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
185 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
186 * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
187 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
188 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
189 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
190 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
191 * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
192 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
193 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
194 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
195 * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
196 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
197 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
198 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
199 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
200 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
201 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
202 * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
203 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
204 * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
205 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
206 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
207 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
209 2010-03-27 Bruno Haible <bruno@clisp.org>
211 Fix a compilation error on Cygwin with g++ >= 4.3.
212 * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
213 if it is undefined or if we alias it to chmod.
214 (lstat): Don't warn about the use of this function if it is undefined
215 or if we alias it to stat.
216 Reported by Simon Josefsson.
218 2010-03-27 Bruno Haible <bruno@clisp.org>
220 * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
221 * modules/getlogin (configure.ac): Update.
223 * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
224 * modules/getlogin_r (configure.ac): Update.
226 * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
227 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
228 * modules/inet_ntop (configure.ac): Update.
230 * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
231 * modules/inet_pton (configure.ac): Update.
233 * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
234 * modules/mbslen (configure.ac): Update.
236 * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
237 (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
238 * modules/forkpty (configure.ac): Update.
239 * modules/openpty (configure.ac): Update.
241 2010-03-26 Simon Josefsson <simon@josefsson.org>
243 * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
244 no *.texi files. Reported by Eric Blake <eblake@redhat.com>.
246 2010-03-25 Eric Blake <eblake@redhat.com>
248 maint: use pragma consistently across replacement headers
249 * lib/ctype.in.h (system_header): Hoist for consistent placement.
250 * lib/dirent.in.h (system_header): Likewise.
251 * lib/errno.in.h (system_header): Likewise.
252 * lib/float.in.h (system_header): Likewise.
253 * lib/getopt.in.h (system_header): Likewise.
254 * lib/iconv.in.h (system_header): Likewise.
255 * lib/inttypes.in.h (system_header): Likewise.
256 * lib/langinfo.in.h (system_header): Likewise.
257 * lib/locale.in.h (system_header): Likewise.
258 * lib/math.in.h (system_header): Likewise.
259 * lib/netdb.in.h (system_header): Likewise.
260 * lib/netinet_in.in.h (system_header): Likewise.
261 * lib/pty.in.h (system_header): Likewise.
262 * lib/sched.in.h (system_header): Likewise.
263 * lib/se-selinux.in.h (system_header): Likewise.
264 * lib/search.in.h (system_header): Likewise.
265 * lib/spawn.in.h (system_header): Likewise.
266 * lib/stdarg.in.h (system_header): Likewise.
267 * lib/stdint.in.h (system_header): Likewise.
268 * lib/string.in.h (system_header): Likewise.
269 * lib/strings.in.h (system_header): Likewise.
270 * lib/sys_file.in.h (system_header): Likewise.
271 * lib/sys_ioctl.in.h (system_header): Likewise.
272 * lib/sys_socket.in.h (system_header): Likewise.
273 * lib/sys_times.in.h (system_header): Likewise.
274 * lib/sys_utsname.in.h (system_header): Likewise.
275 * lib/sys_wait.in.h (system_header): Likewise.
276 * lib/sysexits.in.h (system_header): Likewise.
277 * lib/unistd.in.h (system_header): Likewise.
278 * lib/wctype.in.h (system_header): Likewise.
280 arpa/inet: fix mingw compilation warning
281 * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
282 Reported by Matthew Bolte.
284 2010-03-25 Bruno Haible <bruno@clisp.org>
286 Avoid collision between gnulib wrapper and libintl wrapper.
287 * lib/printf.c (printf): Don't define if a printf wrapper is already
288 defined in intl/printf.c.
289 Reported by Michel Boaventura <michel@michelboaventura.com>.
291 2010-03-25 Bruno Haible <bruno@clisp.org>
294 * lib/readutmp.h (getutent): Provide ANSI C prototype.
296 2010-03-25 Bruno Haible <bruno@clisp.org>
298 Minor formatting changes.
299 * lib/acosl.c: Insert space before function argument list.
300 * lib/argz.c: Likewise.
301 * lib/asinl.c: Likewise.
302 * lib/expl.c: Likewise.
303 * lib/gen-uni-tables.c: Likewise.
304 * lib/gettext.h: Likewise.
305 * lib/glthread/lock.h: Likewise.
306 * lib/tanl.c: Likewise.
307 * lib/uniname/uniname.c: Likewise.
308 * tests/test-idpriv-drop.c: Likewise.
309 * tests/test-idpriv-droptemp.c: Likewise.
310 * tests/test-lock.c: Likewise.
311 * tests/test-tls.c: Likewise.
312 * lib/argp-help.c: Insert space before function-like macro argument
314 * lib/memcmp.c: Likewise.
315 * tests/test-base64.c: Likewise.
316 * lib/localename.c: Insert space before sizeof's argument list.
317 * lib/safe-alloc.h: Likewise.
318 * lib/file-set.h: Insert space before macro argument list.
319 * tests/test-argp.c: Likewise.
320 * lib/argp-namefrob.h: Insert space before function parameter list.
321 * lib/getaddrinfo.c: Likewise.
322 * lib/netdb.in.h: Likewise.
323 * lib/parse-duration.h: Likewise.
324 * lib/parse-duration.c: Likewise.
325 * lib/poll.c: Likewise.
326 * lib/select.c: Likewise.
327 * lib/trim.h: Likewise.
328 * tests/test-usleep.c: Likewise.
329 * lib/ldexpl.c: Insert space before function parameter list and before
330 function argument list.
331 * lib/logl.c: Likewise.
332 * lib/sqrtl.c: Likewise.
333 * lib/trim.c: Likewise.
334 * lib/cosl.c: Use GNU style indentation. Insert space before function
336 * lib/sinl.c: Likewise.
337 * lib/tsearch.c: Insert space after 'for'.
338 Reported by Jim Meyering.
340 2010-03-23 Pádraig Brady <P@draigBrady.com> (tiny change)
342 * maint.mk (sc_Wundef_boolean): Check for the presence of the
343 config header before grepping, as it's not present before
344 autoreconf/configure are run. Reported by Simon Josefsson.
346 2010-03-23 Bruno Haible <bruno@clisp.org>
348 pt_chown: Make it work with automake < 1.11.
349 * modules/pt_chown (Makefile.am): Define pkglibexecdir.
350 Reported by Simon Josefsson.
352 2010-03-23 Bruno Haible <bruno@clisp.org>
354 pt_chown: Don't depend on GPLed modules.
355 * lib/pt_chown.c: Don't include idpriv.h.
356 (main): Don't drop privileges.
357 * modules/pt_chown (Depends-on): Remove idpriv-drop.
358 Reported by Simon Josefsson.
360 2010-03-24 Simon Josefsson <simon@josefsson.org>
362 * top/maint.mk (sc_texinfo_acronym): Add rule, based on
363 suggestions from karl@freefriends.org (Karl Berry).
365 2010-03-22 Eric Blake <eblake@redhat.com>
367 gethostname: further tweaks
368 * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
369 are overriding gethostname.
370 Suggested by Bruno Haible.
372 2010-03-21 Bruno Haible <bruno@clisp.org>
375 * lib/forkpty.c (rpl_forkpty): Fix comment.
376 * lib/openpty.c (rpl_openpty): Likewise.
377 Reported by Eric Blake.
379 2010-03-22 Eric Blake <eblake@redhat.com>
381 gethostname: fix build on mingw
382 * lib/unistd.in.h (includes): Work around fact that mingw
383 <winsock2.h> re-includes <unistd.h>, by avoiding any
384 redeclarations if we are being included by <winsock2.h>.
385 Reported by Matthias Bolte.
387 2010-03-21 Bruno Haible <bruno@clisp.org>
389 forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
390 * lib/forkpty.c (forkpty): New replacement function, from glibc with
392 * lib/pty.in.h (forkpty): Update declaration. Add comments.
393 * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
394 provide the replacement.
395 * modules/forkpty (Depends-on): Add openpty, login_tty.
396 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
397 * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
398 * doc/glibc-functions/forkpty.texi: More supported platforms.
399 * config/srclist.txt: Add forkpty.c (commented).
401 2010-03-21 Bruno Haible <bruno@clisp.org>
403 * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
404 (Makefile.am): Verify that PTY_LIB is defined.
406 * modules/openpty-tests: Use the common TEMPLATE-TESTS.
408 2010-03-21 Bruno Haible <bruno@clisp.org>
410 Tests for module 'login_tty'.
411 * modules/login_tty-tests: New file.
412 * tests/test-login_tty.c: New file.
414 New module 'login_tty'.
415 * lib/login_tty.c: New file.
416 * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
417 * modules/login_tty: New file.
418 * doc/glibc-functions/login_tty.texi: Mention the new module.
420 2010-03-21 Bruno Haible <bruno@clisp.org>
422 login_tty: Documentation.
423 * doc/glibc-functions/login_tty.texi: New file.
424 * doc/gnulib.texi (Glibc <utmp.h>): Include it.
426 2010-03-21 Bruno Haible <bruno@clisp.org>
428 pty: Consistent macro naming.
429 * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
430 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
431 * modules/pty (configure.ac): Update.
433 2010-03-21 Bruno Haible <bruno@clisp.org>
435 Tests for openpty: Make stricter.
436 * tests/test-openpty.c (main): Add test of canonical processing and
438 * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
440 openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
441 * lib/openpty.c (openpty): New replacement function.
442 * lib/pty.in.h: Include <termios.h>.
443 (openpty): Update declaration. Add comments.
444 * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
445 is not declared, arrange to provide the replacement. Check for _getpty
447 * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
448 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
449 * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
450 * modules/pty-tests (test_pty_c___LDADD): New variable.
451 * doc/glibc-functions/openpty.texi: More supported platforms.
453 2010-03-21 Bruno Haible <bruno@clisp.org>
456 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
458 * doc/posix-functions/setenv.texi: Update platforms list.
460 2010-03-21 Bruno Haible <bruno@clisp.org>
462 New module 'unlockpt'.
463 * lib/unlockpt.c: New file, from glibc with modifications.
464 * m4/unlockpt.m4: New file.
465 * modules/unlockpt: New file.
466 * lib/stdlib.in.h (unlockpt): New declaration.
467 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
468 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
469 * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
471 * doc/posix-functions/unlockpt.texi: Mention the new module.
472 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
473 * config/srclist.txt: Add unlockpt.c (commented).
475 2010-03-21 Jim Meyering <meyering@redhat.com>
477 maint.mk: prohibit inclusion of "intprops.h" without use
478 * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
480 2010-03-21 Bruno Haible <bruno@clisp.org>
482 New module 'grantpt'.
483 * lib/grantpt.c: New file, from glibc with modifications.
484 * m4/grantpt.m4: New file.
485 * modules/grantpt: New file.
486 * lib/stdlib.in.h (grantpt): New declaration.
487 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
488 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
489 * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
491 * doc/posix-functions/grantpt.texi: Mention the new module.
492 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
493 * config/srclist.txt: Add grantpt.c (commented).
495 2010-03-21 Bruno Haible <bruno@clisp.org>
497 New module 'pt_chown'.
498 * lib/pt_chown.c: New file, from glibc with modifications.
499 * lib/pty-private.h: New file, from glibc with modifications.
500 * modules/pt_chown: New file.
501 * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
503 2010-03-21 Bruno Haible <bruno@clisp.org>
505 Tests for module 'ptsname'.
506 * modules/ptsname-tests: New file.
507 * tests/test-ptsname.c: New file.
509 New module 'ptsname'.
510 * lib/ptsname.c: New file, from glibc with modifications.
511 * m4/ptsname.m4: New file.
512 * modules/ptsname: New file.
513 * lib/stdlib.in.h (ptsname): New declaration.
514 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
515 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
516 * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
518 * doc/posix-functions/ptsname.texi: Mention the new module.
519 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
520 * config/srclist.txt: Add ptsname.c (commented).
522 2010-03-21 Bruno Haible <bruno@clisp.org>
524 Tests for module 'ttyname_r'.
525 * modules/ttyname_r-tests: New file.
526 * tests/test-ttyname_r.c: New file.
528 New module 'ttyname_r'.
529 * lib/ttyname_r.c: New file.
530 * m4/ttyname_r.m4: New file.
531 * modules/ttyname_r: New file.
532 * lib/unistd.in.h (ttyname_r): New declaration.
533 * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
534 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
535 * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
537 * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
538 * doc/posix-functions/ttyname_r.texi: Mention the new module.
540 2010-03-20 Bruno Haible <bruno@clisp.org>
542 signal: Undefine macro definitions in C++ mode.
543 * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
544 sigfillset): Undefine macro definitions from the system header in C++
546 Reported by John W. Eaton <jwe@gnu.org>.
548 2010-03-20 Bruno Haible <bruno@clisp.org>
550 Ensure no #include statements inside extern "C" { ... }.
551 * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
552 contain #include statements.
553 * lib/time.in.h: Likewise.
555 2010-03-20 Bruno Haible <bruno@clisp.org>
557 Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
558 * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
559 (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
560 Reported by John W. Eaton <jwe@gnu.org>.
562 2010-03-20 Bruno Haible <bruno@clisp.org>
564 * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
565 Reported by Jim Meyering.
567 2010-03-20 Bruno Haible <bruno@clisp.org>
569 pipe: Set errno upon failure.
570 * lib/pipe.h: Specify that when -1 is returned, errno is set.
571 * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
572 errno value in error message.
574 2010-03-20 Bruno Haible <bruno@clisp.org>
575 Jim Meyering <meyering@redhat.com>
577 lchown: Avoid "unused variable" warning.
578 * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
580 2010-03-20 Bruno Haible <bruno@clisp.org>
582 Work around unlink() bug on MacOS X 10.5.6.
583 * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
584 attempting to unlink a parent directory.
585 * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
586 MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
587 activate for the replacement function.
588 * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
590 2010-03-20 Bruno Haible <bruno@clisp.org>
592 Fix link errors on Solaris 8.
593 * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
594 * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
596 2010-03-19 Jim Meyering <meyering@redhat.com>
598 regcomp.c: make non-_LIBC implementation of build_range_exp consistent
599 The _LIBC implementation of build_range_exp correctly honors the
600 RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
601 However, the non-_LIBC implementation would ignore that syntax-bit
602 flag and return REG_ERANGE unconditionally.
603 This change makes it honor that flag.
604 * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
605 Make two pointer parameters "const".
606 Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
607 (parse_bracket_exp): Update caller.
609 regex.m4: correct the reversed range endpoint ([b-a]) test
610 * m4/regex.m4: When requiring that [b-a] evoke failure,
611 use RE_NO_EMPTY_RANGES. This makes this entire configure-time
612 test pass once again for x86-based systems.
614 2010-03-19 Bruno Haible <bruno@clisp.org>
616 scandir: Fix link error on Solaris 8.
617 * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
620 2010-03-19 Bruno Haible <bruno@clisp.org>
622 getusershell: Fix documentation.
623 * doc/glibc-functions/endusershell.texi: Refer to the getusershell
625 * doc/glibc-functions/setusershell.texi: Likewise.
627 getusershell: Provide declaration, missing on Solaris 9.
628 * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
629 also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
630 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
631 check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
632 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
633 HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
634 * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
636 * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
638 2010-03-19 Bruno Haible <bruno@clisp.org>
640 wctype: Provide iswblank function.
641 * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
643 * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
644 * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
645 * tests/test-wctype.c (main): Re-enable the iswblank tests.
646 * doc/posix-functions/iswblank.texi: Update.
648 2010-03-19 Bruno Haible <bruno@clisp.org>
650 Tests of module 'pty' in C++ mode.
651 * modules/pty-tests: New file.
652 * tests/test-pty-c++.cc: New file.
653 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
655 2010-03-19 Eric Blake <eblake@redhat.com>
657 logb: fix documentation
658 * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
661 forkpty, openpty: prefer glibc's const-safe prototype
662 * lib/forkpty.c (rpl_forkpty): New file.
663 * lib/openpty.c (rpl_openpty): Likewise.
664 * modules/forkpty (Files): Distribute it.
665 * modules/openpty (Files): Likewise.
666 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses. Move decl
668 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here. Request
669 replacement for for non-const BSD signature.
670 * modules/pty (Makefile.am): Substitute witnesses.
671 * lib/pty.in.h (forkpty, openpty): Declare replacements.
672 * tests/test-forkpty.c: Update signature check.
673 * tests/test-openpty.c: Likewise.
674 * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
675 * doc/glibc-functions/openpty.texi (openpty): Likewise.
677 forkpty, openpty: split functions into new modules
678 * modules/pty (Makefile.am): Substitute new witnesses.
679 (Libraries): Move library detection...
680 * modules/forkpty: ...into new module.
681 * modules/openpty: Another new module.
682 * modules/pty-tests: Rename and split...
683 * modules/forkpty-tests: ...to this...
684 * modules/openpty-tests: ...and this.
685 * tests/test-pty.c: Rename and split...
686 * tests/test-forkpty.c: ...to this...
687 * tests/test-openpty.c: ...and this.
688 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
689 (gl_PTY): Split library searching...
690 * m4/pty.m4 (gl_PTY_LIB): ...into new file.
691 (gl_FORKPTY, gl_OPENPTY): New macros.
692 * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
693 * NEWS: Mention the split.
694 * MODULES.html.sh (Misc): Document the modules.
695 * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
696 * doc/glibc-functions/openpty.texi (openpty): Likewise.
698 pty: improve replacement header
699 * lib/pty.in.h: New file.
700 * modules/pty (Files): Ship it.
701 (Makefile.am): Always build replacement.
702 * m4/pty.m4: Rename...
703 * m4/pty_h.m4: ...to this.
704 (gl_PTY): Modernize setting of witness macros; update check of
705 forkpty to take proper advantage of cache.
706 (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
708 getopt: avoid compiler warning
709 * lib/getopt.c (attribute_hidden): Remove unused macro.
711 2010-03-18 Bruno Haible <bruno@clisp.org>
713 Fix link errors on Solaris 8.
714 * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
715 * modules/search-tests (test_search_c___LDADD): Likewise.
716 * modules/signal-tests (test_signal_c___LDADD): Likewise.
717 * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
718 * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
719 * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
720 * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
721 * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
722 * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
724 2010-03-18 Bruno Haible <bruno@clisp.org>
726 Fix bug introduced on 2010-03-14.
727 * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
728 (gl_SPAWN_H): Require it.
729 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
730 Reported by Simon Josefsson.
732 2010-03-18 Bruno Haible <bruno@clisp.org>
734 Fix typo introduced on 2009-12-31.
735 * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
736 posix_spawn_file_actions_adddup2.
738 2010-03-17 Bert Wesarg <bert.wesarg@googlemail.com> (tiny change)
739 and Eric Blake <eblake@redhat.com>
741 test-vc-list-files-git: make more robust
742 * tests/test-vc-list-files-git.sh: Unset problematic environment
743 variables. Chain commands together.
745 2010-03-17 Ludovic Courtès <ludo@gnu.org> (tiny change)
747 * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
748 `AC_CHECK_DECL' invocation.
750 2010-03-15 Sergey Poznyakoff <gray@gnu.org.ua>
752 * lib/inttostr.c (inttostr): Make sure the invocation of verify
753 appears before executable statements. Suggested by Petr Sumbera
754 <Petr.Sumbera@Sun.COM>.
756 2010-03-14 Bruno Haible <bruno@clisp.org>
758 * tests/test-flock.c (test_exclusive): Comment out a test that causes
759 portability problems. Instead use a simpler test.
760 (main): Check that invalid arguments are rejected only on Linux.
762 2010-03-14 Bruno Haible <bruno@clisp.org>
764 Fix bug introduced on 2009-12-31.
765 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
766 gl_PREREQ_SYS_H_WINSOCK2 always.
767 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
768 SYS_SOCKET_H variable.
769 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
771 * m4/ctype.m4 (gl_CTYPE_H): Update comments.
772 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
773 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
774 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
775 * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
777 2010-03-14 Bruno Haible <bruno@clisp.org>
779 Fix values returned by sinl, cosl.
780 * lib/trigl.h: Add specification comments.
781 * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
782 that combines the values from the precomputed table with the values of
783 the Chebyshev polynomials.
785 2010-03-14 Bruno Haible <bruno@clisp.org>
787 Fix compilation error when modules 'posix_spawn[p]' are not used.
788 * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
789 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
791 2010-03-14 Bruno Haible <bruno@clisp.org>
793 Fix compilation error on mingw when module 'time_r' is not used.
794 * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
796 * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
797 * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
798 * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
799 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
801 2010-03-14 Bruno Haible <bruno@clisp.org>
803 Fix compilation error with Sun C.
804 * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
805 Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
806 instead of GCC specific ULONG_LONG_MAX.
807 * lib/xstrtoll.c: Likewise.
808 * lib/xstrtoull.c: Likewise.
810 2010-03-13 Bruno Haible <bruno@clisp.org>
812 Allow the user to disable C++ code and tests.
813 * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
814 (gl_PROG_ANSI_CXX): Require it.
816 2010-03-13 Bruno Haible <bruno@clisp.org>
818 * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
821 2010-03-13 Bruno Haible <bruno@clisp.org>
823 Test that gnulib does not break the standard C++ headers.
824 * tests/test-locale-c++2.cc: New file.
825 * modules/locale-tests (Files): Add it.
826 (Makefile.am): Compile it for test-locale-c++.
827 * tests/test-math-c++2.cc: New file.
828 * modules/math-tests (Files): Add it.
829 (Makefile.am): Compile it for test-math-c++.
830 * tests/test-signal-c++2.cc: New file.
831 * modules/signal-tests (Files): Add it.
832 (Makefile.am): Compile it for test-signal-c++.
833 * tests/test-stdio-c++2.cc: New file.
834 * modules/stdio-tests (Files): Add it.
835 (Makefile.am): Compile it for test-stdio-c++.
836 * tests/test-stdlib-c++2.cc: New file.
837 * modules/stdlib-tests (Files): Add it.
838 (Makefile.am): Compile it for test-stdlib-c++.
839 * tests/test-string-c++2.cc: New file.
840 * modules/string-tests (Files): Add it.
841 (Makefile.am): Compile it for test-string-c++.
842 * tests/test-time-c++2.cc: New file.
843 * modules/time-tests (Files): Add it.
844 (Makefile.am): Compile it for test-time-c++.
845 Reported by John W. Eaton <jwe@gnu.org>.
847 2010-03-13 Bruno Haible <bruno@clisp.org>
849 * gnulib-tool (func_usage): Clarify which options are available for
850 --create-testdir and --create-megatestdir.
852 2010-03-13 Bruno Haible <bruno@clisp.org>
854 Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
855 * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
856 * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
857 * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
858 strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
860 Reported by Jim Meyering.
862 2010-03-12 Simon Josefsson <simon@josefsson.org>
864 * gnulib-tool (func_import): Explain origin of code.
866 2010-03-12 Bruno Haible <bruno@clisp.org>
868 Fix problem with automake's definition of CXXLINK.
869 * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
870 Reported by Simon Josefsson and Ludovic Courtès.
872 2010-03-12 Bruno Haible <bruno@clisp.org>
874 * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
877 2010-03-11 Bruno Haible <bruno@clisp.org>
879 Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
880 * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
881 whether the system provides one variant or multiple variants of the
883 * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
885 (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
886 _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
887 Reported by Jim Meyering.
889 2010-03-09 Simon Josefsson <simon@josefsson.org>
891 * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
893 2010-03-08 Bruno Haible <bruno@clisp.org>
895 gnulib-tool: Add support for --libtool in --create-testdir.
896 * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
897 (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
899 2010-03-08 Eric Blake <eblake@redhat.com>
901 gnulib-tool.texi: mention possibility of git submodule
902 * doc/gnulib-tool.texi (VCS Issues): Add details about using git
904 * doc/.gitignore: Ignore another generated file.
906 2010-03-08 Karl Berry <karl@gnu.org>
908 * doc/gnulib-tool.texi (VCS Issues): Mention third option
909 of committing gnulib files while skipping others.
911 2010-03-07 Bruno Haible <bruno@clisp.org>
913 Tests of module 'wctype' in C++ mode.
914 * tests/test-wctype-c++.cc: New file.
915 * modules/wctype-tests (Files): Add it and tests/signature.h.
916 (Depends-on): Add ansi-c++-opt.
917 (Makefile.am): Arrange to compile and run test-wctype-c++.
919 Tests of module 'wchar' in C++ mode.
920 * tests/test-wchar-c++.cc: New file.
921 * modules/wchar-tests (Files): Add it and tests/signature.h.
922 (Depends-on): Add ansi-c++-opt.
923 (Makefile.am): Arrange to compile and run test-wchar-c++.
924 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
927 Tests of module 'unistd' in C++ mode.
928 * tests/test-unistd-c++.cc: New file.
929 * modules/unistd-tests (Files): Add it and tests/signature.h.
930 (Depends-on): Add ansi-c++-opt.
931 (Makefile.am): Arrange to compile and run test-unistd-c++.
932 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
935 Tests of module 'time' in C++ mode.
936 * tests/test-time-c++.cc: New file.
937 * modules/time-tests (Files): Add it and tests/signature.h.
938 (Depends-on): Add ansi-c++-opt.
939 (Makefile.am): Arrange to compile and run test-time-c++.
940 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
942 Tests of module 'sys_time' in C++ mode.
943 * tests/test-sys_time-c++.cc: New file.
944 * modules/sys_time-tests (Files): Add it and tests/signature.h.
945 (Depends-on): Add ansi-c++-opt.
946 (Makefile.am): Arrange to compile and run test-sys_time-c++.
947 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
950 Tests of module 'sys_stat' in C++ mode.
951 * tests/test-sys_stat-c++.cc: New file.
952 * modules/sys_stat-tests (Files): Add it and tests/signature.h.
953 (Depends-on): Add ansi-c++-opt.
954 (Makefile.am): Arrange to compile and run test-sys_stat-c++.
955 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
958 Tests of module 'sys_socket' in C++ mode.
959 * tests/test-sys_socket-c++.cc: New file.
960 * modules/sys_socket-tests (Files): Add it and tests/signature.h.
961 (Depends-on): Add ansi-c++-opt.
962 (Makefile.am): Arrange to compile and run test-sys_socket-c++.
963 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
966 Tests of module 'sys_select' in C++ mode.
967 * tests/test-sys_select-c++.cc: New file.
968 * modules/sys_select-tests (Files): Add it and tests/signature.h.
969 (Depends-on): Add ansi-c++-opt.
970 (Makefile.am): Arrange to compile and run test-sys_select-c++.
971 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
974 Tests of module 'sys_ioctl' in C++ mode.
975 * tests/test-sys_ioctl-c++.cc: New file.
976 * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
977 (Depends-on): Add ansi-c++-opt.
978 (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
979 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
982 Tests of module 'string' in C++ mode.
983 * tests/test-string-c++.cc: New file.
984 * modules/string-tests (Files): Add it and tests/signature.h.
985 (Depends-on): Add ansi-c++-opt.
986 (Makefile.am): Arrange to compile and run test-string-c++.
987 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
990 Tests of module 'stdlib' in C++ mode.
991 * tests/test-stdlib-c++.cc: New file.
992 * modules/stdlib-tests (Files): Add it and tests/signature.h.
993 (Depends-on): Add ansi-c++-opt.
994 (Makefile.am): Arrange to compile and run test-stdlib-c++.
995 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
998 Tests of module 'stdio' in C++ mode.
999 * tests/test-stdio-c++.cc: New file.
1000 * modules/stdio-tests (Files): Add it and tests/signature.h.
1001 (Depends-on): Add ansi-c++-opt.
1002 (Makefile.am): Arrange to compile and run test-stdio-c++.
1003 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1004 gl_MODULE_INDICATOR.
1006 Tests of module 'spawn' in C++ mode.
1007 * tests/test-spawn-c++.cc: New file.
1008 * modules/spawn-tests (Files): Add it and tests/signature.h.
1009 (Depends-on): Add ansi-c++-opt.
1010 (Makefile.am): Arrange to compile and run test-spawn-c++.
1011 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1012 gl_MODULE_INDICATOR.
1014 Tests of module 'signal' in C++ mode.
1015 * tests/test-signal-c++.cc: New file.
1016 * modules/signal-tests (Files): Add it and tests/signature.h.
1017 (Depends-on): Add ansi-c++-opt.
1018 (Makefile.am): Arrange to compile and run test-signal-c++.
1019 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1020 gl_MODULE_INDICATOR.
1022 Tests of module 'search' in C++ mode.
1023 * tests/test-search-c++.cc: New file.
1024 * modules/search-tests (Files): Add it and tests/signature.h.
1025 (Depends-on): Add ansi-c++-opt.
1026 (Makefile.am): Arrange to compile and run test-search-c++.
1027 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1028 gl_MODULE_INDICATOR.
1030 Tests of module 'math' in C++ mode.
1031 * tests/test-math-c++.cc: New file.
1032 * modules/math-tests (Files): Add it and tests/signature.h.
1033 (Depends-on): Add ansi-c++-opt.
1034 (Makefile.am): Arrange to compile and run test-math-c++.
1035 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1037 Tests of module 'locale' in C++ mode.
1038 * tests/test-locale-c++.cc: New file.
1039 * modules/locale-tests (Files): Add it and tests/signature.h.
1040 (Depends-on): Add ansi-c++-opt.
1041 (Makefile.am): Arrange to compile and run test-locale-c++.
1042 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1043 gl_MODULE_INDICATOR.
1045 Tests of module 'langinfo' in C++ mode.
1046 * tests/test-langinfo-c++.cc: New file.
1047 * modules/langinfo-tests (Files): Add it and tests/signature.h.
1048 (Depends-on): Add ansi-c++-opt.
1049 (Makefile.am): Arrange to compile and run test-langinfo-c++.
1050 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1051 gl_MODULE_INDICATOR.
1053 Tests of module 'iconv-h' in C++ mode.
1054 * tests/test-iconv-h-c++.cc: New file.
1055 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1056 (Depends-on): Add ansi-c++-opt.
1057 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1059 Tests of module 'glob' in C++ mode.
1060 * tests/test-glob-c++.cc: New file.
1061 * modules/glob-tests (Files): Add it.
1062 (Depends-on): Add ansi-c++-opt.
1063 (Makefile.am): Arrange to compile and run test-glob-c++.
1065 Tests of module 'fcntl-h' in C++ mode.
1066 * tests/test-fcntl-h-c++.cc: New file.
1067 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1068 (Depends-on): Add ansi-c++-opt.
1069 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1070 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1071 gl_MODULE_INDICATOR.
1073 Tests of module 'dirent' in C++ mode.
1074 * tests/test-dirent-c++.cc: New file.
1075 * modules/dirent-tests (Files): Add it and tests/signature.h.
1076 (Depends-on): Add ansi-c++-opt.
1077 (Makefile.am): Arrange to compile and run test-dirent-c++.
1078 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1079 gl_MODULE_INDICATOR.
1081 New module 'ansi-c++-opt'.
1082 * modules/ansi-c++-opt: New file.
1083 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1085 Document C++ namespace mode.
1086 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1088 wctype: Avoid #define replacements in C++ mode.
1089 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1090 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1091 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1092 In C++, define a namespaced alias symbol.
1093 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1094 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1095 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1098 wchar: Avoid #define replacements in C++ mode.
1099 * lib/wchar.in.h: Include c++defs.h.
1100 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1101 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1103 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1104 * modules/wchar (Depends-on): Add c++defs.
1105 (Makefile.am): Update wchar.h rule.
1107 unistd: Avoid #define replacements in C++ mode.
1108 * lib/unistd.in.h: Include c++defs.h.
1109 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1110 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1111 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1112 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1113 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1114 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1117 * modules/unistd (Depends-on): Add c++defs.
1118 (Makefile.am): Update unistd.h rule.
1120 time: Avoid #define replacements in C++ mode.
1121 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1122 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1123 define a namespaced alias symbol.
1124 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1125 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1126 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1127 * modules/time (Depends-on): Add c++defs, warn-on-use.
1128 (Makefile.am): Update time.h rule.
1129 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1130 * modules/nanosleep (configure.ac): Likewise.
1131 * modules/strptime (configure.ac): Likewise.
1132 * modules/timegm (configure.ac): Likewise.
1134 sys_time: Avoid #define replacements in C++ mode.
1135 * lib/sys_time.in.h: Include c++defs.h.
1136 (gettimeofday): In C++, define a namespaced alias symbol.
1137 * modules/sys_time (Depends-on): Add c++defs.
1138 (Makefile.am): Update sys/time.h rule.
1140 sys_stat: Avoid #define replacements in C++ mode.
1141 * lib/sys_stat.in.h: Include c++defs.h.
1142 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1143 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1144 namespaced alias symbol.
1145 In C++, define a namespaced alias symbol.
1146 * modules/sys_stat (Depends-on): Add c++defs.
1147 (Makefile.am): Update sys/stat.h rule.
1149 sys_socket: Avoid #define replacements in C++ mode.
1150 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1151 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1152 definitions also when the system has a <sys/socket.h>.
1153 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1154 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1155 In C++, define a namespaced alias symbol.
1156 * modules/sys_socket (Depends-on): Add c++defs.
1157 (Makefile.am): Update sys/socket.h rule.
1159 sys_select: Avoid #define replacements in C++ mode.
1160 * lib/sys_select.in.h: Include c++defs.h. Enable the function
1161 definitions also when the system has a <sys/select.h>.
1162 (select): In C++, define a namespaced alias symbol.
1163 * modules/sys_select (Depends-on): Add c++defs.
1164 (Makefile.am): Update sys/select.h rule.
1166 sys_ioctl: Avoid #define replacements in C++ mode.
1167 * lib/sys_ioctl.in.h: Include c++defs.h.
1168 (ioctl): In C++, define a namespaced alias symbol.
1169 * modules/sys_ioctl (Depends-on): Add c++defs.
1170 (Makefile.am): Update sys/ioctl.h rule.
1172 string: Avoid #define replacements in C++ mode.
1173 * lib/string.in.h: Include c++defs.h.
1174 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1175 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1176 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1177 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1178 strsignal, strverscmp): In C++, define a namespaced alias symbol.
1179 * modules/string (Depends-on): Add c++defs.
1180 (Makefile.am): Update string.h rule.
1182 stdlib: Avoid #define replacements in C++ mode.
1183 * lib/stdlib.in.h: Include c++defs.h.
1184 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1185 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1186 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1187 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1189 * modules/stdlib (Depends-on): Add c++defs.
1190 (Makefile.am): Update stdlib.h rule.
1192 stdio: Avoid #define replacements in C++ mode.
1193 * lib/stdio.in.h: Include c++defs.h.
1194 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1195 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1196 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1197 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1198 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1199 namespaced alias symbol.
1200 * modules/stdio (Depends-on): Add c++defs.
1201 (Makefile.am): Update stdio.h rule.
1203 spawn: Avoid #define replacements in C++ mode.
1204 * lib/spawn.in.h: Include c++defs.h.
1205 (posix_spawn, posix_spawnp, posix_spawnattr_init,
1206 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1207 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1208 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1209 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1210 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1211 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1212 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1213 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1214 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1215 In C++, define a namespaced alias symbol.
1216 * modules/spawn (Depends-on): Add c++defs.
1217 (Makefile.am): Update spawn.h rule.
1219 signal: Avoid #define replacements in C++ mode.
1220 * lib/signal.in.h: Include c++defs.h.
1221 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1222 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1223 namespaced alias symbol.
1224 * modules/signal (Depends-on): Add c++defs.
1225 (Makefile.am): Update signal.h rule.
1227 search: Avoid #define replacements in C++ mode.
1228 * lib/search.in.h: Include c++defs.h.
1229 (_gl_search_compar_fn, _gl_search_action_fn): New types.
1230 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1232 * modules/search (Depends-on): Add c++defs.
1233 (Makefile.am): Update search.h rule.
1235 math: Avoid #define replacements in C++ mode.
1236 * lib/math.in.h: Include c++defs.h.
1237 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1238 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1239 trunc, truncl): In C++, define a namespaced alias symbol.
1240 * modules/math (Depends-on): Add c++defs.
1241 (Makefile.am): Update math.h rule.
1243 locale: Avoid #define replacements in C++ mode.
1244 * lib/locale.in.h: Include c++defs.h.
1245 (duplocale): In C++, define a namespaced alias symbol.
1246 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1247 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1248 * modules/locale (Depends-on): Add c++defs.
1249 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1251 langinfo: Avoid #define replacements in C++ mode.
1252 * lib/langinfo.in.h: Include c++defs.h.
1253 (nl_langinfo): In C++, define a namespaced alias symbol.
1254 * modules/langinfo (Depends-on): Add c++defs.
1255 (Makefile.am): Update langinfo.h rule.
1257 iconv-h: Avoid #define replacements in C++ mode.
1258 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1259 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1261 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1262 whenever iconv is present.
1263 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1264 (Makefile.am): Update iconv.h rule.
1266 glob: Avoid #define replacements in C++ mode.
1267 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1268 (_gl_glob_errfunc_fn): New type.
1269 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1271 * modules/glob (Depends-on): Add c++defs, warn-on-use.
1272 (Makefile.am): Update glob.h rule.
1274 fcntl-h: Avoid #define replacements in C++ mode.
1275 * lib/fcntl.in.h: Include c++defs.h.
1276 (fcntl, open, openat): In C++, define a namespaced alias symbol.
1277 * modules/fcntl-h (Depends-on): Add c++defs.
1278 (Makefile.am): Update fcntl.h rule.
1280 dirent: Avoid #define replacements in C++ mode.
1281 * lib/dirent.in.h: Include c++defs.h.
1282 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1283 namespaced alias symbol.
1284 (dirfd): Update declaration.
1285 * modules/dirent (Depends-on): Add c++defs.
1286 (Makefile.am): Update dirent.h rule.
1288 ctype: Make it usable in C++ code.
1289 * lib/ctype.in.h: Include c++defs.h.
1290 (isblank): Declare as extern "C".
1291 * modules/ctype (Depends-on): Add c++defs.
1292 (Makefile.am): Update ctype.h rule.
1294 New module 'c++defs'.
1295 * modules/c++defs: New file.
1296 * build-aux/c++defs.h: New file.
1297 Reported by John W. Eaton <jwe@gnu.org>.
1299 2010-03-07 Bruno Haible <bruno@clisp.org>
1301 logb: Provide missing declaration for Cygwin.
1302 * lib/math.in.h (logb): New declaration.
1303 * m4/logb.m4: New file.
1304 * modules/logb (Files): Add m4/logb.m4.
1305 (Depends-on): Add math.
1306 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1307 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1308 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1309 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1310 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1312 2010-03-07 Bruno Haible <bruno@clisp.org>
1314 Fix test-cond link error.
1315 * tests/test-cond.c: Include <stdio.h>.
1317 2010-03-07 Bruno Haible <bruno@clisp.org>
1319 Fix test-dirent-safer link error.
1320 * modules/dirent-safer-tests (Makefile.am): Define
1321 test_dirent_safer_LDADD.
1323 2010-03-07 Bruno Haible <bruno@clisp.org>
1325 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1326 among default module list.
1328 2010-03-07 Bruno Haible <bruno@clisp.org>
1330 Fix link error on platforms with GNU libiconv.
1331 * modules/unistr/u8-strcoll-tests (Makefile): Define
1332 test_u8_strcoll_LDADD.
1333 * modules/unistr/u16-strcoll-tests (Makefile): Define
1334 test_u16_strcoll_LDADD.
1335 * modules/unistr/u32-strcoll-tests (Makefile): Define
1336 test_u32_strcoll_LDADD.
1338 2010-03-07 Bruno Haible <bruno@clisp.org>
1340 Use POSIX declarations for socket functions.
1341 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1342 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1343 rpl_sendto): Change declaration to match POSIX.
1344 * lib/connect.c (rpl_connect): Likewise.
1345 * lib/accept.c (rpl_accept): Likewise.
1346 * lib/bind.c (rpl_bind): Likewise.
1347 * lib/getpeername.c (rpl_getpeername): Likewise.
1348 * lib/getsockname.c (rpl_getsockname): Likewise.
1349 * lib/recv.c (rpl_recv): Likewise.
1350 * lib/send.c (rpl_send): Likewise.
1351 * lib/recvfrom.c (rpl_recvfrom): Likewise.
1352 * lib/sendto.c (rpl_sendto): Likewise.
1354 2010-03-06 Bruno Haible <bruno@clisp.org>
1356 Clarify access, euidaccess, faccessat.
1357 * doc/posix-functions/faccessat.texi: Mention security problem under
1358 "Other problems", not "Portability problems".
1359 * doc/posix-functions/access.texi: Likewise. Mention a related security
1361 * doc/glibc-functions/euidaccess.texi: Mention security problems.
1362 * lib/euidaccess.c: Add comments about platforms.
1363 * lib/unistd.in.h (access, euidaccess): Add warnings.
1365 2010-03-07 Bruno Haible <bruno@clisp.org>
1367 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1368 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1369 (POSIX_SPAWN_SETSCHEDULER): Likewise.
1370 (POSIX_SPAWN_USEVFORK): Define in a way that works when
1371 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1372 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1373 declare when POSIX_SPAWN_SETSCHEDULER is zero.
1374 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1375 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1376 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1377 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1378 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1379 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1380 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1381 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1382 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1383 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1384 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1385 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1386 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1388 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1389 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1390 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1392 * tests/test-spawn.c (main): Make it work when
1393 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1395 2010-03-07 Bruno Haible <bruno@clisp.org>
1397 Fix incorrect Makefile.am generation in German locale.
1398 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1399 Execute sed command with character range in C locale.
1401 2010-03-06 Bruno Haible <bruno@clisp.org>
1403 Tests for module 'iconv-h'.
1404 * modules/iconv-h-tests: New file.
1405 * tests/test-iconv-h.c: New file.
1407 New module 'iconv-h'.
1408 * modules/iconv-h: New file.
1409 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1410 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1411 (configure.ac): Remove gl_ICONV_H.
1412 (Makefile.am): Remove rule for iconv.h.
1414 2010-03-06 Bruno Haible <bruno@clisp.org>
1416 More consistent naming of *.m4 files.
1417 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1418 * modules/wctype (Files): Update.
1420 More consistent naming of *.m4 files.
1421 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1422 * modules/wchar (Files): Update.
1424 2010-03-06 Jim Meyering <meyering@redhat.com>
1426 euidaccess: relax license to LGPLv2+
1427 * modules/euidaccess (License): Relax to LGPLv2+.
1429 2010-03-06 Bruno Haible <bruno@clisp.org>
1431 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1432 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1433 (Makefile.am): Augment lib_SOURCES instead.
1435 2010-03-04 Jim Meyering <meyering@redhat.com>
1437 utime: remove obsolete module
1438 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1439 unnecessary for years, and has been marked as obsolete for 10 months.
1440 * modules/utime: Remove file.
1441 * lib/utime.c: Remove file.
1442 * m4/utime.m4: Remove file.
1443 * m4/utimes-null.m4: Remove file.
1444 * doc/posix-functions/utime.texi (utime): Remove reference to
1445 the module. Move the sole "fixed by gnulib" item into the
1446 "problems not fixed by Gnulib" list.
1447 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1449 2010-03-05 Simon Josefsson <simon@josefsson.org>
1451 * modules/exit (License): Relax license to LGPLv2+.
1452 (Status): Mark as obsolete.
1453 * NEWS: Mention deprecated 'exit' module.
1454 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1455 of now obsolete 'exit'.
1457 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1459 fts-lgpl: remove unused module
1460 * modules/fts-lgpl: Remove.
1461 * MODULES.html.sh (func_all_modules): Adjust.
1462 * check-module (find_included_lib_files): Adjust.
1463 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1465 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
1467 copy-acl: enhance Solaris ACL error handling
1468 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1469 * lib/set-mode-acl.c (qset_acl): Likewise.
1471 2010-03-02 Bruno Haible <bruno@clisp.org>
1473 spawn: Don't override the system defined values on FreeBSD 8.
1474 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1475 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1476 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1477 if HAVE_POSIX_SPAWN is 1.
1478 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1480 2010-03-01 Bruno Haible <bruno@clisp.org>
1482 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1485 2010-02-25 Bruno Haible <bruno@clisp.org>
1487 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1488 * gnulib-tool: Define 'echo' as a function only before the ksh alias
1489 setting, not afterwards.
1490 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1492 2010-02-24 Eric Blake <eblake@redhat.com>
1494 bootstrap, git-version-gen: use timestamp
1495 * build-aux/git-version-gen (scriptversion): Force UTC.
1496 * build-aux/bootstrap (scriptversion): New variable.
1498 bootstrap: allow older git
1499 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1500 older than 1.6.4. Requested by the libvirt project.
1502 2010-02-23 Eric Blake <eblake@redhat.com>
1504 warn-on-use: work with old autoconf
1505 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1506 AS_VAR semantics of autoconf 2.60.
1507 Reported by Bruno Haible.
1509 bootstrap: improve some comments
1510 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
1511 clarification comments.
1513 gettimeofday: provide correct function
1514 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1515 when replacement is declared, otherwise provide gettimeofday.
1516 Reported by Michael Goffioul.
1518 2010-02-23 Jim Meyering <meyering@redhat.com>
1520 lib-ignore: relax license to "unlimited", not LGPLv2+
1521 * modules/lib-ignore (License): Relax to "unlimited".
1523 2010-02-23 Jim Meyering <meyering@redhat.com>
1525 lib-ignore: relax license to LGPLv2+
1526 * modules/lib-ignore (License): Relax to LGPLv2+.
1528 2010-02-22 Eric Blake <eblake@redhat.com>
1530 lseek: avoid bash 3.2 broken pipe bug
1531 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1532 warning from bash 3.2.
1533 Reported by Ben Pfaff, with analysis from Bruno Haible.
1535 bootstrap: support non-FSF copyright holder
1536 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1537 bootstrap.conf override of COPYRIGHT_HOLDER.
1538 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1540 bootstrap: interoperate with gettext 0.14.1
1541 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1543 bootstrap: allow for alternate submodule location
1544 * build-aux/bootstrap (gnulib_path): New variable; use instead of
1545 hardcoding submodule location.
1546 (gnulib_mk): Allow direct use of Makefile.am.
1548 bootstrap: use GNULIB_SRCDIR to reduce disk usage
1549 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1550 rather than reconfiguring where the submodule points.
1552 gettimeofday: restore support for platforms that lack function
1553 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1554 replacement if function is missing.
1555 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1556 * modules/sys_time (Makefile.am): Substitute it.
1557 * lib/sys_time.in.h (gettimeofday): Check it.
1558 Reported by Michael Goffioul.
1560 2010-02-21 Bruno Haible <bruno@clisp.org>
1562 * lib/stdio.in.h (obstack_printf): Fix typo.
1564 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
1566 vc-list-files: use bzr ls's -R option
1567 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1568 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1570 2010-02-21 Jim Meyering <meyering@redhat.com>
1572 init.sh: fix EXEEXT shims to work also for names like test-prog
1573 * tests/init.sh: Re-exec a better shell, when needed.
1574 If the current shell lacks support for posix $(...), an init.sh-using
1575 test will now try to find a shell that supports that. If EXEEXT is
1576 nonempty, we also require support for hyphen-in-alias-name and shell
1577 substitutions like ${var#glob}. Failure to find such a shell results
1580 2010-02-21 Bruno Haible <bruno@clisp.org>
1582 Really work around around "broken pipe" error message from bash 3.2.
1583 * gnulib-tool (func_reset_sigpipe): Remove function.
1584 (echo): In bash 3.2, define to a function that uses printf.
1585 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1587 2010-02-20 Bruno Haible <bruno@clisp.org>
1589 Restore support for automake 1.9.6 with autoconf 2.61.
1590 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1591 Reported by James Youngman <jay@gnu.org>.
1593 2010-02-20 Bruno Haible <bruno@clisp.org>
1595 Improve *printf warning condition.
1596 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1597 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1598 and the function is overridden due to SIGPIPE emulation.
1600 2010-02-20 Bruno Haible <bruno@clisp.org>
1602 * lib/stdio.in.h: Tweak comments.
1604 2010-02-19 Bruno Haible <bruno@clisp.org>
1606 Make it easier to find modules. New gnulib-tool option '--find'.
1607 * gnulib-tool: New option --find.
1608 (func_usage): Document it.
1609 (func_sanitize_modulelist): New function, extracted from
1611 (func_all_modules): Invoke it.
1612 * doc/gnulib-tool.texi (Which modules?): New node.
1614 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
1616 * lib/sys_select.in.h: Provide select replacement even if
1617 sys/select.h exists on a system, for Interix.
1619 2010-02-18 Jim Meyering <meyering@redhat.com>
1621 init.sh: don't use $(...) just yet
1622 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1623 to accommodate e.g., Solaris' /bin/sh.
1625 2010-02-17 Bruno Haible <bruno@clisp.org>
1627 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1628 Reported by Ludovic Courtès <ludo@gnu.org>.
1630 2010-02-16 Simon Josefsson <simon@josefsson.org>
1632 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1633 linking with -lintl.
1635 2010-02-17 Simon Josefsson <simon@josefsson.org>
1637 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1638 if not provided by the system's netdb.h. Reported by
1639 ludo@gnu.org (Ludovic Courtès).
1641 2010-02-15 Jim Meyering <meyering@redhat.com>
1643 init.sh: improve portability and efficiency
1644 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1645 "dummy" in a for loop.
1646 Use '!', not '^' to select the complement of a character set used
1647 in a "case" statement.
1648 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1649 Suggestions from Eric Blake.
1651 init.sh: automatically accommodate programs with the .exe suffix
1652 Automatically arrange for an invocation of "prog" to execute the
1653 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
1654 may use the simpler "prog", yet still work when built on a system
1655 that requires specifying the added suffix.
1656 Do this by constructing a function named "prog" that invokes
1657 "prog.exe" for each .exe file in selected directories.
1658 * tests/init.sh (find_exe_basenames_): New function.
1659 (create_exe_shim_functions_): New function.
1660 (path_prepend_): Use it.
1662 maint.mk: mark syntax-check sc_*.m rules as .PHONY
1663 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1664 "make -t syntax-check" doesn't create a ton of sc_*.m files.
1666 2010-02-14 Jim Meyering <meyering@redhat.com>
1668 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1669 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1670 (sc_prohibit_hash_pjw_without_use): New rule.
1672 maint.mk: allow the default upload destination dir to be overridden
1673 * top/maint.mk (upload_dest_dir_): Define with a default that
1674 preserves the status quo.
1675 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1676 Reported by Peter Simons.
1678 maint.mk: prohibit inclusion of "hash.h" without_use
1679 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1681 2010-02-10 Jim Meyering <meyering@redhat.com>
1683 maint.mk: prohibit inclusion of "ignore-value.h" without_use
1684 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1686 2010-02-09 Eric Blake <ebb9@byu.net>
1687 and Bruno Haible <bruno@clisp.org>
1689 obstack-printf-posix: ensure declaration
1690 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1691 extracted from gl_FUNC_OBSTACK_PRINTF.
1692 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1693 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1695 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1696 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1699 2010-02-08 Bruno Haible <bruno@clisp.org>
1701 gnulib-tool: Fix typo in 2010-02-07 commit.
1702 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1703 Reported by Eric Blake.
1705 2010-02-07 Bruno Haible <bruno@clisp.org>
1707 gnulib-tool: Fix up caching patches.
1708 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1709 option --no-cache. Use associative arrays when supported by the shell.
1710 (sed_comments): New variable.
1711 (modcache): Renamed from do_cache.
1712 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1713 abbreviate unnecessarily.
1714 (have_associative): New variable.
1715 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1716 way also for ksh and zsh.
1717 (func_init_sed_convert_to_cache_statements): New function, extracted
1718 from func_cache_lookup_module. Add support for associative arrays.
1719 Don't set the c_MODULE_cached variable here. Ignore all lines before
1720 the first field header. Remove only the final newline, not all trailing
1721 newlines. Support empty fields correctly. Limit the use of 'eval' to
1723 (func_get_description, func_get_status, func_get_notice,
1724 func_get_applicability, func_get_filelist, func_get_dependencies,
1725 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1726 func_get_automake_snippet, func_get_include_directive,
1727 func_get_link_directive, func_get_license, func_get_maintainer):
1728 Update documentation. List the unoptimized code first. Add support for
1729 associative arrays. Limit the use of 'eval' to assignments.
1730 (func_get_applicability): Undo stylistic pessimisations.
1731 (func_get_automake_snippet, func_get_include_directive): Reduce code
1733 (func_modules_transitive_closure, func_modules_add_dummy,
1734 func_modules_notice, func_modules_to_filelist, func_add_file,
1735 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1736 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1737 func_create_testdir, func_create_megatestdir): Update documentation.
1739 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1741 * gnulib-tool (func_cache_lookup_module): Store the module name
1742 belonging to the cache variable; error out if two different
1743 module names map to the same cache variable name.
1745 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1747 gnulib-tool: Make caching optional.
1748 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1749 Update matching short versions of --no-changelog.
1750 (func_usage): Update.
1751 (sed_extract_cache_prog): Renamed from ...
1752 (sed_extract_prog): ... this; revert to old extraction script.
1753 (func_get_description, func_get_status)
1754 (func_get_notice, func_get_applicability, func_get_filelist)
1755 (func_get_dependencies, func_get_autoconf_early_snippet)
1756 (func_get_autoconf_snippet, func_get_automake_snippet)
1757 (func_get_include_directive, func_get_link_directive)
1758 (func_get_license, func_get_maintainer): If $do_cache is false,
1759 use old, non-caching extraction scripts.
1760 Suggestion by Bruno Haible.
1762 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1764 gnulib-tool: cache module metainformation.
1765 * gnulib-tool (sed_extract_prog): Match newline before each
1766 header, and rewrite header to a shell variable suffix.
1767 (func_cache_var, func_cache_lookup_module): New functions,
1768 to turn a module name into a cache variable prefix, and to
1769 look up and cache module metainformation.
1770 (func_get_description, func_get_status)
1771 (func_get_notice, func_get_applicability, func_get_filelist)
1772 (func_get_dependencies, func_get_autoconf_early_snippet)
1773 (func_get_autoconf_snippet, func_get_automake_snippet)
1774 (func_get_include_directive, func_get_link_directive)
1775 (func_get_license, func_get_maintainer): Use
1776 func_cache_lookup_module.
1778 2010-02-07 Bruno Haible <bruno@clisp.org>
1780 fnctl: Fix missing dependency.
1781 * modules/fcntl (Depends-on): Add getdtablesize.
1782 Reported by John W. Eaton <jwe@gnu.org>.
1784 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1786 Argp: fix recognition of short alias options.
1788 * lib/argp-parse.c (convert_options): Fix improper use of
1789 `|' between character values.
1790 * tests/test-argp.c (group1_option): New alias option
1792 (group1_parser): Special handling for 'r'.
1793 (test15): New test case.
1794 (test_fun): Add test15.
1795 * tests/test-argp-2.sh: Update expected --help and --usage
1798 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1800 * tests/test-argp.c: Fix indentation.
1802 2010-02-04 Eric Blake <ebb9@byu.net>
1804 gettimeofday: expose type of second argument
1805 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1806 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1807 * tests/test-gettimeofday.c: Use it to silence warning.
1808 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1811 2010-02-03 Jim Meyering <meyering@redhat.com>
1813 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1814 * lib/regcomp.c (TYPE_SIGNED): Define.
1815 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1817 regcomp.c: avoid a new -Wshadow warning
1818 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1820 2010-02-01 Jim Meyering <meyering@redhat.com>
1822 removing useless parentheses in cpp #define directives
1823 For motivation, see commit c0221df4, "define STREQ(a,b)
1824 consistently, removing useless parentheses"
1825 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1826 * lib/mountlist.c (MNT_IGNORE): Likewise.
1827 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1829 2010-02-01 Eric Blake <ebb9@byu.net>
1831 sys_time: use link-warning
1832 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1833 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1834 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1835 * modules/sys_time (Depends-on): Add warn-on-use.
1836 (Makefile.am): Always build replacement.
1837 (configure.ac): Update substitutions.
1838 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1839 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1840 bother with SYS_TIME_H.
1841 * modules/gettimeofday (configure.ac): Declare indicator.
1842 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1845 closein-tests: silence compiler warning
1846 * tests/test-closein.c (main): Ignore fread result.
1847 * modules/closein-tests (Depends-on): Add ignore-value.
1849 tests: silence warning about system return
1850 * tests/test-areadlink-with-size.c (main): Ignore system result.
1851 * tests/test-areadlink.c (main): Likewise.
1852 * tests/test-areadlinkat-with-size.c (main): Likewise.
1853 * tests/test-areadlinkat.c (main): Likewise.
1854 * tests/test-canonicalize-lgpl.c (main): Likewise.
1855 * tests/test-canonicalize.c (main): Likewise.
1856 * tests/test-chown.c (main): Likewise.
1857 * tests/test-fchownat.c (main): Likewise.
1858 * tests/test-fdutimensat.c (main): Likewise.
1859 * tests/test-fstatat.c (main): Likewise.
1860 * tests/test-futimens.c (main): Likewise.
1861 * tests/test-lchown.c (main): Likewise.
1862 * tests/test-link.c (main): Likewise.
1863 * tests/test-linkat.c (main): Likewise.
1864 * tests/test-lstat.c (main): Likewise.
1865 * tests/test-mkdir.c (main): Likewise.
1866 * tests/test-mkdirat.c (main): Likewise.
1867 * tests/test-mkfifo.c (main): Likewise.
1868 * tests/test-mkfifoat.c (main): Likewise.
1869 * tests/test-mknod.c (main): Likewise.
1870 * tests/test-readlink.c (main): Likewise.
1871 * tests/test-remove.c (main): Likewise.
1872 * tests/test-rename.c (main): Likewise.
1873 * tests/test-renameat.c (main): Likewise.
1874 * tests/test-rmdir.c (main): Likewise.
1875 * tests/test-symlink.c (main): Likewise.
1876 * tests/test-symlinkat.c (main): Likewise.
1877 * tests/test-unlink.c (main): Likewise.
1878 * tests/test-unlinkat.c (main): Likewise.
1879 * tests/test-utimens.c (main): Likewise.
1880 * tests/test-utimensat.c (main): Likewise.
1881 * modules/areadlink-tests (Depends-on): Add ignore-value.
1882 * modules/areadlink-with-size-tests (Depends-on): Likewise.
1883 * modules/areadlinkat-tests (Depends-on): Likewise.
1884 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1885 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1886 * modules/canonicalize-tests (Depends-on): Likewise.
1887 * modules/chown-tests (Depends-on): Likewise.
1888 * modules/fdutimensat-tests (Depends-on): Likewise.
1889 * modules/futimens-tests (Depends-on): Likewise.
1890 * modules/lchown-tests (Depends-on): Likewise.
1891 * modules/link-tests (Depends-on): Likewise.
1892 * modules/linkat-tests (Depends-on): Likewise.
1893 * modules/lstat-tests (Depends-on): Likewise.
1894 * modules/mkdir-tests (Depends-on): Likewise.
1895 * modules/mkfifo-tests (Depends-on): Likewise.
1896 * modules/mkfifoat-tests (Depends-on): Likewise.
1897 * modules/mknod-tests (Depends-on): Likewise.
1898 * modules/openat-tests (Depends-on): Likewise.
1899 * modules/readlink-tests (Depends-on): Likewise.
1900 * modules/remove-tests (Depends-on): Likewise.
1901 * modules/rename-tests (Depends-on): Likewise.
1902 * modules/renameat-tests (Depends-on): Likewise.
1903 * modules/rmdir-tests (Depends-on): Likewise.
1904 * modules/symlink-tests (Depends-on): Likewise.
1905 * modules/symlinkat-tests (Depends-on): Likewise.
1906 * modules/unlink-tests (Depends-on): Likewise.
1907 * modules/utimens-tests (Depends-on): Likewise.
1908 * modules/utimensat-tests (Depends-on): Likewise.
1910 2010-01-31 Bruno Haible <bruno@clisp.org>
1912 Perform the same test for many <math.h> functions.
1913 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1914 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1915 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1917 * modules/acos (configure.ac): Likewise.
1918 * modules/asin (configure.ac): Likewise.
1919 * modules/atan (configure.ac): Likewise.
1920 * modules/atan2 (configure.ac): Likewise.
1921 * modules/cbrt (configure.ac): Likewise.
1922 * modules/copysign (configure.ac): Likewise.
1923 * modules/cos (configure.ac): Likewise.
1924 * modules/cosh (configure.ac): Likewise.
1925 * modules/erf (configure.ac): Likewise.
1926 * modules/erfc (configure.ac): Likewise.
1927 * modules/exp (configure.ac): Likewise.
1928 * modules/fmod (configure.ac): Likewise.
1929 * modules/hypot (configure.ac): Likewise.
1930 * modules/j0 (configure.ac): Likewise.
1931 * modules/j1 (configure.ac): Likewise.
1932 * modules/jn (configure.ac): Likewise.
1933 * modules/lgamma (configure.ac): Likewise.
1934 * modules/log (configure.ac): Likewise.
1935 * modules/log10 (configure.ac): Likewise.
1936 * modules/log1p (configure.ac): Likewise.
1937 * modules/pow (configure.ac): Likewise.
1938 * modules/remainder (configure.ac): Likewise.
1939 * modules/sin (configure.ac): Likewise.
1940 * modules/sinh (configure.ac): Likewise.
1941 * modules/tan (configure.ac): Likewise.
1942 * modules/tanh (configure.ac): Likewise.
1943 * modules/y0 (configure.ac): Likewise.
1944 * modules/y1 (configure.ac): Likewise.
1945 * modules/yn (configure.ac): Likewise.
1946 Suggested by Paolo Bonzini.
1948 2010-01-31 Bruno Haible <bruno@clisp.org>
1950 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1952 2010-01-31 Bruno Haible <bruno@clisp.org>
1954 Work around getdelim() bug on FreeBSD 8.0.
1955 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1956 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1958 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1960 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1961 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1962 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1964 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1966 2010-01-31 Bruno Haible <bruno@clisp.org>
1968 Work around getline() bug on FreeBSD 8.0.
1969 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1970 and a non-zero size.
1971 * tests/test-getline.c (main): Likewise.
1972 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1973 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1975 2010-01-28 Eric Blake <ebb9@byu.net>
1977 regex: fix build failure
1978 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1981 2010-01-28 Jim Meyering <meyering@redhat.com>
1983 regex: do not ignore memory allocation failure
1984 * lib/regex_internal.c (create_cd_newstate): Detect
1985 re_node_set_init_copy failure. Extracted from glibc commit
1986 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1988 regex: sync more white-space changes from libc
1989 * lib/regex_internal.c: White-space only changes.
1990 * lib/regexec.c: Likewise.
1992 regex: add many uses of __attribute_warn_unused_result__
1993 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1994 * lib/regexec.c: Likewise.
1995 Extracted from a messy glibc commit.
1997 regcomp.c: spelling and merge-artifact from glibc
1998 * lib/regcomp.c: Merge remainder of glibc's
1999 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2001 regcomp.c: sync white-space changes from glibc
2002 * lib/regcomp.c: Merge to accommodate white space
2003 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2005 regcomp.c: do not ignore internal return values
2006 * lib/regcomp.c: Do not ignore internal return values.
2007 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2008 but without its white-space changes and spelling fixes.
2010 regex_internal.h: define __attribute_warn_unused_result__
2011 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2013 maint: add a syntax-check rule to check for vulnerable Makefile.in
2014 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2016 2010-01-27 Jim Meyering <meyering@redhat.com>
2018 ncftpput-ftp: clean up spaces
2019 * build-aux/ncftpput-ftp: Make Copyright line consistent.
2020 Remove trailing blanks.
2022 2010-01-27 Simon Josefsson <simon@josefsson.org>
2024 * build-aux/git-version-gen: Fix copyright statement.
2025 * build-aux/gnupload: Likewise.
2026 * tests/test-arcfour.c: Likewise.
2027 * tests/test-arctwo.c: Likewise.
2028 * tests/test-count-one-bits.c: Likewise.
2029 * tests/test-crc.c: Likewise.
2030 * tests/test-des.c: Likewise.
2031 * tests/test-gc-arcfour.c: Likewise.
2032 * tests/test-gc-arctwo.c: Likewise.
2033 * tests/test-gc-des.c: Likewise.
2034 * tests/test-gc-hmac-md5.c: Likewise.
2035 * tests/test-gc-hmac-sha1.c: Likewise.
2036 * tests/test-gc-md2.c: Likewise.
2037 * tests/test-gc-md4.c: Likewise.
2038 * tests/test-gc-md5.c: Likewise.
2039 * tests/test-gc-pbkdf2-sha1.c: Likewise.
2040 * tests/test-gc-rijndael.c: Likewise.
2041 * tests/test-gc-sha1.c: Likewise.
2042 * tests/test-gc.c: Likewise.
2043 * tests/test-gethostname.c: Likewise.
2044 * tests/test-gettimeofday.c: Likewise.
2045 * tests/test-hash.c: Likewise.
2046 * tests/test-hmac-md5.c: Likewise.
2047 * tests/test-hmac-sha1.c: Likewise.
2048 * tests/test-md2.c: Likewise.
2049 * tests/test-md4.c: Likewise.
2050 * tests/test-md5.c: Likewise.
2051 * tests/test-memchr.c: Likewise.
2052 * tests/test-memchr2.c: Likewise.
2053 * tests/test-memcmp.c: Likewise.
2054 * tests/test-memmem.c: Likewise.
2055 * tests/test-memrchr.c: Likewise.
2056 * tests/test-rawmemchr.c: Likewise.
2057 * tests/test-read-file.c: Likewise.
2058 * tests/test-rijndael.c: Likewise.
2059 * tests/test-sockets.c: Likewise.
2060 * tests/test-strchrnul.c: Likewise.
2061 * tests/test-strstr.c: Likewise.
2062 * tests/test-strtod.c: Likewise.
2063 * build-aux/ncftpput-ftp: Likewise.
2065 2010-01-26 Eric Blake <ebb9@byu.net>
2067 ignore-value: update recommended header name
2068 * modules/ignore-value (Include): Only use <> for headers that
2071 2010-01-26 Jim Meyering <meyering@redhat.com>
2073 test-userspec.c: avoid compiler warnings
2074 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2075 and "initialization discards qualifiers..." warnings.
2076 Put the first "uid" in its own scope, and make char* members "const".
2078 2010-01-25 Bruno Haible <bruno@clisp.org>
2080 gnulib-tool: Make warning diagnostics consistent.
2081 * gnulib-tool (func_warning): New function.
2082 Use it everywhere where gnulib-tool produces output to stderr and it is
2085 2010-01-25 Bruno Haible <bruno@clisp.org>
2087 Fix test dependencies.
2088 * modules/xstrtol-tests (Depends-on): Add inttypes.
2089 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2091 2010-01-25 Pádraig Brady <P@draigBrady.com>
2093 syntax-check: detect incorrect boolean macro values in config.h
2094 * modules/maintainer-makefile (configure.ac): Parameterize the location
2095 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2096 The logic is from Eric Blake and the location indicated by Jim Meyering.
2097 Note the more natural CONFIG_HEADER name is prohibited by automake
2098 for backwards compatibility reasons.
2099 * top/maint.mk (sc_Wundef_boolean): New rule.
2101 2010-01-25 Jim Meyering <meyering@redhat.com>
2103 bootstrap: detect MacOS 10.6's shasum, too
2104 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2105 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2107 2010-01-23 Jim Meyering <meyering@redhat.com>
2109 xstrtoll: new module
2110 * modules/xstrtoll: New file.
2111 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2112 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2113 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2114 ./configure fails if you use this module and lack "long long".
2115 * modules/xstrtoll-tests: New module.
2116 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2117 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2118 new init.sh-based test framework.
2120 2010-01-24 Bruno Haible <bruno@clisp.org>
2122 Tests for module 'yn'.
2123 * modules/yn-tests: New file.
2124 * tests/test-yn.c: New file.
2126 Tests for module 'y1'.
2127 * modules/y1-tests: New file.
2128 * tests/test-y1.c: New file.
2130 Tests for module 'y0'.
2131 * modules/y0-tests: New file.
2132 * tests/test-y0.c: New file.
2134 Tests for module 'tanh'.
2135 * modules/tanh-tests: New file.
2136 * tests/test-tanh.c: New file.
2138 Tests for module 'tan'.
2139 * modules/tan-tests: New file.
2140 * tests/test-tan.c: New file.
2142 Tests for module 'sqrt'.
2143 * modules/sqrt-tests: New file.
2144 * tests/test-sqrt.c: New file.
2146 Tests for module 'sinh'.
2147 * modules/sinh-tests: New file.
2148 * tests/test-sinh.c: New file.
2150 Tests for module 'sin'.
2151 * modules/sin-tests: New file.
2152 * tests/test-sin.c: New file.
2154 Tests for module 'rint'.
2155 * modules/rint-tests: New file.
2156 * tests/test-rint.c: New file.
2158 Tests for module 'remainder'.
2159 * modules/remainder-tests: New file.
2160 * tests/test-remainder.c: New file.
2162 Tests for module 'pow'.
2163 * modules/pow-tests: New file.
2164 * tests/test-pow.c: New file.
2166 Tests for module 'nextafter'.
2167 * modules/nextafter-tests: New file.
2168 * tests/test-nextafter.c: New file.
2170 Tests for module 'modf'.
2171 * modules/modf-tests: New file.
2172 * tests/test-modf.c: New file.
2174 Tests for module 'logb'.
2175 * modules/logb-tests: New file.
2176 * tests/test-logb.c: New file.
2178 Tests for module 'log1p'.
2179 * modules/log1p-tests: New file.
2180 * tests/test-log1p.c: New file.
2182 Tests for module 'log10'.
2183 * modules/log10-tests: New file.
2184 * tests/test-log10.c: New file.
2186 Tests for module 'log'.
2187 * modules/log-tests: New file.
2188 * tests/test-log.c: New file.
2190 Tests for module 'lgamma'.
2191 * modules/lgamma-tests: New file.
2192 * tests/test-lgamma.c: New file.
2194 Tests for module 'ldexp'.
2195 * modules/ldexp-tests: New file.
2196 * tests/test-ldexp.c: New file.
2198 Tests for module 'jn'.
2199 * modules/jn-tests: New file.
2200 * tests/test-jn.c: New file.
2202 Tests for module 'j1'.
2203 * modules/j1-tests: New file.
2204 * tests/test-j1.c: New file.
2206 Tests for module 'j0'.
2207 * modules/j0-tests: New file.
2208 * tests/test-j0.c: New file.
2210 Tests for module 'hypot'.
2211 * modules/hypot-tests: New file.
2212 * tests/test-hypot.c: New file.
2214 Tests for module 'fmod'.
2215 * modules/fmod-tests: New file.
2216 * tests/test-fmod.c: New file.
2218 Tests for module 'fabs'.
2219 * modules/fabs-tests: New file.
2220 * tests/test-fabs.c: New file.
2222 Tests for module 'exp'.
2223 * modules/exp-tests: New file.
2224 * tests/test-exp.c: New file.
2226 Tests for module 'erfc'.
2227 * modules/erfc-tests: New file.
2228 * tests/test-erfc.c: New file.
2230 Tests for module 'erf'.
2231 * modules/erf-tests: New file.
2232 * tests/test-erf.c: New file.
2234 Tests for module 'cosh'.
2235 * modules/cosh-tests: New file.
2236 * tests/test-cosh.c: New file.
2238 Tests for module 'cos'.
2239 * modules/cos-tests: New file.
2240 * tests/test-cos.c: New file.
2242 Tests for module 'copysign'.
2243 * modules/copysign-tests: New file.
2244 * tests/test-copysign.c: New file.
2246 Tests for module 'cbrt'.
2247 * modules/cbrt-tests: New file.
2248 * tests/test-cbrt.c: New file.
2250 Tests for module 'atan2'.
2251 * modules/atan2-tests: New file.
2252 * tests/test-atan2.c: New file.
2254 Tests for module 'atan'.
2255 * modules/atan-tests: New file.
2256 * tests/test-atan.c: New file.
2258 Tests for module 'asin'.
2259 * modules/asin-tests: New file.
2260 * tests/test-asin.c: New file.
2262 Tests for module 'acos'.
2263 * modules/acos-tests: New file.
2264 * tests/test-acos.c: New file.
2266 2010-01-24 Bruno Haible <bruno@clisp.org>
2268 Fix tests for common <math.h> functions.
2269 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2270 code snippet that references the function pointer, rather than merely
2271 calling the function. Substitute the FUNC_LIBM variable.
2272 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2273 * modules/acos (configure.ac): Likewise.
2274 * modules/asin (configure.ac): Likewise.
2275 * modules/atan (configure.ac): Likewise.
2276 * modules/atan2 (configure.ac): Likewise.
2277 * modules/cbrt (configure.ac): Likewise.
2278 * modules/copysign (configure.ac): Likewise.
2279 * modules/cos (configure.ac): Likewise.
2280 * modules/cosh (configure.ac): Likewise.
2281 * modules/erf (configure.ac): Likewise.
2282 * modules/erfc (configure.ac): Likewise.
2283 * modules/exp (configure.ac): Likewise.
2284 * modules/fabs (configure.ac): Likewise.
2285 * modules/fmod (configure.ac): Likewise.
2286 * modules/hypot (configure.ac): Likewise.
2287 * modules/j0 (configure.ac): Likewise.
2288 * modules/j1 (configure.ac): Likewise.
2289 * modules/jn (configure.ac): Likewise.
2290 * modules/ldexp (configure.ac): Likewise.
2291 * modules/lgamma (configure.ac): Likewise.
2292 * modules/log (configure.ac): Likewise.
2293 * modules/log10 (configure.ac): Likewise.
2294 * modules/log1p (configure.ac): Likewise.
2295 * modules/logb (configure.ac): Likewise.
2296 * modules/modf (configure.ac): Likewise.
2297 * modules/nextafter (configure.ac): Likewise.
2298 * modules/pow (configure.ac): Likewise.
2299 * modules/remainder (configure.ac): Likewise.
2300 * modules/rint (configure.ac): Likewise.
2301 * modules/sin (configure.ac): Likewise.
2302 * modules/sinh (configure.ac): Likewise.
2303 * modules/tan (configure.ac): Likewise.
2304 * modules/tanh (configure.ac): Likewise.
2305 * modules/y0 (configure.ac): Likewise.
2306 * modules/y1 (configure.ac): Likewise.
2307 * modules/yn (configure.ac): Likewise.
2309 2010-01-24 Bruno Haible <bruno@clisp.org>
2311 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2312 * tests/test-acosl.c (x): New variable.
2313 (main): Store argument in x and fetch it from x.
2314 * tests/test-asinl.c (x): New variable.
2315 (main): Store argument in x and fetch it from x.
2316 * tests/test-atanl.c (x): New variable.
2317 (main): Store argument in x and fetch it from x.
2318 * tests/test-cosl.c (x): New variable.
2319 (main): Store argument in x and fetch it from x.
2320 * tests/test-expl.c (x): New variable.
2321 (main): Store argument in x and fetch it from x.
2322 * tests/test-logl.c (x): New variable.
2323 (main): Store argument in x and fetch it from x.
2324 * tests/test-sinl.c (x): New variable.
2325 (main): Store argument in x and fetch it from x.
2326 * tests/test-sqrtl.c (x): New variable.
2327 (main): Store argument in x and fetch it from x.
2328 * tests/test-tanl.c (x): New variable.
2329 (main): Store argument in x and fetch it from x.
2331 2010-01-24 Bruno Haible <bruno@clisp.org>
2333 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2334 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2335 assignments to the initial TESTS_ENVIRONMENT.
2336 * doc/gnulib.texi (Unit test modules): Document it.
2337 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2339 * modules/btowc-tests (Makefile.am): Likewise.
2340 * modules/c-stack-tests (Makefile.am): Likewise.
2341 * modules/c-strcase-tests (Makefile.am): Likewise.
2342 * modules/copy-file-tests (Makefile.am): Likewise.
2343 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2344 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2345 * modules/mbrtowc-tests (Makefile.am): Likewise.
2346 * modules/mbscasecmp-tests (Makefile.am): Likewise.
2347 * modules/mbscasestr-tests (Makefile.am): Likewise.
2348 * modules/mbschr-tests (Makefile.am): Likewise.
2349 * modules/mbscspn-tests (Makefile.am): Likewise.
2350 * modules/mbsinit-tests (Makefile.am): Likewise.
2351 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2352 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2353 * modules/mbspbrk-tests (Makefile.am): Likewise.
2354 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2355 * modules/mbsrchr-tests (Makefile.am): Likewise.
2356 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2357 * modules/mbsspn-tests (Makefile.am): Likewise.
2358 * modules/mbsstr-tests (Makefile.am): Likewise.
2359 * modules/nl_langinfo-tests (Makefile.am): Likewise.
2360 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2361 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2362 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2363 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2364 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2365 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2366 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2367 * modules/wcrtomb-tests (Makefile.am): Likewise.
2368 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2369 * modules/wcsrtombs-tests (Makefile.am): Likewise.
2370 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2371 assignments from TESTS_ENVIRONMENT.
2372 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2374 * modules/argp-version-etc-tests (Makefile.am): Likewise.
2375 * modules/atexit-tests (Makefile.am): Likewise.
2376 * modules/binary-io-tests (Makefile.am): Likewise.
2377 * modules/closein-tests (Makefile.am): Likewise.
2378 * modules/dprintf-posix-tests (Makefile.am): Likewise.
2379 * modules/exclude-tests (Makefile.am): Likewise.
2380 * modules/fflush-tests (Makefile.am): Likewise.
2381 * modules/fpending-tests (Makefile.am): Likewise.
2382 * modules/fprintf-posix-tests (Makefile.am): Likewise.
2383 * modules/freadahead-tests (Makefile.am): Likewise.
2384 * modules/freadptr-tests (Makefile.am): Likewise.
2385 * modules/freadseek-tests (Makefile.am): Likewise.
2386 * modules/fseek-tests (Makefile.am): Likewise.
2387 * modules/fseeko-tests (Makefile.am): Likewise.
2388 * modules/ftell-tests (Makefile.am): Likewise.
2389 * modules/ftello-tests (Makefile.am): Likewise.
2390 * modules/idpriv-drop-tests (Makefile.am): Likewise.
2391 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2392 * modules/lseek-tests (Makefile.am): Likewise.
2393 * modules/parse-duration-tests (Makefile.am): Likewise.
2394 * modules/perror-tests (Makefile.am): Likewise.
2395 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2396 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2397 * modules/pipe-tests (Makefile.am): Likewise.
2398 * modules/pread-tests (Makefile.am): Likewise.
2399 * modules/printf-posix-tests (Makefile.am): Likewise.
2400 * modules/select-tests (Makefile.am): Likewise.
2401 * modules/sigpipe-tests (Makefile.am): Likewise.
2402 * modules/tsearch-tests (Makefile.am): Likewise.
2403 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2404 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2405 * modules/uniname/uniname-tests (Makefile.am): Likewise.
2406 * modules/uniwidth/width-tests (Makefile.am): Likewise.
2407 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2408 * modules/version-etc-tests (Makefile.am): Likewise.
2409 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2410 * modules/vprintf-posix-tests (Makefile.am): Likewise.
2411 * modules/xalloc-die-tests (Makefile.am): Likewise.
2412 * modules/xprintf-posix-tests (Makefile.am): Likewise.
2413 * modules/xstrtoimax-tests (Makefile.am): Likewise.
2414 * modules/xstrtol-tests (Makefile.am): Likewise.
2415 * modules/xstrtoumax-tests (Makefile.am): Likewise.
2416 * modules/yesno-tests (Makefile.am): Likewise.
2417 Suggested by Jim Meyering.
2419 2010-01-24 Bruno Haible <bruno@clisp.org>
2422 * doc/gnulib.texi (Writing modules): New chapter.
2423 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2426 2010-01-24 Jim Meyering <meyering@redhat.com>
2428 maint.mk: do not prepend "./" after filtering
2429 * top/maint.mk (_prepend_srcdir_prefix): New variable
2430 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2431 "./" when $(srcdir) is ".".
2433 define STREQ(a,b) consistently, removing useless parentheses
2434 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2435 since the only risk is that "a" or "b" contains an unparenthesized
2436 comma, but if either did that, STREQ would have 3 or more arguments.
2437 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2438 * lib/fts.c (STREQ): Remove unnecessary parentheses.
2439 * lib/hash-triple.c (STREQ): Likewise.
2440 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2441 * lib/getugroups.c (STREQ): Likewise.
2443 2010-01-23 Jim Meyering <meyering@redhat.com>
2445 maint.mk: fix syntax-check in a non-srcdir build directory
2446 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2447 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
2449 2010-01-22 Jim Meyering <meyering@redhat.com>
2451 userspec: add unit tests
2452 * tests/test-userspec.c: New file.
2453 * modules/userspec-tests: Likewise.
2455 2010-01-21 Jim Meyering <meyering@redhat.com>
2457 maint.mk: handle source file names containing "." robustly
2458 * top/maint.mk (_dot_escaped_srcdir): Define.
2459 (VC_LIST): Use it in LHS of sed substitution.
2461 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
2463 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2464 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2465 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2466 from a non-srcdir build.
2468 2010-01-20 Eric Blake <ebb9@byu.net>
2470 warn-on-use: use instead of link-warning
2471 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2472 * modules/unistd (Depends-on, Makefile.am): Likewise.
2473 * modules/arpa_inet (Depends-on): Replace link-warning with
2475 (Makefile.am): Update rules accordingly.
2476 * modules/ctype (Depends-on, Makefile.am): Likewise.
2477 * modules/dirent (Depends-on, Makefile.am): Likewise.
2478 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2479 * modules/inttypes (Depends-on, Makefile.am): Likewise.
2480 * modules/langinfo (Depends-on, Makefile.am): Likewise.
2481 * modules/locale (Depends-on, Makefile.am): Likewise.
2482 * modules/math (Depends-on, Makefile.am): Likewise.
2483 * modules/search (Depends-on, Makefile.am): Likewise.
2484 * modules/signal (Depends-on, Makefile.am): Likewise.
2485 * modules/spawn (Depends-on, Makefile.am): Likewise.
2486 * modules/stdlib (Depends-on, Makefile.am): Likewise.
2487 * modules/string (Depends-on, Makefile.am): Likewise.
2488 * modules/strings (Depends-on, Makefile.am): Likewise.
2489 * modules/sys_file (Depends-on, Makefile.am): Likewise.
2490 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2491 * modules/sys_select (Depends-on, Makefile.am): Likewise.
2492 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2493 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2494 * modules/sys_times (Depends-on, Makefile.am): Likewise.
2495 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2496 * modules/wchar (Depends-on, Makefile.am): Likewise.
2497 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2499 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2500 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2501 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2502 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2503 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2504 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2505 * m4/math_h.m4 (gl_MATH_H): Likewise.
2506 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2507 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2508 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2509 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2510 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2511 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2512 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2513 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2514 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2515 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2516 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2517 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2518 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2519 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2520 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2521 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2522 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2524 * lib/ctype.in.h: Likewise.
2525 * lib/dirent.in.h: Likewise.
2526 * lib/fcntl.in.h: Likewise.
2527 * lib/inttypes.in.h: Likewise.
2528 * lib/langinfo.in.h: Likewise.
2529 * lib/locale.in.h: Likewise.
2530 * lib/math.in.h: Likewise.
2531 * lib/search.in.h: Likewise.
2532 * lib/signal.in.h: Likewise.
2533 * lib/spawn.in.h: Likewise.
2534 * lib/stdio.in.h: Likewise.
2535 * lib/stdlib.in.h: Likewise.
2536 * lib/string.in.h: Likewise.
2537 * lib/strings.in.h: Likewise.
2538 * lib/sys_file.in.h: Likewise.
2539 * lib/sys_ioctl.in.h: Likewise.
2540 * lib/sys_select.in.h: Likewise.
2541 * lib/sys_socket.in.h: Likewise.
2542 * lib/sys_stat.in.h: Likewise.
2543 * lib/sys_times.in.h: Likewise.
2544 * lib/sys_utsname.in.h: Likewise.
2545 * lib/unistd.in.h: Likewise.
2546 * lib/wchar.in.h: Likewise.
2548 2010-01-20 Bruno Haible <bruno@clisp.org>
2550 Avoid duplicate -lm.
2551 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2552 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2553 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2554 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2555 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2556 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2557 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2558 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2559 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2560 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2561 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2562 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2563 Reported by Paolo Bonzini.
2565 2010-01-19 Bruno Haible <bruno@clisp.org>
2567 langinfo, nl_langinfo: Relicense under LGPLv2+.
2568 * modules/langinfo (License): Change to LGPLv2+.
2569 * modules/nl_langinfo (License): Likewise.
2570 Patch by David Lutterkort <lutter@redhat.com>.
2572 2010-01-19 Bruno Haible <bruno@clisp.org>
2574 Avoid compilation error with cc on OSF/1 5.1.
2575 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2576 statement, not before.
2577 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2579 2010-01-18 Bruno Haible <bruno@clisp.org>
2581 Avoid a link error due to the __printf__ symbol.
2582 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2584 (__format__, __printf__): Remove definitions.
2585 * lib/argp-fmtstream.h: Likewise.
2586 * lib/argp.h: Likewise.
2587 * lib/error.h: Likewise.
2588 * lib/vasnprintf.h: Likewise.
2589 * lib/xprintf.h: Likewise.
2590 * lib/xvasprintf.h: Likewise.
2591 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2593 2010-01-18 Bruno Haible <bruno@clisp.org>
2595 Tests for module 'tanl'.
2596 * modules/tanl-tests: New file.
2597 * tests/test-tanl.c: New file.
2599 Tests for module 'sqrtl'.
2600 * modules/sqrtl-tests: New file.
2601 * tests/test-sqrtl.c: New file.
2603 Tests for module 'sinl'.
2604 * modules/sinl-tests: New file.
2605 * tests/test-sinl.c: New file.
2607 Tests for module 'logl'.
2608 * modules/logl-tests: New file.
2609 * tests/test-logl.c: New file.
2611 Tests for module 'expl'.
2612 * modules/expl-tests: New file.
2613 * tests/test-expl.c: New file.
2615 Tests for module 'cosl'.
2616 * modules/cosl-tests: New file.
2617 * tests/test-cosl.c: New file.
2619 Tests for module 'atanl'.
2620 * modules/atanl-tests: New file.
2621 * tests/test-atanl.c: New file.
2623 Tests for module 'asinl'.
2624 * modules/asinl-tests: New file.
2625 * tests/test-asinl.c: New file.
2627 Tests for module 'acosl'.
2628 * modules/acosl-tests: New file.
2629 * tests/test-acosl.c: New file.
2631 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2632 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2633 tanl): Use the standard gnulib idiom.
2634 * lib/cosl.c: Don't include trigl.c and sincosl.c.
2635 * lib/sinl.c: Likewise.
2636 * lib/tanl.c: Don't include trigl.c.
2637 (kernel_tanl): Make static.
2638 * lib/sincosl.c: Include trigl.h first.
2639 * lib/trigl.c: Likewise.
2640 * m4/acosl.m4: New file.
2641 * m4/asinl.m4: New file.
2642 * m4/atanl.m4: New file.
2643 * m4/cosl.m4: New file.
2644 * m4/expl.m4: New file.
2645 * m4/logl.m4: New file.
2646 * m4/sinl.m4: New file.
2647 * m4/sqrtl.m4: New file.
2648 * m4/tanl.m4: New file.
2649 * m4/mathl.m4: Remove file.
2650 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2651 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2652 Don't initialize GNULIB_MATHL.
2653 * modules/acosl: New file.
2654 * modules/asinl: New file.
2655 * modules/atanl: New file.
2656 * modules/cosl: New file.
2657 * modules/expl: New file.
2658 * modules/logl: New file.
2659 * modules/sinl: New file.
2660 * modules/sqrtl: New file.
2661 * modules/tanl: New file.
2662 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2663 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2664 substitute GNULIB_MATHL.
2665 * modules/mathl: Rewritten.
2666 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2667 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2668 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2669 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2670 * doc/posix-functions/expl.texi: Mention the 'expl' module.
2671 * doc/posix-functions/logl.texi: Mention the 'logl' module.
2672 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2673 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2674 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2676 2010-01-18 Bruno Haible <bruno@clisp.org>
2678 sqrt: Make gl_FUNC_SQRT requirable.
2679 * m4/sqrt.m4: New file.
2680 * modules/sqrt (Files): Add it.
2681 (configure.ac): Invoke gl_FUNC_SQRT.
2683 2010-01-18 Bruno Haible <bruno@clisp.org>
2685 New modules for common <math.h> functions.
2686 * m4/mathfunc.m4: New file.
2687 * modules/acos: New file.
2688 * modules/asin: New file.
2689 * modules/atan: New file.
2690 * modules/atan2: New file.
2691 * modules/cbrt: New file.
2692 * modules/copysign: New file.
2693 * modules/cos: New file.
2694 * modules/cosh: New file.
2695 * modules/erf: New file.
2696 * modules/erfc: New file.
2697 * modules/exp: New file.
2698 * modules/fabs: New file.
2699 * modules/fmod: New file.
2700 * modules/hypot: New file.
2701 * modules/j0: New file.
2702 * modules/j1: New file.
2703 * modules/jn: New file.
2704 * modules/ldexp: New file.
2705 * modules/lgamma: New file.
2706 * modules/log: New file.
2707 * modules/log10: New file.
2708 * modules/log1p: New file.
2709 * modules/logb: New file.
2710 * modules/modf: New file.
2711 * modules/nextafter: New file.
2712 * modules/pow: New file.
2713 * modules/remainder: New file.
2714 * modules/rint: New file.
2715 * modules/sin: New file.
2716 * modules/sinh: New file.
2717 * modules/sqrt: New file.
2718 * modules/tan: New file.
2719 * modules/tanh: New file.
2720 * modules/y0: New file.
2721 * modules/y1: New file.
2722 * modules/yn: New file.
2723 * doc/posix-functions/acos.texi: Mention the 'acos' module.
2724 * doc/posix-functions/asin.texi: Mention the 'asin' module.
2725 * doc/posix-functions/atan.texi: Mention the 'atan' module.
2726 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2727 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2728 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2729 * doc/posix-functions/cos.texi: Mention the 'cos' module.
2730 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2731 * doc/posix-functions/erf.texi: Mention the 'erf' module.
2732 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2733 * doc/posix-functions/exp.texi: Mention the 'exp' module.
2734 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2735 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2736 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2737 * doc/posix-functions/j0.texi: Mention the 'j0' module.
2738 * doc/posix-functions/j1.texi: Mention the 'j1' module.
2739 * doc/posix-functions/jn.texi: Mention the 'jn' module.
2740 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2741 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2742 * doc/posix-functions/log.texi: Mention the 'log' module.
2743 * doc/posix-functions/log10.texi: Mention the 'log10' module.
2744 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2745 * doc/posix-functions/logb.texi: Mention the 'logb' module.
2746 * doc/posix-functions/modf.texi: Mention the 'modf' module.
2747 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2748 * doc/posix-functions/pow.texi: Mention the 'pow' module.
2749 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2750 * doc/posix-functions/rint.texi: Mention the 'rint' module.
2751 * doc/posix-functions/sin.texi: Mention the 'sin' module.
2752 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2753 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2754 * doc/posix-functions/tan.texi: Mention the 'tan' module.
2755 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2756 * doc/posix-functions/y0.texi: Mention the 'y0' module.
2757 * doc/posix-functions/y1.texi: Mention the 'y1' module.
2758 * doc/posix-functions/yn.texi: Mention the 'yn' module.
2760 2010-01-18 Jim Meyering <meyering@redhat.com>
2762 ignore-value: relax license to LGPLv2+
2763 * modules/ignore-value (License): Relax to LGPLv2+.
2765 getdate: don't leak when TZ contains two or more '"'s
2766 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2767 double quote in TZ after the first one.
2769 readtokens: do not leak internal token_lengths buffer
2770 * lib/readtokens.c (readtokens): Free the local, lengths,
2771 when the supplied "token_lengths" parameter is NULL.
2773 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2775 Fix a couple of missing LIBTHREAD link failures on AIX.
2776 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2778 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2780 Link test-poll against INET_PTON_LIB.
2781 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2782 for inet_pton on Solaris 10.
2784 2010-01-17 Bruno Haible <bruno@clisp.org>
2786 unistdio/*-sprintf: Fix typo in module description.
2787 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2788 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2789 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2790 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2791 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2792 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2793 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2794 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2796 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2798 gnulib-tool: fix filelist for AIX, HP-UX ksh.
2799 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2800 variables in shell case patterns, for AIX and HP-UX ksh.
2802 Split large sed scripts, for HP-UX sed.
2803 * modules/stdio: Split sed scripts around 50 sed commands,
2804 to avoid HP-UX limit of 99 commands, in the near future.
2805 * modules/string: Likewise.
2806 * modules/unistd: Likewise.
2808 gnulib-tool: avoid writing in the current directory.
2809 * gnulib-tool (func_emit_lib_Makefile_am)
2810 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2811 not in the current directory, so concurrent gnulib-tool
2812 instances do not interfere.
2814 2010-01-16 Jim Meyering <meyering@redhat.com>
2816 doc: update users.txt
2817 * users.txt: Add grep.
2818 (diffutils, gzip): Update URLs.
2820 2010-01-12 Bruno Haible <bruno@clisp.org>
2822 posix_spawn: Avoid test failure on Cygwin.
2823 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2825 Reported by Simon Josefsson.
2827 2010-01-12 Bruno Haible <bruno@clisp.org>
2829 * tests/test-cond.c (main): When skipping the test, show the reason.
2831 2010-01-12 Simon Josefsson <simon@josefsson.org>
2833 * lib/striconv.c (str_cd_iconv): Avoid if before free.
2835 2010-01-12 Simon Josefsson <simon@josefsson.org>
2837 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2838 VC_LIST_ALWAYS_EXCLUDE_REGEX.
2840 2010-01-12 Eric Blake <ebb9@byu.net>
2842 build: guarantee AS_VAR_IF
2843 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2844 (gl_AS_VAR_IF): Move...
2845 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2846 Reported by Simon Josefsson.
2848 2010-01-12 Simon Josefsson <simon@josefsson.org>
2850 * lib/stdio.in.h: Fix typo.
2852 2010-01-12 Simon Josefsson <simon@josefsson.org>
2854 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2857 2010-01-12 Simon Josefsson <simon@josefsson.org>
2859 * tests/test-xalloc-die.sh: Use $EXEEXT.
2861 2010-01-12 Simon Josefsson <simon@josefsson.org>
2862 Bruno Haible <bruno@clisp.org>
2864 getlogin, getlogin_r: Avoid test failure.
2865 * tests/test-getlogin.c: Include <stdio.h>.
2866 (main): Skip the test when the function fails because stdin is not a
2868 * tests/test-getlogin_r.c: Include <stdio.h>.
2869 (main): Skip the test when the function fails because stdin is not a
2872 2010-01-11 Eric Blake <ebb9@byu.net>
2874 tests: avoid more large file warnings
2875 * tests/test-fflush.c: Avoid warning about ftell use.
2876 * tests/test-fseek.c: Avoid warning about fseek use.
2878 2010-01-10 Bruno Haible <bruno@clisp.org>
2880 nproc: Work better on Linux when /proc and /sys are not mounted.
2881 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2882 as lower bound when, on glibc/Linux systems,
2883 sysconf (_SC_NPROCESSORS_CONF) returns 1.
2884 Suggested by Pádraig Brady <P@draigbrady.com>.
2885 Reported by Dmitry V. Levin <ldv@altlinux.org>.
2888 * lib/nproc.c (num_processors_via_affinity_mask): New function,
2889 extracted from num_processors.
2890 (num_processors): Call it.
2892 2010-01-11 Jim Meyering <meyering@redhat.com>
2894 utimecmp: avoid new warning from upcoming gcc-4.5.0
2895 * lib/utimecmp.c (BILLION): Define using #define rather than an
2896 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2898 2010-01-11 Eric Blake <ebb9@byu.net>
2900 math: add portability warnings for classification macros
2901 * modules/math (Depends-on): Add warn-on-use.
2902 (Makefile.am): Provide new substitutions.
2903 * m4/math_h.m4 (gl_MATH_H): Require inline.
2904 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2905 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2906 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2909 unistd: warn on use of environ without module
2910 * modules/unistd (Depends-on): Add warn-on-use.
2911 (Makefile.am): Provide new substitutions.
2912 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2913 * lib/unistd.in.h (environ): Wrap with a warning helper function.
2915 stdio: warn on suspicious uses
2916 * modules/stdio (Depends-on): Add warn-on-use.
2917 (Makefile.am): Provide new substitutions.
2918 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2920 * lib/stdio.in.h (gets): Always warn on use.
2921 (fseek, ftell): Adjust when warnings are issued, and honor
2922 _GL_NO_LARGE_FILES as a way to silence the warning.
2923 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2924 any warning about large file offsets.
2925 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2926 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2927 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2928 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2929 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2930 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2931 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2932 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2934 warn-on-use: new module
2935 * modules/warn-on-use: New file.
2936 * build-aux/warn-on-use.h: Likewise.
2937 * m4/warn-on-use.m4: Likewise.
2938 * MODULES.html.sh (Support for building): Mention it.
2940 2010-01-10 Bruno Haible <bruno@clisp.org>
2942 Tests for module 'unistr/u32-strdup'.
2943 * modules/unistr/u32-strdup-tests: New file.
2944 * tests/unistr/test-u32-strdup.c: New file.
2946 Tests for module 'unistr/u16-strdup'.
2947 * modules/unistr/u16-strdup-tests: New file.
2948 * tests/unistr/test-u16-strdup.c: New file.
2950 Tests for module 'unistr/u8-strdup'.
2951 * modules/unistr/u8-strdup-tests: New file.
2952 * tests/unistr/test-u8-strdup.c: New file.
2953 * tests/unistr/test-strdup.h: New file.
2955 Tests for module 'unistr/u32-strncmp'.
2956 * modules/unistr/u32-strncmp-tests: New file.
2957 * tests/unistr/test-u32-strncmp.c: New file.
2959 Tests for module 'unistr/u16-strncmp'.
2960 * modules/unistr/u16-strncmp-tests: New file.
2961 * tests/unistr/test-u16-strncmp.c: New file.
2963 Tests for module 'unistr/u8-strncmp'.
2964 * modules/unistr/u8-strncmp-tests: New file.
2965 * tests/unistr/test-u8-strncmp.c: New file.
2966 * tests/unistr/test-strncmp.h: New file.
2968 Tests for module 'unistr/u32-strcoll'.
2969 * modules/unistr/u32-strcoll-tests: New file.
2970 * tests/unistr/test-u32-strcoll.c: New file.
2972 Tests for module 'unistr/u16-strcoll'.
2973 * modules/unistr/u16-strcoll-tests: New file.
2974 * tests/unistr/test-u16-strcoll.c: New file.
2976 Tests for module 'unistr/u8-strcoll'.
2977 * modules/unistr/u8-strcoll-tests: New file.
2978 * tests/unistr/test-u8-strcoll.c: New file.
2980 Tests for module 'unistr/u32-strcmp'.
2981 * modules/unistr/u32-strcmp-tests: New file.
2982 * tests/unistr/test-u32-strcmp.c: New file.
2983 * tests/unistr/test-u32-strcmp.h: New file.
2985 Tests for module 'unistr/u16-strcmp'.
2986 * modules/unistr/u16-strcmp-tests: New file.
2987 * tests/unistr/test-u16-strcmp.c: New file.
2988 * tests/unistr/test-u16-strcmp.h: New file.
2990 Tests for module 'unistr/u8-strcmp'.
2991 * modules/unistr/u8-strcmp-tests: New file.
2992 * tests/unistr/test-u8-strcmp.c: New file.
2993 * tests/unistr/test-u8-strcmp.h: New file.
2994 * tests/unistr/test-strcmp.h: New file.
2996 Tests for module 'unistr/u32-strncat'.
2997 * modules/unistr/u32-strncat-tests: New file.
2998 * tests/unistr/test-u32-strncat.c: New file.
3000 Tests for module 'unistr/u16-strncat'.
3001 * modules/unistr/u16-strncat-tests: New file.
3002 * tests/unistr/test-u16-strncat.c: New file.
3004 Tests for module 'unistr/u8-strncat'.
3005 * modules/unistr/u8-strncat-tests: New file.
3006 * tests/unistr/test-u8-strncat.c: New file.
3007 * tests/unistr/test-strncat.h: New file.
3009 Tests for module 'unistr/u32-strcat'.
3010 * modules/unistr/u32-strcat-tests: New file.
3011 * tests/unistr/test-u32-strcat.c: New file.
3013 Tests for module 'unistr/u16-strcat'.
3014 * modules/unistr/u16-strcat-tests: New file.
3015 * tests/unistr/test-u16-strcat.c: New file.
3017 Tests for module 'unistr/u8-strcat'.
3018 * modules/unistr/u8-strcat-tests: New file.
3019 * tests/unistr/test-u8-strcat.c: New file.
3020 * tests/unistr/test-strcat.h: New file.
3022 Tests for module 'unistr/u32-stpncpy'.
3023 * modules/unistr/u32-stpncpy-tests: New file.
3024 * tests/unistr/test-u32-stpncpy.c: New file.
3026 Tests for module 'unistr/u16-stpncpy'.
3027 * modules/unistr/u16-stpncpy-tests: New file.
3028 * tests/unistr/test-u16-stpncpy.c: New file.
3030 Tests for module 'unistr/u8-stpncpy'.
3031 * modules/unistr/u8-stpncpy-tests: New file.
3032 * tests/unistr/test-u8-stpncpy.c: New file.
3033 * tests/unistr/test-stpncpy.h: New file.
3035 Tests for module 'unistr/u32-strncpy'.
3036 * modules/unistr/u32-strncpy-tests: New file.
3037 * tests/unistr/test-u32-strncpy.c: New file.
3039 Tests for module 'unistr/u16-strncpy'.
3040 * modules/unistr/u16-strncpy-tests: New file.
3041 * tests/unistr/test-u16-strncpy.c: New file.
3043 Tests for module 'unistr/u8-strncpy'.
3044 * modules/unistr/u8-strncpy-tests: New file.
3045 * tests/unistr/test-u8-strncpy.c: New file.
3046 * tests/unistr/test-strncpy.h: New file.
3048 Tests for module 'unistr/u32-stpcpy'.
3049 * modules/unistr/u32-stpcpy-tests: New file.
3050 * tests/unistr/test-u32-stpcpy.c: New file.
3052 Tests for module 'unistr/u16-stpcpy'.
3053 * modules/unistr/u16-stpcpy-tests: New file.
3054 * tests/unistr/test-u16-stpcpy.c: New file.
3056 Tests for module 'unistr/u8-stpcpy'.
3057 * modules/unistr/u8-stpcpy-tests: New file.
3058 * tests/unistr/test-u8-stpcpy.c: New file.
3059 * tests/unistr/test-stpcpy.h: New file.
3061 Tests for module 'unistr/u32-strcpy'.
3062 * modules/unistr/u32-strcpy-tests: New file.
3063 * tests/unistr/test-u32-strcpy.c: New file.
3065 Tests for module 'unistr/u16-strcpy'.
3066 * modules/unistr/u16-strcpy-tests: New file.
3067 * tests/unistr/test-u16-strcpy.c: New file.
3069 Tests for module 'unistr/u8-strcpy'.
3070 * modules/unistr/u8-strcpy-tests: New file.
3071 * tests/unistr/test-u8-strcpy.c: New file.
3072 * tests/unistr/test-strcpy.h: New file.
3074 Tests for module 'unistr/u32-strnlen'.
3075 * modules/unistr/u32-strnlen-tests: New file.
3076 * tests/unistr/test-u32-strnlen.c: New file.
3078 Tests for module 'unistr/u16-strnlen'.
3079 * modules/unistr/u16-strnlen-tests: New file.
3080 * tests/unistr/test-u16-strnlen.c: New file.
3082 Tests for module 'unistr/u8-strnlen'.
3083 * modules/unistr/u8-strnlen-tests: New file.
3084 * tests/unistr/test-u8-strnlen.c: New file.
3085 * tests/unistr/test-strnlen.h: New file.
3087 Tests for module 'unistr/u32-strlen'.
3088 * modules/unistr/u32-strlen-tests: New file.
3089 * tests/unistr/test-u32-strlen.c: New file.
3091 Tests for module 'unistr/u16-strlen'.
3092 * modules/unistr/u16-strlen-tests: New file.
3093 * tests/unistr/test-u16-strlen.c: New file.
3095 Tests for module 'unistr/u8-strlen'.
3096 * modules/unistr/u8-strlen-tests: New file.
3097 * tests/unistr/test-u8-strlen.c: New file.
3099 Tests for module 'unistr/u32-prev'.
3100 * modules/unistr/u32-prev-tests: New file.
3101 * tests/unistr/test-u32-prev.c: New file.
3103 Tests for module 'unistr/u16-prev'.
3104 * modules/unistr/u16-prev-tests: New file.
3105 * tests/unistr/test-u16-prev.c: New file.
3107 Tests for module 'unistr/u8-prev'.
3108 * modules/unistr/u8-prev-tests: New file.
3109 * tests/unistr/test-u8-prev.c: New file.
3111 Tests for module 'unistr/u32-next'.
3112 * modules/unistr/u32-next-tests: New file.
3113 * tests/unistr/test-u32-next.c: New file.
3115 Tests for module 'unistr/u16-next'.
3116 * modules/unistr/u16-next-tests: New file.
3117 * tests/unistr/test-u16-next.c: New file.
3119 Tests for module 'unistr/u8-next'.
3120 * modules/unistr/u8-next-tests: New file.
3121 * tests/unistr/test-u8-next.c: New file.
3123 Tests for module 'unistr/u32-strmbtouc'.
3124 * modules/unistr/u32-strmbtouc-tests: New file.
3125 * tests/unistr/test-u32-strmbtouc.c: New file.
3127 Tests for module 'unistr/u16-strmbtouc'.
3128 * modules/unistr/u16-strmbtouc-tests: New file.
3129 * tests/unistr/test-u16-strmbtouc.c: New file.
3131 Tests for module 'unistr/u8-strmbtouc'.
3132 * modules/unistr/u8-strmbtouc-tests: New file.
3133 * tests/unistr/test-u8-strmbtouc.c: New file.
3135 Tests for module 'unistr/u32-strmblen'.
3136 * modules/unistr/u32-strmblen-tests: New file.
3137 * tests/unistr/test-u32-strmblen.c: New file.
3139 Tests for module 'unistr/u16-strmblen'.
3140 * modules/unistr/u16-strmblen-tests: New file.
3141 * tests/unistr/test-u16-strmblen.c: New file.
3143 Tests for module 'unistr/u8-strmblen'.
3144 * modules/unistr/u8-strmblen-tests: New file.
3145 * tests/unistr/test-u8-strmblen.c: New file.
3147 Tests for module 'unistr/u32-cpy-alloc'.
3148 * modules/unistr/u32-cpy-alloc-tests: New file.
3149 * tests/unistr/test-u32-cpy-alloc.c: New file.
3151 Tests for module 'unistr/u16-cpy-alloc'.
3152 * modules/unistr/u16-cpy-alloc-tests: New file.
3153 * tests/unistr/test-u16-cpy-alloc.c: New file.
3155 Tests for module 'unistr/u8-cpy-alloc'.
3156 * modules/unistr/u8-cpy-alloc-tests: New file.
3157 * tests/unistr/test-u8-cpy-alloc.c: New file.
3158 * tests/unistr/test-cpy-alloc.h: New file.
3160 Tests for module 'unistr/u32-mbsnlen'.
3161 * modules/unistr/u32-mbsnlen-tests: New file.
3162 * tests/unistr/test-u32-mbsnlen.c: New file.
3164 Tests for module 'unistr/u16-mbsnlen'.
3165 * modules/unistr/u16-mbsnlen-tests: New file.
3166 * tests/unistr/test-u16-mbsnlen.c: New file.
3168 Tests for module 'unistr/u8-mbsnlen'.
3169 * modules/unistr/u8-mbsnlen-tests: New file.
3170 * tests/unistr/test-u8-mbsnlen.c: New file.
3172 Tests for module 'unistr/u32-chr'.
3173 * modules/unistr/u32-chr-tests: New file.
3174 * tests/unistr/test-u32-chr.c: New file.
3176 Tests for module 'unistr/u16-chr'.
3177 * modules/unistr/u16-chr-tests: New file.
3178 * tests/unistr/test-u16-chr.c: New file.
3180 Tests for module 'unistr/u8-chr'.
3181 * modules/unistr/u8-chr-tests: New file.
3182 * tests/unistr/test-u8-chr.c: New file.
3183 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3185 Tests for module 'unistr/u32-cmp2'.
3186 * modules/unistr/u32-cmp2-tests: New file.
3187 * tests/unistr/test-u32-cmp2.c: New file.
3189 Tests for module 'unistr/u16-cmp2'.
3190 * modules/unistr/u16-cmp2-tests: New file.
3191 * tests/unistr/test-u16-cmp2.c: New file.
3193 Tests for module 'unistr/u8-cmp2'.
3194 * modules/unistr/u8-cmp2-tests: New file.
3195 * tests/unistr/test-u8-cmp2.c: New file.
3196 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3198 Tests for module 'unistr/u32-cmp'.
3199 * modules/unistr/u32-cmp-tests: New file.
3200 * tests/unistr/test-u32-cmp.c: New file.
3202 Tests for module 'unistr/u16-cmp'.
3203 * modules/unistr/u16-cmp-tests: New file.
3204 * tests/unistr/test-u16-cmp.c: New file.
3206 Tests for module 'unistr/u8-cmp'.
3207 * modules/unistr/u8-cmp-tests: New file.
3208 * tests/unistr/test-u8-cmp.c: New file.
3209 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3211 Tests for module 'unistr/u32-set'.
3212 * modules/unistr/u32-set-tests: New file.
3213 * tests/unistr/test-u32-set.c: New file.
3215 Tests for module 'unistr/u16-set'.
3216 * modules/unistr/u16-set-tests: New file.
3217 * tests/unistr/test-u16-set.c: New file.
3219 Tests for module 'unistr/u8-set'.
3220 * modules/unistr/u8-set-tests: New file.
3221 * tests/unistr/test-u8-set.c: New file.
3222 * tests/unistr/test-set.h: New file.
3224 Tests for module 'unistr/u32-move'.
3225 * modules/unistr/u32-move-tests: New file.
3226 * tests/unistr/test-u32-move.c: New file.
3228 Tests for module 'unistr/u16-move'.
3229 * modules/unistr/u16-move-tests: New file.
3230 * tests/unistr/test-u16-move.c: New file.
3232 Tests for module 'unistr/u8-move'.
3233 * modules/unistr/u8-move-tests: New file.
3234 * tests/unistr/test-u8-move.c: New file.
3235 * tests/unistr/test-move.h: New file.
3237 Tests for module 'unistr/u32-cpy'.
3238 * modules/unistr/u32-cpy-tests: New file.
3239 * tests/unistr/test-u32-cpy.c: New file.
3241 Tests for module 'unistr/u16-cpy'.
3242 * modules/unistr/u16-cpy-tests: New file.
3243 * tests/unistr/test-u16-cpy.c: New file.
3245 Tests for module 'unistr/u8-cpy'.
3246 * modules/unistr/u8-cpy-tests: New file.
3247 * tests/unistr/test-u8-cpy.c: New file.
3248 * tests/unistr/test-cpy.h: New file.
3250 2010-01-09 Bruno Haible <bruno@clisp.org>
3252 Tests for module 'unistr/u32-uctomb'.
3253 * modules/unistr/u32-uctomb-tests: New file.
3254 * tests/unistr/test-u32-uctomb.c: New file.
3256 Tests for module 'unistr/u16-uctomb'.
3257 * modules/unistr/u16-uctomb-tests: New file.
3258 * tests/unistr/test-u16-uctomb.c: New file.
3260 Tests for module 'unistr/u8-uctomb'.
3261 * modules/unistr/u8-uctomb-tests: New file.
3262 * tests/unistr/test-u8-uctomb.c: New file.
3264 Tests for module 'unistr/u32-mbtoucr'.
3265 * modules/unistr/u32-mbtoucr-tests: New file.
3266 * tests/unistr/test-u32-mbtoucr.c: New file.
3268 Tests for module 'unistr/u16-mbtoucr'.
3269 * modules/unistr/u16-mbtoucr-tests: New file.
3270 * tests/unistr/test-u16-mbtoucr.c: New file.
3272 Tests for module 'unistr/u8-mbtoucr'.
3273 * modules/unistr/u8-mbtoucr-tests: New file.
3274 * tests/unistr/test-u8-mbtoucr.c: New file.
3276 Tests for module 'unistr/u32-mbtouc'.
3277 * modules/unistr/u32-mbtouc-tests: New file.
3278 * tests/unistr/test-u32-mbtouc.c: New file.
3280 Tests for module 'unistr/u16-mbtouc'.
3281 * modules/unistr/u16-mbtouc-tests: New file.
3282 * tests/unistr/test-u16-mbtouc.c: New file.
3284 Tests for module 'unistr/u8-mbtouc'.
3285 * modules/unistr/u8-mbtouc-tests: New file.
3286 * tests/unistr/test-u8-mbtouc.c: New file.
3288 Tests for module 'unistr/u32-mbtouc-unsafe'.
3289 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3290 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3291 * tests/unistr/test-u32-mbtouc.h: New file.
3293 Tests for module 'unistr/u16-mbtouc-unsafe'.
3294 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3295 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3296 * tests/unistr/test-u16-mbtouc.h: New file.
3298 Tests for module 'unistr/u8-mbtouc-unsafe'.
3299 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3300 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3301 * tests/unistr/test-u8-mbtouc.h: New file.
3303 Tests for module 'unistr/u32-mblen'.
3304 * modules/unistr/u32-mblen-tests: New file.
3305 * tests/unistr/test-u32-mblen.c: New file.
3307 Tests for module 'unistr/u16-mblen'.
3308 * modules/unistr/u16-mblen-tests: New file.
3309 * tests/unistr/test-u16-mblen.c: New file.
3311 Tests for module 'unistr/u8-mblen'.
3312 * modules/unistr/u8-mblen-tests: New file.
3313 * tests/unistr/test-u8-mblen.c: New file.
3315 Tests for module 'unistr/u32-to-u16'.
3316 * modules/unistr/u32-to-u16-tests: New file.
3317 * tests/unistr/test-u32-to-u16.c: New file.
3319 Tests for module 'unistr/u32-to-u8'.
3320 * modules/unistr/u32-to-u8-tests: New file.
3321 * tests/unistr/test-u32-to-u8.c: New file.
3323 Tests for module 'unistr/u16-to-u32'.
3324 * modules/unistr/u16-to-u32-tests: New file.
3325 * tests/unistr/test-u16-to-u32.c: New file.
3327 Tests for module 'unistr/u16-to-u8'.
3328 * modules/unistr/u16-to-u8-tests: New file.
3329 * tests/unistr/test-u16-to-u8.c: New file.
3331 Tests for module 'unistr/u8-to-u32'.
3332 * modules/unistr/u8-to-u32-tests: New file.
3333 * tests/unistr/test-u8-to-u32.c: New file.
3335 Tests for module 'unistr/u8-to-u16'.
3336 * modules/unistr/u8-to-u16-tests: New file.
3337 * tests/unistr/test-u8-to-u16.c: New file.
3339 Tests for module 'unistr/u32-check'.
3340 * modules/unistr/u32-check-tests: New file.
3341 * tests/unistr/test-u32-check.c: New file.
3343 Tests for module 'unistr/u16-check'.
3344 * modules/unistr/u16-check-tests: New file.
3345 * tests/unistr/test-u16-check.c: New file.
3347 Tests for module 'unistr/u8-check'.
3348 * modules/unistr/u8-check-tests: New file.
3349 * tests/unistr/test-u8-check.c: New file.
3351 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3352 (category_equals): New function.
3353 (main): Add more tests.
3354 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3356 * tests/unictype/test-bidi_byname.c (main): Add more tests.
3358 2010-01-10 Bruno Haible <bruno@clisp.org>
3360 unistr/u*-strcoll: Try harder to distinguish different strings.
3361 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3362 compare s1 and s2 to see if they are different.
3364 2010-01-10 Bruno Haible <bruno@clisp.org>
3366 unistr/u*-stpncpy: Fix the return value.
3367 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3368 description of the return value consistent with stpncpy in glibc.
3369 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3370 written non-NUL unit.
3372 2010-01-10 Bruno Haible <bruno@clisp.org>
3374 unistr/u*-next: Add missing dependencies.
3375 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3376 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3377 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3379 2010-01-10 Bruno Haible <bruno@clisp.org>
3381 unistr/u8-mbsnlen: Fix return value for incomplete character.
3382 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3384 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3385 Remove unistr/u8-mblen.
3386 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3388 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3389 Remove unistr/u16-mblen.
3391 2010-01-10 Bruno Haible <bruno@clisp.org>
3393 wchar: Fix compilation error when <wchar.h> is used from coreutils.
3394 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3395 Reported by Brian Gough <bjg@gnu.org> and
3396 Chris Clayton <chris2553@googlemail.com> via
3397 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3399 2010-01-09 Bruno Haible <bruno@clisp.org>
3401 unistr/u16-to-u32: Reject invalid input.
3402 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3404 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3405 Remove unistr/u16-mbtouc.
3407 unistr/u16-to-u8: Reject invalid input.
3408 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3410 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3411 Remove unistr/u16-mbtouc.
3413 unistr/u8-to-u32: Reject invalid input.
3414 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3416 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3417 Remove unistr/u8-mbtouc.
3419 unistr/u8-to-u16: Reject invalid input.
3420 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3422 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3423 Remove unistr/u8-mbtouc.
3425 2010-01-09 Bruno Haible <bruno@clisp.org>
3427 Tests for module 'getlogin'.
3428 * modules/getlogin-tests: New file.
3429 * tests/test-getlogin.c: New file.
3431 New module 'getlogin'.
3432 * lib/unistd.in.h (getlogin): New declaration.
3433 * lib/getlogin.c: New file.
3434 * m4/getlogin.m4: New file.
3435 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3437 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3439 * modules/getlogin: New file.
3440 * doc/posix-functions/getlogin.texi: Mention the new module.
3441 Reported by John W. Eaton <jwe@gnu.org>.
3443 2010-01-09 Bruno Haible <bruno@clisp.org>
3445 getlogin_r: Support for native Windows.
3446 * lib/getlogin_r.c: Include <windows.h>
3447 (getlogin_r): Implement for native Windows.
3448 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3449 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3450 via John W. Eaton <jwe@gnu.org>.
3452 2010-01-09 Bruno Haible <bruno@clisp.org>
3454 getlogin_r: Small fixes.
3455 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3457 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3458 before testing whether getlogin_r is declared. No need to set
3459 HAVE_DECL_GETLOGIN_R to 1.
3460 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3462 2010-01-09 Bruno Haible <bruno@clisp.org>
3464 * lib/unistd.in.h (getlogin_r): Add comment.
3466 2010-01-09 Bruno Haible <bruno@clisp.org>
3468 Tests for module 'getlogin_r'.
3469 * modules/getlogin_r-tests: New file.
3470 * tests/test-getlogin_r.c: New file.
3472 2010-01-09 Jim Meyering <meyering@redhat.com>
3474 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3475 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3476 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3478 2010-01-08 Simon Josefsson <simon@josefsson.org>
3480 * lib/dup2.c (rpl_dup2): Improve comment.
3482 2010-01-08 Eric Blake <ebb9@byu.net>
3484 maint.mk: allow packages to add makefile @@ exceptions
3485 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3486 (sc_makefile_check): Rename...
3487 (sc_makefile_at_at_check): ...to this, and use hook.
3489 dup2: work around mingw bug
3490 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3491 Reported by Simon Josefsson.
3493 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
3495 glob: Fix C++ compilation.
3496 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3499 2010-01-07 Bruno Haible <bruno@clisp.org>
3501 Fix indentation of wctype.in.h, broken since 2007-01-06.
3502 * lib/wctype.in.h: Fix indentation of preprocessor directives.
3504 2010-01-07 Bruno Haible <bruno@clisp.org>
3506 mbslen: Avoid collision with system function.
3507 * lib/string.in.h [MirBSD]: Include <wchar.h>.
3508 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3509 * m4/mbslen.m4: New file.
3510 * modules/mbslen (Files): Add it.
3511 (configure.ac): Invoke gl_MBSLEN.
3512 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3513 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3514 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3515 via Ian Beckwith <ianb@erislabs.net>.
3517 2010-01-07 Bruno Haible <bruno@clisp.org>
3519 dirent: Document the last fix.
3520 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3522 2010-01-07 Bruno Haible <bruno@clisp.org>
3524 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3525 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3526 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3527 va_list are defined.
3528 * doc/posix-headers/stdio.texi: Document the bug of missing types.
3529 Reported by Eric Blake.
3531 2010-01-07 Bruno Haible <bruno@clisp.org>
3533 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3534 * modules/xlist (Depends-on): Add 'list',
3535 * modules/xoset (Depends-on): Add 'oset'.
3536 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3538 2010-01-07 Bruno Haible <bruno@clisp.org>
3540 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3541 * doc/posix-functions/strncasecmp.texi: Likewise.
3543 2010-01-07 Bruno Haible <bruno@clisp.org>
3545 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3547 2010-01-07 John W. Eaton <jwe@octave.org>
3549 wctype: allow C++ use
3550 * lib/wctype.in.h: Add extern "C" block for C++.
3552 2010-01-06 Eric Blake <ebb9@byu.net>
3554 maint.mk: detect incorrect GFDL usage
3555 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3557 2010-01-06 Jim Meyering <meyering@redhat.com>
3558 and Eric Blake <ebb9@byu.net>
3560 maint.mk: ignore multi-line copyright in NEWS
3561 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3563 2010-01-06 Eric Blake <ebb9@byu.net>
3565 select: add missing dependency
3566 * modules/select-tests (Depends-on): Move sockets dependency...
3567 * modules/select (Depends-on): ...here.
3568 Reported by Ian Beckwith.
3570 doc: regenerate INSTALL
3571 * doc/INSTALL: Reflect recent autoconf update.
3572 * doc/INSTALL.ISO: Likewise.
3573 * doc/INSTALL.UTF-8: Likewise.
3575 pread: fix compilation on glibc
3576 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3577 Reported by Ralf Wildenhues.
3579 dirent: fix test failure
3580 * lib/dirent.in.h (includes): Guarantee ino_t.
3581 Reported by Ralf Wildenhues.
3583 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
3585 linkat, renameat: avoid bad free
3586 * lib/at-func2.c (at_func2): Fix typo.
3587 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3589 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3591 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3592 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3593 to avoid failure of symlink test later.
3595 2010-01-06 Eric Blake <ebb9@byu.net>
3597 stdio, unistd: guarantee ssize_t
3598 * lib/unistd.in.h (includes): Ensure that types required by POSIX
3599 2008 are exposed when needed.
3600 * lib/stdio.in.h (includes): Likewise.
3601 Reported by Ralf Wildenhues.
3603 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
3605 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3606 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3607 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3609 2010-01-06 Jim Meyering <meyering@redhat.com>
3611 readtokens: this module *does* require xalloc.h
3612 It uses only functions that were omitted by the old syntax-check rule.
3613 * lib/readtokens.c: Include "xalloc.h" once again.
3614 * modules/readtokens (Depends-on): Add xalloc.
3615 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3617 2010-01-05 Eric Blake <ebb9@byu.net>
3619 maint: support 'make announcement' from a VPATH build
3620 * top/maint.mk (announcement): Look for correct NEWS file.
3622 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
3624 utimens (fdutimens): ignore a negative FD, per contract
3625 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3626 when we have a valid file descriptor. Otherwise, using a brand
3627 new glibc (with just-patched futimens that now fails with EBADF)
3628 would cause this function to fail with ENOSYS.
3629 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3630 See also http://bugzilla.redhat.com/552320.
3632 2010-01-05 Eric Blake <ebb9@byu.net>
3634 strcase: document what it provides
3635 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3637 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3638 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3640 2010-01-05 Jim Meyering <meyering@redhat.com>
3642 maint: remove useless inclusions of "xalloc.h"
3643 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3644 * lib/readtokens.c: Likewise.
3645 * lib/same.c: Likewise.
3646 * modules/getloadavg (Depends-on): Remove xalloc.
3647 * modules/readtokens: Likewise.
3648 * modules/same: Likewise.
3650 maint.mk: include 4 more function names in alloca.h-checking regexp
3651 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3652 regexp. Before, we would give a false-positive (saying alloca.h
3653 is included unnecessarily) when the only uses involved omitted symbols.
3655 xalloc.h: use consistent formatting
3656 * lib/xalloc.h: Move declarations to start in the first column.
3658 2010-01-05 Eric Blake <ebb9@byu.net>
3661 * lib/mkdir.c (includes): Drop unused header.
3662 Reported by John W. Eaton.
3664 2010-01-04 Jim Meyering <meyering@redhat.com>
3666 nl_langinfo: avoid configure-time syntax error
3667 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3668 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3669 the empty string. Don't let that provoke a shell syntax error.
3671 regcomp, regexec, fnmatch: avoid array bounds read error
3672 * lib/regcomp.c (build_equiv_class): From glibc:
3673 Use only the low 24 bits of a findidx return value as an index
3674 into the weights array. Patch by Ulrich Drepper:
3675 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3676 * lib/regexec.c (check_node_accept_bytes): Likewise.
3677 * lib/fnmatch_loop.c (FCT): Likewise.
3679 regcomp: skip collseq lookup when there are no rules
3680 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3681 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3683 regcomp: recognize ill-formed { } expressions
3684 * lib/regcomp.c (parse_dup_op): From glibc:
3685 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3687 regcomp: fix typo in comment
3688 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3689 s/satisfy/satisfies/.
3691 regcomp: sync from glibc: remove dead store
3692 * lib/regcomp.c (duplicate_node_closure): Remove useless
3693 search_duplicated_node call and dead store.
3695 regcomp: sync from glibc; always use nl_langinfo
3696 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3697 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
3698 * modules/regex (Depends-on): Add nl_langinfo.
3700 2010-01-04 Eric Blake <ebb9@byu.net>
3702 fdopendir: fix configure test
3703 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3705 2010-01-01 Bruno Haible <bruno@clisp.org>
3707 wchar: Remove unused configure check.
3708 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3710 2010-01-01 Eric Blake <ebb9@byu.net>
3712 headers: make check of system header explicit
3713 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3714 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3716 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3717 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3718 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3719 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3721 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3723 Suggested by Bruno Haible.
3725 2010-01-01 Jim Meyering <meyering@redhat.com>
3727 ChangeLog: tweak to eliminate unnecessary copyright line
3728 * ChangeLog: Remove a copyright line that was mistakenly updated
3729 by today's update-copyright run. Reported by Eric Blake.
3731 test-update-copyright: don't let envvar setting cause test failure
3732 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3734 2010-01-01 Bruno Haible <bruno@clisp.org>
3736 localename: Avoid gcc warning.
3737 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3738 function if it is not used.
3740 2010-01-01 Jim Meyering <meyering@redhat.com>
3742 update nearly all FSF copyright year lists to include 2010
3743 Use the same procedure as for 2009, outlined in
3744 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3746 version-etc: set COPYRIGHT_YEAR to 2010
3747 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3749 2009-12-31 Eric Blake <ebb9@byu.net>
3751 doc: correct availability of cygwin 1.5.x getopt
3752 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3754 * doc/posix-functions/opterr.texi (opterr): Likewise.
3755 * doc/posix-functions/optind.texi (optind): Likewise.
3756 * doc/posix-functions/optopt.texi (optopt): Likewise.
3757 * doc/posix-functions/tzname.texi (tzname): Likewise.
3759 openat: update maintainer
3760 * modules/openat (Maintainer): Add myself.
3762 utimens: avoid shadowing warning
3763 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3764 buffers into one, to avoid shadowing, as well as avoiding a
3766 Reported by Jim Meyering.
3768 test-dup2: avoid compiler warning
3769 * tests/test-dup2.c (is_inheritable): Only define if used.
3771 2010-01-01 Bruno Haible <bruno@clisp.org>
3773 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3774 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3775 defined, use wctomb instead of wcrtomb.
3777 2010-01-01 Bruno Haible <bruno@clisp.org>
3779 iconv: Reject native Solaris iconv.
3780 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3781 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3783 2009-12-31 Bruno Haible <bruno@clisp.org>
3785 * tests/test-signal.c (main): Remove test of 'SIG'.
3787 2009-12-31 Bruno Haible <bruno@clisp.org>
3789 spawn: Fix incomplete fix.
3790 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3791 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3792 warnings for GNULIB_POSIXCHECK again.
3793 Reported by Eric Blake.
3795 2009-12-31 Bruno Haible <bruno@clisp.org>
3797 Avoid namespace pollution on glibc systems.
3798 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3799 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3800 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3803 2009-12-31 Bruno Haible <bruno@clisp.org>
3805 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3806 (gl_REPLACE_WCHAR_H): Turn into a no-op.
3807 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3808 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3809 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3810 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3811 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3813 2009-12-31 Bruno Haible <bruno@clisp.org>
3815 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3816 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3819 2009-12-31 Bruno Haible <bruno@clisp.org>
3821 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3824 2009-12-31 Bruno Haible <bruno@clisp.org>
3826 spawn: Fix misapplied patch.
3827 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3828 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3829 warnings for GNULIB_POSIXCHECK.
3831 2009-12-31 Bruno Haible <bruno@clisp.org>
3833 times: Update after sys_times changed.
3834 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3835 * modules/times (Files): Add it.
3836 (configure.ac): Invoke gl_FUNC_TIMES.
3838 2009-12-31 Bruno Haible <bruno@clisp.org>
3840 Use AC_C_INLINE where necessary.
3841 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3842 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3843 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3844 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3845 * m4/mbfile.m4 (gl_MBFILE): Likewise.
3846 * m4/mbiter.m4 (gl_MBITER): Likewise.
3847 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3848 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3849 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3850 * modules/u64 (configure.ac): Likewise.
3852 2009-12-31 Bruno Haible <bruno@clisp.org>
3854 Use AC_C_INLINE instead of module 'inline' where possible.
3855 * modules/inline (Description): Clarify purpose.
3856 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3857 * modules/count-one-bits (Depends-on): Remove inline.
3858 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3859 * modules/openat (Depends-on): Remove inline.
3860 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3861 instead of depending on module 'inline'.
3862 * modules/filevercmp (Depends-on, configure.ac): Likewise.
3863 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3864 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3865 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3866 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3867 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3868 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3869 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3870 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3871 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3872 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3873 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3874 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3875 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3876 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3877 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3878 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3879 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3881 * modules/unictype/property-ascii-hex-digit (Depends-on,
3882 configure.ac): Likewise.
3883 * modules/unictype/property-bidi-arabic-digit (Depends-on,
3884 configure.ac): Likewise.
3885 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3886 configure.ac): Likewise.
3887 * modules/unictype/property-bidi-block-separator (Depends-on,
3888 configure.ac): Likewise.
3889 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3890 configure.ac): Likewise.
3891 * modules/unictype/property-bidi-common-separator (Depends-on,
3892 configure.ac): Likewise.
3893 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3895 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3896 configure.ac): Likewise.
3897 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3898 configure.ac): Likewise.
3899 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3900 configure.ac): Likewise.
3901 * modules/unictype/property-bidi-european-digit (Depends-on,
3902 configure.ac): Likewise.
3903 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3904 configure.ac): Likewise.
3905 * modules/unictype/property-bidi-left-to-right (Depends-on,
3906 configure.ac): Likewise.
3907 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3908 configure.ac): Likewise.
3909 * modules/unictype/property-bidi-other-neutral (Depends-on,
3910 configure.ac): Likewise.
3911 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3913 * modules/unictype/property-bidi-segment-separator (Depends-on,
3914 configure.ac): Likewise.
3915 * modules/unictype/property-bidi-whitespace (Depends-on,
3916 configure.ac): Likewise.
3917 * modules/unictype/property-combining (Depends-on, configure.ac):
3919 * modules/unictype/property-composite (Depends-on, configure.ac):
3921 * modules/unictype/property-currency-symbol (Depends-on,
3922 configure.ac): Likewise.
3923 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3924 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3926 * modules/unictype/property-default-ignorable-code-point (Depends-on,
3927 configure.ac): Likewise.
3928 * modules/unictype/property-deprecated (Depends-on, configure.ac):
3930 * modules/unictype/property-diacritic (Depends-on, configure.ac):
3932 * modules/unictype/property-extender (Depends-on, configure.ac):
3934 * modules/unictype/property-format-control (Depends-on, configure.ac):
3936 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3938 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3940 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3942 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3944 * modules/unictype/property-hyphen (Depends-on, configure.ac):
3946 * modules/unictype/property-id-continue (Depends-on, configure.ac):
3948 * modules/unictype/property-id-start (Depends-on, configure.ac):
3950 * modules/unictype/property-ideographic (Depends-on, configure.ac):
3952 * modules/unictype/property-ids-binary-operator (Depends-on,
3953 configure.ac): Likewise.
3954 * modules/unictype/property-ids-trinary-operator (Depends-on,
3955 configure.ac): Likewise.
3956 * modules/unictype/property-ignorable-control (Depends-on,
3957 configure.ac): Likewise.
3958 * modules/unictype/property-iso-control (Depends-on, configure.ac):
3960 * modules/unictype/property-join-control (Depends-on, configure.ac):
3962 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3964 * modules/unictype/property-line-separator (Depends-on, configure.ac):
3966 * modules/unictype/property-logical-order-exception (Depends-on,
3967 configure.ac): Likewise.
3968 * modules/unictype/property-lowercase (Depends-on, configure.ac):
3970 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3971 * modules/unictype/property-non-break (Depends-on, configure.ac):
3973 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3975 * modules/unictype/property-numeric (Depends-on, configure.ac):
3977 * modules/unictype/property-other-alphabetic (Depends-on,
3978 configure.ac): Likewise.
3979 * modules/unictype/property-other-default-ignorable-code-point
3980 (Depends-on, configure.ac): Likewise.
3981 * modules/unictype/property-other-grapheme-extend (Depends-on,
3982 configure.ac): Likewise.
3983 * modules/unictype/property-other-id-continue (Depends-on,
3984 configure.ac): Likewise.
3985 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3987 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3989 * modules/unictype/property-other-math (Depends-on, configure.ac):
3991 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3993 * modules/unictype/property-paired-punctuation (Depends-on,
3994 configure.ac): Likewise.
3995 * modules/unictype/property-paragraph-separator (Depends-on,
3996 configure.ac): Likewise.
3997 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3999 * modules/unictype/property-pattern-white-space (Depends-on,
4000 configure.ac): Likewise.
4001 * modules/unictype/property-private-use (Depends-on, configure.ac):
4003 * modules/unictype/property-punctuation (Depends-on, configure.ac):
4005 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4007 * modules/unictype/property-radical (Depends-on, configure.ac):
4009 * modules/unictype/property-sentence-terminal (Depends-on,
4010 configure.ac): Likewise.
4011 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4013 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4014 * modules/unictype/property-terminal-punctuation (Depends-on,
4015 configure.ac): Likewise.
4016 * modules/unictype/property-titlecase (Depends-on, configure.ac):
4018 * modules/unictype/property-unassigned-code-value (Depends-on,
4019 configure.ac): Likewise.
4020 * modules/unictype/property-unified-ideograph (Depends-on,
4021 configure.ac): Likewise.
4022 * modules/unictype/property-uppercase (Depends-on, configure.ac):
4024 * modules/unictype/property-variation-selector (Depends-on,
4025 configure.ac): Likewise.
4026 * modules/unictype/property-white-space (Depends-on, configure.ac):
4028 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4030 * modules/unictype/property-xid-start (Depends-on, configure.ac):
4032 * modules/unictype/property-zero-width (Depends-on, configure.ac):
4034 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4035 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4038 2009-12-31 Bruno Haible <bruno@clisp.org>
4040 Remove unnecessary AC_C_INLINE invocation.
4041 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4044 2009-12-31 Jim Meyering <meyering@redhat.com>
4046 maint.mk: don't require explicit gpg_key_ID in cfg.mk
4047 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4048 With this change, we can all remove the gpg_key_ID = ... definition
4049 from our respective cfg.mk files.
4051 maint.mk: create announcement template in ~/, not in /tmp
4052 * top/maint.mk (emit_upload_commands): Adjust.
4053 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4054 Remove temporary file, .ci-msg.
4056 2009-12-31 Eric Blake <ebb9@byu.net>
4058 link-warning: always build headers with link warnings
4059 * modules/arpa_inet (Makefile.am): Always build replacement
4061 * modules/ctype (Makefile.am): Likewise.
4062 * modules/dirent (Makefile.am): Likewise.
4063 * modules/inttypes (Makefile.am): Likewise.
4064 * modules/langinfo (Makefile.am): Likewise.
4065 * modules/locale (Makefile.am): Likewise.
4066 * modules/spawn (Makefile.am): Likewise.
4067 * modules/sys_file (Makefile.am): Likewise.
4068 * modules/sys_ioctl (Makefile.am): Likewise.
4069 * modules/sys_select (Makefile.am): Likewise.
4070 * modules/sys_socket (Makefile.am): Likewise.
4071 * modules/sys_times (Makefile.am): Likewise.
4072 * modules/sys_utsname (Makefile.am): Likewise.
4073 * modules/sys_wait (Makefile.am): Likewise.
4074 * modules/wchar (Makefile.am): Likewise.
4075 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4076 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4077 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4078 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4079 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4081 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4082 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4083 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4085 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4087 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4088 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4089 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4090 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4091 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4092 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4093 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4094 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4095 (gl_WCHAR_H_DEFAULTS): Likewise.
4097 2009-12-31 Eric Blake <ebb9@byu.net>
4099 signal, spawn: use link warnings
4100 * lib/signal.in.h (sigset_t): Make unconditional.
4101 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4102 (sigpending, sigprocmask, sigaction): Add link warnings.
4103 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4104 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4105 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4106 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4107 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4108 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4109 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4110 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4111 (posix_spawn_file_actions_destroy)
4112 (posix_spawn_file_actions_addopen)
4113 (posix_spawn_file_actions_addclose)
4114 (posix_spawn_file_actions_adddup2): Likewise.
4115 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4116 * tests/test-signal.c (main): Enhance test.
4118 spawn: improve wrapper support
4119 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4120 (gl_SPAWN_H_DEFAULTS): New defaults.
4121 * modules/spawn (Makefile.am): Substitute them.
4122 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4123 Only declare if missing or broken.
4125 sys_times, sys_utsname: use include_next
4126 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4128 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4129 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4130 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4131 * modules/sys_times (Depends-on): Add include_next.
4132 (Makefile.am): Substitute additional values.
4133 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4134 * lib/sys_times.in.h (includes): Include native header, if
4136 * lib/sys_utsname.in.h (includes): Likewise.
4137 * tests/test-sys_times.c (main): Enhance test.
4139 fdutimensat: revert prior patch
4140 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4142 Reported by Bruno Haible.
4144 2009-12-30 Eric Blake <ebb9@byu.net>
4146 sys_wait: drop link-warning dependency
4147 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4148 link-warning efforts.
4149 * lib/sys_wait.in.h: Likewise.
4151 fdutimensat: remove bogus dependency
4152 * modules/fdutimensat (Depends-on): Drop inline.
4155 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4157 2009-12-30 Bruno Haible <bruno@clisp.org>
4159 Fix compilation error with Solaris cc.
4160 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4161 * lib/unicase/u16-is-invariant.c: Likewise.
4162 * lib/unicase/u32-is-invariant.c: Likewise.
4163 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4165 2009-12-30 Bruno Haible <bruno@clisp.org>
4168 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4170 Reported by Simon Josefsson <simon@josefsson.org>.
4172 2009-12-30 Bruno Haible <bruno@clisp.org>
4174 Fix compilation error on most platforms.
4175 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4176 Reported by Simon Josefsson <simon@josefsson.org>
4177 and Nelson H. F. Beebe <beebe@math.utah.edu>.
4179 2009-12-30 Eric Blake <ebb9@byu.net>
4181 futimens, utimensat: work around ntfs-3g bug
4182 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4183 a ctime bug is present, and expand workaround to cover ntfs-3g.
4184 * lib/utimens.c (fdutimens, lutimens): Likewise.
4185 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4186 (validate_timespec): Adjust return value.
4187 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4188 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4189 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4191 2009-12-29 Eric Blake <ebb9@byu.net>
4193 link-warning: make usage consistent
4194 * modules/ctype (Depends-on): Add link-warning.
4195 (Makefile.am): Update rules accordingly.
4196 * modules/langinfo (Depends-on, Makefile.am): Likewise.
4197 * modules/locale (Depends-on, Makefile.am): Likewise.
4198 * modules/sys_file (Makefile.am): Likewise.
4199 * modules/getopt-posix (Makefile.am): Delete unused link warning
4201 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4202 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4203 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4204 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4206 stdio: remove unused variables
4207 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4208 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4209 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4211 tests: test more substitute headers
4212 * modules/ctype-tests: New file.
4213 * modules/dirent-tests: Likewise.
4214 * modules/spawn-tests: Likewise.
4215 * modules/sys_file-tests: Likewise.
4216 * modules/sys_ioctl-tests: Likewise.
4217 * modules/sys_wait-tests: Likewise.
4218 * tests/test-ctype.c: Likewise.
4219 * tests/test-dirent.c: Likewise.
4220 * tests/test-spawn.c: Likewise.
4221 * tests/test-sys_file.c: Likewise.
4222 * tests/test-sys_ioctl.c: Likewise.
4223 * tests/test-sys_wait.c: Likewise.
4224 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4225 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4226 whether or not flock is in use.
4228 tests: remove License section from module
4229 * modules/arpa_inet-tests: Remove unneeded section.
4230 * modules/byteswap-tests: Likewise.
4231 * modules/ceilf-tests: Likewise.
4232 * modules/ceill-tests: Likewise.
4233 * modules/crypto/des-tests: Likewise.
4234 * modules/crypto/gc-arcfour-tests: Likewise.
4235 * modules/crypto/gc-arctwo-tests: Likewise.
4236 * modules/crypto/gc-des-tests: Likewise.
4237 * modules/crypto/gc-hmac-md5-tests: Likewise.
4238 * modules/crypto/gc-hmac-sha1-tests: Likewise.
4239 * modules/crypto/gc-md2-tests: Likewise.
4240 * modules/crypto/gc-md4-tests: Likewise.
4241 * modules/crypto/gc-md5-tests: Likewise.
4242 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4243 * modules/crypto/gc-rijndael-tests: Likewise.
4244 * modules/crypto/gc-sha1-tests: Likewise.
4245 * modules/crypto/gc-tests: Likewise.
4246 * modules/crypto/md2-tests: Likewise.
4247 * modules/crypto/md4-tests: Likewise.
4248 * modules/fcntl-h-tests: Likewise.
4249 * modules/floorf-tests: Likewise.
4250 * modules/floorl-tests: Likewise.
4251 * modules/frexp-nolibm-tests: Likewise.
4252 * modules/frexp-tests: Likewise.
4253 * modules/frexpl-nolibm-tests: Likewise.
4254 * modules/frexpl-tests: Likewise.
4255 * modules/getaddrinfo-tests: Likewise.
4256 * modules/inttypes-tests: Likewise.
4257 * modules/isfinite-tests: Likewise.
4258 * modules/isinf-tests: Likewise.
4259 * modules/ldexpl-tests: Likewise.
4260 * modules/locale-tests: Likewise.
4261 * modules/math-tests: Likewise.
4262 * modules/netdb-tests: Likewise.
4263 * modules/netinet_in-tests: Likewise.
4264 * modules/printf-frexp-tests: Likewise.
4265 * modules/printf-frexpl-tests: Likewise.
4266 * modules/priv-set-tests: Likewise.
4267 * modules/random_r-tests: Likewise.
4268 * modules/round-tests: Likewise.
4269 * modules/roundf-tests: Likewise.
4270 * modules/roundl-tests: Likewise.
4271 * modules/search-tests: Likewise.
4272 * modules/select-tests: Likewise.
4273 * modules/signal-tests: Likewise.
4274 * modules/stdbool-tests: Likewise.
4275 * modules/stddef-tests: Likewise.
4276 * modules/stdint-tests: Likewise.
4277 * modules/stdio-tests: Likewise.
4278 * modules/stdlib-tests: Likewise.
4279 * modules/string-tests: Likewise.
4280 * modules/strings-tests: Likewise.
4281 * modules/sys_select-tests: Likewise.
4282 * modules/sys_socket-tests: Likewise.
4283 * modules/sys_stat-tests: Likewise.
4284 * modules/sys_time-tests: Likewise.
4285 * modules/sys_utsname-tests: Likewise.
4286 * modules/sysexits-tests: Likewise.
4287 * modules/time-tests: Likewise.
4288 * modules/trunc-tests: Likewise.
4289 * modules/truncf-tests: Likewise.
4290 * modules/truncl-tests: Likewise.
4291 * modules/tsearch-tests: Likewise.
4292 * modules/unistd-tests: Likewise.
4293 * modules/wchar-tests: Likewise.
4294 * modules/wctype-tests: Likewise.
4296 tests: fix license on several tests
4297 * tests/test-des.c: Update to GPLv3+.
4298 * tests/test-flock.c: Likewise.
4299 * tests/test-fsync.c: Likewise.
4300 * tests/test-futimens.h: Likewise.
4301 * tests/test-gc-arcfour.c: Likewise.
4302 * tests/test-gc-arctwo.c: Likewise.
4303 * tests/test-gc-des.c: Likewise.
4304 * tests/test-gc-hmac-md5.c: Likewise.
4305 * tests/test-gc-hmac-sha1.c: Likewise.
4306 * tests/test-gc-md2.c: Likewise.
4307 * tests/test-gc-md4.c: Likewise.
4308 * tests/test-gc-md5.c: Likewise.
4309 * tests/test-gc-pbkdf2-sha1.c: Likewise.
4310 * tests/test-gc-rijndael.c: Likewise.
4311 * tests/test-gc-sha1.c: Likewise.
4312 * tests/test-gc.c: Likewise.
4313 * tests/test-getcwd.c: Likewise.
4314 * tests/test-link.c: Likewise.
4315 * tests/test-link.h: Likewise.
4316 * tests/test-lutimens.h: Likewise.
4317 * tests/test-md2.c: Likewise.
4318 * tests/test-md4.c: Likewise.
4319 * tests/test-mkdir.h: Likewise.
4320 * tests/test-rename.c: Likewise.
4321 * tests/test-rename.h: Likewise.
4322 * tests/test-safe-alloc.c: Likewise.
4323 * tests/test-utimens-common.h: Likewise.
4324 * tests/test-utimens.h: Likewise.
4326 maint: sync license texts
4327 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4328 * doc/gpl-3.0.texi: Revert copyright year update.
4329 * doc/lgpl-3.0.texi: Likewise.
4331 2009-12-29 Jim Meyering <meyering@redhat.com>
4333 update nearly all FSF copyright year lists to include 2009
4334 The files named by the following are exempted:
4335 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4336 test -f "$dst" && { echo "$dst"; continue; }
4337 test -d "$dst" || continue
4338 echo "$dst"/$(basename "$src")
4340 git ls-files tests/unictype >> exempt
4341 In the remaining files, convert to all-interval notation if
4342 - there is already at least one year interval like 2000-2003
4343 - the file is maintained by me
4344 - the file is in lib/uni*/, where that style already prevails
4345 Otherwise, use update-copyright's default.
4347 2009-12-29 Simon Josefsson <simon@josefsson.org>
4348 and Eric Blake <ebb9@byu.net>
4350 tests: don't require debug system() to pass
4351 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4352 * tests/test-rmdir.h (test_rmdir_func): Likewise.
4353 * tests/test-unlink.h (test_unlink_func): Likewise.
4354 * tests/test-fstatat.c (main): ...into callers.
4355 * tests/test-lstat.c (main): Likewise.
4356 * tests/test-rmdir.c (main): Likewise.
4357 * tests/test-unlink.c (main): Likewise.
4358 * tests/test-unlinkat.c (main): Likewise.
4359 * tests/test-areadlink-with-size.c (main): Don't require a
4360 debug-only system call to pass, aiding cross-testing to mingw.
4361 * tests/test-areadlink.c (main): Likewise.
4362 * tests/test-areadlinkat-with-size.c (main): Likewise.
4363 * tests/test-areadlinkat.c (main): Likewise.
4364 * tests/test-canonicalize-lgpl.c (main): Likewise.
4365 * tests/test-canonicalize.c (main): Likewise.
4366 * tests/test-chown.c (main): Likewise.
4367 * tests/test-fchownat.c (main): Likewise.
4368 * tests/test-lchown.c (main): Likewise.
4369 * tests/test-fdutimensat.c (main): Likewise.
4370 * tests/test-futimens.c (main): Likewise.
4371 * tests/test-link.c (main): Likewise.
4372 * tests/test-linkat.c (main): Likewise.
4373 * tests/test-mkdir.c (main): Likewise.
4374 * tests/test-mkdirat.c (main): Likewise.
4375 * tests/test-mkfifo.c (main): Likewise.
4376 * tests/test-mkfifoat.c (main): Likewise.
4377 * tests/test-mknod.c (main): Likewise.
4378 * tests/test-readlink.c (main): Likewise.
4379 * tests/test-remove.c (main): Likewise.
4380 * tests/test-rename.c (main): Likewise.
4381 * tests/test-renameat.c (main): Likewise.
4382 * tests/test-symlink.c (main): Likewise.
4383 * tests/test-symlinkat.c (main): Likewise.
4384 * tests/test-utimens.c (main): Likewise.
4385 * tests/test-utimensat.c (main): Likewise.
4387 2009-12-29 Simon Josefsson <simon@josefsson.org>
4389 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4390 on $(UNUSED_PARAMETER_H) to avoid build failure.
4392 2009-12-28 Jim Meyering <meyering@redhat.com>
4394 update-copyright: you may specify a max. line length other than 72
4395 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4397 maint: use consistent FSF copyright line syntax
4398 * lib/posixtm.c: Add missing comma in FSF copyright line.
4399 * lib/posixtm.h: Likewise.
4400 * lib/getugroups.c: Add missing ", Inc.".
4402 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4403 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4404 FSF copyright line. Remove trailing blanks.
4406 2009-12-28 Eric Blake <ebb9@byu.net>
4408 test-dup2: reduce dependencies
4409 * modules/cloexec (Configure.ac): Set witness.
4410 * modules/dup2-tests (Depends-on): Drop cloexec.
4411 * tests/test-dup2.c (main): Skip portion of test if cloexec module
4413 Suggested by Bruno Haible.
4415 2009-12-26 Bruno Haible <bruno@clisp.org>
4417 Remove an unneeded dependency.
4418 * modules/fseterr (Depends-on): Remove dup2.
4420 2009-12-26 Eric Blake <ebb9@byu.net>
4422 tests: use macros.h in more places
4423 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4424 (ASSERT_STREAM): Provide default of stderr.
4425 * tests/test-dirent-safer.c: Include macros.h, using alternate
4426 stream for assertions.
4427 * tests/test-dup-safer.c: Likewise.
4428 * tests/test-freopen-safer.c: Likewise.
4429 * tests/test-getopt.c: Likewise.
4430 * tests/test-openat-safer.c: Likewise.
4431 * tests/test-pipe.c: Likewise.
4432 * tests/test-popen-safer.c: Likewise.
4433 * modules/dirent-safer-tests (Files): Include macros.h.
4434 * modules/unistd-safer-tests (Files): Likewise.
4435 * modules/freopen-safer-tests (Files): Likewise.
4436 * modules/getopt-posix-tests (Files): Likewise.
4437 * modules/openat-safer-tests (Files): Likewise.
4438 * modules/pipe-tests (Files): Likewise.
4440 2009-12-26 Bruno Haible <bruno@clisp.org>
4442 javacomp: Portability fix.
4443 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4444 that it also works on Solaris.
4446 2009-12-26 Bruno Haible <bruno@clisp.org>
4448 localename: Fix storage allocation of gl_locale_name_thread's result.
4449 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4450 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4451 all platforms that have 'uselocale'.
4452 (gl_locale_name_thread_unsafe): New function, extracted from
4453 gl_locale_name_thread.
4454 (gl_locale_name_thread): Call struniq on all platforms that have
4456 * tests/test-localename.c (test_locale_name_thread): Check that the
4457 resulting strings are permanently allocated.
4458 * modules/localename-tests (Depends-on): Add strdup.
4460 2009-12-26 Bruno Haible <bruno@clisp.org>
4462 * tests/test-localename.c (categories): Fill in the strings.
4464 2009-12-26 Jim Meyering <meyering@redhat.com>
4466 isdir: complete the removal of m4/isdir.m4
4467 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4469 isdir: clean up, since at least grep still uses it
4470 * lib/isdir.c: Include "isdir.h".
4471 (S_ISDIR): Remove now-unneeded definition.
4472 * modules/isdir (Files): Add lib/isdir.h.
4473 * lib/isdir.h: New file, with declaration.
4474 * m4/isdir.m4: Remove file -- unneeded.
4476 2009-12-25 Bruno Haible <bruno@clisp.org>
4478 selinux-h: Make generated .h files standalone.
4479 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4480 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4481 * lib/se-selinux.in.h: Likewise.
4482 * modules/selinux-h (Depends-on): Add unused-parameter.
4483 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4484 selinux/selinux.h and selinux/context.h.
4485 Suggested by Eric Blake.
4487 2009-12-25 Bruno Haible <bruno@clisp.org>
4489 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4490 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4491 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4492 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4493 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4495 2009-12-24 Bruno Haible <bruno@clisp.org>
4497 openat: Fix warning.
4498 * lib/openat-proc.c: Include <unistd.h>.
4500 2009-12-24 Bruno Haible <bruno@clisp.org>
4502 New module 'unused-parameter'.
4503 * build-aux/unused-parameter.h: New file, extracted from earlier
4505 * modules/unused-parameter: New file.
4506 * lib/unistr.h: Include unused-parameter.h.
4507 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4509 * modules/unistr/base (Depends-on): Add unused-parameter.
4511 2009-12-24 Bruno Haible <bruno@clisp.org>
4513 Add missing dependencies to 'extensions' module.
4514 * m4/extensions.m4: Add comment.
4515 * modules/accept4 (Depends-on): Add extensions.
4516 * modules/dup3 (Depends-on): Likewise.
4517 * modules/fcntl (Depends-on): Likewise.
4518 * modules/futimens (Depends-on): Likewise.
4519 * modules/mknod (Depends-on): Likewise.
4520 * modules/pipe2 (Depends-on): Likewise.
4521 * modules/stat-time (Depends-on): Likewise.
4522 * modules/strcasestr-simple (Depends-on): Likewise.
4523 * modules/strsignal (Depends-on): Likewise.
4524 * modules/utimensat (Depends-on): Likewise.
4525 * modules/localcharset (Depends-on): Likewise. Needed because of
4527 * modules/wcrtomb (Depends-on): Likewise. Needed because of
4529 * modules/wcsnrtombs (Depends-on): Likewise.
4530 * modules/wcsrtombs (Depends-on): Likewise.
4532 2009-12-24 Bruno Haible <bruno@clisp.org>
4534 binary-io: Avoid gcc warning due to SET_BINARY.
4535 * lib/binary-io.h (SET_BINARY): Cast the result to void.
4536 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4538 2009-12-24 Bruno Haible <bruno@clisp.org>
4540 Avoid future namespace pollution on glibc systems.
4541 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4542 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4543 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4546 2009-12-24 Bruno Haible <bruno@clisp.org>
4548 Refactor common macros used in tests.
4549 * tests/macros.h: New file.
4550 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4551 and/or <stdlib.h>, if appropriate.
4552 (ASSERT, SIZEOF): Remove macros.
4553 * tests/test-areadlink-with-size.c: Likewise.
4554 * tests/test-areadlinkat.c: Likewise.
4555 * tests/test-areadlinkat-with-size.c: Likewise.
4556 * tests/test-argmatch.c: Likewise.
4557 * tests/test-argv-iter.c: Likewise.
4558 * tests/test-array-mergesort.c: Likewise.
4559 * tests/test-array_list.c: Likewise.
4560 * tests/test-array_oset.c: Likewise.
4561 * tests/test-avltree_list.c: Likewise.
4562 * tests/test-avltree_oset.c: Likewise.
4563 * tests/test-avltreehash_list.c: Likewise.
4564 * tests/test-base64.c: Likewise.
4565 * tests/test-binary-io.c: Likewise.
4566 * tests/test-bitrotate.c: Likewise.
4567 * tests/test-btowc.c: Likewise.
4568 * tests/test-byteswap.c: Likewise.
4569 * tests/test-c-ctype.c: Likewise.
4570 * tests/test-c-stack.c: Likewise.
4571 * tests/test-c-strcasecmp.c: Likewise.
4572 * tests/test-c-strcasestr.c: Likewise.
4573 * tests/test-c-strncasecmp.c: Likewise.
4574 * tests/test-c-strstr.c: Likewise.
4575 * tests/test-canonicalize-lgpl.c: Likewise.
4576 * tests/test-canonicalize.c: Likewise.
4577 * tests/test-carray_list.c: Likewise.
4578 * tests/test-ceilf1.c: Likewise.
4579 * tests/test-ceilf2.c: Likewise.
4580 * tests/test-ceill.c: Likewise.
4581 * tests/test-chown.c: Likewise.
4582 * tests/test-cloexec.c: Likewise.
4583 * tests/test-copy-acl.c: Likewise.
4584 * tests/test-copy-file.c: Likewise.
4585 * tests/test-count-one-bits.c: Likewise.
4586 * tests/test-dprintf-posix.c: Likewise.
4587 * tests/test-dup2.c: Likewise.
4588 * tests/test-dup3.c: Likewise.
4589 * tests/test-duplocale.c: Likewise.
4590 * tests/test-fbufmode.c: Likewise.
4591 * tests/test-fchdir.c: Likewise.
4592 * tests/test-fchownat.c: Likewise.
4593 * tests/test-fcntl-safer.c: Likewise.
4594 * tests/test-fcntl.c: Likewise.
4595 * tests/test-fdopendir.c: Likewise.
4596 * tests/test-fdutimensat.c: Likewise.
4597 * tests/test-fflush2.c: Likewise.
4598 * tests/test-file-has-acl.c: Likewise.
4599 * tests/test-filevercmp.c: Likewise.
4600 * tests/test-flock.c: Likewise.
4601 * tests/test-floorf1.c: Likewise.
4602 * tests/test-floorf2.c: Likewise.
4603 * tests/test-floorl.c: Likewise.
4604 * tests/test-fnmatch.c: Likewise.
4605 * tests/test-fopen.h: Likewise.
4606 * tests/test-fpending.c: Likewise.
4607 * tests/test-fprintf-posix.c: Likewise.
4608 * tests/test-fpurge.c: Likewise.
4609 * tests/test-freadable.c: Likewise.
4610 * tests/test-freadahead.c: Likewise.
4611 * tests/test-freading.c: Likewise.
4612 * tests/test-freadptr.c: Likewise.
4613 * tests/test-freadptr2.c: Likewise.
4614 * tests/test-freadseek.c: Likewise.
4615 * tests/test-freopen.c: Likewise.
4616 * tests/test-frexp.c: Likewise.
4617 * tests/test-frexpl.c: Likewise.
4618 * tests/test-fseek.c: Likewise.
4619 * tests/test-fseeko.c: Likewise.
4620 * tests/test-fstatat.c: Likewise.
4621 * tests/test-fstrcmp.c: Likewise.
4622 * tests/test-fsync.c: Likewise.
4623 * tests/test-ftell.c: Likewise.
4624 * tests/test-ftello.c: Likewise.
4625 * tests/test-func.c: Likewise.
4626 * tests/test-futimens.c: Likewise.
4627 * tests/test-fwritable.c: Likewise.
4628 * tests/test-fwriting.c: Likewise.
4629 * tests/test-getcwd.c: Likewise.
4630 * tests/test-getdate.c: Likewise.
4631 * tests/test-getdelim.c: Likewise.
4632 * tests/test-getdtablesize.c: Likewise.
4633 * tests/test-getgroups.c: Likewise.
4634 * tests/test-getline.c: Likewise.
4635 * tests/test-getndelim2.c: Likewise.
4636 * tests/test-glob.c: Likewise.
4637 * tests/test-hash.c: Likewise.
4638 * tests/test-i-ring.c: Likewise.
4639 * tests/test-iconv-utf.c: Likewise.
4640 * tests/test-iconv.c: Likewise.
4641 * tests/test-idpriv-drop.c: Likewise.
4642 * tests/test-idpriv-droptemp.c: Likewise.
4643 * tests/test-inet_ntop.c: Likewise.
4644 * tests/test-inet_pton.c: Likewise.
4645 * tests/test-isblank.c: Likewise.
4646 * tests/test-isfinite.c: Likewise.
4647 * tests/test-isinf.c: Likewise.
4648 * tests/test-isnan.c: Likewise.
4649 * tests/test-isnand.h: Likewise.
4650 * tests/test-isnanf.h: Likewise.
4651 * tests/test-isnanl.h: Likewise.
4652 * tests/test-lchown.c: Likewise.
4653 * tests/test-ldexpl.c: Likewise.
4654 * tests/test-link.c: Likewise.
4655 * tests/test-linkat.c: Likewise.
4656 * tests/test-linked_list.c: Likewise.
4657 * tests/test-linkedhash_list.c: Likewise.
4658 * tests/test-localename.c: Likewise.
4659 * tests/test-lseek.c: Likewise.
4660 * tests/test-lstat.c: Likewise.
4661 * tests/test-mbmemcasecmp.c: Likewise.
4662 * tests/test-mbmemcasecoll.c: Likewise.
4663 * tests/test-mbrtowc.c: Likewise.
4664 * tests/test-mbscasecmp.c: Likewise.
4665 * tests/test-mbscasestr1.c: Likewise.
4666 * tests/test-mbscasestr2.c: Likewise.
4667 * tests/test-mbscasestr3.c: Likewise.
4668 * tests/test-mbscasestr4.c: Likewise.
4669 * tests/test-mbschr.c: Likewise.
4670 * tests/test-mbscspn.c: Likewise.
4671 * tests/test-mbsinit.c: Likewise.
4672 * tests/test-mbsncasecmp.c: Likewise.
4673 * tests/test-mbsnrtowcs.c: Likewise.
4674 * tests/test-mbspbrk.c: Likewise.
4675 * tests/test-mbspcasecmp.c: Likewise.
4676 * tests/test-mbsrchr.c: Likewise.
4677 * tests/test-mbsrtowcs.c: Likewise.
4678 * tests/test-mbsspn.c: Likewise.
4679 * tests/test-mbsstr1.c: Likewise.
4680 * tests/test-mbsstr2.c: Likewise.
4681 * tests/test-mbsstr3.c: Likewise.
4682 * tests/test-memchr.c: Likewise.
4683 * tests/test-memchr2.c: Likewise.
4684 * tests/test-memcmp.c: Likewise.
4685 * tests/test-memmem.c: Likewise.
4686 * tests/test-memrchr.c: Likewise.
4687 * tests/test-mkdir.c: Likewise.
4688 * tests/test-mkdirat.c: Likewise.
4689 * tests/test-mkfifo.c: Likewise.
4690 * tests/test-mkfifoat.c: Likewise.
4691 * tests/test-mknod.c: Likewise.
4692 * tests/test-nanosleep.c: Likewise.
4693 * tests/test-nl_langinfo.c: Likewise.
4694 * tests/test-obstack-printf.c: Likewise.
4695 * tests/test-open.c: Likewise.
4696 * tests/test-openat.c: Likewise.
4697 * tests/test-pipe-filter-gi1.c: Likewise.
4698 * tests/test-pipe-filter-gi2-main.c: Likewise.
4699 * tests/test-pipe-filter-ii1.c: Likewise.
4700 * tests/test-pipe-filter-ii2-main.c: Likewise.
4701 * tests/test-pipe2.c: Likewise.
4702 * tests/test-popen.h: Likewise.
4703 * tests/test-posixtm.c: Likewise.
4704 * tests/test-pread.c: Likewise.
4705 * tests/test-printf-frexp.c: Likewise.
4706 * tests/test-printf-frexpl.c: Likewise.
4707 * tests/test-printf-posix.c: Likewise.
4708 * tests/test-priv-set.c: Likewise.
4709 * tests/test-quotearg.c: Likewise.
4710 * tests/test-random_r.c: Likewise.
4711 * tests/test-rawmemchr.c: Likewise.
4712 * tests/test-rbtree_list.c: Likewise.
4713 * tests/test-rbtree_oset.c: Likewise.
4714 * tests/test-rbtreehash_list.c: Likewise.
4715 * tests/test-readlink.c: Likewise.
4716 * tests/test-remove.c: Likewise.
4717 * tests/test-rename.c: Likewise.
4718 * tests/test-renameat.c: Likewise.
4719 * tests/test-rmdir.c: Likewise.
4720 * tests/test-round1.c: Likewise.
4721 * tests/test-roundf1.c: Likewise.
4722 * tests/test-roundl.c: Likewise.
4723 * tests/test-safe-alloc.c: Likewise.
4724 * tests/test-sameacls.c: Likewise.
4725 * tests/test-set-mode-acl.c: Likewise.
4726 * tests/test-setenv.c: Likewise.
4727 * tests/test-sigaction.c: Likewise.
4728 * tests/test-signbit.c: Likewise.
4729 * tests/test-sleep.c: Likewise.
4730 * tests/test-snprintf-posix.c: Likewise.
4731 * tests/test-snprintf.c: Likewise.
4732 * tests/test-sprintf-posix.c: Likewise.
4733 * tests/test-stat-time.c: Likewise.
4734 * tests/test-stat.c: Likewise.
4735 * tests/test-strcasestr.c: Likewise.
4736 * tests/test-strchrnul.c: Likewise.
4737 * tests/test-strerror.c: Likewise.
4738 * tests/test-striconv.c: Likewise.
4739 * tests/test-striconveh.c: Likewise.
4740 * tests/test-striconveha.c: Likewise.
4741 * tests/test-strsignal.c: Likewise.
4742 * tests/test-strstr.c: Likewise.
4743 * tests/test-strtod.c: Likewise.
4744 * tests/test-strverscmp.c: Likewise.
4745 * tests/test-symlink.c: Likewise.
4746 * tests/test-symlinkat.c: Likewise.
4747 * tests/test-trunc1.c: Likewise.
4748 * tests/test-trunc2.c: Likewise.
4749 * tests/test-truncf1.c: Likewise.
4750 * tests/test-truncf2.c: Likewise.
4751 * tests/test-truncl.c: Likewise.
4752 * tests/test-uname.c: Likewise.
4753 * tests/test-unlink.c: Likewise.
4754 * tests/test-unlinkat.c: Likewise.
4755 * tests/test-unsetenv.c: Likewise.
4756 * tests/test-usleep.c: Likewise.
4757 * tests/test-utimens.c: Likewise.
4758 * tests/test-utimensat.c: Likewise.
4759 * tests/test-vasnprintf-posix.c: Likewise.
4760 * tests/test-vasnprintf-posix2.c: Likewise.
4761 * tests/test-vasnprintf.c: Likewise.
4762 * tests/test-vasprintf-posix.c: Likewise.
4763 * tests/test-vasprintf.c: Likewise.
4764 * tests/test-vdprintf-posix.c: Likewise.
4765 * tests/test-vfprintf-posix.c: Likewise.
4766 * tests/test-vprintf-posix.c: Likewise.
4767 * tests/test-vsnprintf-posix.c: Likewise.
4768 * tests/test-vsnprintf.c: Likewise.
4769 * tests/test-vsprintf-posix.c: Likewise.
4770 * tests/test-wcrtomb.c: Likewise.
4771 * tests/test-wcsnrtombs.c: Likewise.
4772 * tests/test-wcsrtombs.c: Likewise.
4773 * tests/test-wctype.c: Likewise.
4774 * tests/test-wcwidth.c: Likewise.
4775 * tests/test-xfprintf-posix.c: Likewise.
4776 * tests/test-xmemdup0.c: Likewise.
4777 * tests/test-xprintf-posix.c: Likewise.
4778 * tests/test-xvasprintf.c: Likewise.
4779 * tests/unicase/test-locale-language.c: Likewise.
4780 * tests/unicase/test-mapping-part1.h: Likewise.
4781 * tests/unicase/test-predicate-part1.h: Likewise.
4782 * tests/unicase/test-u8-casecmp.c: Likewise.
4783 * tests/unicase/test-u8-casecoll.c: Likewise.
4784 * tests/unicase/test-u8-casefold.c: Likewise.
4785 * tests/unicase/test-u8-is-cased.c: Likewise.
4786 * tests/unicase/test-u8-is-casefolded.c: Likewise.
4787 * tests/unicase/test-u8-is-lowercase.c: Likewise.
4788 * tests/unicase/test-u8-is-titlecase.c: Likewise.
4789 * tests/unicase/test-u8-is-uppercase.c: Likewise.
4790 * tests/unicase/test-u8-tolower.c: Likewise.
4791 * tests/unicase/test-u8-totitle.c: Likewise.
4792 * tests/unicase/test-u8-toupper.c: Likewise.
4793 * tests/unicase/test-u16-casecmp.c: Likewise.
4794 * tests/unicase/test-u16-casecoll.c: Likewise.
4795 * tests/unicase/test-u16-casefold.c: Likewise.
4796 * tests/unicase/test-u16-is-cased.c: Likewise.
4797 * tests/unicase/test-u16-is-casefolded.c: Likewise.
4798 * tests/unicase/test-u16-is-lowercase.c: Likewise.
4799 * tests/unicase/test-u16-is-titlecase.c: Likewise.
4800 * tests/unicase/test-u16-is-uppercase.c: Likewise.
4801 * tests/unicase/test-u16-tolower.c: Likewise.
4802 * tests/unicase/test-u16-totitle.c: Likewise.
4803 * tests/unicase/test-u16-toupper.c: Likewise.
4804 * tests/unicase/test-u32-casecmp.c: Likewise.
4805 * tests/unicase/test-u32-casecoll.c: Likewise.
4806 * tests/unicase/test-u32-casefold.c: Likewise.
4807 * tests/unicase/test-u32-is-cased.c: Likewise.
4808 * tests/unicase/test-u32-is-casefolded.c: Likewise.
4809 * tests/unicase/test-u32-is-lowercase.c: Likewise.
4810 * tests/unicase/test-u32-is-titlecase.c: Likewise.
4811 * tests/unicase/test-u32-is-uppercase.c: Likewise.
4812 * tests/unicase/test-u32-tolower.c: Likewise.
4813 * tests/unicase/test-u32-totitle.c: Likewise.
4814 * tests/unicase/test-u32-toupper.c: Likewise.
4815 * tests/unicase/test-ulc-casecmp.c: Likewise.
4816 * tests/unicase/test-ulc-casecoll.c: Likewise.
4817 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4818 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4819 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4820 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4821 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4822 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4823 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4824 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4825 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4826 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4827 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4828 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4829 * tests/unictype/test-bidi_byname.c: Likewise.
4830 * tests/unictype/test-bidi_name.c: Likewise.
4831 * tests/unictype/test-bidi_of.c: Likewise.
4832 * tests/unictype/test-bidi_test.c: Likewise.
4833 * tests/unictype/test-block_list.c: Likewise.
4834 * tests/unictype/test-block_of.c: Likewise.
4835 * tests/unictype/test-block_test.c: Likewise.
4836 * tests/unictype/test-categ_and.c: Likewise.
4837 * tests/unictype/test-categ_and_not.c: Likewise.
4838 * tests/unictype/test-categ_byname.c: Likewise.
4839 * tests/unictype/test-categ_name.c: Likewise.
4840 * tests/unictype/test-categ_none.c: Likewise.
4841 * tests/unictype/test-categ_of.c: Likewise.
4842 * tests/unictype/test-categ_or.c: Likewise.
4843 * tests/unictype/test-categ_test_withtable.c: Likewise.
4844 * tests/unictype/test-combining.c: Likewise.
4845 * tests/unictype/test-decdigit.c: Likewise.
4846 * tests/unictype/test-digit.c: Likewise.
4847 * tests/unictype/test-mirror.c: Likewise.
4848 * tests/unictype/test-numeric.c: Likewise.
4849 * tests/unictype/test-pr_byname.c: Likewise.
4850 * tests/unictype/test-pr_test.c: Likewise.
4851 * tests/unictype/test-predicate-part1.h: Likewise.
4852 * tests/unictype/test-scripts.c: Likewise.
4853 * tests/unictype/test-sy_c_ident.c: Likewise.
4854 * tests/unictype/test-sy_java_ident.c: Likewise.
4855 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4856 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4857 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4858 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4859 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4860 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4861 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4862 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4863 * tests/uninorm/test-canonical-decomposition.c: Likewise.
4864 * tests/uninorm/test-compat-decomposition.c: Likewise.
4865 * tests/uninorm/test-composition.c: Likewise.
4866 * tests/uninorm/test-decomposing-form.c: Likewise.
4867 * tests/uninorm/test-decomposition.c: Likewise.
4868 * tests/uninorm/test-u8-nfc.c: Likewise.
4869 * tests/uninorm/test-u8-nfd.c: Likewise.
4870 * tests/uninorm/test-u8-nfkc.c: Likewise.
4871 * tests/uninorm/test-u8-nfkd.c: Likewise.
4872 * tests/uninorm/test-u8-normcmp.c: Likewise.
4873 * tests/uninorm/test-u8-normcoll.c: Likewise.
4874 * tests/uninorm/test-u16-nfc.c: Likewise.
4875 * tests/uninorm/test-u16-nfd.c: Likewise.
4876 * tests/uninorm/test-u16-nfkc.c: Likewise.
4877 * tests/uninorm/test-u16-nfkd.c: Likewise.
4878 * tests/uninorm/test-u16-normcmp.c: Likewise.
4879 * tests/uninorm/test-u16-normcoll.c: Likewise.
4880 * tests/uninorm/test-u32-nfc.c: Likewise.
4881 * tests/uninorm/test-u32-nfd.c: Likewise.
4882 * tests/uninorm/test-u32-nfkc.c: Likewise.
4883 * tests/uninorm/test-u32-nfkd.c: Likewise.
4884 * tests/uninorm/test-u32-normalize-big.c: Likewise.
4885 * tests/uninorm/test-u32-normcmp.c: Likewise.
4886 * tests/uninorm/test-u32-normcoll.c: Likewise.
4887 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4888 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4889 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4890 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4891 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4892 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4893 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4894 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4895 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4896 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4897 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4898 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4899 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4900 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4901 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4902 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4903 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4904 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4905 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4906 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4907 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4908 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4909 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4910 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4911 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4912 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4913 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4914 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4915 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4916 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4917 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4918 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4919 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4920 * tests/uniwidth/test-u8-strwidth.c: Likewise.
4921 * tests/uniwidth/test-u8-width.c: Likewise.
4922 * tests/uniwidth/test-u16-strwidth.c: Likewise.
4923 * tests/uniwidth/test-u16-width.c: Likewise.
4924 * tests/uniwidth/test-u32-strwidth.c: Likewise.
4925 * tests/uniwidth/test-u32-width.c: Likewise.
4926 * tests/uniwidth/test-uc_width.c: Likewise.
4927 * tests/uniwidth/test-uc_width2.c: Likewise.
4928 * modules/acl-tests (Files): Add tests/macros.h.
4929 * modules/areadlink-tests (Files): Likewise.
4930 * modules/areadlink-with-size-tests (Files): Likewise.
4931 * modules/areadlinkat-tests (Files): Likewise.
4932 * modules/areadlinkat-with-size-tests (Files): Likewise.
4933 * modules/argmatch-tests (Files): Likewise.
4934 * modules/argv-iter-tests (Files): Likewise.
4935 * modules/array-list-tests (Files): Likewise.
4936 * modules/array-mergesort-tests (Files): Likewise.
4937 * modules/array-oset-tests (Files): Likewise.
4938 * modules/avltree-list-tests (Files): Likewise.
4939 * modules/avltree-oset-tests (Files): Likewise.
4940 * modules/avltreehash-list-tests (Files): Likewise.
4941 * modules/base64-tests (Files): Likewise.
4942 * modules/binary-io-tests (Files): Likewise.
4943 * modules/bitrotate-tests (Files): Likewise.
4944 * modules/btowc-tests (Files): Likewise.
4945 * modules/byteswap-tests (Files): Likewise.
4946 * modules/c-ctype-tests (Files): Likewise.
4947 * modules/c-stack-tests (Files): Likewise.
4948 * modules/c-strcase-tests (Files): Likewise.
4949 * modules/c-strcasestr-tests (Files): Likewise.
4950 * modules/c-strstr-tests (Files): Likewise.
4951 * modules/canonicalize-lgpl-tests (Files): Likewise.
4952 * modules/canonicalize-tests (Files): Likewise.
4953 * modules/carray-list-tests (Files): Likewise.
4954 * modules/ceilf-tests (Files): Likewise.
4955 * modules/ceill-tests (Files): Likewise.
4956 * modules/chown-tests (Files): Likewise.
4957 * modules/cloexec-tests (Files): Likewise.
4958 * modules/copy-file-tests (Files): Likewise.
4959 * modules/count-one-bits-tests (Files): Likewise.
4960 * modules/dprintf-posix-tests (Files): Likewise.
4961 * modules/dup2-tests (Files): Likewise.
4962 * modules/dup3-tests (Files): Likewise.
4963 * modules/duplocale-tests (Files): Likewise.
4964 * modules/fbufmode-tests (Files): Likewise.
4965 * modules/fchdir-tests (Files): Likewise.
4966 * modules/fcntl-safer-tests (Files): Likewise.
4967 * modules/fcntl-tests (Files): Likewise.
4968 * modules/fdopendir-tests (Files): Likewise.
4969 * modules/fdutimensat-tests (Files): Likewise.
4970 * modules/fflush-tests (Files): Likewise.
4971 * modules/filevercmp-tests (Files): Likewise.
4972 * modules/flock-tests (Files): Likewise.
4973 * modules/floorf-tests (Files): Likewise.
4974 * modules/floorl-tests (Files): Likewise.
4975 * modules/fnmatch-tests (Files): Likewise.
4976 * modules/fopen-safer-tests (Files): Likewise.
4977 * modules/fopen-tests (Files): Likewise.
4978 * modules/fpending-tests (Files): Likewise.
4979 * modules/fprintf-posix-tests (Files): Likewise.
4980 * modules/fpurge-tests (Files): Likewise.
4981 * modules/freadable-tests (Files): Likewise.
4982 * modules/freadahead-tests (Files): Likewise.
4983 * modules/freading-tests (Files): Likewise.
4984 * modules/freadptr-tests (Files): Likewise.
4985 * modules/freadseek-tests (Files): Likewise.
4986 * modules/freopen-tests (Files): Likewise.
4987 * modules/frexp-nolibm-tests (Files): Likewise.
4988 * modules/frexp-tests (Files): Likewise.
4989 * modules/frexpl-nolibm-tests (Files): Likewise.
4990 * modules/frexpl-tests (Files): Likewise.
4991 * modules/fseek-tests (Files): Likewise.
4992 * modules/fseeko-tests (Files): Likewise.
4993 * modules/fstrcmp-tests (Files): Likewise.
4994 * modules/fsync-tests (Files): Likewise.
4995 * modules/ftell-tests (Files): Likewise.
4996 * modules/ftello-tests (Files): Likewise.
4997 * modules/func-tests (Files): Likewise.
4998 * modules/futimens-tests (Files): Likewise.
4999 * modules/fwritable-tests (Files): Likewise.
5000 * modules/fwriting-tests (Files): Likewise.
5001 * modules/getcwd-tests (Files): Likewise.
5002 * modules/getdate-tests (Files): Likewise.
5003 * modules/getdelim-tests (Files): Likewise.
5004 * modules/getdtablesize-tests (Files): Likewise.
5005 * modules/getgroups-tests (Files): Likewise.
5006 * modules/getline-tests (Files): Likewise.
5007 * modules/getndelim2-tests (Files): Likewise.
5008 * modules/glob-tests (Files): Likewise.
5009 * modules/hash-tests (Files): Likewise.
5010 * modules/i-ring-tests (Files): Likewise.
5011 * modules/iconv-tests (Files): Likewise.
5012 * modules/iconv_open-utf-tests (Files): Likewise.
5013 * modules/idpriv-drop-tests (Files): Likewise.
5014 * modules/idpriv-droptemp-tests (Files): Likewise.
5015 * modules/inet_ntop-tests (Files): Likewise.
5016 * modules/inet_pton-tests (Files): Likewise.
5017 * modules/isblank-tests (Files): Likewise.
5018 * modules/isfinite-tests (Files): Likewise.
5019 * modules/isinf-tests (Files): Likewise.
5020 * modules/isnan-tests (Files): Likewise.
5021 * modules/isnand-nolibm-tests (Files): Likewise.
5022 * modules/isnand-tests (Files): Likewise.
5023 * modules/isnanf-nolibm-tests (Files): Likewise.
5024 * modules/isnanf-tests (Files): Likewise.
5025 * modules/isnanl-nolibm-tests (Files): Likewise.
5026 * modules/isnanl-tests (Files): Likewise.
5027 * modules/lchown-tests (Files): Likewise.
5028 * modules/ldexpl-tests (Files): Likewise.
5029 * modules/link-tests (Files): Likewise.
5030 * modules/linkat-tests (Files): Likewise.
5031 * modules/linked-list-tests (Files): Likewise.
5032 * modules/linkedhash-list-tests (Files): Likewise.
5033 * modules/localename-tests (Files): Likewise.
5034 * modules/lseek-tests (Files): Likewise.
5035 * modules/lstat-tests (Files): Likewise.
5036 * modules/mbmemcasecmp-tests (Files): Likewise.
5037 * modules/mbmemcasecoll-tests (Files): Likewise.
5038 * modules/mbrtowc-tests (Files): Likewise.
5039 * modules/mbscasecmp-tests (Files): Likewise.
5040 * modules/mbscasestr-tests (Files): Likewise.
5041 * modules/mbschr-tests (Files): Likewise.
5042 * modules/mbscspn-tests (Files): Likewise.
5043 * modules/mbsinit-tests (Files): Likewise.
5044 * modules/mbsncasecmp-tests (Files): Likewise.
5045 * modules/mbsnrtowcs-tests (Files): Likewise.
5046 * modules/mbspbrk-tests (Files): Likewise.
5047 * modules/mbspcasecmp-tests (Files): Likewise.
5048 * modules/mbsrchr-tests (Files): Likewise.
5049 * modules/mbsrtowcs-tests (Files): Likewise.
5050 * modules/mbsspn-tests (Files): Likewise.
5051 * modules/mbsstr-tests (Files): Likewise.
5052 * modules/memchr-tests (Files): Likewise.
5053 * modules/memchr2-tests (Files): Likewise.
5054 * modules/memcmp-tests (Files): Likewise.
5055 * modules/memmem-tests (Files): Likewise.
5056 * modules/memrchr-tests (Files): Likewise.
5057 * modules/mkdir-tests (Files): Likewise.
5058 * modules/mkfifo-tests (Files): Likewise.
5059 * modules/mkfifoat-tests (Files): Likewise.
5060 * modules/mknod-tests (Files): Likewise.
5061 * modules/nanosleep-tests (Files): Likewise.
5062 * modules/nl_langinfo-tests (Files): Likewise.
5063 * modules/obstack-printf-tests (Files): Likewise.
5064 * modules/open-tests (Files): Likewise.
5065 * modules/openat-tests (Files): Likewise.
5066 * modules/pipe-filter-gi-tests (Files): Likewise.
5067 * modules/pipe-filter-ii-tests (Files): Likewise.
5068 * modules/pipe2-tests (Files): Likewise.
5069 * modules/popen-safer-tests (Files): Likewise.
5070 * modules/popen-tests (Files): Likewise.
5071 * modules/posixtm-tests (Files): Likewise.
5072 * modules/pread-tests (Files): Likewise.
5073 * modules/printf-frexp-tests (Files): Likewise.
5074 * modules/printf-frexpl-tests (Files): Likewise.
5075 * modules/printf-posix-tests (Files): Likewise.
5076 * modules/priv-set-tests (Files): Likewise.
5077 * modules/quotearg-tests (Files): Likewise.
5078 * modules/random_r-tests (Files): Likewise.
5079 * modules/rawmemchr-tests (Files): Likewise.
5080 * modules/rbtree-list-tests (Files): Likewise.
5081 * modules/rbtree-oset-tests (Files): Likewise.
5082 * modules/rbtreehash-list-tests (Files): Likewise.
5083 * modules/readlink-tests (Files): Likewise.
5084 * modules/remove-tests (Files): Likewise.
5085 * modules/rename-tests (Files): Likewise.
5086 * modules/renameat-tests (Files): Likewise.
5087 * modules/rmdir-tests (Files): Likewise.
5088 * modules/round-tests (Files): Likewise.
5089 * modules/roundf-tests (Files): Likewise.
5090 * modules/roundl-tests (Files): Likewise.
5091 * modules/safe-alloc-tests (Files): Likewise.
5092 * modules/setenv-tests (Files): Likewise.
5093 * modules/sigaction-tests (Files): Likewise.
5094 * modules/signbit-tests (Files): Likewise.
5095 * modules/sleep-tests (Files): Likewise.
5096 * modules/snprintf-posix-tests (Files): Likewise.
5097 * modules/snprintf-tests (Files): Likewise.
5098 * modules/sprintf-posix-tests (Files): Likewise.
5099 * modules/stat-tests (Files): Likewise.
5100 * modules/stat-time-tests (Files): Likewise.
5101 * modules/strcasestr-tests (Files): Likewise.
5102 * modules/strchrnul-tests (Files): Likewise.
5103 * modules/strerror-tests (Files): Likewise.
5104 * modules/striconv-tests (Files): Likewise.
5105 * modules/striconveh-tests (Files): Likewise.
5106 * modules/striconveha-tests (Files): Likewise.
5107 * modules/strsignal-tests (Files): Likewise.
5108 * modules/strstr-tests (Files): Likewise.
5109 * modules/strtod-tests (Files): Likewise.
5110 * modules/strverscmp-tests (Files): Likewise.
5111 * modules/symlink-tests (Files): Likewise.
5112 * modules/symlinkat-tests (Files): Likewise.
5113 * modules/trunc-tests (Files): Likewise.
5114 * modules/truncf-tests (Files): Likewise.
5115 * modules/truncl-tests (Files): Likewise.
5116 * modules/uname-tests (Files): Likewise.
5117 * modules/unicase/cased-tests (Files): Likewise.
5118 * modules/unicase/ignorable-tests (Files): Likewise.
5119 * modules/unicase/locale-language-tests (Files): Likewise.
5120 * modules/unicase/tolower-tests (Files): Likewise.
5121 * modules/unicase/totitle-tests (Files): Likewise.
5122 * modules/unicase/toupper-tests (Files): Likewise.
5123 * modules/unicase/u8-casecmp-tests (Files): Likewise.
5124 * modules/unicase/u8-casecoll-tests (Files): Likewise.
5125 * modules/unicase/u8-casefold-tests (Files): Likewise.
5126 * modules/unicase/u8-is-cased-tests (Files): Likewise.
5127 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5128 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5129 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5130 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5131 * modules/unicase/u8-tolower-tests (Files): Likewise.
5132 * modules/unicase/u8-totitle-tests (Files): Likewise.
5133 * modules/unicase/u8-toupper-tests (Files): Likewise.
5134 * modules/unicase/u16-casecmp-tests (Files): Likewise.
5135 * modules/unicase/u16-casecoll-tests (Files): Likewise.
5136 * modules/unicase/u16-casefold-tests (Files): Likewise.
5137 * modules/unicase/u16-is-cased-tests (Files): Likewise.
5138 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5139 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5140 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5141 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5142 * modules/unicase/u16-tolower-tests (Files): Likewise.
5143 * modules/unicase/u16-totitle-tests (Files): Likewise.
5144 * modules/unicase/u16-toupper-tests (Files): Likewise.
5145 * modules/unicase/u32-casecmp-tests (Files): Likewise.
5146 * modules/unicase/u32-casecoll-tests (Files): Likewise.
5147 * modules/unicase/u32-casefold-tests (Files): Likewise.
5148 * modules/unicase/u32-is-cased-tests (Files): Likewise.
5149 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5150 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5151 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5152 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5153 * modules/unicase/u32-tolower-tests (Files): Likewise.
5154 * modules/unicase/u32-totitle-tests (Files): Likewise.
5155 * modules/unicase/u32-toupper-tests (Files): Likewise.
5156 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5157 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5158 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5159 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5160 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5161 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5162 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5163 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5164 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5165 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5166 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5167 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5168 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5169 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5170 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5171 * modules/unictype/bidicategory-name-tests (Files): Likewise.
5172 * modules/unictype/bidicategory-of-tests (Files): Likewise.
5173 * modules/unictype/bidicategory-test-tests (Files): Likewise.
5174 * modules/unictype/block-list-tests (Files): Likewise.
5175 * modules/unictype/block-of-tests (Files): Likewise.
5176 * modules/unictype/block-test-tests (Files): Likewise.
5177 * modules/unictype/category-C-tests (Files): Likewise.
5178 * modules/unictype/category-Cc-tests (Files): Likewise.
5179 * modules/unictype/category-Cf-tests (Files): Likewise.
5180 * modules/unictype/category-Cn-tests (Files): Likewise.
5181 * modules/unictype/category-Co-tests (Files): Likewise.
5182 * modules/unictype/category-Cs-tests (Files): Likewise.
5183 * modules/unictype/category-L-tests (Files): Likewise.
5184 * modules/unictype/category-Ll-tests (Files): Likewise.
5185 * modules/unictype/category-Lm-tests (Files): Likewise.
5186 * modules/unictype/category-Lo-tests (Files): Likewise.
5187 * modules/unictype/category-Lt-tests (Files): Likewise.
5188 * modules/unictype/category-Lu-tests (Files): Likewise.
5189 * modules/unictype/category-M-tests (Files): Likewise.
5190 * modules/unictype/category-Mc-tests (Files): Likewise.
5191 * modules/unictype/category-Me-tests (Files): Likewise.
5192 * modules/unictype/category-Mn-tests (Files): Likewise.
5193 * modules/unictype/category-N-tests (Files): Likewise.
5194 * modules/unictype/category-Nd-tests (Files): Likewise.
5195 * modules/unictype/category-Nl-tests (Files): Likewise.
5196 * modules/unictype/category-No-tests (Files): Likewise.
5197 * modules/unictype/category-P-tests (Files): Likewise.
5198 * modules/unictype/category-Pc-tests (Files): Likewise.
5199 * modules/unictype/category-Pd-tests (Files): Likewise.
5200 * modules/unictype/category-Pe-tests (Files): Likewise.
5201 * modules/unictype/category-Pf-tests (Files): Likewise.
5202 * modules/unictype/category-Pi-tests (Files): Likewise.
5203 * modules/unictype/category-Po-tests (Files): Likewise.
5204 * modules/unictype/category-Ps-tests (Files): Likewise.
5205 * modules/unictype/category-S-tests (Files): Likewise.
5206 * modules/unictype/category-Sc-tests (Files): Likewise.
5207 * modules/unictype/category-Sk-tests (Files): Likewise.
5208 * modules/unictype/category-Sm-tests (Files): Likewise.
5209 * modules/unictype/category-So-tests (Files): Likewise.
5210 * modules/unictype/category-Z-tests (Files): Likewise.
5211 * modules/unictype/category-Zl-tests (Files): Likewise.
5212 * modules/unictype/category-Zp-tests (Files): Likewise.
5213 * modules/unictype/category-Zs-tests (Files): Likewise.
5214 * modules/unictype/category-and-not-tests (Files): Likewise.
5215 * modules/unictype/category-and-tests (Files): Likewise.
5216 * modules/unictype/category-byname-tests (Files): Likewise.
5217 * modules/unictype/category-name-tests (Files): Likewise.
5218 * modules/unictype/category-none-tests (Files): Likewise.
5219 * modules/unictype/category-of-tests (Files): Likewise.
5220 * modules/unictype/category-or-tests (Files): Likewise.
5221 * modules/unictype/category-test-withtable-tests (Files): Likewise.
5222 * modules/unictype/combining-class-tests (Files): Likewise.
5223 * modules/unictype/ctype-alnum-tests (Files): Likewise.
5224 * modules/unictype/ctype-alpha-tests (Files): Likewise.
5225 * modules/unictype/ctype-blank-tests (Files): Likewise.
5226 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5227 * modules/unictype/ctype-digit-tests (Files): Likewise.
5228 * modules/unictype/ctype-graph-tests (Files): Likewise.
5229 * modules/unictype/ctype-lower-tests (Files): Likewise.
5230 * modules/unictype/ctype-print-tests (Files): Likewise.
5231 * modules/unictype/ctype-punct-tests (Files): Likewise.
5232 * modules/unictype/ctype-space-tests (Files): Likewise.
5233 * modules/unictype/ctype-upper-tests (Files): Likewise.
5234 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5235 * modules/unictype/decimal-digit-tests (Files): Likewise.
5236 * modules/unictype/digit-tests (Files): Likewise.
5237 * modules/unictype/mirror-tests (Files): Likewise.
5238 * modules/unictype/numeric-tests (Files): Likewise.
5239 * modules/unictype/property-alphabetic-tests (Files): Likewise.
5240 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5241 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5242 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5244 * modules/unictype/property-bidi-block-separator-tests (Files):
5246 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5248 * modules/unictype/property-bidi-common-separator-tests (Files):
5250 * modules/unictype/property-bidi-control-tests (Files): Likewise.
5251 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5253 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5255 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5257 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5258 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5260 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5261 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5263 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5264 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5265 * modules/unictype/property-bidi-segment-separator-tests (Files):
5267 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5268 * modules/unictype/property-byname-tests (Files): Likewise.
5269 * modules/unictype/property-combining-tests (Files): Likewise.
5270 * modules/unictype/property-composite-tests (Files): Likewise.
5271 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5272 * modules/unictype/property-dash-tests (Files): Likewise.
5273 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5274 * modules/unictype/property-default-ignorable-code-point-tests (Files):
5276 * modules/unictype/property-deprecated-tests (Files): Likewise.
5277 * modules/unictype/property-diacritic-tests (Files): Likewise.
5278 * modules/unictype/property-extender-tests (Files): Likewise.
5279 * modules/unictype/property-format-control-tests (Files): Likewise.
5280 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5281 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5282 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5283 * modules/unictype/property-hex-digit-tests (Files): Likewise.
5284 * modules/unictype/property-hyphen-tests (Files): Likewise.
5285 * modules/unictype/property-id-continue-tests (Files): Likewise.
5286 * modules/unictype/property-id-start-tests (Files): Likewise.
5287 * modules/unictype/property-ideographic-tests (Files): Likewise.
5288 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5289 * modules/unictype/property-ids-trinary-operator-tests (Files):
5291 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5292 * modules/unictype/property-iso-control-tests (Files): Likewise.
5293 * modules/unictype/property-join-control-tests (Files): Likewise.
5294 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5295 * modules/unictype/property-line-separator-tests (Files): Likewise.
5296 * modules/unictype/property-logical-order-exception-tests (Files):
5298 * modules/unictype/property-lowercase-tests (Files): Likewise.
5299 * modules/unictype/property-math-tests (Files): Likewise.
5300 * modules/unictype/property-non-break-tests (Files): Likewise.
5301 * modules/unictype/property-not-a-character-tests (Files): Likewise.
5302 * modules/unictype/property-numeric-tests (Files): Likewise.
5303 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5304 * modules/unictype/property-other-default-ignorable-code-point-tests
5306 * modules/unictype/property-other-grapheme-extend-tests (Files):
5308 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5309 * modules/unictype/property-other-id-start-tests (Files): Likewise.
5310 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5311 * modules/unictype/property-other-math-tests (Files): Likewise.
5312 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5313 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5314 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5315 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5316 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5317 * modules/unictype/property-private-use-tests (Files): Likewise.
5318 * modules/unictype/property-punctuation-tests (Files): Likewise.
5319 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5320 * modules/unictype/property-radical-tests (Files): Likewise.
5321 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5322 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5323 * modules/unictype/property-space-tests (Files): Likewise.
5324 * modules/unictype/property-terminal-punctuation-tests (Files):
5326 * modules/unictype/property-test-tests (Files): Likewise.
5327 * modules/unictype/property-titlecase-tests (Files): Likewise.
5328 * modules/unictype/property-unassigned-code-value-tests (Files):
5330 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5331 * modules/unictype/property-uppercase-tests (Files): Likewise.
5332 * modules/unictype/property-variation-selector-tests (Files): Likewise.
5333 * modules/unictype/property-white-space-tests (Files): Likewise.
5334 * modules/unictype/property-xid-continue-tests (Files): Likewise.
5335 * modules/unictype/property-xid-start-tests (Files): Likewise.
5336 * modules/unictype/property-zero-width-tests (Files): Likewise.
5337 * modules/unictype/scripts-tests (Files): Likewise.
5338 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5339 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5340 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5341 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5342 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5343 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5344 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5345 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5346 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5347 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5348 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5349 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5350 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5351 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5352 * modules/uninorm/composition-tests (Files): Likewise.
5353 * modules/uninorm/decomposing-form-tests (Files): Likewise.
5354 * modules/uninorm/decomposition-tests (Files): Likewise.
5355 * modules/uninorm/filter-tests (Files): Likewise.
5356 * modules/uninorm/nfc-tests (Files): Likewise.
5357 * modules/uninorm/nfd-tests (Files): Likewise.
5358 * modules/uninorm/nfkc-tests (Files): Likewise.
5359 * modules/uninorm/nfkd-tests (Files): Likewise.
5360 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5361 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5362 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5363 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5364 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5365 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5366 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5367 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5368 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5369 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5370 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5371 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5372 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5373 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5374 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5375 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5376 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5377 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5378 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5379 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5380 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5381 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5382 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5383 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5384 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5385 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5386 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5387 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5388 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5389 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5390 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5391 * modules/uniwidth/u8-width-tests (Files): Likewise.
5392 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5393 * modules/uniwidth/u16-width-tests (Files): Likewise.
5394 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5395 * modules/uniwidth/u32-width-tests (Files): Likewise.
5396 * modules/uniwidth/width-tests (Files): Likewise.
5397 * modules/unlink-tests (Files): Likewise.
5398 * modules/unsetenv-tests (Files): Likewise.
5399 * modules/usleep-tests (Files): Likewise.
5400 * modules/utimens-tests (Files): Likewise.
5401 * modules/utimensat-tests (Files): Likewise.
5402 * modules/vasnprintf-posix-tests (Files): Likewise.
5403 * modules/vasnprintf-tests (Files): Likewise.
5404 * modules/vasprintf-posix-tests (Files): Likewise.
5405 * modules/vasprintf-tests (Files): Likewise.
5406 * modules/vdprintf-posix-tests (Files): Likewise.
5407 * modules/vfprintf-posix-tests (Files): Likewise.
5408 * modules/vprintf-posix-tests (Files): Likewise.
5409 * modules/vsnprintf-posix-tests (Files): Likewise.
5410 * modules/vsnprintf-tests (Files): Likewise.
5411 * modules/vsprintf-posix-tests (Files): Likewise.
5412 * modules/wcrtomb-tests (Files): Likewise.
5413 * modules/wcsnrtombs-tests (Files): Likewise.
5414 * modules/wcsrtombs-tests (Files): Likewise.
5415 * modules/wctype-tests (Files): Likewise.
5416 * modules/wcwidth-tests (Files): Likewise.
5417 * modules/xmemdup0-tests (Files): Likewise.
5418 * modules/xprintf-posix-tests (Files): Likewise.
5419 * modules/xvasprintf-tests (Files): Likewise.
5421 2009-12-24 Eric Blake <ebb9@byu.net>
5423 test-nanosleep: fix typo
5424 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5426 Reported by Bruno Haible.
5428 2009-12-24 Bruno Haible <bruno@clisp.org>
5430 Reduce namespace pollution on glibc systems.
5431 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5432 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5434 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5435 <getopt.h> on glibc systems.
5436 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5438 * lib/fcntl.c: Include <unistd.h> here instead.
5440 2009-12-24 Bruno Haible <bruno@clisp.org>
5442 * lib/stdlib.in.h (includes): Fix typo in today's commit.
5444 2009-12-24 Eric Blake <ebb9@byu.net>
5446 tests: add signature checks
5447 * tests/signature.h (SIGNATURE_CHECK): New file.
5448 * modules/atexit-tests (Files): Use it.
5449 * modules/btowc-tests (Files): Likewise.
5450 * modules/canonicalize-lgpl-tests (Files): Likewise.
5451 * modules/ceilf-tests (Files): Likewise.
5452 * modules/ceill-tests (Files): Likewise.
5453 * modules/chown-tests (Files): Likewise.
5454 * modules/dprintf-posix-tests (Files): Likewise.
5455 * modules/dup2-tests (Files): Likewise.
5456 * modules/dup3-tests (Files): Likewise.
5457 * modules/duplocale-tests (Files): Likewise.
5458 * modules/fchdir-tests (Files): Likewise.
5459 * modules/fcntl-tests (Files): Likewise.
5460 * modules/fdopendir-tests (Files): Likewise.
5461 * modules/fflush-tests (Files): Likewise.
5462 * modules/flock-tests (Files): Likewise.
5463 * modules/floorf-tests (Files): Likewise.
5464 * modules/floorl-tests (Files): Likewise.
5465 * modules/fnmatch-tests (Files): Likewise.
5466 * modules/fopen-tests (Files): Likewise.
5467 * modules/fprintf-posix-tests (Files): Likewise.
5468 * modules/freopen-tests (Files): Likewise.
5469 * modules/frexp-nolibm-tests (Files): Likewise.
5470 * modules/frexp-tests (Files): Likewise.
5471 * modules/frexpl-nolibm-tests (Files): Likewise.
5472 * modules/frexpl-tests (Files): Likewise.
5473 * modules/fseek-tests (Files): Likewise.
5474 * modules/fseeko-tests (Files): Likewise.
5475 * modules/fsync-tests (Files): Likewise.
5476 * modules/ftell-tests (Files): Likewise.
5477 * modules/ftello-tests (Files): Likewise.
5478 * modules/futimens-tests (Files): Likewise.
5479 * modules/getaddrinfo-tests (Files): Likewise.
5480 * modules/getcwd-tests (Files): Likewise.
5481 * modules/getdelim-tests (Files): Likewise.
5482 * modules/getdtablesize-tests (Files): Likewise.
5483 * modules/getgroups-tests (Files): Likewise.
5484 * modules/gethostname-tests (Files): Likewise.
5485 * modules/getline-tests (Files): Likewise.
5486 * modules/getopt-posix-tests (Files): Likewise.
5487 * modules/gettimeofday-tests (Files): Likewise.
5488 * modules/glob-tests (Files): Likewise.
5489 * modules/iconv-tests (Files): Likewise.
5490 * modules/inet_ntop-tests (Files): Likewise.
5491 * modules/inet_pton-tests (Files): Likewise.
5492 * modules/isblank-tests (Files): Likewise.
5493 * modules/lchown-tests (Files): Likewise.
5494 * modules/ldexpl-tests (Files): Likewise.
5495 * modules/link-tests (Files): Likewise.
5496 * modules/linkat-tests (Files): Likewise.
5497 * modules/lseek-tests (Files): Likewise.
5498 * modules/lstat-tests (Files): Likewise.
5499 * modules/mbrtowc-tests (Files): Likewise.
5500 * modules/mbsinit-tests (Files): Likewise.
5501 * modules/mbsnrtowcs-tests (Files): Likewise.
5502 * modules/mbsrtowcs-tests (Files): Likewise.
5503 * modules/memchr-tests (Files): Likewise.
5504 * modules/memcmp-tests (Files): Likewise.
5505 * modules/memmem-tests (Files): Likewise.
5506 * modules/memrchr-tests (Files): Likewise.
5507 * modules/mkdir-tests (Files): Likewise.
5508 * modules/mkfifo-tests (Files): Likewise.
5509 * modules/mkfifoat-tests (Files): Likewise.
5510 * modules/mknod-tests (Files): Likewise.
5511 * modules/nanosleep-tests (Files): Likewise.
5512 * modules/nl_langinfo-tests (Files): Likewise.
5513 * modules/obstack-printf-tests (Files): Likewise.
5514 * modules/open-tests (Files): Likewise.
5515 * modules/openat-tests (Files): Likewise.
5516 * modules/perror-tests (Files): Likewise.
5517 * modules/pipe2-tests (Files): Likewise.
5518 * modules/poll-tests (Files): Likewise.
5519 * modules/popen-tests (Files): Likewise.
5520 * modules/posix_spawn-tests (Files): Likewise.
5521 * modules/posix_spawnp-tests (Files): Likewise.
5522 * modules/pread-tests (Files): Likewise.
5523 * modules/printf-posix-tests (Files): Likewise.
5524 * modules/pty-tests (Files): Likewise.
5525 * modules/random_r-tests (Files): Likewise.
5526 * modules/rawmemchr-tests (Files): Likewise.
5527 * modules/readlink-tests (Files): Likewise.
5528 * modules/remove-tests (Files): Likewise.
5529 * modules/rename-tests (Files): Likewise.
5530 * modules/renameat-tests (Files): Likewise.
5531 * modules/rmdir-tests (Files): Likewise.
5532 * modules/round-tests (Files): Likewise.
5533 * modules/roundf-tests (Files): Likewise.
5534 * modules/roundl-tests (Files): Likewise.
5535 * modules/select-tests (Files): Likewise.
5536 * modules/setenv-tests (Files): Likewise.
5537 * modules/sigaction-tests (Files): Likewise.
5538 * modules/sleep-tests (Files): Likewise.
5539 * modules/snprintf-posix-tests (Files): Likewise.
5540 * modules/snprintf-tests (Files): Likewise.
5541 * modules/sprintf-posix-tests (Files): Likewise.
5542 * modules/stat-tests (Files): Likewise.
5543 * modules/strcasestr-tests (Files): Likewise.
5544 * modules/strchrnul-tests (Files): Likewise.
5545 * modules/strerror-tests (Files): Likewise.
5546 * modules/strsignal-tests (Files): Likewise.
5547 * modules/strstr-tests (Files): Likewise.
5548 * modules/strtod-tests (Files): Likewise.
5549 * modules/strverscmp-tests (Files): Likewise.
5550 * modules/symlink-tests (Files): Likewise.
5551 * modules/symlinkat-tests (Files): Likewise.
5552 * modules/times-tests (Files): Likewise.
5553 * modules/trunc-tests (Files): Likewise.
5554 * modules/truncf-tests (Files): Likewise.
5555 * modules/truncl-tests (Files): Likewise.
5556 * modules/tsearch-tests (Files): Likewise.
5557 * modules/uname-tests (Files): Likewise.
5558 * modules/unlink-tests (Files): Likewise.
5559 * modules/unsetenv-tests (Files): Likewise.
5560 * modules/usleep-tests (Files): Likewise.
5561 * modules/utimensat-tests (Files): Likewise.
5562 * modules/vasprintf-tests (Files): Likewise.
5563 * modules/vdprintf-posix-tests (Files): Likewise.
5564 * modules/vfprintf-posix-tests (Files): Likewise.
5565 * modules/vprintf-posix-tests (Files): Likewise.
5566 * modules/vsnprintf-posix-tests (Files): Likewise.
5567 * modules/vsnprintf-tests (Files): Likewise.
5568 * modules/vsprintf-posix-tests (Files): Likewise.
5569 * modules/wcrtomb-tests (Files): Likewise.
5570 * modules/wcsnrtombs-tests (Files): Likewise.
5571 * modules/wcsrtombs-tests (Files): Likewise.
5572 * modules/wcwidth-tests (Files): Likewise.
5573 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5574 * tests/test-isinf.c (isinf): Likewise.
5575 * tests/test-isnan.c (isnan): Likewise.
5576 * tests/test-signbit.c (signbit): Likewise.
5577 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5578 declaration, either as macro or with correct signature.
5579 (select): Ensure function under test is declared with correct
5580 signature in correct header.
5581 * tests/test-atexit.c (atexit): Likewise.
5582 * tests/test-btowc.c (btowc): Likewise.
5583 * tests/test-canonicalize-lgpl.c (realpath)
5584 (canonicalize_file_name): Likewise.
5585 * tests/test-ceilf1.c (ceilf): Likewise.
5586 * tests/test-ceill.c (ceill): Likewise.
5587 * tests/test-chown.c (chown): Likewise.
5588 * tests/test-dprintf-posix.c (dprintf): Likewise.
5589 * tests/test-dup2.c (dup2): Likewise.
5590 * tests/test-dup3.c (dup3): Likewise.
5591 * tests/test-duplocale.c (duplocale): Likewise.
5592 * tests/test-fchdir.c (fchdir): Likewise.
5593 * tests/test-fchownat.c (fchownat): Likewise.
5594 * tests/test-fcntl.c (fcntl): Likewise.
5595 * tests/test-fdopendir.c (fdopendir): Likewise.
5596 * tests/test-fflush.c (fflush): Likewise.
5597 * tests/test-flock.c (flock): Likewise.
5598 * tests/test-floorf1.c (floorf): Likewise.
5599 * tests/test-floorl.c (floorl): Likewise.
5600 * tests/test-fnmatch.c (fnmatch): Likewise.
5601 * tests/test-fopen.c (fopen): Likewise.
5602 * tests/test-fprintf-posix.c (fprintf): Likewise.
5603 * tests/test-freopen.c (freopen): Likewise.
5604 * tests/test-frexp.c (frexp): Likewise.
5605 * tests/test-frexpl.c (frexpl): Likewise.
5606 * tests/test-fseek.c (fseek): Likewise.
5607 * tests/test-fseeko.c (fseeko): Likewise.
5608 * tests/test-fstatat.c (fstatat): Likewise.
5609 * tests/test-fsync.c (fsync): Likewise.
5610 * tests/test-ftell.c (ftell): Likewise.
5611 * tests/test-ftello.c (ftello): Likewise.
5612 * tests/test-futimens.c (futimens): Likewise.
5613 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5614 (gai_strerror): Likewise.
5615 * tests/test-getcwd.c (getcwd): Likewise.
5616 * tests/test-getdelim.c (getdelim): Likewise.
5617 * tests/test-getdtablesize.c (getdtablesize): Likewise.
5618 * tests/test-getgroups.c (getgroups): Likewise.
5619 * tests/test-gethostname.c (gethostname): Likewise.
5620 * tests/test-getline.c (getline): Likewise.
5621 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5623 * tests/test-gettimeofday.c (gettimeofday): Likewise.
5624 * tests/test-glob.c (glob, globfree): Likewise.
5625 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5626 * tests/test-inet_ntop.c (inet_ntop): Likewise.
5627 * tests/test-inet_pton.c (inet_pton): Likewise.
5628 * tests/test-isblank.c (isblank): Likewise.
5629 * tests/test-lchown.c (lchown): Likewise.
5630 * tests/test-ldexpl.c (ldexpl): Likewise.
5631 * tests/test-link.c (link): Likewise.
5632 * tests/test-linkat.c (linkat): Likewise.
5633 * tests/test-lseek.c (lseek): Likewise.
5634 * tests/test-lstat.c (lstat): Likewise.
5635 * tests/test-mbrtowc.c (mbrtowc): Likewise.
5636 * tests/test-mbsinit.c (mbsinit): Likewise.
5637 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5638 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5639 * tests/test-memchr.c (memchr): Likewise.
5640 * tests/test-memcmp.c (memcmp): Likewise.
5641 * tests/test-memmem.c (memmem): Likewise.
5642 * tests/test-memrchr.c (memrchr): Likewise.
5643 * tests/test-mkdir.c (mkdir): Likewise.
5644 * tests/test-mkdirat.c (mkdirat): Likewise.
5645 * tests/test-mkfifo.c (mkfifo): Likewise.
5646 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5647 * tests/test-mknod.c (mknod): Likewise.
5648 * tests/test-nanosleep.c (nanosleep): Likewise.
5649 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5650 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5652 * tests/test-open.c (open): Likewise.
5653 * tests/test-openat.c (openat): Likewise.
5654 * tests/test-perror.c (perror): Likewise.
5655 * tests/test-pipe2.c (pipe2): Likewise.
5656 * tests/test-poll.c (poll): Likewise.
5657 * tests/test-popen.c (popen, pclose): Likewise.
5658 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5659 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5660 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5661 (posix_spawn_file_actions_destroy)
5662 (posix_spawn_file_actions_addclose)
5663 (posix_spawn_file_actions_addopen)
5664 (posix_spawn_file_actions_adddup2): Likewise.
5665 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5666 * tests/test-pread.c (pread): Likewise.
5667 * tests/test-printf-posix.c (printf): Likewise.
5668 * tests/test-pty.c (openpty, forkpty): Likewise.
5669 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5670 (random_r): Likewise.
5671 * tests/test-rawmemchr.c (rawmemchr): Likewise.
5672 * tests/test-readlink.c (readlink): Likewise.
5673 * tests/test-remove.c (remove): Likewise.
5674 * tests/test-rename.c (rename): Likewise.
5675 * tests/test-renameat.c (renameat): Likewise.
5676 * tests/test-rmdir.c (rmdir): Likewise.
5677 * tests/test-round1.c (round): Likewise.
5678 * tests/test-roundf1.c (roundf): Likewise.
5679 * tests/test-roundl.c (roundl): Likewise.
5680 * tests/test-setenv.c (setenv): Likewise.
5681 * tests/test-sigaction.c (sigaction): Likewise.
5682 * tests/test-sleep.c (sleep): Likewise.
5683 * tests/test-snprintf.c (snprintf): Likewise.
5684 * tests/test-sprintf-posix.c (sprintf): Likewise.
5685 * tests/test-stat.c (stat): Likewise.
5686 * tests/test-stpncpy.c (stpncpy): Likewise.
5687 * tests/test-strcasestr.c (strcasestr): Likewise.
5688 * tests/test-strchrnul.c (strchrnul): Likewise.
5689 * tests/test-strerror.c (strerror): Likewise.
5690 * tests/test-strsignal.c (strsignal): Likewise.
5691 * tests/test-strstr.c (strstr): Likewise.
5692 * tests/test-strtod.c (strtod): Likewise.
5693 * tests/test-strverscmp.c (strverscmp): Likewise.
5694 * tests/test-symlink.c (symlink): Likewise.
5695 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5696 * tests/test-times.c (times): Likewise.
5697 * tests/test-trunc1.c (trunc): Likewise.
5698 * tests/test-truncf1.c (truncf): Likewise.
5699 * tests/test-truncl.c (truncl): Likewise.
5700 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5702 * tests/test-uname.c (uname): Likewise.
5703 * tests/test-unlink.c (unlink): Likewise.
5704 * tests/test-unlinkat.c (unlinkat): Likewise.
5705 * tests/test-unsetenv.c (unsetenv): Likewise.
5706 * tests/test-usleep.c (usleep): Likewise.
5707 * tests/test-utimensat.c (utimensat): Likewise.
5708 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5709 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5710 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5711 * tests/test-vprintf-posix.c (vprintf): Likewise.
5712 * tests/test-vsnprintf.c (vsnprintf): Likewise.
5713 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5714 * tests/test-wcrtomb.c (wcrtomb): Likewise.
5715 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5716 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5717 * tests/test-wcwidth.c (wcwidth): Likewise.
5719 build: pull in conditional headers during GNULIB_POSIXCHECK
5720 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5721 definitions from any conditionally-included headers.
5722 * lib/stdlib.in.h (includes): Likewise.
5723 * lib/unistd.in.h (includes): Likewise.
5725 2009-12-24 Bruno Haible <bruno@clisp.org>
5727 * tests/test-argv-iter.c: Include header file being tested immediately
5729 * tests/test-base64.c: Likewise.
5730 * tests/test-flock.c: Likewise.
5731 * tests/test-fsync.c: Likewise.
5732 * tests/test-getdate.c: Likewise.
5733 * tests/test-getndelim2.c: Likewise.
5734 * tests/test-isfinite.c: Likewise.
5735 * tests/test-isinf.c: Likewise.
5736 * tests/test-strerror.c: Likewise.
5737 * tests/test-strsignal.c: Likewise.
5739 2009-12-23 Eric Blake <ebb9@byu.net>
5741 unistd: work around cygwin bug
5742 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5743 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5744 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5746 2009-12-23 Bruno Haible <bruno@clisp.org>
5748 localename: More tests.
5749 * tests/test-localename.c (SIZEOF): New macro.
5750 (categories): New variable.
5751 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5752 test_locale_name_default): Add test w.r.t. thread locale.
5753 (test_locale_name_thread): New function.
5756 localename: Make aware of thread locale.
5757 * lib/localename.h (gl_locale_name_thread): New declaration.
5758 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5759 behaviour with respect to thread locale.
5760 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5761 <langinfo.h>, glthread/lock.h.
5762 (SIZE_BITS): New macro.
5763 (string_hash): New function.
5764 (struct hash_node): New type.
5765 (HASH_TABLE_SIZE): New macro.
5766 (struniq_hash_table, struniq_lock): New variables.
5767 (struniq): New function.
5768 (gl_locale_name_thread): New function.
5769 (gl_locale_name): Invoke it.
5770 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5771 * modules/localename (Depends-on): Add lock.
5772 Reported by Mike Gran <spk121@yahoo.com>.
5774 2009-12-23 Eric Blake <ebb9@byu.net>
5777 * modules/va-args: New file.
5778 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5779 * MODULES.html.sh (Core language properties): Mention it.
5781 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5782 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5783 named alias for __attribute__((__unused__)).
5784 * lib/chown.c: Update client.
5785 * lib/fchmodat.c: Likewise.
5786 * lib/fts.c: Likewise.
5787 * lib/getdate.y: Likewise.
5788 * lib/getgroups.c: Likewise.
5789 * lib/getopt.c: Likewise.
5790 * lib/getugroups.c: Likewise.
5791 * lib/mkdir.c: Likewise.
5792 * lib/mkfifo.c: Likewise.
5793 * lib/mkfifoat.c: Likewise.
5794 * lib/mknod.c: Likewise.
5795 * lib/mknodat.c: Likewise.
5796 * lib/readlink.c: Likewise.
5797 * lib/se-context.in.h: Likewise.
5798 * lib/se-selinux.in.h: Likewise.
5799 * lib/sockets.c: Likewise.
5800 * lib/symlink.c: Likewise.
5801 * lib/symlinkat.c: Likewise.
5802 * lib/unicodeio.c: Likewise.
5803 * lib/unistr.h: Likewise.
5804 * tests/test-areadlink.c: Likewise.
5805 * tests/test-areadlinkat.c: Likewise.
5806 * tests/test-filenamecat.c: Likewise.
5807 * tests/test-fseeko.c: Likewise.
5808 * tests/test-ftello.c: Likewise.
5809 * tests/test-getdate.c: Likewise.
5810 * tests/test-getgroups.c: Likewise.
5811 * tests/test-gethostname.c: Likewise.
5812 * tests/test-quotearg.c: Likewise.
5813 * tests/test-version-etc.c: Likewise.
5814 * tests/test-xalloc-die.c: Likewise.
5815 * tests/test-xfprintf-posix.c: Likewise.
5816 * tests/test-xprintf-posix.c: Likewise.
5817 * tests/test-xvasprintf.c: Likewise.
5819 tests: avoid compiler warnings
5820 * tests/test-fcntl.c (main): Delete unused parameters.
5821 * tests/test-freopen-safer.c (main): Likewise.
5822 * tests/test-xalloc-die.c (main): Mark unused parameters.
5823 * tests/test-fseeko.c (main): Likewise.
5824 * tests/test-ftello.c (main): Likewise.
5825 * tests/test-nanosleep.c (main): Avoid declaration warning.
5826 * tests/test-sleep.c (main): Likewise.
5827 * tests/test-unsetenv.c (main): Silence warning about string
5829 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5831 2009-12-23 Bruno Haible <bruno@clisp.org>
5833 * tests/test-localename.c (test_locale_name): New function, extracted
5834 from main. Also test mixed situations.
5835 (test_locale_name_posix, test_locale_name_environ,
5836 test_locale_name_default): New functions.
5837 (main): Invoke them all.
5838 * modules/localename-tests (configure.ac): Test for newlocale.
5840 2009-12-23 Bruno Haible <bruno@clisp.org>
5842 unistd: Ensure getcwd gets declared before being overridden.
5843 * lib/unistd.in.h: Conditionally include <io.h>.
5845 2009-12-22 Bruno Haible <bruno@clisp.org>
5847 wchar: Diagnose broken combination of glibc and gcc versions and flags.
5848 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5849 (gl_WCHAR_H): Invoke it.
5850 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5851 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5852 Reported by Karl Berry <karl@freefriends.org>.
5854 2009-12-22 Eric Blake <ebb9@byu.net>
5856 math, unistd: avoid redundant includes
5857 * lib/math.in.h (isnan): No need to re-include <math.h>.
5858 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5860 getsubopt: work around cygwin bug
5861 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5862 avoid conflicting with system getsubopt.
5863 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5866 getopt: synchronize from glibc
5867 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5868 parameter order. Adjust all callers.
5869 (_getopt_internal_r, main): Adjust quoting in error messages.
5870 Drop considerations for outdated POSIX 1003.2 error message.
5871 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5873 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5875 test-getopt: test stderr behavior
5876 * modules/getopt-posix-tests (Depends-on): Add dup2.
5877 * tests/test-getopt.c (ASSERT): Avoid stderr.
5878 (main): Move stderr to a temporary file.
5879 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5880 Instead, add parameter to inform caller if output occurred.
5881 (test_getopt): Adjust all existing tests to expect silence, and
5882 add new tests of leading ":".
5883 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5884 glibc shortcomings with leading "-:" or "+:" in optstring.
5885 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5887 * doc/posix-functions/getopt.texi (getopt): Likewise.
5889 test-getopt: enhance test
5890 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5892 * tests/test-getopt.c (OPTIND_MIN): Move...
5893 * tests/test-getopt.h (OPTIND_MIN): ...here.
5894 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5895 Require that optind=0 works, since modern BSD supports it in
5896 addition to optreset, and since coreutils expects it.
5897 (test_getopt_long_only): New test.
5898 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5899 glibc shortcomings with 'W;', and enforcement of optind=0.
5900 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5903 2009-12-21 Bruno Haible <bruno@clisp.org>
5905 localename: Improvements for MacOS X and Cygwin.
5906 * lib/localename.h (gl_locale_name_environ): New declaration.
5907 * lib/localename.c (gl_locale_name_environ): New function, extracted from
5908 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5909 (gl_locale_name_posix): Invoke it.
5910 (gl_locale_name_default): Add comments. Use Windows native API also on
5913 2009-12-21 Bruno Haible <bruno@clisp.org>
5915 Update list of Win32 locale ids.
5916 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5917 (LANG_SAMI): Renamed from LANG_SAAMI.
5918 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5919 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5920 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5921 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5922 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5923 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5924 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5925 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5926 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5927 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5928 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5929 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5930 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5931 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5932 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5933 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5934 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5935 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5936 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5937 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5938 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5939 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5940 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5941 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5942 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5943 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5944 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5945 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5946 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5947 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5948 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5949 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5950 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5951 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5952 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5953 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5954 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5955 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5956 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5957 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5958 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5959 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5960 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5961 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5962 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5963 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5964 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5965 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5966 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5967 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5968 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5969 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5970 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5971 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5972 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5973 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5974 Add more languages and countries for Sami, Sorbian. Add more countries
5975 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5976 for Pashto. Change country for Syriac, Tswana.
5978 2009-12-21 Eric Blake <ebb9@byu.net>
5980 test-utimens: avoid spurious failure
5981 * tests/test-chown.h (nap): Factor...
5982 * tests/nap.h: ...into new file.
5983 * tests/test-lchown.h (nap): Avoid duplication.
5984 * tests/test-utimens-common.h (nap): Use shared implementation,
5985 necessary on file systems with 1-second resolution.
5986 * modules/chown-tests (Files): Include new file.
5987 * modules/fdutimensat-tests (Files): Likewise.
5988 * modules/futimens-tests (Files): Likewise.
5989 * modules/lchown-tests (Files): Likewise.
5990 * modules/openat-tests (Files): Likewise.
5991 * modules/utimens-tests (Files): Likewise.
5992 * modules/utimensat-tests (Files): Likewise.
5994 2009-12-19 Eric Blake <ebb9@byu.net>
5996 futimens, utimensat: work around Linux bug
5997 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5998 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5999 * lib/utimensat.c (rpl_utimensat): Work around it.
6000 * lib/futimens.c (rpl_futimens): Adjust comment.
6002 utimens: work around Linux ctime bug
6003 * lib/utimens.c (detect_ctime_bug): New helper function.
6004 (update_timespec): Differentiate between workaround needed for
6005 this bug vs. what is needed for systems that lack utimensat.
6006 (fdutimens, lutimens): Work around bug.
6008 utimens: check for ctime update
6009 * tests/test-utimens-common.h (check_ctime): Define.
6010 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6011 * tests/test-futimens.h (test_futimens): Likewise.
6012 * tests/test-lutimens.h (test_lutimens): Likewise.
6013 * doc/posix-functions/futimens.texi (futimens): Document the bug.
6014 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6016 2009-12-19 Bruno Haible <bruno@clisp.org>
6018 dprintf-posix: Check against memory leak fixed on 2009-12-15.
6019 * tests/test-dprintf-posix2.sh: New file.
6020 * tests/test-dprintf-posix2.c: New file.
6021 * modules/dprintf-posix-tests (Files): Add them.
6022 (configure.ac): Check for getrlimit and setrlimit.
6023 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6025 2009-12-19 Bruno Haible <bruno@clisp.org>
6027 fprintf-posix: Check against memory leak fixed on 2009-12-15.
6028 * tests/test-fprintf-posix3.sh: New file.
6029 * tests/test-fprintf-posix3.c: New file.
6030 * modules/fprintf-posix-tests (Files): Add them.
6031 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6033 2009-12-19 Eric Blake <ebb9@byu.net>
6035 dirfd: fix prototype
6036 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6037 * lib/dirfd.c (dirfd): Likewise.
6039 canonicalize: reduce memory usage
6040 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6042 Reported by Solar Designer <solar@openwall.com>.
6044 2009-12-19 Bruno Haible <bruno@clisp.org>
6046 New module attribute 'Applicability'.
6047 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6048 * gnulib-tool: New option --extract-applicability.
6049 (func_usage): Document it.
6050 (sed_extract_prog): Recognize it.
6051 (func_get_applicability): New function.
6052 (func_import): Generalize handling of 'link-warning' module.
6053 * modules/link-warning (Applicability): New section.
6054 * modules/arg-nonnull (Applicability): New section.
6055 Repoted by Simon Josefsson <simon@josefsson.org>.
6057 2009-12-19 Bruno Haible <bruno@clisp.org>
6060 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6061 * lib/fseeko.c (rpl_fseeko): Likewise.
6063 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
6065 * lib/gl_list.h: Fix typo in comment.
6067 2009-12-16 Eric Blake <ebb9@byu.net>
6069 fcntl: use to simplify other modules
6070 * modules/cloexec (Depends-on): Add fcntl.
6071 * modules/fchdir (Depends-on): Likewise.
6072 * modules/fd-safer-flag (Depends-on): Likewise.
6073 * modules/unistd-safer (Depends-on): Likewise.
6074 * modules/dup3 (configure.ac): Set module indicator.
6075 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6077 * lib/fchdir.c (_gl_register_dup): Fix comment.
6078 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6079 * lib/dup-safer.c (dup_safer): Likewise.
6080 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6081 * lib/dup3.c (dup3): Likewise.
6082 * tests/test-fchdir.c (main): Enhance test.
6083 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
6085 fcntl: port portions of fcntl to mingw
6086 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6087 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6088 replacement for mingw.
6089 * modules/fcntl (Description): Update.
6090 (Depends-on): Add dup2.
6091 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6092 * modules/fcntl-h (Makefile.am): Substitute it.
6093 * lib/fcntl.in.h (fcntl): Update declaration.
6094 (F_DUPFD, F_GETFD): New macros, when needed.
6095 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6096 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6097 * tests/test-fcntl.c (check_flags, main): Enhance test for items
6100 fcntl: work around cygwin bug in F_DUPFD
6101 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6102 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
6103 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6104 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6105 * doc/posix-functions/fcntl.texi (fcntl): Document it.
6107 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6108 * modules/fcntl (Files): List new files.
6109 (configure.ac): Run a test.
6110 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6111 * lib/fcntl.c (rpl_fcntl): Likewise.
6112 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6113 (gl_FCNTL_H): Always replace fcntl.h.
6114 * modules/fcntl-h (Makefile.am): Substitute witnesses.
6115 * lib/fcntl.in.h (fcntl): Declare replacement.
6116 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6117 needed, plus a witness.
6118 * doc/posix-functions/fcntl.texi (fcntl): Document this.
6119 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6120 * tests/test-fcntl.c: New file.
6121 * modules/fcntl-tests: Likewise.
6123 binary-io: avoid potential compilation warning
6124 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6127 fflush: avoid compilation error on NetBSD
6128 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6129 between off_t and fpos_t, since the latter is sometimes a struct.
6130 * lib/fseeko.c (rpl_fseeko): Likewise.
6131 Reported by Alexander Nasonov <alnsn@yandex.ru>.
6133 2009-12-15 Eric Blake <ebb9@byu.net>
6135 fcntl-h, stdio, sys_ioctl: fix declarations
6136 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6137 function must not take arguments.
6138 * lib/sys_ioctl.in.h (ioctl): Likewise.
6139 * lib/fcntl.in.h (openat): Likewise. Declare extern.
6140 (open): Add a link warning.
6142 2009-12-15 Jim Meyering <meyering@redhat.com>
6144 areadlink, areadlink-with-size: relax license to LGPLv2+
6145 * modules/areadlink (License): Relax to LGPLv2+.
6146 * modules/areadlink-with-size (License): Likewise.
6148 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
6149 Bruno Haible <bruno@clisp.org>
6151 *printf: Fix memory leak.
6152 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6153 * lib/vfprintf.c (vfprintf): Likewise.
6154 * lib/dprintf.c (dprintf): Likewise.
6155 * lib/vdprintf.c (vdprintf): Likewise.
6157 2009-12-14 Eric Blake <ebb9@byu.net>
6159 accept4: adjust module dependencies
6160 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6162 utimens: one more try at avoiding compiler warning
6163 * lib/utimens.c (lutimens): Lower scope of result.
6165 2009-12-13 Bruno Haible <bruno@clisp.org>
6167 Move the malloc checking from module 'list' to new module 'xlist'.
6168 * modules/xlist: New file.
6169 * lib/gl_xlist.h: New file.
6170 * lib/gl_xlist.c: New file.
6171 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6172 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6173 gl_list_add_last, gl_list_add_before, gl_list_add_after,
6174 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6175 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6176 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6177 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6178 gl_sortedlist_nx_add): New declarations.
6179 (struct gl_list_implementation): Rename and change methods accordingly.
6180 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6181 (gl_list_nx_create): Renamed from gl_list_create.
6182 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6183 (gl_list_nx_set_at): Renamed from gl_list_set_at.
6184 (gl_list_nx_add_first): Renamed from gl_list_add_first.
6185 (gl_list_nx_add_last): Renamed from gl_list_add_last.
6186 (gl_list_nx_add_before): Renamed from gl_list_add_before.
6187 (gl_list_nx_add_after): Renamed from gl_list_add_after.
6188 (gl_list_nx_add_at): Renamed from gl_list_add_at.
6189 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6190 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6191 gl_list_create_empty.
6192 (gl_list_nx_create): Renamed from gl_list_create.
6193 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6194 (gl_list_nx_set_at): Renamed from gl_list_set_at.
6195 (gl_list_nx_add_first): Renamed from gl_list_add_first.
6196 (gl_list_nx_add_last): Renamed from gl_list_add_last.
6197 (gl_list_nx_add_before): Renamed from gl_list_add_before.
6198 (gl_list_nx_add_after): Renamed from gl_list_add_after.
6199 (gl_list_nx_add_at): Renamed from gl_list_add_at.
6200 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6201 * lib/gl_array_list.c: Don't include xalloc.h.
6202 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6203 NULL upon out-of-memory.
6204 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6206 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6207 Change return type to 'int'.
6208 (gl_array_nx_set_at): Renamed from gl_array_set_at.
6209 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6210 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6212 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6214 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6216 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6218 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6220 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6222 (gl_array_list_implementation): Update.
6223 * lib/gl_carray_list.c: Don't include xalloc.h.
6224 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6225 Return NULL upon out-of-memory.
6226 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6228 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6229 Change return type to 'int'.
6230 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6231 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6232 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6234 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6236 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6238 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6239 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6240 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6242 (gl_carray_list_implementation): Update.
6243 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6244 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6245 gl_linked_create_empty. Return NULL upon out-of-memory.
6246 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6248 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6249 Change return type to 'int'. Return -1 upon out-of-memory.
6250 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6252 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6254 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6256 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6257 NULL upon out-of-memory.
6258 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6260 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6262 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6264 * lib/gl_linked_list.c: Don't include xalloc.h.
6265 (gl_linked_list_implementation): Update.
6266 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6267 (add_to_bucket): Change return type to 'int'.
6268 (gl_linkedhash_list_implementation): Update.
6269 * lib/gl_anytree_list1.h (free_subtree): New function.
6270 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6271 gl_tree_create_empty. Return NULL upon out-of-memory.
6272 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6273 Change return type to 'int'. Return -1 upon out-of-memory.
6274 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6276 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6277 (gl_tree_remove_node): New function, moved here from
6278 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6279 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6281 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6282 malloc, not xmalloc. Return NULL upon out-of-memory.
6283 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6285 (gl_tree_remove_node_from_tree): New function, extracted from
6286 gl_tree_remove_node.
6287 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6289 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6291 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6293 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6295 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6296 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6297 not xmalloc. Return NULL upon out-of-memory.
6298 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6300 (gl_tree_remove_node_from_tree): New function, extracted from
6301 gl_tree_remove_node.
6302 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6304 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6306 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6308 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6310 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6311 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6312 gl_anytree_list1.h before gl_anyavltree_list2.h.
6313 (gl_avltree_list_implementation): Update.
6314 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6315 gl_anytree_list1.h before gl_anyavltree_list2.h.
6316 (gl_rbtree_list_implementation): Update.
6317 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6318 Change return type to 'int'. Return -1 upon out-of-memory. Use
6320 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6321 (gl_avltreehash_list_implementation): Update.
6322 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6323 (gl_rbtreehash_list_implementation): Update.
6324 * modules/array-list (Depends-on): Remove xalloc.
6325 * modules/carray-list (Depends-on): Likewise.
6326 * modules/linked-list (Depends-on): Likewise.
6327 * modules/linkedhash-list (Depends-on): Likewise.
6328 * modules/avltree-list (Depends-on): Likewise.
6329 * modules/rbtree-list (Depends-on): Likewise.
6330 * modules/avltreehash-list (Depends-on): Likewise.
6331 * modules/rbtreehash-list (Depends-on): Likewise.
6333 * modules/xsublist: New file.
6334 * lib/gl_xsublist.h: New file.
6335 * lib/gl_xsublist.c: New file.
6336 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6337 (gl_sublist_nx_create): New declaration.
6338 * lib/gl_sublist.c: Don't include xalloc.h.
6339 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6340 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6341 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6342 Change return type to 'int'. Return -1 upon out-of-memory.
6343 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6345 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6346 NULL upon out-of-memory.
6347 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6349 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6350 NULL upon out-of-memory.
6351 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6352 NULL upon out-of-memory.
6353 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6355 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6356 (gl_sublist_list_implementation): Update.
6357 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6359 * modules/sublist (Depends-on): Remove xalloc.
6361 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6362 * tests/test-carray_list.c: Likewise.
6363 * tests/test-linked_list.c: Likewise.
6364 * tests/test-linkedhash_list.c: Likewise.
6365 * tests/test-avltree_list.c: Likewise.
6366 * tests/test-rbtree_list.c: Likewise.
6367 * tests/test-avltreehash_list.c: Likewise.
6368 * tests/test-rbtreehash_list.c: Likewise.
6369 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6370 * modules/carray-list-tests (Makefile.am): Likewise.
6371 * modules/linked-list-tests (Makefile.am): Likewise.
6372 * modules/linkedhash-list-tests (Makefile.am): Likewise.
6373 * modules/avltree-list-tests (Makefile.am): Likewise.
6374 * modules/rbtree-list-tests (Makefile.am): Likewise.
6375 * modules/avltreehash-list-tests (Makefile.am): Likewise.
6376 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6378 * NEWS: Mention the changes.
6380 * lib/clean-temp.c: Include gl_xlist.h.
6381 * modules/clean-temp (Depends-on): Add xlist.
6383 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6384 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6386 * tests/test-array_oset.c: Include gl_xlist.h.
6387 * modules/array-oset-tests (Depends-on): Add xlist.
6389 Reported by José E. Marchesi <jemarch@gnu.org>.
6391 2009-12-13 Bruno Haible <bruno@clisp.org>
6393 Move the malloc checking from module 'oset' to new module 'xoset'.
6394 * modules/xoset: New file.
6395 * lib/gl_xoset.h: New file.
6396 * lib/gl_xoset.c: New file.
6397 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6399 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6400 (struct gl_oset_implementation): Rename and change methods accordingly.
6401 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6402 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6403 'int'. Mark as __warn_unused_result__.
6404 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6405 gl_oset_create_empty.
6406 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6408 * lib/gl_array_oset.c: Don't include xalloc.h.
6409 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6410 malloc, not xmalloc.
6411 (grow): Change return type to 'int'. Don't call xalloc_die.
6412 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6414 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6416 (gl_array_oset_implementation): Update.
6417 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6418 gl_tree_create_empty.
6419 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6421 * lib/gl_avltree_oset.c: Don't include xalloc.h.
6422 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6424 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6426 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6428 (gl_avltree_oset_implementation): Update.
6429 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6430 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6432 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6434 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6436 (gl_rbtree_oset_implementation): Update.
6437 * modules/array-oset (Depends-on): Remove xalloc.
6438 * modules/avltree-oset (Depends-on): Likewise.
6439 * modules/rbtree-oset (Depends-on): Likewise.
6440 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6441 * tests/test-avltree_oset.c: Likewise.
6442 * tests/test-rbtree_oset.c: Likewise.
6443 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6444 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6445 * modules/rbtree-oset-tests (Makefile.am): Likewise.
6446 * NEWS: Mention the change.
6448 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
6450 maint.mk: allow a project to override release-prep commands
6451 * top/maint.mk (alpha, beta, stable): Move release-preparatory
6452 commands into a new rule.
6453 (release-prep): New rule.
6454 (release-prep-hook): New overridable variable.
6456 2009-12-13 Bruno Haible <bruno@clisp.org>
6458 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6460 2009-12-13 Jim Meyering <meyering@redhat.com>
6462 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6463 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6465 2009-12-12 Bruno Haible <bruno@clisp.org>
6468 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6470 2009-12-12 Karl Berry <karl@gnu.org>
6472 * config/srclist.txt (strtoll.c): tab changes, no more sync.
6474 2009-12-12 Bruno Haible <bruno@clisp.org>
6476 * m4/po.m4: Undo incorrect untabification.
6478 2009-12-12 Bruno Haible <bruno@clisp.org>
6480 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6481 * modules/c-strtod (Depends-on): Add locale.
6482 * modules/c-strtold (Depends-on): Likewise.
6484 2009-12-12 Bruno Haible <bruno@clisp.org>
6486 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6488 2009-12-11 Eric Blake <ebb9@byu.net>
6490 setenv: relax requirement in light of POSIX ruling
6491 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6493 * tests/test-setenv.c (main): Relax test.
6494 * tests/test-unsetenv.c (main): Likewise.
6495 * doc/posix-functions/setenv.texi (setenv): Document this.
6496 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6498 2009-12-11 Bruno Haible <bruno@clisp.org>
6500 New module 'fd-safer-flag'.
6501 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6502 * lib/dup-safer.c (dup_safer_flag): Remove function.
6503 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6504 * lib/fd-safer.c (fd_safer_flag): Remove function.
6505 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6506 * modules/cloexec (configure.ac): Drop indicator macro.
6507 * modules/fd-safer-flag: New file.
6508 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6509 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6510 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6512 2009-12-11 Bruno Haible <bruno@clisp.org>
6514 Tests for module 'nl_langinfo'.
6515 * modules/nl_langinfo-tests: New file.
6516 * tests/test-nl_langinfo.sh: New file.
6517 * tests/test-nl_langinfo.c: New file.
6519 New module 'nl_langinfo'.
6520 * lib/nl_langinfo.c: New file.
6521 * m4/nl_langinfo.m4: New file.
6522 * modules/nl_langinfo: New file.
6523 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6525 2009-12-11 Bruno Haible <bruno@clisp.org>
6527 Tests for module 'langinfo'.
6528 * modules/langinfo-tests: New file.
6529 * tests/test-langinfo.c: New file.
6531 New module 'langinfo'.
6532 * lib/langinfo.in.h: New file.
6533 * m4/langinfo_h.m4: New file.
6534 * modules/langinfo: New file.
6535 * doc/posix-headers/langinfo.texi: Mention the new module.
6537 2009-12-11 Bruno Haible <bruno@clisp.org>
6539 * lib/config.charset: Untabify.
6541 2009-12-11 Bruno Haible <bruno@clisp.org>
6543 * modules/unistd-safer (configure.ac): Drop indicator macro.
6545 2009-12-11 Bruno Haible <bruno@clisp.org>
6547 Move pipe2-safer code to its own file.
6548 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6549 * lib/pipe-safer.c (pipe2_safer): Remove function.
6550 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6551 (Makefile.am): Add it to lib_SOURCES.
6553 2009-12-10 Bruno Haible <bruno@clisp.org>
6555 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6557 2009-12-10 Bruno Haible <bruno@clisp.org>
6559 Declare which arguments expect non-NULL values, for GCC and clang.
6560 * build-aux/arg-nonnull.h: New file.
6561 * modules/arg-nonnull: New file.
6562 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6563 (inet_ntop, inet_pton): Use it.
6564 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6565 (closedir, dirfd, opendir, scandir, alphasort): Use it.
6566 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6567 (open, openat): Use it.
6568 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6570 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6571 (getopt, getopt_long, getopt_long_only): Use it.
6572 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6573 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6575 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6576 (iconv_open): Use it.
6577 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6578 (strtoimax, strtoumax): Use it.
6579 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6580 (duplocale): Use it.
6581 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6582 (frexp, frexpl): Use it.
6583 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6584 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6585 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6586 (tsearch, tfind, tdelete, twalk): Use it.
6587 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6588 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6589 sigpending): Use it.
6590 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6591 (posix_spawn, posix_spawnp, posix_spawnattr_init,
6592 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6593 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6594 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6595 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6596 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6597 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6598 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6599 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6600 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6602 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6603 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6604 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6605 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6606 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6607 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6608 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6609 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6610 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6611 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6612 strtoull, unsetenv): Use it.
6613 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6614 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6615 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6616 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6617 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6618 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6619 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6620 (strcasecmp, strncasecmp): Use it.
6621 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6622 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6623 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6624 rpl_setsockopt): Use it.
6625 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6626 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6627 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6628 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6629 (gettimeofday): Use it.
6630 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6632 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6634 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6635 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6636 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6637 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6638 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6639 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6640 unlinkat, write): Use it.
6641 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6642 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6643 * lib/argv-iter.h: Include arg-nonnull.h.
6644 (_ATTRIBUTE_NONNULL_): Remove macro.
6645 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6646 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6647 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6649 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6650 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6651 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6652 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6653 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6654 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6655 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6656 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6657 * modules/arpa_inet (Depends-on): Add arg-nonnull.
6658 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6659 * modules/dirent (Depends-on): Add arg-nonnull.
6660 (Makefile.am): Insert arg-nonnull.h into dirent.h.
6661 * modules/fcntl-h (Depends-on): Add arg-nonnull.
6662 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6663 * modules/fnmatch (Depends-on): Add arg-nonnull.
6664 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6665 * modules/getopt-posix (Depends-on): Add arg-nonnull.
6666 (Makefile.am): Insert arg-nonnull.h into getopt.h.
6667 * modules/glob (Depends-on): Add arg-nonnull.
6668 (Makefile.am): Insert arg-nonnull.h into glob.h.
6669 * modules/iconv_open (Depends-on): Add arg-nonnull.
6670 (Makefile.am): Insert arg-nonnull.h into iconv.h.
6671 * modules/inttypes (Depends-on): Add arg-nonnull.
6672 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6673 * modules/locale (Depends-on): Add arg-nonnull.
6674 (Makefile.am): Insert arg-nonnull.h into locale.h.
6675 * modules/math (Depends-on): Add arg-nonnull.
6676 (Makefile.am): Insert arg-nonnull.h into math.h.
6677 * modules/netdb (Depends-on): Add arg-nonnull.
6678 (Makefile.am): Insert arg-nonnull.h into netdb.h.
6679 * modules/search (Depends-on): Add arg-nonnull.
6680 (Makefile.am): Insert arg-nonnull.h into search.h.
6681 * modules/signal (Depends-on): Add arg-nonnull.
6682 (Makefile.am): Insert arg-nonnull.h into signal.h.
6683 * modules/spawn (Depends-on): Add arg-nonnull.
6684 (Makefile.am): Insert arg-nonnull.h into spawn.h.
6685 * modules/stdio (Depends-on): Add arg-nonnull.
6686 (Makefile.am): Insert arg-nonnull.h into stdio.h.
6687 * modules/stdlib (Depends-on): Add arg-nonnull.
6688 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6689 * modules/string (Depends-on): Add arg-nonnull.
6690 (Makefile.am): Insert arg-nonnull.h into string.h.
6691 * modules/strings (Depends-on): Add arg-nonnull.
6692 (Makefile.am): Insert arg-nonnull.h into strings.h.
6693 * modules/sys_socket (Depends-on): Add arg-nonnull.
6694 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6695 * modules/sys_stat (Depends-on): Add arg-nonnull.
6696 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6697 * modules/sys_time (Depends-on): Add arg-nonnull.
6698 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6699 * modules/sys_times (Depends-on): Add arg-nonnull.
6700 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6701 * modules/sys_utsname (Depends-on): Add arg-nonnull.
6702 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6703 * modules/time (Depends-on): Add arg-nonnull.
6704 (Makefile.am): Insert arg-nonnull.h into time.h.
6705 * modules/unistd (Depends-on): Add arg-nonnull.
6706 (Makefile.am): Insert arg-nonnull.h into unistd.h.
6707 * modules/wchar (Depends-on): Add arg-nonnull.
6708 (Makefile.am): Insert arg-nonnull.h into wchar.h.
6709 * modules/argv-iter (Depends-on): Add arg-nonnull.
6710 * tests/test-canonicalize.c (null_ptr): New function.
6712 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6714 * tests/test-memmem.c (null_ptr): New function.
6716 Reported by Jim Meyering.
6718 2009-12-10 Bruno Haible <bruno@clisp.org>
6720 Use spaces for indentation, not tabs.
6721 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6722 * m4/*.m4: Untabify.
6723 * build-aux/*.h: Untabify.
6724 * tests/**/*.[hc]: Untabify.
6725 * README: New section "Indent with spaces, not TABs", based on
6726 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6727 * NEWS: Mention the change.
6729 2009-12-10 Bruno Haible <bruno@clisp.org>
6731 pty test: Fix link error.
6732 * modules/pty-tests (Makefile.am): Add the default LDADD value to
6735 2009-12-07 Simon Josefsson <simon@josefsson.org>
6737 * modules/pty: New file.
6738 * modules/pty-tests: New file.
6739 * m4/pty.m4: New file.
6740 * tests/test-pty.c: New file.
6741 * doc/glibc-headers/pty.texi: Modified.
6742 * doc/glibc-functions/forkpty.texi: Modified.
6743 * doc/glibc-functions/openpty.texi: Modified.
6745 2009-12-10 Bruno Haible <bruno@clisp.org>
6747 Avoid syntax error in C++ mode.
6748 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6750 2009-12-10 Bruno Haible <bruno@clisp.org>
6752 Use sed with option -e.
6753 * gnulib-tool (func_version, func_emit_copyright_notice,
6754 func_emit_initmacro_end, func_import, func_create_testdir): Pass
6756 * modules/link-warning (Makefile.am): Likewise.
6758 2009-12-10 Jim Meyering <meyering@redhat.com>
6760 mgetgroups: do not write bytes beyond end of malloc'd buffer
6761 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
6762 username, we call getgroups with a one-element-shorter buffer,
6763 but still told it the length was original, max_n_groups.
6765 2009-12-09 Eric Blake <ebb9@byu.net>
6767 cloexec: relax license
6768 * modules/cloexec (Maintainer): Add myself.
6769 (License): Use LGPL, not GPL.
6771 link-warning: optimize generation
6772 * modules/link-warning (Makefile.am): Reduce process usage.
6774 2009-12-09 Bruno Haible <bruno@clisp.org>
6776 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6777 workaround was added on 2009-11-17.
6779 2009-12-09 Jim Meyering <meyering@redhat.com>
6780 Bruno Haible <bruno@clisp.org>
6782 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6783 * modules/link-warning (Makefile.am): Make the comment-removing sed
6784 command more robust in the face of bootstrap-prepended comment lines.
6786 2009-12-09 Bruno Haible <bruno@clisp.org>
6788 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6791 2009-12-09 Simon Josefsson <simon@josefsson.org>
6792 Bruno Haible <bruno@clisp.org>
6794 * build-aux/link-warning.h: Add copyright notice.
6795 * modules/link-warning (Makefile.am): Generate link-warning.h from
6796 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6797 * NEWS: Mention change in link-warning module.
6798 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6799 * modules/dirent (Makefile.am): Add dependency to dirent.h.
6800 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6801 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6802 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6803 * modules/math (Makefile.am): Add dependency to math.h.
6804 * modules/search (Makefile.am): Add dependency to search.h.
6805 * modules/signal (Makefile.am): Add dependency to signal.h.
6806 * modules/spawn (Makefile.am): Add dependency to spawn.h.
6807 * modules/stdio (Makefile.am): Add dependency to stdio.h.
6808 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6809 * modules/string (Makefile.am): Add dependency to string.h.
6810 * modules/strings (Makefile.am): Add dependency to strings.h.
6811 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6812 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6813 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6814 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6815 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6816 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6817 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6818 * modules/unistd (Makefile.am): Add dependency to unistd.h.
6819 * modules/wchar (Makefile.am): Add dependency to wchar.h.
6821 2009-12-09 Bruno Haible <bruno@clisp.org>
6823 fchdir: Optimize away rpl_fstat when possible.
6824 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6825 REPLACE_OPEN_DIRECTORY.
6826 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6828 2009-12-09 Bruno Haible <bruno@clisp.org>
6830 * lib/fchdir.c: Update comment.
6832 2009-12-09 Bruno Haible <bruno@clisp.org>
6834 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6836 2009-12-08 Eric Blake <ebb9@byu.net>
6838 fchdir: avoid memory leak on re-registration.
6839 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6841 2009-12-08 Jim Meyering <meyering@redhat.com>
6843 init.sh: avoid Solaris 10 /bin/sh portability problem
6844 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6846 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6847 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6849 tests/init.sh relied on that, accepting a --set-path=DIR argument,
6850 and two tests used that idiom.
6851 * tests/init.sh: Update suggested usage comments.
6852 (path_prepend_): New function, to be used in place
6853 of the --src-path=DIR option.
6854 (setup_): Move PATH-prepending code into path_prepend_.
6855 * tests/test-pread.sh: Adapt to new usage.
6856 * tests/test-xalloc-die.sh: Likewise.
6858 2009-12-08 Simon Josefsson <simon@josefsson.org>
6860 * doc/gnulib.texi (Glibc pty.h): Add.
6861 * doc/glibc-functions/forkpty.texi: Add.
6862 * doc/glibc-functions/openpty.texi: Add.
6863 Suggested by Bruno Haible.
6865 2009-12-08 Eric Blake <ebb9@byu.net>
6867 fchdir: fix logic bugs
6868 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6869 * tests/test-fchdir.c (main): Enhance test.
6870 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6873 dup2: fix logic bugs
6874 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
6875 REPLACE_DUP2 to decide when rpl_dup2 is needed.
6876 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6878 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6880 2009-12-07 Eric Blake <ebb9@byu.net>
6882 unlink: fix m4 detection
6883 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6885 unistd-safer: add unit test
6886 * modules/unistd-safer-tests: New file.
6887 * tests/test-dup-safer.c: Likewise.
6888 * tests/test-cloexec.c (setmode): Avoid compiler warning.
6889 * tests/test-dup2.c (setmode): Likewise.
6890 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6892 cloexec: preserve text vs. binary across dup_cloexec
6893 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6895 * modules/dup2-tests (Depends-on): Add binary-io.
6896 * modules/cloexec-tests (Depends-on): Likewise.
6897 * tests/test-dup2.c (setmode, is_mode): New helpers.
6898 (main): Add tests that translation mode is preserved.
6899 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6900 Reported by Bruno Haible.
6902 mgetgroups: reduce duplicate listings
6903 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6905 * tests/test-chown.h (test_chown): Simplify client.
6906 * tests/test-lchown.h (test_lchown): Likewise.
6908 2009-12-06 Bruno Haible <bruno@clisp.org>
6910 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6913 2009-12-06 Bruno Haible <bruno@clisp.org>
6915 * lib/progname.c: Include stdio.h, stdlib.h.
6916 (set_program_name): Reject a NULL argument.
6918 2009-12-05 Eric Blake <ebb9@byu.net>
6920 pipe2-safer: new module
6921 * modules/pipe2-safer: New file.
6922 * lib/unistd-safer.h (pipe2_safer): New prototype.
6923 * lib/unistd--.h (pipe2): New wrapper.
6924 * lib/pipe-safer.c (pipe2_safer): New function.
6925 * modules/pipe (Depends-on): Add pipe2-safer.
6926 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6928 stdlib-safer: preserve cloexec flag for mkostemp[s]
6929 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6932 unistd-safer: allow preservation of cloexec status via flag
6933 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6935 * lib/dup-safer.c (dup_safer_flag): New function.
6936 * lib/fd-safer.c (fd_safer_flag): Likewise.
6937 * modules/cloexec (configure.ac): Set witness.
6939 test-dup2: enhance test
6940 * modules/dup2-tests (Depends-on): Add cloexec.
6941 * tests/test-dup2.c (main): Enhance test.
6943 cloexec: add dup_cloexec
6944 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
6945 header and comments.
6946 * lib/cloexec.c (set_cloexec_flag): Add comments.
6947 (dup_cloexec): New function, with mingw implementation borrowed
6949 * lib/w32spawn.h (dup_noinherit): ...here.
6950 * modules/execute (Depends-on): Add cloexec.
6951 * modules/pipe (Depends-on): Likewise.
6952 * modules/cloexec (Depends-on): Add dup2.
6953 * modules/cloexec-tests (Files): New file.
6954 * tests/test-cloexec.c: Likewise.
6956 test-xalloc-die: fix test for mingw
6957 * modules/xalloc-die-tests (Files): Add tests/init.sh.
6958 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
6959 directory and .exe suffix off argv[0] output.
6961 test-fseeko: fix test for mingw
6962 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6963 than undefining fseek, so test will pass on mingw.
6965 2009-12-05 Bruno Haible <bruno@clisp.org>
6967 * lib/progname.h (set_program_name): Clarify specification.
6968 * lib/progname.c (set_program_name): Likewise.
6969 Reported by Jim Meyering.
6971 2009-12-05 Jim Meyering <meyering@redhat.com>
6973 maint.mk: backslash-escape parens in default regexp
6974 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6975 backslash-escape the literal parentheses.
6977 maint.mk: news-date-check: use grep -E
6978 * top/maint.mk (today): Define a Make variable, not a...
6979 (news-date-check): ...shell variable.
6980 (news-date-regexp): Use the Make variable.
6981 Use grep's -E option. Change the failing diagnostic to mention
6982 the variable, $(news-date-regexp).
6984 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
6986 maintainer-makefile: allow customization of NEWS entry format
6987 * top/maint.mk (news-date-regexp): New overridable variable.
6988 (news-date-check): Use it.
6990 2009-12-04 Eric Blake <ebb9@byu.net>
6992 mgetgroups: add xgetgroups, and avoid ENOSYS failures
6993 * lib/mgetgroups.h (xgetgroups): New prototype.
6994 * lib/mgetgroups.c (xgetgroups): New wrapper.
6995 (mgetgroups): Handle ENOSYS.
6996 * modules/mgetgroups (Depends-on): Add realloc.
6997 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6999 mgetgroups: avoid argument promotion issues with -1
7000 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7002 * tests/test-chown.h (getegid, test_chown): Likewise.
7003 * tests/test-lchown.h (getegid, test_lchown): Likewise.
7005 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
7007 exclude: Fix header file problems.
7008 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7010 2009-12-01 Jim Meyering <meyering@redhat.com>
7012 fts: fts_open: do not let an empty string cause immediate failure
7013 This is required in support of GNU rm, for which the command
7014 "rm A '' B" must process and remove both A and B, in spite of
7015 the empty string argument.
7016 * lib/fts.c (fts_open): Do not let the presence of an empty string
7017 cause fts_open to fail immediately. Most fts-using tools must be
7018 able to process all arguments, in order, and can be expected to
7019 diagnose such arguments themselves.
7021 2009-11-30 Eric Blake <ebb9@byu.net>
7023 utimens: fix compilation error
7024 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7025 Declare variable at right scope.
7027 2009-11-29 Jim Meyering <meyering@redhat.com>
7029 bootstrap: handle perl-5.11's changed --version output
7030 * build-aux/bootstrap (get_version): Handle perl separately,
7031 since perl-5.11's --version output is different.
7033 2009-11-28 Jim Meyering <meyering@redhat.com>
7035 userspec: depend on the inttostr module, too
7036 * modules/userspec (Depends-on): Add inttostr.
7038 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7039 * lib/userspec.c (parse_with_separator): Do not accept a user ID
7040 number of MAXUID when it evaluates to (uid_t) -1.
7041 Likewise for group ID. Reported by Matt McCutchen in
7042 <http://savannah.gnu.org/bugs/?28113>
7044 userspec: reformat to use spaces, not TABs
7045 * lib/userspec.c: Expand TABs to spaces.
7046 Add Emacs' "indent-tabs-mode: nil" hint.
7048 2009-11-27 Eric Blake <ebb9@byu.net>
7050 getopt-gnu: flush out another BSD bug
7051 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7052 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7054 * tests/test-getopt.h (test_getopt): End lists with NULL.
7055 * tests/test-getopt_long.h (test_getopt_long): Likewise.
7056 (test_getopt_long_posix): Enhance test.
7057 * modules/getopt-posix-tests (Depends-on): Add stdbool.
7058 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7060 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7063 2009-11-27 Simon Josefsson <simon@josefsson.org>
7065 * modules/idpriv-droptemp-tests (Notice): Fix text.
7067 2009-11-27 Jim Meyering <meyering@redhat.com>
7069 test-xalloc-die: avoid spurious failure due to libtool argv difference
7070 In a libtool-enabled project, this test would fail due to a difference
7071 in the emitted program name, e.g.,
7072 -test-xalloc-die: memory exhausted
7073 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7074 Use program to avoid that.
7075 * modules/xalloc-die-tests (Depends-on): Add progname.
7076 * tests/test-xalloc-die.c: Include progname.h".
7077 (program_name): Remove decl.
7078 (main): Call set_program_name.
7079 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7081 2009-11-26 Richard Jones <rjones@redhat.com>
7083 w32sock: leave win32 error in place.
7084 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7086 2009-11-26 Eric Blake <ebb9@byu.net>
7088 init.sh: suggest to use skip_ and fail_ functions in comments
7089 * tests/init.sh: Add a sentence.
7091 2009-11-25 Bruno Haible <bruno@clisp.org>
7093 init.sh: add documentation in comments
7094 * tests/init.sh: Add some developer and user documentation.
7096 2009-11-26 Jim Meyering <meyering@redhat.com>
7098 init.sh: accommodate even those who specify bogus srcdir manually
7099 * tests/init.sh: Normally, srcdir is guaranteed by automake and
7100 configure-time tests to be sanitized, so that there is no need to
7101 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
7102 (with no double quotes) suffices. However, since tests may be
7103 invoked manually, and since you may explicitly set srcdir to the
7104 name of a directory containing spaces, do quote its uses here.
7105 * tests/test-pread.sh: Likewise.
7106 Suggested by Bruno Haible.
7108 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7109 * tests/test-pread.sh: Write no data into the pipe, because
7110 test-pread actually reads none. This avoids a diagnostic,
7111 "bash: echo: write error: Broken pipe", that arises in the unusual
7112 event something is ignoring SIGPIPE, and might be interpreted
7113 as some sort of failure. Reported by Bruno Haible.
7115 2009-11-25 Jim Meyering <meyering@redhat.com>
7117 test-pread: cover failure with ESPIPE and EINVAL
7118 * tests/test-pread.c (main): Test for failure, too.
7119 * tests/test-pread.sh: Invoke with stdin on a pipe.
7120 Suggested by Eric Blake.
7122 pread: improvement and fix
7123 * modules/pread (Depends-on): Depend on lseek, for portability to
7124 e.g., mingw. Suggested by Eric Blake.
7125 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
7127 unistd.in.h: correct declaration of pread
7128 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7129 Reported by Richard W.M. Jones.
7131 test-pread.sh: distribute the test script
7132 * modules/pread-tests (Files): Include test-pread.sh.
7134 test-pread.sh: clean up
7135 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7136 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7137 That is unnecessary, since it's always ".".
7138 Suggestion from Eric Blake.
7140 test-pread.sh: make executable
7141 * tests/test-pread.sh: Set executable bit.
7142 Reported by Eric Blake.
7144 correct typo in test-pread.sh
7145 * tests/test-pread.sh: Add #! line.
7148 * tests/test-pread.c: New file.
7149 * tests/test-pread.sh: Likewise.
7150 * modules/pread-tests: Likewise.
7153 * modules/pread: New file.
7154 * lib/unistd.in.h (pread): Define/declare.
7155 * lib/pread.c (pread): New file.
7156 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7157 * modules/unistd (Makefile.am): Substitute witnesses.
7158 * doc/posix-functions/pread.texi (pread): Update.
7159 * MODULES.html.sh: Add pread.
7161 2009-11-25 Jim Meyering <meyering@redhat.com>
7163 tests/init.sh: new file to be used via most *.sh tests
7164 * tests/init.sh: New file.
7166 2009-11-25 Eric Blake <ebb9@byu.net>
7168 utimens: work around older Linux failure with symlinks
7169 * lib/utimens.c (lutimensat_works_really): New variable.
7170 (fdutimens, lutimens): Use it to manage kernels that support
7171 nanosecond times on files, but not on symlinks.
7172 Reported by OndÅ™ej VaÅ¡Ãk.
7174 utimes: fix configure grammar
7175 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7177 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
7179 regex: Fix fastmap for multibyte character ranges.
7180 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7181 characters when a multibyte character range is included.
7183 2009-11-22 Andy Wingo <wingo@pobox.com>
7185 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7186 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7188 2009-11-24 Bruno Haible <bruno@clisp.org>
7190 doc: Most *_l functions exist in MacOS X 10.5.
7191 * doc/posix-functions/duplocale.texi: Update platforms list.
7192 * doc/posix-functions/freelocale.texi: Likewise.
7193 * doc/posix-functions/newlocale.texi: Likewise.
7194 * doc/posix-functions/uselocale.texi: Likewise.
7195 * doc/posix-functions/isalnum_l.texi: Likewise.
7196 * doc/posix-functions/isalpha_l.texi: Likewise.
7197 * doc/posix-functions/isblank_l.texi: Likewise.
7198 * doc/posix-functions/iscntrl_l.texi: Likewise.
7199 * doc/posix-functions/isdigit_l.texi: Likewise.
7200 * doc/posix-functions/isgraph_l.texi: Likewise.
7201 * doc/posix-functions/islower_l.texi: Likewise.
7202 * doc/posix-functions/isprint_l.texi: Likewise.
7203 * doc/posix-functions/ispunct_l.texi: Likewise.
7204 * doc/posix-functions/isspace_l.texi: Likewise.
7205 * doc/posix-functions/isupper_l.texi: Likewise.
7206 * doc/posix-functions/iswalnum_l.texi: Likewise.
7207 * doc/posix-functions/iswalpha_l.texi: Likewise.
7208 * doc/posix-functions/iswblank_l.texi: Likewise.
7209 * doc/posix-functions/iswcntrl_l.texi: Likewise.
7210 * doc/posix-functions/iswctype_l.texi: Likewise.
7211 * doc/posix-functions/iswdigit_l.texi: Likewise.
7212 * doc/posix-functions/iswgraph_l.texi: Likewise.
7213 * doc/posix-functions/iswlower_l.texi: Likewise.
7214 * doc/posix-functions/iswprint_l.texi: Likewise.
7215 * doc/posix-functions/iswpunct_l.texi: Likewise.
7216 * doc/posix-functions/iswspace_l.texi: Likewise.
7217 * doc/posix-functions/iswupper_l.texi: Likewise.
7218 * doc/posix-functions/iswxdigit_l.texi: Likewise.
7219 * doc/posix-functions/isxdigit_l.texi: Likewise.
7220 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7221 * doc/posix-functions/strcasecmp_l.texi: Likewise.
7222 * doc/posix-functions/strcoll_l.texi: Likewise.
7223 * doc/posix-functions/strfmon_l.texi: Likewise.
7224 * doc/posix-functions/strftime_l.texi: Likewise.
7225 * doc/posix-functions/strncasecmp_l.texi: Likewise.
7226 * doc/posix-functions/strxfrm_l.texi: Likewise.
7227 * doc/posix-functions/tolower_l.texi: Likewise.
7228 * doc/posix-functions/toupper_l.texi: Likewise.
7229 * doc/posix-functions/towctrans_l.texi: Likewise.
7230 * doc/posix-functions/towlower_l.texi: Likewise.
7231 * doc/posix-functions/towupper_l.texi: Likewise.
7232 * doc/posix-functions/wcscoll_l.texi: Likewise.
7233 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7234 * doc/posix-functions/wctrans_l.texi: Likewise.
7235 * doc/posix-functions/wctype_l.texi: Likewise.
7236 * doc/glibc-functions/strptime_l.texi: Likewise.
7237 * doc/glibc-functions/strtod_l.texi: Likewise.
7238 * doc/glibc-functions/strtof_l.texi: Likewise.
7239 * doc/glibc-functions/strtol_l.texi: Likewise.
7240 * doc/glibc-functions/strtold_l.texi: Likewise.
7241 * doc/glibc-functions/strtoll_l.texi: Likewise.
7242 * doc/glibc-functions/strtoul_l.texi: Likewise.
7243 * doc/glibc-functions/strtoull_l.texi: Likewise.
7244 * doc/glibc-functions/wcsftime_l.texi: Likewise.
7245 * doc/glibc-functions/wcstod_l.texi: Likewise.
7246 * doc/glibc-functions/wcstof_l.texi: Likewise.
7247 * doc/glibc-functions/wcstol_l.texi: Likewise.
7248 * doc/glibc-functions/wcstold_l.texi: Likewise.
7249 * doc/glibc-functions/wcstoll_l.texi: Likewise.
7250 * doc/glibc-functions/wcstoul_l.texi: Likewise.
7251 * doc/glibc-functions/wcstoull_l.texi: Likewise.
7253 2009-11-24 Bruno Haible <bruno@clisp.org>
7255 duplocale: Fix logic bug.
7256 * lib/duplocale.c: Don't include <langinfo.h>.
7257 (_NL_LOCALE_NAME): Remove macro.
7258 (rpl_duplocale): Use setlocale instead of nl_langinfo.
7259 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7261 2009-11-23 Jim Meyering <meyering@redhat.com>
7263 test-update-copyright: don't hard-code /usr/bin/perl
7264 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7265 perl to print the current year. Gilles Espinasse reported that
7266 the replaced use of perl was hard-coded as /usr/bin/perl.
7268 2009-11-23 Bruno Haible <bruno@clisp.org>
7270 duplocale: Add support for glibc 2.3.x.
7271 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7273 2009-11-22 Bruno Haible <bruno@clisp.org>
7275 vasnprintf: Tiny optimization.
7276 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7279 2009-11-22 Bruno Haible <bruno@clisp.org>
7281 Tests for module 'duplocale'.
7282 * modules/duplocale-tests: New file.
7283 * tests/test-duplocale.c: New file.
7285 New module 'duplocale'.
7286 * m4/duplocale.m4: New file.
7287 * lib/locale.in.h (duplocale): New declaration.
7288 * lib/duplocale.c: New file.
7289 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7290 gl_LOCALE_H_DEFAULTS): New macros.
7291 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7292 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7293 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7295 * modules/duplocale: New file.
7296 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7298 2009-11-22 Bruno Haible <bruno@clisp.org>
7300 * modules/locale-tests (configure.ac): Test for newlocale function.
7301 * tests/test-locale.c: When the system has extended locale functions,
7302 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7304 locale: Make locale_t available when possible.
7305 * lib/locale.in.h: Include <xlocale.h> when it exists.
7306 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7307 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7308 * modules/locale (Depends-on): Add extensions.
7309 (Makefile.am): Also substitute HAVE_XLOCALE_H.
7310 * doc/posix-headers/locale.texi: Document the problem with locale_t.
7312 2009-11-22 Bruno Haible <bruno@clisp.org>
7315 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7317 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7318 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7319 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7321 2009-11-22 Bruno Haible <bruno@clisp.org>
7323 error: account for the possibility of freopen (stdout).
7324 * lib/error.c: Include <unistd.h>.
7325 (flush_stdout): New function, extracted from error and error_at_line.
7326 Determine stdout's fd dynamically.
7327 (error, error_at_line): Invoke flush_stdout.
7328 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7329 * modules/error (Depends-on): Add unistd.
7331 2009-11-22 Bruno Haible <bruno@clisp.org>
7333 diffseq: Add comment.
7334 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7336 2009-11-22 Jim Meyering <meyering@redhat.com>
7338 c-stack: avoid defining an unused static function
7339 * lib/c-stack.c (find_stack_direction): Do not define this function
7340 when it will not be used.
7342 diffseq: avoid spurious gcc warnings
7343 * lib/diffseq.h (IF_LINT2): Define.
7344 (compareseq): Use it to initialize two members of "part".
7345 This avoids two used-uninitialized warnings.
7347 2009-11-21 Jim Meyering <meyering@redhat.com>
7349 c-stack: avoid "ignoring return value of `write'" warning
7350 * lib/c-stack.c: Include "ignore-value.h".
7351 (die): Explicitly ignore each write return value.
7352 * modules/c-stack (Depends-on): Add ignore-value.
7354 2009-11-21 Bruno Haible <bruno@clisp.org>
7356 diffseq: reduce scope of variable 'best'.
7357 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7358 variable, earlier used for two different purposes.
7360 2009-11-21 Jim Meyering <meyering@redhat.com>
7362 diffseq: remove useless assignment to "best"
7363 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7364 assignment. At that point "best" is already guaranteed to be zero.
7366 2009-11-20 Eric Blake <ebb9@byu.net>
7368 build: mention ftp redirector in release announcements
7369 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7370 values that used to come from cfg.mk; mention FTP redirect URL.
7371 * build-aux/announce-gen: Mention the mirror list.
7372 Suggested by Karl Berry.
7374 nanosleep: improve port to mingw
7375 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7376 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7377 LIB_NANOSLEEP, but only when needed.
7378 * modules/select (Link): Document LIBSOCKET.
7379 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7382 nanosleep: work around cygwin bug
7383 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7384 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
7386 (getnow): Delete, not needed.
7387 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7389 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
7390 clock-time, gettime.
7391 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7393 * modules/nanosleep-tests: New test.
7394 * tests/test-nanosleep.c: New file.
7396 sleep: work around cygwin bug
7397 * lib/sleep.c (rpl_sleep): Work around the bug.
7398 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7399 (gl_PREREQ_SLEEP): Delete unused macro.
7400 * modules/sleep (Depends-on): Add verify.
7401 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7402 * modules/unistd (Makefile.am): Substitute witness.
7403 * lib/unistd.in.h (sleep): Update prototype.
7404 * doc/posix-functions/sleep.texi (sleep): Document the bug.
7405 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7406 * modules/sleep-tests (Depends-on): Check for alarm.
7408 2009-11-20 Jim Meyering <meyering@redhat.com>
7410 maint.mk: improve sc_prohibit_magic_number_exit
7411 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7412 so it does not match uses like System.exit(1).
7413 Add comments showing how to correct all offenders.
7415 2009-11-19 Eric Blake <ebb9@byu.net>
7417 xalloc-die-tests: add missing library
7418 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7420 test-xvasprintf: silence compiler warnings
7421 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7422 empty string from gcc.
7424 2009-11-19 Jim Meyering <meyering@redhat.com>
7426 xfreopen: new module, from coreutils
7427 * modules/xfreopen: New module.
7428 * lib/xfreopen.c: New file.
7429 * lib/xfreopen.h: New file.
7430 * MODULES.html.sh (File stream based Input/Output"): Add it.
7432 2009-11-19 Eric Blake <ebb9@byu.net>
7434 manywarnings: depend on warnings
7435 * modules/manywarnings (Depends-on): Add warnings.
7437 build: avoid compiler warnings
7438 * lib/select.c (rpl_select): Delete unused variable.
7439 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7441 2009-11-18 Eric Blake <ebb9@byu.net>
7443 tests: avoid false negative with --with-packager
7444 * tests/test-version-etc.sh: Discard packager information.
7445 * tests/test-argp-version-etc-1.sh: Likewise.
7446 Reported by Mike Frysinger.
7448 utimens: fix regression on Solaris
7449 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7450 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7451 can only change fd timestamps via futimesat. Instead, use an
7452 additional witness macro to avoid BSD bug.
7453 Reported by Jim Meyering.
7455 2009-11-17 Eric Blake <ebb9@byu.net>
7457 usleep: use it to simplify tests
7458 * modules/stat-time-tests (Depends-on): Add usleep.
7459 (configure.ac): Drop usleep check.
7460 * modules/chown-tests (Depends-on, configure.ac): Likewise.
7461 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7462 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7463 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7464 * modules/openat-tests (Depends-on, configure.ac): Likewise.
7465 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7466 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7467 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7469 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7470 * tests/test-lchown.h (nap): Likewise.
7471 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7472 * tests/test-stat-time.c (nap): Likewise.
7473 * tests/test-utimens-common.h (nap): Update comments.
7476 * modules/usleep: New file.
7477 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7478 * lib/usleep.c (usleep): Likewise.
7479 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7480 * modules/unistd (Makefile.am): Substitute witnesses.
7481 * lib/unistd.in.h (usleep): Add declaration.
7482 * doc/pastposix-functions/usleep.texi (usleep): Document this.
7483 * MODULES.html.sh (Date and time): Likewise.
7484 * modules/usleep-tests (Depends-on): New test.
7485 * tests/test-usleep.c: New file.
7487 chown: work around OpenBSD bug
7488 * lib/chown.c (rpl_chown): Work around the bug.
7489 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7490 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7491 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7492 * modules/chown (Depends-on): Add stdbool.
7493 * modules/lchown (Depends-on): Likewise.
7494 * doc/posix-functions/chown.texi (chown): Document the bug.
7495 * doc/posix-functions/lchown.texi (lchown): Likewise.
7496 * tests/test-lchown.h (test_chown): Relax test.
7498 mkstemp: avoid conflict with C++ keyword template
7499 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7500 * lib/mkostemp.c (mkostemp): Likewise.
7501 * lib/mkostemps.c (mkostemps): Likewise.
7502 * lib/mkstemp.c (mkstemp): Likewise.
7503 * lib/mkstemps.c (mkstemps): Likewise.
7505 xalloc-die-tests: optimize
7506 * tests/test-xalloc-die.sh: Reduce number of processes.
7508 2009-11-17 Simon Josefsson <simon@josefsson.org>
7510 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
7511 patch from ludo@gnu.org (Ludovic Courtès).
7513 2009-11-17 Jim Meyering <meyering@redhat.com>
7515 version-etc: use proper license string
7516 * modules/version-etc (License): Use LGPL, not LGPLv3+.
7517 * modules/version-etc-fsf: Likewise.
7519 2009-11-17 Simon Josefsson <simon@josefsson.org>
7521 * tests/test-xalloc-die.sh: Add license. Check that nothing is
7522 printed to stdout. Deal with EOL differences.
7524 2009-11-17 Eric Blake <ebb9@byu.net>
7526 unsetenv: work around Solaris bug
7527 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7528 * lib/unsetenv.c (rpl_unsetenv): Work around it.
7529 Reported by Jim Meyering.
7531 vasnprintf: avoid compiler warnings
7532 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7534 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7536 2009-11-17 Simon Josefsson <simon@josefsson.org>
7538 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7539 settings since xalloc-die is no longer the self test,
7542 2009-11-17 Jim Meyering <meyering@redhat.com>
7544 test-xalloc-die.sh: make the code agree with the commit log
7545 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7546 at the end, just in case you happen to have a test-xalloc-die
7547 program in some other PATH directory.
7549 test-xalloc-die.sh: fix a portability bug
7550 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7551 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7552 Otherwise, argv[0] (as often seen in diagnostics) would be too
7553 system-dependent, sometimes with, and sometimes without the leading "./".
7555 version-etc-fsf: relax license to LGPLv3+
7556 * modules/version-etc-fsf (License): Relax license.
7558 2009-11-16 Eric Blake <ebb9@byu.net>
7560 xalloc-die-tests: avoid printing null pointer
7561 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7563 * tests/test-xalloc-die.c (program_name): Declare.
7564 * tests/test-xalloc-die.sh (tmpfiles): New file.
7566 setenv, unsetenv: work around various bugs
7567 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7568 (setenv) [HAVE_SETENV]: Work around bugs.
7569 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7570 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7572 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7573 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7574 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7575 * modules/stdlib (Makefile.am): Update substitutions.
7576 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7577 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7578 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7579 * modules/setenv-tests: New test.
7580 * modules/unsetenv-tests: Likewise.
7581 * tests/test-setenv.c: New file.
7582 * tests/test-unsetenv.c: Likewise.
7584 2009-11-16 Jim Meyering <meyering@redhat.com>
7586 version-etc: relax license to LGPLv3+
7587 * modules/version-etc (License): Relax license.
7589 better AC_REQUIRE expanded-before-required-warning avoidance
7590 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7591 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7592 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
7593 which is no longer needed.
7595 2009-11-16 Eric Blake <ebb9@byu.net>
7597 test-freading: clean up temporary file
7598 * tests/test-freading.c (main): Remove file on success, and use
7599 ASSERT more liberally.
7600 Reported by Jim Meyering.
7602 2009-11-16 Jim Meyering <meyering@redhat.com>
7604 avoid new AC_REQUIRE expanded-before-required warnings
7605 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7607 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7608 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7610 2009-11-15 Simon Josefsson <simon@josefsson.org>
7612 * tests/test-xalloc-die.c: New file.
7613 * modules/xalloc-die-tests: New file.
7614 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7615 XFAIL_TESTS so it can be appended by modules.
7617 2009-11-15 Simon Josefsson <simon@josefsson.org>
7619 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
7620 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7622 2009-11-14 Eric Blake <ebb9@byu.net>
7624 fnmatch: avoid compiler warning
7625 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7626 to silence compiler warning about mismatch signedness in ?:.
7627 Reported by Robert Millan.
7629 intprops: add double-inclusion guard
7630 * lib/intprops.h: Allow idempotent includes.
7631 Suggested by Bruce Korb.
7633 openat: detect Solaris fchownat bug
7634 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
7635 penalizing glibc chownat when only lchownat is broken.
7636 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7637 trailing slash bugs.
7638 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7639 * modules/openat-tests (Files): Include more files.
7640 (Depends-on): Add mgetgroups, sleep, stat-time.
7641 (configure.ac): Add additional checks.
7642 (Makefile.am): Build new test.
7643 * tests/test-fchownat.c: New file.
7645 lchown: detect Solaris and FreeBSD bug
7646 * lib/lchown.c (rpl_lchown): Work around bug.
7647 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7648 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7649 * modules/unistd (Makefile.am): Populate it.
7650 * lib/unistd.in.h (lchown): Update declaration.
7651 * doc/posix-functions/lchown.texi (lchown): Document the bug.
7652 * modules/lchown-tests: New file.
7653 * tests/test-lchown.h (test_lchown): Likewise.
7654 * tests/test-lchown.c (main): Likewise.
7656 chown: detect Solaris and FreeBSD bug
7657 * lib/chown.c (rpl_chown): Work around bug.
7658 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7659 (gl_PREREQ_CHOWN): Delete.
7660 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7661 * modules/unistd (Makefile.am): Populate it.
7662 * lib/unistd.in.h (chown): Update declaration.
7663 * lib/lchown.c (chown): Update client.
7664 * modules/lchown (Depends-on): Add lstat.
7665 * doc/posix-functions/chown.texi (chown): Document the bug.
7666 * doc/posix-functions/getgroups.texi (getgroups): Document
7668 * modules/chown-tests: New file.
7669 * tests/test-chown.h (test_chown): Likewise.
7670 * tests/test-chown.c (main): Likewise.
7672 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
7674 gnulib-tool: correctly detect absence of m4 directories
7675 * gnulib-tool: Avoid extra newline on data passed to wc -l.
7677 2009-11-14 Jim Meyering <meyering@redhat.com>
7679 maint.mk: Prohibit inclusion of "xalloc.h" without use.
7680 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7682 2009-11-14 John W. Eaton <jwe@gnu.org>
7684 strftime.h: wrap funtion declaration in extern "C" block
7685 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7687 2009-11-13 Eric Blake <ebb9@byu.net>
7689 getgroups: avoid compiler warning
7690 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7692 getgroups: work around FreeBSD bug
7693 * lib/getgroups.c (rpl_getgroups): Work around the bug.
7694 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7695 * doc/posix-functions/getgroups.texi (getgroups): Document it.
7696 * tests/test-getgroups.c (main): Fix buffer overrun.
7698 getgroups: avoid compilation failure
7699 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7700 * modules/getgroups (Depends-on): Add stdint.
7702 2009-11-13 Jim Meyering <meyering@redhat.com>
7704 test-getgroups: avoid compilation failure
7705 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7707 2009-11-13 Eric Blake <ebb9@byu.net>
7709 mgetgroups: new module, taken from coreutils
7710 * modules/mgetgroups: New file.
7711 * lib/mgetgroups.h: Likewise.
7712 * lib/mgetgroups.c (mgetgroups): Likewise.
7713 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7714 * MODULES.html.sh (Users and groups): Mention it.
7716 getgroups: don't expose GETGROUPS_T to user
7717 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
7718 an element at a time if GETGROUPS_T is wrong size.
7719 * lib/getugroups.h (getugroups): Change signature.
7720 * lib/unistd.in.h (getgroups): Likewise.
7721 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7722 signature needs fixing.
7723 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7725 * modules/group-member (Depends-on): Add getgroups.
7726 * lib/group-member.c (group_info, get_group_info): Use gid_t.
7727 (group_member): Rely on getgroups replacement.
7728 * lib/getugroups.c (getugroups): Use gid_t.
7729 * tests/test-getgroups.c (main): Likewise.
7730 * NEWS: Mention the signature change.
7731 * doc/posix-functions/getgroups.texi (getgroups): Mention the
7732 problem with signature.
7733 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7734 GETGROUPS_T is still useful for setgroups.
7736 getgroups, getugroups: provide stubs for mingw
7737 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7738 * lib/getugroups.c (getugroups): Likewise.
7739 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7740 function. Modernize replacement scheme.
7741 (gl_PREREQ_GETGROUPS): Delete.
7742 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7743 * modules/getgroups (configure.ac): Declare witness.
7744 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7745 * modules/unistd (Depends-on): Substitute witness.
7746 * lib/unistd.in.h (getgroups): Declare replacement.
7748 getgroups: avoid calling exit
7749 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7751 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7753 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7754 exiting, in the rare case of malloc failure.
7756 getgroups: fix logic error
7757 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7758 has more than 20 groups.
7759 * modules/getgroups-tests: New test.
7760 * tests/test-getgroups.c: New file.
7762 2009-11-13 Simon Josefsson <simon@josefsson.org>
7764 * tests/test-base64.c: Improve.
7766 2009-11-13 Simon Josefsson <simon@josefsson.org>
7768 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7769 Blake <ebb9@byu.net>.
7771 2009-11-13 Simon Josefsson <simon@josefsson.org>
7773 * tests/test-xvasprintf.c: Add %s%s related checks.
7775 2009-11-12 Eric Blake <ebb9@byu.net>
7777 version-etc: match standards.texi style
7778 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7779 and use <> only for URLs.
7781 2009-11-10 Kamil Dudka <kdudka@redhat.com>
7783 fts: do not fail on a submount during traversal
7784 * lib/fts.c (fts_build): Read the stat info again after opening
7785 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7786 Original report at http://bugzilla.redhat.com/501848.
7788 2009-11-12 Jim Meyering <meyering@redhat.com>
7790 bootstrap: sync from coreutils
7791 * build-aux/bootstrap (bootstrap_epilogue): New function.
7792 Use git_modules_config in one more place. This make bootstrap's
7793 --gnulib-srcdir option more useful for testing.
7795 bootstrap: generalize autoheader check
7796 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7799 2009-11-11 Eric Blake <ebb9@byu.net>
7801 mkfifoat: use new modules for Solaris and BSD bugs
7802 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7803 * lib/mkfifoat.c (mknodat): Split...
7804 * lib/mknodat.c (mknodat): ...into new file.
7805 * modules/mkfifoat (Files): Ship new file.
7806 (Depends-on): Add mkfifo, mknod.
7807 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7808 (Depends-on): Add symlink.
7809 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
7810 redundant with test_mkfifo.h.
7811 (do_mkfifoat, do_mknodat): New helpers.
7814 * modules/mknod: New file.
7815 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7816 * lib/mknod.c (mknod): Likewise.
7817 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7819 * modules/sys_stat (Makefile.am): Substitute them.
7820 * lib/sys_stat.in.h (mknod): Declare replacement.
7821 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7823 * doc/posix-functions/mknod.texi (mknod): Likewise.
7824 * modules/mknod-tests: New test.
7825 * tests/test-mknod.c: Likewise.
7828 * modules/mkfifo: New file.
7829 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7830 * lib/mkfifo.c (mkfifo): Likewise.
7831 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7833 * modules/sys_stat (Makefile.am): Substitute them.
7834 * lib/sys_stat.in.h (mkfifo): Declare replacement.
7835 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7837 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7838 * modules/mkfifo-tests: New test.
7839 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7840 from test-mkfifoat.c.
7841 * tests/test-mkfifo.c: New file.
7843 readlink: detect FreeBSD bug
7844 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7846 * doc/posix-functions/readlink.texi (readlink): Document the bug.
7847 * tests/test-readlink.h (test_readlink): Enhance test.
7849 symlink: detect FreeBSD bug
7850 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7852 * doc/posix-functions/symlink.texi (symlink): Document the bug.
7853 * tests/test-symlink.h (test_symlink): Enhance test.
7855 2009-11-10 Eric Blake <ebb9@byu.net>
7857 link: detect FreeBSD bug
7858 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7860 * doc/posix-functions/link.texi (link): Document the bug.
7861 * tests/test-link.h (test_link): Enhance test.
7862 * tests/test-linkat.c (main): Update caller.
7864 unlink, remove: detect FreeBSD bug
7865 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7867 * doc/posix-functions/unlink.texi (unlink): Document the bug.
7868 * doc/posix-functions/remove.texi (remove): Likewise.
7869 * tests/test-unlink.h (test_unlink): Enhance test.
7870 * tests/test-remove.c (main): Likewise.
7872 2009-11-09 Eric Blake <ebb9@byu.net>
7874 rename: detect FreeBSD bug
7875 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7877 * modules/renameat-tests (Depends-on): Add filenamecat.
7878 * tests/test-rename.h (test_rename): Allow one more errno.
7879 * tests/test-renameat.c (main): Likewise.
7880 * doc/posix-functions/rename.texi (rename): Document the bug.
7882 open: detect FreeBSD bug
7883 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7885 * doc/posix-functions/open.texi (open): Document the bug.
7886 * doc/posix-functions/utimes.texi (utimes): Likewise.
7887 * tests/test-open.h (test_open): Add parameters, and test symlink
7889 * tests/test-open.c (main): Adjust caller.
7890 * tests/test-fcntl-safer.c (main): Likewise.
7891 * modules/open-tests (Depends-on): Add stdbool, symlink.
7892 * modules/fcntl-safer-tests (Depends-on): Likewise.
7893 * tests/test-openat.c (main): Add test-open tests.
7895 stat: detect FreeBSD bug
7896 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7898 * doc/posix-functions/stat.texi (stat): Document the bug.
7899 * tests/test-stat.h (test_stat_func): Add argument.
7900 * tests/test-stat.c (main): Adjust caller.
7901 * tests/test-fstatat.c (main): Likewise.
7902 * modules/stat-tests (Depends-on): Add stdbool, symlink.
7903 Reported by Jim Meyering.
7905 2009-11-09 James Youngman <jay@gnu.org>
7907 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7908 * lib/strftime.c: Correct placement of #include "ignore-value.h".
7910 2009-11-08 Jim Meyering <meyering@redhat.com>
7912 utimens: remove invalid futimesat call
7913 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7914 It used the file descriptor of the target file as the DIR_FD
7915 parameter and NULL as the file name. That caused failure with
7916 errno == EFAULT on FreeBSD-8.0-rc2
7918 2009-11-07 Eric Blake <ebb9@byu.net>
7920 fflush, freadseek: use fseeko, not fseek
7921 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7922 (clear_ungetc_buffer): Avoid potential problems on large files.
7923 * lib/freadseek.c (freadseek): Likewise.
7924 * modules/freadseek (Depends-on): Add fseeko.
7925 * modules/fseek (configure.ac): Set a witness.
7926 * tests/test-fflush.c (main): Use fseeko.
7927 * tests/test-fpurge.c (fseek): Disable link warning.
7928 * tests/test-freadable.c (fseek): Likewise.
7929 * tests/test-freading.c (fseek): Likewise.
7930 * tests/test-fseeko.c (fseek): Likewise.
7931 * tests/test-ftell.c (fseek): Likewise.
7932 * tests/test-ftello.c (fseek): Likewise.
7933 * tests/test-fwritable.c (fseek): Likewise.
7934 * tests/test-fwriting.c (fseek): Likewise.
7936 2009-11-06 Simon Josefsson <simon@josefsson.org>
7938 * modules/memchr (Depends-on): Drop getpagesize dependency.
7940 2009-11-06 Simon Josefsson <simon@josefsson.org>
7942 * build-aux/pmccabe2html: Disable execute bit. Suggested by
7943 Reported by Ludovic Courtès.
7944 * build-aux/pmccabe2html: Improve example usage.
7945 * build-aux/pmccabe2html: Drop #! header. Doc fix.
7947 2009-11-06 Jim Meyering <meyering@redhat.com>
7949 do-release-commit-and-tag: New module.
7950 Automate the release-commit and tag process.
7951 * build-aux/do-release-commit-and-tag: New script, from coreutils.
7952 * modules/do-release-commit-and-tag: New file.
7953 * MODULES.html.sh (Support for maintaining and releasing): Add it.
7955 2009-11-06 Simon Josefsson <simon@josefsson.org>
7957 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7958 because test-select.c uses inet_pton.
7960 2009-11-06 Simon Josefsson <simon@josefsson.org>
7962 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7963 GETADDRINFO_LIB. Bump serial number.
7964 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7965 Suggested by Eric Blake <ebb9@byu.net>.
7967 2009-11-05 Eric Blake <ebb9@byu.net>
7969 strtod: detect darwin bug
7970 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7971 Reported by Leo Davis.
7973 freopen-safer: new module
7974 * modules/freopen-safer: New module.
7975 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7976 * lib/freopen-safer.c (freopen_safer): New file.
7977 * lib/stdio-safer.h (freopen_safer): New declaration.
7978 * lib/stdio--.h (freopen): New override.
7979 * MODULES.html.sh (File stream based Input/Output): Mention it.
7980 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7981 freopen-safer module.
7982 * doc/posix-functions/stderr.texi (stderr): Likewise.
7983 * doc/posix-functions/stdin.texi (stdin): Likewise.
7984 * doc/posix-functions/stdout.texi (stdout): Likewise.
7985 * modules/freopen-safer-tests: New test.
7986 * tests/test-reopen-safer.c: New file.
7988 2009-11-05 Jim Meyering <meyering@redhat.com>
7990 maint.mk: Prohibit inclusion of "close-stream.h" without use.
7991 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7993 2009-11-05 Simon Josefsson <simon@josefsson.org>
7995 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7997 2009-11-05 Simon Josefsson <simon@josefsson.org>
7999 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8001 2009-11-05 Simon Josefsson <simon@josefsson.org>
8004 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8005 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8007 2009-11-05 Simon Josefsson <simon@josefsson.org>
8009 * tests/test-func.c: Also test value of __func__.
8011 2009-11-05 Simon Josefsson <simon@josefsson.org>
8013 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8014 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
8016 2009-11-05 Bruno Haible <bruno@clisp.org>
8019 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8020 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8021 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8023 2009-11-05 Bruno Haible <bruno@clisp.org>
8025 Tests for module 'inet_pton'.
8026 * modules/inet_pton-tests: New file.
8027 * tests/test-inet_pton.c: New file.
8029 2009-11-05 Bruno Haible <bruno@clisp.org>
8031 Tests for module 'inet_ntop'.
8032 * modules/inet_ntop-tests: New file.
8033 * tests/test-inet_ntop.c: New file.
8035 2009-11-04 Eric Blake <ebb9@byu.net>
8037 stdlib-safer: wrap all mkstemp variants
8038 * modules/mkostemp (configure.ac): Set witness.
8039 * modules/mkostemps (configure.ac): Likewise.
8040 * modules/mkstemps (configure.ac): Likewise.
8041 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8042 (mkstemps_safer): Wrap more functions.
8043 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8045 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8046 (mkstemps_safer): Implement the wrappers.
8048 mkstemps, mkostemps: new modules
8049 * modules/mkostemps: New module.
8050 * modules/mkstemps: Likewise.
8051 * lib/mkostemps.c (mkostemps): New file.
8052 * lib/mkstemps.c (mkstemps): Likewise.
8053 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8054 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8055 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8056 * modules/stdlib (Makefile.am): Substitute them.
8057 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8058 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8059 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8060 * doc/gnulib.texi (Glibc stdlib.h): Include them.
8061 * MODULES.html.sh (File system functions): Mention them.
8063 tempname: resync from glibc
8064 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
8065 same values for __GT_FILE as glibc. Abort even when assertions
8067 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8068 match its value otherwise. Allow idempotent inclusion.
8069 * lib/mkdtemp.c (mkdtemp): Adjust caller.
8070 * lib/mkostemp.c (mkostemp): Likewise.
8071 * lib/mkstemp.c (mkstemp): Likewise.
8072 * lib/tmpfile.c (tmpfile): Likewise.
8073 * NEWS: Document this.
8075 utimens: fix use of futimens on older Linux
8076 * lib/utimens.c (fdutimens): Use updated, rather than original,
8077 timespec to avoid bug in older Linux kernel.
8078 Reported by Simon Josefsson.
8080 2009-11-04 Bruno Haible <bruno@clisp.org>
8082 Make num_processors more flexible and consistent.
8083 * lib/nproc.h (enum nproc_query): New type.
8084 (num_processors): Add a 'query' argument.
8085 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8086 (num_processors): Add a 'query' argument. Test the value of the
8087 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8088 mingw, count the number of CPUs available for the current process.
8089 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8090 Check for sched_getaffinity and sched_getaffinity_np.
8091 * modules/nproc (Depends-on): Add c-ctype, extensions.
8092 * NEWS: Mention the change.
8094 2009-11-03 Bruno Haible <bruno@clisp.org>
8096 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8098 2009-11-03 Jim Meyering <meyering@redhat.com>
8100 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8101 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8104 2009-11-02 Eric Blake <ebb9@byu.net>
8106 mktime, timegm: share common declaration
8107 * lib/mktime-internal.h: New file.
8108 * lib/mktime.c: Use it rather than open-coding a declaration.
8109 * lib/timegm.c: Likewise.
8110 * modules/mktime (Files): Ship it.
8111 * modules/timegm (Files): Likewise.
8112 Suggested by Bruno Haible.
8114 test-update-copyright: update test to match script changes
8115 * tests/test-update-copyright.sh: Avoid hard-coding perl
8116 location. Don't update *.bak created by earlier runs.
8118 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
8119 Simon Josefsson <simon@josefsson.org>
8120 Bruno Haible <bruno@clisp.org>
8122 Fix link error on Solaris 8.
8123 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8124 also in libnsl. Define also INET_PTON_LIB.
8125 * modules/inet_pton (Link): New section.
8127 2009-11-02 Simon Josefsson <simon@josefsson.org>
8128 Bruno Haible <bruno@clisp.org>
8130 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8131 * modules/inet_ntop (Link): New section.
8132 Reported by Boyan Kasarov <bkasarov@gmail.com>.
8134 2009-11-02 Eric Blake <ebb9@byu.net>
8136 maint: avoid compiler warnings in m4 macros
8137 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8138 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8140 2009-11-02 Simon Josefsson <simon@josefsson.org>
8142 * m4/pmccabe2html.m4: Remove file.
8143 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
8144 function. Change maintainer.
8145 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8146 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
8149 2009-10-31 Eric Blake <ebb9@byu.net>
8151 fseeko: fix m4 regression
8152 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
8153 regression from 2009-10-27.
8154 Reported by Ralf Wildenhues.
8156 2009-10-31 Jim Meyering <meyering@redhat.com>
8158 inttostr: aesthetics and improved (compile-time) safety
8159 Define inttype_is_signed rather than inttype_is_unsigned,
8160 since the sole use is via "#if inttype_is_signed".
8161 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8162 inttype_is_unsigned.
8163 * lib/offtostr.c (inttype_is_signed): Likewise.
8164 * lib/uinttostr.c (inttype_is_signed): Likewise.
8165 * lib/umaxtostr.c (inttype_is_signed): Likewise.
8166 * lib/inttostr.c (inttostr): Use verify to cross-check the
8167 inttype_is_signed value and the signedness of the actual type.
8168 * modules/inttostr (Depends-on): Add verify.
8170 2009-10-30 Eric Blake <ebb9@byu.net>
8172 build: avoid compiler warnings
8173 * lib/fchmodat.c (lchmod): Mark unused variables.
8174 * lib/getopt.c (_getopt_initialize): Likewise.
8175 * lib/mktime.c (__mktime_internal): Provide prototype.
8176 * lib/inttostr.c (inttostr): Avoid compiler warning even with
8177 older gcc that do not understand #pragma GCC diagnostic.
8178 * lib/uinttostr.c (inttype_is_unsigned): Define.
8179 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8181 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8183 stat: fix compilation on AIX
8184 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8185 only see struct stat64.
8187 2009-10-30 Eric Blake <ebb9@byu.net>
8189 exclude: make more robust
8190 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8191 rather than masking a coding bug.
8192 Suggested by Bruno Haible.
8194 2009-10-30 Jim Meyering <meyering@redhat.com>
8196 perl scripts: remove #!/usr/bin/perl in favor of more portable...
8197 Rather than putting #!/usr/bin/perl on the first line,
8198 start with a variant of what's recommended by "man perlrun" that
8199 invokes the first "perl" program from your shell's search path.
8200 * build-aux/gitlog-to-changelog: Replace #!... as above.
8201 Add a "Local Variables" perl mode setting.
8202 Prompted by a patch from Ludovic Courtès.
8203 Improved by Eric Blake.
8204 * build-aux/useless-if-before-free: Likewise.
8205 * build-aux/announce-gen: Likewise.
8206 * build-aux/update-copyright: Likewise.
8208 2009-10-29 Eric Blake <ebb9@byu.net>
8210 filenamecat-lgpl: adjust clients
8211 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8213 * modules/renameat (Depends-on): Likewise.
8215 filenamecat: split into filenamecat-lgpl
8216 * modules/filenamecat-lgpl: New module.
8217 * modules/filenamecat (Files): Move library-safe files into
8219 (Depends-on): Add filenamecat-lgpl.
8220 (configure.ac): Declare witness.
8221 * lib/filenamecat.h (file_name_concat): Only declare when using
8223 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8225 * lib/filenamecat-lgpl.c: ...into new file.
8226 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8227 (gl_FILE_NAME_CONCAT): Use it.
8228 * MODULES.html.sh (File system functions): Mention new module.
8230 argp: avoid memory leak
8231 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8232 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8233 base_name, since the latter malloc()s and can call exit().
8234 Leak introduced 2006-07-03.
8236 dirname-lgpl: adjust clients that don't need full dirname
8237 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8238 * modules/filenamecat (Depends-on): Likewise.
8239 * modules/linkat (Depends-on): Likewise.
8240 * modules/mkancesdirs (Depends-on): Likewise.
8241 * modules/mkdir (Depends-on): Likewise.
8242 * modules/openat (Depends-on): Likewise.
8243 * modules/savewd (Depends-on): Likewise.
8244 * modules/rename (Depends-on): Likewise.
8245 (License): Relax license.
8246 * modules/mkdir-tests (Depends-on): Drop progname.
8247 (Makefile.am): Delete unneeded LDADD.
8248 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8250 dirname: split into dirname-lgpl
8251 * modules/dirname-lgpl: New module.
8252 * modules/dirname (Files): Move library-safe files into
8254 (Depends-on): Add dirname-lgpl.
8255 (configure.ac): Declare witness.
8256 * modules/double-slash-root (License): Relax license.
8257 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8259 * lib/dirname.c (dir_len, mdir_name): Move...
8260 * lib/dirname-lgpl.c: ...into new file.
8261 * lib/basename.c (last_component, base_len): Move...
8262 * lib/basename-lgpl.c: ...into new file.
8263 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8264 (gl_DIRNAME): Use it.
8265 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8267 * modules/dirname-tests (Depends-on): Add progname.
8268 * tests/test-dirname.c (program_name): Delete.
8270 mkdir: make safe for libraries
8271 * modules/mkdir (Depends-on): Drop xalloc.
8272 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8275 tests: avoid some compiler warnings
8276 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8278 * tests/test-memchr.c (main): Avoid type mismatch.
8279 * tests/test-arpa_inet.c (main): Avoid unused parameters.
8280 * tests/test-base64.c (main): Likewise.
8281 * tests/test-getdelim.c (main): Likewise.
8282 * tests/test-gethostname.c (main): Likewise.
8283 * tests/test-getline.c (main): Likewise.
8284 * tests/test-netinet_in.c (main): Likewise.
8285 * tests/test-select.c (open_server_socket, main): Likewise.
8286 * tests/test-select-stdin.c (main): Likewise.
8287 * tests/test-sockets.c (main): Likewise.
8288 * tests/test-strsignal.c (main): Likewise.
8289 * tests/test-sys_select.c (main): Likewise.
8290 * tests/test-sys_socket.c (main): Likewise.
8291 * tests/test-u64.c (main): Likewise.
8292 * tests/test-xfprintf-posix.c (main): Likewise.
8293 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8295 sockets: avoid compiler warning
8296 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8298 maint: detect usage(1) and other suspicious exits
8299 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8301 2009-10-29 Jim Meyering <meyering@redhat.com>
8303 timespec: long-to-int truncation could make timespec_cmp malfunction
8304 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8305 a multiple of 2^32 nanoseconds as no difference.
8307 2009-10-28 Jim Meyering <meyering@redhat.com>
8309 fprintftime: wrap macro code argument in "do {...} while(0)"
8310 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8311 cpy macro must be a statement that can be followed by a semicolon.
8312 Now that the else clause contains a comment and is hence longer
8313 than one line, I require curly braces. That in turn requires
8314 that we wrap this code block in the standard do...while(0).
8316 fprintftime: remove stray semicolon from previous change
8317 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8319 fprintftime: avoid a warning about ignored fwrite return value
8320 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8321 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8323 * modules/fprintftime (Depends-on): Add ignore-value.
8325 exclude: avoid an unwarranted warning
8326 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8328 2009-10-27 Eric Blake <ebb9@byu.net>
8330 fseek: avoid compilation failure when fflush is replaced
8331 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8332 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8334 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8335 module is not in use; since REPLACE_FSEEK worked otherwise.
8336 (GNULIB_FTELLO): Likewise for ftell.
8337 Reported by Ian Beckwith and others.
8339 2009-10-27 Bruno Haible <bruno@clisp.org>
8341 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8342 Reported by Jim Meyering.
8344 2009-10-27 Jim Meyering <jim@meyering.net>
8345 Bruno Haible <bruno@clisp.org>
8347 Avoid warning despite dropping the return value of fwrite.
8348 * lib/unicodeio.c: Include ignore-value.h.
8349 (fwrite_success_callback): Explicitly ignore fwrite's return value.
8350 * modules/unicodeio (Depends-on): Add ignore-value.
8352 2009-10-26 Eric Blake <ebb9@byu.net>
8354 areadlinkat: fix fallback path
8355 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8358 2009-10-22 Pádraig Brady <P@draigBrady.com>
8360 Use a better IO block size for modern systems
8361 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8362 * lib/md2.c: Likewise.
8363 * lib/md4.c: Likewise.
8364 * lib/md5.c: Likewise.
8365 * lib/sha1.c: Likewise.
8366 * lib/sha256.c: Likewise.
8367 * lib/sha512.c: Likewise.
8369 2009-10-22 Eric Blake <ebb9@byu.net>
8371 tests: avoid several compiler warnings
8372 * tests/test-getcwd.c (main): Avoid buffer underflow.
8373 * tests/test-getdate.c (main): String literals are not safe with
8374 putenv, so use setenv. Declare unused argument.
8375 * modules/getdate-tests (Depends-on): Add setenv.
8376 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
8377 problems with string literals in char *.
8378 * tests/test-hash.c (main): Avoid shadowing declaration.
8379 (insert_new): Treat string literals as char const *.
8380 * tests/test-getopt.h (test_getopt): Likewise.
8381 (getopt_loop): Alter types to minimize casting elsewhere.
8382 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8383 (test_getopt_long_posix): Likewise.
8384 (do_getopt_long): Add wrapper to minimize casting.
8385 * tests/test-atexit.c (clear_temp_file): Use void.
8386 * tests/test-areadlink-with-size.c (main): Declare unused
8388 * tests/test-areadlink.c (main): Likewise.
8389 * tests/test-areadlinkat-with-size.c (main): Likewise.
8390 * tests/test-areadlinkat.c (main): Likewise.
8391 * tests/test-canonicalize-lgpl.c (main): Likewise.
8392 * tests/test-canonicalize.c (main): Likewise.
8393 * tests/test-dirent-safer.c (main): Likewise.
8394 * tests/test-dirname.c (main): Likewise.
8395 * tests/test-dup2.c (main): Likewise.
8396 * tests/test-fchdir.c (main): Likewise.
8397 * tests/test-fcntl-h.c (main): Likewise.
8398 * tests/test-fcntl-safer.c (main): Likewise.
8399 * tests/test-fdopendir.c (main): Likewise.
8400 * tests/test-fdutimensat.c (main): Likewise.
8401 * tests/test-fflush.c (main): Likewise.
8402 * tests/test-filenamecat.c (main): Likewise.
8403 * tests/test-filevercmp.c (main): Likewise.
8404 * tests/test-fopen-safer.c (main): Likewise.
8405 * tests/test-fopen.c (main): Likewise.
8406 * tests/test-fpending.c (main): Likewise.
8407 * tests/test-fpurge.c (main): Likewise.
8408 * tests/test-freading.c (main): Likewise.
8409 * tests/test-fstatat.c (main): Likewise.
8410 * tests/test-fsync.c (main): Likewise.
8411 * tests/test-futimens.c (main): Likewise.
8412 * tests/test-getndelim2.c (main): Likewise.
8413 * tests/test-gettimeofday.c (main): Likewise.
8414 * tests/test-getopt.c (main): Likewise.
8415 * tests/test-i-ring.c (main): Likewise.
8416 * tests/test-inttypes.c (main): Likewise.
8417 * tests/test-link.c (main): Likewise.
8418 * tests/test-lstat.c (main): Likewise.
8419 * tests/test-math.c (main): Likewise.
8420 * tests/test-md5.c (main): Likewise.
8421 * tests/test-memchr2.c (main): Likewise.
8422 * tests/test-memrchr.c (main): Likewise.
8423 * tests/test-mkdir.c (main): Likewise.
8424 * tests/test-mkdirat.c (main): Likewise.
8425 * tests/test-mkfifoat.c (main): Likewise.
8426 * tests/test-open.c (main): Likewise.
8427 * tests/test-openat-safer.c (main): Likewise.
8428 * tests/test-openat.c (main): Likewise.
8429 * tests/test-quotearg.c (main): Likewise.
8430 * tests/test-rawmemchr.c (main): Likewise.
8431 * tests/test-readlink.c (main): Likewise.
8432 * tests/test-remove.c (main): Likewise.
8433 * tests/test-rename.c (main): Likewise.
8434 * tests/test-renameat.c (main): Likewise.
8435 * tests/test-rmdir.c (main): Likewise.
8436 * tests/test-sha1.c (main): Likewise.
8437 * tests/test-signal.c (main): Likewise.
8438 * tests/test-sigaction.c (main): Likewise.
8439 * tests/test-stat.c (main): Likewise.
8440 * tests/test-stat-time.c (main): Likewise.
8441 * tests/test-stddef.c (main): Likewise.
8442 * tests/test-stdint.c (main): Likewise.
8443 * tests/test-stdio.c (main): Likewise.
8444 * tests/test-stdlib.c (main): Likewise.
8445 * tests/test-strchrnul.c (main): Likewise.
8446 * tests/test-strerror.c (main): Likewise.
8447 * tests/test-string.c (main): Likewise.
8448 * tests/test-strtod.c (main): Likewise.
8449 * tests/test-strverscmp.c (main): Likewise.
8450 * tests/test-symlink.c (main): Likewise.
8451 * tests/test-symlinkat.c (main): Likewise.
8452 * tests/test-sys_stat.c (main): Likewise.
8453 * tests/test-sys_time.c (main): Likewise.
8454 * tests/test-time.c (main): Likewise.
8455 * tests/test-unistd.c (main): Likewise.
8456 * tests/test-unlink.c (main): Likewise.
8457 * tests/test-unlinkat.c (main): Likewise.
8458 * tests/test-utimens.c (main): Likewise.
8459 * tests/test-utimensat.c (main): Likewise.
8460 * tests/test-version-etc.c (main): Likewise.
8461 * tests/test-wchar.c (main): Likewise.
8462 * tests/test-wctype.c (main): Likewise.
8463 * tests/test-xprintf-posix.c (main): Likewise.
8464 * tests/test-posixtm.c (main): Likewise.
8465 (STREQ): Delete unused macro.
8466 * tests/test-linkat.c (main): Declare unused arguments. Avoid
8468 * tests/test-memchr.c (main): Likewise.
8470 2009-10-21 Eric Blake <ebb9@byu.net>
8472 areadlinkat: avoid failure on older glibc
8473 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8474 rather than mis-comparing 0 against FUNC_RESULT of char*.
8476 2009-10-21 Bruno Haible <bruno@clisp.org>
8478 * modules/stpncpy (License): Relicense under LGPLv2+.
8479 Reported by David Lutterkort <lutter@redhat.com>.
8481 2009-10-20 Eric Blake <ebb9@byu.net>
8483 utimensat: work around Solaris 9 bug
8484 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8485 has trailing slash bugs.
8486 * tests/test-lutimens.h (test_lutimens): Enhance test.
8487 * tests/test-utimens.h (test_utimens): Likewise.
8488 * doc/posix-functions/utime.texi (utime): Enhance documentation.
8489 * doc/posix-functions/utimes.texi (utimes): Likewise.
8490 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8491 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8492 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8493 * doc/posix-functions/futimens.texi (futimens): Likewise.
8495 fdutimensat: new module
8496 * modules/fdutimensat: New file.
8497 * lib/fdutimensat.c (fdutimensat): Likewise.
8498 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8499 * MODULES.html.sh (File system functions): Mention module.
8500 * modules/fdutimensat-tests: New test.
8501 * tests/test-fdutimensat.c: Likewise.
8503 doc: regenerate INSTALL
8504 * doc/INSTALL: Reflect recent autoconf update.
8505 * doc/INSTALL.ISO: Likewise.
8506 * doc/INSTALL.UTF-8: Likewise.
8508 2009-10-20 Pádraig Brady <P@draigBrady.com>
8510 acl: warn if ACL support is not detected
8511 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8513 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
8515 * lib/nproc.h: Add extern "C" block for C++.
8517 2009-10-18 Reuben Thomas <rrt@sc3d.org>
8518 Bruno Haible <bruno@clisp.org>
8520 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8521 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8522 * doc/posix-functions/isalpha.texi: Likewise.
8523 * doc/posix-functions/isblank.texi: Likewise.
8524 * doc/posix-functions/iscntrl.texi: Likewise.
8525 * doc/posix-functions/isdigit.texi: Likewise.
8526 * doc/posix-functions/isgraph.texi: Likewise.
8527 * doc/posix-functions/islower.texi: Likewise.
8528 * doc/posix-functions/isprint.texi: Likewise.
8529 * doc/posix-functions/ispunct.texi: Likewise.
8530 * doc/posix-functions/isspace.texi: Likewise.
8531 * doc/posix-functions/isupper.texi: Likewise.
8532 * doc/posix-functions/isxdigit.texi: Likewise.
8534 2009-10-18 Bruno Haible <bruno@clisp.org>
8536 Tests for module 'isblank'.
8537 * modules/isblank-tests: New file.
8538 * tests/test-isblank.c: New file.
8540 New module 'isblank'.
8541 * lib/isblank.c: New file.
8542 * m4/isblank.m4: New file.
8543 * modules/isblank: New file.
8544 * doc/posix-functions/isblank.texi: Mention the new module.
8546 2009-10-18 Bruno Haible <bruno@clisp.org>
8549 * lib/ctype.in.h: New file.
8550 * m4/ctype.m4: New file.
8551 * modules/ctype: New file.
8552 * doc/posix-headers/ctype.texi: Mention the new module.
8554 2009-10-18 Jim Meyering <meyering@redhat.com>
8556 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8557 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8558 right after its initialization, rather than farther down.
8559 Keeping these in close proximity makes it easier to ensure
8560 that each such variable is initialized. E.g.,
8563 AC_SUBST([LIB_CLOCK_GETTIME])
8565 This change also increments these serial numbers.
8566 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8567 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8568 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8570 2009-10-18 Bruno Haible <bruno@clisp.org>
8572 Don't let environment variables perturb build.
8573 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8574 (gl_PREREQ_GETHRXTIME): ... not here.
8576 2009-10-18 Bruno Haible <bruno@clisp.org>
8578 Avoid symlink attack in localcharset module.
8579 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8580 (O_NOFOLLOW): Define fallback.
8581 (get_charset_aliases): Don't open the file if it is a symbolic link.
8582 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8584 (gl_FCNTL_H): Require it.
8585 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8586 * modules/localcharset (Files): Add m4/fcntl_h.m4.
8587 Reported by Fergal Glynn <fglynn@veracode.com>.
8589 2009-10-18 Bruno Haible <bruno@clisp.org>
8591 Implement nproc for mingw.
8592 * lib/nproc.c: Include <windows.h>
8593 (num_processors): On native Windows platforms, try GetSystemInfo.
8595 2009-10-18 Bruno Haible <bruno@clisp.org>
8597 Implement nproc for IRIX.
8598 * lib/nproc.c: Include <sys/sysmp.h>.
8599 (num_processors): On IRIX systems, try sysmp.
8600 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8602 2009-10-18 Bruno Haible <bruno@clisp.org>
8604 Implement nproc for HP-UX.
8605 * lib/nproc.c: Include <sys/pstat.h>
8606 (num_processors): On HP-UX systems, try pstat_getdynamic.
8607 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8610 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
8611 Bruno Haible <bruno@clisp.org>
8613 Implement nproc for NetBSD, OpenBSD.
8614 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8615 (ARRAY_SIZE): New macro.
8616 (num_processors): On BSD systems, try sysctl of HW_NCPU.
8617 * m4/nproc.m4: New file.
8618 * modules/nproc (Files): Add m4/nproc.m4.
8619 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8620 (Makefile.am): Instead, augment lib_SOURCES.
8622 2009-10-18 Bruno Haible <bruno@clisp.org>
8624 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8625 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8628 2009-10-16 Eric Blake <ebb9@byu.net>
8630 utimensat: new module
8631 * modules/utimensat: New file.
8632 * lib/utimensat.c (utimensat): Likewise.
8633 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8634 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8635 so we can work around Linux bugs.
8636 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8637 * modules/sys_stat (Makefile.am): Substitute them.
8638 * lib/sys_stat.in.h (utimensat): Declare it.
8639 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8640 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8641 * modules/utimensat-tests: New test.
8642 * tests/test-utimensat.c: Likewise.
8644 utimens: let lutimens work on non-symlinks
8645 * lib/utimens.c (lutimens): Fall back to utimens rather than
8646 failing with ENOSYS, when file is not a symlink.
8647 (utimens): Reduce redirection.
8648 * tests/test-lutimens.h (test_lutimens): Update test to cover
8650 * tests/test-utimens.h (test_utimens): Update test to cover
8652 * tests/test-utimens.c (main): Update caller.
8654 utimens: cache whether utimensat syscall works
8655 * lib/utimens.c (utimensat_works_really): New cache variable.
8656 (fdutimens, lutimens): Use it to avoid failing syscall.
8658 test-stat-time, test-utimens: improve portability
8659 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8660 ext4 on alpha, and for cygwin.
8661 * tests/test-utimens-common.h: New file.
8662 (nap): Factor delays into single function.
8663 * tests/test-lutimens.h (test_lutimens): Use new header.
8664 * tests/test-futimens.h (test_futimens): Likewise.
8665 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
8666 timestamps to occur from same machine, as was done previously for
8668 * modules/utimens-tests (Files): Ship new file.
8669 * modules/futimens-tests (Files): Likewise.
8670 Reported in part by Jim Meyering.
8672 sys_stat: sort replacement declarations
8673 * lib/sys_stat.in.h: Sort declarations.
8674 * lib/futimens.c (futimens): Fix typo.
8676 2009-10-15 Jim Meyering <meyering@redhat.com>
8678 don't let environment settings perturb build
8679 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8680 could cause a configure-time and/or build-time malfunction.
8681 Typically, a configure-time function-in-library test is performed
8686 prefix_saved_LIBS=$LIBS
8687 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8688 [test "$ac_cv_search_FUNC" = "none required" ||
8689 LIB_VAR=$ac_cv_search_FUNC])
8690 LIBS=$prefix_saved_LIBS
8692 However, in each of the files affected by this change, the LIB_VAR=
8693 initialization was omitted. Thus, when set in the environment, its
8694 value would propagate into generated Makefiles when FUNC is not found
8696 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8697 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8698 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8700 2009-10-14 Eric Blake <ebb9@byu.net>
8702 fchdir: avoid infinite recursion in mingw
8703 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8706 test-stat-time: port to mingw
8707 * tests/test-stat-time.c (force_unlink): Return a value.
8708 (test_ctime) [W32]: Fix compilation error.
8709 (nap): Don't call usleep with too large an argument. Use
8711 * doc/pastposix-functions/usleep.texi (usleep): Document the
8714 2009-10-13 Jim Meyering <meyering@redhat.com>
8716 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8717 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8718 * modules/pipe-filter-ii: Likewise.
8719 * modules/sys_socket-tests: Likewise.
8720 * modules/tsearch-tests: Likewise.
8721 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8722 (check): Depend on it.
8724 2009-10-12 Eric Blake <ebb9@byu.net>
8726 utimens-tests: port to NFS file systems
8727 * tests/test-utimens.h (test_utimens): Refactor utimecmp
8728 comparisons to avoid spurious failures from timestamp drift
8729 between NFS machines.
8731 2009-10-12 Eric Blake <ebb9@byu.net>
8733 stat-time-tests: minor cleanups
8734 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8735 * tests/test-stat-time.c (nap): Separate assignment from call.
8736 Suggested by Paolo Bonzini and Bruno Haible.
8738 sys_stat: guarantee struct timespec
8739 * lib/sys_stat.in.h (includes): Always include <time.h>
8740 * modules/sys_stat (Depends-on): Add time.
8741 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8742 mode_t permission values.
8743 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8744 get at subsecond timestamps.
8746 2009-10-10 Eric Blake <ebb9@byu.net>
8748 futimens: new module
8749 * modules/futimens: New file.
8750 * lib/futimens.c (futimens): Likewise.
8751 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8752 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8753 we can work around Linux bugs.
8754 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8755 * modules/sys_stat (Makefile.am): Substitute them.
8756 * lib/sys_stat.in.h (futimens): Declare it.
8757 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8758 * doc/posix-functions/futimens.texi (futimens): Likewise.
8759 * modules/futimens-tests: New test.
8760 * tests/test-futimens.c: Likewise.
8762 utimens: introduce fdutimens
8763 * lib/utimens.h (fdutimens): New prototype.
8764 * lib/utimens.c (gl_futimens): Move guts...
8765 (fdutimens): ...to new interface.
8766 * tests/test-utimens.c (do_fdutimens): Use it.
8768 utimens: add UTIME_NOW and UTIME_OMIT support
8769 * lib/utimens.c (validate_timespec, update_timespec): New helper
8771 (gl_futimens, lutimens): Use them.
8772 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8774 (Link): Mention resulting library dependency.
8775 * modules/utimecmp (Link): Likewise.
8776 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8777 (Makefile.am): Pick up library dependency.
8778 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8780 * tests/test-sys_stat.c: Test the definitions.
8781 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8782 * NEWS: Document library dependency.
8784 utimecmp: support symlink timestamps
8785 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
8786 hashing when possible. Use pathconf when available.
8787 (SYSCALL_RESOLUTION): Recognize tighter resolution.
8788 * modules/utimecmp (Depends-on): Add lstat.
8790 utimens: add lutimens interface
8791 * lib/utimens.c (lutimens): New function.
8792 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8793 * lib/utimens.h (lutimens): Declare new interface.
8794 * tests/test-utimens.c (main): Enhance test.
8795 * tests/test-lutimens.h (test_lutimens): New file.
8796 * modules/utimens-tests (Files): Distribute it.
8797 (Depends-on): Add symlink.
8798 (configure.ac): Check for usleep.
8800 utimens: validate futimens usage
8801 * lib/utimens.c (gl_futimens): Require valid fd up front, using
8802 fewer syscalls on failure later on. Avoid compiler warning on
8804 * modules/utimens (Depends-on): Add dup2.
8807 * modules/utimens-tests: New test.
8808 * tests/test-utimens.h: New file.
8809 * tests/test-futimens.h: Likewise.
8810 * tests/test-utimens.c: Likewise.
8812 doc: mention timestamp portability issues
8813 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8815 * doc/posix-functions/utime.texi (utime): Likewise.
8816 * doc/posix-functions/utimes.texi (utimes): Likewise.
8817 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8819 * doc/posix-functions/futimens.texi (futimens): Mention utimens
8821 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8822 Mention weakness with symlink timestamps.
8823 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8824 to utimensat/futimens instead.
8825 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8827 test-dup2: enhance test
8828 * tests/test-dup2.c (main): Also check AT_FDCWD.
8830 test-stat-time: avoid more spurious failures
8831 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8832 xfs; and avoid race if the two timestamps cross quantization edge.
8834 relocatable: prefer 'file system' over 'filesystem'
8835 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8836 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8837 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8838 * doc/relocatable.texi (Enabling Relocatability): Likewise.
8839 * lib/relocatable.c (compute_curr_prefix): Likewise.
8841 2009-10-10 Jim Meyering <meyering@redhat.com>
8843 stat-time-tests: check for the usleep function
8844 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8846 2009-10-10 Bruno Haible <bruno@clisp.org>
8848 * modules/xnanosleep: Put the Link section after the Include section.
8850 2009-10-09 Eric Blake <ebb9@byu.net>
8852 dup2: work around FreeBSD 6.1 bug
8853 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8854 * doc/posix-functions/dup2.texi (dup2): Document it.
8855 Reported by Nelson H. F. Beebe and Jim Meyering.
8857 test-stat-time: port to buggy NFS clients
8858 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8859 (test_ctime): Also skip test if mtime and ctime are skewed.
8861 maint: prefer 'file system' over 'filesystem'
8862 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8863 * doc/posix-functions/lstat.texi (lstat): Likewise.
8864 * lib/file-has-acl.c (file_has_acl): Likewise.
8865 * lib/fwriteerror.c [TEST]: Likewise.
8866 * tests/test-areadlink.h (test_areadlink): Likewise.
8867 * tests/test-areadlinkat-with-size.c (main): Likewise.
8868 * tests/test-areadlinkat.c (main): Likewise.
8869 * tests/test-canonicalize-lgpl.c (main): Likewise.
8870 * tests/test-canonicalize.c (main): Likewise.
8871 * tests/test-fstatat.c (main): Likewise.
8872 * tests/test-linkat.c (main): Likewise.
8873 * tests/test-lstat.h (test_lstat_func): Likewise.
8874 * tests/test-mkdir.h (test_mkdir): Likewise.
8875 * tests/test-readlink.h (test_readlink): Likewise.
8876 * tests/test-remove.c (main): Likewise.
8877 * tests/test-rename.h (test_rename): Likewise.
8878 * tests/test-renameat.c (main): Likewise.
8879 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8880 * tests/test-symlink.h (test_symlink): Likewise.
8881 * tests/test-symlinkat.c (main): Likewise.
8882 * tests/test-unlink.h (test_unlink_func): Likewise.
8883 * tests/test-unlinkat.c (main): Likewise.
8885 maint: make realtime library usage explicit
8886 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8887 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8888 * modules/settime (Link): Likewise.
8889 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8891 test-stat-time: speed up execution
8892 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8894 (nap): New helper function.
8895 (prepare_test): Use it to reduce sleep time.
8896 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8898 * modules/stat-time-tests (configure.ac): Check for usleep.
8900 2009-10-09 Jim Meyering <meyering@redhat.com>
8902 selinux-h: always use getfilecon wrappers
8903 * lib/getfilecon.c: New file.
8904 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8905 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8906 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8907 (fgetfilecon): Provide a stub.
8908 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8909 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8910 file unconditionally.
8911 When <selinux/selinux.h> is found, arrange to use wrappers.
8912 * modules/selinux-h (Files): Add getfilecon.c.
8913 (Makefile.am): Substitute include-next-related bits
8914 into the now-always-generated selinux/selinux.h file.
8915 * doc/glibc-functions/lgetfilecon.texi: New file.
8916 * doc/glibc-functions/fgetfilecon.texi: New file.
8917 * doc/glibc-functions/getfilecon.texi: New file.
8918 * doc/glibc-functions/getfilecon-desc.texi: New file.
8919 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8920 which to pull in the new files.
8921 * MODULES.html.sh (Misc): Add selinux-h.
8923 2009-10-08 Jim Meyering <meyering@redhat.com>
8925 unistd: fix comment typo
8926 * lib/unistd.in.h (euidaccess): Fix a comment typo.
8928 2009-10-08 Eric Blake <ebb9@byu.net>
8930 areadlink: use SIZE_MAX consistently
8931 * modules/areadlink (Depends-on): Add stdint.
8932 * modules/areadlink-with-size (Depends-on): Likewise.
8933 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8934 gives NULL; drop sys/types, since unistd gives size_t; and add
8935 stdint for SIZE_MAX.
8936 (SIZE_MAX): Rely on headers.
8937 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8939 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8940 (SIZE_MAX): Likewise.
8941 (INITIAL_BUF_SIZE): Turn into enum.
8942 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8944 2009-10-08 Jim Meyering <meyering@redhat.com>
8946 areadlinkat: avoid compilation failure
8947 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8948 Fix typo in comment.
8950 2009-10-07 Eric Blake <ebb9@byu.net>
8952 areadlinkat-with-size: new module
8953 * modules/areadlinkat-with-size: New module.
8954 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8955 * lib/areadlink.h (areadlinkat): Declare it.
8956 * MODULES.html.sh (File system functions): Mention it.
8957 * modules/areadlinkat-with-size-tests: New test.
8958 * tests/test-areadlinkat-with-size.c: New file.
8960 xreadlinkat: new module
8961 * modules/xreadlinkat: New module.
8962 * lib/xreadlinkat.c (xreadlinkat): New file.
8963 * lib/xreadlink.h (xreadlinkat): Declare it.
8964 * MODULES.html.sh (File system functions): Mention it.
8966 areadlinkat: new module
8967 * lib/at-func.c (FUNC_FAIL): New define.
8968 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8969 * modules/areadlinkat: New module.
8970 * lib/linkat.c (areadlinkat): Move...
8971 * lib/areadlinkat.c (areadlinkat): ...to new file.
8972 * lib/areadlink.h (areadlinkat): Declare it.
8973 * modules/linkat (Depends-on): Add areadlinkat.
8974 * MODULES.html.sh (File system functions): Mention it.
8975 * modules/areadlinkat-tests: New test.
8976 * tests/test-areadlinkat.c: New file.
8978 areadlink, areadlink-with-size: add tests
8979 * modules/areadlink-tests: New test.
8980 * modules/areadlink-with-size-tests: Likewise.
8981 * tests/test-areadlink.h: New file.
8982 * tests/test-areadlink.c: Likewise.
8983 * tests/test-areadlink-with-size.c: Likewise.
8985 maint: minor cleanups
8986 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8987 _UNUSED_PARAMETER_ instead.
8988 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8989 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8990 * modules/linkat-tests (Files): Distribute test-link.h.
8992 openat, utimens: whitespace cleanup
8993 * lib/openat.c: Prefer space throughout, rather than mix of 8
8995 * lib/at-func.c: Likewise.
8996 * lib/utimens.c: Likewise.
8998 openat: avoid using wrong fd
8999 * lib/openat.c (openat_permissive): Reject user's fd if saving the
9000 working directory chooses same fd.
9001 * lib/at-func.c (AT_FUNC_NAME): Likewise.
9003 mkdir, mkdirat: fix cygwin 1.5.x bug
9004 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9005 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9006 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9008 (gl_PREREQ_MKDIR): Delete unused macro.
9009 * modules/mkdir (Files): Track file rename.
9010 (configure.ac): Update macro name.
9011 * modules/openat (Depends-on): Add mkdir.
9012 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9014 mkdir, mkdirat: add tests
9015 * modules/mkdir-tests: New test.
9016 * tests/test-mkdir.h: New file.
9017 * tests/test-mkdir.c: Likewise.
9018 * tests/test-mkdirat.c: Likewise.
9019 * modules/openat-tests (Files): Add new files.
9020 (Makefile.am): Run new test.
9022 2009-10-06 Eric Blake <ebb9@byu.net>
9024 doc: tweak *at function documentation
9025 * doc/posix-functions/faccessat.texi (faccessat): Mention
9026 known issue with replacement.
9027 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9028 * doc/posix-functions/linkat.texi (linkat): Likewise.
9029 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9030 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9031 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9032 * doc/posix-functions/renameat.texi (renameat): Likewise.
9033 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9035 openat: fix GNU/Hurd bug in unlinkat
9036 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9038 * doc/posix-functions/unlink.texi (unlink): Document this.
9039 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9041 fdopendir: fix GNU/Hurd bug
9042 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9043 allowing non-directory fds.
9044 * lib/fdopendir.c (rpl_fdopendir): Work around it.
9045 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9046 * modules/dirent (Makefile.am): Substitute it.
9047 * lib/dirent.in.h (fdopendir): Declare replacement.
9048 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9049 * tests/test-fdopendir.c (main): Test something other than
9050 /dev/null, since on Hurd that behaves like a directory.
9052 test-symlink: port to GNU/Hurd
9053 * tests/test-symlink.h (test_symlink): Relax expected errno.
9055 doc: tweak more cygwin information
9056 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9057 now compatible with glibc.
9058 * doc/posix-functions/getopt.texi (getopt): Likewise.
9060 getopt-gnu: add another test
9061 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9062 guarantee behavior relied on by m4.
9063 * tests/test-getopt.c (main): Use it.
9064 * modules/getopt-posix-tests (Depends-on): Add setenv.
9065 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9067 getopt: fix compilation on darwin
9068 * lib/getopt.in.h (includes): Leave breadcrumbs during system
9070 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9071 Reported by Ludovic Courtès.
9073 2009-10-06 Bruno Haible <bruno@clisp.org>
9075 * modules/size_max (Description): Discourage its use.
9076 Reported by Simon Josefsson.
9078 2009-10-06 Jim Meyering <meyering@redhat.com>
9080 linkat: avoid compilation failure
9081 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9083 2009-10-05 Eric Blake <ebb9@byu.net>
9085 linkat: support Linux 2.6.17
9086 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9087 linkat on Linux, but allow cache variable override.
9088 * lib/linkat.c (rpl_linkat): Define override.
9089 * modules/linkat (Depends-on): Add symlinkat.
9090 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9091 * modules/unistd (Makefile.am): Substitute it.
9092 * lib/unistd.in.h (linkat): Declare replacement.
9093 Reported by Pádraig Brady.
9095 quotearg: port test to systems with C.UTF-8 locale
9096 * tests/test-quotearg.c (struct result_strings): Add another
9097 member, differentiating between C.ASCII and C.UTF-8 handling.
9098 (compare_strings): Add parameter.
9099 (main): Adjust all callers.
9101 getopt: avoid clash with FreeBSD _getopt_internal
9102 * lib/getopt.in.h (_getopt_internal): Override the name.
9103 * lib/getopt_int.h (includes): Pick up any overrides.
9104 Reported by Reuben Thomas.
9106 hash: allow C89 compilation
9107 * lib/hash.c (check_tuning): Move declaration before statement.
9108 Reported by Reuben Thomas.
9110 2009-10-05 Karl Berry <karl@gnu.org>
9112 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9114 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
9115 Bruno Haible <bruno@clisp.org>
9117 * lib/uname.c (uname): Use a table-driven algorithm to compute
9118 Windows NT versions.
9120 2009-10-04 Bruno Haible <bruno@clisp.org>
9122 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9123 program_invocation_short_name.
9124 * modules/progname (configure.ac): Test for presence of
9125 program_invocation_short_name.
9126 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9128 2009-10-04 Bruno Haible <bruno@clisp.org>
9130 * lib/progname.c (set_program_name): Fix comment.
9131 Reported by Jim Meyering.
9133 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
9134 Bruno Haible <bruno@clisp.org>
9136 * lib/uname.c: Include <string.h>.
9137 (uname): Do only one call to GetVersionEx in the common case.
9139 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
9140 Bruno Haible <bruno@clisp.org>
9142 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9143 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9144 (uname): Add support for Windows CE and various non-x86 CPU types.
9146 2009-10-03 Bruno Haible <bruno@clisp.org>
9148 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9149 invocation to tests/configure.ac.
9150 Reported by Ian Beckwith <ianb@erislabs.net>.
9152 2009-10-02 Eric Blake <ebb9@byu.net>
9154 fchdir: avoid compiler warning
9155 * lib/fchdir.c (canonicalize_file_name)
9156 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9158 test-open: support mingw errno values
9159 * tests/test-open.h (test_open): Relax test.
9160 * tests/test-fopen.h (test_fopen): Likewise.
9161 * tests/test-openat-safer.c (main): Likewise.
9163 open: fix opening directory on mingw
9164 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9166 test-open: on GNU/Hurd, /dev/null is a directory
9167 * tests/test-fopen.h (main): Rename...
9168 (test_fopen): ...to this. Use a guaranteed non-directory when
9169 confirming open behavior on trailing slash.
9170 * tests/test-openat-safer.c (main): Likewise.
9171 * tests/test-open.h (main): Likewise....
9172 (test_open): ...to this.
9173 * tests/test-fopen.c (main): Adjust caller.
9174 * tests/test-fopen-safer.c (main): Likewise.
9175 * tests/test-open.c (main): Likewise.
9176 * tests/test-fcntl-safer.c (main): Likewise.
9177 Reported by Samuel Thibault.
9179 rename, fchdir: don't ignore chdir failure
9180 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9181 * lib/rename.c (rpl_rename) [W32]: Likewise.
9182 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9183 an empty destination directory if source cannot be renamed,
9184 although there is still possibility for failure.
9185 * doc/posix-functions/rename.texi (rename): Document the race.
9186 Reported by Jim Meyering.
9188 maint: cleanup whitespace in recent commits
9189 * lib/rename.c (rpl_rename): Remove tabs.
9190 * tests/test-link.h (test_link): Likewise.
9191 * lib/fchdir.c (get_name): Likewise.
9192 Reported by Jim Meyering.
9194 2009-10-02 Ben Pfaff <blp@gnu.org>
9196 relocatable-prog-wrapper: Add missing dependency on
9198 * modules/relocatable-prog-wrapper: Add dependency.
9199 Reported by Ian Beckwith <ianb@erislabs.net>.
9201 2009-10-02 Eric Blake <ebb9@byu.net>
9203 renameat: fix Solaris bugs
9204 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9206 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9207 * modules/stdio (Makefile.am): Substitute it.
9208 * lib/stdio.in.h (renameat): Declare replacement.
9209 * lib/renameat.c (rpl_renameat): Implement fix.
9211 renameat: new module
9212 * modules/renameat: New file.
9213 * lib/renameat.c (renameat): Likewise.
9214 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9215 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9216 * modules/stdio (Makefile.am): Substitute them.
9217 * lib/stdio.in.h (renameat): Declare it.
9218 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9219 * doc/posix-functions/renameat.texi (renameat): Likewise.
9220 * modules/renameat-tests: New test.
9221 * tests/test-renameat.c: Likewise.
9223 rename: fix mingw bugs
9224 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9225 directory overwrite bugs.
9227 rename: fix another cygwin 1.5 bug
9228 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9230 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9231 unnecessary cygwin workarounds. Also work around bug with moving
9232 full directory onto an empty one.
9233 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9235 rename-dest-slash: merge into rename module
9236 * modules/rename-dest-slash (Status): Mark obsolete.
9237 (Depends-on): Add rename.
9238 (Files): Let rename do it all.
9239 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9240 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9241 * m4/rename-dest-slash.m4: ...so this file can be deleted.
9242 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9243 * lib/rename.c (rpl_rename): Update comments.
9245 rename: fix cygwin 1.5.x bugs
9246 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9247 * lib/rename.c (rpl_rename): Work around them.
9248 * modules/rename (Depends-on): Add same-inode.
9250 rename: fix Solaris 10 bug
9251 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9252 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9255 rename: fix Solaris 9 bug
9256 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9257 on non-directory. Avoid calling exit.
9258 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9260 * modules/rename-tests (Depends-on): Drop lstat.
9261 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9262 (gl_PREREQ_RENAME): Delete unused macro.
9264 rename-dest-slash: fix NetBSD bug
9265 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9267 * modules/rename-dest-slash (Depends-on): Add same-inode.
9269 rename-tests: new test, exposes several platform bugs
9270 * modules/rename-tests: New file.
9271 * tests/test-rename.h: Likewise.
9272 * tests/test-rename.c: Likewise.
9273 * doc/posix-functions/rename.texi (rename): Improve documentation,
9274 including bugs that will eventually be fixed in gnulib.
9276 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
9278 * lib/uname.c: Include <stdlib.h>
9279 (uname): Assume version info is available.
9281 2009-10-02 Jim Meyering <meyering@redhat.com>
9283 gnu-web-doc-update: correct --help output
9284 * build-aux/gnu-web-doc-update: Make --help output relevant.
9286 gnu-web-doc-update: add standard options
9287 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9289 gnu-web-doc-update: New module.
9290 Use this script to automatically update the on-line web documentation
9291 for your GNU project at http://www.gnu.org/software/$pkg/manual/
9292 * modules/gnu-web-doc-update: New file, from coreutils.
9293 * build-aux/gnu-web-doc-update: New script.
9295 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
9297 link: LoadLibrary is not needed.
9298 * lib/link.c: Use GetModuleHandle.
9300 2009-10-01 Eric Blake <ebb9@byu.net>
9302 getopt: bump serial number
9303 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9306 tests: tighten link, rmdir, and remove tests
9307 * tests/test-link.h (includes): No need to use <config.h> here.
9308 Clean up if directory hard link was created, otherwise test for
9310 * tests/test-linkat.c (main): Simplify.
9311 * tests/test-remove.c (main): Enhance test for trailing '.'.
9312 * tests/test-rmdir.h (test_rmdir_func): Likewise.
9314 2009-10-01 Jim Meyering <meyering@redhat.com>
9316 maint.mk: requiring "make major" was annoying, for a "minor" release.
9317 What is intended is "stable", to contrast with alpha and beta,
9318 so require "make stable", not "make major".
9319 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9320 (get_tool_versions): Likewise.
9321 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9323 2009-09-30 Ben Pfaff <blp@gnu.org>
9325 Fix broken build of replacement for Windows tmpfile().
9326 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9327 flags argument added along with the 'mkostemp' module.
9329 2009-09-28 Bruno Haible <bruno@clisp.org>
9331 Avoid identifier clash with POSIX function 'remove' defined as a macro.
9332 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9334 (gl_list_remove): Update.
9335 * lib/gl_list.c (gl_list_remove): Update.
9336 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9338 (gl_oset_remove): Update.
9339 * lib/gl_list.c (gl_oset_remove): Update.
9340 Reported by Eric Blake.
9342 2009-09-28 Eric Blake <ebb9@byu.net>
9344 doc: mention yet more cygwin 1.7 status
9345 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9347 * doc/glibc-functions/execvpe.texi (execvpe): New file.
9348 * doc/gnulib.texi (Glibc unistd.h): Mention it.
9350 argp: fix test failure
9351 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9352 that are not upper-case. Pass correct range to tolower.
9354 2009-09-27 Jim Meyering <meyering@redhat.com>
9356 test-yesno: work around sparc-dash here-document infelicity
9357 Without this change, the literal \177 byte in a here document
9358 would make dash 0.5.5.1-3 access uninitialized memory.
9359 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9360 Instead, use a marker, "@", and filter through tr to create the desired
9361 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9363 2009-09-27 Bruno Haible <bruno@clisp.org>
9365 Disable untested support for new flavours of ACLs on AIX.
9366 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9368 * lib/set-mode-acl.c (qset_acl): Likewise.
9370 2008-12-07 Bruno Haible <bruno@clisp.org>
9372 Add support for new flavours of ACLs on AIX. (Untested.)
9373 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9374 (file_has_acl): Add support for newer AIX.
9375 * lib/set-mode-acl.c (qset_acl): Likewise.
9376 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9377 Rainer Tammer <tammer@tammer.net>.
9379 2009-09-26 Eric Blake <ebb9@byu.net>
9381 argp: fix compilation of getopt
9382 * lib/getopt.in.h (includes): Use different guard than glibc.
9383 Reported by Sergey Poznyakoff.
9385 doc: mention more cygwin 1.7 status
9386 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9388 * doc/posix-functions/execl.texi (execl): Likewise.
9389 * doc/posix-functions/execle.texi (execle): Likewise.
9390 * doc/posix-functions/execlp.texi (execlp): Likewise.
9391 * doc/posix-functions/execv.texi (execv): Likewise.
9392 * doc/posix-functions/execve.texi (execve): Likewise.
9393 * doc/posix-functions/execvp.texi (execvp): Likewise.
9394 * doc/glibc-functions/canonicalize_file_name.texi
9395 (canonicalize_file_name): Cygwin 1.7 now provides this.
9396 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9397 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9398 on AT_SYMLINK_NOFOLLOW.
9400 2009-09-24 Eric Blake <ebb9@byu.net>
9402 test-linkat: make test more robust
9403 * tests/test-linkat.c (main): Avoid collision with EEXIST.
9405 getopt: fix inclusion guards for cygwin
9406 * modules/getopt-posix (Depends-on): Add include-next.
9407 (Makefile.am): Substitute more items in replacement header.
9408 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9410 * lib/getopt.in.h (includes): Use split inclusion guard, and
9411 prefer <getopt.h> over include <unistd.h> when one is present.
9412 (option): Also override name of 'struct option'.
9414 same-inode: revert prior change; it is not yet ready
9415 * NEWS: Undo mention of this change.
9416 * lib/same-inode.h (same-inode.h): Undo tri-state change.
9417 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9418 * lib/cycle-check.c (cycle_check): Likewise.
9419 * lib/same.c (same_name): Likewise.
9420 * lib/at-func2.c (at_func2): Likewise.
9422 2009-09-23 Eric Blake <ebb9@byu.net>
9425 * modules/linkat: New file.
9426 * lib/at-func2.c (at_func2): Likewise.
9427 * lib/linkat.c (linkat): Likewise.
9428 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9429 * lib/openat-priv.h (at_func2): Add declaration.
9430 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9431 * modules/unistd (Makefile.am): Substitute them.
9432 * lib/unistd.in.h (linkat): Declare it.
9433 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9434 * doc/posix-functions/linkat.texi (linkat): Likewise.
9435 * doc/posix-functions/link.texi (link): Tweak wording.
9436 * tests/test-link.c (main): Move guts...
9437 * tests/test-link.h (test_link): ...into new file.
9438 * modules/linkat-tests: New test.
9439 * tests/test-linkat.c: Likewise.
9440 * modules/link-tests (Files): Ship new file.
9441 (Depends-on): Add stdbool.
9443 dirname: add library-safe mdir_name
9444 * lib/dirname.h (mdir_name): New prototype.
9445 * lib/dirname.c (dir_name): Move guts...
9446 (mdir_name): ...to new function that avoids xalloc_die.
9448 fchdir: another mingw fix
9449 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9450 * lib/fchdir.c (get_name): New helper method; skips canonicalize
9451 on mingw (where it has not yet been ported), and make it optional
9453 (_gl_register_fd): Use it.
9455 same-inode: make SAME_INODE tri-state, to port to mingw
9456 * NEWS: Mention this change.
9457 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9458 st_ino always being 0.
9459 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9460 * lib/cycle-check.c (cycle_check): Likewise.
9461 * lib/same.c (same_name): Likewise.
9463 lstat: avoid mingw compilation error
9464 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9465 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9467 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9469 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9470 the checks for lstat.
9471 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9473 link: fix test failure on Solaris 9
9474 * lib/link.c (rpl_link): Don't assume link will catch bogus
9475 trailing slash on source.
9477 test-symlinkat: enhance test
9478 * tests/test-readlink.c (main): Move guts...
9479 * tests/test-readlink.h (test_readlink): ...into new file.
9480 * tests/test-symlink.c (main): Move guts...
9481 * tests/test-symlink.h (test_symlink): ...into new file.
9482 * tests/test-symlinkat.c (main): Use new files for further
9484 (do_symlink, do_readlink): New helper functions.
9485 * modules/symlink-tests (Files): Ship new file.
9486 (Depends-on): Add stdbool.
9487 * modules/readlink-tests (Files): Ship new file.
9488 (Depends-on): Add stdbool.
9489 * modules/symlinkat-tests (Files): Use new files.
9491 2009-09-23 Eric Blake <ebb9@byu.net>
9493 readlink: document portability issue with symlink length
9494 * doc/posix-functions/lstat.texi (lstat): Mention that some file
9495 systems have bogus st_size on symlinks, and mention the
9496 areadlink-with-size module.
9497 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9498 * doc/posix-functions/readlink.texi (readlink): Mention the
9499 areadlink module, and ERANGE failure.
9500 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9501 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9503 readlink: fix Solaris 9 bug with trailing slash
9504 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9505 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9506 * doc/posix-functions/readlink.texi (readlink): Document this.
9507 * modules/readlink-tests: New test.
9508 * tests/test-readlink.c: Likewise.
9510 readlink: fix cygwin 1.5.x bug with return type
9511 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9512 * lib/unistd.in.h (readlink): Use ssize_t.
9513 * lib/readlink.c (readlink): Likewise.
9514 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9515 * modules/unistd (Makefile.am): Substitute it.
9516 * lib/unistd.in.h (readlink): Declare replacement.
9517 * doc/posix-functions/readlink.texi (readlink): Document this.
9519 symlink: use throughout gnulib
9520 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9521 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9522 symlink is not used.
9523 * modules/symlinkat (Depends-on): Add symlink.
9524 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9525 * modules/canonicalize-tests (Depends-on): Likewise.
9526 * modules/lstat-tests (Depends-on): Likewise.
9527 * modules/openat-tests (Depends-on): Likewise.
9528 * modules/remove-tests (Depends-on): Likewise.
9529 * modules/rmdir-tests (Depends-on): Likewise.
9530 * modules/unlink-tests (Depends-on): Likewise.
9531 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9532 * tests/test-canonicalize.c (symlink): Likewise.
9533 * tests/test-fstatat.c (symlink): Likewise.
9534 * tests/test-lstat.c (symlink): Likewise.
9535 * tests/test-remove.c (symlink): Likewise.
9536 * tests/test-rmdir.c (symlink): Likewise.
9537 * tests/test-unlink.c (symlink): Likewise.
9538 * tests/test-unlinkat.c (symlink): Likewise.
9540 symlink: new module, for Solaris 9 bug
9541 * modules/symlink: New file.
9542 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9543 * lib/symlink.c: Likewise.
9544 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9545 * modules/unistd (Makefile.am): Substitute them.
9546 * lib/unistd.in.h (symlink): Declare replacement.
9547 * MODULES.html.sh (File system functions): Mention it.
9548 * doc/posix-functions/symlink.texi (symlink): Likewise.
9549 * modules/symlink-tests: New test.
9550 * tests/test-symlink.c: Likewise.
9552 2009-09-23 Bruno Haible <bruno@clisp.org>
9554 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9556 Test case: gnulib-tool --import --with-tests atexit inttypes.
9557 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9559 2009-09-23 Bruno Haible <bruno@clisp.org>
9561 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9562 subcommand, not in a subshell.
9564 2009-09-22 Eric Blake <ebb9@byu.net>
9566 unistd: sort replacement declarations
9567 * lib/unistd.in.h: Sort declarations.
9569 open, openat: minor optimization
9570 * lib/open.c (open): If open succeeded, len is non-zero.
9571 * lib/openat.c (rpl_openat): Likewise.
9573 link-follow: ensure correct result
9574 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9575 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9576 distinguish between possible failures.
9578 2009-09-21 Eric Blake <ebb9@byu.net>
9580 fts: avoid compiler warning
9581 * lib/fts.c (dirent_inode_sort_may_be_useful)
9582 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9584 2009-09-19 Bruno Haible <bruno@clisp.org>
9586 * lib/progreloc.c (canonicalize_file_name): New declaration.
9588 2009-09-19 Eric Blake <ebb9@byu.net>
9591 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9593 openat: fix openat bugs on Solaris 9
9594 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9595 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9596 * modules/openat (Depends-on): Add open.
9597 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9598 * modules/fcntl-h (Makefile.am): Substitute it.
9599 * lib/fcntl.in.h (openat): Declare replacement.
9600 * doc/posix-functions/openat.texi (openat): Document this.
9602 openat: move fstatat and unlinkat into correct files
9603 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9605 * lib/openat.c (fstatat, unlinkat): Move...
9606 * lib/fstatat.c (fstatat): ...into correct files.
9607 * lib/unlinkat.c (unlinkat): Likewise.
9609 openat: fix unlinkat bugs on Solaris 9
9610 * lib/unlinkat.c (unlinkat): New file.
9611 * modules/openat (Depends-on): Add unlink.
9612 (Files): Distribute it.
9613 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9614 trailing slash behavior is broken.
9615 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9616 * modules/unistd (Makefile.am): Substitute it.
9617 * lib/unistd.in.h (unlinkat): Declare replacement.
9618 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9620 openat: fix fstatat bugs on Solaris 9
9621 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9623 * doc/posix-functions/fstatat.texi (fstatat): Document this.
9625 test-unlinkat: enhance test, to expose Solaris 9 bug
9626 * tests/test-unlink.c (main): Factor guts...
9627 * tests/test-unlink.h (test_rmdir_func): ...into new file.
9628 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9629 * tests/test-rmdir.c (main): Adjust caller.
9630 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
9631 (unlinker): New helper function.
9632 (rmdirat): Enhance check.
9633 * modules/rmdir-tests (Depends-on): Add stdbool.
9634 * modules/unlink-tests (Depends-on): Likewise.
9635 (Files): Add test-unlink.h.
9636 * modules/openat-tests (Files): Likewise.
9637 (Depends-on): Add unlinkdir.
9639 test-fstatat: new test, to expose Solaris 9 bugs
9640 * tests/test-stat.c (main): Factor guts...
9641 * tests/test-stat.h (test_stat_func): ...into new file.
9642 * tests/test-lstat.c (main): Factor guts...
9643 * tests/test-lstat.h (test_lstat_func): ...into new file.
9644 * tests/test-fstatat.c: New file.
9645 * modules/stat-tests (Files): Add test-stat.h.
9646 * modules/lstat-tests (Files): Add test-lstat.h.
9647 (Depends-on): Add stdbool.
9648 * modules/openat-tests (Depends-on): Add pathmax.
9649 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9650 (Makefile.am): Run new test.
9652 remove: new module, for mingw and Solaris 9 bugs
9653 * modules/remove: New file.
9654 * lib/remove.c: Likewise.
9655 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9656 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9657 * modules/stdio (Makefile.am): Use them.
9658 * lib/stdio.in.h (remove): Declare replacement.
9659 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9660 * doc/posix-functions/remove.texi (remove): Likewise.
9661 * modules/remove-tests: New test.
9662 * tests/test-remove.c: Likewise.
9664 unlink: new module, for Solaris 9 bug
9665 * modules/unlink: New file.
9666 * lib/unlink.c: Likewise.
9667 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9668 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9669 * modules/unistd (Makefile.am): Use them.
9670 * lib/unistd.in.h (stat): Declare replacement.
9671 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9672 * doc/posix-functions/unlink.texi (unlink): Likewise.
9673 * modules/unlink-tests: New test.
9674 * tests/test-unlink.c: Likewise.
9676 lstat: fix Solaris 9 bug
9677 * lib/lstat.c (lstat): Also check for trailing slash on
9678 non-symlink, non-directories. Use stat module to simplify logic.
9679 * doc/posix-functions/lstat.texi (lstat): Document it.
9680 * modules/lstat-tests (Depends-on): Add errno, same-inode.
9681 (configure.ac): Check for symlink.
9682 * tests/test-lstat.c (main): Add more tests.
9684 stat: add as dependency to other modules
9685 * modules/chown (Depends-on): Add stat.
9686 * modules/euidaccess (Depends-on): Likewise.
9687 * modules/fchdir (Depends-on): Likewise.
9688 * modules/isdir (Depends-on): Likewise.
9689 * modules/link (Depends-on): Likewise.
9690 * modules/lstat (Depends-on): Likewise.
9691 * modules/mkdir-p (Depends-on): Likewise.
9692 * modules/modechange (Depends-on): Likewise.
9693 * modules/open (Depends-on): Likewise.
9694 * modules/readlink (Depends-on): Likewise.
9695 * modules/same (Depends-on): Likewise.
9697 stat: fix Solaris 9 bug
9698 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9700 * lib/stat.c (rpl_stat): Work around it.
9701 * doc/posix-functions/stat.texi (stat): Update documentation.
9703 stat: new module, for mingw bug
9704 * modules/stat: New file.
9705 * lib/stat.c: Likewise.
9706 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9707 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9708 * modules/sys_stat (Makefile.am): Use them.
9709 * lib/sys_stat.in.h (stat): Declare replacement.
9710 * lib/openat.c (fstatat): Deal with lstat and stat being function
9712 * modules/openat (Depends-on): Add inline.
9713 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9714 * doc/posix-functions/stat.texi (stat): Likewise.
9715 * modules/stat-tests: New test.
9716 * tests/test-stat.c: Likewise.
9718 2009-09-19 Jim Meyering <meyering@redhat.com>
9720 syntax-check: detect unnecessary inclusion of canonicalize.h
9721 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9723 2009-09-19 Eric Blake <ebb9@byu.net>
9725 canonicalize-lgpl: adjust clients to use correct header
9726 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9727 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9728 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9729 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9730 * lib/progreloc.c (includes): Likewise.
9732 2009-09-19 Jim Meyering <meyering@redhat.com>
9734 test-posixtm.c: correct a comment
9735 * tests/test-posixtm.c: Correct first-line comment.
9736 Spotted by Eric Blake.
9738 2009-09-16 Jim Meyering <meyering@redhat.com>
9740 posixtm-tests: make T const-correct; add a test case
9741 * tests/test-posixtm.c (T): Declare const.
9742 Add a test for -(2^31+1).
9743 Remove useless can-succeed-only-in-2002 test.
9745 posixtm-tests: adjust the sole failing test
9746 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9747 expected output matches what mktime now produces. Cross-checked via
9748 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9750 posixtm: move #ifdef'd tests into a new module
9751 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
9752 * tests/test-posixtm.c: ... this new file.
9753 * modules/posixtm-tests: New module.
9755 2009-09-19 Eric Blake <ebb9@byu.net>
9757 openat: simplify use of at-func.c
9758 * lib/at-func.c (includes): Include prerequisites here, to
9759 simplify requirements on client files.
9760 * lib/openat-priv.h: Add double-inclusion guard.
9761 * lib/faccessat.c (includes): Simplify.
9762 * lib/fchmodat.c (includes): Likewise.
9763 * lib/fchownat.c (includes): Likewise.
9764 * lib/mkdirat.c (includes): Likewise.
9765 * lib/mkfifoat.c (includes): Likewise.
9766 * lib/symlinkat.c (includes): Likewise.
9768 openat: allow return of fd 0
9769 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9770 * modules/save-cwd (Depends-on): Replace fcntl-safer with
9772 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9773 <fcntl.h>; this module does not leak fds.
9774 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9775 must be allowed to return 0, leaving openat_safer to add the
9777 (openat_permissive): Avoid writing to just-opened fd 2 if
9778 restoring the current directory fails.
9779 * lib/openat-die.c (openat_restore_fail): Add comment.
9780 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9781 (save_cwd): Guarantee safe fd, but without use of open_safer.
9782 * tests/test-openat.c: New test.
9783 * modules/openat-tests (Files, Makefile.am): Distribute and build
9786 relocatable-prog-wrapper: fix build
9787 * modules/relocatable-prog-wrapper (Files): Update name of
9788 canonicalize m4 file, broken on 2009-09-17.
9789 Reported by emad hajjar <aleppos@hotmail.com>.
9791 2009-09-19 Bruno Haible <bruno@clisp.org>
9793 * lib/safe-alloc.h: Use the standard header with GPL copyright.
9794 * lib/safe-alloc.c: Likewise.
9795 Reported by Ian Beckwith <ianb@erislabs.net>.
9797 2009-09-18 Bruno Haible <bruno@clisp.org>
9799 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9800 Reported by <erobles@sensacd.com.mx>.
9802 2009-09-17 Eric Blake <ebb9@byu.net>
9804 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9805 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9806 slashes when checking if last component is missing.
9807 * tests/test-canonicalize.c (main): Test this.
9809 canonicalize, canonicalize-lgpl: honor // if distinct from /
9810 * modules/canonicalize (Files): Add double-slash-root.m4.
9811 * modules/canonicalize-lgpl (Files): Likewise.
9812 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9813 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9814 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9815 fallback definition.
9816 (canonicalize_filename_mode): Use it to protect //.
9817 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9818 (__realpath): Likewise.
9819 * tests/test-canonicalize.c (main): Test this.
9820 * tests/test-canonicalize-lgpl.c (main): Likewise.
9821 * modules/canonicalize-tests (Depends-on): Add same-inode.
9822 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9824 canonicalize-lgpl: fix glibc bug with trailing slash
9825 * m4/canonicalize-lgpl.m4: Move contents...
9826 * m4/canonicalize.m4: ...here.
9827 (gl_CANONICALIZE_LGPL): Factor realpath check...
9828 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
9829 glibc 2.3.5 bug, fixed 2005-04-27.
9830 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9831 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9832 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9833 * modules/canonicalize-lgpl (Files): Manage file rename.
9834 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9835 * modules/stdlib (Makefile.am): Substitute witness.
9836 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9838 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9839 replacement is required.
9840 * lib/canonicalize.c (canonicalize_file_name): Likewise.
9841 * doc/glibc-functions/canonicalize_file_name.texi
9842 (canonicalize_file_name): Document this.
9843 * doc/posix-functions/realpath.texi (realpath): Likewise.
9845 canonicalize-lgpl: reject non-directory with trailing slash
9846 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9847 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
9848 catches failures in glibc 2.3.5.
9849 * tests/test-canonicalize.c (main): Likewise.
9851 canonicalize-lgpl: use native realpath if it works
9852 * lib/canonicalize-lgpl.c (realpath): Guard with
9853 FUNC_REALPATH_WORKS.
9854 * lib/stdlib.in.h (realpath): Make declaration optional based on
9856 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9857 native realpath works.
9858 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9859 * modules/stdlib (Makefile.am): Substitute witness.
9861 canonicalize, canonicalize-lgpl: use <stdlib.h>
9862 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9863 (Include): Mention <stdlib.h>.
9864 (configure.ac): Mention functions we provide.
9865 * modules/canonicalize (configure.ac): Likewise.
9866 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9867 realpath if canonicalize_file_name is missing.
9868 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9869 * modules/stdlib (Makefile.am): Substitute witnesses.
9870 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9871 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9872 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9873 * NEWS: Document this.
9874 * doc/glibc-functions/canonicalize_file_name.texi
9875 (canonicalize_file_name): Likewise.
9876 * doc/posix-functions/realpath.texi (realpath): Likewise.
9877 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9879 test-canonicalize: consolidate into single C program
9880 * tests/test-canonicalize.sh: Delete; move setup into...
9881 * tests/test-canonicalize.c (main): ...the program, making it
9882 easier to run in debugger. Add some tests.
9883 * modules/canonicalize-tests (Files): Remove unused file.
9884 (Depends-on): Add progname.
9885 (configure.ac, Makefile.am): Simplify.
9887 test-canonicalize-lgpl: consolidate into single C program
9888 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9889 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9890 easier to run in debugger. Add some tests.
9891 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9892 (configure.ac, Makefile.am): Simplify.
9894 canonicalize: avoid resolvepath
9895 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9897 * lib/canonicalize.c (includes): Simplify.
9898 (canonicalize_file_name): Drop resolvepath implementation.
9899 * modules/canonicalize (Depends-on): Drop filenamecat.
9901 canonicalize: don't lose errno
9902 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9905 canonicalize: simplify errno handling
9906 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9909 canonicalize, canonicalize-lgpl: update module dependencies
9910 * modules/canonicalize (Depends-on): Add extensions, lstat,
9912 (Files): Drop pathmax.h.
9913 (configure.ac): Adjust macro name.
9914 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9915 lstat, stdlib, sys_stat.
9916 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9917 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9919 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9920 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9921 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9922 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9923 declaration, if available.
9924 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9925 we can rely on the readlink module.
9926 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9927 (includes): Use <unistd.h> unconditionally.
9929 2009-09-17 Eric Blake <ebb9@byu.net>
9931 maint: make Include sections of modules consistent
9932 * modules/alloca: Use only header name; no need to list #include.
9933 * modules/alloca-opt: Likewise.
9934 * modules/arpa_inet: Likewise.
9935 * modules/canon-host: Likewise.
9936 * modules/configmake: Likewise.
9937 * modules/dirent: Likewise.
9938 * modules/eealloc: Likewise.
9939 * modules/environ: Likewise.
9940 * modules/fchdir: Likewise.
9941 * modules/fcntl: Likewise.
9942 * modules/fcntl-h: Likewise.
9943 * modules/gethrxtime: Likewise.
9944 * modules/gettime: Likewise.
9945 * modules/ignore-value: Likewise.
9946 * modules/inet_ntop: Likewise.
9947 * modules/inet_pton: Likewise.
9948 * modules/inttypes: Likewise.
9949 * modules/isnand-nolibm: Likewise.
9950 * modules/isnanf-nolibm: Likewise.
9951 * modules/mbchar: Likewise.
9952 * modules/mbfile: Likewise.
9953 * modules/mbiter: Likewise.
9954 * modules/mbuiter: Likewise.
9955 * modules/netdb: Likewise.
9956 * modules/netinet_in: Likewise.
9957 * modules/nproc: Likewise.
9958 * modules/pagealign_alloc: Likewise.
9959 * modules/poll: Likewise.
9960 * modules/printf-frexp: Likewise.
9961 * modules/pthread: Likewise.
9962 * modules/putenv: Likewise.
9963 * modules/random_r: Likewise.
9964 * modules/relocatable-prog: Likewise.
9965 * modules/search: Likewise.
9966 * modules/select: Likewise.
9967 * modules/selinux-h: Likewise.
9968 * modules/settime: Likewise.
9969 * modules/signal: Likewise.
9970 * modules/size_max: Likewise.
9971 * modules/socklen: Likewise.
9972 * modules/ssize_t: Likewise.
9973 * modules/stdarg: Likewise.
9974 * modules/stdbool: Likewise.
9975 * modules/stddef: Likewise.
9976 * modules/stdint: Likewise.
9977 * modules/stdio: Likewise.
9978 * modules/stdlib: Likewise.
9979 * modules/string: Likewise.
9980 * modules/strings: Likewise.
9981 * modules/sys_file: Likewise.
9982 * modules/sys_ioctl: Likewise.
9983 * modules/sys_select: Likewise.
9984 * modules/sys_socket: Likewise.
9985 * modules/sys_stat: Likewise.
9986 * modules/sys_time: Likewise.
9987 * modules/sys_times: Likewise.
9988 * modules/sys_utsname: Likewise.
9989 * modules/sys_wait: Likewise.
9990 * modules/sysexits: Likewise.
9991 * modules/time: Likewise.
9992 * modules/times: Likewise.
9993 * modules/tmpfile: Likewise.
9994 * modules/trim: Likewise.
9995 * modules/unistd: Likewise.
9996 * modules/wchar: Likewise.
9997 * modules/wctype: Likewise.
9999 2009-09-17 Bruno Haible <bruno@clisp.org>
10001 Make getdate.y compile on QNX and NetBSD 5 / i386.
10002 * m4/getdate.m4 (gl_GETDATE): Conditionally define
10003 TIME_T_FITS_IN_LONG_INT.
10004 * lib/getdate.y (long_time_t): New type.
10005 (relative_time): Change type of 'seconds' field to long_time_t.
10006 (get_date): Update types of local variables. Check against overflow
10007 during conversion from long_time_t to time_t.
10008 Reported by Matt Kraai <kraai@ftbfs.org>
10009 and Hasso Tepper <hasso@netbsd.org>.
10011 2009-09-17 Bruno Haible <bruno@clisp.org>
10013 * modules/COPYING: Update copyright years.
10014 * modules/README: Likeiwse.
10015 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10016 Reported by Ian Beckwith <ianb@erislabs.net>.
10018 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
10020 * users.txt: Update references for gnuit package.
10022 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
10024 * m4/getdelim.m4: Fix typo in copyright line.
10026 2009-09-17 Bruno Haible <bruno@clisp.org>
10028 * lib/atoll.c: Use the standard header with GPL copyright.
10029 * lib/argz.in.h: Likewise.
10030 * lib/glob.c: Likewise.
10031 * lib/glob-libc.h: Likewise.
10032 * lib/random_r.c: Likewise.
10033 * lib/siglist.h: Likewise.
10034 * lib/strsignal.c: Likewise.
10035 Reported by Ian Beckwith <ianb@erislabs.net>.
10037 2009-09-17 Eric Blake <ebb9@byu.net>
10039 rmdir: ensure correct dependency order
10040 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10042 2009-09-17 Bruno Haible <bruno@clisp.org>
10044 Disable assertion that fails on NetBSD 5 / i386.
10045 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10046 Reported by Sam Steingold <sds@gnu.org>
10047 and Hasso Tepper <hasso@netbsd.org>.
10049 2009-09-16 Eric Blake <ebb9@byu.net>
10051 unlinkdir: port to mingw
10052 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10053 on which no one can unlink a directory.
10055 stdlib: sort witness names
10056 * modules/stdlib (Makefile.am): Sort replacements.
10057 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10058 * lib/stdlib.in.h: Likewise.
10060 parse-duration-tests: avoid link failure
10061 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10063 Reported by Tom G. Christensen.
10065 openat-tests: ensure unlinkat behaves like rmdir
10066 * tests/test-rmdir.c (main): Factor guts...
10067 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10068 * modules/rmdir-tests (Files): Ship new file.
10069 * modules/openat-tests: New test.
10070 * tests/test-unlinkat.c: Likewise.
10072 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10073 * modules/rmdir-errno (Status, Notice): Now obsolete.
10075 rmdir: work around cygwin 1.5.x and mingw bugs
10076 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10077 * lib/rmdir.c (rmdir): Work around it.
10078 * modules/rmdir (Status, Notice): No longer obsolete.
10079 (Files): Add dos.m4.
10080 (Depends-on): Add unistd.
10081 (configure.ac): Set witnesses.
10082 (License): Relax to LGPLv2+.
10083 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10084 * modules/unistd (Makefile.am): Substitute witnesses.
10085 * lib/unistd.in.h (rmdir): Declare replacement.
10086 * doc/posix-functions/rmdir.texi (rmdir): Document this.
10087 * modules/rmdir-tests: New tests.
10088 * tests/test-rmdir.c: Likewise.
10090 2009-09-15 Eric Blake <ebb9@byu.net>
10092 fchdir: improve use of replacement functions
10093 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10094 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10095 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10097 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10098 * modules/sys_stat (Makefile.am): Substitute correct witness.
10099 * modules/dirent (Makefile.am): Likewise.
10100 * modules/unistd (Makefile.am): Likewise.
10101 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10102 * lib/unistd.in.h (dup): Likewise.
10103 * lib/sys_stat.in.h (fstat): Likewise.
10105 maint: ignore gnulib-tool temp files
10106 * .gitignore: Ignore files created during gnulib-tool --test.
10108 2009-09-13 Jim Meyering <meyering@redhat.com>
10110 posixtm: don't reject a time that specify "60" as the number of seconds
10111 * lib/posixtm.c (posixtime): The code to reject invalid dates
10112 would also reject a time specified with the .60 suffix.
10113 But POSIX allows that, in order to accommodate leap seconds.
10114 So don't reject it.
10115 (main): Adjust tests accordingly.
10116 * modules/posixtm (Depends-on): Add stpcpy.
10118 2009-09-11 Jim Meyering <meyering@redhat.com>
10120 announce-gen: include [$release_type] in emitted Subject:
10121 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10122 e.g., [stable] in the emitted Subject: line.
10124 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10126 Remove obsolete macros from several modules.
10127 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10128 obsolete Autoconf macros with their modern counterparts.
10129 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10130 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10131 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10132 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10133 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10134 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10135 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10136 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10137 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10138 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10139 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10140 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10141 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10142 * m4/sockets.m4 (gl_SOCKETS): Likewise.
10143 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10144 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10145 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10146 * m4/time_r.m4 (gl_TIME_R): Likewise.
10147 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10148 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10149 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10151 Fix copyright header in build-aux scripts.
10152 * build-aux/git-version-gen: Fix copyright header to match GPLv3
10154 * build-aux/ncftpput-ftp: Likewise.
10155 * build-aux/update-copyright: Likewise.
10157 2009-09-09 Eric Blake <ebb9@byu.net>
10159 test-link: allow Linux choice of errno
10160 * tests/test-link.c (main): Relax test for alternate error.
10162 strndup: fix improper m4 caching
10163 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10164 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10165 (gl_PREREQ_STRNDUP): Delete.
10166 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10167 * modules/string (Makefile.am): Substitute it.
10168 * lib/string.in.h (strndup): Modernize prototype.
10170 getcwd: port to mingw
10171 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10172 different from the POSIX assumptions made throughout the getcwd
10173 module; fortunately, the mingw getcwd does not need replacement.
10174 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10175 * modules/getcwd-tests: New test.
10176 * tests/test-getcwd.c: Likewise.
10178 link: fix platform bugs
10179 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10180 * lib/link.c (link): Work around them. Fix related mingw bug.
10181 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10182 * modules/unistd (Makefile.am): Substitute it.
10183 * lib/unistd.in.h (link): Declare replacement.
10184 * doc/posix-functions/link.texi (link): Document this.
10185 * modules/link (Depends-on): Add strdup-posix, sys_stat.
10187 test-link: consolidate into single C program, test more cases
10188 * tests/test-link.sh: Delete.
10189 * tests/test-link.c: Test more error conditions. Exposes bugs on
10190 at least Cygwin and Solaris.
10191 * modules/link-tests (Files): Remove unused file.
10192 (Depends-on): Add errno, sys_stat.
10193 (Makefile.am): Simplify.
10195 2009-09-08 Bruno Haible <bruno@clisp.org>
10197 Work around towlower, towupper bug on mingw.
10198 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10199 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10200 * doc/posix-functions/towlower.texi: Mention the mingw bug.
10201 * doc/posix-functions/towupper.texi: Likewise.
10202 Reported by Eric Blake.
10204 2009-09-08 Jim Meyering <meyering@redhat.com>
10206 build: don't try to run autoheader if we don't use it
10207 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10208 is not used in configure.ac.
10210 2009-09-08 Eric Blake <ebb9@byu.net>
10212 euidaccess: fix compilation error
10213 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10215 rawmemchr: relax license
10216 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10218 Reported by Jim Meyering.
10220 mkfifoat: new module
10221 * modules/mkfifoat: New file.
10222 * lib/mkfifoat.c: Likewise.
10223 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10224 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10225 * modules/sys_stat (Makefile.am): Use them.
10226 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10227 * MODULES.html.sh (File system functions): Mention module.
10228 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10229 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10230 * modules/mkfifoat-tests: New test.
10231 * tests/test-mkfifoat.c: Likewise.
10233 strchrnul: relax license
10234 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10236 Reported by Jim Meyering.
10238 2009-09-08 Eric Blake <ebb9@byu.net>
10240 fstatat: fix compilation on Solaris
10241 * lib/fstatat.c (includes): Add fcntl.h.
10242 Reported by Pádraig Brady.
10244 2009-09-07 Eric Blake <ebb9@byu.net>
10246 rename: modernize replacement
10247 * modules/rename (Depends-on): Add stdio.
10248 (configure.ac): Declare witness.
10249 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10250 stdio take care of replacement.
10251 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10252 * modules/stdio (Makefile.am): Substitute them.
10253 * lib/stdio.in.h (rename): Declare replacement.
10254 * lib/rename.c (includes): Allow cross-compilation to non-windows
10256 * doc/posix-functions/rename.texi (rename): Improve
10259 stdio: sort witness names
10260 * modules/stdio (Makefile.am): Sort replacements.
10261 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10262 * lib/stdio.in.h: Likewise.
10264 getcwd: minor cleanups
10265 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10266 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10268 openat: provide more convenience names
10269 * modules/faccessat (configure.ac): Add C witness.
10270 * lib/unistd.in.h (readlinkat): Fix typo.
10271 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10272 convenience wrappers.
10273 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10274 wrappers in syntax checks.
10276 2009-09-06 Eric Blake <ebb9@byu.net>
10278 doc: fix comments in recent patches
10279 * lib/faccessat.c: Mention correct function.
10280 * lib/fchmodat.c: Likewise.
10281 * lib/fchownat.c: Likewise.
10282 * lib/symlinkat.c: Likewise.
10283 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10286 faccessat, symlinkat: continue cleanup of previous patch
10287 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10288 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10289 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10290 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10291 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10292 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10295 2009-09-06 Bruno Haible <bruno@clisp.org>
10297 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10298 (fstatat): Declare if GNULIB_FSTATAT is set.
10299 (mkdirat): Declare if GNULIB_MKDIRAT is set.
10300 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10301 (unlinkat): Declare if GNULIB_UNLINKAT is set.
10302 * modules/fcntl-h (Files): Remove m4/openat.m4.
10303 * modules/sys_stat (Files): Remove m4/openat.m4.
10304 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10305 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10306 * modules/unistd (Files): Remove m4/openat.m4.
10307 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10309 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10310 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10311 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10312 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10313 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10314 gl_OPENAT_DEFAULTS.
10315 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10316 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10317 Don't require gl_OPENAT_DEFAULTS.
10318 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10319 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10320 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10321 (gl_OPENAT_DEFAULTS): Remove macro.
10323 2009-09-06 Bruno Haible <bruno@clisp.org>
10325 * modules/openat (configure.ac): Remove unneeded witness.
10327 2009-09-06 Bruno Haible <bruno@clisp.org>
10329 Set errno to ENOSYS when a function is entirely unsupported.
10330 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10332 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10333 * modules/chown (Depends-on): Remove errno.
10335 2009-09-06 Bruno Haible <bruno@clisp.org>
10337 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10339 2009-09-06 Bruno Haible <bruno@clisp.org>
10341 * lib/sys_stat.in.h: Fix preprocessor command indentation.
10343 2009-09-06 Ben Pfaff <blp@gnu.org>
10344 Bruno Haible <bruno@clisp.org>
10346 Work around a glibc bug in strtok_r.
10347 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10348 Undefine if UNDEFINE_STRTOK_R is set.
10349 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10350 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10351 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10352 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10353 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10355 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10357 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
10360 * lib/exclude.c: Include wctype.h
10362 2009-09-06 Akim Demaille <demaille@gostai.com>
10364 bootstrap: improve error message
10365 * build-aux/bootstrap (find_tool): Upon failure, report the list
10367 Honor the initial value of the envvar.
10369 2009-09-05 Eric Blake <ebb9@byu.net>
10371 symlinkat: new module
10372 * modules/symlinkat: New file.
10373 * lib/symlinkat.c: Likewise.
10374 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10375 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10376 * modules/unistd (Makefile.am): Use them.
10377 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10378 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10379 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10380 * MODULES.html.sh (File system functions): Mention module.
10381 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10382 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10383 * modules/symlinkat-tests: New test.
10384 * tests/test-symlinkat.c: Likewise.
10386 test-openat-safer: add more checks
10387 * tests/test-openat-safer.c (main): Check more code paths.
10389 2009-09-05 Jim Meyering <meyering@redhat.com>
10391 syntax-check: detect unnecessary inclusion of openat.h
10392 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10394 2009-09-05 Bruno Haible <bruno@clisp.org>
10396 Support towlower, towupper.
10397 * doc/posix-functions/towlower.texi: Mention module wctype.
10398 * doc/posix-functions/towupper.texi: Likewise.
10399 * lib/wctype.in.h (towlower, towupper): New functions.
10400 * tests/test-wctype.c: Include stdio.h, stdlib.h.
10401 (ASSERT): New macro.
10403 (main): Test also towlower, towupper. Test WEOF argument.
10404 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10406 2009-09-05 Bruno Haible <bruno@clisp.org>
10408 Fix conversion behaviour when the input is invalid.
10409 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10410 mark occurring in first pass of indirect conversion.
10411 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10413 Found by clang's static analyzer.
10415 2009-09-05 Bruno Haible <bruno@clisp.org>
10417 * tests/test-striconveh.c (main): Test indirect conversion on platforms
10418 where direct conversion is possible.
10420 2009-09-04 Eric Blake <ebb9@byu.net>
10422 openat: fail with ENOENT on empty name
10423 * lib/openat-proc.c (openat_proc_name): Special-case the empty
10426 link-follow: fix logic bug in prior patch
10427 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10428 reversed sense of yes and no in prior patch. Avoid confusing
10429 compilation failure with desired semantics.
10431 link-follow: accomodate mingw and cross-compilation
10432 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10433 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
10434 cross-compilation results to -1, to make linkat easier to
10435 implement when cross-compiling. Trivially support mingw.
10436 * modules/link-follow (configure.ac): Call new name.
10437 * NEWS: Mention this.
10439 2009-09-03 Eric Blake <ebb9@byu.net>
10441 faccessat: compile replacement
10442 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10445 fts: fix compilation error
10446 * lib/fts.c (includes): Re-add "openat.h", for
10447 openat_needs_fchdir.
10449 faccessat: new module
10450 * modules/faccessat: New file.
10451 * lib/faccessat.c: Likewise.
10452 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10453 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10454 * modules/unistd (Makefile.am): Use it.
10455 * lib/unistd.in.h (faccessat): Declare it.
10456 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10457 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10458 * MODULES.html.sh (File system functions): Mention it.
10459 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10460 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10462 euidaccess: prefer POSIX over non-standard implementation
10463 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10464 * lib/euidaccess.c (euidaccess): Use it if available.
10466 openat: make template easier to use
10467 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10468 AT_FUNC_F2 to be undefined.
10469 (VALIDATE_FLAG): New macro; use it to reject bad flags.
10470 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10471 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10472 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10473 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10475 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10476 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10477 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10480 openat: declare in POSIX headers
10481 * NEWS: Mention this.
10482 * modules/openat (configure.ac): Declare witnesses.
10483 (Depends-on): Add fcntl-h, sys_stat, unistd.
10484 (Include): Mention correct headers.
10485 * modules/fcntl-h (Depends-on): Add link-warning.
10486 (Files): Add openat.m4.
10487 (Makefile.am): Substitute witnesses.
10488 * modules/sys_stat (Files, Makefile.am): Likewise.
10489 * modules/unistd (Files, Makefile.am): Likewise.
10490 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10491 (gl_OPENAT_DEFAULTS): New macro.
10492 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10493 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10494 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10495 (SYS_STAT_H): Remove unused variable.
10496 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10497 * lib/fcntl--.h (includes): Remove unneeded header.
10498 * lib/openat-safer.c (includes): Likewise.
10499 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10500 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10501 appropriate headers.
10502 (__OPENAT_PREFIX): Delete.
10503 * lib/fcntl.in.h (openat): Provide declaration.
10504 (AT_FDCWD): Fix Solaris bug.
10505 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10506 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10507 * lib/fchmodat.c (includes): Adjust to find declaration.
10508 * lib/fchownat.c (includes): Likewise.
10509 * lib/mkdirat.c (includes): Likewise.
10510 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
10513 2009-09-02 Eric Blake <ebb9@byu.net>
10515 errno: use consistently
10516 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10517 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10518 * lib/canonicalize.c (ELOOP): Likewise.
10519 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10520 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10521 * lib/lchown.c (EOPNOTSUPP): Likewise.
10522 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10523 * lib/savewd.c (ESTALE): Likewise.
10524 * lib/settime.c (ENOSYS): Likewise.
10525 * lib/utimens.c (ENOSYS): Likewise.
10526 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10527 * lib/chdir-safer.c (ELOOP): Likewise.
10528 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10529 * modules/c-stack (Depends-on): Add errno.
10530 * modules/canonicalize (Depends-on): Likewise.
10531 * modules/chdir-safer (Depends-on): Likewise.
10532 * modules/fdopendir (Depends-on): Likewise.
10533 * modules/inet_ntop (Depends-on): Likewise.
10534 * modules/inet_pton (Depends-on): Likewise.
10535 * modules/lchown (Depends-on): Likewise.
10536 * modules/openat (Depends-on): Likewise.
10537 * modules/savewd (Depends-on): Likewise.
10538 * modules/settime (Depends-on): Likewise.
10539 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10541 fts: avoid leaking fds
10542 * modules/fts (Depends-on): Add cloexec.
10543 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10546 fts: make directory fds more robust
10547 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10548 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10550 backupfile, chdir-long, fts, savedir: make safer
10551 * lib/backupfile.c (includes): Use "dirent--.h", since
10552 numbered_backup can write to stderr during readdir.
10553 * lib/savedir.c (includes): Likewise.
10554 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10555 emulation can write to stderr on failure.
10556 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10557 * lib/getcwd.c: Document why opendir_safer is unused.
10558 * lib/glob.c: Likewise.
10559 * lib/scandir.c: Likewise.
10560 * lib/openat-proc.c: Likewise, for open_safer.
10561 * modules/backupfile (Depends-on): Add dirent-safer.
10562 * modules/savedir (Depends-on): Likewise.
10563 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10564 * modules/chdir-long (Depends-on): Add openat-safer.
10566 openat-safer: new module
10567 * modules/openat-safer: New file.
10568 * lib/openat-safer.c: Likewise.
10569 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10570 * lib/fcntl-safer.h (openat_safer): Declare.
10571 * lib/fcntl--.h (openat): Override.
10572 * MODULES.html.sh (File descriptor based I/O): Mention it.
10573 * lib/openat.h: Add double-inclusion guards.
10574 * lib/openat.c (includes): Only include "fcntl-safer.h", not
10575 "fcntl--.h", so we can implement openat.
10576 * modules/openat-safer-tests: New test.
10577 * tests/test-openat-safer.c: New file.
10579 dirent-safer: new module
10580 * modules/dirent-safer: New file.
10581 * lib/dirent--.h: Likewise.
10582 * lib/dirent-safer.h: Likewise.
10583 * lib/opendir-safer.c: Likewise.
10584 * m4/dirent-safer.m4: Likewise.
10585 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10586 * modules/dirent-safer-tests: New test.
10587 * tests/test-dirent-safer.c: New file.
10588 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10590 fdopendir: optimize on mingw
10591 * lib/unistd.in.h (_gl_directory_name): New prototype.
10592 * lib/fchdir.c (_gl_directory_name): Implement it.
10593 (fchdir): Use it to simplify implementation.
10594 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10595 fchdir, when available, to avoid calling [f]chdir().
10597 fdopendir: split into its own module
10598 * lib/openat.c (fdopendir): Move...
10599 * lib/fdopendir.c: ...into new file.
10600 * modules/fdopendir: New module.
10601 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10602 * modules/openat (Depends-on): Add fdopendir.
10603 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10605 * modules/savedir (Depends-on): Only need fdopendir, not full
10607 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10608 * lib/openat.h (fdopendir): Drop prototype.
10609 * lib/dirent.in.h (fdopendir): Provide prototype.
10610 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10611 * modules/dirent (Makefile.am): Substitute them.
10612 * MODULES.html.sh (File system functions): Mention it.
10613 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10614 * modules/fdopendir-tests: New file.
10615 * tests/test-fdopendir.c: Likewise.
10617 fchdir: use more consistent macro convention
10618 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10619 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10620 REPLACE_FCHDIR, rather than relying on config.h macros.
10621 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10622 inside a single make-time REPLACE_FCHDIR block, rather than using
10623 the config.h FCHDIR_REPLACEMENT.
10624 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10625 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
10626 Manage fstat replacement.
10627 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10629 * modules/sys_stat (Files): Add m4/unistd_h.m4.
10630 (Makefile.am): Substitute REPLACE_FCHDIR.
10631 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10632 FCHDIR_REPLACEMENT.
10633 * lib/dup-safer.c (dup_safer): Likewise.
10634 * lib/dup2.c (rpl_dup2): Likewise.
10635 * lib/dup3.c (rpl_dup3): Likewise.
10636 * lib/open.c (rpl_open): Likewise.
10638 fchdir: simplify error handling, and support dup3
10639 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
10640 stdbool, malloc-posix, realloc-posix.
10641 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10642 (ensure_dirs_slot): Return false on allocation failure.
10643 (rpl_dup2): Delete.
10644 (_gl_register_dup): New function.
10645 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10646 (_gl_register_fd): Close fd on allocation failure.
10647 * lib/fcntl.in.h (_gl_register_fd): Update signature.
10648 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10650 (rpl_dup2_fchdir): Delete prototype.
10651 * lib/open.c (open): Update caller.
10652 * lib/dup2.c (dup2): Track fchdir metadata.
10653 * lib/dup3.c (dup3): Likewise.
10654 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10655 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10657 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10659 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10660 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10661 don't pass arguments to AC_OUTPUT.
10663 2009-09-02 Bruno Haible <bruno@clisp.org>
10665 * modules/mkdtemp (License): Relicense under LGPLv2+.
10666 Reported by Paolo Bonzini.
10668 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10670 Replace uses of obsolete autoconf macros in Jim's modules.
10671 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10672 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10673 can evoke a warning from autoconf when run with -Wobsolete
10674 enabled. They were declared obsolete for good reasons (see
10675 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10676 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10677 should not continue using the deprecated macros.
10678 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10679 obsolete Autoconf macros with modern counterparts.
10680 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10681 * m4/dos.m4 (gl_AC_DOS): Likewise.
10682 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10683 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10684 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10685 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10686 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10687 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10688 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10689 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10690 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10692 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10693 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10694 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10695 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10696 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10697 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10699 2009-09-01 Eric Blake <ebb9@byu.net>
10701 fchdir: fix off-by-one bug in previous patch
10702 * lib/fchdir.c (rpl_fstat): Use correct bounds.
10703 (_gl_unregister_fd): Delete useless if.
10705 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
10707 maint.mk: sort the list of syntax-check rules
10708 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10709 easier to get a sense of progress when the rules are run sequentially
10710 and take a long time.
10712 2009-09-01 Simon Josefsson <simon@josefsson.org>
10714 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10715 * modules/netinet_in: Likewise.
10716 * modules/sys_file: Likewise.
10717 * modules/sys_ioctl: Likewise.
10718 * modules/sys_select: Likewise.
10719 * modules/sys_socket: Likewise.
10720 * modules/sys_stat: Likewise.
10721 * modules/sys_time: Likewise.
10722 * modules/sys_times: Likewise.
10723 * modules/sys_utsname: Likewise.
10724 * modules/sys_wait: Likewise.
10726 2009-09-01 Jim Meyering <meyering@redhat.com>
10728 fts: help ensure that return values are not ignored
10729 * lib/fts_.h (__GNUC_PREREQ): Define.
10730 (__attribute_warn_unused_result__): Define.
10731 (fts_children, fts_close, fts_open, fts_read): Declare with
10732 __attribute_warn_unused_result__.
10734 fts: fts_close now fails also when closing a dir file descriptor fails
10735 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10736 and propagate to caller, along with errno.
10738 announce-gen: correct formatting in --help output
10739 * build-aux/announce-gen (usage): Move the one-line description in
10740 --help output "up", to where it belongs, just after Usage:.
10742 2009-08-31 Eric Blake <ebb9@byu.net>
10744 fchdir: port to mingw
10745 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10746 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10747 opened, then use a substitute.
10748 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10750 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10751 (_gl_register_fd): No need to check stat if open already filters
10753 (fchdir): Fix error condition to match POSIX.
10754 * modules/fchdir (Depends-on): Add sys_stat.
10755 * doc/posix-functions/open.texi (open): Document the limitation.
10756 * modules/fchdir-tests: New file.
10757 * tests/test-fchdir.c: Likewise.
10759 canonicalize: allow cross-testing from cygwin to mingw
10760 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10761 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10762 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10764 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10765 target does not support symlinks.
10766 * tests/test-canonicalize-lgpl.sh: Likewise.
10768 chown: avoid compilation warning on mingw
10769 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10770 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10772 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10773 * modules/chown (Depends-on): Add errno.
10775 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
10777 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10780 2009-08-31 Jim Meyering <meyering@redhat.com>
10782 canonicalize: remove useless initialization
10783 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10784 initialization of local, "end".
10786 2009-08-30 Bruno Haible <bruno@clisp.org>
10788 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10789 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10792 2009-08-30 Bruno Haible <bruno@clisp.org>
10794 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10795 /usr/xpg4/bin/tr when it exists.
10796 * tests/test-pipe-filter-gi1.sh: Likewise.
10798 2009-08-30 Bruno Haible <bruno@clisp.org>
10800 Work around deficient /usr/bin/id program on Solaris.
10801 * tests/test-file-has-acl.sh (ID): New variable.
10802 * tests/test-set-mode-acl.sh (ID): Likewise.
10803 * tests/test-copy-acl.sh (ID): Likewise.
10804 * tests/test-copy-file.sh (ID): Likewise.
10806 2009-08-30 Bruno Haible <bruno@clisp.org>
10808 New module 'xstriconveh'.
10809 * lib/xstriconveh.h: New file.
10810 * lib/xstriconveh.c: New file.
10811 * modules/xstriconveh: New file.
10813 2009-08-30 Bruno Haible <bruno@clisp.org>
10815 Make it easier to use mem_cd_iconveh.
10816 * lib/striconveh.h (iconveh_t): New type.
10817 (iconveh_open, iconveh_close): New declarations.
10818 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10819 with a single 'const iconveh_t *' argument.
10820 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10821 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10822 with a single 'const iconveh_t *' argument.
10823 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10824 * tests/test-striconveh.c (main): Update.
10825 * NEWS: Mention the change.
10827 2009-08-30 Bruno Haible <bruno@clisp.org>
10829 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10832 2009-08-30 Bruno Haible <bruno@clisp.org>
10834 Work around iconv_open problem on Solaris.
10835 * lib/iconv_open-solaris.gperf: New file.
10836 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10837 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10838 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10839 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10840 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10841 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10843 2009-08-29 Jim Meyering <meyering@redhat.com>
10845 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10846 * top/maint.mk (cvs-check): Remove target; it was just an alias
10847 to the better-named vc-diff-check.
10848 (maintainer-distcheck): Remove rule. It was used only from
10849 the (alpha/beta/major) target, and all of its commands but one
10850 were coreutils-specific.
10851 (vc-dist): Remove rule.
10852 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10853 Run vc-diff-check, not vc-dist.
10854 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
10856 2009-08-27 Bruno Haible <bruno@clisp.org>
10858 * tests/test-bitrotate.c (main): Remove test that uses a shift count
10861 2009-08-27 Bruno Haible <bruno@clisp.org>
10863 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10865 * doc/func.texi: Document the SunPRO C bug.
10867 2009-08-27 Bruno Haible <bruno@clisp.org>
10869 Fix link error on Solaris.
10870 * tests/test-parse-duration.c (xstrdup): Remove function.
10872 2009-08-26 Pádraig Brady <P@draigbrady.com>
10874 ignore-value: handle pointer types, too
10875 * lib/ignore-value.h (__attribute__): Remove definition.
10876 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10877 of a more concise and more-often effective "(void) i" statement.
10878 (ignore_ptr): New function to suppress warnings from functions that
10879 return pointers, and to make it explicit that one function doesn't
10882 2009-08-25 Bruno Haible <bruno@clisp.org>
10884 dup2: work around a Linux bug.
10885 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10886 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10887 * doc/posix-functions/dup2.texi: Mention the Linux bug.
10888 Reported by Simon Josefsson.
10890 2009-08-25 Jim Meyering <meyering@redhat.com>
10892 libguestfs uses gnulib
10893 * users.txt: Add libguestfs.
10895 2009-08-24 Eric Blake <ebb9@byu.net>
10897 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10898 * lib/pipe2.c (includes): Add binary-io.h.
10899 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10901 2009-08-24 Bruno Haible <bruno@clisp.org>
10903 Tolerate declared but missing accept4 syscall.
10904 * lib/accept4.c (accept4): Invoke original accept4 function first, if
10906 * lib/sys_socket.in.h (accept4): If the function is already present,
10908 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10909 * modules/accept4 (Makefile.am): Compile accept4.c always.
10910 Reported by Paolo Bonzini and Eric Blake.
10912 2009-08-23 Bruno Haible <bruno@clisp.org>
10914 New module 'accept4'.
10915 * lib/sys_socket.in.h (accept4): New declaration.
10916 * lib/accept4.c: New file.
10917 * m4/accept4.m4: New file.
10918 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10919 GNULIB_ACCEPT4, HAVE_ACCEPT4.
10920 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10922 * modules/accept4: New file.
10923 * doc/glibc-functions/accept4.texi: Mention the new module.
10925 2009-08-24 Jim Meyering <meyering@redhat.com>
10927 progname: also set global program_invocation_name, when possible
10928 Before this change, a libtool-enabled program that calls glibc's
10929 error function would report the program name as
10930 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10931 * modules/progname (configure.ac): Check for a declaration of
10932 program_invocation_name.
10933 * lib/progname.c: Include <errno.h>.
10934 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10935 Set program_invocation_name.
10937 2009-08-23 Bruno Haible <bruno@clisp.org>
10939 * lib/dup3.c: Include <string.h>.
10941 2009-08-23 Bruno Haible <bruno@clisp.org>
10943 * lib/dup3.c (dup3): Test only once whether the system actually exists.
10944 * lib/pipe2.c (pipe2): Likewise.
10945 Suggested by Eric Blake.
10947 2009-08-23 Bruno Haible <bruno@clisp.org>
10949 Tolerate declared but missing dup3 syscall.
10950 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10951 * lib/unistd.in.h (dup3): If the function is already present,
10953 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10954 * modules/dup3 (Makefile.am): Compile dup3.c always.
10955 Reported by Paolo Bonzini.
10957 2009-08-23 Bruno Haible <bruno@clisp.org>
10959 Tolerate declared but missing pipe2 syscall.
10960 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10962 * lib/unistd.in.h (pipe2): If the function is already present,
10964 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10965 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10966 Reported by Paolo Bonzini.
10968 2009-08-23 Bruno Haible <bruno@clisp.org>
10970 * lib/pipe2.c (pipe2): Move #ifs inside function.
10972 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10974 quotearg: document limitations of quote_these_too
10975 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10976 those limitations are created.
10977 * lib/quotearg.h (set_char_quoting): Document that digits and
10978 letters that are special after backslash are not permitted.
10979 (quotearg_char): Cross-reference set_char_quoting documentation.
10981 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
10983 quotearg: implement custom_quoting_style
10984 * lib/quotearg.c: (struct quoting_options): Add left_quote and
10985 right_quote fields.
10986 (set_custom_quoting): New public function.
10987 (quotearg_buffer_restyled): Add left_quote and right_quote
10988 arguments, handle them very much like locale quoting, and update
10990 (quotearg_n_custom): New public function.
10991 (quotearg_n_custom_mem): New public function.
10992 (quotearg_custom): New public function.
10993 (quotearg_custom_mem): New public function.
10994 * lib/quotearg.h: Prototype and document new public functions.
10995 (enum quoting_style): For escape_quoting_style and
10996 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10997 ignored even though they're otherwise like c_quoting_style.
10998 Add custom_quoting_style member and document with comparison to
10999 clocale_quoting_style.
11000 * tests/test-quotearg.c (custom_quotes): New array.
11001 (custom_results): New array.
11002 (main): Extend to test custom quoting.
11004 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
11006 quotearg: fix right quote escaping when it's in quote_these_too
11007 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11008 quote, be sure to prepend only one backslash.
11009 * tests/test-quotearg.c (use_quote_double_quotes): New function.
11012 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
11014 quotearg-tests: test escaping of embedded locale quotes
11015 * tests/test-quotearg.c (struct result_strings): Add member for
11017 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11018 (inputs): Add new input.
11019 (results_g): Add expected results.
11020 (flag_results): Likewise.
11021 (locale_results): Likewise.
11022 (compare_strings): Check those.
11024 2009-08-23 Bruno Haible <bruno@clisp.org>
11026 Tests for module 'dup3'.
11027 * modules/dup3-tests: New file.
11028 * tests/test-dup3.c: New file.
11031 * lib/unistd.in.h (dup3): New declaration.
11032 * lib/dup3.c: New file.
11033 * m4/dup3.m4: New file.
11034 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11036 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11037 * modules/dup3: New file.
11038 * doc/glibc-functions/dup3.texi: Mention the new module.
11040 2009-08-23 Bruno Haible <bruno@clisp.org>
11042 Tweak the dup2 test.
11043 * tests/test-dup2.c (main): Create the test file empty. Verify that an
11044 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11045 the test file is still empty. Fix argument order of lseek.
11047 2009-08-23 Bruno Haible <bruno@clisp.org>
11049 Avoid test link errors when the modules getopt-gnu, gettext are used.
11050 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11051 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11053 2009-08-23 Bruno Haible <bruno@clisp.org>
11055 Fix getdtablesize() on mingw.
11056 * lib/getdtablesize.c (getdtablesize): Implement differently.
11057 * lib/unistd.in.h (getdtablesize): Improve comment.
11059 2009-08-23 Bruno Haible <bruno@clisp.org>
11061 New module 'mkostemp'.
11062 Based on Ulrich Drepper's 2007-08-10 change in glibc.
11063 * lib/stdlib.in.h (mksotemp): New declaration.
11064 * lib/mkostemp.c: New file, from glibc with modifications.
11065 * lib/tempname.h (GT_FILE): Remove outdated comment.
11066 (gen_tempname): Add flags argument.
11067 * lib/tempname.c (__GT_BIGFILE): Remove macro.
11068 (__GT_FILE): Map to 1.
11069 (small_open, large_open): Remove macros.
11070 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11071 * lib/mkstemp.c (mkstemp): Update.
11072 * lib/mkdtemp.c (mkdtemp): Likewise.
11073 * m4/mkostemp.m4: New file.
11074 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11076 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11078 * modules/mkostemp: New file, based on modules/mkstemp.
11079 * doc/glibc-functions/mkostemp.texi: Mention the new module.
11080 * NEWS: Mention the change.
11082 2009-08-23 Bruno Haible <bruno@clisp.org>
11084 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11085 Reported by Eric Blake.
11087 2009-08-23 Bruno Haible <bruno@clisp.org>
11089 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11090 Reported by Eric Blake.
11092 2009-08-23 Bruno Haible <bruno@clisp.org>
11094 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11095 * modules/pipe2 (Depends-on): Likewise.
11097 2009-08-23 Eric Blake <ebb9@byu.net>
11099 fcntl-h: add O_TTY_INIT support
11100 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11101 * tests/test-fcntl-h.c (o): Test it.
11102 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11104 fcntl-h: rename from fcntl, in preparation for fcntl(2)
11105 * modules/fcntl: Move <fcntl.h> header replacement...
11106 * modules/fcntl-h: ...to new name, so as not to collide with
11107 like-named function.
11108 * tests/test-fcntl.c: Rename...
11109 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
11110 * modules/fcntl-tests: Rename...
11111 * modules/fcntl-h-tests: ...to this. Update test file name.
11112 * modules/chdir-long (Depends-on): Update clients.
11113 * modules/chdir-safer (Depends-on): Likewise.
11114 * modules/fcntl-safer (Depends-on): Likewise.
11115 * modules/fts (Depends-on): Likewise.
11116 * modules/mkancesdirs (Depends-on): Likewise.
11117 * modules/mkdir-p (Depends-on): Likewise.
11118 * modules/open (Depends-on): Likewise.
11119 * modules/savewd (Depends-on): Likewise.
11120 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11121 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11123 2009-08-22 Bruno Haible <bruno@clisp.org>
11125 * modules/binary-io (License): Relicense under LGPL.
11126 * modules/pipe2 (License): Likewise.
11128 2009-08-22 Bruno Haible <bruno@clisp.org>
11130 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11132 * lib/pipe-filter-gi.c (filter_init): Likewise.
11133 Reported by Eric Blake.
11135 2009-08-22 Bruno Haible <bruno@clisp.org>
11137 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11138 * modules/pipe (Depends-on): Add pipe2.
11140 2009-08-22 Bruno Haible <bruno@clisp.org>
11142 Tests for module 'pipe2'.
11143 * modules/pipe2-tests: New file.
11144 * tests/test-pipe2.c: New file.
11146 New module 'pipe2'.
11147 * lib/unistd.in.h (pipe2): New declaration.
11148 * lib/pipe2.c: New file.
11149 * m4/pipe2.m4: New file.
11150 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11152 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11153 * modules/pipe2: New file.
11154 * doc/glibc-functions/pipe2.texi: Mention the new module.
11156 2009-08-22 Bruno Haible <bruno@clisp.org>
11158 Reference some new glibc functions.
11159 * doc/glibc-functions/accept4.texi: New file.
11160 * doc/glibc-functions/dup3.texi: New file.
11161 * doc/glibc-functions/mkostemp.texi: New file.
11162 * doc/glibc-functions/pipe2.texi: New file.
11163 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11164 (Glibc sys/socket.h): Refer to accept4.
11165 (Glibc unistd.h): Refer to dup3, pipe2.
11166 Reported by Eric Blake.
11168 2009-08-22 Jim Meyering <meyering@redhat.com>
11169 Bruno Haible <bruno@clisp.org>
11171 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11172 This makes it so packages using automake-1.11's silent-rules option
11173 can print e.g., a single "GEN configmake.h" line, rather than
11174 the 30+ statements that perform the job. If you want to see the
11175 actual commands, you can still run "make V=1".
11176 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11177 so that make output is abbreviated when those variables are defined
11179 * modules/argz: Likewise.
11180 * modules/arpa_inet: Likewise.
11181 * modules/byteswap: Likewise.
11182 * modules/configmake: Likewise.
11183 * modules/dirent: Likewise.
11184 * modules/errno: Likewise.
11185 * modules/fcntl: Likewise.
11186 * modules/float: Likewise.
11187 * modules/fnmatch: Likewise.
11188 * modules/getopt-posix: Likewise.
11189 * modules/glob: Likewise.
11190 * modules/iconv_open: Likewise.
11191 * modules/inttypes: Likewise.
11192 * modules/localcharset: Likewise.
11193 * modules/locale: Likewise.
11194 * modules/math: Likewise.
11195 * modules/netdb: Likewise.
11196 * modules/netinet_in: Likewise.
11197 * modules/poll: Likewise.
11198 * modules/posix_spawnp-tests: Likewise.
11199 * modules/sched: Likewise.
11200 * modules/search: Likewise.
11201 * modules/selinux-h: Likewise.
11202 * modules/signal: Likewise.
11203 * modules/spawn: Likewise.
11204 * modules/stdarg: Likewise.
11205 * modules/stdbool: Likewise.
11206 * modules/stddef: Likewise.
11207 * modules/stdint: Likewise.
11208 * modules/stdio: Likewise.
11209 * modules/stdlib: Likewise.
11210 * modules/string: Likewise.
11211 * modules/strings: Likewise.
11212 * modules/sys_file: Likewise.
11213 * modules/sys_ioctl: Likewise.
11214 * modules/sys_select: Likewise.
11215 * modules/sys_socket: Likewise.
11216 * modules/sys_stat: Likewise.
11217 * modules/sys_time: Likewise.
11218 * modules/sys_times: Likewise.
11219 * modules/sys_utsname: Likewise.
11220 * modules/sys_wait: Likewise.
11221 * modules/sysexits: Likewise.
11222 * modules/time: Likewise.
11223 * modules/unistd: Likewise.
11224 * modules/wchar: Likewise.
11225 * modules/wctype: Likewise.
11227 2009-08-22 Jim Meyering <meyering@redhat.com>
11229 announce-gen: detect write failure
11230 * build-aux/announce-gen: Add Coda at end.
11231 Remove equivalent-but-more-verbose block at top.
11233 2009-08-19 Akim Demaille <demaille@gostai.com>
11235 bootstrap: --help to stdout.
11236 * bootstrap (usage): Don't send --help to stderr.
11237 Use a here doc instead of a long string.
11239 2009-08-21 Eric Blake <ebb9@byu.net>
11241 test-popen-safer: split from test-popen
11242 * tests/test-popen.c (main): Move...
11243 * tests/test-popen.h: ...into new file.
11244 * tests/test-popen-safer2.c: New file.
11245 * modules/popen-tests (Files): Add test-popen.h.
11246 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11247 Suggested by Bruno Haible.
11249 test-fcntl-safer: split from test-open
11250 * tests/test-open.c (main): Move...
11251 * tests/test-open.h: ...into new file.
11252 * tests/test-fcntl-safer.c: New file.
11253 * modules/open-tests (Files): Add test-open.h.
11254 * modules/fcntl-safer-tests: New file.
11255 Suggested by Bruno Haible.
11257 test-fopen-safer: split from test-fopen
11258 * tests/test-fopen.c (main): Move...
11259 * tests/test-fopen.h: ...into new file.
11260 * tests/test-fopen-safer.c: New file.
11261 * modules/fopen-tests (Files): Add test-fopen.h.
11262 * modules/fopen-safer-tests: New file.
11263 Suggested by Bruno Haible.
11265 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
11267 popen-safer: test O_CLOEXEC at run-time.
11268 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11270 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
11272 fcntl: move more flags to the header
11273 * lib/cloexec.c: Do not define FD_CLOEXEC here.
11274 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11275 * lib/fcntl.in.h: Do both things here.
11277 2009-08-21 Jim Meyering <meyering@redhat.com>
11279 consistently remove $@-t before redirecting to it
11280 * modules/argz: Remove $@-t and $@ before redirecting to the former.
11281 * modules/alloca-opt: Likewise.
11282 * modules/byteswap: Likewise.
11283 * modules/fnmatch: Likewise.
11284 * modules/getopt-posix: Likewise.
11285 * modules/glob: Likewise.
11286 * modules/poll: Likewise.
11287 * modules/posix_spawnp-tests: Likewise.
11288 * modules/sys_socket: Likewise.
11289 * modules/sysexits: Likewise.
11291 2009-08-21 Eric Blake <ebb9@byu.net>
11293 popen: simplify access to original popen
11294 * lib/popen.c (rpl_popen): No need to worry about popen being a
11296 Reported by Bruno Haible.
11298 2009-08-20 Eric Blake <ebb9@byu.net>
11300 build: avoid some compiler warnings
11301 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11302 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11304 (new_exclude_segment, excluded_file_pattern_p)
11305 (excluded_file_name_p): Reduce scope.
11306 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11307 old-style declaration.
11309 2009-08-20 Simon Josefsson <simon@josefsson.org>
11311 * tests/test-exclude1.sh: Handle Windows EOL.
11312 * tests/test-exclude2.sh: Likewise.
11313 * tests/test-exclude3.sh: Likewise.
11314 * tests/test-exclude4.sh: Likewise.
11315 * tests/test-exclude5.sh: Likewise.
11316 * tests/test-exclude6.sh: Likewise.
11317 * tests/test-exclude7.sh: Likewise.
11319 2009-08-19 Akim Demaille <demaille@gostai.com>
11321 bootstrap: find sha1sum when named gsha1sum.
11322 * bootstrap (find_tool): New.
11326 2009-08-20 Jim Meyering <meyering@redhat.com>
11328 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11329 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11330 expression that converts "." in a file name to "\." in the resulting
11331 regexp. Start with a dummy statement, so that prior shell variable
11332 definitions are expanded portably. Reported by Simon Josefsson.
11334 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
11336 Fix polling for writeability of a screen buffer.
11337 * lib/poll.c: Distinguish input and screen buffers for the
11338 Win32 implementation.
11339 * lib/select.c: Likewise.
11341 2009-08-19 Eric Blake <ebb9@byu.net>
11343 popen-safer: prevent popen from clobbering std descriptors
11344 * modules/popen-safer: New file.
11345 * lib/popen-safer.c: Likewise.
11346 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11347 * lib/stdio--.h (popen): Provide override.
11348 * lib/stdio-safer.h (popen_safer): Provide declaration.
11349 * tests/test-popen.c (includes): Partially test this.
11350 * modules/popen-safer-tests: New file, for more tests.
11351 * tests/test-popen-safer.c: Likewise.
11352 * MODULES.html.sh (file stream based Input/Output): Mention it.
11354 tests: test some of the *-safer modules
11355 * modules/fopen-safer (Depends-on): Add fopen.
11356 * modules/fcntl-safer (Depends-on): Add fcntl.
11357 * modules/stdlib-safer (Depends-on): Add stdlib.
11358 (configure.ac): Set indicator.
11359 * modules/unistd-safer (configure.ac): Likewise.
11360 * modules/tmpfile-safer (configure.ac): Likewise.
11361 (Depends-on): Add tmpfile.
11362 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11364 * tests/test-fopen.c (includes): Test safer versions when they are
11366 * tests/test-open.c (includes): Likewise.
11368 popen: fix cygwin 1.5 bug when stdin closed
11369 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11370 * modules/popen: New file.
11371 * modules/popen-tests: Likewise.
11372 * tests/test-popen.c: Likewise.
11373 * m4/popen.m4: Likewise.
11374 * lib/popen.c: Likewise.
11375 * lib/stdio.in.h (popen): New declaration.
11376 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11377 * modules/stdio (Makefile.am): Likewise.
11378 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11380 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
11382 maint.mk: give full control over update-copyright exclusions
11383 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11384 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11385 (update-copyright): Don't force inclusion of top-level
11386 ChangeLog. Don't force exclusion of all COPYING files, but make
11387 them the default exclusion instead.
11389 2009-08-16 Bruno Haible <bruno@clisp.org>
11391 Fix test failures on Solaris 10.
11392 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11393 tests when Solaris iconv() is used.
11394 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11395 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11396 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11397 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11398 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11400 2009-08-16 Bruno Haible <bruno@clisp.org>
11402 Fix test failures on Solaris 10.
11403 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11404 'tr' program and pass it as first argument.
11405 * tests/test-pipe-filter-gi1.sh: Likewise.
11406 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11407 program as first argument.
11408 * tests/test-pipe-filter-gi1.c (main): Likewise.
11410 2009-08-16 Eric Blake <ebb9@byu.net>
11412 fpurge: fix previous commits
11413 * modules/fpurge (Makefile.am): Make replacement conditional,
11414 partially reverting 2007-04-29 change; missed in previous
11416 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11419 2009-08-16 Bruno Haible <bruno@clisp.org>
11421 Clarify fpurge's effect on the file position.
11422 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11423 * tests/test-fpurge.c (main): Make a second pass for checking the file
11426 2009-08-16 Bruno Haible <bruno@clisp.org>
11428 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11429 declaration of fpurge is missing.
11430 * tests/test-fpurge.c (main): Check that the file has not more contents
11431 than expected. Close the file before removing it.
11433 2009-08-15 Eric Blake <ebb9@byu.net>
11435 fpurge: don't wrap working cygwin implementation
11436 * lib/fpurge.c (fpurge): Fix comment typo.
11437 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11438 1.7 to avoid replacement.
11439 * tests/test-fpurge.c (main): Enhance test.
11441 2009-08-15 Eric Blake <ebb9@byu.net>
11442 and Jim Meyering <meyering@redhat.com>
11444 test-update-copyright: skip if perl is insufficient
11445 * tests/test-update-copyright.sh: Failure to run maintainer tool
11446 should not cause testsuite failure on cygwin 1.5.
11448 2009-08-14 Eric Blake <ebb9@byu.net>
11450 doc: mention more functions added in cygwin 1.7.0
11451 * doc/posix-headers/limits.texi (limits.h): Update for recent
11453 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11454 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11455 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11456 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11457 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11459 2009-08-14 Eric Blake <ebb9@byu.net>
11461 maint.mk: simplify update-copyright rule
11462 * top/maint.mk (update-copyright-local): Delete, and document how
11463 to do it in cfg.mk instead.
11464 (update-copyright-exclude-regexp): Delete, and document how to do
11465 it in .x-update-copyright instead.
11466 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
11469 2009-08-14 Bruno Haible <bruno@clisp.org>
11471 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11473 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11475 maint.mk: support update-copyright-env
11476 * top/maint.mk (update-copyright-env): Define place-holder.
11477 (update-copyright): Expand $(update-copyright-env) before
11478 invoking update-copyright.
11480 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11482 update-copyright: implement forced reformatting
11483 * build-aux/update-copyright: Implement and document
11484 UPDATE_COPYRIGHT_FORCE.
11485 * tests/test-update-copyright.sh: Test it.
11487 2009-08-14 Eric Blake <ebb9@byu.net>
11488 and Bruno Haible <bruno@clisp.org>
11490 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11491 * tests/test-locale.c: Revert previous patch related to NULL.
11492 * tests/test-stdio.c: Likewise.
11493 * tests/test-stdlib.c: Likewise.
11494 * tests/test-string.c: Likewise.
11495 * tests/test-unistd.c: Likewise.
11496 * modules/time-tests (Depends-on): Add verify.
11497 * modules/wchar-tests (Depends-on): Likewise.
11498 * tests/test-time.c: Test for NULL compliance.
11499 * tests/test-wchar.c: Likewise.
11500 * modules/locale (Depends-on): Add stddef.
11501 * modules/stdio (Depends-on): Likewise.
11502 * modules/stdlib (Depends-on): Likewise.
11503 * modules/string (Depends-on): Likewise.
11504 * modules/time (Depends-on): Likewise.
11505 * modules/unistd (Depends-on): Likewise.
11506 * modules/wchar (Depends-on): Likewise.
11507 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11508 * lib/stdlib.in.h (includes): Likewise.
11509 * lib/string.in.h (includes): Likewise.
11510 * lib/time.in.h (includes): Likewise.
11511 * lib/unistd.in.h (includes): Likewise.
11512 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11514 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11515 * m4/stddef_h.m4: New file.
11516 * modules/stddef: Likewise.
11517 * lib/stddef.in.h: Likewise.
11518 * modules/stddef-tests: Likewise.
11519 * tests/test-stddef.c: Likewise.
11520 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11521 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11522 * doc/posix-headers/locale.texi (locale.h): Likewise.
11523 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11524 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11525 * doc/posix-headers/string.texi (string.h): Likewise.
11526 * doc/posix-headers/time.texi (time.h): Likewise.
11527 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11528 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11530 2009-08-14 Eric Blake <ebb9@byu.net>
11532 doc: improve git diff of texinfo files
11533 * .gitattributes: Add rule for *.texi files, with hint on how to
11535 Copied from m4, and based on a report by Bruno Haible.
11537 2009-08-14 Bruno Haible <bruno@clisp.org>
11539 Disable multithread support by default on Cygwin 1.5.x for real.
11540 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11542 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11544 update-copyright: much ado about intervals
11545 * build-aux/update-copyright: Implement and document
11546 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11547 of copyright year intervals.
11548 Also, document UPDATE_COPYRIGHT_YEAR.
11549 * tests/test-update-copyright.sh: Test it.
11551 update-copyright: convert 2-digit to 4-digit years
11552 * build-aux/update-copyright: Implement and document.
11553 * tests/test-update-copyright.sh: Update.
11555 2009-08-14 Jim Meyering <meyering@redhat.com>
11557 test-exclude: avoid coreutils "make check" failure
11558 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11559 just as in test-argmatch.c.
11561 2009-08-13 Eric Blake <ebb9@byu.net>
11563 test-dup2: fix bad assumption
11564 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11565 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11567 test-version-etc: fix CRLF portability issue
11568 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11570 * tests/test-argp-version-etc-1.sh: Likewise.
11572 getopt: update client modules
11573 * modules/argp (Depends-on): Use getopt-gnu.
11574 * modules/git-merge-changelog (Depends-on): Likewise.
11575 * modules/long-options (Depends-on): Likewise.
11576 * modules/xstrtol (Depends-on): Likewise.
11578 2009-08-13 Simon Josefsson <simon@josefsson.org>
11580 * tests/test-version-etc.sh: Don't fail on different
11581 project/version. Don't fail on CRLF differences. Rewrite to use
11582 multiple -e instead of multiple sed forks, suggested by Eric Blake
11584 * tests/test-argp-version-etc-1.sh: Likewise.
11586 2009-08-13 Simon Josefsson <simon@josefsson.org>
11588 * tests/test-version-etc.sh: Don't fail on different
11591 2009-08-12 Bruno Haible <bruno@clisp.org>
11593 Tests for modules 'getopt-posix', 'getopt-gnu'.
11594 * modules/getopt-posix-tests: New file.
11595 * tests/test-getopt.c: New file.
11596 * tests/test-getopt.h: New file.
11597 * tests/test-getopt_long.h: New file.
11599 New modules 'getopt-posix', 'getopt-gnu'.
11600 * modules/getopt-gnu: New file, renamed from modules/getopt.
11601 * modules/getopt-posix: New file.
11602 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11603 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11604 (gl_GETOPT): Remove macro.
11605 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11606 Disable the test against BSD systems that declare optreset. Test
11607 against mingw bug. Test against lack of support of optional arguments
11609 * doc/glibc-headers/getopt.texi: Update module name and list of
11610 relevant platforms.
11611 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11612 'getopt-gnu' and more portability problems.
11613 * NEWS: Mention the changes.
11615 2009-08-12 Bruno Haible <bruno@clisp.org>
11617 Ensure that optarg etc. get declared by <unistd.h>.
11618 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11619 AC_USE_SYSTEM_EXTENSIONS.
11620 * modules/getopt (Depends-on): Add 'extensions'.
11622 2009-08-12 Bruno Haible <bruno@clisp.org>
11624 Avoid test link errors.
11625 * modules/pipe-filter-ii-tests (Makefile.am): Define
11626 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11627 * modules/pipe-filter-gi-tests (Makefile.am): Define
11628 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11629 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11631 2009-08-12 Bruno Haible <bruno@clisp.org>
11633 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11634 gl_GETOPT_SUBSTITUTE before.
11635 (gl_GETOPT): Use it.
11636 * m4/argp.m4 (gl_ARGP): Update.
11637 Reported by Sergey Poznyakoff.
11639 * m4/getopt.m4: Reorder macros.
11640 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11641 (gl_GETOPT_SUBSTITUTE): Remove macro.
11643 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11645 Minor improvement in gitlog-to-changelog
11647 * build-aux/gitlog-to-changelog: New option `--format' makes
11648 output format string configurable.
11650 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11652 Optimize exclude: use hash tables for non-wildcard patterns.
11654 * lib/exclude.c: Include hash.h and mbuiter.h
11655 (struct exclude_pattern, exclude_segment): New data types.
11656 (struct exclude): Rewrite.
11657 (fnmatch_pattern_has_wildcards): New function.
11658 (new_exclude_segment, free_exclude_segment): New functions.
11659 (excluded_file_pattern_p, excluded_file_name_p): New functions.
11660 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11661 * lib/exclude.h (is_fnmatch_pattern): New prototype.
11662 * modules/exclude: Depend on hash and mbuiter.
11664 * modules/exclude-tests: New file.
11665 * tests/test-exclude.c: New file.
11666 * tests/test-exclude1.sh: New file.
11667 * tests/test-exclude2.sh: New file.
11668 * tests/test-exclude3.sh: New file.
11669 * tests/test-exclude4.sh: New file.
11670 * tests/test-exclude5.sh: New file.
11671 * tests/test-exclude6.sh: New file.
11672 * tests/test-exclude7.sh: New file.
11674 2009-08-12 Bruno Haible <bruno@clisp.org>
11676 Ensure that getopt() gets declared by <unistd.h>.
11677 * lib/unistd.in.h: Conditionally include getopt.h.
11678 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11679 Set GNULIB_UNISTD_H_GETOPT.
11680 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11681 GNULIB_UNISTD_H_GETOPT.
11682 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11684 2009-08-12 Bruno Haible <bruno@clisp.org>
11687 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11688 gl_replace_getopt instead of GETOPT_H.
11690 2009-08-12 Bruno Haible <bruno@clisp.org>
11692 * m4/getopt.m4: Add comments.
11694 2009-08-12 Bruno Haible <bruno@clisp.org>
11696 Disable multithread support by default on Cygwin 1.5.x.
11697 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11698 set gl_use_threads=no if not specified otherwise.
11700 2009-08-11 Bruno Haible <bruno@clisp.org>
11702 Avoid compilation error on NetBSD 5.0.
11703 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11704 * tests/test-stdio.c: Likewise.
11705 * tests/test-stdlib.c: Likewise.
11706 * tests/test-string.c: Likewise.
11707 * tests/test-unistd.c: Likewise.
11708 Reported by Greg Troxel <gdt@ir.bbn.com>
11709 at <https://savannah.gnu.org/support/?106973>.
11711 2009-08-11 Bruno Haible <bruno@clisp.org>
11713 * modules/dup2-tests (Depends-on): Remove close.
11715 Undo 2009-07-19 commit.
11716 * modules/acl-tests (Depends-on): Remove close.
11717 * modules/binary-io-tests (Depends-on): Likewise.
11718 * modules/closein-tests (Depends-on): Likewise.
11719 * modules/flock-tests (Depends-on): Likewise.
11720 * modules/fsync-tests (Depends-on): Likewise.
11721 * modules/lseek-tests (Depends-on): Likewise.
11722 * modules/pipe-tests (Depends-on): Likewise.
11723 * modules/posix_spawn-tests (Depends-on): Likewise.
11724 * modules/posix_spawnp-tests (Depends-on): Likewise.
11725 * modules/stat-time-tests (Depends-on): Likewise.
11726 * modules/yesno-tests (Depends-on): Likewise.
11728 2009-08-10 Bruno Haible <bruno@clisp.org>
11730 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11732 2009-08-10 Bruno Haible <bruno@clisp.org>
11735 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11737 2009-08-10 Bruno Haible <bruno@clisp.org>
11739 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11740 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11741 not only the first time.
11742 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11743 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11744 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11745 is 1, not only the the first time.
11747 2009-08-10 Bruno Haible <bruno@clisp.org>
11749 Make it possible to use module 'gethostname' without module 'close'.
11750 * lib/unistd.in.h (close): Evoke a link error only if
11751 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11752 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11753 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11754 * modules/unistd (Makefile.am): Substitute
11755 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11756 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11757 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11758 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11759 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11760 * modules/sys_ioctl (Makefile.am): Substitute
11761 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11762 * modules/socket (configure.ac): On native Windows, set
11763 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11764 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11765 Reported by Sam Steingold <sds@gnu.org>.
11767 2009-08-10 Bruno Haible <bruno@clisp.org>
11769 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11770 * modules/ioctl (configure.ac): Likewise.
11772 2009-08-10 Bruno Haible <bruno@clisp.org>
11774 Avoid collision between gnulib wrapper and libintl wrapper.
11775 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11776 already defined in intl/printf.c.
11777 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11778 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11780 2009-08-09 Bruno Haible <bruno@clisp.org>
11782 Make <sys/select.h> really self-contained, also on Solaris 10.
11783 * lib/sys_select.in.h: Include <string.h>.
11784 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11785 Solaris 10 problem.
11786 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11787 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11788 Reported by Jim Meyering.
11790 2009-08-09 Bruno Haible <bruno@clisp.org>
11792 Avoid warnings from 'aclocal' that are due to a use of macro name
11793 AM_XGETTEXT_OPTION that is not defined in automake.
11794 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11796 * modules/error (configure.ac): Likewise.
11797 * modules/propername (configure.ac): Likewise.
11798 * modules/vasprintf (configure.ac): Likewise.
11799 * modules/verror (configure.ac): Likewise.
11800 * modules/xprintf (configure.ac): Likewise.
11801 * modules/xvasprintf (configure.ac): Likewise.
11803 2009-08-08 Bruno Haible <bruno@clisp.org>
11805 Avoid compilation error in C++ mode.
11806 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11807 Reported by Sam Steingold <sds@gnu.org>.
11809 2009-08-08 Bruno Haible <bruno@clisp.org>
11811 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11812 for the various Unix platforms.
11813 * doc/posix-headers/limits.texi: Update platforms list regarding
11815 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11817 2009-08-07 Jim Meyering <meyering@redhat.com>
11819 selinux-at: fix typo in a comment
11820 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11821 Spotted by Paolo Bonzini.
11823 selinux-at: remove redundant m4 code, add documentation
11824 * modules/selinux-at (configure.ac): Remove redundant code.
11825 LIB_SELINUX is already set via the dependent module, selinux-h.
11826 (Include): Add quotes around selinux-at.h.
11827 * lib/selinux-at.h: Add documentation.
11828 Reported by Bruno Haible in
11829 http://marc.info/?l=gnulib-bug&m=124958988300749
11831 2009-08-07 Bruno Haible <bruno@clisp.org>
11833 Avoid link error on MacOS X 10.3 and 10.4.
11834 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11835 on non-ELF systems.
11836 * lib/argp-pv.c (argp_program_version): Likewise.
11837 Reported by Simon Josefsson.
11839 2009-08-07 Simon Josefsson <simon@josefsson.org>
11841 * tests/test-version-etc.sh: Use $EXEEXT.
11843 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
11845 update-copyright: update documentation to point to maint.mk
11846 * build-aux/update-copyright: Here.
11848 2009-08-06 Jim Meyering <meyering@redhat.com>
11850 maint.mk: support update-copyright-local
11851 * top/maint.mk (update-copyright-local): Define place-holder.
11852 (update-copyright): Depend on $(update-copyright-local).
11854 2009-08-06 Jim Meyering <meyering@redhat.com>
11856 selinux-at: new module
11857 Initially written for coreutils, this module will soon be
11858 used by findutils, too.
11859 * MODULES.html.sh [Misc]: Add selinux-at.
11860 * lib/selinux-at.h: New file, from coreutils.
11861 * lib/selinux-at.c: Likewise.
11862 * modules/selinux-at: Likewise.
11863 (License): Change from LGPL to GPL, since it depends
11864 on the GPL'd openat module.
11867 * README: Remove references to cogito.
11868 Remove cvs-repo-updating instructions from 2007.
11869 Don't imply that CVS is better if you have limited disk space.
11871 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11873 update-copyright: support C-style comments
11874 * build-aux/update-copyright: Implement and document.
11875 * tests/test-update-copyright.sh: Test.
11877 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11879 update-copyright: support omitted "(C)"
11880 * build-aux/update-copyright: Implement and document. Also,
11881 allow variable whitespace before "(C)".
11882 * tests/test-update-copyright.sh: Test.
11884 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11886 update-copyright: don't trip on non-FSF copyright statements
11887 * build-aux/update-copyright: Fix so that the first correctly
11888 formatted FSF copyright statement is recognized no matter what
11889 appears before it. Update documentation.
11890 * tests/test-update-copyright.sh: Test that.
11892 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11894 update-copyright: clean up code a little
11895 * build-aux/update-copyright: Append "_re" to the name of any
11896 variable holding a regular expression.
11897 Replace "old" and "new" with "stmt" in variable names.
11898 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11900 Format code more consistently.
11902 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11904 update-copyright-tests: improve portability
11905 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11906 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
11908 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11910 update-copyright: support @copyright{} and ©
11911 * build-aux/update-copyright: Implement and document.
11912 * tests/test-update-copyright.sh: Test.
11914 2009-08-04 Jim Meyering <meyering@redhat.com>
11916 update-copyright-tests: correctly test EOL=\r\n handling
11917 * tests/test-update-copyright.sh: Put \r at the end of some lines
11918 for the dos-eol tests. Based on a patch by Joel E. Denny.
11920 maint.mk: make update-copyright exclusion list more configurable
11921 * top/maint.mk (update-copyright): Default to excluding COPYING,
11922 but allow an override, in case someone does want to update that file.
11924 maint.mk: don't update copyright date in COPYING
11925 * top/maint.mk (update-copyright): Exclude COPYING.
11927 maint.mk: add a copyright-updating rule
11928 * top/maint.mk (update-copyright): New rule.
11929 Derived from coreutils/Makefile.am.
11931 update-copyright: rename some variables
11932 * build-aux/update-copyright: Rename a few variables for clarity.
11933 Tweak syntax. List Joel E. Denny as coauthor.
11935 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11937 update-copyright: fix bug for 2-digit last year and add tests
11938 * build-aux/update-copyright: Fix bug.
11939 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11941 * modules/update-copyright-tests: New
11942 * tests/test-update-copyright.sh: New.
11944 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11946 update-copyright: handle leading tabs in line prefix
11947 * build-aux/update-copyright: Count leading tabs as 8 spaces
11948 when computing margin. This helps with the formatting of
11949 ChangeLogs, for example.
11950 Fix documentation a little.
11952 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11954 update-copyright: support EOL=\r\n
11955 * build-aux/update-copyright: Implement that.
11957 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11959 update-copyright: automatically format copyright statements
11960 * build-aux/update-copyright: Implement that.
11961 Also, be a little more predictable and safer by always failing
11962 when the full copyright format is not perfectly recognized as an
11963 unbroken whole. Discussed at
11964 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11965 Rewrite documentation.
11967 2009-08-03 Bruno Haible <bruno@clisp.org>
11969 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11971 2009-08-02 Bruno Haible <bruno@clisp.org>
11973 Tests for module 'uname'.
11974 * modules/uname-tests: New file.
11975 * tests/test-uname.c: New file.
11977 New module 'uname'.
11978 * lib/uname.c: New file.
11979 * m4/uname.m4: New file.
11980 * modules/uname: New file.
11981 * doc/posix-functions/uname.texi: Mention the new module.
11983 2009-08-02 Bruno Haible <bruno@clisp.org>
11985 Tests for module 'sys_utsname'.
11986 * modules/sys_utsname-tests: New file.
11987 * tests/test-sys_utsname.c: New file.
11989 New module 'sys_utsname'.
11990 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11991 * m4/sys_utsname_h.m4: New file.
11992 * modules/sys_utsname: New file.
11993 * doc/posix-headers/sys_utsname.texi: Mention the new module.
11995 2009-08-02 Bruno Haible <bruno@clisp.org>
11997 Implicitly initialize the sockets library.
11998 * lib/gethostname.c: Include sockets.h.
11999 (rpl_gethostname): Invoke gl_sockets_startup.
12000 * lib/socket.c: Include sockets.h.
12001 (rpl_socket): Invoke gl_sockets_startup.
12002 * modules/gethostname (Depends-on): Add sockets.
12003 * modules/socket (Depends-on): Likewise.
12004 * tests/test-poll.c: Don't include sockets.h.
12005 (main): Don't invoke gl_sockets_startup.
12006 * tests/test-select.c: Don't include sockets.h.
12007 (main): Don't invoke gl_sockets_startup.
12009 2009-08-02 Bruno Haible <bruno@clisp.org>
12011 Allow multiple calls to gl_sockets_startup.
12012 * lib/sockets.c (initialized_sockets_version): New variable.
12013 (gl_sockets_startup): Do nothing if already called for this or a higher
12015 (gl_sockets_cleanup): Reset initialized_sockets_version.
12017 2009-08-03 Simon Josefsson <simon@josefsson.org>
12019 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
12020 different project/version.
12022 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
12023 Bruno Haible <bruno@clisp.org>
12025 Tests for module 'pipe-filter-gi'.
12026 * modules/pipe-filter-gi-tests: New file.
12027 * tests/test-pipe-filter-gi1.sh: New file.
12028 * tests/test-pipe-filter-gi1.c: New file.
12029 * tests/test-pipe-filter-gi2.sh: New file.
12030 * tests/test-pipe-filter-gi2-main.c: New file.
12031 * tests/test-pipe-filter-gi2-child.c: New file.
12033 New module 'pipe-filter-gi'.
12034 * lib/pipe-filter-gi.c: New file.
12035 * modules/pipe-filter-gi: New file.
12037 2009-08-02 Bruno Haible <bruno@clisp.org>
12038 Paolo Bonzini <bonzini@gnu.org>
12040 Tests for module 'pipe-filter-ii'.
12041 * modules/pipe-filter-ii-tests: New file.
12042 * tests/test-pipe-filter-ii1.sh: New file.
12043 * tests/test-pipe-filter-ii1.c: New file.
12044 * tests/test-pipe-filter-ii2.sh: New file.
12045 * tests/test-pipe-filter-ii2-main.c: New file.
12046 * tests/test-pipe-filter-ii2-child.c: New file.
12048 New module 'pipe-filter-ii'.
12049 * lib/pipe-filter.h: New file.
12050 * lib/pipe-filter-ii.c: New file.
12051 * lib/pipe-filter-aux.h: New file.
12052 * modules/pipe-filter-ii: New file.
12054 2009-08-02 Simon Josefsson <simon@josefsson.org>
12056 * lib/gc-libgcrypt.c: Change copyright to FSF.
12057 * lib/gc-gnulib.c: Likewise.
12059 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
12061 * lib/gethostname.c: Include limits.h.
12063 2009-08-02 Simon Josefsson <simon@josefsson.org>
12064 Bruno Haible <bruno@clisp.org>
12066 Ensure HOST_NAME_MAX as part of the gethostname module.
12067 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12068 define also HOST_NAME_MAX.
12069 * tests/test-gethostname.c: Include <limits.h>.
12070 (main): Check also HOST_NAME_MAX.
12071 * doc/posix-headers/limits.texi: Document the mingw problem.
12073 2009-08-02 Bruno Haible <bruno@clisp.org>
12075 * lib/gethostname.c (gethostname): Fix handling of large len argument.
12078 2009-03-31 Simon Josefsson <simon@josefsson.org>
12080 * lib/gethostname.c: Add Windows wrapper.
12081 * m4/gethostname.m4: Look for gethostname in -lws2_32.
12082 * modules/gethostname: Depend on sys_socket & errno, for also
12083 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
12084 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12086 2009-07-31 Jim Meyering <meyering@redhat.com>
12088 getloadavg: fix symbol name in comment
12089 * lib/getloadavg.c: Correct a typo I introduced when adding
12090 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12091 Matt Kraai spotted the problem.
12093 2009-07-29 Matt Kraai <mkraai@beckman.com>
12095 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12096 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12097 code also if ! defined N_NAME_POINTER.
12098 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12099 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12100 but the n_name member is a 12-byte array.
12102 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
12104 update-copyright: generalize comment handling
12105 * build-aux/update-copyright: Handle copyright statements
12106 within more comment styles.
12108 Report any file with an external copyright holder or parse failure.
12110 2009-07-29 Jim Meyering <meyering@redhat.com>
12112 mktime: correct setting of REPLACE_MKTIME
12113 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12115 update-copyright: new module
12116 * modules/update-copyright: New file.
12117 * build-aux/update-copyright: New file.
12118 * MODULES.html.sh (maint+release support): Add update-copyright.
12120 2009-07-27 Bruno Haible <bruno@clisp.org>
12122 Fix compilation error when <ctime> is used and mktime is replaced.
12123 * lib/time.in.h (mktime): New declaration.
12124 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12125 REPLACE_MKTIME instead of defining mktime in config.h.
12126 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12127 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12128 Reported by Ross McFarland <rwmcfa1@neces.com>.
12130 2009-07-27 Bruno Haible <bruno@clisp.org>
12132 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12133 Reported by Matt Kraai <mkraai@beckman.com>.
12135 2009-07-25 Jim Meyering <meyering@redhat.com>
12137 maint.mk: avoid warnings about missing files
12138 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12139 diagnostic when .prev-version does not exist.
12140 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12141 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12142 nonexistent cfg.mk.
12143 Suggestions from Simon Josefsson.
12145 2009-07-25 Bruno Haible <bruno@clisp.org>
12147 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12148 defined as macros. Needed on QNX 6.4.1.
12149 Reported by Matt Kraai <mkraai@beckman.com>.
12151 2009-07-23 Jim Meyering <meyering@redhat.com>
12153 maint.mk: invoke "make dist" with a working value of XZ_OPT
12154 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12156 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
12158 Make fseeko.c compile on QNX.
12159 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12161 2009-07-22 Peter Simons <simons@cryp.to>
12163 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12164 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12165 * lib/md4.h: Likewise.
12166 * lib/md5.h: Likewise.
12167 * lib/sha1.h: Likewise.
12168 * lib/sha256.h: Likewise.
12169 * lib/sha512.h: Likewise.
12171 tests-sha1: don't assign literal string to 'char *' variable
12172 * tests/test-sha1.c (main): Declare locals with "const" to match
12173 attributes of the right hand side.
12175 2009-07-21 Eric Blake <ebb9@byu.net>
12177 dup2: fix more mingw problems
12178 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12180 * doc/posix-functions/dup2.texi (dup2): Document the bug.
12181 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12182 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12183 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12184 care of mingw bugs.
12186 2009-07-21 Jim Meyering <meyering@redhat.com>
12188 vc-list-files: avoid failure when /bin/sh is dash
12189 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12190 On some Debian based systems, /bin/sh is a symlink to dash, and running
12191 this command would omit the "/" following each 'tests' prefix:
12192 dash -x build-aux/vc-list-files -C . tests
12193 That is because bash and dash work differently:
12194 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12198 2009-07-21 Eric Blake <ebb9@byu.net>
12200 dup2-tests: test previous patch
12201 * modules/dup2-tests: New file.
12202 * tests/test-dup2.c: Likewise.
12203 * tests/test-open.c (main): Avoid unspecified behavior.
12204 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12207 dup2: work around mingw and cygwin 1.5 bug
12208 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12209 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12210 * modules/unistd (Makefile.am): Substitute it.
12211 * lib/unistd.in.h (dup2): Declare the replacement.
12212 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12213 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12214 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12215 * modules/execute (Depends-on): Add dup2.
12216 * modules/fseterr (Depends-on): Likewise.
12217 * modules/pipe (Depends-on): Likewise.
12218 * modules/posix_spawn-internal (Depends-on): Likewise.
12220 2009-07-21 Bruno Haible <bruno@clisp.org>
12222 * modules/.gitattributes: New file.
12224 2009-07-20 Bruno Haible <bruno@clisp.org>
12226 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12229 2009-07-20 Eric Blake <ebb9@byu.net>
12231 test-pipe: make a bit more robust.
12232 * tests/test-pipe.c (myerr): Allow error messages regardless of
12233 what we do to stderr.
12234 (test_pipe): Rearrange to avoid deadlock.
12235 (child_main): Try a larger read, to ensure we avoided deadlock.
12236 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12237 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12240 2009-07-19 Jim Meyering <meyering@redhat.com>
12242 fts: avoid false-positive cycle-detection
12243 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12244 for each new command line argument.
12246 2009-07-19 Bruno Haible <bruno@clisp.org>
12248 Fix build error on mingw with the modules sys_select and unistd.
12249 * modules/acl-tests (Depends-on): Add close.
12250 * modules/binary-io-tests (Depends-on): Likewise.
12251 * modules/closein-tests (Depends-on): Likewise.
12252 * modules/flock-tests (Depends-on): Likewise.
12253 * modules/fsync-tests (Depends-on): Likewise.
12254 * modules/lseek-tests (Depends-on): Likewise.
12255 * modules/pipe-tests (Depends-on): Likewise.
12256 * modules/posix_spawn-tests (Depends-on): Likewise.
12257 * modules/posix_spawnp-tests (Depends-on): Likewise.
12258 * modules/stat-time-tests (Depends-on): Likewise.
12259 * modules/yesno-tests (Depends-on): Likewise.
12261 2009-07-19 Bruno Haible <bruno@clisp.org>
12263 Unify conditionals.
12264 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12265 macros, not at the compiler macros.
12266 * lib/pipe.c: Likewise.
12267 * lib/execute.c: Likewise.
12268 * lib/spawni.c: Likewise.
12270 2009-07-19 Bruno Haible <bruno@clisp.org>
12272 Fix handling of closed stdin/stdout/stderr on mingw.
12273 * lib/w32spawn.h: Include unistd.h.
12274 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12275 file descriptor with O_NOINHERIT flag.
12276 (fd_safer_noinherit): New function, based on fd-safer.c.
12277 (dup_safer_noinherit): New function, based on dup-safer.c.
12278 (undup_safer_noinherit): New function.
12279 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12280 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12281 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12282 instead of fd_safer.
12283 * tests/test-pipe.c: Include <windows.h>.
12284 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12286 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12288 (test_pipe): Pass an extra argument for disambiguation.
12289 (main): Invoke parent_main or child_main.
12291 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12294 2009-07-18 Eric Blake <ebb9@byu.net>
12296 test-pipe: fix mingw build
12297 * tests/test-pipe.c (main): Avoid fcntl on mingw.
12299 2009-07-18 Bruno Haible <bruno@clisp.org>
12301 * modules/pipe-tests (Makefile.am): Fix typo.
12303 2009-07-18 Eric Blake <ebb9@byu.net>
12305 error: fix mingw build
12306 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12307 Reported by Bruno Haible.
12309 error: avoid undefined use of stdout
12310 * lib/error.c (error, error_at_line): Check that fd 1 is open
12311 before flushing stdout. Avoids a crash on cygwin when libsigsegv
12312 is handling faults and the close_stdout module wants to report the
12313 detection of closed stdout as an error.
12315 2009-07-17 Eric Blake <ebb9@byu.net>
12317 pipe: be robust in face of closed fds
12318 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12319 should cause child to misbehave.
12320 * modules/pipe-tests: New module.
12321 * tests/test-pipe.c: New file.
12322 * tests/test-pipe.sh: New file.
12323 Reported by Akim Demaille.
12325 2009-07-14 Bruno Haible <bruno@clisp.org>
12327 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12328 Reported by anonymous kc.
12330 2009-07-07 Jim Meyering <meyering@redhat.com>
12332 maint.mk: don't look for translatable strings in *.m4 or *.mk
12333 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12334 when searching for translatable strings.
12336 2009-07-05 Jim Meyering <meyering@redhat.com>
12338 remove superfluous parentheses in STREQ definition
12339 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12340 * lib/getugroups.c (STREQ): Likewise.
12341 * lib/fnmatch.c (STREQ): Likewise.
12342 Spotted by Bruno Haible.
12344 2009-07-04 Jim Meyering <meyering@redhat.com>
12346 argv-iter: new module
12347 * MODULES.html.sh: Add argv-iter.
12348 * lib/argv-iter.c, lib/argv-iter.h: New files.
12349 * modules/argv-iter: New file.
12350 * modules/argv-iter-tests: New file.
12351 * tests/test-argv-iter.c: Test it.
12353 2009-07-04 Bruno Haible <bruno@clisp.org>
12356 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12357 contains more exact copies of a given entry than file2, leave the extra
12358 copies unpaired rather than aborting.
12359 Reported by Eric Blake.
12361 2009-07-02 Bruno Haible <bruno@clisp.org>
12363 Speedup git-merge-changelog for git cherry-pick.
12364 * lib/git-merge-changelog.c (struct entries_mapping): New type.
12365 (entries_mapping_get): New function, extracted from compute_mapping.
12366 (entries_mapping_reverse_get): New function.
12367 (compute_mapping): Add a 'full' argument. Return the result in a
12368 'struct entries_mapping'.
12369 (main): Update. Access the mappings through entries_mapping_get.
12370 Reported by Eric Blake.
12372 2009-07-02 Bruno Haible <bruno@clisp.org>
12374 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12377 2009-07-02 Bruno Haible <bruno@clisp.org>
12379 Speed up approximate search for matching ChangeLog entries.
12380 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12381 argument. Call fstrcmp_bounded instead of fstrcmp.
12382 (compute_mapping, try_split_merged_entry, main): Update callers.
12384 2009-07-02 Bruno Haible <bruno@clisp.org>
12386 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12388 2009-06-30 Bruno Haible <bruno@clisp.org>
12390 Reduce the number of uc_is_cased calls.
12391 * lib/unicase.h (casing_suffix_context_t): Add
12392 'first_char_except_ignorable' field.
12393 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12394 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12395 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12396 Update initializer.
12397 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12398 case-ignorable characters.
12399 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12400 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12401 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12402 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12403 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12405 2009-06-30 Bruno Haible <bruno@clisp.org>
12407 Tests for module 'unicase/ignorable'.
12408 * modules/unicase/ignorable-tests: New file.
12409 * tests/unicase/test-ignorable.c: New file, generated by
12412 Tests for module 'unicase/cased'.
12413 * modules/unicase/cased-tests: New file.
12414 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12415 * tests/unicase/test-predicate-part1.h: New file, derived from
12416 tests/unictype/test-predicate-part1.h.
12417 * tests/unicase/test-predicate-part2.h: New file, same as
12418 tests/unictype/test-predicate-part2.h.
12420 Fix evaluation of "Before C" condition of FINAL_SIGMA.
12421 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12422 (output_casing_properties): New function.
12424 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12425 * lib/unicase/cased.c: Include unictype/bitmap.h.
12426 (uc_is_cased): Define through a bitmap lookup.
12427 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12428 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12429 (uc_is_case_ignorable): Define through a bitmap lookup.
12430 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12431 lib/unictype/bitmap.h.
12432 (Depends-on): Add inline. Clean up.
12433 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12434 lib/unictype/bitmap.h.
12435 (Depends-on): Add inline. Clean up.
12436 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12438 * tests/unicase/test-u16-tolower.c (main): Likewise.
12439 * tests/unicase/test-u32-tolower.c (main): Likewise.
12441 2009-06-30 Bruno Haible <bruno@clisp.org>
12443 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12444 * lib/unicase/u16-casemap.c: Likewise.
12445 * lib/unicase/u32-casemap.c: Likewise.
12447 2009-06-29 Bruno Haible <bruno@clisp.org>
12449 Define u32_casefold as a wrapper around u32_ct_casefold.
12450 * lib/unicase/u32-casefold.c: Update.
12451 * modules/unicase/u32-casefold (Depends-on): Add
12452 unicase/u32-ct-casefold, unicase/empty-prefix-context,
12453 unicase/empty-suffix-context. Clean up.
12455 Define u16_casefold as a wrapper around u16_ct_casefold.
12456 * lib/unicase/u16-casefold.c: Update.
12457 * modules/unicase/u16-casefold (Depends-on): Add
12458 unicase/u16-ct-casefold, unicase/empty-prefix-context,
12459 unicase/empty-suffix-context. Clean up.
12461 Define u8_casefold as a wrapper around u8_ct_casefold.
12462 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12463 * lib/unicase/u8-casefold.c: Update.
12464 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12465 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12467 Define u32_totitle as a wrapper around u32_ct_totitle.
12468 * lib/unicase/u32-totitle.c: Update.
12469 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12470 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12472 Define u16_totitle as a wrapper around u16_ct_totitle.
12473 * lib/unicase/u16-totitle.c: Update.
12474 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12475 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12477 Define u8_totitle as a wrapper around u8_ct_totitle.
12478 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12480 (FUNC): Delegate to U_CT_TOTITLE.
12481 * lib/unicase/u8-totitle.c: Update.
12482 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12483 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12485 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12487 * modules/unicase/u32-tolower (Depends-on): Add
12488 unicase/empty-prefix-context, unicase/empty-suffix-context.
12490 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12492 * modules/unicase/u16-tolower (Depends-on): Add
12493 unicase/empty-prefix-context, unicase/empty-suffix-context.
12495 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12496 * modules/unicase/u8-tolower (Depends-on): Add
12497 unicase/empty-prefix-context, unicase/empty-suffix-context.
12499 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12501 * modules/unicase/u32-toupper (Depends-on): Add
12502 unicase/empty-prefix-context, unicase/empty-suffix-context.
12504 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12506 * modules/unicase/u16-toupper (Depends-on): Add
12507 unicase/empty-prefix-context, unicase/empty-suffix-context.
12509 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12510 * modules/unicase/u8-toupper (Depends-on): Add
12511 unicase/empty-prefix-context, unicase/empty-suffix-context.
12513 New module 'unicase/u32-ct-casefold'.
12514 * lib/unicase/u32-ct-casefold.c: New file.
12515 * modules/unicase/u32-ct-casefold: New file.
12517 New module 'unicase/u16-ct-casefold'.
12518 * lib/unicase/u16-ct-casefold.c: New file.
12519 * modules/unicase/u16-ct-casefold: New file.
12521 New module 'unicase/u8-ct-casefold'.
12522 * lib/unicase/u8-ct-casefold.c: New file.
12523 * lib/unicase/u-ct-casefold.h: New file, derived from
12524 lib/unicase/u-casefold.h.
12525 * modules/unicase/u8-ct-casefold: New file.
12527 New module 'unicase/u32-ct-totitle'.
12528 * lib/unicase/u32-ct-totitle.c: New file.
12529 * modules/unicase/u32-ct-totitle: New file.
12531 New module 'unicase/u16-ct-totitle'.
12532 * lib/unicase/u16-ct-totitle.c: New file.
12533 * modules/unicase/u16-ct-totitle: New file.
12535 New module 'unicase/u8-ct-totitle'.
12536 * lib/unicase/u8-ct-totitle.c: New file.
12537 * lib/unicase/u-ct-totitle.h: New file, derived from
12538 lib/unicase/u-totitle.h.
12539 * modules/unicase/u8-ct-totitle: New file.
12541 New module 'unicase/u32-ct-tolower'.
12542 * lib/unicase/u32-ct-tolower.c: New file.
12543 * modules/unicase/u32-ct-tolower: New file.
12545 New module 'unicase/u16-ct-tolower'.
12546 * lib/unicase/u16-ct-tolower.c: New file.
12547 * modules/unicase/u16-ct-tolower: New file.
12549 New module 'unicase/u8-ct-tolower'.
12550 * lib/unicase/u8-ct-tolower.c: New file.
12551 * modules/unicase/u8-ct-tolower: New file.
12553 New module 'unicase/u32-ct-toupper'.
12554 * lib/unicase/u32-ct-toupper.c: New file.
12555 * modules/unicase/u32-ct-toupper: New file.
12557 New module 'unicase/u16-ct-toupper'.
12558 * lib/unicase/u16-ct-toupper.c: New file.
12559 * modules/unicase/u16-ct-toupper: New file.
12561 New module 'unicase/u8-ct-toupper'.
12562 * lib/unicase/u8-ct-toupper.c: New file.
12563 * modules/unicase/u8-ct-toupper: New file.
12565 Add context arguments to u*_casemap functions.
12566 * lib/unicase/unicasemap.h: Include unicase.h.
12567 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12568 suffix_context arguments.
12569 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12571 (FUNC): Add prefix_context and suffix_context arguments. Use
12572 uc_is_cased and uc_is_case_ignorable.
12573 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12574 * lib/unicase/u16-casemap.c: Likewise.
12575 * lib/unicase/u32-casemap.c: Likewise.
12576 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12577 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12578 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12579 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12580 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12581 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12583 New module 'unicase/u32-suffix-context'.
12584 * lib/unicase/u32-suffix-context.c: New file.
12585 * modules/unicase/u32-suffix-context: New file.
12587 New module 'unicase/u16-suffix-context'.
12588 * lib/unicase/u16-suffix-context.c: New file.
12589 * modules/unicase/u16-suffix-context: New file.
12591 New module 'unicase/u8-suffix-context'.
12592 * lib/unicase/u8-suffix-context.c: New file.
12593 * lib/unicase/u-suffix-context.h: New file.
12594 * modules/unicase/u8-suffix-context: New file.
12596 New module 'unicase/empty-suffix-context'.
12597 * lib/unicase/empty-suffix-context.c: New file.
12598 * modules/unicase/empty-suffix-context: New file.
12600 New module 'unicase/u32-prefix-context'.
12601 * lib/unicase/u32-prefix-context.c: New file.
12602 * modules/unicase/u32-prefix-context: New file.
12604 New module 'unicase/u16-prefix-context'.
12605 * lib/unicase/u16-prefix-context.c: New file.
12606 * modules/unicase/u16-prefix-context: New file.
12608 New module 'unicase/u8-prefix-context'.
12609 * lib/unicase/u8-prefix-context.c: New file.
12610 * lib/unicase/u-prefix-context.h: New file.
12611 * lib/unicase/context.h: New file.
12612 * modules/unicase/u8-prefix-context: New file.
12614 New module 'unicase/empty-prefix-context'.
12615 * lib/unicase/empty-prefix-context.c: New file.
12616 * modules/unicase/empty-prefix-context: New file.
12618 New module 'unicase/ignorable'.
12619 * lib/unicase/ignorable.c: New file.
12620 * modules/unicase/ignorable: New file.
12622 New module 'unicase/cased'.
12623 * lib/unicase/caseprop.h: New file.
12624 * lib/unicase/cased.c: New file.
12625 * modules/unicase/cased: New file.
12627 New functions for case mapping of substrings.
12628 * lib/unicase.h (casing_prefix_context_t): New type.
12629 (unicase_empty_prefix_context): New variable.
12630 (u8_casing_prefix_context, u16_casing_prefix_context,
12631 u32_casing_prefix_context, u8_casing_prefixes_context,
12632 u16_casing_prefixes_context, u32_casing_prefixes_context): New
12634 (casing_suffix_context_t): New type.
12635 (unicase_empty_suffix_context): New variable.
12636 (u8_casing_suffix_context, u16_casing_suffix_context,
12637 u32_casing_suffix_context, u8_casing_suffixes_context,
12638 u16_casing_suffixes_context, u32_casing_suffixes_context,
12639 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12640 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12641 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12644 2009-06-28 Jim Meyering <meyering@redhat.com>
12646 boostrap: indent only with spaces
12647 * build-aux/bootstrap: Indent only with spaces, never TABs.
12649 bootstrap: split long lines
12650 * build-aux/bootstrap: Keep line length < 80.
12652 bootstrap: sync from coreutils
12653 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12654 just as autoreconf does. Verify a list of prerequisite
12655 package-name,version-number pairs if defined in bootstrap.conf.
12656 Refer to README-prereq, if prerequisites are not satisfied.
12658 2009-06-27 Eric Blake <ebb9@byu.net>
12660 tests: add test for bogus NULL definition
12661 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12662 * tests/test-stdlib.c: Likewise.
12663 * tests/test-string.c: Likewise.
12664 * tests/test-locale.c: Likewise.
12665 * tests/test-unistd.c: Likewise.
12666 * modules/stdio-tests (Depends-on): Add verify.
12667 * modules/stdlib-tests (Depends-on): Likewise.
12668 * modules/string-tests (Depends-on): Likewise.
12669 * modules/locale-tests (Depends-on): Likewise.
12670 * modules/unistd-tests (Depends-on): Likewise.
12672 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12674 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12675 self-explaining comment.
12676 * m4/selinux-selinux-h: Update serial.
12677 (gl_LIBSELINUX): New macro, adding a warning for missing development
12678 packages to code extracted from...
12679 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
12680 Add warning for missing development packages here, too.
12682 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
12684 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12686 2009-06-25 Eric Blake <ebb9@byu.net>
12688 version-etc: fix regression
12689 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12691 (version_etc): Use it, to catch bugs with trailing NULL.
12692 * lib/version-etc.c (version_etc_arn): Delete unused argument.
12693 (version_etc_va): Fix logic bug.
12694 * modules/version-etc-tests: Add test.
12695 * tests/test-version-etc.c: New file.
12696 * tests/test-version-etc.sh: Likewise.
12698 2009-06-25 Sam Steingold <sds@gnu.org>
12700 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12701 mbtowc declaration.
12703 2009-06-25 Eric Blake <ebb9@byu.net>
12705 fpurge: migrate into <stdio.h>
12706 * lib/fpurge.h: Delete...
12707 * lib/stdio.in.h (fpurge): ...and declare here, instead.
12708 * lib/fpurge.c (fpurge): Change declaring header.
12709 * modules/fpurge (Files): Drop deleted file.
12710 (Depends-on): Add stdio.
12711 (configure.ac): Set witness.
12712 * modules/stdio (Makefile.am): Support fpurge macros.
12713 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12714 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12715 * lib/fflush.c: Update client.
12716 * tests/test-fpurge.c: Likewise.
12717 * NEWS: Mention the change.
12719 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12721 * lib/argp-version-etc.c (program_authors): Add const
12723 * lib/version-etc.c: Fix typos in the comments.
12724 * modules/argp-version-etc: Depends on version-etc.
12726 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12728 argp-version-etc: new module.
12730 * lib/argp-version-etc.c: New file.
12731 * lib/argp-version-etc.h: New file.
12732 * modules/argp-version-etc: New file.
12733 * modules/argp-version-etc-tests: New file.
12734 * tests/test-argp-version-etc.c: New test.
12735 * tests/test-argp-version-etc-1.sh: New test.
12737 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12739 Provide additional interfaces and documentation for version-etc
12742 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12744 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12747 2009-06-24 Bruno Haible <bruno@clisp.org>
12749 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12750 HAVE_LIB${NAME} macro.
12751 Reported by Sam Steingold <sds@gnu.org>.
12753 2009-06-23 Simon Josefsson <simon@josefsson.org>
12755 * modules/hash-tests (test_hash_LDADD): Link to libintl when
12758 2009-06-21 Bruno Haible <bruno@clisp.org>
12760 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12762 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12763 together with LIB${NAME}, LTLIB${NAME}.
12764 Reported by Sam Steingold <sds@gnu.org>.
12766 2009-06-20 Jim Meyering <meyering@redhat.com>
12768 tests: make sc_require_test_exit_idiom more generic
12769 * top/maint.mk (Exit_witness_file): New overridable variable.
12770 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12771 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12773 2009-06-19 Jim Meyering <meyering@redhat.com>
12775 hash: reverse order of src/dst parameters in an internal interface
12776 * lib/hash.c (transfer_entries): Reverse order of parameters to
12777 put DST before SRC. Adjust callers.
12779 tests: test-hash: avoid wholesale duplication
12780 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12781 Instead, use a loop and add a single conditional.
12783 tests: test-hash: allow seed selection via a command line argument
12784 * tests/test-hash.c (get_seed): New function.
12787 2009-06-19 Eric Blake <ebb9@byu.net>
12789 hash: avoid memory leak on allocation failure
12790 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12791 failure. Factor repeated algorithm...
12792 (transfer_entries): ...into new helper routine.
12793 (hash_delete): React to hash_rehash return value.
12795 hash: reduce memory pressure in hash_rehash no-op case
12796 * lib/hash.c (next_prime): Avoid overflow.
12797 (hash_initialize): Factor bucket size computation...
12798 (compute_bucket_size): ...into new helper function.
12799 (hash_rehash): Use new function and open coding to reduce memory
12800 pressure, and avoid a memory leak in USE_OBSTACK code.
12801 Reported by Jim Meyering.
12803 2009-06-18 Eric Blake <ebb9@byu.net>
12805 hash: make rotation more obvious
12806 * modules/hash (Depends-on): Add bitrotate and stdint.
12807 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12808 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
12809 (SIZE_MAX): Rely on headers for definition.
12810 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12811 (raw_hasher): Use rotr_sz.
12812 Suggested by Jim Meyering.
12814 hash: fix memory leak in last patch
12815 * lib/hash.c (hash_rehash): Avoid memory leak.
12817 hash: avoid no-op rehashing
12818 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12820 hash: provide default callback functions
12821 * lib/hash.c (raw_hasher, raw_comparator): New functions.
12822 (hash_initialize): Use them as defaults.
12823 * tests/test-hash.c (main): Test this.
12825 hash: minor optimization
12826 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12828 (hash_initialize): Document this promise.
12829 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12830 * tests/test-hash.c (hash_compare_strings): Test this.
12832 2009-06-18 Bruno Haible <bruno@clisp.org>
12834 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12835 going to be replaced anyway.
12837 2009-06-18 Bruno Haible <bruno@clisp.org>
12839 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12841 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12842 be replaced anyway.
12844 2009-06-18 Eric Blake <ebb9@byu.net>
12846 hash: check for resize before insertion
12847 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12848 threshold before insertion, so that a pathological hash_rehash
12849 that fills every bucket can still trigger another rehash.
12851 2009-06-18 Jim Meyering <meyering@redhat.com>
12853 hash-tests: add a loop around the small tests
12854 * tests/test-hash.c (main): Repeat small tests with selected
12855 small initial table sizes.
12857 2009-06-17 Eric Blake <ebb9@byu.net>
12859 hash: minor cleanups
12860 * lib/hash.h (hash_entry): Make opaque, by moving...
12861 * lib/hash.c (hash_entry): ...here.
12862 (hash_insert): Clarify restrictions on what can be inserted.
12863 (hash_get_next): Clarify when it is safe to remove an element
12865 (check_tuning): Skip verification when tuning is known safe.
12866 (hash_initialize): Clarify restrictions on tuning.
12868 2009-06-17 Jim Meyering <jim@meyering.net>
12869 and Eric Blake <ebb9@byu.net>
12871 hash-tests: new module
12872 * modules/hash-tests: New file.
12873 * tests/test-hash.c: New file.
12875 2009-06-17 Eric Blake <ebb9@byu.net>
12877 strstr-simple: document new module
12878 * MODULES.html.sh: Document new module.
12880 strstr, strcasestr: replace on platforms with broken memchr
12881 * modules/strstr: Split into...
12882 * modules/strstr-simple: ...new module that does not care about
12883 performance, but does care about glibc bug.
12884 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12885 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12886 if platform memchr is broken, per Debian bug 521737.
12887 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12889 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12890 * doc/posix-functions/strstr.texi (strstr): Document the fix.
12891 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12892 * modules/mountlist (Depends-on): Add strstr-simple.
12893 * modules/gen-uni-tables (Depends-on): Likewise.
12894 * modules/argz (Depends-on): Add strstr.
12896 2009-06-17 Bruno Haible <bruno@clisp.org>
12898 * modules/posix_spawn-internal (Depends-on): Add errno.
12900 2009-06-17 Bruno Haible <bruno@clisp.org>
12902 Define missing ESTALE on Interix 3.5.
12903 * lib/errno.in.h (ESTALE): Assign a value if missing.
12904 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12905 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12907 * doc/posix-headers/errno.texi: Mention the Interix bug.
12908 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12910 2009-06-15 Eric Blake <ebb9@byu.net>
12912 memchr, memchr2: add valgrind exception
12913 * lib/memchr.valgrind: New file.
12914 * lib/memchr2.valgrind: New file.
12915 * modules/memchr (Files): Distribute valgrind file.
12916 * modules/memchr2 (Files): Likewise.
12918 docs: memchr is no longer obsolete
12919 * MODULES.html.sh: Move memchr from obsolete to string.h section.
12920 * lib/string.in.h (memchr): Simplify logic.
12922 2009-06-14 Jim Meyering <meyering@redhat.com>
12924 link-follow: fix the "checking..." message to not mention trailing slash
12925 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12926 never considered trailing slashes.
12928 2009-06-14 Bruno Haible <bruno@clisp.org>
12930 * m4/memchr.m4: Mention also the bug on IA-64.
12931 * doc/posix-functions/memchr.texi: Likewise.
12933 2009-06-12 Eric Blake <ebb9@byu.net>
12935 memchr: detect broken x86_64 and alpha implementations
12936 * modules/memchr-tests (Depends-on): Move mmap detection...
12937 * modules/memchr (Depends-on): ...here.
12938 (configure.ac): Set indicator.
12939 * lib/string.in.h (memchr): Declare replacement.
12940 * modules/string (Makefile.am): Trigger replacement.
12941 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12942 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12944 * doc/posix-functions/memchr.texi (memchr): Document the bug.
12945 * modules/getpagesize (License): Relax license.
12947 2009-06-11 Bruno Haible <bruno@clisp.org>
12949 * lib/idpriv.h: Add more references.
12951 2009-06-08 Bruno Haible <bruno@clisp.org>
12953 Tests for module 'idpriv-droptemp'.
12954 * modules/idpriv-droptemp-tests: New file.
12955 * tests/test-idpriv-droptemp.sh: New file.
12956 * tests/test-idpriv-droptemp.su.sh: New file.
12957 * tests/test-idpriv-droptemp.c: New file.
12959 New module 'idpriv-droptemp'.
12960 * lib/idpriv-droptemp.c: New file.
12961 * modules/idpriv-droptemp: New file.
12963 2009-06-08 Bruno Haible <bruno@clisp.org>
12965 Tests for module 'idpriv-drop'.
12966 * modules/idpriv-drop-tests: New file.
12967 * tests/test-idpriv-drop.sh: New file.
12968 * tests/test-idpriv-drop.su.sh: New file.
12969 * tests/test-idpriv-drop.c: New file.
12971 New module 'idpriv-drop'.
12972 * lib/idpriv.h: New file.
12973 * lib-idpriv-drop.c: New file.
12974 * m4/idpriv.m4: New file.
12975 * modules/idpriv-drop: New file.
12977 2009-06-08 Bruno Haible <bruno@clisp.org>
12979 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12980 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12981 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12982 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12983 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12984 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12985 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12987 2009-06-08 Eric Blake <ebb9@byu.net>
12989 test-strstr: use memory fence, when possible
12990 * tests/test-strstr.c (main): Use memory fence, in order to be
12991 more likely to trigger Debian bug 521737.
12992 * modules/strstr-tests (Files): Pull in additional files.
12994 memchr: no longer obsolete, for wider field testing
12995 * modules/memchr (Status, Notice): Delete, this module is no
12997 * modules/vasnprintf (Depends-on): Add memchr.
12999 2009-06-07 Jim Meyering <meyering@redhat.com>
13001 hash: declare some functions with the warn_unused_result attribute
13002 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13004 2009-06-07 Bruno Haible <bruno@clisp.org>
13006 * tests/test-alignof.c: Don't test int64_t if it does not exist.
13007 Reported by Eric Blake.
13009 2009-06-06 Eric Blake <ebb9@byu.net>
13011 test-alignof: fix typo with long double
13012 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13015 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
13017 Escape non-texinfo { and }s.
13018 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13021 2009-06-04 Jim Meyering <meyering@redhat.com>
13023 gitlog-to-changelog: don't infloop on an empty commit log
13024 * build-aux/gitlog-to-changelog: Warn about an empty log message.
13025 Reported by Boris Petersen <transacid@centerim.org>.
13027 2009-06-03 Mike Frysinger <vapier@gentoo.org>
13029 version-etc: extend for packagers
13030 Add three new configure options, intended for packagers:
13031 --with-packager="packager name"
13032 --with-packager-version="packager-specific version"
13033 --with-packager-bug-reports="packager bug reporting"
13034 An example with coreutils:
13036 --with-packager=Gentoo \
13037 --with-packager-bug-report=http://bugs.gentoo.org/ \
13038 --with-packager-version="patchset 1.6"
13039 $ ./src/ls --version | head -n2
13040 ls (GNU coreutils) 7.1-dirty
13041 Packaged by Gentoo (patchset 1.6)
13042 Note that the bug reporting info via --help doesn't show up because
13043 coreutils uses its own custom emit_bug_reporting_address() implementation
13044 in src/system.h. If it didn't, it'd look like:
13045 $ ./src/ls --help | tail -n4
13046 Report bugs to <bug-coreutils@gnu.org>.
13047 Report Gentoo bugs to <http://bugs.gentoo.org/>.
13048 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13049 General help using GNU software: <http://www.gnu.org/gethelp/>.
13050 * lib/version-etc.c: Print new information, if provided.
13051 * m4/version-etc.m4: New file.
13052 * modules/version-etc (Files): Add m4/version-etc.m4.
13053 (configure.ac): Add gl_VERSION_ETC.
13055 2009-05-31 Bruno Haible <bruno@clisp.org>
13057 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13059 * modules/alignof-tests (Dependencies): Add stdint.
13060 Reported by Eric Blake.
13062 2009-05-31 Bruno Haible <bruno@clisp.org>
13064 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13065 restriction due to compiler bugs.
13066 Reported by Eric Blake.
13068 2009-05-31 Simon Josefsson <simon@josefsson.org>
13069 Bruno Haible <bruno@clisp.org>
13071 Fix test-alignof failure.
13072 * lib/alignof.h (alignof_slot): New macro.
13073 (alignof_type): New macro, with the same semantics as the previous
13075 (alignof): Alias to alignof_slot.
13076 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13077 check that the results are usable as constant expressions.
13079 2009-05-31 Bruno Haible <bruno@clisp.org>
13081 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13082 * tests/test-memchr.c (main): Check that memchr does not read past the
13083 first occurrence of the byte.
13084 * tests/test-strstr.c (main): Update comment.
13085 Suggested by Eric Blake.
13087 2009-05-30 Bruno Haible <bruno@clisp.org>
13089 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13090 detail how to use dumpbin.
13091 Reported by David Byron <dbyron@dbyron.com>.
13093 2009-06-02 Simon Josefsson <simon@josefsson.org>
13095 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13097 2009-06-02 Simon Josefsson <simon@josefsson.org>
13099 * m4/manywarnings.m4: Add GCC 4.4 warnings.
13101 2009-05-28 Bruno Haible <bruno@clisp.org>
13103 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13106 2009-05-28 Simon Josefsson <simon@josefsson.org>
13108 * gnulib-tool (func_import): Transform license on build-aux/ files too.
13110 2009-05-27 Simon Josefsson <simon@josefsson.org>
13112 * gnulib-tool (sed_transform_main_lib_file)
13113 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13116 2009-05-26 Simon Josefsson <simon@josefsson.org>
13118 * tests/test-strstr.c: Add another self-test.
13119 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13120 strdup. Suggested by Eric Blake <ebb9@byu.net>.
13122 2009-05-23 Bruno Haible <bruno@clisp.org>
13124 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13127 2009-05-21 Bruno Haible <bruno@clisp.org>
13129 Simplify use of mode_t varargs.
13130 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13131 uses 'mode_t' or 'int'.
13132 * lib/openat.c (openat): Likewise.
13133 * lib/open-safer.c (open_safer): Likewise.
13134 * m4/mode_t.m4: New file.
13135 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13136 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13137 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13138 * modules/open (Files): Add m4/mode_t.m4.
13139 * modules/openat (Files): Likewise.
13140 * modules/fcntl-safer (Files): Likewise.
13141 Suggested by Eric Blake.
13143 2009-05-21 Pádraig Brady <P@draigbrady.com>
13145 * doc/glibc-functions/fallocate.texi: New file.
13146 * doc/gnulib.texi: Include it.
13148 2009-05-21 Eric Blake <ebb9@byu.net>
13149 Bruno Haible <bruno@clisp.org>
13151 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13153 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13155 2009-05-21 Eric Blake <ebb9@byu.net>
13156 Bruno Haible <bruno@clisp.org>
13158 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13159 include_next. Fix of 2008-11-20 commit.
13160 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13161 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13162 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13164 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13165 instead of NEXT_MATH_H.
13167 2009-05-21 Bruno Haible <bruno@clisp.org>
13169 Avoid redefinition warnings for SIZE_MAX.
13170 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13171 Reported by Simon Josefsson.
13173 2009-05-21 Bruno Haible <bruno@clisp.org>
13175 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13178 2009-05-20 Bruno Haible <bruno@clisp.org>
13180 Make zeroptr.h work on mingw.
13181 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13183 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13184 * modules/memchr2-tests (configure.ac): Likewise.
13185 * modules/memcmp-tests (configure.ac): Likewise.
13186 * modules/memmem-tests (configure.ac): Likewise.
13187 * modules/memrchr-tests (configure.ac): Likewise.
13188 Reported by Simon Josefsson.
13190 2009-05-20 Simon Josefsson <simon@josefsson.org>
13192 * tests/test-glob.c: Include string.h for strcmp prototype.
13194 2009-05-20 Simon Josefsson <simon@josefsson.org>
13196 * modules/getdelim (Depends-on): Add explicit stdint, although it
13197 was implicitly already pulled in via realloc-posix.
13198 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13200 2009-05-20 Simon Josefsson <simon@josefsson.org>
13202 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
13203 G. Christensen" <tgc@jupiterrise.com>.
13204 * m4/sys_socket_h.m4: Check for sa_family_t.
13205 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13206 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13207 * tests/test-sys_socket.c: Check that sa_family_t works.
13209 2009-05-18 Eric Blake <ebb9@byu.net>
13211 maint.mk: allow gnulib_dir in VPATH build
13212 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13214 2009-05-15 Jim Meyering <meyering@redhat.com>
13216 maint.mk: Give gnulib_dir a default definition.
13217 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13218 Thus, most packages no longer need to specify this variable in cfg.mk
13220 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
13222 rename.m4: fix typos that would make non-mingw cross-configure fail
13223 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13225 2009-05-13 Eric Blake <ebb9@byu.net>
13227 mmap-anon: avoid out-of-order autoconf expansion
13228 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13229 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13230 * modules/memchr-tests (Depends-on): Add extensions.
13231 * modules/memchr2-tests (Depends-on): Add extensions.
13232 * modules/memcmp-tests (Depends-on): Add extensions.
13233 * modules/memmem-tests (Depends-on): Add extensions.
13234 * modules/memrchr-tests (Depends-on): Add extensions.
13236 2009-05-13 Bruno Haible <bruno@clisp.org>
13238 Make some tests ISO C 99 compliant.
13239 * tests/zerosize-ptr.h: New file.
13240 * tests/test-memchr.c: Include zerosize-ptr.h.
13241 (main): Use a zero-size object pointer instead of NULL.
13242 * tests/test-memchr2.c: Include zerosize-ptr.h.
13243 (main): Use a zero-size object pointer instead of NULL.
13244 * tests/test-memcmp.c: Include zerosize-ptr.h.
13245 (main): Use a zero-size object pointer instead of NULL.
13246 * tests/test-memmem.c: Include zerosize-ptr.h.
13247 (main): Use a zero-size object pointer instead of NULL.
13248 * tests/test-memrchr.c: Include zerosize-ptr.h.
13249 (main): Use a zero-size object pointer instead of NULL.
13250 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13252 (Depends-on): Add getpagesize.
13253 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13254 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13256 (Depends-on): Add getpagesize.
13257 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13258 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13260 (Depends-on): Add getpagesize.
13261 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13262 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13264 (Depends-on): Add getpagesize.
13265 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13266 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13268 (Depends-on): Add getpagesize.
13269 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13271 2009-05-12 Bruno Haible <bruno@clisp.org>
13273 Tests for module 'alignof'.
13274 * modules/alignof-tests: New file.
13275 * tests/test-alignof.c: New file.
13277 2009-05-12 Bruno Haible <bruno@clisp.org>
13280 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13281 vendor compilers that are always correct.
13283 2009-05-12 Bruno Haible <bruno@clisp.org>
13285 Make the MAP_ANONYMOUS detection work on HP-UX 11.
13286 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13287 not whether its fully works.
13289 2009-05-12 Bruno Haible <bruno@clisp.org>
13291 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13293 2009-05-12 Jim Meyering <meyering@redhat.com>
13295 * top/maint.mk: Adjust backslash alignment.
13297 2009-05-11 Simon Josefsson <simon@josefsson.org>
13299 * top/maint.mk: Make $(srcdir)/build-aux configurable.
13301 2009-05-11 Eric Blake <ebb9@byu.net>
13303 argp: avoid undefined behavior
13304 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13307 2009-05-08 Simon Josefsson <simon@josefsson.org>
13309 * tests/test-vc-list-files-git.sh: Do git config of user.email and
13310 user.name to prevent git commit from complaining.
13312 2009-05-10 Bruno Haible <bruno@clisp.org>
13314 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13315 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13316 it rewrites every file name only once.
13317 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13319 2009-05-08 Bruno Haible <bruno@clisp.org>
13321 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13324 2009-05-08 Simon Josefsson <simon@josefsson.org>
13326 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13327 sockaddr_storage test.
13329 2009-05-07 Simon Josefsson <simon@josefsson.org>
13331 * modules/sys_socket (Makefile.am): Substitute
13332 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
13333 * m4/sys_socket_h.m4: Check for sockaddr_storage.
13334 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13335 * tests/test-sys_socket.c: Check sockaddr_storage.
13337 2009-05-08 Bruno Haible <bruno@clisp.org>
13339 New module 'alignof'.
13340 * lib/alignof.h: New file.
13341 * modules/alignof: New file.
13343 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13344 Bruno Haible <bruno@clisp.org>
13346 Fix test-file-has-acl on FreeBSD.
13347 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13348 mask is implicitly added.
13349 * tests/test-file-has-acl.c: Include <signal.h>.
13350 (main): Terminate the test after 5 seconds.
13351 * modules/acl-tests (configure.ac): Check for alarm function.
13353 2009-05-04 Bruno Haible <bruno@clisp.org>
13355 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13356 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13357 * modules/errno (configure.ac): Drop AC_REQUIRE.
13358 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13359 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13361 2009-05-04 Simon Josefsson <simon@josefsson.org>
13363 * modules/glob-tests: New module.
13364 * tests/test-glob.c: Add.
13366 2009-05-04 Simon Josefsson <simon@josefsson.org>
13368 * modules/fnmatch-tests: New module.
13369 * tests/test-fnmatch.c: Add.
13371 2009-05-04 Eric Blake <ebb9@byu.net>
13373 maint: make the new no-submodule-changes rule VPATH-safe
13374 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13376 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13377 Bruno Haible <bruno@clisp.org>
13379 acl: Fix infinite loop on FreeBSD.
13380 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13381 of return value from acl_get_entry.
13382 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13385 2009-05-03 Bruno Haible <bruno@clisp.org>
13387 * lib/acl-internal.h (acl_entries): Clarify return value.
13388 * lib/acl_entries.c (acl_entries): Likewise.
13390 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13392 Bug fix in acl module.
13393 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13395 2009-05-03 Bruno Haible <bruno@clisp.org>
13397 Create gperf-generated file in the source dir, not in the build dir.
13398 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13399 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13400 * modules/unicase/locale-language (unicase/locale-languages.h):
13402 * modules/unicase/special-casing (unicase/special-casing-table.h):
13404 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13405 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13406 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13407 Reported by Ralf Wildenhues.
13409 2009-05-03 Bruno Haible <bruno@clisp.org>
13411 * modules/fnmatch (Description, configure.ac): Taken from
13413 * modules/fnmatch-posix: Turn into a symbolic reference to the
13414 'fnmatch' module, and deprecate.
13415 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13417 2009-05-03 Bruno Haible <bruno@clisp.org>
13419 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13420 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13421 Reported by Ralf Wildenhues.
13423 2009-05-04 Simon Josefsson <simon@josefsson.org>
13425 * m4/fnmatch.m4: Fix fnmatch re-define.
13427 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
13429 priv-set: new module and tests; adapt write-any-file
13430 * lib/priv-set.c: New file.
13431 * lib/priv-set.h: New file.
13432 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13433 * lib/write-any-file.c: Simplify by using priv-set module.
13434 * m4/priv-set.m4: New file.
13435 * modules/priv-set: New file.
13436 * modules/unlinkdir: Add dependency on priv-set module.
13437 * modules/write-any-file: Likewise.
13439 Tests for module 'priv-set'.
13440 * modules/priv-set-tests: New file.
13441 * tests/test-priv-set.c: New file.
13443 2009-05-03 Jim Meyering <meyering@redhat.com>
13444 Bruno Haible <bruno@clisp.org>
13446 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13447 use the converted UTF-8 variant of the name instead.
13449 2009-05-03 Jim Meyering <meyering@redhat.com>
13451 tests: tighten some getdate tests
13452 * tests/test-getdate.c (main): Tighten tests: require equality,
13453 not just greater than. Set TZ envvar to UTC0.
13455 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
13457 getdate: correctly interpret "next monday" when run on a Monday
13458 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13459 that e.g., "next tues" (when run on a tuesday) results in a date
13460 that is one week in the future, and not today's date.
13461 I.e., add a week when the wday is the same as the current one.
13462 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13463 and earlier by Martin Bernreuther and Jan Minář.
13464 * tests/test-getdate.c (main): Check that "next DAY" is always in
13465 the future and that "last DAY" is always in the past.
13467 2009-05-02 Jim Meyering <meyering@redhat.com>
13469 build: ensure that a release build fails when a submodule is unclean
13470 * top/maint.mk (no-submodule-changes): New rule.
13471 (alpha beta major): Depend on it.
13473 2009-05-02 Bruno Haible <bruno@clisp.org>
13475 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13476 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13477 shell variable gl_fnmatch_required to detect which variant is
13479 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13480 gl_FUNC_FNMATCH_POSIX.
13481 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13482 exclude fnmatch-posix.
13484 2009-05-02 Bruno Haible <bruno@clisp.org>
13486 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13487 * modules/mbsrtowcs (License): Change to LGPLv2+.
13488 * modules/strnlen1 (License): Likewise.
13489 Reported by Simon Josefsson.
13491 2009-05-02 Bruno Haible <bruno@clisp.org>
13493 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13495 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13496 gnulib-tool was called with option --source-base=lib.
13498 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13500 Use automake *-local hooks without commands, for extensibility.
13501 * modules/localcharset (Makefile.am): Rename install-exec-local
13502 rule to install-exec-localcharset, and make it a prerequisite of
13503 install-exec-local. Likewise, rename the uninstall-local rule to
13504 uninstall-localcharset, and make it a prerequisite of the former.
13506 2009-05-01 Bruno Haible <bruno@clisp.org>
13508 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13509 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13510 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13511 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13512 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13513 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13514 m4/locale-zh.m4, m4/codeset.m4.
13516 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13517 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13518 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13521 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13522 REPLACE_WCRTOMB if mbstate_t must be replaced.
13523 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13524 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13526 2009-05-01 Bruno Haible <bruno@clisp.org>
13528 Avoid compiler warnings when redefining macros defined by <libintl.h>.
13529 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13530 dngettext, dcngettext, textdomain, bindtextdomain,
13531 bind_textdomain_codeset): Undefine before redefining.
13533 2009-04-30 Bruno Haible <bruno@clisp.org>
13535 Fix bug introduced on 2009-04-25.
13536 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13537 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13538 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13540 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13542 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13544 Reported by Elbert_Pol <elbert.pol@gmail.com>.
13546 2009-04-28 Bruno Haible <bruno@clisp.org>
13549 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13550 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13551 * lib/unicase.h (u*_casexfrm): Likewise.
13552 Reported by Paolo Bonzini.
13554 2009-04-28 Bruno Haible <bruno@clisp.org>
13556 Fix a compilation error.
13557 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13558 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13559 Reported by Jim Meyering.
13561 2009-04-27 Bruno Haible <bruno@clisp.org>
13563 New module 'libunistring'.
13564 * modules/libunistring: New file.
13565 * m4/libunistring.m4: New file.
13566 * MODULES.html.sh (Unicode string functions): Add it.
13568 2009-04-27 Eric Blake <ebb9@byu.net>
13570 maint.mk: allow package-specific header to provide <config.h>
13571 * top/maint.mk (sc_require_config_h): New variable.
13572 (sc_require_config_h, sc_require_config_h_first): Use it.
13574 2009-04-27 Simon Josefsson <simon@josefsson.org>
13576 * top/maint.mk (sc_avoid_if_before_free): Except
13577 useless-if-before-free script.
13579 2009-04-27 Eric Blake <ebb9@byu.net>
13581 maintainer-makefile: depend on all required helper scripts
13582 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13583 useless-if-before-free.
13584 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13585 version, rather than assuming gnulib checkout is available.
13586 Reported by Simen Josefsson.
13588 2009-04-26 Bruno Haible <bruno@clisp.org>
13590 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13591 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13594 2009-04-26 Bruno Haible <bruno@clisp.org>
13596 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13597 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13598 AC_LIB_HAVE_LINKFLAGS.
13600 2009-04-26 Bruno Haible <bruno@clisp.org>
13602 Simplify calling convention of u*_conv_from_encoding.
13603 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13604 u32_conv_from_encoding): Expect a resultbuf argument and return the
13605 result directly as a pointer.
13606 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13607 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13608 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13609 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13610 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13611 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13613 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13614 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13615 * lib/vasnprintf.c (VASNPRINTF): Update.
13616 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13617 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13618 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13619 * NEWS: Mention the change.
13621 2009-04-26 Bruno Haible <bruno@clisp.org>
13623 Simplify calling convention of u*_conv_to_encoding.
13624 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13625 u32_conv_to_encoding): Expect a resultbuf argument and return the
13626 result directly as a pointer.
13627 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13628 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13629 freeing scaled_offsets if mem_iconveha failed.
13630 * lib/unicase/u-casexfrm.h (FUNC): Update.
13631 * lib/uninorm/u-normxfrm.h (FUNC): Update.
13632 * lib/vasnprintf.c (VASNPRINTF): Update.
13633 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13634 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13635 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13636 * NEWS: Mention the change.
13638 2009-04-26 Bruno Haible <bruno@clisp.org>
13640 Avoid test failures on AIX and OSF/1.
13641 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13643 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13644 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13646 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13647 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13648 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13649 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13650 * doc/posix-functions/malloc.texi: Document the portability problem
13651 related to malloc(0).
13653 2009-04-26 Bruno Haible <bruno@clisp.org>
13655 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13656 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13657 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13659 2009-04-25 Bruno Haible <bruno@clisp.org>
13661 Avoid link error when creating a namespace clean library.
13662 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13663 as macro with arguments if already defined as an alias.
13664 * lib/signbitf.c (gl_signbitf): Don't undefine.
13665 * lib/signbitd.c (gl_signbitd): Don't undefine.
13666 * lib/signbitl.c (gl_signbitl): Don't undefine.
13668 2009-04-25 Jim Meyering <meyering@redhat.com>
13670 vc-list-files: fix another quoting bug
13671 * build-aux/vc-list-files: Avoid sed backslash expansion
13672 of pathological directory names.
13674 2009-04-25 Eric Blake <ebb9@byu.net>
13676 vc-list-files: fix shell quoting error
13677 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
13680 2009-04-25 Jim Meyering <meyering@redhat.com>
13682 vc-list-files: restore lost functionality with subdir argument
13683 * build-aux/vc-list-files: When given a non-"." sub-directory
13684 argument, substitute the $dir/ prefix back onto each resulting name.
13685 Otherwise, coreutils' root_tests check would fail.
13687 2009-04-24 Eric Blake <ebb9@byu.net>
13689 vc-list-files: ignore git symlinks
13690 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13691 than ls-files, to ignore git symlinks.
13693 maint.mk: import improvements from m4
13694 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13695 (move_if_change): Delete unused macro.
13696 (news-date-check, vc-diff-check): Support VPATH builds.
13697 (announcement): Likewise. Split --bootstrap-tools list...
13698 (boostrap-tools): ...into separate list, which can be overridden
13700 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13701 requiring dependency on useless-if-before-free module.
13702 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13703 Support VPATH builds.
13705 2009-04-24 Jim Meyering <meyering@redhat.com>
13707 maint.mk: remove coreutils-specific rules and variables
13708 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13709 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13710 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13712 maint.mk: remove obsolete rule
13713 * top/maint.mk (rel-check): Remove rule.
13714 (WGET, WGETFLAGS): Remove now-unused variables.
13716 2009-04-24 Simon Josefsson <simon@josefsson.org>
13718 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13721 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13722 '$(PATH_SEPARATOR)' instead of ':'.
13724 2009-04-24 Simon Josefsson <simon@josefsson.org>
13726 * lib/getopt1.c (main): Use 'const' for static array.
13728 2009-04-24 Simon Josefsson <simon@josefsson.org>
13730 * top/maint.mk: Sync with coreutils.
13731 * NEWS: Explain incompatibilities.
13733 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13734 Bruno Haible <bruno@clisp.org>
13736 Fix cross-compilation results.
13737 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13738 statement, as third argument of AC_TRY_RUN.
13739 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13740 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13742 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13743 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13745 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13746 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13747 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13749 2009-04-20 Bruno Haible <bruno@clisp.org>
13751 Avoid test failure on mingw.
13752 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13754 2009-04-20 Bruno Haible <bruno@clisp.org>
13756 Avoid compilation error on mingw.
13757 * modules/localename-tests (Depends-on): Add locale.
13759 2009-04-19 Bruno Haible <bruno@clisp.org>
13761 Support for building a shared library on Windows platforms.
13762 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13763 (main): Test the presence of UNINORM_NFC here.
13764 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13765 (main): Test the presence of UNINORM_NFD here.
13766 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13767 (main): Test the presence of UNINORM_NFKC here.
13768 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13769 (main): Test the presence of UNINORM_NFKD here.
13771 2009-04-19 Bruno Haible <bruno@clisp.org>
13773 Avoid a compiler warning.
13774 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13775 Change type of variable 'sequence'.
13777 2009-04-19 Bruno Haible <bruno@clisp.org>
13779 * modules/configmake (Makefile.am): When the contents of configmake.h
13780 does not change, arrange to preserve its modification time.
13782 2009-04-17 Simon Josefsson <simon@josefsson.org>
13784 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13787 2009-04-16 Jim Meyering <meyering@redhat.com>
13789 useless-if-before-free: improve conversion code
13790 * build-aux/useless-if-before-free: Adjust code-in-comment to match
13791 "...!= 0" as well as "...!= NULL". emacs has one of the former.
13793 2009-04-14 Bruno Haible <bruno@clisp.org>
13795 * modules/fcntl (Depends-on): Add extensions.
13796 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13798 2009-04-12 Ben Pfaff <blp@gnu.org>
13800 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13801 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13803 2009-03-20 Ben Pfaff <blp@gnu.org>
13805 Make rename replace existing destinations on Windows.
13806 * m4/rename.m4: Add test for Mingw.
13807 * lib/rename.c: Add rename replacement that uses MoveFileEx with
13808 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13809 * doc/posix-functions/rename.texi: Document.
13811 2009-04-10 Bruno Haible <bruno@clisp.org>
13813 New include file "iconveh.h".
13814 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13815 * lib/striconveh.h: Include it.
13816 (enum iconv_ilseq_handler): Remove definition.
13817 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13819 * lib/striconveha.c: Include striconveh.h.
13820 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13821 * modules/striconveh (Files): Add lib/iconveh.h.
13822 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13825 2009-04-10 Bruno Haible <bruno@clisp.org>
13827 * lib/uniconv.h: Update comment.
13829 2009-04-10 Bruno Haible <bruno@clisp.org>
13831 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13833 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13834 * lib/unistr/u16-mbtouc-aux.c: Likewise.
13835 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13836 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13837 "unistring-notinline.h", so that the function gets defined always.
13838 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13839 * lib/unistr/u8-uctomb.c: Likewise.
13840 * lib/unistr/u16-mbtouc.c: Likewise.
13841 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13842 * lib/unistr/u16-uctomb.c: Likewise.
13843 * lib/unistr/u32-mbtouc.c: Likewise.
13844 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13845 * lib/unistr/u32-uctomb.c: Likewise.
13847 2009-04-10 Bruno Haible <bruno@clisp.org>
13849 Mark 'utime' obsolete.
13850 * modules/utime (Status, Notice): New sections.
13851 Suggested by Jim Meyering.
13853 Fix cross-compile guess for utime test.
13854 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13856 * doc/posix-functions/utime.texi: Give more precisions.
13857 Reported by Jan <ipif@ymail.com>.
13859 2009-04-09 Kamil Dudka <kdudka@redhat.com>
13861 filevercmp: correct today's change
13862 * lib/filevercmp.c: Also handle coreutils' test inputs.
13863 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13865 Fix regression in 'filevercmp' module. Thanks Sven Joachim
13867 * lib/filevercmp.c: Special handle for "", "." and "..".
13868 * tests/test-filevercmp.c: Enlarge the set suite.
13870 2009-04-07 Jim Meyering <meyering@redhat.com>
13872 useless-if-before-free: show how to remove braced useless free, too
13873 * build-aux/useless-if-before-free: still only in a comment, though.
13875 2009-04-07 Reuben Thomas <rrt@sc3d.org>
13877 maint.mk: import changes to syntax-check macros from coreutils
13878 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13879 Use them in the relevant macros.
13881 2009-04-06 Bruno Haible <bruno@clisp.org>
13883 Fix unportable use of bit-fields.
13884 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13885 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13886 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13888 2009-04-06 Bruno Haible <bruno@clisp.org>
13890 Avoid test failures on AIX and OSF/1.
13891 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13892 that malloc(0) = NULL.
13893 * tests/unicase/test-u8-tolower.c (check): Likewise.
13894 * tests/unicase/test-u8-totitle.c (check): Likewise.
13895 * tests/unicase/test-u8-toupper.c (check): Likewise.
13896 * tests/unicase/test-u16-casefold.c (check): Likewise.
13897 * tests/unicase/test-u16-tolower.c (check): Likewise.
13898 * tests/unicase/test-u16-totitle.c (check): Likewise.
13899 * tests/unicase/test-u16-toupper.c (check): Likewise.
13900 * tests/unicase/test-u32-casefold.c (check): Likewise.
13901 * tests/unicase/test-u32-tolower.c (check): Likewise.
13902 * tests/unicase/test-u32-totitle.c (check): Likewise.
13903 * tests/unicase/test-u32-toupper.c (check): Likewise.
13904 * tests/uninorm/test-u8-nfc.c (check): Likewise.
13905 * tests/uninorm/test-u8-nfd.c (check): Likewise.
13906 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13907 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13908 * tests/uninorm/test-u16-nfc.c (check): Likewise.
13909 * tests/uninorm/test-u16-nfd.c (check): Likewise.
13910 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13911 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13912 * tests/uninorm/test-u32-nfc.c (check): Likewise.
13913 * tests/uninorm/test-u32-nfd.c (check): Likewise.
13914 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13915 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13917 2009-04-05 Bruno Haible <bruno@clisp.org>
13919 Work around an autoconf limitation.
13920 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13921 comment line if it would be longer than 3 KB.
13923 2009-04-05 Bruno Haible <bruno@clisp.org>
13925 Avoid test failure with libiconv-1.13.
13926 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13927 of the expected test results.
13929 2009-04-05 Bruno Haible <bruno@clisp.org>
13931 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13932 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13933 that it should be installed.
13935 2009-04-05 Bruno Haible <bruno@clisp.org>
13937 * gnulib-tool: New option --copy-file.
13938 (func_usage): Document it.
13939 (func_dest_tmpfilename): Moved out of func_import.
13940 (func_add_file, func_update_file): New functions, extracted from
13942 (func_import): Update.
13944 2009-04-05 Karl Berry <karl@gnu.org>
13946 * README: prominently mention gnulib-tool.
13947 Rearrange sections so getting the code is near the top.
13949 2009-04-05 Bruno Haible <bruno@clisp.org>
13951 * lib/unicase.h: Mention u*_cmp2.
13952 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13953 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13954 * lib/unicase/ulc-casecmp.c: Likewise.
13955 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13956 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13957 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13959 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13960 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13962 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13965 * lib/uninorm.h: Mention u*_cmp2.
13966 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13967 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13968 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13969 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13970 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13972 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13974 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13977 New module 'unistr/u32-cmp2'.
13978 * lib/unistr/u32-cmp2.c: New file.
13979 * modules/unistr/u32-cmp2: New file.
13981 New module 'unistr/u16-cmp2'.
13982 * lib/unistr/u16-cmp2.c: New file.
13983 * modules/unistr/u16-cmp2: New file.
13985 New module 'unistr/u8-cmp2'.
13986 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13987 * lib/unistr/u8-cmp2.c: New file.
13988 * lib/unistr/u-cmp2.h: New file.
13989 * modules/unistr/u8-cmp2: New file.
13991 2009-04-05 Bruno Haible <bruno@clisp.org>
13993 * lib/unictype.h (uc_property_is_valid): New macro.
13994 * tests/unictype/test-pr_byname.c (main): Use it.
13996 * lib/unistr.h: Doc fixes.
13997 * lib/uniconv.h: Doc fixes.
13998 * lib/unictype.h: Doc fixes.
14000 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
14002 Port coreutils 7.2 to Solaris 8.
14004 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14005 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14006 for Solaris 8. This is a bit of a hack, as it means it's the
14007 caller's responsibility to add -lnsl if needed, but most likely it
14008 won't be needed since only getaddrinfo uses this and getaddrinfo
14009 isn't needed on Solaris 8.
14011 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14012 problem to Solaris 8 encountered with coreutils 7.2, which
14013 resulted in a message "fnmatch.c:292: warning: passing argument 4
14014 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
14015 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14017 2009-04-03 Simon Josefsson <simon@josefsson.org>
14019 * m4/ld-version-script.m4: Add FIXME comment.
14021 2009-04-02 Simon Josefsson <simon@josefsson.org>
14023 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14024 SOVERSION variable.
14026 2009-04-02 Bruno Haible <bruno@clisp.org>
14028 * Makefile (info, html, dvi, pdf): Combine the rules.
14029 Suggested by Jim Meyering.
14031 2009-04-01 Bruno Haible <bruno@clisp.org>
14033 * Makefile (info, html, dvi, pdf): New targets.
14034 Reported by Reuben Thomas <rrt@sc3d.org>.
14036 2009-04-01 Bruno Haible <bruno@clisp.org>
14038 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14039 can be put into PATH.
14040 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14042 2009-04-01 Bruno Haible <bruno@clisp.org>
14044 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14046 2009-04-01 Bruno Haible <bruno@clisp.org>
14048 Rename module 'visibility'.
14049 * modules/lib-symbol-visibility: Renamed from modules/visibility.
14050 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14051 * doc/gnulib.texi: Update.
14052 * MODULES.html.sh (Misc): Update.
14053 * NEWS: Mention the change.
14055 2009-04-01 Simon Josefsson <simon@josefsson.org>
14057 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
14058 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14059 Eric Blake <ebb9@byu.net> for review.
14060 * MODULES.html.sh: Add lib-msvc-compat.
14061 * doc/gnulib.texi: Link to new section.
14062 * m4/ld-output-def.m4: New file.
14063 * doc/ld-output-def.texi: New file.
14065 2009-04-01 Simon Josefsson <simon@josefsson.org>
14067 Rename ld-version-script to lib-symbol-versions. Suggested by
14068 Bruno Haible <bruno@clisp.org>.
14069 * modules/ld-version-script: Renamed to lib-symbol-versions.
14070 * doc/ld-version-script.texi: Fix module name.
14071 * MODULES.html.sh: Add lib-symbol-versions.
14073 2009-03-31 Simon Josefsson <simon@josefsson.org>
14075 * modules/u64-tests: New file.
14076 * tests/test-u64.c: New file.
14078 2009-03-04 Simon Josefsson <simon@josefsson.org>
14080 * MODULES.html.sh: Mention u64.
14081 * modules/u64: New module.
14082 * modules/crypto/sha512: Depend on u64 module instead of providing
14085 2009-03-27 Eric Blake <ebb9@byu.net>
14087 test-strerror: make debugging EAI_SYSTEM easier
14088 * modules/getaddrinfo-tests (Depends-on): Add strerror.
14089 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14090 failure was EAI_SYSTEM.
14092 2009-03-25 Bruno Haible <bruno@clisp.org>
14094 Fix a problem with --enable-relocatable on Solaris 7.
14095 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14098 2009-03-25 Eric Blake <ebb9@byu.net>
14100 test-sockets: avoid gcc warning
14101 * tests/test-sockets.c (main): Silence compiler warning.
14103 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
14105 New modules nproc, pthread, contributed by Glen Lenker.
14107 * MODULES.html.sh: Add pthread, nproc.
14108 * lib/nproc.c: New file.
14109 * lib/nproc.h: New file.
14110 * lib/pthread.in.h: New file.
14111 * m4/pthread.m4: New file.
14112 * modules/nproc: New file.
14113 * modules/pthread: New file.
14115 2009-03-24 Simon Josefsson <simon@josefsson.org>
14117 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14120 2009-03-24 Kamil Dudka <kdudka@redhat.com>
14122 filevercmp: handle simple~ and numbered.~3~ backup suffixes
14123 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14124 * tests/test-filevercmp.c: Add tests for backup suffixes.
14126 2009-03-24 Simon Josefsson <simon@josefsson.org>
14128 * modules/stdlib (Depends-on): Add stdint, needed when defining
14129 struct random_data on, for example, HP-UX 10.20. Reported by
14130 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14132 2009-03-24 Simon Josefsson <simon@josefsson.org>
14134 * lib/readline.c (readline): Call fflush on stdout after printing
14137 2009-03-20 Bruno Haible <bruno@clisp.org>
14139 Remove dependency from 'close' module to -lws2_32 on native Windows.
14140 * lib/close-hook.h: New file.
14141 * lib/close-hook.c: New file.
14142 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14144 (_gl_close_fd_maybe_socket): Remove function.
14145 (rpl_close): Invoke execute_all_close_hooks instead of
14146 _gl_close_fd_maybe_socket.
14147 * lib/sockets.c: Include close-hook.h, w32sock.h.
14148 (close_fd_maybe_socket): New function, essentially from lib/close.c.
14149 (close_sockets_hook): New variable.
14150 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14151 (gl_sockets_cleanup): Unregister it.
14152 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14153 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14154 * modules/close-hook: New file.
14155 * modules/close (Files): Remove lib/w32sock.h.
14156 (Depends-on): Add close-hook.
14157 (Link): Remove section.
14158 * modules/sockets (Files): Add lib/w32sock.h.
14159 (Depends-on): Add close-hook.
14160 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14162 * NEWS: Mention that LIB_CLOSE is gone.
14164 2009-03-23 Eric Blake <ebb9@byu.net>
14166 signal-tests: test previous patch
14167 * tests/test-signal.c: New file.
14168 * modules/signal-tests: Likewise.
14170 signal.h: always support 'volatile sig_atomic_t'
14171 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14172 (gl_SIGNAL_H_DEFAULTS): Add a default.
14173 * modules/signal (Makefile.am): Substitute if needed.
14174 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14175 users can blindly add volatile.
14176 * doc/posix-headers/signal.texi (signal.h): Document it.
14177 Reported by Matthew Woehlke.
14179 2009-03-23 Jim Meyering <meyering@redhat.com>
14181 pathmax: PATH_MAX: use pathconf only when available
14182 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14183 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
14184 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14185 This avoids a link failure in a PSP cross-compilation environment
14186 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14188 * lib/vasnprintf.c (divide): Fix typo in comment.
14190 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14192 * gnulib-tool (func_filter_filelist): Fix comment.
14194 2009-03-20 Bruno Haible <bruno@clisp.org>
14196 Make sockets.h self-contained.
14197 * lib/sockets.c: Include sockets.h first.
14198 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14200 2009-03-19 Eric Blake <ebb9@byu.net>
14202 doc: mention more functions added in cygwin 1.7.0
14203 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14205 * doc/posix-functions/log2f.texi: Likewise.
14207 2009-03-19 Jim Meyering <meyering@redhat.com>
14209 fsusage: avoid syntax error due to statement-before-declaration
14210 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14211 after all declarations. Reported by Matthew Woehlke in
14212 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14214 2009-03-18 Eric Blake <ebb9@byu.net>
14216 build-aux/compile: sync from automake
14217 * build-aux/compile: New file, from automake.
14218 * config/srclist.txt: Mention build-aux/compile.
14220 2009-03-17 Bruno Haible <bruno@clisp.org>
14222 * lib/git-merge-changelog.c: Fix typo in comment.
14223 Reported by Reuben Thomas <rrt@sc3d.org>.
14225 2009-03-17 Reuben Thomas <rrt@sc3d.org>
14227 * m4/regex.m4: update and improve help for
14228 --without-included-regex.
14230 2009-03-17 Simon Josefsson <simon@josefsson.org>
14232 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14233 failure on missing include files.
14235 2009-03-17 Eric Blake <ebb9@byu.net>
14237 doc: mention more functions added in cygwin 1.7.0
14238 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14240 * doc/posix-functions/fwscanf.texi: Likewise.
14241 * doc/posix-functions/swprintf.texi: Likewise.
14242 * doc/posix-functions/swscanf.texi: Likewise.
14243 * doc/posix-functions/vfwprintf.texi: Likewise.
14244 * doc/posix-functions/vfwscanf.texi: Likewise.
14245 * doc/posix-functions/vswprintf.texi: Likewise.
14246 * doc/posix-functions/vswscanf.texi: Likewise.
14247 * doc/posix-functions/vwprintf.texi: Likewise.
14248 * doc/posix-functions/vwscanf.texi: Likewise.
14249 * doc/posix-functions/wcscasecmp.texi: Likewise.
14250 * doc/posix-functions/wcsdup.texi: Likewise.
14251 * doc/posix-functions/wcsftime.texi: Likewise.
14252 * doc/posix-functions/wcsncasecmp.texi: Likewise.
14253 * doc/posix-functions/wprintf.texi: Likewise.
14254 * doc/posix-functions/wscanf.texi: Likewise.
14255 * doc/glibc-functions/gethostbyname2.texi: Likewise.
14257 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14259 maint.mk: really add $(AM_MAKEFLAGS)
14260 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14261 was inadvertently omitted in the last commit.
14262 Spotted by Bruno Haible.
14264 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14265 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14266 $(AM_MAKEFLAGS)' rather than plain `make'.
14268 gnulib-tool: execute $MAKE not make
14269 * gnulib-tool: Default $MAKE to 'make'.
14270 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14271 than make. Initialize $MAKE in the do-autobuild script.
14273 gnulib-tool: use $MAKE not make in generated files
14274 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14275 make, in generated files. Initialize $MAKE in the do-autobuild
14278 * top/GNUmakefile (_have-git-version-gen): Fix typo.
14280 GNUmakefile: disable parallelism only for multiple, recursive targets
14281 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14282 additions in the Makefile.
14283 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14285 (.NOTPARALLEL): Only disable parallel builds if multiple targets
14286 are listed on the command line and at least one of them is
14287 listed in $(ALL_RECURSIVE_TARGETS).
14289 2009-03-14 Bruno Haible <bruno@clisp.org>
14291 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14292 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14293 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14294 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14295 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14296 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14297 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14299 * modules/unistr/u8-strchr (Depends-on): Likewise.
14300 * modules/unistr/u8-strrchr (Depends-on): Likewise.
14301 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14303 * modules/unistr/u16-strchr (Depends-on): Likewise.
14304 * modules/unistr/u16-strrchr (Depends-on): Likewise.
14306 2009-03-12 Bruno Haible <bruno@clisp.org>
14308 Work around select() bug on Interix 3.5.
14309 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14310 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14311 * m4/select.m4: New file.
14312 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14313 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14314 * modules/select (Files): Add m4/select.m4.
14315 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14316 * modules/nanosleep (Depends-on): Add select.
14317 * modules/poll (Depends-on): Likewise.
14318 * doc/posix-functions/select.texi: Mention the Interix bug.
14319 Reported by Markus Duft <mduft@gentoo.org>.
14321 * lib/select.c: Renamed from lib/winsock-select.c.
14322 * modules/select (Files): Add lib/select.c, remove
14323 lib/winsock-select.c.
14324 (configure.ac): Update.
14326 2009-03-12 Jim Meyering <meyering@redhat.com>
14328 avoid gcc warnings about unused macro definitions
14329 * lib/readtokens.c (STREQ): Remove unused definition.
14330 * lib/xmalloc.c (SIZE_MAX): Likewise.
14331 * lib/openat-die.c (N_): Likewise.
14332 * lib/mountlist.c (SIZE_MAX): Remove definition.
14333 Instead, include <stdint.h>.
14334 * lib/readutmp.c: Likewise.
14335 * modules/readutmp (Depends-on): Add stdint.
14336 * modules/mountlist (Depends-on): Add stdint.
14337 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14339 2009-03-10 Bruno Haible <bruno@clisp.org>
14341 Tests for module 'mbmemcasecoll'.
14342 * modules/mbmemcasecoll-tests: New file.
14343 * tests/test-mbmemcasecoll1.sh: New file.
14344 * tests/test-mbmemcasecoll2.sh: New file.
14345 * tests/test-mbmemcasecoll3.sh: New file.
14346 * tests/test-mbmemcasecoll.c: New file.
14348 New module 'mbmemcasecoll'.
14349 * lib/mbmemcasecoll.h: New file.
14350 * lib/mbmemcasecoll.c: New file.
14351 * modules/mbmemcasecoll: New file.
14353 * tests/test-mbmemcasecmp.h: New file, extracted from
14354 tests/test-mbmemcasecmp.c.
14355 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14356 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14358 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14360 2009-03-09 Bruno Haible <bruno@clisp.org>
14362 Tests for module 'mbmemcasecmp'.
14363 * modules/mbmemcasecmp-tests: New file.
14364 * tests/test-mbmemcasecmp1.sh: New file.
14365 * tests/test-mbmemcasecmp2.sh: New file.
14366 * tests/test-mbmemcasecmp3.sh: New file.
14367 * tests/test-mbmemcasecmp.c: New file.
14369 New module 'mbmemcasecmp'.
14370 * lib/mbmemcasecmp.h: New file.
14371 * lib/mbmemcasecmp.c: New file.
14372 * modules/mbmemcasecmp: New file.
14374 2009-03-09 Bruno Haible <bruno@clisp.org>
14376 Tests for module 'unicase/ulc-casecoll'.
14377 * modules/unicase/ulc-casecoll-tests: New file.
14378 * tests/unicase/test-ulc-casecoll1.sh: New file.
14379 * tests/unicase/test-ulc-casecoll2.sh: New file.
14380 * tests/unicase/test-ulc-casecoll.c: New file.
14382 New module 'unicase/ulc-casecoll'.
14383 * lib/unicase.h (ulc_casecoll): New declaration.
14384 * lib/unicase/ulc-casecoll.c: New file.
14385 * modules/unicase/ulc-casecoll: New file.
14387 New module 'unicase/ulc-casexfrm'.
14388 * lib/unicase.h (ulc_casexfrm): New declaration.
14389 * lib/unicase/ulc-casexfrm.c: New file.
14390 * modules/unicase/ulc-casexfrm: New file.
14392 2009-03-09 Bruno Haible <bruno@clisp.org>
14394 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14397 * m4/mbscasecmp.m4: Remove file.
14398 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14399 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14401 * m4/mbscasestr.m4: Remove file.
14402 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14403 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14405 * m4/mbschr.m4: Remove file.
14406 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14407 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14409 * m4/mbscspn.m4: Remove file.
14410 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14411 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14413 * m4/mbslen.m4: Remove file.
14414 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14415 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14417 * m4/mbsncasecmp.m4: Remove file.
14418 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14419 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14421 * m4/mbsnlen.m4: Remove file.
14422 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14423 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14425 * m4/mbspbrk.m4: Remove file.
14426 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14427 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14429 * m4/mbspcasecmp.m4: Remove file.
14430 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14431 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14433 * m4/mbsrchr.m4: Remove file.
14434 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14435 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14437 * m4/mbssep.m4: Remove file.
14438 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14439 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14441 * m4/mbsspn.m4: Remove file.
14442 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14443 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14445 * m4/mbsstr.m4: Remove file.
14446 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14447 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14449 * m4/mbstok_r.m4: Remove file.
14450 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14451 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14453 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14455 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14456 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14458 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14460 2009-03-08 Bruno Haible <bruno@clisp.org>
14462 Tests for module 'unicase/ulc-casecmp'.
14463 * modules/unicase/ulc-casecmp-tests: New file.
14464 * tests/unicase/test-ulc-casecmp1.sh: New file.
14465 * tests/unicase/test-ulc-casecmp2.sh: New file.
14466 * tests/unicase/test-ulc-casecmp.c: New file.
14468 New module 'unicase/ulc-casecmp'.
14469 * lib/unicase.h (ulc_casecmp): New declaration.
14470 * lib/unicase/ulc-casecmp.c: New file.
14471 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14472 'const SRC_UNIT *'.
14473 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14474 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14475 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14476 * modules/unicase/ulc-casecmp: New file.
14478 Tests for module 'unicase/u32-is-cased'.
14479 * modules/unicase/u32-is-cased-tests: New file.
14480 * tests/unicase/test-u32-is-cased.c: New file.
14482 Tests for module 'unicase/u16-is-cased'.
14483 * modules/unicase/u16-is-cased-tests: New file.
14484 * tests/unicase/test-u16-is-cased.c: New file.
14486 Tests for module 'unicase/u8-is-cased'.
14487 * modules/unicase/u8-is-cased-tests: New file.
14488 * tests/unicase/test-u8-is-cased.c: New file.
14489 * tests/unicase/test-is-cased.h: New file.
14491 New module 'unicase/u32-is-cased'.
14492 * lib/unicase/u32-is-cased.c: New file.
14493 * modules/unicase/u32-is-cased: New file.
14495 New module 'unicase/u16-is-cased'.
14496 * lib/unicase/u16-is-cased.c: New file.
14497 * modules/unicase/u16-is-cased: New file.
14499 New module 'unicase/u8-is-cased'.
14500 * lib/unicase/u8-is-cased.c: New file.
14501 * lib/unicase/u-is-cased.h: New file.
14502 * modules/unicase/u8-is-cased: New file.
14504 Tests for module 'unicase/u32-is-casefolded'.
14505 * modules/unicase/u32-is-casefolded-tests: New file.
14506 * tests/unicase/test-u32-is-casefolded.c: New file.
14508 Tests for module 'unicase/u16-is-casefolded'.
14509 * modules/unicase/u16-is-casefolded-tests: New file.
14510 * tests/unicase/test-u16-is-casefolded.c: New file.
14512 Tests for module 'unicase/u8-is-casefolded'.
14513 * modules/unicase/u8-is-casefolded-tests: New file.
14514 * tests/unicase/test-u8-is-casefolded.c: New file.
14515 * tests/unicase/test-is-casefolded.h: New file.
14517 New module 'unicase/u32-is-casefolded'.
14518 * lib/unicase/u32-is-casefolded.c: New file.
14519 * modules/unicase/u32-is-casefolded: New file.
14521 New module 'unicase/u16-is-casefolded'.
14522 * lib/unicase/u16-is-casefolded.c: New file.
14523 * modules/unicase/u16-is-casefolded: New file.
14525 New module 'unicase/u8-is-casefolded'.
14526 * lib/unicase/u8-is-casefolded.c: New file.
14527 * modules/unicase/u8-is-casefolded: New file.
14529 Tests for module 'unicase/u32-is-titlecase'.
14530 * modules/unicase/u32-is-titlecase-tests: New file.
14531 * tests/unicase/test-u32-is-titlecase.c: New file.
14533 Tests for module 'unicase/u16-is-titlecase'.
14534 * modules/unicase/u16-is-titlecase-tests: New file.
14535 * tests/unicase/test-u16-is-titlecase.c: New file.
14537 Tests for module 'unicase/u8-is-titlecase'.
14538 * modules/unicase/u8-is-titlecase-tests: New file.
14539 * tests/unicase/test-u8-is-titlecase.c: New file.
14540 * tests/unicase/test-is-titlecase.h: New file.
14542 New module 'unicase/u32-is-titlecase'.
14543 * lib/unicase/u32-is-titlecase.c: New file.
14544 * modules/unicase/u32-is-titlecase: New file.
14546 New module 'unicase/u16-is-titlecase'.
14547 * lib/unicase/u16-is-titlecase.c: New file.
14548 * modules/unicase/u16-is-titlecase: New file.
14550 New module 'unicase/u8-is-titlecase'.
14551 * lib/unicase/u8-is-titlecase.c: New file.
14552 * modules/unicase/u8-is-titlecase: New file.
14554 Tests for module 'unicase/u32-is-lowercase'.
14555 * modules/unicase/u32-is-lowercase-tests: New file.
14556 * tests/unicase/test-u32-is-lowercase.c: New file.
14558 Tests for module 'unicase/u16-is-lowercase'.
14559 * modules/unicase/u16-is-lowercase-tests: New file.
14560 * tests/unicase/test-u16-is-lowercase.c: New file.
14562 Tests for module 'unicase/u8-is-lowercase'.
14563 * modules/unicase/u8-is-lowercase-tests: New file.
14564 * tests/unicase/test-u8-is-lowercase.c: New file.
14565 * tests/unicase/test-is-lowercase.h: New file.
14567 New module 'unicase/u32-is-lowercase'.
14568 * lib/unicase/u32-is-lowercase.c: New file.
14569 * modules/unicase/u32-is-lowercase: New file.
14571 New module 'unicase/u16-is-lowercase'.
14572 * lib/unicase/u16-is-lowercase.c: New file.
14573 * modules/unicase/u16-is-lowercase: New file.
14575 New module 'unicase/u8-is-lowercase'.
14576 * lib/unicase/u8-is-lowercase.c: New file.
14577 * modules/unicase/u8-is-lowercase: New file.
14579 Tests for module 'unicase/u32-is-uppercase'.
14580 * modules/unicase/u32-is-uppercase-tests: New file.
14581 * tests/unicase/test-u32-is-uppercase.c: New file.
14583 Tests for module 'unicase/u16-is-uppercase'.
14584 * modules/unicase/u16-is-uppercase-tests: New file.
14585 * tests/unicase/test-u16-is-uppercase.c: New file.
14587 Tests for module 'unicase/u8-is-uppercase'.
14588 * modules/unicase/u8-is-uppercase-tests: New file.
14589 * tests/unicase/test-u8-is-uppercase.c: New file.
14590 * tests/unicase/test-is-uppercase.h: New file.
14592 New module 'unicase/u32-is-uppercase'.
14593 * lib/unicase/u32-is-uppercase.c: New file.
14594 * modules/unicase/u32-is-uppercase: New file.
14596 New module 'unicase/u16-is-uppercase'.
14597 * lib/unicase/u16-is-uppercase.c: New file.
14598 * modules/unicase/u16-is-uppercase: New file.
14600 New module 'unicase/u8-is-uppercase'.
14601 * lib/unicase/u8-is-uppercase.c: New file.
14602 * modules/unicase/u8-is-uppercase: New file.
14604 New module 'unicase/u32-is-invariant'.
14605 * lib/unicase/u32-is-invariant.c: New file.
14606 * modules/unicase/u32-is-invariant: New file.
14608 New module 'unicase/u16-is-invariant'.
14609 * lib/unicase/u16-is-invariant.c: New file.
14610 * modules/unicase/u16-is-invariant: New file.
14612 New module 'unicase/u8-is-invariant'.
14613 * lib/unicase/u8-is-invariant.c: New file.
14614 * lib/unicase/invariant.h: New file.
14615 * lib/unicase/u-is-invariant.h: New file.
14616 * modules/unicase/u8-is-invariant: New file.
14618 Tests for module 'unicase/u32-casecoll'.
14619 * modules/unicase/u32-casecoll-tests: New file.
14620 * tests/unicase/test-u32-casecoll.c: New file.
14622 Tests for module 'unicase/u16-casecoll'.
14623 * modules/unicase/u16-casecoll-tests: New file.
14624 * tests/unicase/test-u16-casecoll.c: New file.
14626 Tests for module 'unicase/u8-casecoll'.
14627 * modules/unicase/u8-casecoll-tests: New file.
14628 * tests/unicase/test-u8-casecoll.c: New file.
14630 New module 'unicase/u32-casecoll'.
14631 * lib/unicase/u32-casecoll.c: New file.
14632 * modules/unicase/u32-casecoll: New file.
14634 New module 'unicase/u16-casecoll'.
14635 * lib/unicase/u16-casecoll.c: New file.
14636 * modules/unicase/u16-casecoll: New file.
14638 New module 'unicase/u8-casecoll'.
14639 * lib/unicase/u8-casecoll.c: New file.
14640 * lib/unicase/u-casecoll.h: New file.
14641 * modules/unicase/u8-casecoll: New file.
14643 New module 'unicase/u32-casexfrm'.
14644 * lib/unicase/u32-casexfrm.c: New file.
14645 * modules/unicase/u32-casexfrm: New file.
14647 New module 'unicase/u16-casexfrm'.
14648 * lib/unicase/u16-casexfrm.c: New file.
14649 * modules/unicase/u16-casexfrm: New file.
14651 New module 'unicase/u8-casexfrm'.
14652 * lib/unicase/u8-casexfrm.c: New file.
14653 * lib/unicase/u-casexfrm.h: New file.
14654 * modules/unicase/u8-casexfrm: New file.
14656 Tests for module 'unicase/u32-casecmp'.
14657 * modules/unicase/u32-casecmp-tests: New file.
14658 * tests/unicase/test-u32-casecmp.c: New file.
14660 Tests for module 'unicase/u16-casecmp'.
14661 * modules/unicase/u16-casecmp-tests: New file.
14662 * tests/unicase/test-u16-casecmp.c: New file.
14664 Tests for module 'unicase/u8-casecmp'.
14665 * modules/unicase/u8-casecmp-tests: New file.
14666 * tests/unicase/test-u8-casecmp.c: New file.
14667 * tests/unicase/test-casecmp.h: New file.
14669 New module 'unicase/u32-casecmp'.
14670 * lib/unicase/u32-casecmp.c: New file.
14671 * modules/unicase/u32-casecmp: New file.
14673 New module 'unicase/u16-casecmp'.
14674 * lib/unicase/u16-casecmp.c: New file.
14675 * modules/unicase/u16-casecmp: New file.
14677 New module 'unicase/u8-casecmp'.
14678 * lib/unicase/u8-casecmp.c: New file.
14679 * lib/unicase/u-casecmp.h: New file.
14680 * modules/unicase/u8-casecmp: New file.
14682 Tests for module 'unicase/u32-casefold'.
14683 * modules/unicase/u32-casefold-tests: New file.
14684 * tests/unicase/test-u32-casefold.c: New file.
14686 Tests for module 'unicase/u16-casefold'.
14687 * modules/unicase/u16-casefold-tests: New file.
14688 * tests/unicase/test-u16-casefold.c: New file.
14690 Tests for module 'unicase/u8-casefold'.
14691 * modules/unicase/u8-casefold-tests: New file.
14692 * tests/unicase/test-u8-casefold.c: New file.
14694 New module 'unicase/u32-casefold'.
14695 * lib/unicase/u32-casefold.c: New file.
14696 * modules/unicase/u32-casefold: New file.
14698 New module 'unicase/u16-casefold'.
14699 * lib/unicase/u16-casefold.c: New file.
14700 * modules/unicase/u16-casefold: New file.
14702 New module 'unicase/u8-casefold'.
14703 * lib/unicase/u8-casefold.c: New file.
14704 * lib/unicase/u-casefold.h: New file.
14705 * modules/unicase/u8-casefold: New file.
14707 New module 'unicase/tocasefold'.
14708 * lib/unicase/casefold.h: New file.
14709 * lib/unicase/tocasefold.c: New file.
14710 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14711 * modules/unicase/tocasefold: New file.
14713 Tests for module 'unicase/u32-totitle'.
14714 * modules/unicase/u32-totitle-tests: New file.
14715 * tests/unicase/test-u32-totitle.c: New file.
14717 Tests for module 'unicase/u16-totitle'.
14718 * modules/unicase/u16-totitle-tests: New file.
14719 * tests/unicase/test-u16-totitle.c: New file.
14721 Tests for module 'unicase/u8-totitle'.
14722 * modules/unicase/u8-totitle-tests: New file.
14723 * tests/unicase/test-u8-totitle.c: New file.
14725 New module 'unicase/u32-totitle'.
14726 * lib/unicase/u32-totitle.c: New file.
14727 * modules/unicase/u32-totitle: New file.
14729 New module 'unicase/u16-totitle'.
14730 * lib/unicase/u16-totitle.c: New file.
14731 * modules/unicase/u16-totitle: New file.
14733 New module 'unicase/u8-totitle'.
14734 * lib/unicase/u8-totitle.c: New file.
14735 * lib/unicase/u-totitle.h: New file.
14736 * modules/unicase/u8-totitle: New file.
14738 Tests for module 'unicase/u32-tolower'.
14739 * modules/unicase/u32-tolower-tests: New file.
14740 * tests/unicase/test-u32-tolower.c: New file.
14742 Tests for module 'unicase/u16-tolower'.
14743 * modules/unicase/u16-tolower-tests: New file.
14744 * tests/unicase/test-u16-tolower.c: New file.
14746 Tests for module 'unicase/u8-tolower'.
14747 * modules/unicase/u8-tolower-tests: New file.
14748 * tests/unicase/test-u8-tolower.c: New file.
14750 New module 'unicase/u32-tolower'.
14751 * lib/unicase/u32-tolower.c: New file.
14752 * modules/unicase/u32-tolower: New file.
14754 New module 'unicase/u16-tolower'.
14755 * lib/unicase/u16-tolower.c: New file.
14756 * modules/unicase/u16-tolower: New file.
14758 New module 'unicase/u8-tolower'.
14759 * lib/unicase/u8-tolower.c: New file.
14760 * modules/unicase/u8-tolower: New file.
14762 Tests for module 'unicase/u32-toupper'.
14763 * modules/unicase/u32-toupper-tests: New file.
14764 * tests/unicase/test-u32-toupper.c: New file.
14766 Tests for module 'unicase/u16-toupper'.
14767 * modules/unicase/u16-toupper-tests: New file.
14768 * tests/unicase/test-u16-toupper.c: New file.
14770 Tests for module 'unicase/u8-toupper'.
14771 * modules/unicase/u8-toupper-tests: New file.
14772 * tests/unicase/test-u8-toupper.c: New file.
14774 New module 'unicase/u32-toupper'.
14775 * lib/unicase/u32-toupper.c: New file.
14776 * modules/unicase/u32-toupper: New file.
14778 New module 'unicase/u16-toupper'.
14779 * lib/unicase/u16-toupper.c: New file.
14780 * modules/unicase/u16-toupper: New file.
14782 New module 'unicase/u8-toupper'.
14783 * lib/unicase/u8-toupper.c: New file.
14784 * modules/unicase/u8-toupper: New file.
14786 New module 'unicase/u32-casemap'.
14787 * lib/unicase/u32-casemap.c: New file.
14788 * modules/unicase/u32-casemap: New file.
14790 New module 'unicase/u16-casemap'.
14791 * lib/unicase/u16-casemap.c: New file.
14792 * modules/unicase/u16-casemap: New file.
14794 New module 'unicase/u8-casemap'.
14795 * lib/unicase/unicasemap.h: New file.
14796 * lib/unicase/u8-casemap.c: New file.
14797 * lib/unicase/u-casemap.h: New file.
14798 * modules/unicase/u8-casemap: New file.
14800 New module 'unicase/special-casing'.
14801 * lib/unicase/special-casing.h: New file.
14802 * lib/unicase/special-casing.c: New file.
14803 * lib/unicase/special-casing-table.gperf: New file, generated by
14805 * modules/unicase/special-casing: New file.
14807 Tests for module 'unicase/locale-language'.
14808 * modules/unicase/locale-language-tests: New file.
14809 * tests/unicase/test-locale-language.sh: New file.
14810 * tests/unicase/test-locale-language.c: New file.
14812 New module 'unicase/locale-language'.
14813 * lib/unicase/locale-language.c: New file.
14814 * lib/unicase/locale-languages.gperf: New file.
14815 * modules/unicase/locale-language: New file.
14817 Generate more tables for case conversion and case folding.
14818 * lib/gen-uni-tables.c (SCC_*): New enum items.
14819 (struct special_casing_rule): New type.
14820 (casing_rules, num_casing_rules, allocated_casing_rules): New
14822 (add_casing_rule, fill_casing_rules): New functions.
14823 (struct casefold_rule): New type.
14824 (casefolding_rules, num_casefolding_rules,
14825 allocated_casefolding_rules): New variables.
14826 (fill_casefolding_rules): New function.
14827 (unicode_casefold): New variable.
14828 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14829 sort_casing_rules, output_casing_rules): New functions.
14830 (main): Accept to more arguments: SpecialCasing.txt and
14831 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14832 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14833 Output mapping for casefolding.
14835 * lib/unicase.h: Include stdbool.h, uninorm.h.
14836 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14837 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14838 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14840 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14842 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14843 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14845 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14846 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14847 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14848 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14850 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14852 2009-03-08 Bruno Haible <bruno@clisp.org>
14854 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14855 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14856 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14857 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14859 2009-03-07 Bruno Haible <bruno@clisp.org>
14861 Adjust u*_normcmp, u*_normcoll API.
14862 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14863 u16_normcoll, u32_normcoll): Change failure conventions.
14864 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14865 errno and return -1.
14866 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14868 2009-03-07 Bruno Haible <bruno@clisp.org>
14870 Tests for module 'uninorm/u32-normcoll'.
14871 * modules/uninorm/u32-normcoll-tests: New file.
14872 * tests/uninorm/test-u32-normcoll.c: New file.
14874 Tests for module 'uninorm/u16-normcoll'.
14875 * modules/uninorm/u16-normcoll-tests: New file.
14876 * tests/uninorm/test-u16-normcoll.c: New file.
14878 Tests for module 'uninorm/u8-normcoll'.
14879 * modules/uninorm/u8-normcoll-tests: New file.
14880 * tests/uninorm/test-u8-normcoll.c: New file.
14882 2009-03-07 Bruno Haible <bruno@clisp.org>
14884 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14885 tests/uninorm/test-u32-normcmp.c.
14886 * tests/uninorm/test-u32-normcmp.c: Include it.
14887 (test_nonascii): New function, extracted from main. Add some more
14889 (main): Invoke test_ascii and test_nonascii.
14890 * modules/uninorm/u32-normcmp-tests (Files): Add
14891 tests/uninorm/test-u32-normcmp.h.
14892 (Depends-on): Remove uninorm/u32-normcmp.
14894 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14895 tests/uninorm/test-u16-normcmp.c.
14896 * tests/uninorm/test-u16-normcmp.c: Include it.
14897 (test_nonascii): New function, extracted from main. Add some more
14899 (main): Invoke test_ascii and test_nonascii.
14900 * modules/uninorm/u16-normcmp-tests (Files): Add
14901 tests/uninorm/test-u16-normcmp.h.
14902 (Depends-on): Remove uninorm/u16-normcmp.
14904 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14905 tests/uninorm/test-u8-normcmp.c.
14906 * tests/uninorm/test-u8-normcmp.c: Include it.
14907 (test_nonascii): New function, extracted from main. Add some more
14909 (main): Invoke test_ascii and test_nonascii.
14910 * modules/uninorm/u8-normcmp-tests (Files): Add
14911 tests/uninorm/test-u8-normcmp.h.
14912 (Depends-on): Remove uninorm/u8-normcmp.
14914 2009-03-07 Bruno Haible <bruno@clisp.org>
14916 New module 'uninorm/u32-normcoll'.
14917 * lib/uninorm/u32-normcoll.c: New file.
14918 * modules/uninorm/u32-normcoll: New file.
14920 New module 'uninorm/u16-normcoll'.
14921 * lib/uninorm/u16-normcoll.c: New file.
14922 * modules/uninorm/u16-normcoll: New file.
14924 New module 'uninorm/u8-normcoll'.
14925 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14927 * lib/uninorm/u8-normcoll.c: New file.
14928 * lib/uninorm/u-normcoll.h: New file.
14929 * modules/uninorm/u8-normcoll: New file.
14931 New module 'uninorm/u32-normxfrm'.
14932 * lib/uninorm/u32-normxfrm.c: New file.
14933 * modules/uninorm/u32-normxfrm: New file.
14935 New module 'uninorm/u16-normxfrm'.
14936 * lib/uninorm/u16-normxfrm.c: New file.
14937 * modules/uninorm/u16-normxfrm: New file.
14939 New module 'uninorm/u8-normxfrm'.
14940 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14942 * lib/uninorm/u8-normxfrm.c: New file.
14943 * lib/uninorm/u-normxfrm.h: New file.
14944 * modules/uninorm/u8-normxfrm: New file.
14946 2009-03-07 Bruno Haible <bruno@clisp.org>
14948 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14949 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14950 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14952 2009-03-07 Bruno Haible <bruno@clisp.org>
14954 New module 'memxfrm'.
14955 * lib/memxfrm.h: New file.
14956 * lib/memxfrm.c: New file.
14957 * modules/memxfrm: New file.
14959 2009-03-07 Bruno Haible <bruno@clisp.org>
14961 New module 'memcmp2'.
14962 * lib/memcmp2.h: New file.
14963 * lib/memcmp2.c: New file.
14964 * modules/memcmp2: New file.
14966 2009-03-07 Bruno Haible <bruno@clisp.org>
14968 Tests for module 'uninorm/decomposing-form'.
14969 * modules/uninorm/decomposing-form-tests: New file.
14970 * tests/uninorm/test-decomposing-form.c: New file.
14972 New module 'uninorm/decomposing-form'.
14973 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14974 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14975 Add 'decomposing_variant' field.
14976 * lib/uninorm/decomposing-form.c: New file.
14977 * lib/uninorm/nfc.c (uninorm_nfc): Update.
14978 * lib/uninorm/nfd.c (uninorm_nfd): Update.
14979 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14980 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14981 * modules/uninorm/decomposing-form: New file.
14982 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14983 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14985 2009-03-07 Bruno Haible <bruno@clisp.org>
14987 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14990 2009-03-06 Bruno Haible <bruno@clisp.org>
14992 Tests for module 'uninorm/u32-normcmp'.
14993 * tests/uninorm/test-u32-normcmp.c: New file.
14994 * modules/uninorm/u32-normcmp-tests: New file.
14996 Tests for module 'uninorm/u16-normcmp'.
14997 * tests/uninorm/test-u16-normcmp.c: New file.
14998 * modules/uninorm/u16-normcmp-tests: New file.
15000 Tests for module 'uninorm/u8-normcmp'.
15001 * tests/uninorm/test-u8-normcmp.c: New file.
15002 * modules/uninorm/u8-normcmp-tests: New file.
15004 New module 'uninorm/u32-normcmp'.
15005 * lib/uninorm/u32-normcmp.c: New file.
15006 * modules/uninorm/u32-normcmp: New file.
15008 New module 'uninorm/u16-normcmp'.
15009 * lib/uninorm/u16-normcmp.c: New file.
15010 * modules/uninorm/u16-normcmp: New file.
15012 New module 'uninorm/u8-normcmp'.
15013 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15015 * lib/uninorm/u8-normcmp.c: New file.
15016 * lib/uninorm/u-normcmp.h: New file.
15017 * modules/uninorm/u8-normcmp: New file.
15019 2009-03-06 Bruno Haible <bruno@clisp.org>
15021 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15022 Reported by Eric Blake.
15024 2009-03-06 Eric Blake <ebb9@byu.net>
15025 Bruno Haible <bruno@clisp.org>
15027 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15028 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15030 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15031 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15033 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15035 2009-03-06 Eric Blake <ebb9@byu.net>
15037 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15038 to avoid compiler warnings.
15039 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15041 2009-03-05 Bruno Haible <bruno@clisp.org>
15043 * tests/test-ftell.c (main): Disable test beyond end of file on
15045 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15047 2009-03-05 Kamil Dudka <kdudka@redhat.com>
15049 * lib/filevercmp.c: Move hidden files up in ordering.
15050 * tests/test-filevercmp.c: Add tests for hidden files.
15052 2009-03-04 Bruno Haible <bruno@clisp.org>
15054 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15055 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15057 Reported by Simon Josefsson.
15059 2009-03-03 Bruno Haible <bruno@clisp.org>
15061 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15062 Reported by Simon Josefsson.
15064 * doc/ld-version-script.texi: Update node reference.
15066 2009-03-03 Bruno Haible <bruno@clisp.org>
15068 * modules/visibility (License): Change to 'unlimited'.
15069 Suggested by Simon Josefsson.
15071 2009-03-03 Jim Meyering <meyering@redhat.com>
15073 unlinkdir: cannot_unlink_dir may modify process state
15074 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15075 it's neither thread-safe nor appropriate for use in a library.
15077 2009-03-03 Eric Blake <ebb9@byu.net>
15079 test-closein: silence test under Darwin
15080 * tests/test-closein.sh: Ignore stderr from cat, since we don't
15081 care if it dies from EPIPE or EBADF.
15083 2009-03-03 Bruno Haible <bruno@clisp.org>
15085 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15087 * doc/visibility.texi: Fix @node and @section.
15089 2009-03-03 Simon Josefsson <simon@josefsson.org>
15091 * doc/gnulib.texi: Link to sections for ld version script and
15093 * doc/visibility.texi: Add @node and @section.
15094 * modules/ld-version-script: New module.
15095 * m4/ld-version-script.m4: New file.
15096 * doc/ld-version-script.texi: New file.
15098 2009-03-02 David Lutterkort <lutter@redhat.com>
15100 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15101 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15103 2009-03-02 Bruno Haible <bruno@clisp.org>
15105 * doc/visibility.texi: Mention libtool's -export-symbols option.
15107 2009-03-02 Jim Meyering <meyering@redhat.com>
15109 announce-gen: new option: --no-print-checksums
15110 * build-aux/announce-gen (usage): Describe it.
15111 (print_checksums): Print a newline here, not in the [*] footnote.
15114 2009-03-01 Bruno Haible <bruno@clisp.org>
15116 Use socklen_t in the native Windows replacements prototypes.
15117 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15119 * lib/getsockopt.c (rpl_getsockopt): Likewise.
15120 * lib/setsockopt.c (rpl_setsockopt): Likewise.
15121 * modules/getsockopt (Depends-on): Add socklen.
15122 * modules/setsockopt (Depends-on): Add socklen.
15124 2009-03-01 Bruno Haible <bruno@clisp.org>
15126 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15129 2009-03-01 Eric Blake <ebb9@byu.net>
15130 Bruno Haible <bruno@clisp.org>
15132 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15134 * lib/wait-process.c (wait_subprocess): Omit error message about
15135 deadly signal sent to the child of termsigp != NULL.
15137 2009-03-01 Eric Blake <ebb9@byu.net>
15139 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15141 2009-03-01 Bruno Haible <bruno@clisp.org>
15143 Avoid a gcc warning.
15144 * tests/test-sched.c (b): Make global.
15145 Reported by Eric Blake.
15147 2009-01-19 Martin Lambers <marlam@marlam.de>
15149 Provide POSIX semantics for socket timeout options on W32.
15150 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15151 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15152 * modules/setsockopt: Depend on sys_time module for struct timeval.
15153 * modules/getsockopt: Depend on sys_time module for struct timeval.
15155 2009-03-01 Simon Josefsson <simon@josefsson.org>
15157 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15158 __USE_GNU, for consistency with netdb.in.h.
15159 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15161 2009-03-01 Bruno Haible <bruno@clisp.org>
15163 More support for FreeMiNT.
15164 * lib/fseeko.c (rpl_fseeko): Complete last commit.
15165 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15167 2009-03-01 Bruno Haible <bruno@clisp.org>
15169 More support for FreeMiNT.
15170 * lib/fpurge.c (fpurge): Correct last commit.
15171 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15173 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15175 Fix unportable awk script in vc-list-files.
15176 * build-aux/vc-list-files: In the replacement awk script, use
15177 substr with a second argument of 1, not zero.
15178 Report by Simon Josefsson.
15180 2009-02-28 Bruno Haible <bruno@clisp.org>
15182 More support for FreeMiNT.
15183 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15185 * lib/fwriting.c (fwriting): Likewise.
15186 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15188 2009-02-28 Bruno Haible <bruno@clisp.org>
15190 * tests/test-freadseek.c (main): Disable test beyond end of file on
15192 * tests/test-ftello.c (main): Likewise.
15193 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15195 2009-02-28 Bruno Haible <bruno@clisp.org>
15197 Add tentative support for FreeMiNT.
15198 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15199 * lib/fpurge.c (fpurge): Likewise.
15200 * lib/freadable.c (freadable): Likewise.
15201 * lib/freading.c (freading): Likewise.
15202 * lib/freadptr.c (freadptr): Likewise.
15203 * lib/freadseek.c (freadptrinc): Likewise.
15204 * lib/fseeko.c (rpl_fseeko): Likewise.
15205 * lib/fseterr.c (fseterr): Likewise.
15206 * lib/fwritable.c (fwritable): Likewise.
15207 * lib/fwriting.c (fwriting): Likewise.
15208 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15210 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15212 2009-02-28 Bruno Haible <bruno@clisp.org>
15214 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15216 Reported by Jim Meyering.
15218 2009-02-28 Bruno Haible <bruno@clisp.org>
15220 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15221 Mention the results of these tests on various platforms.
15222 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15224 * doc/posix-functions/printf.texi: Likewise.
15225 * doc/posix-functions/snprintf.texi: Likewise.
15226 * doc/posix-functions/sprintf.texi: Likewise.
15227 * doc/posix-functions/vfprintf.texi: Likewise.
15228 * doc/posix-functions/vprintf.texi: Likewise.
15229 * doc/posix-functions/vsnprintf.texi: Likewise.
15230 * doc/posix-functions/vsprintf.texi: Likewise.
15231 * doc/glibc-functions/obstack_printf.texi: Likewise.
15232 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15234 2009-02-28 Bruno Haible <bruno@clisp.org>
15236 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15237 Reported by Loïc Minier <lool@dooz.org>.
15239 2009-02-27 Bruno Haible <bruno@clisp.org>
15241 * gnulib-tool (func_import): Make the sed expression used to create the
15242 sed script for updating the .gitignore file POSIX compliant.
15243 Reported by Eric Blake.
15245 2009-02-27 Bruno Haible <bruno@clisp.org>
15247 * gnulib-tool (sed): Don't alias as "sed --posix".
15248 Reported by Eric Blake.
15250 2009-02-27 Bruno Haible <bruno@clisp.org>
15252 Avoid test link errors.
15253 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15254 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15255 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15256 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15257 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15259 2009-02-27 Bruno Haible <bruno@clisp.org>
15261 Avoid spurious "(cached)" in configure output.
15262 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15263 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15264 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15265 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15266 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15267 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15268 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15269 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15270 Reported by Eric Blake.
15272 2009-02-27 Eric Blake <ebb9@byu.net>
15274 printf: fix regression in previous patch
15275 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15277 2009-02-27 Bruno Haible <bruno@clisp.org>
15279 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15281 * lib/stdint.in.h: Likewise.
15282 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15284 2009-02-27 Eric Blake <ebb9@byu.net>
15286 doc: mention more functions added in cygwin 1.7.0
15287 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15289 * doc/posix-functions/open_wmemstream.texi: Likewise.
15290 * doc/posix-functions/wcsnlen.texi: Likewise.
15291 * doc/posix-functions/wcsnrtombs.texi: Likewise.
15292 * doc/posix-functions/wcstod.texi: Likewise.
15293 * doc/posix-functions/wcstof.texi: Likewise.
15294 * doc/posix-functions/wcstoimax.texi: Likewise.
15295 * doc/posix-functions/wcstok.texi: Likewise.
15296 * doc/posix-functions/wcstoumax.texi: Likewise.
15298 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15299 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15300 * doc/posix-functions/fprintf.texi: Update.
15301 * doc/posix-functions/printf.texi: Update.
15302 * doc/posix-functions/snprintf.texi: Update.
15303 * doc/posix-functions/sprintf.texi: Update.
15304 * doc/posix-functions/vfprintf.texi: Update.
15305 * doc/posix-functions/vprintf.texi: Update.
15306 * doc/posix-functions/vsnprintf.texi: Update.
15307 * doc/posix-functions/vsprintf.texi: Update.
15308 * doc/glibc-functions/obstack_printf.texi: Update.
15309 * doc/glibc-functions/obstack_vprintf.texi: Update.
15311 2009-02-26 Eric Blake <ebb9@byu.net>
15313 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15314 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15315 compilation bug by using runtime conversion.
15316 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15317 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15318 * modules/ceill-tests (Files): Use nan.h.
15319 * modules/floorl-tests (Files): Likewise.
15320 * modules/frexpl-tests (Files): Likewise.
15321 * modules/isnanl-tests (Files): Likewise.
15322 * modules/ldexpl-tests (Files): Likewise.
15323 * modules/roundl-tests (Files): Likewise.
15324 * modules/truncl-tests (Files): Likewise.
15325 * tests/test-ceill.c (main): Use a working NaN.
15326 * tests/test-floorl.c (main): Likewise.
15327 * tests/test-frexpl.c (main): Likewise.
15328 * tests/test-isnan.c (test_long_double): Likewise.
15329 * tests/test-isnanl.h (main): Likewise.
15330 * tests/test-ldexpl.h (main): Likewise.
15331 * tests/test-roundl.h (main): Likewise.
15332 * tests/test-truncl.h (main): Likewise.
15333 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15335 2009-02-26 Eric Blake <ebb9@byu.net>
15336 Bruno Haible <bruno@clisp.org>
15338 Work around a *printf bug with %ls on Solaris.
15339 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15340 precision is specified, sprintf stops converting the wide string
15341 argument when the number of bytes that have been produced by this
15342 conversion equals or exceeds the precision.
15343 * doc/posix-functions/fprintf.texi: Update.
15344 * doc/posix-functions/printf.texi: Update.
15345 * doc/posix-functions/snprintf.texi: Update.
15346 * doc/posix-functions/sprintf.texi: Update.
15347 * doc/posix-functions/vfprintf.texi: Update.
15348 * doc/posix-functions/vprintf.texi: Update.
15349 * doc/posix-functions/vsnprintf.texi: Update.
15350 * doc/posix-functions/vsprintf.texi: Update.
15351 * doc/glibc-functions/obstack_printf.texi: Update.
15352 * doc/glibc-functions/obstack_vprintf.texi: Update.
15354 2009-02-26 Eric Blake <ebb9@byu.net>
15356 stdlib: favor compiler check of random.h
15357 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
15358 to avoid an ObjC random.h installed by Swarm.
15360 2009-02-26 Bruno Haible <bruno@clisp.org>
15362 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15363 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15364 Reported by Gary V. Vaughan <gary@gnu.org>.
15366 2009-02-26 Bruno Haible <bruno@clisp.org>
15368 Fix *printf behaviour regarding the %ls directive.
15369 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15370 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15371 NEED_PRINTF_DIRECTIVE_LS.
15372 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15373 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15374 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15375 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15376 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15377 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15378 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15379 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15380 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15381 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15382 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15383 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15384 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15385 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15386 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15387 * doc/posix-functions/fprintf.texi: Update.
15388 * doc/posix-functions/printf.texi: Update.
15389 * doc/posix-functions/snprintf.texi: Update.
15390 * doc/posix-functions/sprintf.texi: Update.
15391 * doc/posix-functions/vfprintf.texi: Update.
15392 * doc/posix-functions/vprintf.texi: Update.
15393 * doc/posix-functions/vsnprintf.texi: Update.
15394 * doc/posix-functions/vsprintf.texi: Update.
15395 * doc/glibc-functions/obstack_printf.texi: Update.
15396 * doc/glibc-functions/obstack_vprintf.texi: Update.
15397 Reported by Eric Blake.
15399 2009-02-25 Bruno Haible <bruno@clisp.org>
15401 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15403 Reported by Gary V. Vaughan <gary@gnu.org>.
15405 2009-02-25 Bruno Haible <bruno@clisp.org>
15407 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15408 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15409 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15410 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15411 Reported by Gary V. Vaughan <gary@gnu.org>.
15413 2009-02-25 Bruno Haible <bruno@clisp.org>
15415 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15416 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15417 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15418 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15419 Reported by Gary V. Vaughan <gary@gnu.org>.
15421 2009-02-25 Eric Blake <ebb9@byu.net>
15423 tests: skip fseek/ftell tests if ungetc is broken
15424 * m4/ungetc.m4: New file.
15425 * modules/fseek-tests: Split test, so ungetc dependency is
15426 separate from rest of test.
15427 * modules/fseeko-tests: Likewise.
15428 * modules/ftell-tests: Likewise.
15429 * modules/ftello-tests: Likewise.
15430 * tests/test-fseek.c (main): Isolate ungetc dependency.
15431 * tests/test-fseeko.c (main): Likewise.
15432 * tests/test-ftell.c (main): Likewise.
15433 * tests/test-ftello.c (main): Likewise.
15434 * tests/test-fseek2.sh: New file.
15435 * tests/test-fseeko2.sh: Likewise.
15436 * tests/test-ftell2.sh: Likewise.
15437 * tests/test-ftello2.sh: Likewise.
15439 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
15441 test-getaddrinfo: fix usage of skip return code 77
15442 * tests/test-gettaddrinfo.c: Return skip code 77 only
15443 for first occurance of skip (4x77 is not 77)
15445 2009-02-25 Gary V. Vaughan <gary@gnu.org>
15447 strtod: avoid C99 decl-after-statement
15448 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15450 2009-02-24 Eric Blake <ebb9@byu.net>
15452 strtod: detect HP-UX 11.31 bug
15453 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15454 Reported by Gary V. Vaughan.
15456 2009-02-23 Bruno Haible <bruno@clisp.org>
15458 Fix invalid read past end of memory block.
15459 * lib/vasnprintf.c (DCHAR_SET): Define.
15460 (local_wcslen): Define only when needed.
15461 (local_strnlen, local_wcsnlen): New functions.
15462 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15463 directives that involve a conversion ourselves.
15464 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15465 wcsnlen, mbrtowc, wcrtomb.
15466 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15467 * tests/test-vasprintf-posix.c (test_function): Likewise.
15468 * tests/test-snprintf-posix.h (test_function): Likewise.
15469 * tests/test-sprintf-posix.h (test_function): Likewise.
15470 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15472 2009-02-22 Bruno Haible <bruno@clisp.org>
15474 Implement new clarified decomposition of Hangul syllables.
15475 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15476 of type LTV, return only a pairwise decomposition.
15477 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15479 * tests/uninorm/test-decomposition.c (main): Updated expected result.
15480 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15481 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15483 2009-02-22 Bruno Haible <bruno@clisp.org>
15485 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15486 zero-length results and shrink excess allocated memory.
15487 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15488 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15489 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15490 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15491 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15492 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15493 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15494 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15495 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15496 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15497 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15498 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15500 2009-02-21 Bruno Haible <bruno@clisp.org>
15502 * doc/gnulib.texi: Include safe-alloc.texi earlier.
15503 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15504 spaces after a period. Put a space between a macro name and its
15505 argument list. Trivial rewordings.
15506 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15507 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15508 (main): Return 0 explicitly.
15510 2009-02-21 Bruno Haible <bruno@clisp.org>
15512 Tests for module 'uninorm/filter'.
15513 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15514 * modules/uninorm/filter-tests: New file.
15516 New module 'uninorm/filter'.
15517 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15518 uninorm_filter_flush, uninorm_filter_free): New declarations.
15519 * lib/uninorm/uninorm-filter.c: New file.
15520 * modules/uninorm/filter: New file.
15522 2009-02-21 Bruno Haible <bruno@clisp.org>
15524 Tests for module 'uninorm/nfkc'.
15525 * tests/uninorm/test-nfkc.c: New file.
15526 * tests/uninorm/test-u8-nfkc.c: New file.
15527 * tests/uninorm/test-u16-nfkc.c: New file.
15528 * tests/uninorm/test-u32-nfkc.c: New file.
15529 * tests/uninorm/test-u32-nfkc-big.sh: New file.
15530 * tests/uninorm/test-u32-nfkc-big.c: New file.
15531 * modules/uninorm/nfkc-tests: New file.
15533 New module 'uninorm/nfkc'.
15534 * lib/uninorm/nfkc.c: New file.
15535 * modules/uninorm/nfkc: New file.
15537 Tests for module 'uninorm/nfkd'.
15538 * tests/uninorm/test-nfkd.c: New file.
15539 * tests/uninorm/test-u8-nfkd.c: New file.
15540 * tests/uninorm/test-u16-nfkd.c: New file.
15541 * tests/uninorm/test-u32-nfkd.c: New file.
15542 * tests/uninorm/test-u32-nfkd-big.sh: New file.
15543 * tests/uninorm/test-u32-nfkd-big.c: New file.
15544 * modules/uninorm/nfkd-tests: New file.
15546 New module 'uninorm/nfkd'.
15547 * lib/uninorm/nfkd.c: New file.
15548 * modules/uninorm/nfkd: New file.
15550 Tests for module 'uninorm/nfc'.
15551 * tests/uninorm/test-nfc.c: New file.
15552 * tests/uninorm/test-u8-nfc.c: New file.
15553 * tests/uninorm/test-u16-nfc.c: New file.
15554 * tests/uninorm/test-u32-nfc.c: New file.
15555 * tests/uninorm/test-u32-nfc-big.sh: New file.
15556 * tests/uninorm/test-u32-nfc-big.c: New file.
15557 * modules/uninorm/nfc-tests: New file.
15559 New module 'uninorm/nfc'.
15560 * lib/uninorm/nfc.c: New file.
15561 * modules/uninorm/nfc: New file.
15563 Tests for module 'uninorm/nfd'.
15564 * tests/uninorm/test-nfd.c: New file.
15565 * tests/uninorm/test-u8-nfd.c: New file.
15566 * tests/uninorm/test-u16-nfd.c: New file.
15567 * tests/uninorm/test-u32-nfd.c: New file.
15568 * tests/uninorm/test-u32-nfd-big.sh: New file.
15569 * tests/uninorm/test-u32-nfd-big.c: New file.
15570 * tests/uninorm/test-u32-normalize-big.h: New file.
15571 * tests/uninorm/test-u32-normalize-big.c: New file.
15572 * tests/uninorm/NormalizationTest.txt: New file, created from
15573 Unicode 5.1.0 NormalizationTest.txt.
15574 * modules/uninorm/nfd-tests: New file.
15576 New module 'uninorm/nfd'.
15577 * lib/uninorm/nfd.c: New file.
15578 * modules/uninorm/nfd: New file.
15580 New module 'uninorm/u32-normalize'.
15581 * lib/uninorm/u32-normalize.c: New file.
15582 * modules/uninorm/u32-normalize: New file.
15584 New module 'uninorm/u16-normalize'.
15585 * lib/uninorm/u16-normalize.c: New file.
15586 * modules/uninorm/u16-normalize: New file.
15588 New module 'uninorm/u8-normalize'.
15589 * lib/uninorm/u8-normalize.c: New file.
15590 * lib/uninorm/normalize-internal.h: New file.
15591 * lib/uninorm/u-normalize-internal.h: New file.
15592 * modules/uninorm/u8-normalize: New file.
15594 New module 'uninorm/decompose-internal'.
15595 * lib/uninorm/decompose-internal.c: New file.
15596 * modules/uninorm/decompose-internal: New file.
15598 Tests for module 'uninorm/composition'.
15599 * tests/uninorm/test-composition.c: New file.
15600 * modules/uninorm/composition-tests: New file.
15602 New module 'uninorm/composition'.
15603 * lib/uninorm/composition.c: New file.
15604 * lib/uninorm/composition-table.gperf: New file, generated by
15606 * modules/uninorm/composition: New file.
15608 Tests for module 'uninorm/compat-decomposition'.
15609 * tests/uninorm/test-compat-decomposition.c: New file.
15610 * modules/uninorm/compat-decomposition-tests: New file.
15612 New module 'uninorm/compat-decomposition'.
15613 * lib/uninorm/decompose-internal.h: New file.
15614 * lib/uninorm/compat-decomposition.c: New file.
15615 * modules/uninorm/compat-decomposition: New file.
15617 Tests for module 'uninorm/canonical-decomposition'.
15618 * tests/uninorm/test-canonical-decomposition.c: New file.
15619 * modules/uninorm/canonical-decomposition-tests: New file.
15621 New module 'uninorm/canonical-decomposition'.
15622 * lib/uninorm/canonical-decomposition.c: New file.
15623 * modules/uninorm/canonical-decomposition: New file.
15625 Tests for module 'uninorm/decomposition'.
15626 * tests/uninorm/test-decomposition.c: New file.
15627 * modules/uninorm/decomposition-tests: New file.
15629 New module 'uninorm/decomposition'.
15630 * lib/uninorm/decomposition.c: New file.
15631 * modules/uninorm/decomposition: New file.
15633 New module 'uninorm/decomposition-table'.
15634 * lib/uninorm/decomposition-table.h: New file.
15635 * lib/uninorm/decomposition-table.c: New file.
15636 * lib/uninorm/decomposition-table1.h: New file, generated by
15638 * lib/uninorm/decomposition-table2.h: New file, generated by
15640 * modules/uninorm/decomposition-table: New file.
15642 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15643 (UC_DECOMP_*): New enumeration items.
15644 (get_decomposition): New function.
15645 (struct decomp_table): New type.
15646 (output_decomposition, output_decomposition_tables): New functions.
15647 (unicode_composition_exclusions): New variable.
15648 (fill_composition_exclusions, debug_output_composition_tables): New
15650 (main): Accept one more argument. Invoke fill_composition_exclusions.
15651 Output decomposition and composition tables.
15653 New module 'uninorm/base'.
15654 * lib/uninorm.h: New file.
15655 * lib/unictype.h: Update comment.
15656 * modules/uninorm/base: New file.
15658 2009-02-21 David Lutterkort <lutter@redhat.com>
15660 Tests for module 'safe-alloc'.
15661 * tests/test-safe-alloc.c: New file.
15662 * modules/safe-alloc-tests: New file.
15664 New module 'safe-alloc'.
15665 * lib/safe-alloc.h: New file.
15666 * lib/safe-alloc.c: New file.
15667 * m4/safe-alloc.m4: New file.
15668 * modules/safe-alloc: New file.
15669 * doc/safe-alloc.texi: New file.
15670 * doc/gnulib.texi: Include it.
15671 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15674 2009-02-18 Bruno Haible <bruno@clisp.org>
15676 Fix link error on non-glibc systems.
15677 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15679 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15681 2009-02-18 Jim Meyering <meyering@redhat.com>
15683 fts: avoid used-uninitialized error due to recent change
15684 * lib/fts.c (fts_read): Guard uses of the new member,
15685 parent->fts_n_dirs_remaining, since it's not relevant for
15686 the parent of a directory specified on the command-line.
15688 2009-02-17 James Youngman <jay@gnu.org>
15689 Bruno Haible <bruno@clisp.org>
15691 * m4/include_next.m4: Reformulate comment.
15693 2009-02-16 Jim Meyering <meyering@redhat.com>
15695 fts: add #if guards so that the fts_lgpl module still builds
15696 * lib/fts.c: Guard just-added hash-table-using parts with
15697 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15698 Reported by Simon Josefsson.
15700 2009-02-15 Bruno Haible <bruno@clisp.org>
15702 * modules/array-mergesort-tests: New file.
15703 * tests/test-array-mergesort.c: New file.
15705 New module 'array-mergesort'.
15706 * modules/array-mergesort: New file.
15707 * lib/array-mergesort.h: New file.
15709 2009-02-15 Bruno Haible <bruno@clisp.org>
15711 Fix 2009-02-07 commit.
15712 * lib/gen-uni-tables.c (output_predicate, output_category,
15713 output_combclass, output_bidi_category, output_decimal_digit,
15714 output_digit, output_numeric, output_mirror, output_scripts,
15715 output_ident_category, output_simple_mapping): Fix format directives.
15716 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15718 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
15720 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15721 fixes are available from IBM.
15723 2009-02-13 Jim Meyering <meyering@redhat.com>
15725 fts: arrange not to stat non-directories in more cases
15726 This makes GNU find (when it doesn't need to stat each file)
15727 *much* more efficient at traversing reiserfs file systems.
15728 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15729 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15730 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15731 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15732 (leaf_optimization_applies): New function.
15733 (LCO_hash, LCO_compare): New helper functions.
15734 (link_count_optimize_ok): New function.
15735 (fts_stat): Initialize new member (if dir).
15736 (fts_read): Decrement parent's fts_n_dirs_remaining count if
15737 we've just stat'ed a directory. Skip the stat call when possible.
15739 Note this AFS-related exchange:
15740 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15741 and note find's pioctl call in find/fstype.c.
15742 But that is necessary only if you want to enable the
15743 optimization for AFS, and for now, I don't.
15745 fts: move a function definition "up" (no semantic change)
15746 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15747 "up" to precede upcoming use of a related function.
15749 2009-02-11 Jim Meyering <meyering@redhat.com>
15751 fts: correct internal computation of nlinks (optimization-related)
15752 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15753 whether the current entry is a directory, so don't test it.
15755 2009-02-10 Bruno Haible <bruno@clisp.org>
15757 Tests for module 'uniwbrk/ulc-wordbreaks'.
15758 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15759 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15760 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15762 Tests for module 'uniwbrk/u32-wordbreaks'.
15763 * modules/uniwbrk/u32-wordbreaks-tests: New file.
15764 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15766 Tests for module 'uniwbrk/u16-wordbreaks'.
15767 * modules/uniwbrk/u16-wordbreaks-tests: New file.
15768 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15770 Tests for module 'uniwbrk/u8-wordbreaks'.
15771 * modules/uniwbrk/u8-wordbreaks-tests: New file.
15772 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15774 2009-02-10 Bruno Haible <bruno@clisp.org>
15776 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15778 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15779 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15780 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15782 2009-02-10 Simon Josefsson <simon@josefsson.org>
15784 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15785 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
15787 2009-02-10 Bruno Haible <bruno@clisp.org>
15789 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15790 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15791 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15792 * lib/unilbrk/u8-possible-linebreaks.c: Update.
15793 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15794 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15796 2009-02-09 Simon Josefsson <simon@josefsson.org>
15798 * lib/sockets.h (gl_fd_to_handle): New function.
15800 * tests/test-sockets.c: Call gl_fd_to_handle.
15802 2009-02-09 Bruno Haible <bruno@clisp.org>
15804 * doc/havelib.texi: Document the conventions on bi-arch systems.
15806 2009-02-08 Bruno Haible <bruno@clisp.org>
15808 Document the AC_LIB_LINKFLAGS macro.
15809 * doc/havelib.texi: New file, mostly written on 2005-05-24.
15810 * doc/gnulib.texi: Include it.
15812 2009-02-08 Bruno Haible <bruno@clisp.org>
15814 Fix wrong order of sections, compared to TOC.
15815 * doc/gnulib.texi: Include relocatable-maint.texi after the
15816 "Regular expressions" node, not before.
15818 2009-02-08 Bruno Haible <bruno@clisp.org>
15820 Tests for module 'unicase/totitle'.
15821 * modules/unicase/totitle-tests: New file.
15823 Tests for module 'unicase/tolower'.
15824 * modules/unicase/tolower-tests: New file.
15826 Tests for module 'unicase/toupper'.
15827 * modules/unicase/toupper-tests: New file.
15828 * tests/unicase/test-mapping-part1.h: New file.
15829 * tests/unicase/test-mapping-part2.h: New file.
15831 New module 'unicase/totitle'.
15832 * modules/unicase/totitle: New file.
15833 * lib/unicase/totitle.c: New file.
15835 New module 'unicase/tolower'.
15836 * modules/unicase/tolower: New file.
15837 * lib/unicase/tolower.c: New file.
15839 New module 'unicase/toupper'.
15840 * modules/unicase/toupper: New file.
15841 * lib/unicase/toupper.c: New file.
15842 * lib/unicase/simple-mapping.h: New file.
15844 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15845 (mapping_table): New structure.
15846 (output_simple_mapping): New function.
15847 (main): Invoke output_simple_mapping_test and output_simple_mapping.
15848 * modules/gen-uni-tables (Description): Update.
15849 * lib/unicase/toupper.h: New file, automatically generated by
15851 * lib/unicase/tolower.h: New file, automatically generated by
15853 * lib/unicase/totitle.h: New file, automatically generated by
15855 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15857 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15859 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15862 New module 'unicase/base'.
15863 * modules/unicase/base: New file.
15864 * lib/unicase.h: New file.
15866 2009-02-08 Bruno Haible <bruno@clisp.org>
15868 New module 'uniwbrk/ulc-wordbreaks'.
15869 * modules/uniwbrk/ulc-wordbreaks: New file.
15870 * lib/uniwbrk/ulc-wordbreaks.c: New file.
15872 New module 'uniwbrk/u32-wordbreaks'.
15873 * modules/uniwbrk/u32-wordbreaks: New file.
15874 * lib/uniwbrk/u32-wordbreaks.c: New file.
15876 New module 'uniwbrk/u16-wordbreaks'.
15877 * modules/uniwbrk/u16-wordbreaks: New file.
15878 * lib/uniwbrk/u16-wordbreaks.c: New file.
15880 New module 'uniwbrk/u8-wordbreaks'.
15881 * modules/uniwbrk/u8-wordbreaks: New file.
15882 * lib/uniwbrk/u8-wordbreaks.c: New file.
15883 * lib/uniwbrk/u-wordbreaks.h: New file.
15885 New module 'uniwbrk/table'.
15886 * modules/uniwbrk/table: New file.
15887 * lib/uniwbrk/wbrktable.h: New file.
15888 * lib/uniwbrk/wbrktable.c: New file.
15890 New module 'uniwbrk/wordbreak-property'.
15891 * modules/uniwbrk/wordbreak-property: New file.
15892 * lib/uniwbrk/wordbreak-property.c: New file.
15894 * lib/gen-uni-tables.c (WBP_*): New enum items.
15895 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15896 (unicode_org_wbp): New variable.
15897 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15899 (wbp_table): New structure.
15900 (output_wbp, output_wbrk_tables): New functions.
15901 (main): Accept additional argument. Invoke fill_org_wbp,
15902 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15903 output_wbrk_tables.
15904 * modules/gen-uni-tables (Description): Update.
15905 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15908 New module 'uniwbrk/base'.
15909 * modules/uniwbrk/base: New file.
15910 * lib/uniwbrk.h: New file.
15912 2009-02-08 Bruno Haible <bruno@clisp.org>
15914 Update to Unicode 5.1.0.
15915 * lib/gen-uni-tables.c (is_property_alphabetic): Include
15917 (is_property_default_ignorable_code_point): Don't include characters
15918 of category Cc or Cs and not-a-characters.
15919 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15920 U+0D79, U+109E, U+109F, U+A60C.
15921 * lib/unictype/bidi_of.h: Regenerated.
15922 * lib/unictype/blocks.h: Regenerated.
15923 * lib/unictype/categ_C.h: Regenerated.
15924 * lib/unictype/categ_Cf.h: Regenerated.
15925 * lib/unictype/categ_Cn.h: Regenerated.
15926 * lib/unictype/categ_L.h: Regenerated.
15927 * lib/unictype/categ_Ll.h: Regenerated.
15928 * lib/unictype/categ_Lm.h: Regenerated.
15929 * lib/unictype/categ_Lo.h: Regenerated.
15930 * lib/unictype/categ_Lu.h: Regenerated.
15931 * lib/unictype/categ_M.h: Regenerated.
15932 * lib/unictype/categ_Mc.h: Regenerated.
15933 * lib/unictype/categ_Me.h: Regenerated.
15934 * lib/unictype/categ_Mn.h: Regenerated.
15935 * lib/unictype/categ_N.h: Regenerated.
15936 * lib/unictype/categ_Nd.h: Regenerated.
15937 * lib/unictype/categ_Nl.h: Regenerated.
15938 * lib/unictype/categ_No.h: Regenerated.
15939 * lib/unictype/categ_P.h: Regenerated.
15940 * lib/unictype/categ_Pd.h: Regenerated.
15941 * lib/unictype/categ_Pe.h: Regenerated.
15942 * lib/unictype/categ_Pf.h: Regenerated.
15943 * lib/unictype/categ_Pi.h: Regenerated.
15944 * lib/unictype/categ_Po.h: Regenerated.
15945 * lib/unictype/categ_Ps.h: Regenerated.
15946 * lib/unictype/categ_S.h: Regenerated.
15947 * lib/unictype/categ_Sk.h: Regenerated.
15948 * lib/unictype/categ_Sm.h: Regenerated.
15949 * lib/unictype/categ_So.h: Regenerated.
15950 * lib/unictype/categ_of.h: Regenerated.
15951 * lib/unictype/combining.h: Regenerated.
15952 * lib/unictype/ctype_alnum.h: Regenerated.
15953 * lib/unictype/ctype_alpha.h: Regenerated.
15954 * lib/unictype/ctype_graph.h: Regenerated.
15955 * lib/unictype/ctype_lower.h: Regenerated.
15956 * lib/unictype/ctype_print.h: Regenerated.
15957 * lib/unictype/ctype_punct.h: Regenerated.
15958 * lib/unictype/ctype_upper.h: Regenerated.
15959 * lib/unictype/decdigit.h: Regenerated.
15960 * lib/unictype/digit.h: Regenerated.
15961 * lib/unictype/mirror.h: Regenerated.
15962 * lib/unictype/numeric.h: Regenerated.
15963 * lib/unictype/pr_alphabetic.h: Regenerated.
15964 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15965 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15966 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15967 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15968 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15969 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15970 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15971 * lib/unictype/pr_combining.h: Regenerated.
15972 * lib/unictype/pr_dash.h: Regenerated.
15973 * lib/unictype/pr_decimal_digit.h: Regenerated.
15974 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15975 * lib/unictype/pr_deprecated.h: Regenerated.
15976 * lib/unictype/pr_diacritic.h: Regenerated.
15977 * lib/unictype/pr_extender.h: Regenerated.
15978 * lib/unictype/pr_format_control.h: Regenerated.
15979 * lib/unictype/pr_grapheme_base.h: Regenerated.
15980 * lib/unictype/pr_grapheme_extend.h: Regenerated.
15981 * lib/unictype/pr_grapheme_link.h: Regenerated.
15982 * lib/unictype/pr_id_continue.h: Regenerated.
15983 * lib/unictype/pr_id_start.h: Regenerated.
15984 * lib/unictype/pr_ideographic.h: Regenerated.
15985 * lib/unictype/pr_ignorable_control.h: Regenerated.
15986 * lib/unictype/pr_lowercase.h: Regenerated.
15987 * lib/unictype/pr_math.h: Regenerated.
15988 * lib/unictype/pr_numeric.h: Regenerated.
15989 * lib/unictype/pr_other_alphabetic.h: Regenerated.
15990 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15991 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15992 * lib/unictype/pr_other_id_continue.h: Regenerated.
15993 * lib/unictype/pr_other_lowercase.h: Regenerated.
15994 * lib/unictype/pr_other_math.h: Regenerated.
15995 * lib/unictype/pr_punctuation.h: Regenerated.
15996 * lib/unictype/pr_sentence_terminal.h: Regenerated.
15997 * lib/unictype/pr_soft_dotted.h: Regenerated.
15998 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15999 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16000 * lib/unictype/pr_unified_ideograph.h: Regenerated.
16001 * lib/unictype/pr_uppercase.h: Regenerated.
16002 * lib/unictype/pr_xid_continue.h: Regenerated.
16003 * lib/unictype/pr_xid_start.h: Regenerated.
16004 * lib/unictype/pr_zero_width.h: Regenerated.
16005 * lib/unictype/scripts.h: Regenerated.
16006 * lib/unictype/scripts_byname.gperf: Regenerated.
16007 * lib/unictype/sy_java_ident.h: Regenerated.
16008 * lib/unilbrk/lbrkprop1.h: Regenerated.
16009 * lib/unilbrk/lbrkprop2.h: Regenerated.
16010 * tests/unictype/test-categ_C.c: Regenerated.
16011 * tests/unictype/test-categ_Cf.c: Regenerated.
16012 * tests/unictype/test-categ_Cn.c: Regenerated.
16013 * tests/unictype/test-categ_L.c: Regenerated.
16014 * tests/unictype/test-categ_Ll.c: Regenerated.
16015 * tests/unictype/test-categ_Lm.c: Regenerated.
16016 * tests/unictype/test-categ_Lo.c: Regenerated.
16017 * tests/unictype/test-categ_Lu.c: Regenerated.
16018 * tests/unictype/test-categ_M.c: Regenerated.
16019 * tests/unictype/test-categ_Mc.c: Regenerated.
16020 * tests/unictype/test-categ_Me.c: Regenerated.
16021 * tests/unictype/test-categ_Mn.c: Regenerated.
16022 * tests/unictype/test-categ_N.c: Regenerated.
16023 * tests/unictype/test-categ_Nd.c: Regenerated.
16024 * tests/unictype/test-categ_Nl.c: Regenerated.
16025 * tests/unictype/test-categ_No.c: Regenerated.
16026 * tests/unictype/test-categ_P.c: Regenerated.
16027 * tests/unictype/test-categ_Pd.c: Regenerated.
16028 * tests/unictype/test-categ_Pe.c: Regenerated.
16029 * tests/unictype/test-categ_Pf.c: Regenerated.
16030 * tests/unictype/test-categ_Pi.c: Regenerated.
16031 * tests/unictype/test-categ_Po.c: Regenerated.
16032 * tests/unictype/test-categ_Ps.c: Regenerated.
16033 * tests/unictype/test-categ_S.c: Regenerated.
16034 * tests/unictype/test-categ_Sk.c: Regenerated.
16035 * tests/unictype/test-categ_Sm.c: Regenerated.
16036 * tests/unictype/test-categ_So.c: Regenerated.
16037 * tests/unictype/test-ctype_alnum.c: Regenerated.
16038 * tests/unictype/test-ctype_alpha.c: Regenerated.
16039 * tests/unictype/test-ctype_graph.c: Regenerated.
16040 * tests/unictype/test-ctype_lower.c: Regenerated.
16041 * tests/unictype/test-ctype_print.c: Regenerated.
16042 * tests/unictype/test-ctype_punct.c: Regenerated.
16043 * tests/unictype/test-ctype_upper.c: Regenerated.
16044 * tests/unictype/test-decdigit.h: Regenerated.
16045 * tests/unictype/test-digit.h: Regenerated.
16046 * tests/unictype/test-numeric.h: Regenerated.
16047 * tests/unictype/test-pr_alphabetic.c: Regenerated.
16048 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16049 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16050 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16051 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16052 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16053 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16054 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16055 * tests/unictype/test-pr_combining.c: Regenerated.
16056 * tests/unictype/test-pr_dash.c: Regenerated.
16057 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16058 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16059 * tests/unictype/test-pr_deprecated.c: Regenerated.
16060 * tests/unictype/test-pr_diacritic.c: Regenerated.
16061 * tests/unictype/test-pr_extender.c: Regenerated.
16062 * tests/unictype/test-pr_format_control.c: Regenerated.
16063 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16064 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16065 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16066 * tests/unictype/test-pr_id_continue.c: Regenerated.
16067 * tests/unictype/test-pr_id_start.c: Regenerated.
16068 * tests/unictype/test-pr_ideographic.c: Regenerated.
16069 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16070 * tests/unictype/test-pr_lowercase.c: Regenerated.
16071 * tests/unictype/test-pr_math.c: Regenerated.
16072 * tests/unictype/test-pr_numeric.c: Regenerated.
16073 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16074 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16076 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16077 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16078 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16079 * tests/unictype/test-pr_other_math.c: Regenerated.
16080 * tests/unictype/test-pr_punctuation.c: Regenerated.
16081 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16082 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16083 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16084 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16085 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16086 * tests/unictype/test-pr_uppercase.c: Regenerated.
16087 * tests/unictype/test-pr_xid_continue.c: Regenerated.
16088 * tests/unictype/test-pr_xid_start.c: Regenerated.
16089 * tests/unictype/test-pr_zero_width.c: Regenerated.
16091 Update to Unicode 5.1.0.
16092 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16093 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16094 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16095 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16096 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16097 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16098 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16099 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16100 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16101 (nonspacing_table_ind): Update.
16102 * tests/uniwidth/test-uc_width2.sh: Update expected result.
16104 Update to Unicode 5.1.0.
16105 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16107 * lib/uniname/uniname.c (unicode_character_name,
16108 unicode_name_character): Add the range 0x1Fxxx to the code transform.
16109 * lib/uniname/uninames.h: Regenerated.
16110 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16112 2009-02-07 Bruno Haible <bruno@clisp.org>
16114 Merge gen-ctype and gen-lbrk into a single program.
16115 * lib/gen-uni-tables.c: New file, incorporating
16116 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16117 Add directory prefixes to the names of the generated files.
16118 * lib/unictype/gen-ctype.c: Remove file.
16119 * lib/unilbrk/gen-lbrk.c: Remove file.
16120 * modules/gen-uni-tables: New file.
16121 * modules/unictype/gen-ctype: Remove file.
16122 * modules/unilbrk/gen-lbrk: Remove file.
16124 2009-02-07 Bruno Haible <bruno@clisp.org>
16126 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16128 New module 'unistr/u32-strcoll'.
16129 * modules/unistr/u32-strcoll: New file.
16130 * lib/unistr/u32-strcoll.c: New file.
16132 New module 'unistr/u16-strcoll'.
16133 * modules/unistr/u16-strcoll: New file.
16134 * lib/unistr/u16-strcoll.c: New file.
16136 New module 'unistr/u8-strcoll'.
16137 * modules/unistr/u8-strcoll: New file.
16138 * lib/unistr/u8-strcoll.c: New file.
16139 * lib/unistr/u-strcoll.h: New file.
16141 2009-02-07 Bruno Haible <bruno@clisp.org>
16143 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16144 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16145 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16146 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16147 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16148 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16150 2009-02-07 Bruno Haible <bruno@clisp.org>
16153 * lib/unictype/gen-ctype.c (output_predicate, output_category,
16154 output_combclass, output_bidi_category, output_decimal_digit,
16155 output_digit, output_numeric, output_mirror, output_scripts,
16156 output_ident_category): Use proper width specifier in format strings.
16158 2009-02-07 Bruno Haible <bruno@clisp.org>
16160 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16163 2009-02-07 Jim Meyering <meyering@redhat.com>
16165 regex: avoid compilation failure with upcoming gcc-4.4
16166 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16167 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
16168 "... error: integer overflow in preprocessor expression".
16170 2009-02-05 Ben Pfaff <blp@gnu.org>
16172 Fix link errors on Windows when close module is used.
16173 * modules/close: Add $(LIB_CLOSE) to Link section.
16174 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16175 $(LIB_CLOSE) on Windows.
16177 2009-02-05 Jim Meyering <meyering@redhat.com>
16179 still avoid unused-parameter warnings, but do it cleanly
16180 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16181 (get_fs_usage): Cast to void instead.
16182 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16183 (dev_from_mount_options, read_file_system_list): Cast to void.
16184 Prompted by Bruno Haible.
16186 2009-02-04 Jim Meyering <meyering@redhat.com>
16188 fsusage.c: correct copyright year
16189 * lib/fsusage.c: Reflect year in which the change is pushed into
16191 avoid misc. warnings
16192 * lib/fsusage.c (UNUSED_PARAM): Define.
16193 (get_fs_usage): Mark parameter "disk" as unused.
16194 * lib/getugroups.c (getgrent): Use "void" in prototype.
16195 * lib/mountlist.c: Mark unused parameters.
16196 (read_file_system_list): Declare a local with "const".
16197 * lib/nanosleep.c (getnow): Declare static.
16198 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16200 dirfd: set errno upon failure
16201 * lib/dirfd.c: Include <errno.h>.
16202 Set errno to ENOTSUP when returning -1.
16203 * modules/dirfd (Depends-on): Add errno.
16204 Suggested by John Kodis <kodis@comcast.net>.
16206 2009-02-01 Bruno Haible <bruno@clisp.org>
16208 Don't assume sizeof (long) >= sizeof (void *).
16209 * lib/memcmp.c: Include stdint.h.
16210 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16211 srcp2 to 'const byte *'.
16212 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16213 types to uintptr_t.
16214 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16215 * modules/memcmp (Depends-on): Add stdint.
16216 Reported by Ozkan Sezer <sezeroz@gmail.com>.
16218 2009-01-30 Eric Blake <ebb9@byu.net>
16220 fix more require-before-expand issues
16221 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16222 expand, AC_PROG_AWK.
16223 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16225 2009-01-28 Eric Blake <ebb9@byu.net>
16227 version-etc: use consistent URL formatting
16228 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16229 Improve formatting. Use fputs for string without %.
16231 2009-01-28 Jim Meyering <meyering@redhat.com>
16233 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16234 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16235 "underquoted definition of NAME" from autoconf-2.59.
16237 2009-01-28 Bruno Haible <bruno@clisp.org>
16239 * doc/gnulib.texi: Add "Obsolete modules" to index.
16241 2009-01-28 Jim Meyering <meyering@redhat.com>
16243 useless-if-before-free: recognize more variants
16244 * build-aux/useless-if-before-free: Also recognize e.g.,
16245 if (NULL != p) free (p);
16247 2009-01-27 Mark McLoughlin <markmc@redhat.com>
16249 test-getaddrinfo: skip (don't fail) this test when there's no network
16250 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16251 on the presumption that it means you lack network access.
16253 2009-01-26 Jim Meyering <meyering@redhat.com>
16255 fflush: avoid warnings on modern systems
16256 * lib/fflush.c (rpl_fflush): Move declarations of locals,
16257 pos and result, into scopes where they're used.
16259 2009-01-26 Eric Blake <ebb9@byu.net>
16261 Silence warning reintroduced by recent extensions patch.
16262 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16263 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16266 Backport improved autoconf semantics of AC_DEFUN_ONCE.
16267 * m4/00gnulib.m4: New file.
16268 * gnulib-tool (func_get_filelist): Always use it.
16269 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16270 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16272 2009-01-25 Bruno Haible <bruno@clisp.org>
16274 Make test-quotearg work on MacOS X and AIX.
16275 * tests/test-quotearg.sh: New file.
16276 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16277 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16278 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16279 include <libintl.h>.
16280 (fake_locale): Remove variable.
16281 (gettext, dgettext, dcgettext): Remove functions.
16282 (main): Instead of setting a fake locale, set a real locale. Call
16283 textdomain and bindtextdomain.
16284 * modules/quotearg-tests (Files): Add the new files.
16285 (Depends-on): Add gettext, setenv, unsetenv.
16286 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16287 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16288 Augment TESTS_ENVIRONMENT.
16290 2009-01-25 Bruno Haible <bruno@clisp.org>
16292 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16293 fr_FR.ISO8859-1 locale on MacOS X.
16294 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16295 ja_JP.eucJP locale on MacOS X.
16296 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16297 zh_CN.GB18030 locale on MacOS X.
16299 2009-01-25 Bruno Haible <bruno@clisp.org>
16301 Avoid link errors on MacOS X 10.3.
16302 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16303 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16305 2009-01-25 Bruno Haible <bruno@clisp.org>
16307 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16308 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16309 * modules/pipe (Files): Remove m4/posix_spawn.m4.
16310 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16311 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16312 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16313 posix_spawnattr_init, posix_spawnattr_setsigmask,
16314 posix_spawnattr_setflags, posix_spawnattr_destroy.
16316 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16317 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16318 * modules/execute (Files): Remove m4/posix_spawn.m4.
16319 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16320 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16321 posix_spawnattr_init, posix_spawnattr_setsigmask,
16322 posix_spawnattr_setflags, posix_spawnattr_destroy.
16324 2009-01-25 Bruno Haible <bruno@clisp.org>
16326 * lib/glthread/threadlib.c: Include <stdlib.h>.
16328 2009-01-25 Bruno Haible <bruno@clisp.org>
16330 * lib/glthread/threadlib.c (dummy): New declaration.
16332 2009-01-25 Bruno Haible <bruno@clisp.org>
16334 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16335 multibyte characters also for the GB18030 encoding. Don't crash when
16336 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16338 2009-01-25 Bruno Haible <bruno@clisp.org>
16340 Avoid redefining 'struct random_data' on OSF/1 5.1.
16341 * lib/stdlib.in.h: Include <random.h> if it exists.
16342 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16343 HAVE_RANDOM_H. Include <random.h> when testing whether
16344 'struct random_data' exists.
16345 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16347 2009-01-25 Bruno Haible <bruno@clisp.org>
16349 Don't install charset.alias on MacOS X >= 10.3.
16350 * lib/localcharset.c (DARWIN7): New macro.
16351 (get_charset_aliases): Hardcode the result for Darwin7.
16352 * modules/localcharset (install-exec-local): Don't install
16353 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16355 2009-01-25 Bruno Haible <bruno@clisp.org>
16357 Don't install charset.alias on mingw and Cygwin.
16358 * modules/localcharset (install-exec-local): Don't install
16359 charset.alias on mingw and Cygwin, if the file does not yet exist.
16360 The result for these platforms is hardcoded in localcharset.c.
16362 2009-01-25 Bruno Haible <bruno@clisp.org>
16364 Make it possible again to use AC_GNU_SOURCE together with gnulib.
16365 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16366 before requiring AC_USE_SYSTEM_EXTENSIONS.
16368 2009-01-25 Jim Meyering <meyering@redhat.com>
16370 c-strtod: avoid warnings
16371 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16372 "assignment discards qualifiers from pointer target type" warnings.
16374 2009-01-24 Bruno Haible <bruno@clisp.org>
16376 Add support for non-UTF-8 locales on MacOS X.
16377 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16378 canonical encodings. For Darwin 7 and newer, don't map traditional
16379 encodings to UTF-8.
16380 Reported by Vincent Lefevre <vincent@vinc17.org>
16381 at <http://savannah.gnu.org/bugs/?25235>.
16383 2009-01-24 Bruno Haible <bruno@clisp.org>
16385 * doc/gnulib.texi (Obsolete modules): New section.
16386 Reported by Mike Frysinger <vapier@gentoo.org>.
16388 2009-01-24 Bruno Haible <bruno@clisp.org>
16390 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16393 2009-01-24 Bruno Haible <bruno@clisp.org>
16395 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16396 Reported by Eric Blake.
16398 2009-01-24 Bruno Haible <bruno@clisp.org>
16400 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16401 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16402 Reported by Gary V. Vaughan <gary@gnu.org>.
16404 2009-01-24 Bruno Haible <bruno@clisp.org>
16406 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16408 2009-01-23 Bruno Haible <bruno@clisp.org>
16410 Make c-strtod, c-strtold usable in libraries.
16411 * lib/c-strtod.c: Include string.h instead of xalloc.h.
16412 (C_STRTOD): Call strdup instead of xstrdup.
16413 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16414 * modules/c-strtold (Depends-on): Likewise.
16415 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16416 * NEWS: Mention the change.
16417 Reported by Michael Gold <mgold@ncf.ca>.
16419 2009-01-23 Jim Meyering <meyering@redhat.com>
16421 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16422 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16423 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16425 2009-01-23 Simon Josefsson <simon@josefsson.org>
16427 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16429 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16430 * modules/version-etc (Description): Update.
16432 2009-01-22 Bruno Haible <bruno@clisp.org>
16434 Cache the C locale object.
16435 * lib/c-strtod.c (c_locale_cache): New variable.
16436 (c_locale): New function.
16437 (C_STRTOD): Use it, and don't call freelocale.
16438 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16439 Suggested by Paolo Bonzini.
16441 2009-01-21 Bruno Haible <bruno@clisp.org>
16443 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16444 conditions other than overflow.
16446 2009-01-21 Bruno Haible <bruno@clisp.org>
16448 * lib/c-strtod.c: Include errno.h.
16449 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16450 value from STRTOD_L and STRTOD.
16452 2009-01-21 Bruno Haible <bruno@clisp.org>
16453 and Jim Meyering <meyering@redhat.com>
16455 nanosleep: skip configure test (fail it) for apple universal builds
16456 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16457 universal builds, assume that nanosleep does not work.
16458 * modules/nanosleep (Depends-on): Add multiarch.
16460 mktime: skip configure test (fail it) for apple universal builds
16461 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16462 universal builds, assume that mktime does not work.
16463 * modules/mktime (Depends-on): Add multiarch.
16465 2009-01-21 Eric Blake <ebb9@byu.net>
16467 multiarch: avoid expand-before-require warning
16468 * modules/multiarch (configure.ac): Require, rather than expand,
16470 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16471 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16472 enforce that all clients require it. Partial reversion of
16475 error: avoid expand-before-require warning
16476 * modules/errno (configure.ac): Require, rather than expand,
16478 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16479 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16480 enforce that all clients require it.
16482 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16483 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16484 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16485 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16487 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
16490 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16492 regex: do not depend on obsolete modules.
16493 * modules/regex: Remove memcmp and memmove.
16495 2009-01-20 Bruno Haible <bruno@clisp.org>
16497 Make the 'link' module link on Windows NT 4.
16498 * lib/link.c (_WIN32_WINNT): Don't define.
16499 (CreateHardLinkFuncType): New type.
16500 (CreateHardLinkFunc, initialized): New variables.
16501 (initialize): New function.
16502 (link): Invoke CreateHardLink indirectly through the function pointer.
16504 2009-01-20 Bruno Haible <bruno@clisp.org>
16506 Fix compilation failure on mingw.
16507 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16509 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
16511 * doc/c-strtod.texi: Mention a couple of restrictions.
16513 2009-01-20 Jim Meyering <meyering@redhat.com>
16515 gettimeofday: move more declarations out of functions
16516 * lib/gettimeofday.c: Move extern declarations of tzset and
16517 gmtime out of containing functions. Prompted by Bruno Haible.
16519 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16521 regex: do not depend on obsolete modules.
16522 * modules/regex: Remove memcmp and memmove.
16524 2009-01-19 Bruno Haible <bruno@clisp.org>
16526 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16527 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16528 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16529 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16530 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16532 2009-01-19 Bruno Haible <bruno@clisp.org>
16534 * tests/test-link.c: Include <errno.h>.
16535 (main): Exit with code 77 when a hard link cannot be created due to
16537 * tests/test-link.sh: Skip test when a hard link cannot be created due
16538 to the file system.
16539 Suggested by Eric Blake.
16541 2009-01-19 Martin Lambers <marlam@marlam.de>
16543 * modules/link-tests: New file.
16544 * tests/test-link.sh: New file.
16545 * tests/test-link.c: New file.
16547 2009-01-19 Eric Blake <ebb9@byu.net>
16549 doc: mention another function added in cygwin 1.7.0
16550 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16551 Another new function in cygwin 1.7.
16553 2009-01-19 Bruno Haible <bruno@clisp.org>
16555 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16556 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16557 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16558 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16559 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16560 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16561 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16562 * m4/md4.m4 (gl_MD4): Likewise.
16563 * m4/md5.m4 (gl_MD5): Likewise.
16564 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16565 * m4/sha1.m4 (gl_SHA1): Likewise.
16566 * m4/sha256.m4 (gl_SHA256): Likewise.
16567 * m4/sha512.m4 (gl_SHA512): Likewise.
16569 2009-01-19 Bruno Haible <bruno@clisp.org>
16571 * modules/uniname/uniname-tests (Depends-on): Add progname.
16572 * tests/uniname/test-uninames.c: Include progname.h.
16573 (main): Call set_program_name.
16575 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16576 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16577 (main): Call set_program_name.
16579 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16580 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16581 (main): Call set_program_name.
16583 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16584 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16585 (main): Call set_program_name.
16587 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16588 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16589 (main): Call set_program_name.
16591 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16592 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16593 (main): Call set_program_name.
16595 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16596 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16597 (main): Call set_program_name.
16599 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16600 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16601 (main): Call set_program_name.
16603 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16604 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16605 (main): Call set_program_name.
16607 2009-01-19 Eric Blake <ebb9@byu.net>
16609 test-unistd: test previous patch
16610 * tests/test-unistd.c: Test *_FILENO macros.
16612 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16613 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16614 Guarantee a definition.
16615 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16616 * modules/unistd-safer (Depends-on): Add dependency on unistd.
16617 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16618 * lib/dup-safer.c (STDERR_FILENO): Likewise.
16619 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16621 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16622 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16623 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16625 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16626 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16627 (STDERR_FILENO): Likewise.
16628 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16629 (STDERR_FILENO): Likewise.
16630 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16631 (STDERR_FILENO): Likewise.
16632 Reported by Elbert Pol.
16634 2009-01-19 Eric Blake <ebb9@byu.net>
16636 doc: mention more functions added in cygwin 1.7.0
16637 * doc/posix-functions/abort.texi (abort): Update wording related
16639 * doc/posix-functions/daylight.texi (daylight): Likewise.
16640 * doc/posix-functions/optarg.texi (optarg): Likewise.
16641 * doc/posix-functions/optarg.texi (opterr): Likewise.
16642 * doc/posix-functions/optarg.texi (optind): Likewise.
16643 * doc/posix-functions/optarg.texi (optopt): Likewise.
16644 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16645 worked in 1.5.x, and was withdrawn in 1.7.
16646 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16647 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16649 * doc/posix-functions/perror.texi (perror): Likewise.
16650 * doc/posix-functions/printf.texi (printf): Likewise.
16651 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16652 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16653 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16654 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16655 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16656 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16657 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16659 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16661 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16663 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16664 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16666 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16667 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16668 * doc/posix-functions/confstr.texi (confstr): Likewise.
16669 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16670 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16671 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16672 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16673 * doc/posix-functions/fputws.texi (fputws): Likewise.
16674 * doc/posix-functions/fwide.texi (fwide): Likewise.
16675 * doc/posix-functions/getwc.texi (getwc): Likewise.
16676 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16677 * doc/posix-functions/putwc.texi (putwc): Likewise.
16678 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16679 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16680 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16681 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16682 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16683 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16684 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16685 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16686 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16687 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16688 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16690 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16692 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16693 * lib/ioctl.c: Include <sys/ioctl.h>.
16695 2009-01-19 Simon Josefsson <simon@josefsson.org>
16697 * modules/getdate-tests (Depends-on): Add progname.
16698 * tests/test-getdate.c: Use progname module, to avoid link errors
16699 on non-glibc systems.
16701 2009-01-18 Simon Josefsson <simon@josefsson.org>
16703 * modules/filenamecat-tests (Depends-on): Add progname.
16704 * modules/fstrcmp-tests (Depends-on): Likewise.
16706 * tests/test-filenamecat.c: Use progname module, to avoid link
16707 errors on non-glibc systems.
16708 * tests/test-fstrcmp.c: Likewise.
16710 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16712 gettimeofday: avoid warning: nested extern declaration of 'localtime'
16713 * lib/gettimeofday.c: Move extern declaration out of function.
16715 2009-01-18 Bruno Haible <bruno@clisp.org>
16717 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16718 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16719 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16721 2009-01-18 Bruno Haible <bruno@clisp.org>
16723 * lib/strftime.c (MEMPCPY): Remove unused macro.
16724 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16726 2009-01-18 Martin Lambers <marlam@marlam.de>
16729 * lib/unistd.in.h (link): New declaration.
16730 * lib/link.c: New file.
16731 * m4/link.m4: New file.
16732 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16734 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16735 * modules/link: New file.
16736 * doc/posix-functions/link.texi: Mention the new module.
16738 2009-01-18 Bruno Haible <bruno@clisp.org>
16740 * tests/test-avltree_list.c (main): Call set_program_name.
16741 * tests/test-avltree_oset.c (main): Likewise.
16742 * tests/test-obstack-printf.c: Include progname.h.
16743 (main): Call set_program_name.
16744 * tests/test-quotearg.c: Include progname.h.
16745 (main): Call set_program_name.
16746 * tests/test-xmemdup0.c: Include progname.h.
16747 (main): Call set_program_name.
16749 2009-01-18 Bruno Haible <bruno@clisp.org>
16751 New module 'alphasort'.
16752 * lib/dirent.in.h (alphasort): New declaration.
16753 * lib/alphasort.c: New file, from glibc with modifications.
16754 * m4/alphasort.m4: New file.
16755 * modules/alphasort: New file.
16756 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16758 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16760 * doc/posix-functions/alphasort.texi: Mention the new module and the
16761 portability problems.
16763 2009-01-18 Bruno Haible <bruno@clisp.org>
16765 New module 'scandir'.
16766 * lib/dirent.in.h (scandir): New declaration.
16767 * lib/scandir.c: New file, from glibc with modifications.
16768 * m4/scandir.m4: New file.
16769 * modules/scandir: New file.
16770 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16772 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16774 * doc/posix-functions/scandir.texi: Mention the new module and the
16775 portability problems.
16777 2009-01-17 Bruno Haible <bruno@clisp.org>
16779 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16780 Update documentation.
16781 (func_remove_suffix): Escape all dots in the suffix. Update
16783 (func_filter_filelist): Update documentation.
16784 Reported by Ralf Wildenhues.
16786 2009-01-17 Bruno Haible <bruno@clisp.org>
16788 * modules/dprintf-posix-tests: New file.
16789 * tests/test-dprintf-posix.sh: New file.
16790 * tests/test-dprintf-posix.c: New file.
16792 New modules 'dprintf', 'dprintf-posix'.
16793 * lib/stdio.in.h (dprintf): New declaration.
16794 * lib/dprintf.c: New file.
16795 * m4/dprintf.m4: New file.
16796 * m4/dprintf-posix.m4: New file.
16797 * modules/dprintf: New file.
16798 * modules/dprintf-posix: New file.
16799 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16800 HAVE_DPRINTF, REPLACE_DPRINTF.
16801 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16802 HAVE_DPRINTF, REPLACE_DPRINTF.
16803 * doc/posix-functions/dprintf.texi: Mention the new modules.
16805 2009-01-17 Bruno Haible <bruno@clisp.org>
16807 * modules/vdprintf-posix-tests: New file.
16808 * tests/test-vdprintf-posix.sh: New file.
16809 * tests/test-vdprintf-posix.c: New file.
16811 New modules 'vdprintf', 'vdprintf-posix'.
16812 * lib/stdio.in.h (vdprintf): New declaration.
16813 * lib/vdprintf.c: New file.
16814 * m4/vdprintf.m4: New file.
16815 * m4/vdprintf-posix.m4: New file.
16816 * modules/vdprintf: New file.
16817 * modules/vdprintf-posix: New file.
16818 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16819 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16820 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16821 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16822 * doc/posix-functions/vdprintf.texi: Mention the new modules.
16824 2009-01-17 Bruno Haible <bruno@clisp.org>
16826 Fix replacement of fopen on mingw.
16827 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16830 2009-01-17 Bruno Haible <bruno@clisp.org>
16832 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16833 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16835 2009-01-17 Bruno Haible <bruno@clisp.org>
16837 Avoid test-fflush2.sh failure on mingw.
16838 * tests/test-fflush2.c: Include binary-io.h.
16839 (main): Put standard input into binary mode.
16840 * modules/fflush-tests (Depends-on): Add binary-io.
16842 2009-01-17 Bruno Haible <bruno@clisp.org>
16844 * lib/wchar.in.h: In another particular situation, include only the
16845 system's <wchar.h> file.
16846 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16847 Reported by Albert Chin-A-Young <china@thewrittenword.com>
16848 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16850 2009-01-17 Bruno Haible <bruno@clisp.org>
16852 Support for stripping executables in --enable-relocatable.
16853 * build-aux/install-reloc: Expect one more argument, or an environment
16854 variable RELOC_STRIP_PROG. If set, strip the destination program and
16856 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16858 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16859 to set RELOCATABLE_STRIP.
16860 * NEWS: Mention the new Makefile requirement.
16862 2009-01-17 Bruno Haible <bruno@clisp.org>
16864 * build-aux/install-reloc: Remove debugging information left over by
16865 C compiler on MacOS X.
16867 2009-01-17 Bruno Haible <bruno@clisp.org>
16869 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16870 * lib/progreloc.c (find_executable): Fix type of pointer passed to
16871 _NSGetExecutablePath.
16873 2009-01-16 Jim Meyering <meyering@redhat.com>
16875 strerror: avoid warnings about discarding "const"
16876 * lib/strerror.c (rpl_strerror): Instead of returning a const
16877 string from each and every "case", use a variable, and add a single
16878 cast after the switch.
16880 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
16882 * lib/arpa_inet.in.h: Add extern "C" block for C++.
16884 2009-01-16 Bruno Haible <bruno@clisp.org>
16886 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16887 array initializer syntax that also works in C++ mode.
16888 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16890 2009-01-16 Jim Meyering <meyering@redhat.com>
16892 poll: suppress a warning
16893 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16894 to ignore "...unsigned expression < 0 is always false" warnings.
16896 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
16898 poll: remove declarations of unused variables
16899 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16900 sockbuf and optlen.
16902 2009-01-15 Bruno Haible <bruno@clisp.org>
16904 Make fflush-after-ungetc POSIX compliant on BSD systems.
16905 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16906 (clear_ungetc_buffer): Implement also for other systems.
16907 (rpl_fflush): On glibc systems, invoke
16908 clear_ungetc_buffer_preserving_position. Otherwise, invoke
16909 clear_ungetc_buffer after fetching the stream's position, not before.
16911 2009-01-15 Bruno Haible <bruno@clisp.org>
16913 Make fflush-after-ungetc POSIX compliant on glibc systems.
16914 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16916 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16917 (rpl_fflush): On glibc systems, simply call the system's fflush
16918 function after clearing the ungetc buffer.
16919 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16920 Instead, lseek only to the end of file, then use the system's fseeko
16921 for the rest. On glibc systems, reset the EOF indicator bit.
16923 2009-01-15 Jim Meyering <meyering@redhat.com>
16925 openmp.m4: revert quote-adding change, for portability to older autoconf
16926 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16927 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16928 Simon Josefsson noticed the problem when using autoconf-2.61.
16930 2009-01-15 Bruno Haible <bruno@clisp.org>
16932 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16933 * tests/test-fflush2.c (ASSERT): Always fail.
16934 (main): Add two tests for fflush() after ungetc(), taking into account
16935 the Austin Group's clarification.
16936 Suggested by Eric Blake.
16938 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
16940 mktime.m4: remove K&R-style function prototypes
16941 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16942 for the Sun C++ compiler.
16944 2009-01-14 Bruno Haible <bruno@clisp.org>
16946 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16947 while including <wchar.h>.
16948 * lib/wchar.in.h: In two particular situations on HP-UX, include only
16949 the system's <wchar.h> file.
16950 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16952 2009-01-14 Bruno Haible <bruno@clisp.org>
16954 * m4/csharp.m4: Don't mention gettext on the serial number line.
16955 * m4/csharpexec.m4: Likewise.
16956 * m4/eaccess.m4: Likewise.
16957 * m4/javaexec.m4: Likewise.
16958 * m4/sig_atomic_t.m4: Likewise.
16959 * m4/tmpdir.m4: Likewise.
16960 * m4/intldir.m4: Bump gettext version.
16961 * m4/lib-ld.m4: Likewise.
16963 2009-01-14 Bruno Haible <bruno@clisp.org>
16965 * lib/progname.c (set_program_name): Add more comments.
16966 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16968 2009-01-14 Simon Josefsson <simon@josefsson.org>
16970 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16971 were sys/stat.h does not define it.
16973 2009-01-14 Jim Meyering <meyering@redhat.com>
16975 many *.m4 files: improve m4 quoting
16976 99% of this change was performed by running the following commands:
16977 git ls-files | grep '\.m4$' | xargs perl -pi \
16978 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16979 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16980 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16981 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16982 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16983 The remainder were to add Copyright dates, increment serial numbers,
16984 undo some changes in comments, exclude m4/intl.m4, and add quotes
16985 around the "1" in ",1" where the unusual spacing prohibited the
16986 above regexps from doing the job. For more details, see
16987 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16988 * m4/acl.m4: Modified.
16989 * m4/afs.m4: Likewise.
16990 * m4/alloca.m4: Likewise.
16991 * m4/argp.m4: Likewise.
16992 * m4/argz.m4: Likewise.
16993 * m4/atexit.m4: Likewise.
16994 * m4/bison-i18n.m4: Likewise.
16995 * m4/bison.m4: Likewise.
16996 * m4/byteswap.m4: Likewise.
16997 * m4/c-stack.m4: Likewise.
16998 * m4/c-strtod.m4: Likewise.
16999 * m4/calloc.m4: Likewise.
17000 * m4/canonicalize-lgpl.m4: Likewise.
17001 * m4/chown.m4: Likewise.
17002 * m4/clock_time.m4: Likewise.
17003 * m4/codeset.m4: Likewise.
17004 * m4/copy-file.m4: Likewise.
17005 * m4/csharp.m4: Likewise.
17006 * m4/csharpcomp.m4: Likewise.
17007 * m4/csharpexec.m4: Likewise.
17008 * m4/d-ino.m4: Likewise.
17009 * m4/d-type.m4: Likewise.
17010 * m4/dirfd.m4: Likewise.
17011 * m4/double-slash-root.m4: Likewise.
17012 * m4/eaccess.m4: Likewise.
17013 * m4/eealloc.m4: Likewise.
17014 * m4/environ.m4: Likewise.
17015 * m4/errno_h.m4: Likewise.
17016 * m4/euidaccess.m4: Likewise.
17017 * m4/execute.m4: Likewise.
17018 * m4/fatal-signal.m4: Likewise.
17019 * m4/fchdir.m4: Likewise.
17020 * m4/fcntl_h.m4: Likewise.
17021 * m4/fileblocks.m4: Likewise.
17022 * m4/filenamecat.m4: Likewise.
17023 * m4/findprog.m4: Likewise.
17024 * m4/flexmember.m4: Likewise.
17025 * m4/fnmatch.m4: Likewise.
17026 * m4/fopen.m4: Likewise.
17027 * m4/fpending.m4: Likewise.
17028 * m4/fprintf-posix.m4: Likewise.
17029 * m4/free.m4: Likewise.
17030 * m4/frexp.m4: Likewise.
17031 * m4/frexpl.m4: Likewise.
17032 * m4/fsusage.m4: Likewise.
17033 * m4/ftruncate.m4: Likewise.
17034 * m4/gc-camellia.m4: Likewise.
17035 * m4/gc-random.m4: Likewise.
17036 * m4/gc.m4: Likewise.
17037 * m4/getaddrinfo.m4: Likewise.
17038 * m4/getcwd-abort-bug.m4: Likewise.
17039 * m4/getcwd-path-max.m4: Likewise.
17040 * m4/getdate.m4: Likewise.
17041 * m4/getdomainname.m4: Likewise.
17042 * m4/getgroups.m4: Likewise.
17043 * m4/gethostname.m4: Likewise.
17044 * m4/gethrxtime.m4: Likewise.
17045 * m4/getline.m4: Likewise.
17046 * m4/getloadavg.m4: Likewise.
17047 * m4/getndelim2.m4: Likewise.
17048 * m4/getpass.m4: Likewise.
17049 * m4/gettext.m4: Likewise.
17050 * m4/gettime.m4: Likewise.
17051 * m4/gettimeofday.m4: Likewise.
17052 * m4/gnulib-common.m4: Likewise.
17053 * m4/group-member.m4: Likewise.
17054 * m4/host-os.m4: Likewise.
17055 * m4/iconv.m4: Likewise.
17056 * m4/iconv_open.m4: Likewise.
17057 * m4/inet_ntop.m4: Likewise.
17058 * m4/inet_pton.m4: Likewise.
17059 * m4/inline.m4: Likewise.
17060 * m4/intldir.m4: Likewise.
17061 * m4/intlmacosx.m4: Likewise.
17062 * m4/intmax.m4: Likewise.
17063 * m4/intmax_t.m4: Likewise.
17064 * m4/inttypes.m4: Likewise.
17065 * m4/inttypes_h.m4: Likewise.
17066 * m4/inttypes-pri.m4: Likewise.
17067 * m4/isapipe.m4: Likewise.
17068 * m4/isnand.m4: Likewise.
17069 * m4/isnanf.m4: Likewise.
17070 * m4/isnanl.m4: Likewise.
17071 * m4/javacomp.m4: Likewise.
17072 * m4/javaexec.m4: Likewise.
17073 * m4/jm-winsz1.m4: Likewise.
17074 * m4/jm-winsz2.m4: Likewise.
17075 * m4/lchown.m4: Likewise.
17076 * m4/lcmessage.m4: Likewise.
17077 * m4/ldexpl.m4: Likewise.
17078 * m4/lib-ld.m4: Likewise.
17079 * m4/lib-link.m4: Likewise.
17080 * m4/libsigsegv.m4: Likewise.
17081 * m4/link-follow.m4: Likewise.
17082 * m4/localcharset.m4: Likewise.
17083 * m4/locale-fr.m4: Likewise.
17084 * m4/locale-ja.m4: Likewise.
17085 * m4/locale-tr.m4: Likewise.
17086 * m4/locale-zh.m4: Likewise.
17087 * m4/lock.m4: Likewise.
17088 * m4/longlong.m4: Likewise.
17089 * m4/ls-mntd-fs.m4: Likewise.
17090 * m4/lstat.m4: Likewise.
17091 * m4/malloc.m4: Likewise.
17092 * m4/mathl.m4: Likewise.
17093 * m4/mbrtowc.m4: Likewise.
17094 * m4/mbstate_t.m4: Likewise.
17095 * m4/mbswidth.m4: Likewise.
17096 * m4/memchr.m4: Likewise.
17097 * m4/memcmp.m4: Likewise.
17098 * m4/memcpy.m4: Likewise.
17099 * m4/memmem.m4: Likewise.
17100 * m4/memmove.m4: Likewise.
17101 * m4/mempcpy.m4: Likewise.
17102 * m4/memrchr.m4: Likewise.
17103 * m4/memset.m4: Likewise.
17104 * m4/minmax.m4: Likewise.
17105 * m4/mkdir-slash.m4: Likewise.
17106 * m4/mkdtemp.m4: Likewise.
17107 * m4/mktime.m4: Likewise.
17108 * m4/mmap-anon.m4: Likewise.
17109 * m4/mountlist.m4: Likewise.
17110 * m4/nanosleep.m4: Likewise.
17111 * m4/nls.m4: Likewise.
17112 * m4/nocrash.m4: Likewise.
17113 * m4/open.m4: Likewise.
17114 * m4/openat.m4: Likewise.
17115 * m4/openmp.m4: Likewise.
17116 * m4/pathmax.m4: Likewise.
17117 * m4/perl.m4: Likewise.
17118 * m4/physmem.m4: Likewise.
17119 * m4/pipe.m4: Likewise.
17120 * m4/po.m4: Likewise.
17121 * m4/poll.m4: Likewise.
17122 * m4/posixtm.m4: Likewise.
17123 * m4/posixver.m4: Likewise.
17124 * m4/printf-frexp.m4: Likewise.
17125 * m4/printf-frexpl.m4: Likewise.
17126 * m4/printf-posix.m4: Likewise.
17127 * m4/printf-posix-rpl.m4: Likewise.
17128 * m4/printf.m4: Likewise.
17129 * m4/progtest.m4: Likewise.
17130 * m4/putenv.m4: Likewise.
17131 * m4/readline.m4: Likewise.
17132 * m4/readlink.m4: Likewise.
17133 * m4/readutmp.m4: Likewise.
17134 * m4/realloc.m4: Likewise.
17135 * m4/regex.m4: Likewise.
17136 * m4/relocatable.m4: Likewise.
17137 * m4/relocatable-lib.m4: Likewise.
17138 * m4/rename-dest-slash.m4: Likewise.
17139 * m4/rename.m4: Likewise.
17140 * m4/rmdir-errno.m4: Likewise.
17141 * m4/rmdir.m4: Likewise.
17142 * m4/roundf.m4: Likewise.
17143 * m4/roundl.m4: Likewise.
17144 * m4/rpmatch.m4: Likewise.
17145 * m4/save-cwd.m4: Likewise.
17146 * m4/selinux-selinux-h.m4: Likewise.
17147 * m4/setenv.m4: Likewise.
17148 * m4/settime.m4: Likewise.
17149 * m4/sig2str.m4: Likewise.
17150 * m4/sig_atomic_t.m4: Likewise.
17151 * m4/signalblocking.m4: Likewise.
17152 * m4/signbit.m4: Likewise.
17153 * m4/sigpipe.m4: Likewise.
17154 * m4/sockets.m4: Likewise.
17155 * m4/sockpfaf.m4: Likewise.
17156 * m4/st_dm_mode.m4: Likewise.
17157 * m4/stat-time.m4: Likewise.
17158 * m4/stdbool.m4: Likewise.
17159 * m4/stdint.m4: Likewise.
17160 * m4/stdint_h.m4: Likewise.
17161 * m4/stpcpy.m4: Likewise.
17162 * m4/stpncpy.m4: Likewise.
17163 * m4/strcase.m4: Likewise.
17164 * m4/strchrnul.m4: Likewise.
17165 * m4/strcspn.m4: Likewise.
17166 * m4/strdup.m4: Likewise.
17167 * m4/strftime.m4: Likewise.
17168 * m4/strndup.m4: Likewise.
17169 * m4/strnlen.m4: Likewise.
17170 * m4/strpbrk.m4: Likewise.
17171 * m4/strptime.m4: Likewise.
17172 * m4/strsep.m4: Likewise.
17173 * m4/strtod.m4: Likewise.
17174 * m4/strtoimax.m4: Likewise.
17175 * m4/strtok_r.m4: Likewise.
17176 * m4/strtol.m4: Likewise.
17177 * m4/strtoll.m4: Likewise.
17178 * m4/strtoul.m4: Likewise.
17179 * m4/strtoull.m4: Likewise.
17180 * m4/strtoumax.m4: Likewise.
17181 * m4/strverscmp.m4: Likewise.
17182 * m4/threadlib.m4: Likewise.
17183 * m4/timegm.m4: Likewise.
17184 * m4/tm_gmtoff.m4: Likewise.
17185 * m4/tmpdir.m4: Likewise.
17186 * m4/tmpfile.m4: Likewise.
17187 * m4/tzset.m4: Likewise.
17188 * m4/uintmax_t.m4: Likewise.
17189 * m4/unlinkdir.m4: Likewise.
17190 * m4/unlocked-io.m4: Likewise.
17191 * m4/uptime.m4: Likewise.
17192 * m4/userspec.m4: Likewise.
17193 * m4/utimbuf.m4: Likewise.
17194 * m4/utime.m4: Likewise.
17195 * m4/utimes-null.m4: Likewise.
17196 * m4/utimes.m4: Likewise.
17197 * m4/vararrays.m4: Likewise.
17198 * m4/vasnprintf.m4: Likewise.
17199 * m4/vfprintf-posix.m4: Likewise.
17200 * m4/vprintf-posix.m4: Likewise.
17201 * m4/wait-process.m4: Likewise.
17202 * m4/wchar_t.m4: Likewise.
17203 * m4/wint_t.m4: Likewise.
17204 * m4/write-any-file.m4: Likewise.
17205 * m4/yield.m4: Likewise.
17207 2009-01-13 Bruno Haible <bruno@clisp.org>
17209 Avoid test-copy-file.sh failures when ACL support insufficient.
17210 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17212 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17213 Reported by Jim Meyering.
17215 2009-01-13 Bruno Haible <bruno@clisp.org>
17217 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17218 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17219 * modules/unistdio/u8-printf-parse (Files): Likewise.
17220 * modules/unistdio/u32-printf-parse (Files): Likewise.
17221 * modules/unistdio/ulc-printf-parse (Files): Likewise.
17223 2009-01-13 Simon Josefsson <simon@josefsson.org>
17225 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17226 and m4/inttypes_h.m4 too.
17228 2009-01-12 Eric Blake <ebb9@byu.net>
17230 tests: IRIX 6.2 cc can't compile -0.0 into .data
17231 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17232 rather than at compile-time.
17233 * tests/test-floorl.c (minus_zero): Likewise.
17234 * tests/test-frexpl.c (minus_zero): Likewise.
17235 * tests/test-isnan.c (minus_zerol): Likewise.
17236 * tests/test-isnanl.h (minus_zero): Likewise.
17237 * tests/test-ldexpl.c (minus_zero): Likewise.
17238 * tests/test-roundl.c (minus_zero): Likewise.
17239 * tests/test-signbit.c (minus_zerol): Likewise.
17240 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17241 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17242 * tests/test-truncl.c (minus_zero): Likewise.
17243 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17244 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17245 Reported by Tom G. Christensen and Nelson H. F. Beebe.
17247 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17249 regex: fix glibc bug 9697
17250 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17253 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17255 regex: fix glibc bug 697
17256 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17257 being NULL also if there are no backreferences.
17259 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17261 regex: merge glibc changes
17262 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17263 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17264 re_string_skip_chars, re_string_reconstruct): Likewise.
17265 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17267 2009-01-07 Jim Meyering <meyering@redhat.com>
17269 poll: filter through cppi
17270 * lib/poll.c: Indent cpp directives to reflect nesting.
17272 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
17274 poll: don't return uninitialized
17275 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17277 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
17279 avoid compile failure on AIX 6.1
17280 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17281 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17283 2009-01-04 Jim Meyering <meyering@redhat.com>
17285 remove duplicate inclusion of <stdio.h>
17286 * tests/test-fprintf-posix.c: Likewise.
17287 * tests/test-printf-posix.c: Likewise.
17288 * tests/test-snprintf-posix.c: Likewise.
17289 * tests/test-sprintf-posix.c: Likewise.
17290 * tests/test-vasprintf-posix.c: Likewise.
17291 * tests/test-vfprintf-posix.c: Likewise.
17292 * tests/test-vprintf-posix.c: Likewise.
17293 * tests/test-vsnprintf-posix.c: Likewise.
17294 * tests/test-vsprintf-posix.c: Likewise.
17296 2009-01-03 Jim Meyering <meyering@redhat.com>
17298 gnulib-tool: fix sed-based filtering
17299 * gnulib-tool (func_filter_filelist): Remove extra backslash
17300 in sed_fff_filter definition.
17302 2009-01-02 Jim Meyering <meyering@redhat.com>
17304 strftime: avoid compilation failure on Solaris 2.6
17305 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17306 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17307 Don't #define mbrlen or mbsinit, since now they're guaranteed to
17308 be available. Reported by Tom G. Christensen. Details in
17309 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17311 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17312 Bruno Haible <bruno@clisp.org>
17314 Speed up gnulib-tool by doing more string processing through shell
17316 * gnulib-tool (fast_func_append): New variable.
17317 (func_remove_prefix, func_remove_suffix): New functions.
17318 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17319 (func_filter_filelist): New function.
17320 (func_get_dependencies): Use func_remove_suffix instead of sed.
17321 (func_get_automake_snippet): Use func_filter_filelist instead of a
17322 subshell and sed invocation.
17324 2009-01-01 Bruno Haible <bruno@clisp.org>
17326 Fix a security bug.
17327 * gnulib-tool (func_import, import, update): Don't allow the characters
17328 '"', '$', '`', '\' in macro arguments that become part of commands that
17331 2009-01-01 Bruno Haible <bruno@clisp.org>
17333 * gnulib-tool (func_reset_sigpipe): Add more comments.
17335 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17337 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17338 func_emit_tests_Makefile_am, func_import): Abort loops early if we
17339 already know the answer.
17341 2009-01-01 Jim Meyering <meyering@redhat.com>
17343 * lib/version-etc.c (version_etc_va): Update copyright year.
17345 2008-12-30 Bruno Haible <bruno@clisp.org>
17347 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17348 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17349 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17351 2008-12-29 Eric Blake <ebb9@byu.net>
17353 multiarch: avoid autoconf AC_REQUIRE bug
17354 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17355 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17357 Reported by Bruno Haible, and analyzed in
17358 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17360 2008-12-29 Bruno Haible <bruno@clisp.org>
17362 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17363 files in subdirectories correctly.
17364 Reported by Ralf Wildenhues.
17366 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17368 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17369 rather than 'join FILE -', for Solaris join.
17371 2008-12-29 Bruno Haible <bruno@clisp.org>
17373 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17375 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17376 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17377 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17378 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17379 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17380 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17381 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17382 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17383 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17384 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17385 * m4/nls.m4 (AM_NLS): Likewise.
17386 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17387 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17388 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17389 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17390 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17391 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17392 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17393 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17394 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17395 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17396 * m4/xsize.m4 (gl_XSIZE): Likewise.
17397 Suggested by Jim Meyering.
17399 2008-11-17 Bruce Korb <bkorb@gnu.org>
17401 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17402 * lib/parse-duration.c: use a switch instead of cascading if's.
17404 2008-12-29 Eric Blake <ebb9@byu.net>
17406 wchar.h: supply WEOF on Irix 5.3
17407 * lib/wchar.in.h (wint_t): Also supply WEOF.
17408 * lib/wctype.in.h (wint_t): Likewise.
17409 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17410 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17411 Reported by Tom G. Christensen.
17413 2008-12-26 Bruno Haible <bruno@clisp.org>
17415 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17418 2008-12-26 Bruno Haible <bruno@clisp.org>
17420 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17422 2008-12-26 Bruno Haible <bruno@clisp.org>
17424 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17425 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17426 not __STDC_CONSTANT_MACROS.
17427 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17429 2008-12-25 Bruno Haible <bruno@clisp.org>
17431 Add support for universal builds to vasnprintf.
17432 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17433 universal builds, guess no.
17434 * modules/vasnprintf-posix (Depends-on): Add multiarch.
17435 * modules/vasprintf-posix (Depends-on): Likewise.
17436 * modules/fprintf-posix (Depends-on): Likewise.
17437 * modules/vfprintf-posix (Depends-on): Likewise.
17438 * modules/snprintf-posix (Depends-on): Likewise.
17439 * modules/vsnprintf-posix (Depends-on): Likewise.
17440 * modules/sprintf-posix (Depends-on): Likewise.
17441 * modules/vsprintf-posix (Depends-on): Likewise.
17442 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17443 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17444 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17445 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17446 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17447 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17448 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17450 Add support for universal builds to <inttypes.h>.
17451 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17452 _SCNu64_PREFIX): In Apple
17453 universal builds, define directly, using _LP64.
17454 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17455 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17456 * modules/inttypes (Depends-on): Add multiarch.
17457 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17459 Add support for universal builds to <stdint.h>.
17460 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17461 universal builds, define directly, using _LP64.
17462 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17463 Apple universal builds, don't test for the size and suffix of ptrdiff_t
17465 * modules/stdint (Depends-on): Add multiarch.
17466 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17468 New module 'multiarch'.
17469 * modules/multiarch: New file.
17470 * m4/multiarch.m4: New file.
17472 2008-12-25 Bruno Haible <bruno@clisp.org>
17474 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17476 2008-12-25 Bruno Haible <bruno@clisp.org>
17478 * modules/btowc (License): Relicense under LGPLv2+.
17479 * modules/mbsinit (License): Likewise.
17480 * modules/mbrtowc (License): Likewise.
17481 * modules/wcrtomb (License): Likewise.
17482 * modules/streq (License): Likewise.
17483 Reported by David Lutterkort <lutter@redhat.com>.
17485 2008-12-23 Bruno Haible <bruno@clisp.org>
17487 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17489 2008-12-23 Bruno Haible <bruno@clisp.org>
17491 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17492 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17493 GETADDRINFO_LIB, not in LIBS.
17494 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17495 * modules/canon-host (Link): Likewise.
17496 * NEWS: Mention the change.
17497 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17500 2008-12-22 Bruno Haible <bruno@clisp.org>
17502 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17503 * doc/posix-functions/iswalpha_l.texi: Likewise.
17504 * doc/posix-functions/iswblank_l.texi: Likewise.
17505 * doc/posix-functions/iswcntrl_l.texi: Likewise.
17506 * doc/posix-functions/iswctype_l.texi: Likewise.
17507 * doc/posix-functions/iswdigit_l.texi: Likewise.
17508 * doc/posix-functions/iswgraph_l.texi: Likewise.
17509 * doc/posix-functions/iswlower_l.texi: Likewise.
17510 * doc/posix-functions/iswprint_l.texi: Likewise.
17511 * doc/posix-functions/iswpunct_l.texi: Likewise.
17512 * doc/posix-functions/iswspace_l.texi: Likewise.
17513 * doc/posix-functions/iswupper_l.texi: Likewise.
17514 * doc/posix-functions/iswxdigit_l.texi: Likewise.
17515 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17516 * doc/posix-functions/open_wmemstream.texi: Likewise.
17517 * doc/posix-functions/swscanf.texi: Likewise.
17518 * doc/posix-functions/towctrans_l.texi: Likewise.
17519 * doc/posix-functions/towlower.texi: Likewise.
17520 * doc/posix-functions/towlower_l.texi: Likewise.
17521 * doc/posix-functions/towupper.texi: Likewise.
17522 * doc/posix-functions/towupper_l.texi: Likewise.
17523 * doc/posix-functions/vfwprintf.texi: Likewise.
17524 * doc/posix-functions/vfwscanf.texi: Likewise.
17525 * doc/posix-functions/vswscanf.texi: Likewise.
17526 * doc/posix-functions/vwprintf.texi: Likewise.
17527 * doc/posix-functions/vwscanf.texi: Likewise.
17528 * doc/posix-functions/wcpcpy.texi: Likewise.
17529 * doc/posix-functions/wcpncpy.texi: Likewise.
17530 * doc/posix-functions/wcscasecmp.texi: Likewise.
17531 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17532 * doc/posix-functions/wcscoll_l.texi: Likewise.
17533 * doc/posix-functions/wcsdup.texi: Likewise.
17534 * doc/posix-functions/wcsncasecmp.texi: Likewise.
17535 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17536 * doc/posix-functions/wcsnlen.texi: Likewise.
17537 * doc/posix-functions/wcsnrtombs.texi: Likewise.
17538 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17539 * doc/posix-functions/wctrans_l.texi: Likewise.
17540 * doc/posix-functions/wctype_l.texi: Likewise.
17541 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17542 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17543 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17544 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17545 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17546 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17547 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17548 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17549 * doc/glibc-functions/wcschrnul.texi: Likewise.
17550 * doc/glibc-functions/wcsftime_l.texi: Likewise.
17551 * doc/glibc-functions/wcstod_l.texi: Likewise.
17552 * doc/glibc-functions/wcstof_l.texi: Likewise.
17553 * doc/glibc-functions/wcstol_l.texi: Likewise.
17554 * doc/glibc-functions/wcstold_l.texi: Likewise.
17555 * doc/glibc-functions/wcstoll_l.texi: Likewise.
17556 * doc/glibc-functions/wcstoq.texi: Likewise.
17557 * doc/glibc-functions/wcstoul_l.texi: Likewise.
17558 * doc/glibc-functions/wcstoull_l.texi: Likewise.
17559 * doc/glibc-functions/wcstouq.texi: Likewise.
17560 * doc/glibc-functions/wmempcpy.texi: Likewise.
17562 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
17563 Eric Blake <ebb9@byu.net>
17564 Paolo Bonzini <bonzini@gnu.org>
17565 Bruno Haible <bruno@clisp.org>
17567 Make c-stack work on Haiku.
17568 * lib/c-stack.c (SA_ONSTACK): Define fallback.
17569 (c_stack_action): Use SA_ONSTACK flag.
17571 2008-12-22 Bruno Haible <bruno@clisp.org>
17573 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17575 2008-12-22 Bruno Haible <bruno@clisp.org>
17577 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17578 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17580 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17582 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17583 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17584 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17585 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17587 2008-12-22 Bruno Haible <bruno@clisp.org>
17589 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17592 2008-12-22 Eric Blake <ebb9@byu.net>
17594 Avoid gcc warnings on cygwin.
17595 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17596 Avoid unused variable.
17597 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17600 2008-12-22 Bruno Haible <bruno@clisp.org>
17602 Remove HAVE_MBRTOWC conditionals.
17603 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17604 (mbscasecmp): Assume mbrtowc function.
17605 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17606 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17607 * lib/mbschr.c: Include mbuiter.h unconditionally.
17608 (mbschr): Assume mbrtowc function.
17609 * lib/mbscspn.c: Include mbuiter.h unconditionally.
17610 (mbscspn): Assume mbrtowc function.
17611 * lib/mbslen.c: Include mbuiter.h unconditionally.
17612 (mbslen): Assume mbrtowc function.
17613 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17614 (mbsncasecmp): Assume mbrtowc function.
17615 * lib/mbsnlen.c: Include mbiter.h unconditionally.
17616 (mbsnlen): Assume mbrtowc function.
17617 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17618 (mbspbrk): Assume mbrtowc function.
17619 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17620 (mbspcasecmp): Assume mbrtowc function.
17621 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17622 (mbsrchr): Assume mbrtowc function.
17623 * lib/mbssep.c: Include mbuiter.h unconditionally.
17624 (mbssep): Assume mbrtowc function.
17625 * lib/mbsspn.c: Include mbuiter.h unconditionally.
17626 (mbsspn): Assume mbrtowc function.
17627 * lib/mbsstr.c: Include mbuiter.h unconditionally.
17628 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17629 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17630 (mbstok_r): Assume mbrtowc function.
17631 * lib/propername.c: Include mbuiter.h unconditionally.
17632 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17633 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17634 (trim2): Assume mbrtowc function.
17635 * lib/mbswidth.c (mbsinit): Remove fallback definition.
17636 (mbsnwidth): Assume mbrtowc function.
17637 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17638 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17639 fallback definitions.
17640 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17642 2008-12-22 Bruno Haible <bruno@clisp.org>
17644 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17646 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
17648 * modules/regex: Request emulations for the mb*/wc* functions we need.
17649 * m4/regex.m4: Don't look for those functions here.
17650 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17652 2008-12-22 Bruno Haible <bruno@clisp.org>
17654 * modules/fnmatch (Depends-on): Remove duplicated dependency.
17656 2008-12-21 Bruno Haible <bruno@clisp.org>
17658 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17659 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17660 (Include): Remove conditionalization.
17661 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17662 (Include): Remove conditionalization.
17663 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17664 (Include): Remove conditionalization.
17665 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17666 * m4/mbfile.m4 (gl_MBFILE): Likewise.
17667 * NEWS: Mention the change.
17668 Reported by Alan Hourihane <alanh@fairlite.co.uk>
17669 via Sergey Poznyakoff <gray@gnu.org.ua>.
17671 2008-12-21 Bruno Haible <bruno@clisp.org>
17673 * MODULES.html.sh (Extended multibyte and wide character utilities
17674 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17675 wcrtomb, wcsrtombs.
17676 (Support for systems lacking POSIX:2008): Add accept, bind, close,
17677 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17678 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17679 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17681 2008-12-21 Bruno Haible <bruno@clisp.org>
17683 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17685 2008-12-21 Bruno Haible <bruno@clisp.org>
17687 * modules/wcsnrtombs-tests: New file.
17688 * tests/test-wcsnrtombs1.sh: New file.
17689 * tests/test-wcsnrtombs2.sh: New file.
17690 * tests/test-wcsnrtombs3.sh: New file.
17691 * tests/test-wcsnrtombs4.sh: New file.
17692 * tests/test-wcsnrtombs.c: New file.
17694 New module 'wcsnrtombs'.
17695 * lib/wchar.in.h (wcsnrtombs): New declaration.
17696 * lib/wcsnrtombs.c: New file.
17697 * lib/wcsrtombs-state.c: New file.
17698 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17699 (internal_state): Remove variable.
17700 * m4/wcsnrtombs.m4: New file.
17701 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17703 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17705 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17707 * modules/wcsnrtombs: New file.
17708 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17709 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17711 2008-12-21 Bruno Haible <bruno@clisp.org>
17713 * modules/wcsrtombs-tests: New file.
17714 * tests/test-wcsrtombs1.sh: New file.
17715 * tests/test-wcsrtombs2.sh: New file.
17716 * tests/test-wcsrtombs3.sh: New file.
17717 * tests/test-wcsrtombs4.sh: New file.
17718 * tests/test-wcsrtombs.c: New file.
17720 New module 'wcsrtombs'.
17721 * lib/wchar.in.h (wcsrtombs): New declaration.
17722 * lib/wcsrtombs.c: New file.
17723 * m4/wcsrtombs.m4: New file.
17724 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17725 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17726 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17727 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17728 * modules/wcsrtombs: New file.
17729 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17732 2008-12-21 Bruno Haible <bruno@clisp.org>
17734 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17735 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17736 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17737 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17739 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17740 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17741 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17742 m4/locale-zh.m4, m4/codeset.m4.
17743 * doc/posix-functions/wcrtomb.texi: Document the bug.
17745 2008-12-21 Bruno Haible <bruno@clisp.org>
17747 Work around a btowc() bug on IRIX 6.5.
17748 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17749 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17750 REPLACE_WTOBC if not.
17751 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17752 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17753 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17755 2008-12-21 Bruno Haible <bruno@clisp.org>
17757 * modules/wcrtomb-tests: New file.
17758 * tests/test-wcrtomb.sh: New file.
17759 * tests/test-wcrtomb.c: New file.
17761 New module 'wcrtomb'.
17762 * lib/wchar.in.h (wcrtomb): New declaration.
17763 * lib/wcrtomb.c: New file.
17764 * m4/wcrtomb.m4: New file.
17765 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17767 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17769 * modules/wcrtomb: New file.
17770 * doc/posix-functions/wcrtomb.texi: Mention the new module.
17772 2008-12-21 Bruno Haible <bruno@clisp.org>
17774 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17775 * modules/mbsrtowcs (Files): Likewise.
17776 * modules/wctob (Files): Likewise.
17777 * modules/c-strcase-tests (Files): Likewise.
17778 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17779 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17780 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17781 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17782 * modules/vasnprintf-posix-tests (Files): Likewise.
17784 2008-12-21 William Pursell <bill.pursell@gmail.com>
17786 gitlog-to-changelog: pass all command-line arguments to git-log
17787 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17788 it is sometimes convenient to filter the commits in various ways.
17789 gitlog-to-changelog only allows --since to specify a start date,
17790 but git-log itself supports many other filtering mechanisms.
17791 At the moment, I want to filter by branch name. Rather than
17792 adding a --branch option to gitlog-to-changelog, it seems more
17793 flexible to simply pass all options directly to git-log and let
17794 git do the work. Notice that this effectively makes --since a
17795 redundant option for gitlog-to-changelog, but removing it would
17796 require current usage to change since calls would then require
17797 an additional '--'.
17799 2008-12-21 Bruno Haible <bruno@clisp.org>
17801 * modules/mbsnrtowcs-tests: New file.
17802 * tests/test-mbsnrtowcs1.sh: New file.
17803 * tests/test-mbsnrtowcs2.sh: New file.
17804 * tests/test-mbsnrtowcs3.sh: New file.
17805 * tests/test-mbsnrtowcs4.sh: New file.
17806 * tests/test-mbsnrtowcs.c: New file.
17808 New module 'mbsnrtowcs'.
17809 * lib/wchar.in.h (mbsnrtowcs): New declaration.
17810 * lib/mbsnrtowcs.c: New file.
17811 * lib/mbsrtowcs-state.c: New file.
17812 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17813 (internal_state): Remove variable.
17814 * m4/mbsnrtowcs.m4: New file.
17815 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17817 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17818 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17819 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17820 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17821 * modules/mbsnrtowcs: New file.
17822 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17823 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17824 portability problem.
17826 2008-12-21 Bruno Haible <bruno@clisp.org>
17828 Work around mbsrtowcs bug.
17829 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17830 (gl_FUNC_MBSRTOWCS): Invoke it.
17831 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17833 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17835 2008-12-21 Bruno Haible <bruno@clisp.org>
17837 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17839 2008-12-21 Bruno Haible <bruno@clisp.org>
17841 Update doc for AIX.
17842 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17843 16-bit wchar_t type.
17844 * doc/posix-functions/btowc.texi: Likewise.
17845 * doc/posix-functions/fgetwc.texi: Likewise.
17846 * doc/posix-functions/fgetws.texi: Likewise.
17847 * doc/posix-functions/fputwc.texi: Likewise.
17848 * doc/posix-functions/fputws.texi: Likewise.
17849 * doc/posix-functions/fwide.texi: Likewise.
17850 * doc/posix-functions/fwprintf.texi: Likewise.
17851 * doc/posix-functions/fwscanf.texi: Likewise.
17852 * doc/posix-functions/getwchar.texi: Likewise.
17853 * doc/posix-functions/getwc.texi: Likewise.
17854 * doc/posix-functions/iswalnum.texi: Likewise.
17855 * doc/posix-functions/iswalpha.texi: Likewise.
17856 * doc/posix-functions/iswblank.texi: Likewise.
17857 * doc/posix-functions/iswcntrl.texi: Likewise.
17858 * doc/posix-functions/iswctype.texi: Likewise.
17859 * doc/posix-functions/iswdigit.texi: Likewise.
17860 * doc/posix-functions/iswgraph.texi: Likewise.
17861 * doc/posix-functions/iswlower.texi: Likewise.
17862 * doc/posix-functions/iswprint.texi: Likewise.
17863 * doc/posix-functions/iswpunct.texi: Likewise.
17864 * doc/posix-functions/iswspace.texi: Likewise.
17865 * doc/posix-functions/iswupper.texi: Likewise.
17866 * doc/posix-functions/iswxdigit.texi: Likewise.
17867 * doc/posix-functions/mbrtowc.texi: Likewise.
17868 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17869 * doc/posix-functions/mbstowcs.texi: Likewise.
17870 * doc/posix-functions/mbtowc.texi: Likewise.
17871 * doc/posix-functions/putwchar.texi: Likewise.
17872 * doc/posix-functions/putwc.texi: Likewise.
17873 * doc/posix-functions/swprintf.texi: Likewise.
17874 * doc/posix-functions/tolower.texi: Likewise.
17875 * doc/posix-functions/toupper.texi: Likewise.
17876 * doc/posix-functions/towctrans.texi: Likewise.
17877 * doc/posix-functions/ungetwc.texi: Likewise.
17878 * doc/posix-functions/vswprintf.texi: Likewise.
17879 * doc/posix-functions/wcrtomb.texi: Likewise.
17880 * doc/posix-functions/wcscat.texi: Likewise.
17881 * doc/posix-functions/wcschr.texi: Likewise.
17882 * doc/posix-functions/wcscmp.texi: Likewise.
17883 * doc/posix-functions/wcscoll.texi: Likewise.
17884 * doc/posix-functions/wcscpy.texi: Likewise.
17885 * doc/posix-functions/wcscspn.texi: Likewise.
17886 * doc/posix-functions/wcsftime.texi: Likewise.
17887 * doc/posix-functions/wcslen.texi: Likewise.
17888 * doc/posix-functions/wcsncat.texi: Likewise.
17889 * doc/posix-functions/wcsncmp.texi: Likewise.
17890 * doc/posix-functions/wcsncpy.texi: Likewise.
17891 * doc/posix-functions/wcspbrk.texi: Likewise.
17892 * doc/posix-functions/wcsrchr.texi: Likewise.
17893 * doc/posix-functions/wcsrtombs.texi: Likewise.
17894 * doc/posix-functions/wcsspn.texi: Likewise.
17895 * doc/posix-functions/wcsstr.texi: Likewise.
17896 * doc/posix-functions/wcstod.texi: Likewise.
17897 * doc/posix-functions/wcstof.texi: Likewise.
17898 * doc/posix-functions/wcstoimax.texi: Likewise.
17899 * doc/posix-functions/wcstok.texi: Likewise.
17900 * doc/posix-functions/wcstold.texi: Likewise.
17901 * doc/posix-functions/wcstoll.texi: Likewise.
17902 * doc/posix-functions/wcstol.texi: Likewise.
17903 * doc/posix-functions/wcstombs.texi: Likewise.
17904 * doc/posix-functions/wcstoull.texi: Likewise.
17905 * doc/posix-functions/wcstoul.texi: Likewise.
17906 * doc/posix-functions/wcstoumax.texi: Likewise.
17907 * doc/posix-functions/wcswidth.texi: Likewise.
17908 * doc/posix-functions/wcsxfrm.texi: Likewise.
17909 * doc/posix-functions/wctob.texi: Likewise.
17910 * doc/posix-functions/wctomb.texi: Likewise.
17911 * doc/posix-functions/wctrans.texi: Likewise.
17912 * doc/posix-functions/wctype.texi: Likewise.
17913 * doc/posix-functions/wcwidth.texi: Likewise.
17914 * doc/posix-functions/wmemchr.texi: Likewise.
17915 * doc/posix-functions/wmemcmp.texi: Likewise.
17916 * doc/posix-functions/wmemcpy.texi: Likewise.
17917 * doc/posix-functions/wmemmove.texi: Likewise.
17918 * doc/posix-functions/wmemset.texi: Likewise.
17919 * doc/posix-functions/wprintf.texi: Likewise.
17920 * doc/posix-functions/wscanf.texi: Likewise.
17922 2008-12-21 Bruno Haible <bruno@clisp.org>
17924 Update doc for HP-UX 11.11.
17925 * doc/posix-functions/btowc.texi: Clarify that the function is missing
17926 in HP-UX version 11.00, not in all versions of HP-UX 11.
17927 * doc/posix-functions/fwide.texi: Likewise.
17928 * doc/posix-functions/fwprintf.texi: Likewise.
17929 * doc/posix-functions/fwscanf.texi: Likewise.
17930 * doc/posix-functions/inet_ntop.texi: Likewise.
17931 * doc/posix-functions/inet_pton.texi: Likewise.
17932 * doc/posix-functions/mbrlen.texi: Likewise.
17933 * doc/posix-functions/mbrtowc.texi: Likewise.
17934 * doc/posix-functions/mbsinit.texi: Likewise.
17935 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17936 * doc/posix-functions/swprintf.texi: Likewise.
17937 * doc/posix-functions/swscanf.texi: Likewise.
17938 * doc/posix-functions/towctrans.texi: Likewise.
17939 * doc/posix-functions/vfwprintf.texi: Likewise.
17940 * doc/posix-functions/vswprintf.texi: Likewise.
17941 * doc/posix-functions/vwprintf.texi: Likewise.
17942 * doc/posix-functions/wcrtomb.texi: Likewise.
17943 * doc/posix-functions/wcsrtombs.texi: Likewise.
17944 * doc/posix-functions/wcsstr.texi: Likewise.
17945 * doc/posix-functions/wctob.texi: Likewise.
17946 * doc/posix-functions/wctrans.texi: Likewise.
17947 * doc/posix-functions/wmemchr.texi: Likewise.
17948 * doc/posix-functions/wmemcmp.texi: Likewise.
17949 * doc/posix-functions/wmemcpy.texi: Likewise.
17950 * doc/posix-functions/wmemmove.texi: Likewise.
17951 * doc/posix-functions/wmemset.texi: Likewise.
17952 * doc/posix-functions/wprintf.texi: Likewise.
17953 * doc/posix-functions/wscanf.texi: Likewise.
17955 2008-12-21 Bruno Haible <bruno@clisp.org>
17957 Work around a portability problem.
17958 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17959 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17961 2008-12-20 Bruno Haible <bruno@clisp.org>
17963 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17964 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17965 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17966 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17967 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17969 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17970 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17972 (GNULIB_defined_mbstate_t): New macro.
17973 (mbsinit): Redefine if REPLACE_MBSINIT is set.
17974 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17975 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17976 reuses the system's mbrtowc function but works around the bugs.
17977 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17978 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17980 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17981 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17982 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17983 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17984 REPLACE_MBSINIT if mbsinit needs to be overridden.
17985 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17986 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17987 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17988 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17989 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17991 (Depends): Add mbsinit.
17992 * modules/mbsinit (Depends): Add mbrtowc.
17993 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17995 2008-12-20 Bruno Haible <bruno@clisp.org>
17997 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17998 so that there are no conversion errors on AIX.
17999 * tests/test-mbsrtowcs.c (main): LIkewise.
18001 2008-12-20 Bruno Haible <bruno@clisp.org>
18003 Work around wctob bug on Solaris <= 9.
18004 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18005 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18006 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18007 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18008 * modules/wctob (Files): Add m4/locale-fr.m4.
18009 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18011 2008-12-20 Bruno Haible <bruno@clisp.org>
18013 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18015 * tests/test-select-in.sh: Likewise.
18016 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18018 2008-12-20 Bruno Haible <bruno@clisp.org>
18020 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18021 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18024 2008-12-20 Bruno Haible <bruno@clisp.org>
18026 Ensure mbstate_t is defined on HP-UX 11.11.
18027 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18028 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18029 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18030 AC_USE_SYSTEM_EXTENSIONS.
18031 * modules/fnmatch (Depends-on): Add extensions.
18032 * modules/mbrlen (Depends-on): Likewise.
18033 * modules/mbrtowc (Depends-on): Likewise.
18034 * modules/mbsinit (Depends-on): Likewise.
18035 * modules/mbsrtowcs (Depends-on): Likewise.
18036 * modules/mbswidth (Depends-on): Likewise.
18037 * modules/quotearg (Depends-on): Likewise.
18038 * modules/strftime (Depends-on): Likewise.
18040 2008-12-20 Bruno Haible <bruno@clisp.org>
18042 Ensure wctob is declared on IRIX 6.5.
18043 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18044 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18045 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18046 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18048 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18050 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18052 2008-12-19 Bruno Haible <bruno@clisp.org>
18054 * modules/mbsrtowcs-tests: New file.
18055 * tests/test-mbsrtowcs1.sh: New file.
18056 * tests/test-mbsrtowcs2.sh: New file.
18057 * tests/test-mbsrtowcs3.sh: New file.
18058 * tests/test-mbsrtowcs4.sh: New file.
18059 * tests/test-mbsrtowcs.c: New file.
18061 New module 'mbsrtowcs'.
18062 * lib/wchar.in.h (mbsrtowcs): New declaration.
18063 * lib/mbsrtowcs.c: New file.
18064 * m4/mbsrtowcs.m4: New file.
18065 * modules/mbsrtowcs: New file.
18066 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18068 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18070 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18072 2008-12-19 Bruno Haible <bruno@clisp.org>
18074 New module 'mbrlen'.
18075 * lib/wchar.in.h (mbrlen): New declaration.
18076 * lib/mbrlen.c: New file.
18077 * m4/mbrlen.m4: New file.
18078 * modules/mbrlen: New file.
18079 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18081 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18083 * doc/posix-functions/mbrlen.texi: Document the new module.
18085 2008-12-19 Bruno Haible <bruno@clisp.org>
18087 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18088 * modules/mbrtowc (Depends-on): Add verify.
18089 Suggested by Paul Eggert.
18091 2008-12-18 Bruno Haible <bruno@clisp.org>
18093 * modules/mbsinit-tests: New file.
18094 * tests/test-mbsinit.sh: New file.
18095 * tests/test-mbsinit.c: New file.
18097 2008-12-18 Bruno Haible <bruno@clisp.org>
18099 * modules/mbrtowc-tests: New file.
18100 * tests/test-mbrtowc1.sh: New file.
18101 * tests/test-mbrtowc2.sh: New file.
18102 * tests/test-mbrtowc3.sh: New file.
18103 * tests/test-mbrtowc4.sh: New file.
18104 * tests/test-mbrtowc.c: New file.
18106 New module 'mbrtowc'.
18107 * lib/wchar.in.h (mbstate_t): Override when the system does not have
18108 mbsinit and mbrtowc.
18109 (mbrtowc): New declaration.
18110 * lib/mbrtowc.c: New file.
18111 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18112 * modules/mbrtowc: New file.
18113 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18115 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18117 * doc/posix-functions/mbrtowc.texi: Document the new module.
18119 2008-12-18 Bruno Haible <bruno@clisp.org>
18121 New module 'wctob'.
18122 * lib/wchar.in.h (wctob): New declaration.
18123 * lib/wctob.c: New file.
18124 * m4/wctob.m4: New file.
18125 * modules/wctob: New file.
18126 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18128 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18129 * doc/posix-functions/wctob.texi: Document the new module.
18131 2008-12-18 Bruno Haible <bruno@clisp.org>
18133 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18134 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18136 2008-12-18 Simon Josefsson <simon@josefsson.org>
18138 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
18139 G. Christensen" <tgc@jupiterrise.com>.
18141 * lib/flock.c: Need to include errno.h. Reported by "Tom
18142 G. Christensen" <tgc@jupiterrise.com>.
18144 * lib/flock.c: Need to include string.h. Reported by "Tom
18145 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18148 2008-12-18 Bruno Haible <bruno@clisp.org>
18150 * m4/locale-ja.m4: New file, from GNU gettext.
18152 2008-12-17 Bruno Haible <bruno@clisp.org>
18154 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18155 Suggested by Eric Blake.
18157 2008-12-17 Bruno Haible <bruno@clisp.org>
18159 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18161 2008-12-17 Bruno Haible <bruno@clisp.org>
18163 * lib/mbsinit.c: Include verify.h. Verify an assumption.
18164 * modules/mbsinit (Depends-on): Add verify.
18165 Suggested by Paul Eggert.
18167 2008-12-17 Bruno Haible <bruno@clisp.org>
18169 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18170 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18172 * m4/mbiter.m4 (gl_MBITER): LIkewise.
18173 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18174 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18175 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18176 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18177 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18178 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18179 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18180 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18181 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18182 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18183 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18184 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18185 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18186 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18187 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18188 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18189 * modules/trim (configure.ac): Likewise.
18191 2008-12-17 Bruno Haible <bruno@clisp.org>
18193 * modules/btowc-tests: New file.
18194 * tests/test-btowc1.sh: New file.
18195 * tests/test-btowc2.sh: New file.
18196 * tests/test-btowc.c: New file.
18198 New module 'btowc'.
18199 * lib/wchar.in.h (btowc): New declaration.
18200 * lib/btowc.c: New file.
18201 * m4/btowc.m4: New file.
18202 * modules/btowc: New file.
18203 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18205 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18206 * doc/posix-functions/btowc.texi: Document the new module.
18208 2008-12-17 Bruno Haible <bruno@clisp.org>
18210 New module 'mbsinit'.
18211 * lib/wchar.in.h (mbsinit): New declaration.
18212 * lib/mbsinit.c: New file.
18213 * m4/mbsinit.m4: New file.
18214 * modules/mbsinit: New file.
18215 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18217 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18219 * doc/posix-functions/mbsinit.texi: Document the new module.
18221 2008-12-16 Bruno Haible <bruno@clisp.org>
18223 * lib/unistd.in.h: Add comment.
18224 * tests/test-environ.c: Don't include <stdlib.h>.
18226 2008-12-16 Bruno Haible <bruno@clisp.org>
18228 * lib/parse-duration.h (parse_duration): Document return value
18230 * lib/parse-duration.c: Include specification header first. Add
18233 (parse_year_month_day, parse_hour_minute_second): Move side effects
18234 outside of strchr call.
18235 (parse_non_iso8601): Move side effects outside of isspace call.
18236 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18239 2008-12-16 Bruno Haible <bruno@clisp.org>
18241 * tests/test-parse-duration.sh: Produce no output when the test
18244 2008-12-16 Bruno Haible <bruno@clisp.org>
18246 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18249 2008-12-15 Bruno Haible <bruno@clisp.org>
18251 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18252 * doc/glibc-functions/flistxattr.texi: Likewise.
18253 * doc/glibc-functions/fopencookie.texi: Likewise.
18254 * doc/glibc-functions/fremovexattr.texi: Likewise.
18255 * doc/glibc-functions/fsetxattr.texi: Likewise.
18256 * doc/glibc-functions/getxattr.texi: Likewise.
18257 * doc/glibc-functions/lgetxattr.texi: Likewise.
18258 * doc/glibc-functions/listxattr.texi: Likewise.
18259 * doc/glibc-functions/llistxattr.texi: Likewise.
18260 * doc/glibc-functions/lremovexattr.texi: Likewise.
18261 * doc/glibc-functions/lsetxattr.texi: Likewise.
18262 * doc/glibc-functions/removexattr.texi: Likewise.
18263 * doc/glibc-functions/setxattr.texi: Likewise.
18264 * doc/posix-functions/open_memstream.texi: Likewise.
18266 2008-12-15 Eric Blake <ebb9@byu.net>
18268 Update doc for cygwin 1.7.
18269 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18271 * doc/posix-functions/fchmodat.texi: Likewise.
18272 * doc/posix-functions/fchownat.texi: Likewise.
18273 * doc/posix-functions/fdopendir.texi: Likewise.
18274 * doc/posix-functions/fmemopen.texi: Likewise.
18275 * doc/posix-functions/freeaddrinfo.texi: Likewise.
18276 * doc/posix-functions/fstatat.texi: Likewise.
18277 * doc/posix-functions/futimens.texi: Likewise.
18278 * doc/posix-functions/gai_strerror.texi: Likewise.
18279 * doc/posix-functions/getaddrinfo.texi: Likewise.
18280 * doc/posix-functions/getnameinfo.texi: Likewise.
18281 * doc/posix-functions/if_freenameindex.texi: Likewise.
18282 * doc/posix-functions/if_indextoname.texi: Likewise.
18283 * doc/posix-functions/if_nameindex.texi: Likewise.
18284 * doc/posix-functions/if_nametoindex.texi: Likewise.
18285 * doc/posix-functions/insque.texi: Likewise.
18286 * doc/posix-functions/linkat.texi: Likewise.
18287 * doc/posix-functions/llrint.texi: Likewise.
18288 * doc/posix-functions/llrintf.texi: Likewise.
18289 * doc/posix-functions/llrintl.texi: Likewise.
18290 * doc/posix-functions/lockf.texi: Likewise.
18291 * doc/posix-functions/lrintl.texi: Likewise.
18292 * doc/posix-functions/mkdirat.texi: Likewise.
18293 * doc/posix-functions/mkfifoat.texi: Likewise.
18294 * doc/posix-functions/mknodat.texi: Likewise.
18295 * doc/posix-functions/mq_close.texi: Likewise.
18296 * doc/posix-functions/mq_getattr.texi: Likewise.
18297 * doc/posix-functions/mq_notify.texi: Likewise.
18298 * doc/posix-functions/mq_open.texi: Likewise.
18299 * doc/posix-functions/mq_receive.texi: Likewise.
18300 * doc/posix-functions/mq_send.texi: Likewise.
18301 * doc/posix-functions/mq_setattr.texi: Likewise.
18302 * doc/posix-functions/mq_timedreceive.texi: Likewise.
18303 * doc/posix-functions/mq_timedsend.texi: Likewise.
18304 * doc/posix-functions/mq_unlink.texi: Likewise.
18305 * doc/posix-functions/open_memstream.texi: Likewise.
18306 * doc/posix-functions/openat.texi: Likewise.
18307 * doc/posix-functions/posix_fadvise.texi: Likewise.
18308 * doc/posix-functions/posix_fallocate.texi: Likewise.
18309 * doc/posix-functions/posix_madvise.texi: Likewise.
18310 * doc/posix-functions/posix_memalign.texi: Likewise.
18311 * doc/posix-functions/posix_openpt.texi: Likewise.
18312 * doc/posix-functions/readlinkat.texi: Likewise.
18313 * doc/posix-functions/remque.texi: Likewise.
18314 * doc/posix-functions/renameat.texi: Likewise.
18315 * doc/posix-functions/rintl.texi: Likewise.
18316 * doc/posix-functions/sem_unlink.texi: Likewise.
18317 * doc/posix-functions/shm_open.texi: Likewise.
18318 * doc/posix-functions/shm_unlink.texi: Likewise.
18319 * doc/posix-functions/signgam.texi: Likewise.
18320 * doc/posix-functions/sigset.texi: Likewise.
18321 * doc/posix-functions/stpcpy.texi: Likewise.
18322 * doc/posix-functions/stpncpy.texi: Likewise.
18323 * doc/posix-functions/strerror.texi: Likewise.
18324 * doc/posix-functions/strtod.texi: Likewise.
18325 * doc/posix-functions/symlinkat.texi: Likewise.
18326 * doc/posix-functions/unlinkat.texi: Likewise.
18327 * doc/posix-functions/utimensat.texi: Likewise.
18328 * doc/glibc-functions/bindresvport.texi: Likewise.
18329 * doc/glibc-functions/dn_expand.texi: Likewise.
18330 * doc/glibc-functions/exp10.texi: Likewise.
18331 * doc/glibc-functions/exp10f.texi: Likewise.
18332 * doc/glibc-functions/fgetxattr.texi: Likewise.
18333 * doc/glibc-functions/flistxattr.texi: Likewise.
18334 * doc/glibc-functions/fopencookie.texi: Likewise.
18335 * doc/glibc-functions/freeifaddrs.texi: Likewise.
18336 * doc/glibc-functions/fremovexattr.texi: Likewise.
18337 * doc/glibc-functions/fsetxattr.texi: Likewise.
18338 * doc/glibc-functions/getifaddrs.texi: Likewise.
18339 * doc/glibc-functions/getxattr.texi: Likewise.
18340 * doc/glibc-functions/lgetxattr.texi: Likewise.
18341 * doc/glibc-functions/listxattr.texi: Likewise.
18342 * doc/glibc-functions/llistxattr.texi: Likewise.
18343 * doc/glibc-functions/lremovexattr.texi: Likewise.
18344 * doc/glibc-functions/lsetxattr.texi: Likewise.
18345 * doc/glibc-functions/pow10.texi: Likewise.
18346 * doc/glibc-functions/pow10f.texi: Likewise.
18347 * doc/glibc-functions/rcmd_af.texi: Likewise.
18348 * doc/glibc-functions/removexattr.texi: Likewise.
18349 * doc/glibc-functions/res_init.texi: Likewise.
18350 * doc/glibc-functions/res_mkquery.texi: Likewise.
18351 * doc/glibc-functions/res_query.texi: Likewise.
18352 * doc/glibc-functions/res_querydomain.texi: Likewise.
18353 * doc/glibc-functions/res_send.texi: Likewise.
18354 * doc/glibc-functions/rresvport_af.texi: Likewise.
18355 * doc/glibc-functions/setxattr.texi: Likewise.
18356 * doc/glibc-functions/strcasestr.texi: Likewise.
18358 2008-12-15 Bruno Haible <bruno@clisp.org>
18360 Fix compilation error on OSF/1 4.0.
18361 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18362 <sys/time.h>, simply delegate to the system header.
18363 Reported by Daniel Richard G. <oss@teragram.com>.
18365 2008-12-15 Bruno Haible <bruno@clisp.org>
18367 * doc/posix-functions/openat.texi: Mention the 'openat' module.
18368 * doc/posix-functions/fchmodat.texi: Likewise.
18369 * doc/posix-functions/fchownat.texi: Likewise.
18370 * doc/posix-functions/fdopendir.texi: Likewise.
18371 * doc/posix-functions/fstatat.texi: Likewise.
18372 * doc/posix-functions/mkdirat.texi: Likewise.
18373 * doc/posix-functions/unlinkat.texi: Likewise.
18375 2008-12-14 Bruno Haible <bruno@clisp.org>
18377 Update doc for POSIX:2008.
18378 * doc/posix-functions/faccessat.texi: New file.
18379 * doc/posix-functions/fchmodat.texi: New file.
18380 * doc/posix-functions/fchownat.texi: New file.
18381 * doc/posix-functions/fdopendir.texi: New file.
18382 * doc/posix-functions/fstatat.texi: New file.
18383 * doc/posix-functions/futimens.texi: New file.
18384 * doc/posix-functions/linkat.texi: New file.
18385 * doc/posix-functions/mkdirat.texi: New file.
18386 * doc/posix-functions/mkfifoat.texi: New file.
18387 * doc/posix-functions/mknodat.texi: New file.
18388 * doc/posix-functions/open_wmemstream.texi: New file.
18389 * doc/posix-functions/openat.texi: New file.
18390 * doc/posix-functions/psiginfo.texi: New file.
18391 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18392 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18393 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18394 * doc/posix-functions/readlinkat.texi: New file.
18395 * doc/posix-functions/renameat.texi: New file.
18396 * doc/posix-functions/strerror_l.texi: New file.
18397 * doc/posix-functions/symlinkat.texi: New file.
18398 * doc/posix-functions/unlinkat.texi: New file.
18399 * doc/posix-functions/utimensat.texi: New file.
18400 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18402 2008-12-14 Bruno Haible <bruno@clisp.org>
18404 Update doc for POSIX:2008.
18405 * doc/posix-functions/alphasort.texi: Renamed from
18406 doc/glibc-functions/alphasort.texi.
18407 * doc/posix-functions/dirfd.texi: Renamed from
18408 doc/glibc-functions/dirfd.texi.
18409 * doc/posix-functions/dprintf.texi: Renamed from
18410 doc/glibc-functions/dprintf.texi.
18411 * doc/posix-functions/duplocale.texi: Renamed from
18412 doc/glibc-functions/duplocale.texi.
18413 * doc/posix-functions/fexecve.texi: Renamed from
18414 doc/glibc-functions/fexecve.texi.
18415 * doc/posix-functions/fmemopen.texi: Renamed from
18416 doc/glibc-functions/fmemopen.texi.
18417 * doc/posix-functions/freelocale.texi: Renamed from
18418 doc/glibc-functions/freelocale.texi.
18419 * doc/posix-functions/getdate_err.texi: Renamed from
18420 doc/glibc-functions/getdate_err.texi.
18421 * doc/posix-functions/isalnum_l.texi: Renamed from
18422 doc/glibc-functions/isalnum_l.texi.
18423 * doc/posix-functions/isalpha_l.texi: Renamed from
18424 doc/glibc-functions/isalpha_l.texi.
18425 * doc/posix-functions/isblank_l.texi: Renamed from
18426 doc/glibc-functions/isblank_l.texi.
18427 * doc/posix-functions/iscntrl_l.texi: Renamed from
18428 doc/glibc-functions/iscntrl_l.texi.
18429 * doc/posix-functions/isdigit_l.texi: Renamed from
18430 doc/glibc-functions/isdigit_l.texi.
18431 * doc/posix-functions/isgraph_l.texi: Renamed from
18432 doc/glibc-functions/isgraph_l.texi.
18433 * doc/posix-functions/islower_l.texi: Renamed from
18434 doc/glibc-functions/islower_l.texi.
18435 * doc/posix-functions/isprint_l.texi: Renamed from
18436 doc/glibc-functions/isprint_l.texi.
18437 * doc/posix-functions/ispunct_l.texi: Renamed from
18438 doc/glibc-functions/ispunct_l.texi.
18439 * doc/posix-functions/isspace_l.texi: Renamed from
18440 doc/glibc-functions/isspace_l.texi.
18441 * doc/posix-functions/isupper_l.texi: Renamed from
18442 doc/glibc-functions/isupper_l.texi.
18443 * doc/posix-functions/iswalnum_l.texi: Renamed from
18444 doc/glibc-functions/iswalnum_l.texi.
18445 * doc/posix-functions/iswalpha_l.texi: Renamed from
18446 doc/glibc-functions/iswalpha_l.texi.
18447 * doc/posix-functions/iswblank_l.texi: Renamed from
18448 doc/glibc-functions/iswblank_l.texi.
18449 * doc/posix-functions/iswcntrl_l.texi: Renamed from
18450 doc/glibc-functions/iswcntrl_l.texi.
18451 * doc/posix-functions/iswctype_l.texi: Renamed from
18452 doc/glibc-functions/iswctype_l.texi.
18453 * doc/posix-functions/iswdigit_l.texi: Renamed from
18454 doc/glibc-functions/iswdigit_l.texi.
18455 * doc/posix-functions/iswgraph_l.texi: Renamed from
18456 doc/glibc-functions/iswgraph_l.texi.
18457 * doc/posix-functions/iswlower_l.texi: Renamed from
18458 doc/glibc-functions/iswlower_l.texi.
18459 * doc/posix-functions/iswprint_l.texi: Renamed from
18460 doc/glibc-functions/iswprint_l.texi.
18461 * doc/posix-functions/iswpunct_l.texi: Renamed from
18462 doc/glibc-functions/iswpunct_l.texi.
18463 * doc/posix-functions/iswspace_l.texi: Renamed from
18464 doc/glibc-functions/iswspace_l.texi.
18465 * doc/posix-functions/iswupper_l.texi: Renamed from
18466 doc/glibc-functions/iswupper_l.texi.
18467 * doc/posix-functions/iswxdigit_l.texi: Renamed from
18468 doc/glibc-functions/iswxdigit_l.texi.
18469 * doc/posix-functions/isxdigit_l.texi: Renamed from
18470 doc/glibc-functions/isxdigit_l.texi.
18471 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18472 doc/glibc-functions/mbsnrtowcs.texi.
18473 * doc/posix-functions/mkdtemp.texi: Renamed from
18474 doc/glibc-functions/mkdtemp.texi.
18475 * doc/posix-functions/newlocale.texi: Renamed from
18476 doc/glibc-functions/newlocale.texi.
18477 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18478 doc/glibc-functions/nl_langinfo_l.texi.
18479 * doc/posix-functions/open_memstream.texi: Renamed from
18480 doc/glibc-functions/open_memstream.texi.
18481 * doc/posix-functions/opterr.texi: Renamed from
18482 doc/glibc-functions/opterr.texi.
18483 * doc/posix-functions/optind.texi: Renamed from
18484 doc/glibc-functions/optind.texi.
18485 * doc/posix-functions/optopt.texi: Renamed from
18486 doc/glibc-functions/optopt.texi.
18487 * doc/posix-functions/psignal.texi: Renamed from
18488 doc/glibc-functions/psignal.texi.
18489 * doc/posix-functions/scandir.texi: Renamed from
18490 doc/glibc-functions/scandir.texi.
18491 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18492 doc/glibc-functions/sched_get_priority_min.texi.
18493 * doc/posix-functions/signgam.texi: Renamed from
18494 doc/glibc-functions/signgam.texi.
18495 * doc/posix-functions/stpcpy.texi: Renamed from
18496 doc/glibc-functions/stpcpy.texi.
18497 * doc/posix-functions/stpncpy.texi: Renamed from
18498 doc/glibc-functions/stpncpy.texi.
18499 * doc/posix-functions/strcasecmp_l.texi: Renamed from
18500 doc/glibc-functions/strcasecmp_l.texi.
18501 * doc/posix-functions/strcoll_l.texi: Renamed from
18502 doc/glibc-functions/strcoll_l.texi.
18503 * doc/posix-functions/strfmon_l.texi: Renamed from
18504 doc/glibc-functions/strfmon_l.texi.
18505 * doc/posix-functions/strftime_l.texi: Renamed from
18506 doc/glibc-functions/strftime_l.texi.
18507 * doc/posix-functions/strncasecmp_l.texi: Renamed from
18508 doc/glibc-functions/strncasecmp_l.texi.
18509 * doc/posix-functions/strndup.texi: Renamed from
18510 doc/glibc-functions/strndup.texi.
18511 * doc/posix-functions/strnlen.texi: Renamed from
18512 doc/glibc-functions/strnlen.texi.
18513 * doc/posix-functions/strsignal.texi: Renamed from
18514 doc/glibc-functions/strsignal.texi.
18515 * doc/posix-functions/strxfrm_l.texi: Renamed from
18516 doc/glibc-functions/strxfrm_l.texi.
18517 * doc/posix-functions/timer_gettime.texi: Renamed from
18518 doc/glibc-functions/timer_gettime.texi.
18519 * doc/posix-functions/tolower_l.texi: Renamed from
18520 doc/glibc-functions/tolower_l.texi.
18521 * doc/posix-functions/toupper_l.texi: Renamed from
18522 doc/glibc-functions/toupper_l.texi.
18523 * doc/posix-functions/towctrans_l.texi: Renamed from
18524 doc/glibc-functions/towctrans_l.texi.
18525 * doc/posix-functions/towlower_l.texi: Renamed from
18526 doc/glibc-functions/towlower_l.texi.
18527 * doc/posix-functions/towupper_l.texi: Renamed from
18528 doc/glibc-functions/towupper_l.texi.
18529 * doc/posix-functions/uselocale.texi: Renamed from
18530 doc/glibc-functions/uselocale.texi.
18531 * doc/posix-functions/vdprintf.texi: Renamed from
18532 doc/glibc-functions/vdprintf.texi.
18533 * doc/posix-functions/wcpcpy.texi:
18534 Renamed from doc/glibc-functions/wcpcpy.texi.
18535 * doc/posix-functions/wcpncpy.texi: Renamed from
18536 doc/glibc-functions/wcpncpy.texi.
18537 * doc/posix-functions/wcscasecmp.texi: Renamed from
18538 doc/glibc-functions/wcscasecmp.texi.
18539 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18540 doc/glibc-functions/wcscasecmp_l.texi.
18541 * doc/posix-functions/wcscoll_l.texi: Renamed from
18542 doc/glibc-functions/wcscoll_l.texi.
18543 * doc/posix-functions/wcsdup.texi: Renamed from
18544 doc/glibc-functions/wcsdup.texi.
18545 * doc/posix-functions/wcsncasecmp.texi: Renamed from
18546 doc/glibc-functions/wcsncasecmp.texi.
18547 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18548 doc/glibc-functions/wcsncasecmp_l.texi.
18549 * doc/posix-functions/wcsnlen.texi: Renamed from
18550 doc/glibc-functions/wcsnlen.texi.
18551 * doc/posix-functions/wcsnrtombs.texi: Renamed from
18552 doc/glibc-functions/wcsnrtombs.texi.
18553 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18554 doc/glibc-functions/wcsxfrm_l.texi.
18555 * doc/posix-functions/wctrans_l.texi: Renamed from
18556 doc/glibc-functions/wctrans_l.texi.
18557 * doc/posix-functions/wctype_l.texi: Renamed from
18558 doc/glibc-functions/wctype_l.texi.
18559 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18560 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18561 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18562 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18564 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18567 2008-12-14 Bruno Haible <bruno@clisp.org>
18569 Update doc for POSIX:2008.
18570 * doc/posix-functions/*.texi: Update URL of POSIX specification.
18572 2008-12-14 Bruno Haible <bruno@clisp.org>
18574 Update doc for POSIX:2008.
18575 * doc/pastposix-functions/bcmp.texi: Renamed from
18576 doc/posix-functions/bcmp.texi.
18577 * doc/pastposix-functions/bcopy.texi: Renamed from
18578 doc/posix-functions/bcopy.texi.
18579 * doc/pastposix-functions/bsd_signal.texi: Renamed from
18580 doc/posix-functions/bsd_signal.texi.
18581 * doc/pastposix-functions/bzero.texi: Renamed from
18582 doc/posix-functions/bzero.texi.
18583 * doc/pastposix-functions/ecvt.texi: Renamed from
18584 doc/posix-functions/ecvt.texi.
18585 * doc/pastposix-functions/fcvt.texi: Renamed from
18586 doc/posix-functions/fcvt.texi.
18587 * doc/pastposix-functions/ftime.texi: Renamed from
18588 doc/posix-functions/ftime.texi.
18589 * doc/pastposix-functions/gcvt.texi: Renamed from
18590 doc/posix-functions/gcvt.texi.
18591 * doc/pastposix-functions/getcontext.texi: Renamed from
18592 doc/posix-functions/getcontext.texi.
18593 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18594 doc/posix-functions/gethostbyaddr.texi.
18595 * doc/pastposix-functions/gethostbyname.texi: Renamed from
18596 doc/posix-functions/gethostbyname.texi.
18597 * doc/pastposix-functions/getwd.texi: Renamed from
18598 doc/posix-functions/getwd.texi.
18599 * doc/pastposix-functions/h_errno.texi: Renamed from
18600 doc/posix-functions/h_errno.texi.
18601 * doc/pastposix-functions/index.texi: Renamed from
18602 doc/posix-functions/index.texi.
18603 * doc/pastposix-functions/makecontext.texi: Renamed from
18604 doc/posix-functions/makecontext.texi.
18605 * doc/pastposix-functions/mktemp.texi: Renamed from
18606 doc/posix-functions/mktemp.texi.
18607 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18608 doc/posix-functions/pthread_attr_getstackaddr.texi.
18609 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18610 doc/posix-functions/pthread_attr_setstackaddr.texi.
18611 * doc/pastposix-functions/rindex.texi: Renamed from
18612 doc/posix-functions/rindex.texi.
18613 * doc/pastposix-functions/scalb.texi: Renamed from
18614 doc/posix-functions/scalb.texi.
18615 * doc/pastposix-functions/setcontext.texi: Renamed from
18616 doc/posix-functions/setcontext.texi.
18617 * doc/pastposix-functions/swapcontext.texi: Renamed from
18618 doc/posix-functions/swapcontext.texi.
18619 * doc/pastposix-functions/ualarm.texi: Renamed from
18620 doc/posix-functions/ualarm.texi.
18621 * doc/pastposix-functions/usleep.texi: Renamed from
18622 doc/posix-functions/usleep.texi.
18623 * doc/pastposix-functions/vfork.texi: Renamed from
18624 doc/posix-functions/vfork.texi.
18625 * doc/pastposix-functions/wcswcs.texi: Renamed from
18626 doc/posix-functions/wcswcs.texi.
18627 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18628 (Function Substitutes): Update.
18630 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18632 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18635 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18636 Bruno Haible <bruno@clisp.org>
18638 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18640 2008-12-13 Bruno Haible <bruno@clisp.org>
18642 * modules/strtoull (Depends-on): Remove unistd.
18644 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18646 * modules/strtoull (Depends-on): Add stdlib.
18648 2008-12-11 Simon Josefsson <simon@josefsson.org>
18650 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18652 2008-12-10 Jim Meyering <meyering@redhat.com>
18654 gl_ASSERT: don't say assertions are disabled when they're not
18655 * m4/assert.m4 (gl_ASSERT): Do not make configure report
18656 "checking whether to enable assertions... no", when they are in
18657 fact enabled. This is solely a bug in the output of configure.
18658 In spite of saying "no", NDEBUG was not defined in that case.
18659 Also, as noted by Eric Blake, leave assertions enabled upon
18660 --enable-assert=INVALID.
18662 2008-12-10 Bruno Haible <bruno@clisp.org>
18664 Change MODULES.html to refer to POSIX:2008 where possible.
18665 * MODULES.html.sh (POSIX2008_URL): New variable.
18666 (posix_headers): Remove sys/timeb, ucontext.
18667 (posix2001_headers): New variable.
18668 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18669 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18670 index, makecontext, mktemp, pthread_attr_getstackaddr,
18671 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18672 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18673 (posix2001_functions): New variable.
18674 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18677 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18679 add missing include to parse-duration.c
18680 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18681 * modules/parse-duration (Depends-on): Add xalloc.
18683 fix sed script reading maint.mk
18684 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18685 (syntax-check-rules): Use it.
18687 2008-12-09 Bruno Haible <bruno@clisp.org>
18689 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18690 MacOS X 10.4/PowerPC.
18691 Reported by Simon Josefsson.
18693 2008-12-08 Jim Meyering <meyering@redhat.com>
18695 work around mingw's lack of some S_IF definitions
18696 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18697 Reported by Simon Josefsson.
18699 2008-12-08 Bruno Haible <bruno@clisp.org>
18701 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18702 applied to variables. Needed on MacOS X 10.4/PowerPC.
18703 Reported by Simon Josefsson.
18705 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
18706 and Eric Blake <ebb9@byu.net>
18708 assert: honor --enable-assert
18709 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18710 order to honor --enable-assert, rather than treating it as a
18711 synonym for --disable-assert.
18713 2008-12-08 Jim Meyering <meyering@redhat.com>
18715 * lib/posixtm.c: Remove now-useless declaration of mktime.
18717 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18719 2008-12-07 Bruno Haible <bruno@clisp.org>
18721 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18722 test_once): Mark functions as static.
18723 * tests/test-tls.c (test_tls): Likewise.
18725 2008-12-07 Bruno Haible <bruno@clisp.org>
18727 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18728 iconv_register_autodetect.
18730 2008-12-07 Jim Meyering <meyering@redhat.com>
18732 posixtm.c: avoid a warning
18733 * lib/posixtm.c (posixtime): Don't initialize tm0.
18734 It's no longer needed to placate gcc4's -Wuninitialized,
18735 and the attempt to placate would elicit a new warning.
18737 unicodeio.c: mark unused parameters
18738 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18739 (fallback_failure_callback): Likewise.
18741 2008-12-07 Bruno Haible <bruno@clisp.org>
18743 * gnulib-tool (func_create_testdir): When building the tests
18744 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18745 Reported by Simon Josefsson.
18747 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18749 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18751 2008-12-06 Bruno Haible <bruno@clisp.org>
18753 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18754 Suggested by Eric Blake.
18756 2008-12-06 Bruno Haible <bruno@clisp.org>
18758 Fix a c-stack test failure on MacOS X.
18759 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18760 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18761 handler for SIGBUS as well.
18762 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18763 install a signal handler for SIGBUS as well.
18764 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18766 2008-12-06 Bruno Haible <bruno@clisp.org>
18768 Advocacy documentation.
18769 * doc/gnulib-intro.texi (Benefits): New section.
18770 * doc/gnulib.texi: Update.
18772 2008-12-06 Bruno Haible <bruno@clisp.org>
18774 Document the 'manywarnings' module.
18775 * doc/manywarnings.texi: New file.
18776 * doc/gnulib.texi: Include it.
18778 2008-12-05 Eric Blake <ebb9@byu.net>
18780 tests: silence some gcc warnings
18781 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18782 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18785 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18786 Bruno Haible <bruno@clisp.org>
18788 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18790 2008-11-29 Jim Meyering <meyering@redhat.com>
18792 unicodeio.c: mark unused parameters
18793 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18794 (fallback_failure_callback): Likewise.
18797 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
18798 (set_stat_type): Return S_IF*-valued "type" directly.
18799 Prompted by James Youngman's spotting a related bug.
18800 Confirmed by further testing through find.
18802 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18803 * lib/fts.c (D_TYPE): Define.
18804 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18805 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18806 (s_ifmt_shift_bits): New function.
18807 (set_stat_type): New function.
18808 (fts_build): When not calling fts_stat, call set_stat_type
18809 to propagate dirent.d_type info to fts_read caller.
18810 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18811 fts_statp->st_mode type information may be valid.
18813 2008-11-28 Simon Josefsson <simon@josefsson.org>
18815 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
18816 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
18819 2008-11-20 Bruno Haible <bruno@clisp.org>
18821 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18822 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18824 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18825 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18826 * modules/math (Makefile.am): Substitute
18827 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18828 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18830 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
18831 Bruno Haible <bruno@clisp.org>
18833 * lib/stdint.in.h: Define all type macros so that their expansion is
18834 a single typedef'ed token. Fixes a compilation failure in Boost which
18835 does "using ::int8_t;".
18837 2008-11-18 Simon Josefsson <simon@josefsson.org>
18839 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18840 gl_MANYWARN_ALL_GCC.
18841 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18842 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
18843 * modules/manywarnings: New file.
18844 * MODULES.html.sh: Mention manywarnings module.
18846 2008-11-18 Bruno Haible <bruno@clisp.org>
18848 * doc/gnulib-tool.texi (Unit tests): New section.
18850 2008-11-18 Simon Josefsson <simon@josefsson.org>
18852 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18853 paths like 'lib/po/foo.po'.
18855 2008-11-17 Simon Josefsson <simon@josefsson.org>
18857 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
18858 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18860 2008-11-17 Simon Josefsson <simon@josefsson.org>
18862 * m4/warnings.m4: Use CPPFLAGS to really check whether the
18865 2008-11-17 Simon Josefsson <simon@josefsson.org>
18867 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18869 2008-11-17 Bruce Korb <bkorb@gnu.org>
18871 * modules/parse-duration-tests: New file.
18872 * tests/test-parse-duration.sh: New file.
18873 * tests/test-parse-duration.c: New file.
18875 New module 'parse-duration'.
18876 * lib/parse-duration.h: New file.
18877 * lib/parse-duration.c: New file.
18878 * modules/parse-duration: New file.
18880 2008-11-17 Bruno Haible <bruno@clisp.org>
18882 * tests/test-select-out.sh: Comment out the first pipe test.
18883 Reported by Simon Josefsson.
18885 2008-11-17 Bruno Haible <bruno@clisp.org>
18887 * modules/getaddrinfo (Depends-on): Add servent, hostent.
18888 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18891 2008-11-17 Bruno Haible <bruno@clisp.org>
18893 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18894 -lnetwork and -lnet. Needed for Haiku and BeOS.
18896 2008-11-16 Bruno Haible <bruno@clisp.org>
18898 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18900 2008-11-16 Bruno Haible <bruno@clisp.org>
18902 Avoid test failure on Haiku.
18903 * tests/test-fsync.c: Include <errno.h>.
18904 (main): Don't require that fsync (0) fails.
18906 2008-11-15 Bruno Haible <bruno@clisp.org>
18908 New module 'hostent'.
18909 * modules/hostent: New file.
18910 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18912 2008-11-15 Bruno Haible <bruno@clisp.org>
18914 New module 'servent'.
18915 * modules/servent: New file.
18916 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18918 2008-11-15 Bruno Haible <bruno@clisp.org>
18920 Avoid generating same test program with two different rules.
18921 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18922 test-frexp to test-frexp-nolibm.
18923 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18924 test-frexpl to test-frexpl-nolibm.
18926 2008-11-15 Bruno Haible <bruno@clisp.org>
18928 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18931 2008-11-15 Bruno Haible <bruno@clisp.org>
18933 * lib/netdb.in.h: Activate the definitions also when the system's
18934 <netdb.h> has 'struct addrinfo'.
18935 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18936 EAI_OVERFLOW or AI_NUMERICSERV.
18937 * doc/posix-headers/netdb.texi: Document the problem.
18939 2008-11-15 Bruno Haible <bruno@clisp.org>
18941 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18943 Make the 'sched' module work on platforms where <sched.h> exists but
18944 is incomplete (such as Haiku).
18945 * lib/sched.in.h; Include the system's <sched.h> if it exists.
18946 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18947 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18948 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18949 HAVE_STRUCT_SCHED_PARAM.
18950 * modules/sched (Depends-on): Add include_next.
18951 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18952 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18953 * doc/posix-headers/sched.texi: Document the issue.
18955 2008-11-13 Jim Meyering <meyering@redhat.com>
18957 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18958 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18959 test would fail due to the difference in the Report bugs to ...
18960 line. The expected address is empty, "<>", while the actual
18961 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
18963 2008-11-12 Bruno Haible <bruno@clisp.org>
18965 lstat: don't compile lstat.c on systems lacking lstat
18966 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18967 which don't have lstat; this is handled by lib/sys_stat.in.h already.
18968 Reported by Daniel P. Berrange via Jim Meyering.
18970 2008-11-12 Jim Meyering <meyering@redhat.com>
18972 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18974 2008-11-12 Simon Josefsson <simon@josefsson.org>
18976 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18979 2008-11-12 Bruno Haible <bruno@clisp.org>
18981 * lib/unicodeio.c: Include unistr.h.
18982 (utf8_wctomb): Remove function.
18983 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18985 2008-11-12 Simon Josefsson <simon@josefsson.org>
18987 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18988 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18990 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18992 2008-11-12 Simon Josefsson <simon@josefsson.org>
18994 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18995 * doc/gnulib.texi: Add section for warnings.
18997 2008-11-11 Bruno Haible <bruno@clisp.org>
18999 * lib/sockets.h: Add a comment.
19001 2008-11-11 Karl Berry <karl@gnu.org>
19003 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19005 2008-11-11 Eric Blake <ebb9@byu.net>
19007 fdl.texi: avoid git symlinks
19008 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19010 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19012 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19014 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19016 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19017 (gl_WARN_ADD): Substitute $2 if literal.
19019 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19021 * m4/warning.m4: Remove.
19023 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19025 * m4/warnings.m4: Almost complete rewrite. :-)
19027 2008-11-10 Simon Josefsson <simon@josefsson.org>
19029 * modules/warnings: New module.
19030 * m4/warnings.m4: New file.
19031 * MODULES.html.sh: Mention warnings module.
19032 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19033 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19035 2008-11-10 Eric Blake <ebb9@byu.net>
19037 fdl.texi: make a symlink to the latest version
19038 * doc/standards.texi: Revert today's earlier change.
19039 * doc/fdl-1.2.texi: Rename from old fdl.texi...
19040 * doc/fdl.texi: ...and replace this with a symlink to the newer
19043 2008-11-10 Bruno Haible <bruno@clisp.org>
19045 * tests/test-select-fd.c (main): Accept the result file name as fourth
19047 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19048 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19050 2008-11-10 Bruno Haible <bruno@clisp.org>
19052 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19053 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19054 as autoconf-substituted macros.
19055 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19056 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19057 gl_NETDB_H_DEFAULTS. Set these variables.
19058 * modules/netdb (Makefile.am): Substitute these variables.
19060 2008-11-10 Eric Blake <ebb9@byu.net>
19062 standards.texi: include correct file for FDL 1.3
19063 * doc/standards.texi (GNU Free Documentation License): Change
19064 include file to pull in FDL 1.3, not 1.2.
19066 fdl.texi: revert accidental change to license
19067 * doc/fdl.texi: This is FDL 1.2, not 1.3.
19069 2008-11-10 Bruno Haible <bruno@clisp.org>
19071 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19072 cross-compiling guesses also when the native compile gives no result.
19074 2008-11-10 Bruno Haible <bruno@clisp.org>
19076 * lib/spawni.c (__spawni): Force variable into the stack.
19078 2008-11-10 Bruno Haible <bruno@clisp.org>
19080 Add support for Haiku.
19081 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19082 glibc and BeOS, but also on Haiku.
19083 * lib/fpurge.c (fpurge): Likewise.
19084 * lib/freadable.c (freadable): Likewise.
19085 * lib/freadahead.c (freadahead): Likewise.
19086 * lib/freading.c (freading): Likewise.
19087 * lib/freadptr.c (freadptr): Likewise.
19088 * lib/freadseek.c (freadptrinc): Likewise.
19089 * lib/fseeko.c (rpl_fseeko): Likewise.
19090 * lib/fseterr.c (fseterr): Likewise.
19091 * lib/fwritable.c (fwritable): Likewise.
19092 * lib/fwriting.c (fwriting): Likewise.
19093 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19095 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
19097 * lib/config.charset: Treat Haiku like BeOS.
19099 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
19101 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19102 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19104 2008-11-08 Bruno Haible <bruno@clisp.org>
19106 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19109 2008-11-08 Bruno Haible <bruno@clisp.org>
19111 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19113 2008-11-08 Bruno Haible <bruno@clisp.org>
19115 * tests/test-select-fd.c: New file.
19116 * tests/test-select-in.sh: New file.
19117 * tests/test-select-out.sh: New file.
19118 * tests/test-select-stdin.c: New file.
19119 * modules/select-tests (Files): Add the new files.
19120 (Depends-on): Add gettimeofday.
19121 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19122 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19123 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19125 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
19126 Bruno Haible <bruno@clisp.org>
19128 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19130 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
19132 * build-aux/pmccabe2html: Added support for C++ source files.
19134 2008-11-05 Ben Pfaff <blp@gnu.org>
19136 Fix lib/close.c build on Windows.
19137 * modules/close (Files): Add lib/w32sock.h.
19139 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
19141 Accept Bison's NEWS format.
19142 * build-aux/announce-gen (print_news_deltas): Tweak
19145 2008-11-04 Bruno Haible <bruno@clisp.org>
19147 * modules/random_r (Maintainer): Add glibc.
19149 2008-11-04 Simon Josefsson <simon@josefsson.org>
19151 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19152 by karl@freefriends.org (Karl Berry).
19153 * doc/alloca.texi: Likewise.
19154 * doc/c-ctype.texi: Likewise.
19155 * doc/c-strcase.texi: Likewise.
19156 * doc/c-strcaseeq.texi: Likewise.
19157 * doc/c-strcasestr.texi: Likewise.
19158 * doc/c-strstr.texi: Likewise.
19159 * doc/c-strtod.texi: Likewise.
19160 * doc/c-strtold.texi: Likewise.
19161 * doc/ctime.texi: Likewise.
19162 * doc/error.texi: Likewise.
19163 * doc/fdl.texi: Likewise.
19164 * doc/gcd.texi: Likewise.
19165 * doc/getdate.texi: Likewise.
19166 * doc/gnulib-intro.texi: Likewise.
19167 * doc/gnulib-tool.texi: Likewise.
19168 * doc/gnulib.texi: Likewise.
19169 * doc/inet_ntoa.texi: Likewise.
19170 * doc/maintain.texi: Likewise.
19171 * doc/make-stds.texi: Likewise.
19172 * doc/quote.texi: Likewise.
19173 * doc/regexprops-generic.texi: Likewise.
19174 * doc/standards.texi: Likewise.
19175 * doc/verify.texi: Likewise.
19176 * doc/visibility.texi: Likewise.
19177 * doc/gnulib.texi (GNU Free Documentation License): Include
19178 fdl-1.3.texi instead of fdl.texi.
19180 2008-11-04 Simon Josefsson <simon@josefsson.org>
19182 * doc/fdl-1.3.texi: New file, from
19183 <http://www.gnu.org/licenses/fdl-1.3.texi>.
19184 * modules/fdl-1.3: Add.
19185 * MODULES.html.sh: Add fdl-1.3.
19187 2008-11-03 Bruno Haible <bruno@clisp.org>
19189 Make determination of absolute name of header file work with AIX xlc.
19190 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19191 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19193 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19194 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19196 2008-11-03 Simon Josefsson <simon@josefsson.org>
19198 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19199 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
19202 2008-11-02 Bruno Haible <bruno@clisp.org>
19204 Mark 'strpbrk' obsolete.
19205 * modules/strpbrk (Status, Notice): New sections.
19206 * modules/strtok_r (Depends-on): Add strpbrk.
19208 2008-11-02 Bruno Haible <bruno@clisp.org>
19210 Mark 'strdup' obsolete.
19211 * modules/strdup (Status, Notice): New sections.
19212 * modules/findprog (Depends-on): Add strdup.
19213 * modules/getaddrinfo (Depends-on): Likewise.
19214 * modules/localename (Depends-on): Likewise.
19215 * modules/relocatable-lib (Depends-on): Likewise.
19216 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19217 * modules/relocatable-prog (Depends-on): Likewise.
19218 * modules/trim (Depends-on): Likewise.
19219 * modules/unictype/gen-ctype (Depends-on): Likewise.
19220 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19222 2008-11-02 Bruno Haible <bruno@clisp.org>
19224 Mark 'strcspn' obsolete.
19225 * modules/strcspn (Status, Notice): New sections.
19227 2008-11-02 Bruno Haible <bruno@clisp.org>
19229 Mark 'rmdir' obsolete.
19230 * modules/rmdir (Status, Notice): New sections.
19231 * modules/clean-temp (Depends-on): Add rmdir.
19232 * modules/openat (Depends-on): Likewise.
19234 2008-11-02 Bruno Haible <bruno@clisp.org>
19236 Mark 'raise' obsolete.
19237 * modules/raise (Status, Notice): New sections.
19238 (Include): Specify <signal.h>.
19239 * modules/stdio (Depends-on): Add raise.
19240 * modules/write (Depends-on): Likewise.
19242 2008-11-02 Bruno Haible <bruno@clisp.org>
19244 Mark 'memset' obsolete.
19245 * modules/memset (Status, Notice): New sections.
19247 2008-11-02 Bruno Haible <bruno@clisp.org>
19249 Mark 'memmove' obsolete.
19250 * modules/memmove (Status, Notice): New sections.
19251 * modules/argp (Depends-on): Add memmove.
19252 * modules/argz (Depends-on): Likewise.
19253 * modules/canonicalize (Depends-on): Likewise.
19254 * modules/canonicalize-lgpl (Depends-on): Likewise.
19255 * modules/fts (Depends-on): Likewise.
19256 * modules/getcwd (Depends-on): Likewise.
19257 * modules/human (Depends-on): Likewise.
19258 * modules/regex (Depends-on): Likewise.
19259 * modules/striconveh (Depends-on): Likewise.
19260 * modules/trim (Depends-on): Likewise.
19261 * modules/unistr/u8-move (Depends-on): Likewise.
19262 * modules/unistr/u16-move (Depends-on): Likewise.
19263 * modules/unistr/u32-move (Depends-on): Likewise.
19265 2008-11-02 Bruno Haible <bruno@clisp.org>
19267 Mark 'memcpy' obsolete.
19268 * modules/memcpy (Status, Notice): New sections.
19270 2008-11-02 Bruno Haible <bruno@clisp.org>
19272 Mark 'memcmp' obsolete.
19273 * modules/memcmp (Status, Notice): New sections.
19274 * modules/argmatch (Depends-on): Add memchr.
19275 * modules/backupfile (Depends-on): Likewise.
19276 * modules/c-strcasestr (Depends-on): Likewise.
19277 * modules/crypto/des (Depends-on): Likewise.
19278 * modules/csharpcomp (Depends-on): Likewise.
19279 * modules/fnmatch (Depends-on): Likewise.
19280 * modules/git-merge-changelog (Depends-on): Likewise.
19281 * modules/isnand (Depends-on): Likewise.
19282 * modules/isnand-nolibm (Depends-on): Likewise.
19283 * modules/isnanf (Depends-on): Likewise.
19284 * modules/isnanf-nolibm (Depends-on): Likewise.
19285 * modules/isnanl (Depends-on): Likewise.
19286 * modules/isnanl-nolibm (Depends-on): Likewise.
19287 * modules/mbchar (Depends-on): Likewise.
19288 * modules/memcoll (Depends-on): Likewise.
19289 * modules/quotearg (Depends-on): Likewise.
19290 * modules/regex (Depends-on): Likewise.
19291 * modules/relocatable-prog (Depends-on): Likewise.
19292 * modules/same (Depends-on): Likewise.
19293 * modules/signbit (Depends-on): Likewise.
19294 * modules/strcasestr-simple (Depends-on): Likewise.
19295 * modules/unictype/gen-ctype (Depends-on): Likewise.
19296 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19297 * modules/uniname/uniname (Depends-on): Likewise.
19298 * modules/unistr/u8-cmp (Depends-on): Likewise.
19300 2008-11-02 Bruno Haible <bruno@clisp.org>
19302 Mark 'memchr' obsolete.
19303 * modules/memchr (Status, Notice): New sections.
19304 * modules/argp (Depends-on): Add memchr.
19305 * modules/base64 (Depends-on): Likewise.
19306 * modules/c-strcasestr (Depends-on): Likewise.
19307 * modules/chdir-long (Depends-on): Likewise.
19308 * modules/fnmatch (Depends-on): Likewise.
19309 * modules/getsubopt (Depends-on): Likewise.
19310 * modules/git-merge-changelog (Depends-on): Likewise.
19311 * modules/glob (Depends-on): Likewise.
19312 * modules/strcasestr-simple (Depends-on): Likewise.
19313 * modules/strnlen (Depends-on): Likewise.
19315 2008-11-02 Bruno Haible <bruno@clisp.org>
19317 Mark 'atexit' obsolete.
19318 * modules/atexit (Status, Notice): New sections.
19319 * modules/chdir-long (Depends-on): Add atexit.
19320 * modules/wait-process (Depends-on): Likewise.
19322 2008-11-02 Bruno Haible <bruno@clisp.org>
19324 * gnulib-tool: New option --with-obsolete.
19325 (func_usage): Document it.
19326 (func_modules_transitive_closure): Drop obsolete dependencies if
19327 incobsolete is not true.
19328 (func_import): Read and save the incobsolete variable to the cache.
19330 2008-11-02 Bruno Haible <bruno@clisp.org>
19332 * modules/TEMPLATE-EXTENDED: New field 'Status'.
19333 * gnulib-tool: New option --extract-status.
19334 (func_usage): Document it.
19335 (sed_extract_prog): Recognize it.
19336 (func_get_status): New function.
19338 2008-10-30 Simon Josefsson <simon@josefsson.org>
19340 * modules/sockets (License): Change from LGPL to LGPLv2+.
19342 2008-10-28 Simon Josefsson <simon@josefsson.org>
19344 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19346 2008-10-28 Simon Josefsson <simon@josefsson.org>
19348 * MODULES.html.sh (Support for systems lacking POSIX:2001):
19349 Mention times and sys_times.
19350 * modules/sys_times, modules/sys_times-tests: New modules.
19351 * modules/times, modules/times-tests: Likewise
19352 * m4/sys_times_h.m4: New file.
19353 * lib/sys_times.in.h: Likewise
19354 * lib/times.c: Likewise.
19355 * tests/test-sys_times.c: Likewise.
19356 * tests/test-times.c: Likewise.
19357 * doc/posix-headers/sys_times.texi: Update.
19358 * doc/posix-functions/times.texi: Update.
19360 2008-10-28 Jim Meyering <meyering@redhat.com>
19362 * modules/tempname (Depends-on): Add lstat.
19364 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19366 2008-10-28 Simon Josefsson <simon@josefsson.org>
19368 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19369 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19370 using idiom used elsewhere in gnulib.
19372 2008-10-27 Jim Meyering <meyering@redhat.com>
19374 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19376 2008-10-27 Simon Josefsson <simon@josefsson.org>
19378 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19379 TESTS_ENVIRONMENT, for shell scripts that needs to call built
19381 * tests/test-argp-2.sh: Use $EXEEXT when needed.
19383 2008-10-27 Simon Josefsson <simon@josefsson.org>
19385 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19387 2008-10-27 Bruno Haible <bruno@clisp.org>
19389 * tests/test-lstat.c: Include <stdio.h>.
19391 2008-10-27 Simon Josefsson <simon@josefsson.org>
19393 * modules/lstat-tests: New module.
19394 * tests/test-lstat.c: New file.
19396 2008-10-26 Jim Meyering <meyering@redhat.com>
19398 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19400 2008-10-26 Simon Josefsson <simon@josefsson.org>
19401 Bruno Haible <bruno@clisp.org>
19403 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19404 * modules/configmake (Include): Add a note that the include must come
19405 after all system headers.
19406 * lib/javaversion.c: Include configmake.h after all other includes.
19408 2008-10-26 Bruno Haible <bruno@clisp.org>
19410 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19411 HAVE_STRUCT_RANDOM_DATA to 1.
19412 (gl_STDLIB_H): Simplify.
19414 2008-10-26 Simon Josefsson <simon@josefsson.org>
19416 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
19417 substitute HAVE_STRUCT_RANDOM_DATA.
19418 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19420 * modules/stdlib (Makefile.am): Substitute
19421 HAVE_STRUCT_RANDOM_DATA.
19423 2008-10-26 Simon Josefsson <simon@josefsson.org>
19425 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19426 * doc/gnulib-intro.texi (Copyright): Likewise.
19428 2008-10-26 Simon Josefsson <simon@josefsson.org>
19430 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19433 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
19434 Bruno Haible <bruno@clisp.org>
19436 * lib/unistd.in.h: Include <winsock2.h>.
19437 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19438 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19439 Provide dummy declarations.
19440 (gethostname): Override.
19441 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19442 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19443 gl_PREREQ_SYS_H_WINSOCK2.
19444 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19445 * doc/posix-functions/gethostname.texi: More details.
19447 2008-10-25 Bruno Haible <bruno@clisp.org>
19449 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19450 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19451 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19453 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19455 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19456 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19457 gl_UNISTD_H_DEFAULTS.
19459 2008-10-25 Eric Blake <ebb9@byu.net>
19461 signbit: avoid spurious compiler failure
19462 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19463 declarations inside function.
19465 2008-10-24 Simon Josefsson <simon@josefsson.org>
19466 Bruno Haible <bruno@clisp.org>
19468 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19469 * modules/random_r (Depends-on): Add stdint.
19471 2008-10-24 Bruno Haible <bruno@clisp.org>
19473 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19475 * modules/strerror (License): Likewise.
19477 2008-10-24 Jim Meyering <meyering@redhat.com>
19479 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19480 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19482 2008-10-24 Eric Blake <ebb9@byu.net>
19484 getgroups: fix compilation when getgroups is available
19485 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19486 but with <config.h> override of getgroups disabled.
19488 2008-10-24 Simon Josefsson <simon@josefsson.org>
19490 * doc/gnulib.texi (Header files): Add note about C++ problems.
19491 Explained by Bruno Haible <bruno@clisp.org>.
19493 2008-10-23 Bruno Haible <bruno@clisp.org>
19495 Define a dummy SA_NODEFER macro on Interix.
19496 * lib/signal.in.h (SA_NODEFER): Define fallback.
19497 Reported by Aleksey Cheusov <cheusov@tut.by> via
19498 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19500 2008-10-23 Bruno Haible <bruno@clisp.org>
19502 * modules/freadahead (License): Change to LGPLv2+.
19503 Suggested by Simon Josefsson.
19505 2008-10-23 Jim Meyering <meyering@redhat.com>
19507 random_r: new module
19508 * modules/random_r: New file.
19509 * m4/random_r.m4: New file.
19510 * lib/random_r.c: New file, from glibc.
19511 * modules/random_r-tests: New file.
19512 * tests/test-random_r.c: New file.
19513 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19515 (RAND_MAX): Define.
19516 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19517 * modules/stdlib: Substitute them, too.
19518 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19519 * doc/glibc-functions/initstate_r.texi: Mention the new module.
19520 * doc/glibc-functions/random_r.texi: Likewise.
19521 * doc/glibc-functions/setstate_r.texi: Likewise.
19522 * doc/glibc-functions/srandom_r.texi: Likewise.
19523 * config/srclist.txt: Mention it.
19525 2008-10-23 David Lutterkort <lutter@redhat.com>
19527 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19530 2008-10-23 Jim Meyering <meyering@redhat.com>
19532 selinux-h: mark parameters of stub functions as intentionally unused
19533 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19534 * lib/se-context.in.h: Likewise.
19536 2008-10-22 Simon Josefsson <simon@josefsson.org>
19538 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19540 2008-10-22 Simon Josefsson <simon@josefsson.org>
19542 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19544 2008-10-22 Eric Blake <ebb9@byu.net>
19546 glthread/thread: avoid compiler warning
19547 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19548 Add unreachable abort to silence compiler.
19550 2008-10-22 Eric Blake <ebb9@byu.net>
19552 netdb: also supply struct addrinfo for cygwin 1.5.x
19553 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19555 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19557 * doc/posix-headers/netdb.texi (netdb.h): Document this.
19559 2008-10-22 Bruno Haible <bruno@clisp.org>
19561 * users.txt: Update entry about pspp.
19563 2008-10-21 Bruno Haible <bruno@clisp.org>
19566 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19567 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19570 * lib/ioctl.c (ioctl): Don't undefine.
19571 * lib/socket.c (socket): Don't undefine.
19573 Remove unused module indicator macros.
19574 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19575 GNULIB_$1 as a C macro.
19577 * doc/posix-functions/close.texi: Undo last change.
19578 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19581 2008-10-21 Bruno Haible <bruno@clisp.org>
19583 Add gethostname() declaration to <unistd.h>.
19584 * lib/unistd.in.h (gethostname): New declaration.
19585 * lib/gethostname.c: Include <unistd.h>.
19586 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19587 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19588 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19589 and HAVE_GETHOSTNAME.
19590 * modules/gethostname (Depends-on): Add unistd.
19591 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19592 (Include): Specify <unistd.h>.
19593 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19595 * tests/test-gethostname.c: Include <unistd.h> first.
19597 2008-10-21 Bruno Haible <bruno@clisp.org>
19599 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19600 * modules/select-tests (Depends-on): Likewise.
19601 Reported by Simon Josefsson.
19603 2008-10-21 Simon Josefsson <simon@josefsson.org>
19605 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19606 * lib/accept.c: New file, based on winsock.c.
19607 * lib/bind.c: New file, based on winsock.c.
19608 * lib/connect.c: New file, based on winsock.c.
19609 * lib/getpeername.c: New file, based on winsock.c.
19610 * lib/getsockname.c: New file, based on winsock.c.
19611 * lib/getsockopt.c: New file, based on winsock.c.
19612 * lib/ioctl.c: New file, based on winsock.c.
19613 * lib/listen.c: New file, based on winsock.c.
19614 * lib/recv.c: New file, based on winsock.c.
19615 * lib/recvfrom.c: New file, based on winsock.c.
19616 * lib/send.c: New file, based on winsock.c.
19617 * lib/sendto.c: New file, based on winsock.c.
19618 * lib/setsockopt.c: New file, based on winsock.c.
19619 * lib/shutdown.c: New file, based on winsock.c.
19620 * lib/socket.c: New file, based on winsock.c.
19621 * lib/w32sock.h: New file, based on winsock.c.
19622 * lib/winsock.c: Remove file.
19623 * modules/accept: Likewise.
19624 * modules/bind: Likewise.
19625 * modules/connect: Likewise.
19626 * modules/getpeername: Likewise.
19627 * modules/getsockname: Likewise.
19628 * modules/getsockopt: Likewise.
19629 * modules/ioctl: Likewise.
19630 * modules/listen: Likewise.
19631 * modules/recv: Likewise.
19632 * modules/recvfrom: Likewise.
19633 * modules/send: Likewise.
19634 * modules/sendto: Likewise.
19635 * modules/setsockopt: Likewise.
19636 * modules/shutdown: Likewise.
19637 * modules/socket: Use socket.c instead of winsock.c.
19638 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19639 * doc/posix-functions/accept.texi: Doc fix.
19640 * doc/posix-functions/bind.texi: Doc fix.
19641 * doc/posix-functions/close.texi: Doc fix.
19642 * doc/posix-functions/connect.texi: Doc fix.
19643 * doc/posix-functions/getpeername.texi: Doc fix.
19644 * doc/posix-functions/getsockname.texi: Doc fix.
19645 * doc/posix-functions/getsockopt.texi: Doc fix.
19646 * doc/posix-functions/ioctl.texi: Doc fix.
19647 * doc/posix-functions/listen.texi: Doc fix.
19648 * doc/posix-functions/recv.texi: Doc fix.
19649 * doc/posix-functions/recvfrom.texi: Doc fix.
19650 * doc/posix-functions/send.texi: Doc fix.
19651 * doc/posix-functions/sendto.texi: Doc fix.
19652 * doc/posix-functions/setsockopt.texi: Doc fix.
19653 * doc/posix-functions/shutdown.texi: Doc fix.
19654 * doc/posix-functions/socket.texi: Doc fix.
19656 2008-10-20 Bruno Haible <bruno@clisp.org>
19658 Take into account the role of SIGABRT_COMPAT on Windows 2008.
19659 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19660 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19661 as an alias for SIGABRT.
19662 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19663 (sigaction): Map it to SIGABRT.
19664 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19666 2008-10-20 Bruno Haible <bruno@clisp.org>
19668 * lib/fts.c: Don't include lstat.h.
19669 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19671 Move the lstat() declaration to <sys/stat.h>.
19672 * lib/lstat.h: Remove file.
19673 * lib/sys_stat.in.h: Add special invocation convention.
19674 (lstat): New declaration.
19675 * lib/lstat.c (orig_lstat): New function.
19676 (rpl_lstat): Use orig_lstat instead of lstat.
19677 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19678 AC_C_INLINE. Set REPLACE_LSTAT.
19679 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19681 * modules/lstat (Files): Remove lib/lstat.h.
19682 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19683 (Include): Specify <sys/stat.h> instead of lstat.h.
19684 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19686 * NEWS: Mention the change.
19688 2008-10-20 Bruno Haible <bruno@clisp.org>
19690 * modules/posix_spawn-tests: New file.
19691 * tests/test-posix_spawn3.c: New file.
19693 2008-10-20 Bruno Haible <bruno@clisp.org>
19695 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19696 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19697 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19698 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19699 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19701 2008-10-20 Bruno Haible <bruno@clisp.org>
19703 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19704 of posix_spawn on AIX 5.3.
19706 2008-10-20 Bruno Haible <bruno@clisp.org>
19708 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19710 2008-10-20 Bruno Haible <bruno@clisp.org>
19712 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19713 of AC_LANG_PROGRAM.
19715 2008-10-20 Simon Josefsson <simon@josefsson.org>
19717 * lib/netdb.in.h: Don't define GNU specific constants until they
19718 are supported or needed. Reported by Bruno Haible
19721 2008-10-20 Simon Josefsson <simon@josefsson.org>
19723 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19725 2008-10-20 Simon Josefsson <simon@josefsson.org>
19727 * lib/getaddrinfo.h: Remove file.
19728 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19729 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
19730 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19731 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19732 * modules/netdb: Substitute GNULIB_GETADDRINFO.
19733 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19734 * tests/test-getaddrinfo.c: Likewise.
19735 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
19736 * NEWS: Mention change.
19738 2008-10-19 Bruno Haible <bruno@clisp.org>
19740 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19742 2008-10-19 Bruno Haible <bruno@clisp.org>
19744 * lib/wait-process.c: Include simply <sys/wait.h>.
19745 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19746 WIFSTOPPED): Remove fallback definitions.
19747 * modules/wait-process (Depends-on): Add sys_wait.
19749 New module 'sys_wait'.
19750 * modules/sys_wait: New file.
19751 * lib/sys_wait.in.h: New file, partially copied from
19752 lib/wait-process.c.
19753 * m4/sys_wait_h.m4: New file.
19754 * doc/posix-headers/sys_wait.texi: Mention the new module.
19756 2008-10-19 Bruno Haible <bruno@clisp.org>
19758 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19760 2008-10-19 Bruno Haible <bruno@clisp.org>
19762 Assume that waitpid() fills an 'int' status, not a 'union wait'.
19763 * lib/wait-process.c (WAIT_T): Remove type.
19764 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19765 (wait_subprocess): Update.
19767 2008-10-19 Bruno Haible <bruno@clisp.org>
19769 New module 'atoll'.
19770 * modules/atoll: New file.
19771 * lib/stdlib.in.h (atoll): New declaration.
19772 * lib/atoll.c: New file, from glibc with modifications.
19773 * m4/atoll.m4: New file.
19774 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19776 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19777 * doc/posix-functions/atoll.texi: Mention the new module.
19779 2008-10-19 Bruno Haible <bruno@clisp.org>
19781 Add strtoull() declaration to <stdlib.h>.
19782 * lib/stdlib.in.h (strtoull): New declaration.
19783 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19785 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19787 * modules/strtoull (Depends-on): Add stdlib.
19788 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19789 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19792 2008-10-19 Bruno Haible <bruno@clisp.org>
19794 Add strtoll() declaration to <stdlib.h>.
19795 * lib/stdlib.in.h (strtoll): New declaration.
19796 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19798 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19800 * modules/strtoll (Depends-on): Add stdlib.
19801 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19802 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19804 2008-10-19 Bruno Haible <bruno@clisp.org>
19806 * modules/bcopy (Depends-on): Add strings.
19807 (Include): Specify <strings.h>.
19809 2008-10-19 Bruno Haible <bruno@clisp.org>
19811 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19813 2008-10-19 Bruno Haible <bruno@clisp.org>
19815 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19816 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19819 2008-10-19 Bruno Haible <bruno@clisp.org>
19821 * lib/atanl.c: Don't include isnanl.h.
19822 * lib/cosl.c: Likewise.
19823 * lib/ldexpl.c: Likewise.
19824 * lib/logl.c: Likewise.
19825 * lib/sinl.c: Likewise.
19826 * lib/sqrtl.c: Likewise.
19827 * lib/tanl.c: Likewise.
19829 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19830 * lib/isnanf.h: Remove file.
19831 * lib/isnand.h: Remove file.
19832 * lib/isnanl.h: Remove file.
19833 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19834 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19836 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19837 HAVE_ISNANF, don't define it as a C macro.
19838 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19839 HAVE_ISNAND, don't define it as a C macro.
19840 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19841 HAVE_ISNANL, don't define it as a C macro.
19842 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19844 * modules/isnanf (Files): Remove lib/isnanf.h.
19845 (Depends-on): Add math.
19846 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19847 (Include): Specify <math.h> instead of isnanf.h.
19848 * modules/isnand (Files): Remove lib/isnand.h.
19849 (Depends-on): Add math.
19850 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19851 (Include): Specify <math.h> instead of isnand.h.
19852 * modules/isnanl (Files): Remove lib/isnanl.h.
19853 (Depends-on): Add math.
19854 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19855 (Include): Specify <math.h> instead of isnanl.h.
19856 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19858 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19859 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19860 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19861 * NEWS: Mention the change.
19863 2008-10-18 Bruno Haible <bruno@clisp.org>
19865 Add getusershell(), setusershell(), endusershell() declarations to
19867 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19869 * lib/getusershell.c: Include unistd.h.
19870 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19871 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19873 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19874 and HAVE_GETUSERSHELL.
19875 * modules/getusershell (Depends-on): Add unistd, extensions.
19876 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19877 (Include): Specify <unistd.h>.
19878 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19881 2008-10-18 Bruno Haible <bruno@clisp.org>
19883 Add a getloadavg() declaration to <stdlib.h>.
19884 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19885 getloadavg declaration.
19886 (getloadavg): New declaration.
19887 * lib/getloadavg.c: Include <stdlib.h> first.
19888 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19889 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19890 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19891 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19892 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19893 * modules/getloadavg (Depends-on): Add stdlib, extensions.
19894 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19895 (Include): Specify <stdlib.h>.
19896 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19897 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19899 2008-10-18 Bruno Haible <bruno@clisp.org>
19901 * lib/dirchownmod.c: Don't include lchmod.h.
19903 Move the lchmod() declaration to <sys/stat.h>.
19904 * lib/lchmod.h: Remove file.
19905 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19906 (lchmod): New declaration, moved here from lib/lchown.h.
19907 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19908 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19909 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19911 * modules/lchmod (Files): Remove lib/lchmod.h.
19912 (Depends-on): Add sys_stat, extensions.
19913 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19914 (Include): Specify <sys/stat.h> instead of lchmod.h.
19915 * modules/sys_stat (Depends-on): Add link-warning.
19916 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19917 definition of GL_LINK_WARNING.
19918 * NEWS: Mention the change.
19920 2008-10-18 Bruno Haible <bruno@clisp.org>
19922 * lib/fchdir.c: Don't include dirfd.h.
19923 * lib/fts.c: Likewise.
19924 * lib/getcwd.c: Likewise.
19925 * lib/glob.c: Likewise.
19927 Move the dirfd() declaration to <dirent.h>.
19928 * lib/dirfd.h: Remove file.
19929 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19930 (dirfd): New declaration.
19931 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19932 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19933 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19935 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19937 * modules/dirfd (Files): Remove lib/dirfd.h.
19938 (Depends-on): Add dirent, extensions.
19939 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19940 (Include): Specify <dirent.h> instead of dirfd.h.
19941 * modules/dirent (Depends-on): Add link-warning.
19942 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19943 definition of GL_LINK_WARNING.
19944 * NEWS: Mention the change.
19946 2008-10-18 Bruno Haible <bruno@clisp.org>
19948 Move the euidaccess() declaration to <unistd.h>.
19949 * lib/euidaccess.h: Remove file.
19950 * lib/unistd.in.h (euidaccess): New declaration.
19951 * lib/euidaccess.c: Don't include euidaccess.h.
19952 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19953 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19954 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19955 and HAVE_EUIDACCESS.
19956 * modules/euidaccess (Files): Remove lib/euidaccess.h.
19957 (Depends-on): Add unistd.
19958 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19959 (Include): Specify <unistd.h> instead of euidaccess.h.
19960 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19962 * NEWS: Mention the change.
19964 2008-10-18 Bruno Haible <bruno@clisp.org>
19966 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19968 Move the getdomainname() declaration to <unistd.h>.
19969 * lib/getdomainname.h: Remove file.
19970 * lib/unistd.in.h (getdomainname): New declaration.
19971 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19972 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19973 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19974 HAVE_GETDOMAINNAME.
19975 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19976 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19977 * modules/getdomainname (Files): Remove lib/getdomainname.h.
19978 (Depends-on): Add unistd, extensions.
19979 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19980 (Includes): Specify <unistd.h> instead of getdomainname.h.
19981 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19982 HAVE_GETDOMAINNAME.
19983 * NEWS: Mention the change.
19985 2008-10-18 Bruno Haible <bruno@clisp.org>
19987 * modules/dirent: New file.
19988 * m4/dirent_h.m4: New file.
19989 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19990 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19991 * modules/fchdir (Files): Remove lib/dirent.in.h.
19992 (Depends-on): Add dirent.
19993 (Makefile.am): Move rules to modules/dirent.
19994 * doc/posix-headers/dirent.texi: Mention the new module.
19996 2008-10-18 Bruno Haible <bruno@clisp.org>
19998 Avoid -Wunused-parameter warnings in public gnulib header files.
19999 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20001 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20003 2008-10-18 Bruno Haible <bruno@clisp.org>
20005 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20006 * doc/glibc-functions/error.texi: Mention the module 'error'.
20007 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20008 * doc/glibc-functions/getdomainname.texi: Mention the module
20010 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20011 * doc/glibc-functions/getpagesize.texi: Mention the module
20013 * doc/glibc-functions/getusershell.texi: Mention the module
20015 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20016 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20017 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20018 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20019 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20020 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20021 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20022 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20023 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20024 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20025 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20026 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20027 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20028 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20030 2008-10-17 Bruno Haible <bruno@clisp.org>
20032 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20033 HP-UX and IRIX, use -0.0L.
20034 * tests/test-ceill.c (minus_zero): Likewise.
20035 * tests/test-floorl.c (minus_zero): Likewise.
20036 * tests/test-frexpl.c (minus_zero): Likewise.
20037 * tests/test-isnan.c (minus_zerol): Likewise.
20038 * tests/test-isnanl.h (minus_zero): Likewise.
20039 * tests/test-ldexpl.c (minus_zero): Likewise.
20040 * tests/test-roundl.c (minus_zero): Likewise.
20041 * tests/test-signbit.c (minus_zerol): Likewise.
20042 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20043 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20044 * tests/test-truncl.c (minus_zero): Likewise.
20045 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20046 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20047 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20048 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20050 2008-10-17 Bruno Haible <bruno@clisp.org>
20052 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20053 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20054 that it gets activated only for gcc >= 3.0.
20055 * lib/dirent.in.h: Likewise.
20056 * lib/errno.in.h: Likewise.
20057 * lib/fcntl.in.h: Likewise.
20058 * lib/float.in.h: Likewise.
20059 * lib/iconv.in.h: Likewise.
20060 * lib/inttypes.in.h: Likewise.
20061 * lib/locale.in.h: Likewise.
20062 * lib/math.in.h: Likewise.
20063 * lib/netdb.in.h: Likewise.
20064 * lib/netinet_in.in.h: Likewise.
20065 * lib/search.in.h: Likewise.
20066 * lib/signal.in.h: Likewise.
20067 * lib/spawn.in.h: Likewise.
20068 * lib/stdarg.in.h: Likewise.
20069 * lib/stdint.in.h: Likewise.
20070 * lib/stdio.in.h: Likewise.
20071 * lib/stdlib.in.h: Likewise.
20072 * lib/string.in.h: Likewise.
20073 * lib/strings.in.h: Likewise.
20074 * lib/sys_file.in.h: Likewise.
20075 * lib/sys_ioctl.in.h: Likewise.
20076 * lib/sys_select.in.h: Likewise.
20077 * lib/sys_socket.in.h: Likewise.
20078 * lib/sys_stat.in.h: Likewise.
20079 * lib/sys_time.in.h: Likewise.
20080 * lib/sysexits.in.h: Likewise.
20081 * lib/time.in.h: Likewise.
20082 * lib/unistd.in.h: Likewise.
20083 * lib/wchar.in.h: Likewise.
20084 * lib/wctype.in.h: Likewise.
20085 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20087 2008-10-17 Jim Meyering <meyering@redhat.com>
20089 ignore-value: don't depend on inline module
20090 * modules/ignore-value (Depends-on): Remove 'inline'.
20091 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20092 Suggestion from Bruno Haible.
20094 2008-10-17 Bruno Haible <bruno@clisp.org>
20096 New implementation of condition variables for Win32.
20097 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20098 (gl_linked_waitqueue_t): New type.
20099 (gl_cond_t): Use it.
20100 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20101 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20102 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20103 (glthread_cond_init_func, glthread_cond_wait_func,
20104 glthread_cond_timedwait_func, glthread_cond_signal_func,
20105 glthread_cond_broadcast_func, glthread_cond_destroy_func):
20106 Reimplemented on the basis of gl_linked_waitqueue_t.
20107 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20109 (gl_rwlock_t): Update.
20110 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20112 2008-10-17 Simon Josefsson <simon@josefsson.org>
20114 * modules/recvfrom (Depends-on): Add dependency on getpeername.
20115 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20117 2008-10-17 Jim Meyering <meyering@redhat.com>
20119 ignore-value: new module
20120 * modules/ignore-value: New file.
20121 * lib/ignore-value.h: New file.
20122 * MODULES.html.sh (Compiler warning management): New section,
20123 just for this module. More to come.
20125 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
20127 open-safer.c: avoid 'signed and unsigned in conditional...' warning
20128 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20129 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
20131 2008-10-16 Jim Meyering <meyering@redhat.com>
20133 openat-die.c: avoid 'no previous prototype' warning
20134 * lib/openat-die.c: Include "openat.h".
20135 Reported by Reuben Thomas <rrt@sc3d.org>.
20137 2008-10-16 Simon Josefsson <simon@josefsson.org>
20139 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20140 * lib/netdb.in.h: Fix typo.
20141 Reported by Bruno Haible <bruno@clisp.org>
20143 * lib/netdb.in.h: Include sys/socket.h for platforms without
20144 netdb.h, to get structures like hostent on MinGW.
20145 * modules/netdb (Depends-on): Add sys_socket.
20147 2008-10-15 Simon Josefsson <simon@josefsson.org>
20149 * modules/netdb, modules/netdb-tests: New file.
20150 * m4/netdb_h.m4: New file.
20151 * lib/netdb.in.h: Add, currently just an empty file pending
20153 * tests/test-netdb.c: New file.
20154 * doc/posix-headers/netdb.texi: Mention that we replace it if
20156 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20159 2008-10-15 Simon Josefsson <simon@josefsson.org>
20161 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20164 2008-10-13 Bruno Haible <bruno@clisp.org>
20166 * lib/glthread/cond.c (glthread_cond_wait_func,
20167 glthread_cond_timedwait_func): Add a comment.
20169 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
20171 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20172 * tests/test-select.c: Likewise,
20174 2008-10-13 Bruno Haible <bruno@clisp.org>
20176 * lib/glthread/cond.c (glthread_cond_wait_func,
20177 glthread_cond_timedwait_func): Fix variable name.
20178 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20180 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
20182 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20183 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20184 struct sockaddr.sa_len.
20185 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20187 2008-10-13 Simon Josefsson <simon@josefsson.org>
20189 * build-aux/pmccabe2html: Add css and css_url parameters.
20191 2008-10-12 Bruno Haible <bruno@clisp.org>
20193 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20195 Reported by Rainer Tammer <tammer@tammer.net>.
20197 2008-10-12 Bruno Haible <bruno@clisp.org>
20199 Use msvcrt aware primitives for creation/termination of Win32 threads.
20200 * lib/glthread/thread.c: Include <process.h>.
20201 (glthread_create_func): Use _beginthreadex instead of CreateThread.
20202 (wrapper_func): Update signature.
20203 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20205 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
20206 Bruno Haible <bruno@clisp.org>
20208 Provide a Win32 implementation of the 'cond' module.
20209 * lib/glthread/cond.h [USE_WIN32]: New implementation.
20210 * lib/glthread/cond.c (glthread_cond_init_func,
20211 glthread_cond_wait_func, glthread_cond_timedwait_func,
20212 glthread_cond_signal_func, glthread_cond_broadcast_func,
20213 glthread_cond_destroy_func) [USE_WIN32]: New functions.
20214 * modules/cond (Dependencies): Add gettimeofday.
20216 2008-10-11 Bruno Haible <bruno@clisp.org>
20218 Make sleep work on older versions of mingw.
20219 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20220 only whether it exists.
20221 * doc/posix-functions/sleep.texi: Mention the problem with older
20224 2008-10-11 Bruno Haible <bruno@clisp.org>
20226 New module 'shutdown'.
20227 * modules/shutdown: New file.
20228 * lib/sys_socket.in.h (shutdown): New declaration.
20229 * lib/winsock.c (shutdown): New function.
20230 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20232 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20233 * doc/posix-functions/shutdown.texi: Document the new module.
20235 2008-10-11 Jim Meyering <meyering@redhat.com>
20237 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20239 2008-10-11 Bruno Haible <bruno@clisp.org>
20241 New module 'fclose'.
20242 * modules/fclose: New file.
20243 * lib/stdio.in.h (fclose): New declaration.
20244 * lib/fclose.c: New file.
20245 * m4/fclose.m4: New file.
20246 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20248 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20249 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20251 * modules/close (Depends-on): fclose.
20252 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20254 2008-10-11 Bruno Haible <bruno@clisp.org>
20256 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20257 set errno and don't call _close.
20259 2008-10-10 Bruno Haible <bruno@clisp.org>
20261 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20262 ACL, not afterwards. Fixes test failure on Cygwin.
20264 2008-10-09 Ben Pfaff <blp@gnu.org>
20266 * build-aux/announce-gen: Fix gnulib version related part of usage
20267 message. Die with a useful error message if no tarballs are
20270 2008-10-10 Jim Meyering <meyering@redhat.com>
20272 bootstrap: use git's --depth=N option only if it's supported
20273 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20274 recognize the --depth option. Reported by Pádraig Brady.
20276 2008-10-09 Bruno Haible <bruno@clisp.org>
20278 New module 'ioctl'.
20279 * modules/ioctl: New file.
20280 * lib/sys_socket.in.h (ioctl): Remove declaration.
20281 * lib/winsock.c: Include <sys/ioctl.h>.
20282 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20283 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20284 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20285 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20286 * doc/posix-functions/ioctl.texi: Mention the new module.
20288 2008-10-09 Bruno Haible <bruno@clisp.org>
20290 New module 'sys_ioctl'.
20291 * lib/sys_ioctl.in.h: New file.
20292 * m4/sys_ioctl_h.m4: New file.
20293 * modules/sys_ioctl: New file.
20294 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20296 2008-10-09 Bruno Haible <bruno@clisp.org>
20298 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20299 * lib/winsock.c: Include <stdarg.h>.
20300 (rpl_ioctl): Change to second argument 'int' and then varargs.
20302 2008-10-09 Bruno Haible <bruno@clisp.org>
20304 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20305 when the sys_socket module is present and the system has <winsock2.h>.
20307 2008-10-09 Bruno Haible <bruno@clisp.org>
20309 * doc/posix-functions/close.texi: Mention module 'close' instead of
20310 module 'sys_socket'.
20312 2008-10-09 Bruno Haible <bruno@clisp.org>
20314 * doc/glibc-headers/sys_ioctl.texi: New file.
20315 * doc/gnulib.texi: Include it.
20317 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20318 Bruno Haible <bruno@clisp.org>
20320 Combine the two replacements of 'close'.
20321 * lib/sys_socket.in.h (close): Define to a reminder to include
20323 (_gl_close_fd_maybe_socket): New declaration.
20324 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20325 * lib/winsock.c (close): Remove undefinition.
20326 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20327 needed for the gnulib module 'close'.
20328 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20329 define to an error symbol or to a warning, if suitable.
20330 * lib/close.c: Include <sys/socket.h>.
20331 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20332 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20333 UNISTD_H_HAVE_WINSOCK2_H.
20334 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20335 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20336 UNISTD_H_HAVE_WINSOCK2_H.
20337 * modules/sys_socket (Files): Add m4/unistd_h.m4.
20338 (configure.ac): Set a module indicator.
20339 (Makefile.am): Substitute GNULIB_CLOSE.
20340 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20341 * modules/poll-tests (Depends-on): Add close.
20342 * modules/select-tests (Depends-on): Likewise.
20344 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20345 Bruno Haible <bruno@clisp.org>
20347 New module 'close'.
20348 * modules/close: New file.
20349 * lib/unistd.in.h (close): Move declaration out of the
20350 FCHDIR_REPLACEMENT scope.
20351 (_gl_unregister_fd): New declaration.
20352 * lib/close.c: New file.
20353 * lib/fchdir.c (rpl_close): Remove function.
20354 * m4/close.m4: New file.
20355 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20357 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20359 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20361 * modules/fchdir (Depends-on): Add close.
20363 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20364 Bruno Haible <bruno@clisp.org>
20366 * lib/fcntl.in.h (open): Simplify conditionals.
20367 (_gl_register_fd): New declaration.
20368 * lib/fchdir.c (rpl_open): Remove function.
20369 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20371 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20372 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20375 2008-10-09 Jim Meyering <meyering@redhat.com>
20377 GNUmakefile: use the more name-space-friendly "_version"
20378 * top/GNUmakefile (_dummy): Update.
20379 (_version): Rename from "version".
20381 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20382 Bruno Haible <bruno@clisp.org>
20384 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20386 (_gl_register_fd): New function, extracted from rpl_open.
20387 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20388 (rpl_open, rpl_opendir): Use _gl_register_fd.
20390 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20392 Fix organization of 'open' replacement.
20393 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20394 (gl_FUNC_OPEN): Use it.
20395 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20397 2008-10-08 Bruno Haible <bruno@clisp.org>
20399 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20401 2008-10-08 Simon Josefsson <simon@josefsson.org>
20403 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
20404 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20407 2008-10-08 Eric Blake <ebb9@byu.net>
20409 GNUmakefile: add 'make version' target
20410 * top/GNUmakefile (_curr-ver): Split version update rules...
20411 (version): ...into a target.
20413 2008-10-07 Bruno Haible <bruno@clisp.org>
20415 Use a more portable replacement expression for -0.0L.
20416 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20417 instead of -0.0L. Fix m4 quotation.
20419 * tests/test-signbit.c: Include <float.h>.
20420 (minus_zero): New variable.
20421 (test_signbitl): Use minus_zero instead of -zero.
20422 * modules/signbit-tests (Depends-on): Add float.
20424 * tests/test-ceill.c: Include <float.h>.
20425 (zero): Remove variable.
20426 (minus_zero): New variable.
20427 (main): Use minus_zero instead of -zero.
20428 * modules/ceill-tests (Depends-on): Add float.
20430 * tests/test-floorl.c: Include <float.h>.
20431 (zero): Remove variable.
20432 (minus_zero): New variable.
20433 (main): Use minus_zero instead of -zero.
20434 * modules/floorl-tests (Depends-on): Add float.
20436 * tests/test-roundl.c: Include <float.h>.
20437 (zero): Remove variable.
20438 (minus_zero): New variable.
20439 (main): Use minus_zero instead of -zero.
20440 * modules/roundl-tests (Depends-on): Add float.
20442 * tests/test-truncl.c: Include <float.h>.
20443 (zero): Remove variable.
20444 (minus_zero): New variable.
20445 (main): Use minus_zero instead of -zero.
20446 * modules/truncl-tests (Depends-on): Add float.
20448 * tests/test-frexpl.c (zero): Remove variable.
20449 (minus_zero): New variable.
20450 (main): Use minus_zero instead of -zero.
20451 * modules/frexpl-tests (Depends-on): Add float.
20453 * tests/test-isnan.c (zerol): Remove variable.
20454 (minus_zerol): New variable.
20455 (test_long_double): Use minus_zerol instead of -zerol.
20456 * modules/isnan-tests (Depends-on): Add float.
20458 * tests/test-isnanl.h (zero): Remove variable.
20459 (minus_zero): New variable.
20460 (main): Use minus_zero instead of -zero.
20461 * modules/isnanl-nolibm-tests (Depends-on): Add float.
20462 * modules/isnanl-tests (Depends-on): Add float.
20464 * tests/test-ldexpl.c (zero): Remove variable.
20465 (minus_zero): New variable.
20466 (main): Use minus_zero instead of -zero.
20467 * modules/ldexpl-tests (Depends-on): Add float.
20469 * tests/test-snprintf-posix.h (zerol): Remove variable.
20470 (minus_zerol): New variable.
20471 (test_function): Use minus_zerol instead of -zerol.
20472 * modules/snprintf-posix-tests (Depends-on): Add float.
20473 * modules/vsnprintf-posix-tests (Depends-on): Add float.
20475 * tests/test-sprintf-posix.h (zerol): Remove variable.
20476 (minus_zerol): New variable.
20477 (test_function): Use minus_zerol instead of -zerol.
20478 * modules/sprintf-posix-tests (Depends-on): Add float.
20479 * modules/vsprintf-posix-tests (Depends-on): Add float.
20481 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20482 (minus_zerol): New variable.
20483 (test_function): Use minus_zerol instead of -zerol.
20484 * modules/vasnprintf-posix-tests (Depends-on): Add float.
20486 * tests/test-vasprintf-posix.c (zerol): Remove variable.
20487 (minus_zerol): New variable.
20488 (test_function): Use minus_zerol instead of -zerol.
20489 * modules/vasprintf-posix-tests (Depends-on): Add float.
20491 2008-10-07 Simon Josefsson <simon@josefsson.org>
20493 * MODULES.html.sh (Support for building documentation): Mention
20494 pmccabe2html. Sort entries.
20496 Add pmccabe2html module, from gnupdf.
20497 * build-aux/pmccabe.css: New file.
20498 * build-aux/pmccabe2html: New file.
20499 * m4/pmccabe2html.m4: New file.
20500 * modules/pmccabe2html: New file.
20502 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
20505 * MODULES.html.sh: Add to list of modules.
20506 * lib/flock.c: flock implementation for Windows and Unix systems
20508 * doc/glibc-functions/flock.texi: Update documentation.
20509 * lib/sys_file.in.h: <sys/file.h> header file.
20510 * m4/flock.m4: M4 macros.
20511 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20512 * modules/flock: flock module.
20513 * modules/flock-tests: flock tests module.
20514 * modules/sys_file: sys/file.h module.
20515 * tests/test-flock.c: test suite for flock.
20517 2008-10-06 Jim Meyering <meyering@redhat.com>
20519 bootstrap: check for LT_INIT more portably still ;-)
20520 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20521 Spotted by Bruno Haible.
20523 2008-10-06 Eric Blake <ebb9@byu.net>
20525 test-signbit: avoid tripping Irix cc bug on -0.0L
20526 * tests/test-signbit.c (minus_zerol): Delete, and replace with
20527 '-zerol'. This may break on HP-UX/hppa, but at least makes the
20528 entire testsuite consistent and avoids an Irix 6.2 bug.
20530 2008-10-05 Bruno Haible <bruno@clisp.org>
20531 Jim Meyering <jim@meyering.net>
20533 Add an option for ignoring EPIPE during close_stdout.
20534 * lib/closeout.h: Include <stdbool.h>.
20535 (close_stdout_set_ignore_EPIPE): New declaration.
20536 * lib/closeout.c: Include <stdbool.h>.
20537 (ignore_EPIPE): New variable.
20538 (close_stdout_set_ignore_EPIPE): New function.
20539 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20540 * lib/close-stream.c (close_stream): Mention the possible EPIPE
20542 * modules/closeout (Depends-on): Add stdbool.
20544 2008-10-05 Bruno Haible <bruno@clisp.org>
20546 * modules/accept: New file.
20547 * modules/bind: New file.
20548 * modules/connect: New file.
20549 * modules/getpeername: New file.
20550 * modules/getsockname: New file.
20551 * modules/getsockopt: New file.
20552 * modules/listen: New file.
20553 * modules/recv: New file.
20554 * modules/recvfrom: New file.
20555 * modules/send: New file.
20556 * modules/sendto: New file.
20557 * modules/setsockopt: New file.
20558 * modules/socket: New file.
20559 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20560 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20561 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20562 the particular module is requested. Add a link warning when the
20563 particular module is not requested.
20564 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20565 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20566 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20567 the particular module is requested.
20568 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20569 gl_SYS_SOCKET_H_DEFAULTS): New macros.
20570 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20571 * modules/sys_socket (Depends-on): Add link-warning.
20572 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20573 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20574 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20575 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20577 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20578 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20579 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20580 * doc/posix-functions/getpeername.texi: Mention the new module
20582 * doc/posix-functions/getsockname.texi: Mention the new module
20584 * doc/posix-functions/getsockopt.texi: Mention the new module
20586 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20587 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20588 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20589 * doc/posix-functions/send.texi: Mention the new module 'send'.
20590 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20591 * doc/posix-functions/setsockopt.texi: Mention the new module
20593 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20594 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20595 listen, connect, accept.
20596 * modules/select-tests (Depends-on): Likewise.
20598 2008-10-05 Bruno Haible <bruno@clisp.org>
20600 * lib/winsock.c (strerror): Remove unused #undef.
20601 (rpl_close): Remove unused local variable.
20603 * modules/sys_socket (Depends-on); Add errno.
20605 2008-10-05 Bruno Haible <bruno@clisp.org>
20607 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20608 (select): Add a link warning when the 'select' module is not used.
20609 * modules/sys_select (Depends-on): Add link-warning.
20610 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20611 Suggested by Paolo Bonzini.
20613 2008-10-05 Jim Meyering <meyering@redhat.com>
20615 bootstrap: check for LT_INIT more portably
20616 * build-aux/bootstrap: Avoid using grep -E, since it's not
20617 portable enough. Suggestion from Bruno Haible.
20619 2008-10-05 Bruno Haible <bruno@clisp.org>
20621 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20622 as being fixed by gnulib.
20624 2008-10-05 Bruno Haible <bruno@clisp.org>
20626 * modules/select-tests: New file, mostly copied from
20627 modules/sys_select-tests.
20628 * tests/test-select.c: New file, mostly copied from
20629 tests/test-sys_select.c.
20630 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20631 * modules/sys_select-tests (Depends-on): Remove all dependencies.
20632 (Makefile.am): Remove test_sys_select_LDADD.
20634 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20635 to an undefined symbol, for an error message.
20636 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20637 (gl_SYS_SELECT_H_DEFAULTS): New macro.
20638 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20639 winsock-select.c here.
20640 * modules/sys_select (Files): Remove lib/winsock-select.c.
20641 (Depends-on): Remove alloca.
20642 (Makefile.am): Substitute GNULIB_SELECT.
20643 * modules/select: New file.
20644 * doc/posix-functions/select.texi: Update.
20646 2008-10-05 Bruno Haible <bruno@clisp.org>
20648 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20649 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20650 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20651 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20653 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20654 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20656 2008-10-05 Bruno Haible <bruno@clisp.org>
20658 * modules/getdtablesize-tests: New file.
20659 * tests/test-getdtablesize.c: New file.
20661 New module 'getdtablesize'.
20662 * lib/unistd.in.h (getdtablesize): New declaration.
20663 * lib/getdtablesize.c: New file.
20664 * m4/getdtablesize.m4: New file.
20665 * modules/getdtablesize: New file.
20666 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20667 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20668 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20669 HAVE_GETDTABLESIZE.
20670 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20672 2008-10-05 Bruno Haible <bruno@clisp.org>
20674 * modules/sched (Makefile.am): Fix typo.
20675 Reported by Simon Josefsson.
20677 2008-10-05 Jim Meyering <meyering@redhat.com>
20679 bootstrap: check for LT_INIT, too
20680 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20681 are deprecated. Suggestion from Ralf Wildenhues.
20683 2008-10-05 Bruno Haible <bruno@clisp.org>
20685 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20686 overriding them by ours.
20687 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20689 2008-10-05 Jim Meyering <meyering@redhat.com>
20691 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20692 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20693 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
20695 2008-10-04 Bruno Haible <bruno@clisp.org>
20697 * modules/dup2 (License): Change to LGPLv2+.
20698 * modules/sleep (License): Likewise.
20699 * modules/perror (License): Likewise.
20700 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20702 * modules/signal (License): Likewise.
20703 * modules/sigprocmask (License): Likewise.
20704 * modules/raise (License): Change to LGPLv2+, with approval by Jim
20707 2008-10-04 Bruno Haible <bruno@clisp.org>
20709 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20710 Reported by Rainer Tammer <tammer@tammer.net>.
20712 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
20713 Bruno Haible <bruno@clisp.org>
20715 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20716 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20717 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20719 2008-10-03 Kamil Dudka <kdudka@redhat.com>
20721 filevercmp: new module
20722 * lib/filevercmp.h: New function filevercmp comparing version strings.
20723 * lib/filevercmp.c: Implementation of filevercmp function.
20724 * modules/filevercmp: Module metadata.
20725 * tests/test-filevercmp.c: Unit test for new module.
20726 * modules/filevercmp-tests: Unit test metadata.
20727 * MODULES.html.sh: Add filevercmp module.
20729 2008-10-03 Bruno Haible <bruno@clisp.org>
20731 * lib/c-ctype.h: Add comment.
20732 Reported by Jim Meyering.
20734 2008-10-02 Bruno Haible <bruno@clisp.org>
20736 * modules/posix_spawn-internal (Depends-on): Add 'open'.
20738 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20740 * build-aux/bootstrap: Allow renaming bootstrap, and change the
20741 name of bootstrap.conf accordingly.
20743 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20745 * build-aux/bootstrap: Install git-merge-changelog configuration
20746 items into .gitconfig if needed.
20748 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20750 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20751 git repository, and initialize/update it accordingly.
20753 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
20755 * modules/fsync-tests: New file.
20756 * tests/test-fsync.c: New file.
20758 New module 'fsync'.
20759 * lib/fsync.c: New file.
20760 * m4/fsync.m4: New file.
20761 * modules/fsync: New file.
20762 * lib/unistd.in.h (fsync): New declaration.
20763 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20764 GNULIB_FSYNC and HAVE_FSYNC.
20765 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20766 * MODULES.html.sh (posix_functions): Add fsync.
20767 * doc/posix-functions/fsync.texi: Mention the new module.
20769 2008-10-02 Jim Meyering <meyering@redhat.com>
20771 fts.c: sync with similar code from coreutils' remove.c
20772 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20773 Guard also with "#if defined __linux__", since for now at least,
20774 this code is Linux-kernel-specific.
20776 2008-10-02 Jim Meyering <meyering@redhat.com>
20779 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20780 Include <sys/vfs.h>, not <sys/statfs.h>.
20782 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20783 Include <sys/vfs.h>, not <sys/statfs.h>.
20785 2008-10-01 Bruno Haible <bruno@clisp.org>
20787 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20788 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20789 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20790 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20791 * doc/posix-functions/posix_spawnp.texi: Likewise.
20792 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20793 whether posix_spawn actually works.
20794 * m4/pipe.m4 (gl_PIPE): Likewise.
20795 * modules/execute (Files): Add m4/posix_spawn.m4.
20796 * modules/pipe (Files): Add m4/posix_spawn.m4.
20797 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20799 2008-10-01 Jim Meyering <meyering@redhat.com>
20801 remove trailing spaces
20803 * lib/poll.c (poll): Likewise.
20804 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20805 * lib/winsock.c (rpl_close): Likewise.
20806 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20807 * modules/yield: Likewise.
20808 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20809 * tests/test-sys_select.c (connect_to_socket): Likewise.
20811 fts.c: adjust a new interface to be more generally useful
20812 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20813 (fts_build): Adjust caller.
20815 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20817 * modules/cond-tests: New file.
20818 * tests/test-cond.c: New file.
20820 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20821 Bruno Haible <bruno@clisp.org>
20823 * modules/cond (Dependencies): Add errno, time.
20824 * lib/glthread/cond.h: Include <time.h>.
20825 (gl_cond_define, gl_cond_define_initialized): Use the same definition
20828 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20829 Bruno Haible <bruno@clisp.org>
20831 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20833 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20834 Bruno Haible <bruno@clisp.org>
20836 * modules/tls-tests (Depends-on): Add thread, yield.
20837 (configure.ac): Remove all checks.
20838 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20839 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20840 gl_thread_self): Remove definitions. Include glthread/thread.h and
20841 glthread/yield.h instead.
20842 (test_tls): Pass an additional NULL argument to gl_thread_join.
20844 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20845 Bruno Haible <bruno@clisp.org>
20847 * modules/lock-tests (Depends-on): Add thread, yield.
20848 (configure.ac): Remove all checks.
20849 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20850 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20851 gl_thread_self): Remove definitions. Include glthread/thread.h and
20852 glthread/yield.h instead.
20853 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20854 additional NULL argument to gl_thread_join.
20856 2008-09-30 Bruno Haible <bruno@clisp.org>
20858 Fix the Win32 implementation of the 'thread' module.
20859 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20861 (gl_thread_self): Invoke gl_thread_self_func.
20862 (gl_thread_self_func): New declaration.
20863 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20864 (do_init_self_key, init_self_key): New functions.
20865 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20866 Remove some fields.
20867 (running_threads, running_lock): Remove variables.
20868 (get_current_thread_handle): New function.
20869 (gl_thread_self_func, wrapper_func, glthread_create_func,
20870 glthread_join_func, gl_thread_exit_func): Largely rewritten and
20873 2008-09-30 Bruno Haible <bruno@clisp.org>
20875 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20878 2008-09-30 Jim Meyering <meyering@redhat.com>
20880 fts.m4: correct the test for statfs.f_type
20881 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20882 when checking for statfs.f_type.
20884 2008-09-15 Simon Josefsson <simon@josefsson.org>
20886 tests: avoid some compiler warnings
20887 * tests/test-memchr.c (main): Pass NULL indirectly.
20888 * tests/test-getdate.c (main): Remove unused variable 'ret'.
20890 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
20892 getdate.y: disallow countable dayshifts like "4 yesterday ago"
20893 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20894 exactly specified dayshifts.
20895 (dayshift): New rule.
20896 (rel): Add dayshift.
20897 (relative_time_table) [tomorrow, yesterday, today, now]:
20898 Use tDAY_SHIFT in place of tDAY_UNIT.
20899 * tests/test-getdate.c: Add tests for now-disallowed countable
20900 dayshifts, e.g., "4 yesterday ago".
20902 2008-09-29 Bruno Haible <bruno@clisp.org>
20904 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20905 * tests/test-posix_spawn1.in.sh: Renamed from
20906 tests/test-posix_spawn.in.sh.
20907 * tests/test-posix_spawn2.c: New file.
20908 * tests/test-posix_spawn2.in.sh: New file.
20909 * modules/posix_spawnp-tests (Files): Update.
20910 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20912 2008-09-29 Bruno Haible <bruno@clisp.org>
20914 Propagate effects of putenv/setenv/unsetenv to child processes.
20915 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20916 * lib/pipe.c (create_pipe): Likewise.
20918 2008-09-29 Bruno Haible <bruno@clisp.org>
20920 Enable use of shell scripts as executables in mingw.
20921 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20922 run the program as a shell script.
20923 * lib/pipe.c (create_pipe): Likewise.
20924 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20927 2008-09-29 Eric Blake <ebb9@byu.net>
20929 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20931 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
20933 * doc/posix-functions/accept.texi: Update mingw problems.
20934 * doc/posix-functions/bind.texi: Update mingw problems.
20935 * doc/posix-functions/close.texi: Update mingw problems.
20936 * doc/posix-functions/connect.texi: Update mingw problems.
20937 * doc/posix-functions/getpeername.texi: Update mingw problems.
20938 * doc/posix-functions/getsockname.texi: Update mingw problems.
20939 * doc/posix-functions/getsockopt.texi: Update mingw problems.
20940 * doc/posix-functions/ioctl.texi: Update mingw problems.
20941 * doc/posix-functions/listen.texi: Update mingw problems.
20942 * doc/posix-functions/recv.texi: Update mingw problems.
20943 * doc/posix-functions/recvfrom.texi: Update mingw problems.
20944 * doc/posix-functions/select.texi: Update mingw problems.
20945 * doc/posix-functions/send.texi: Update mingw problems.
20946 * doc/posix-functions/sendto.texi: Update mingw problems.
20947 * doc/posix-functions/setsockopt.texi: Update mingw problems.
20948 * doc/posix-functions/socket.texi: Update mingw problems.
20950 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
20951 Bruno Haible <bruno@clisp.org>
20953 * lib/sys_select.in.h: Include sys/time.h.
20954 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20955 * modules/sys_select: Depend on sys_time.
20956 * tests/test-sys_select.c: Test that sys/select.h defines struct
20959 2008-09-29 Bruno Haible <bruno@clisp.org>
20961 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20962 * lib/sys_select.in.h: Likewise.
20964 2008-09-29 Bruno Haible <bruno@clisp.org>
20966 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20968 2008-09-29 Bruno Haible <bruno@clisp.org>
20970 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20971 Set LIBSOCKET instead of augmenting LIBS.
20972 * modules/sockets (Link): New section.
20973 * modules/sockets-tests (test_sockets_LDADD): New variable.
20974 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20975 * modules/poll-tests (test_poll_LDADD): New variable.
20976 * NEWS: Document the change.
20978 2008-09-29 Bruno Haible <bruno@clisp.org>
20980 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20981 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20982 ARPA_INET_H directly.
20983 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20985 2008-09-28 Bruno Haible <bruno@clisp.org>
20987 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20988 from gl_HEADER_SYS_SOCKET.
20989 (gl_HEADER_SYS_SOCKET): Invoke it.
20990 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20992 2008-09-28 Bruno Haible <bruno@clisp.org>
20994 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20995 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20996 Needed on OSF/1 4.0.
20998 2008-09-28 Bruno Haible <bruno@clisp.org>
21000 Override open more carefully.
21001 * lib/open.c (orig_open): New function.
21002 (rpl_open): Use orig_open instead of open.
21003 * lib/fcntl.in.h: Add special invocation convention.
21004 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21005 (gl_FUNC_OPEN): Invoke it.
21007 Override freopen more carefully.
21008 * lib/freopen.c (orig_freopen): New function.
21009 (rpl_freopen): Use orig_freopen instead of freopen.
21010 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21011 (gl_FUNC_FREOPEN): Invoke it.
21013 Override fopen more carefully.
21014 * lib/fopen.c (orig_fopen): New function.
21015 (rpl_fopen): Use orig_fopen instead of fopen.
21016 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21017 (gl_FUNC_FOPEN): Invoke it.
21018 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21020 2008-09-28 Bruno Haible <bruno@clisp.org>
21022 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21025 2008-09-28 Bruno Haible <bruno@clisp.org>
21027 * tests/test-sigaction.c (handler, main): Disable the check whether
21028 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21029 glibc systems with LinuxThreads.
21031 2008-09-28 Bruno Haible <bruno@clisp.org>
21033 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21035 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21037 * lib/fcntl.in.h (open): Likewise.
21038 Reported by Rainer Tammer <tammer@tammer.net>.
21040 2008-09-28 Bruno Haible <bruno@clisp.org>
21042 * modules/posix_spawnp-tests: New file.
21043 * tests/test-posix_spawn.c: New file.
21044 * tests/test-posix_spawn.in.sh: New file.
21046 New module 'posix_spawnp'.
21047 * modules/posix_spawnp: New file.
21048 * lib/spawnp.c: New file, from GNU libc with modifications.
21049 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21051 New module 'posix_spawn'.
21052 * modules/posix_spawn: New file.
21053 * lib/spawn.c: New file, from GNU libc with modifications.
21054 * doc/posix-functions/posix_spawn.texi: Mention the new module.
21056 New module 'posix_spawnattr_destroy'.
21057 * modules/posix_spawnattr_destroy: New file.
21058 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21059 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21062 New module 'posix_spawnattr_setsigmask'.
21063 * modules/posix_spawnattr_setsigmask: New file.
21064 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21066 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21069 New module 'posix_spawnattr_getsigmask'.
21070 * modules/posix_spawnattr_getsigmask: New file.
21071 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21073 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21076 New module 'posix_spawnattr_setsigdefault'.
21077 * modules/posix_spawnattr_setsigdefault: New file.
21078 * lib/spawnattr_setdefault.c: New file, from GNU libc with
21080 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21083 New module 'posix_spawnattr_getsigdefault'.
21084 * modules/posix_spawnattr_getsigdefault: New file.
21085 * lib/spawnattr_getdefault.c: New file, from GNU libc with
21087 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21090 New module 'posix_spawnattr_setschedpolicy'.
21091 * modules/posix_spawnattr_setschedpolicy: New file.
21092 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21094 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21097 New module 'posix_spawnattr_getschedpolicy'.
21098 * modules/posix_spawnattr_getschedpolicy: New file.
21099 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21101 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21104 New module 'posix_spawnattr_setschedparam'.
21105 * modules/posix_spawnattr_setschedparam: New file.
21106 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21108 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21111 New module 'posix_spawnattr_getschedparam'.
21112 * modules/posix_spawnattr_getschedparam: New file.
21113 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21115 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21118 New module 'posix_spawnattr_setpgroup'.
21119 * modules/posix_spawnattr_setpgroup: New file.
21120 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21122 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21125 New module 'posix_spawnattr_getpgroup'.
21126 * modules/posix_spawnattr_getpgroup: New file.
21127 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21129 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21132 New module 'posix_spawnattr_setflags'.
21133 * modules/posix_spawnattr_setflags: New file.
21134 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21135 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21138 New module 'posix_spawnattr_getflags'.
21139 * modules/posix_spawnattr_getflags: New file.
21140 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21141 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21144 New module 'posix_spawnattr_init'.
21145 * modules/posix_spawnattr_init: New file.
21146 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21147 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21150 New module 'posix_spawn_file_actions_destroy'.
21151 * modules/posix_spawn_file_actions_destroy: New file.
21152 * lib/spawn_faction_destroy.c: New file, from GNU libc with
21154 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21157 New module 'posix_spawn_file_actions_addopen'.
21158 * modules/posix_spawn_file_actions_addopen: New file.
21159 * lib/spawn_faction_addopen.c: New file, from GNU libc with
21161 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21164 New module 'posix_spawn_file_actions_adddup2'.
21165 * modules/posix_spawn_file_actions_adddup2: New file.
21166 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21168 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21171 New module 'posix_spawn_file_actions_addclose'.
21172 * modules/posix_spawn_file_actions_addclose: New file.
21173 * lib/spawn_faction_addclose.c: New file, from GNU libc with
21175 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21178 New module 'posix_spawn_file_actions_init'.
21179 * modules/posix_spawn_file_actions_init: New file.
21180 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21181 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21184 New module 'posix_spawn-internal'.
21185 * modules/posix_spawn-internal: New file.
21186 * lib/spawn_int.h: New file, from GNU libc with modifications.
21187 * lib/spawni.c: New file, from GNU libc with modifications.
21188 * m4/posix_spawn.m4: New file.
21190 New module 'spawn'.
21191 * modules/spawn: New file.
21192 * lib/spawn.in.h: New file, from GNU libc with modifications.
21193 * m4/spawn_h.m4: New file.
21194 * doc/posix-headers/spawn.texi: Mention the new module.
21196 2008-09-28 Bruno Haible <bruno@clisp.org>
21198 * modules/sched-tests: New file.
21199 * tests/test-sched.c: New file.
21201 New module 'sched'.
21202 * modules/sched: New file.
21203 * lib/sched.in.h: New file.
21204 * m4/sched_h.m4: New file.
21205 * doc/posix-headers/sched.texi: Mention the new module.
21207 2008-09-27 Eric Blake <ebb9@byu.net>
21209 Fix previous patch, and tweak references to $0.
21210 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21211 (func_version, func_gnulib_dir): Don't call this program
21213 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21214 with using $0 in function.
21215 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21216 (func_fatal_error): Reuse the name the user invoked us with.
21218 2008-09-27 Bruno Haible <bruno@clisp.org>
21220 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21221 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21222 (gl_ICONV_H): Not here.
21223 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21224 instead of assigning ICONV_H directly.
21226 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21227 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21230 2008-09-27 Bruno Haible <bruno@clisp.org>
21232 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21233 * modules/arpa_inet (Depends-on): Add link-warning.
21234 (Makefile.am): Insert the definition of GL_LINK-WARNING.
21235 * modules/unistd (Makefile.am): Likewise.
21237 2008-09-26 Bruno Haible <bruno@clisp.org>
21239 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21241 (func_version): Essentially copied from gnulib-tool.
21242 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21243 func_readlink): Copied from gnulib-tool.
21245 2008-09-26 Bruno Haible <bruno@clisp.org>
21247 * gnulib-tool (func_version): Change directory to $gnulib_dir before
21248 invoking git-version-gen.
21250 2008-09-26 Bruno Haible <bruno@clisp.org>
21252 * posix-modules: Update to directory names changed on 2008-01-19.
21253 Remove commas in output before splitting into words. No more need to
21254 avoid 'ftruncate' since 2007-02-19.
21256 2008-09-26 Bruno Haible <bruno@clisp.org>
21258 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21260 2008-09-26 Bruno Haible <bruno@clisp.org>
21262 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21263 * modules/fwriteerror (Depends-on): Add errno.
21265 2008-09-26 Bruno Haible <bruno@clisp.org>
21267 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21268 * tests/test-vc-list-files-cvs.sh: Likewise.
21270 2008-09-26 Bruno Haible <bruno@clisp.org>
21272 * doc/posix-headers/sys_resource.texi: Reorder items.
21274 2008-09-26 Jim Meyering <meyering@redhat.com>
21276 fts: tweak inode comparison function
21277 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21278 inode numbers, as documented.
21280 fts: sort dirent entries on inode number before traversing
21281 This avoids a quadratic, seek-related performance penalty when
21282 operating on a directory containing many entries (measurable at 10k;
21283 3.5 hours at 2 million entries with a cold cache) on certain types
21284 of file systems, including ext3 and ext4, but not tmpfs.
21285 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21286 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21287 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21288 (fs_handles_readdir_ordered_dirents_efficiently): New function.
21289 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21290 (fts_build): Set the stat.st_ino member from D_INO.
21291 If it is likely to be useful, sort dirent entries on inode number.
21293 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21294 and the struct statfs.f_type member.
21295 * modules/fts (Depends-on): Add d-ino.
21297 2008-09-26 Bruno Haible <bruno@clisp.org>
21299 * modules/sigpipe-die (Depends-on): Add sigpipe.
21301 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21302 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21303 and GNULIB_STDIO_H_SIGPIPE are set.
21304 * lib/stdio-write.c: New file.
21305 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21306 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21307 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21308 REPLACE_STDIO_WRITE_FUNCS.
21309 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21310 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21311 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21312 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21313 * modules/stdio (Files): Add lib/stdio-write.c.
21314 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21315 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21316 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21317 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21318 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21319 REPLACE_FPRINTF_POSIX.
21320 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21321 REPLACE_PRINTF_POSIX.
21322 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21323 REPLACE_VFPRINTF_POSIX.
21324 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21325 REPLACE_VPRINTF_POSIX.
21326 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21328 * doc/posix-functions/fputc.texi: Likewise.
21329 * doc/posix-functions/fputs.texi: Likewise.
21330 * doc/posix-functions/fwrite.texi: Likewise.
21331 * doc/posix-functions/printf.texi: Likewise.
21332 * doc/posix-functions/putc.texi: Likewise.
21333 * doc/posix-functions/putchar.texi: Likewise.
21334 * doc/posix-functions/puts.texi: Likewise.
21335 * doc/posix-functions/vfprintf.texi: Likewise.
21336 * doc/posix-functions/vprintf.texi: Likewise.
21338 * modules/safe-write (Depends-on): Add write.
21340 * modules/sigpipe-tests: New file.
21341 * tests/test-sigpipe.c: New file.
21342 * tests/test-sigpipe.sh: New file.
21344 * modules/write: New file.
21345 * lib/unistd.in.h: Include <sys/types.h>.
21346 (write): New declaration.
21347 * lib/write.c: New file.
21348 * m4/write.m4: New file.
21349 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21350 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21351 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21352 GNULIB_WRITE, REPLACE_WRITE.
21353 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21354 and the SIGPIPE issue.
21356 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21357 (raise): New declaration.
21358 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21359 (ext_signal): New function.
21360 (rpl_raise): New function.
21361 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21362 GNULIB_SIGNAL_H_SIGPIPE.
21363 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21364 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21366 * modules/sigpipe: New file.
21367 * m4/sigpipe.m4: New file.
21369 2008-09-25 Derek Price <derek@ximbiot.com>
21370 Bruno Haible <bruno@clisp.org>
21372 * gnulib-tool (func_import): Report all license incompatibilities, not
21373 just the first one.
21375 2008-09-25 Bruno Haible <bruno@clisp.org>
21377 * gnulib-tool (func_import): When computing the edits, consider not
21378 only the Makefile.ams that exist but also those that will be generated.
21380 2008-09-25 Simon Josefsson <simon@josefsson.org>
21382 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21383 fixes gnulib-tool --test warning about duplicate dependency.
21385 2008-09-25 Bruno Haible <bruno@clisp.org>
21387 * gnulib-tool: Don't ask the user to perform edits in the generated
21389 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21390 apply to the Makefile.am being generated.
21391 (func_emit_tests_Makefile_am): Execute edits that apply to the
21392 Makefile.am being generated.
21393 (func_import): Setup list of Makefile.am edits before emitting the
21394 Makefile.ams, not at the end.
21395 (func_create_testdir): Update.
21396 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21398 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21400 * gnulib-tool (func_import): Store the --tests-base option in the
21401 comment in gnulib-cache.m4.
21403 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
21405 * NEWS: Document increased portability that sys_select now provides.
21407 * lib/sys_select.in.h: Install select wrapper.
21408 * lib/sys_socket.in.h: Use more descriptive name when there is no
21410 * lib/winsock-select.c: New.
21411 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21412 Require gl_HEADER_SYS_SOCKET.
21413 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21414 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21415 * tests/test-sys_select.c: Add functional tests.
21417 2008-09-24 Eric Blake <ebb9@byu.net>
21419 open, fopen: close fd leak in last patch
21420 * lib/open.c (rpl_open): Close fd before returning error.
21421 * lib/fopen.c (rpl_fopen): Close fd before returning error.
21422 * doc/posix-functions/open.texi (open): Document that Irix also
21424 * doc/posix-functions/fopen.texi (fopen): Likewise.
21425 Reported by Paolo Bonzini.
21427 2008-09-24 Bruno Haible <bruno@clisp.org>
21429 Ensure that a filename ending in a slash cannot be used to access a
21431 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21432 to check whether it's really a directory.
21433 * lib/fopen.c: Include fcntl.h, unistd.h.
21434 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21436 * modules/fopen (Depends-on): Add unistd.
21437 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21438 * tests/test-fopen.c (main): Likewise.
21439 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21440 * doc/posix-functions/fopen.texi: Likewise.
21441 Reported by Eric Blake.
21443 2008-09-23 Eric Blake <ebb9@byu.net>
21445 c-stack: avoid compiler optimizations when provoking overflow
21446 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21447 recursion harder to optimize, to ensure a stack overflow occurs.
21448 * tests/test-c-stack.c (recurse): Likewise.
21449 Borrowed from libsigsegv.
21451 c-stack: work around Irix sigaltstack bug
21452 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21453 whether sigaltstack uses wrong end of stack_t (copied in part from
21455 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21456 Irix bug, without requiring an over-allocation.
21457 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21460 fopen: document mingw bug on directories
21461 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21462 not allowing a stream visiting a directory, even though reading
21463 from such a stream is not portable.
21465 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21467 * lib/poll.c: Rewrite.
21468 * modules/poll: Depend on alloca.
21470 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21472 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21473 instead define prototypes for a full set of wrappers. Ensure
21474 that Cygwin does not use the compatibility code, which is only
21476 * lib/winsock.c: New.
21477 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21478 * modules/sys_socket: Add lib/winsock.c.
21480 * modules/poll-tests: Add errno and perror.
21481 * tests/test-poll.c: Use ioctl, not ioctlsocket.
21483 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21485 * tests/test-poll.c: Downgrade minimum needed Winsock version.
21487 2008-09-23 Bruno Haible <bruno@clisp.org>
21489 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21490 * doc/glibc-functions/*: Likewise.
21492 2008-09-23 Simon Josefsson <simon@josefsson.org>
21494 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21497 2008-09-22 Eric Blake <ebb9@byu.net>
21498 Bruno Haible <bruno@clisp.org>
21500 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21501 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21502 supply %A but mishandle pseudo-NaN.
21503 Reported by Simon Josefsson.
21505 2008-09-21 Bruno Haible <bruno@clisp.org>
21507 * tests/test-lock.c (main): Tweak skip message.
21508 * tests/test-tls.c (main): Likewise.
21510 2008-09-21 Bruno Haible <bruno@clisp.org>
21512 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21513 whether 'struct sigaction' has sa_sigaction here...
21514 (gl_PREREQ_SIG_HANDLER_H): ... not here.
21515 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21517 2008-09-21 Bruno Haible <bruno@clisp.org>
21519 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21521 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21522 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21524 (Support for obsolete systems lacking POSIX:2001): New section.
21525 (String handling <string.h>): Move strdup to the new section.
21526 Suggested by Simon Josefsson and Paolo Bonzini.
21528 2008-09-21 Bruno Haible <bruno@clisp.org>
21530 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21531 exponents in %e and %g results on 'long double'. Needed for mingw's
21532 improved *printf functions.
21533 * tests/test-vasprintf-posix.c (test_function): Likewise.
21534 * tests/test-snprintf-posix.h (test_function): Likewise.
21535 * tests/test-sprintf-posix.h (test_function): Likewise.
21536 Reported by Eric Blake.
21538 2008-09-21 Bruno Haible <bruno@clisp.org>
21540 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21541 * tests/test-sprintf-posix.h (test_function): Likewise.
21543 2008-09-21 Bruno Haible <bruno@clisp.org>
21545 * modules/getpass (Depends-on): Add strdup-posix.
21547 New module 'strdup-posix'.
21548 * modules/strdup-posix: New file.
21549 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21550 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21551 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21553 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21554 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21555 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21558 * modules/strdup (Depends-on): Remove malloc-posix.
21560 2008-09-20 Bruno Haible <bruno@clisp.org>
21562 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21565 2008-09-20 Bruno Haible <bruno@clisp.org>
21567 Ensure that wint_t gets defined on IRIX 5.3.
21568 * lib/wchar.in.h (wint_t): Define if not defined by the system.
21569 * lib/wctype.in.h (wint_t): Likewise.
21570 (__wctype_wint_t): Remove type.
21571 (isw*): Use wint_t instead of __wctype_wint_t.
21572 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21573 * modules/wchar (Files): Add m4/wint_t.m4.
21574 (Makefile.am): Substitute HAVE_WINT_T.
21575 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21576 * tests/test-wctype.c: Check that wint_t is defined.
21577 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21578 * doc/posix-headers/wctype.texi: Likewise.
21579 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21581 2008-09-18 Bruno Haible <bruno@clisp.org>
21583 * gnulib-tool (func_exit): Update comment.
21585 2008-09-18 Simon Josefsson <simon@josefsson.org>
21587 * modules/getaddrinfo (Depends-on): Remove strdup, this module
21588 assumes strdup exists and does not depend on strdup to return
21589 ENOMEM on out of memory conditions.
21591 2008-09-18 Bruno Haible <bruno@clisp.org>
21593 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21594 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21595 digits for the exponent.
21597 2008-09-18 Jim Meyering <meyering@redhat.com>
21598 Bruno Haible <bruno@clisp.org>
21600 * lib/vasnprintf.c (decimal_point_char): Define also if
21601 NEED_PRINTF_INFINITE_LONG_DOUBLE.
21603 2008-09-16 Bruno Haible <bruno@clisp.org>
21604 and Eric Blake <ebb9@byu.net>
21606 vasnprintf: support Irix 5.3
21607 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21608 that mishandle long double infinity.
21609 Reported by Tom G. Christensen.
21611 2008-09-16 Bruno Haible <bruno@clisp.org>
21613 * doc/glibc-functions/scandir.texi: Mention the function is missing on
21615 * doc/glibc-functions/alphasort.texi: Likewise.
21616 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21618 2008-09-16 Jim Meyering <meyering@redhat.com>
21620 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21621 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21622 a umask modification leak out of a subshell. Otherwise, the
21623 opensolaris /bin/sh would be accepted and thus cause unwarranted
21624 failures in the coreutils test suite.
21626 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
21628 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21631 2008-09-16 Jim Meyering <meyering@redhat.com>
21633 avoid spurious test failure when library is built without ACL support
21634 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21635 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21636 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21637 * tests/test-copy-acl.sh: Likewise.
21639 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21641 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21642 based on character occurrence counts.
21644 2008-09-15 Eric Blake <ebb9@byu.net>
21646 tests: avoid some compiler warnings
21647 * tests/test-memchr.c (main): Pass NULL indirectly.
21648 * tests/test-closein.c (main): Avoid unused variable.
21650 2008-09-15 Bruno Haible <bruno@clisp.org>
21652 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21653 are missing on OpenBSD 4.0 individually.
21654 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21656 2008-09-15 Bruno Haible <bruno@clisp.org>
21658 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21659 * doc/posix-functions/strerror.texi: Mention also Cygwin.
21660 * doc/posix-functions/perror.texi: Likewise.
21661 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21663 Reported by Eric Blake.
21665 * lib/errno.in.h: Use replacement values >= 2000.
21666 Reported by Eric Blake.
21668 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21670 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21671 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21673 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21674 compareseq was aborted.
21676 2008-09-14 Bruno Haible <bruno@clisp.org>
21678 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21680 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21681 (fstrcmp_bounded): Simplify result computation accordingly.
21683 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21685 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21686 (fstrcmp): Define in terms of fstrcmp_bounded.
21687 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21688 lower_bound argument.
21689 Return quickly if the result is certainly < lower_bound.
21690 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21692 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21694 * lib/diffseq.h (EARLY_ABORT): New macro.
21695 (compareseq): Change return type to bool. Return true when EARLY_ABORT
21698 2008-09-14 Bruno Haible <bruno@clisp.org>
21700 * modules/perror-tests: New file.
21701 * tests/test-perror.sh: New file.
21702 * tests/test-perror.c: New file.
21704 New module 'perror'.
21705 * lib/stdio.in.h (perror): New declaration.
21706 * lib/perror.c: New file.
21707 * m4/perror.m4: New file.
21708 * modules/perror: New file.
21709 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21710 * doc/posix-functions/perror.texi: Mention the perror module.
21711 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21713 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21716 2008-09-14 Bruno Haible <bruno@clisp.org>
21718 * modules/stdio (Makefile.am): Reorder to match the order in
21720 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21722 2008-09-13 Bruno Haible <bruno@clisp.org>
21724 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21726 2008-09-13 Bruno Haible <bruno@clisp.org>
21728 Extend strerror to cover the added errno values.
21729 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21730 (rpl_strerror): Provide error messages for the added errno values and
21731 for the WSA* values.
21732 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21733 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21735 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21736 * modules/strerror (Depends-on): Add errno.
21737 * doc/posix-functions/strerror.texi: Document the change.
21738 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21741 2008-09-13 Bruno Haible <bruno@clisp.org>
21743 * modules/EOVERFLOW: Remove file.
21744 * m4/eoverflow.m4: Remove file.
21745 * modules/EOVERFLOW-tests: Remove file.
21746 * tests/test-EOVERFLOW.c: Remove file.
21747 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21748 * modules/ftell (Depends-on): Likewise.
21749 * modules/getdelim (Depends-on): Likewise.
21750 * modules/getugroups (Depends-on): Likewise.
21751 * modules/poll (Depends-on): Likewise.
21752 * modules/snprintf (Depends-on): Likewise.
21753 * modules/sprintf-posix (Depends-on): Likewise.
21754 * modules/vasnprintf (Depends-on): Likewise.
21755 * modules/vasprintf (Depends-on): Likewise.
21756 * modules/vfprintf-posix (Depends-on): Likewise.
21757 * modules/vsnprintf (Depends-on): Likewise.
21758 * modules/vsprintf-posix (Depends-on): Likewise.
21759 * modules/xvasprintf (Depends-on): Likewise.
21760 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21761 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21762 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21763 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21764 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21765 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21766 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21767 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21768 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21769 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21770 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21771 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21772 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21773 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21774 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21775 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21776 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21777 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21778 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21779 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21780 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21781 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21782 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21783 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21784 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21785 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21786 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21787 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21788 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21789 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21790 * MODULES.html.sh: Remove EOVERFLOW.
21791 * NEWS: Mention the change.
21793 2008-09-13 Bruno Haible <bruno@clisp.org>
21795 * modules/errno-tests: New file.
21796 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21798 * lib/errno.in.h: New file.
21799 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21800 * modules/errno: New file.
21801 * doc/posix-headers/errno.texi: Update documentation.
21802 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21804 2008-09-13 Bruno Haible <bruno@clisp.org>
21806 * tests/test-poll.c: Use #if for native Windows, rather than testing
21809 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21810 Bruno Haible <bruno@clisp.org>
21812 * lib/glob.c: Don't include <pwd.h> on native Windows.
21813 (WINDOWS32): New macro.
21814 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21816 2008-09-13 Bruno Haible <bruno@clisp.org>
21818 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21819 (ETIMEDOUT): Remove macro.
21820 (glthread_cond_timedwait_multithreaded): New declaration.
21821 (glthread_cond_timedwait): Use it.
21822 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21823 (glthread_cond_timedwait_multithreaded): New function.
21825 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21827 * modules/poll-tests: Do not check for io.h.
21828 * tests/test-poll.c: Check for __MSVCRT__ instead.
21830 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21832 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21833 * modules/poll-tests: Add inet_pton, stdbool, sockets.
21834 * tests/test-poll.c: Use them. Use _pipe on Windows.
21836 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21838 * modules/poll-tests: New.
21839 * tests/test-poll.c: New.
21841 2008-09-12 Eric Blake <ebb9@byu.net>
21843 frexp: test for NetBSD failure on -0.0
21844 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21845 not all, bugs from NetBSD 3.0 have been fixed.
21846 * doc/posix-functions/frexp.texi (frexp): Document bug.
21847 Reported by Thomas Klausner.
21849 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21850 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21852 Reported by Jonathan C. Patschke <jp@centtech.com>.
21854 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21856 * lib/glthread/cond.h: Use dummy implementation also if
21859 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21861 * modules/fnmatch-posix (License): Change to LGPLv2+.
21862 * modules/fnmatch-gnu (License): Likewise.
21864 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21866 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21868 2008-09-11 Jim Meyering <meyering@redhat.com>
21870 * users.txt: Add gtk-vnc.
21872 2008-09-08 Simon Josefsson <simon@josefsson.org>
21874 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21877 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21878 required for 16-bit and 8-bit rotates.
21879 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21880 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21881 UINT8_MAX instead of hard-coded constants.
21882 Suggested by Paul Eggert.
21884 2008-09-07 Bruno Haible <bruno@clisp.org>
21886 * tests/test-striconveh.c (main): Check behaviour when converting from
21889 Make striconveh work better with stateful encodings.
21890 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21891 that iconv does not increment the inptr when returning -1/EINVAL.
21893 2008-09-07 Bruno Haible <bruno@clisp.org>
21895 * build-aux/config.rpath: Update according to libtool-2.2.6.
21896 * build-aux/config.libpath: Likewise.
21898 2008-09-06 Bruno Haible <bruno@clisp.org>
21900 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21901 * lib/freadptr.c (freadptr): Likewise.
21902 * lib/freadseek.c (freadptrinc): Likewise.
21903 Reported by Simon Josefsson.
21905 2008-09-06 Bruno Haible <bruno@clisp.org>
21907 * modules/freadptr (License): Change to LGPLv2+.
21908 * modules/freadseek (License): Likewise.
21909 Suggested by Eric Blake.
21911 * modules/memchr2 (License): Change to LGPLv2+.
21912 Approved by Eric Blake.
21914 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21915 Bruno Haible <bruno@clisp.org>
21917 Make gnulib-tool work with native 'sed' on AIX.
21918 * gnulib-tool (sed_noop): New variable.
21919 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21920 func_add_or_update, func_create_testdir): Use it to initialize sed
21922 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21924 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
21925 Bruno Haible <bruno@clisp.org>
21927 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21928 also works after #include directives.
21930 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
21932 getdate.y: reject an out-of-range timezone value
21933 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21934 the range [-24...+24]. When specified with only one or two digits,
21935 * tests/test-getdate.c: Tests for the fix.
21936 * doc/getdate.texi: Document this change.
21938 2008-09-03 Bruno Haible <bruno@clisp.org>
21940 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21942 2008-09-02 Simon Josefsson <simon@josefsson.org>
21944 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
21945 <bruce.korb@gmail.com> with ideas from Ben Pfaff
21946 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21947 Blake <ebb9@byu.net>.
21949 * tests/test-bitrotate.c: Add more test vectors.
21951 2008-09-02 Eric Blake <ebb9@byu.net>
21953 vasnprintf-posix: handle large precision via %.*d
21954 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21955 when handling it ourselves.
21956 * tests/test-vasnprintf-posix.c (test_function): Add test.
21957 * tests/test-snprintf-posix.h (test_function): Likewise.
21958 * tests/test-sprintf-posix.h (test_function): Likewise.
21959 * tests/test-vasprintf-posix.c (test_function): Likewise.
21960 Reported by Alain Guibert.
21962 2008-09-01 Eric Blake <ebb9@byu.net>
21964 c-stack: make configure-time check more robust
21965 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21966 successful sigaction call.
21967 Reported by Tom G. Christensen.
21969 2008-09-01 Bruno Haible <bruno@clisp.org>
21971 New module 'findprog-lgpl'.
21972 * modules/findprog-lgpl: New file.
21973 * lib/findprog-lgpl.c: New file.
21974 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21975 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21976 to decide whether to use strdup or xstrdup, concatenated_filename or
21977 xconcatenated_filename.
21979 2008-09-01 Bruno Haible <bruno@clisp.org>
21981 Split module 'concat-filename' into 'concat-filename' (LGPL) and
21982 'xconcat-filename' (GPL).
21983 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21984 (License): Change to LGPLv2+.
21985 * modules/xconcat-filename: New file.
21986 * lib/concat-filename.h (concatenated_filename): Change specification.
21987 (xconcatenated_filename): New declaration.
21988 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21989 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21991 * lib/xconcat-filename.c: New file.
21992 * NEWS: Mention the change.
21993 * lib/findprog.c: Include concat-filename.h, not filename.h.
21994 (find_in_path): Use xconcatenated_filename instead of
21995 concatenated_filename.
21996 * lib/javacomp.c: Include concat-filename.h, not filename.h.
21997 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21998 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21999 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22000 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22001 instead of concatenated_filename.
22002 * lib/javaexec.c: Include concat-filename.h, not filename.h.
22003 (execute_java_class): Use xconcatenated_filename instead of
22004 concatenated_filename.
22005 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22006 * modules/javacomp (Depends-on): Likewise.
22007 * modules/javaexec (Depends-on): Likewise.
22009 2008-09-01 Bruno Haible <bruno@clisp.org>
22011 Split module 'filename' into 'filename' and 'concat-filename'.
22012 * modules/filename: Keep only lib/filename.h.
22013 (License): Change to LGPLv2+.
22014 * modules/concat-filename: New file, extracted from modules/filename.
22015 * lib/filename.h (concatenated_filename): Remove declaration.
22016 * lib/concat-filename.h: New file, extracted from lib/filename.h.
22017 * lib/concat-filename.c: Include concat-filename.h.
22018 * NEWS: Mention the change.
22020 2008-09-01 Simon Josefsson <simon@josefsson.org>
22022 * lib/bitrotate.h (rotl8, rotr8): Add.
22024 * modules/bitrotate (configure.ac): Need
22025 AC_REQUIRE([AC_C_INLINE]).
22026 (Description): Mention stdint.h. Reported by Bruno Haible
22029 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
22030 Paolo Bonzini <bonzini@gnu.org>.
22032 2008-08-31 Bruno Haible <bruno@clisp.org>
22034 Assume Solaris specific bi-arch conventions on Solaris systems.
22035 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22036 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22037 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22038 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22039 like acl_libdirstem.
22040 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22042 * NEWS: Mention the change.
22043 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22045 2008-08-31 Jim Meyering <meyering@redhat.com>
22047 * lib/strftime.h: Add comments describing the two added arguments.
22049 remove duplicate #include directives
22050 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22051 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22053 2008-08-31 Bruno Haible <bruno@clisp.org>
22055 New module 'sigpipe-die'.
22056 * modules/sigpipe-die: New file.
22057 * lib/sigpipe-die.h: New file.
22058 * lib/sigpipe-die.c: New file.
22059 * MODULES.html.sh (Signal handling): Add sigpipe-die.
22061 2008-08-31 Bruno Haible <bruno@clisp.org>
22063 Don't override previously installed signal handlers.
22064 * lib/fatal-signal.c (saved_sigactions): New variable.
22065 (uninstall_handlers): Reset the signal to the saved handler, not
22066 to SIG_DFL (except when ignored).
22067 (install_handlers): Save the previous handlers.
22069 2008-08-30 Bruno Haible <bruno@clisp.org>
22071 * gnulib-tool (func_reset_sigpipe): New function.
22072 (func_get_automake_snippet, func_modules_transitive_closure,
22073 func_import): Invoke it before a join command that reads from stdin,
22074 to avoid "echo: write error: Broken pipe" error messages on stderr.
22075 Reported by Sam Steingold <sds@gnu.org>.
22077 2008-08-30 Bruno Haible <bruno@clisp.org>
22079 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22080 Code copied from m4/open.m4.
22081 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22082 access and the filename ends in a slash. Code copied from lib/open.c.
22083 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22084 * tests/test-fopen.c (main): Check against bug with trailing slash.
22086 2008-08-29 Bruno Haible <bruno@clisp.org>
22088 Avoid some "gcc -pedantic" warnings.
22089 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22090 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22091 * lib/dirent.in.h: Likewise.
22092 * lib/fcntl.in.h: Likewise.
22093 * lib/float.in.h: Likewise.
22094 * lib/iconv.in.h: Likewise.
22095 * lib/inttypes.in.h: Likewise.
22096 * lib/locale.in.h: Likewise.
22097 * lib/math.in.h: Likewise.
22098 * lib/netinet_in.in.h: Likewise.
22099 * lib/search.in.h: Likewise.
22100 * lib/signal.in.h: Likewise.
22101 * lib/stdarg.in.h: Likewise.
22102 * lib/stdint.in.h: Likewise.
22103 * lib/stdio.in.h: Likewise.
22104 * lib/stdlib.in.h: Likewise.
22105 * lib/string.in.h: Likewise.
22106 * lib/strings.in.h: Likewise.
22107 * lib/sys_select.in.h: Likewise.
22108 * lib/sys_socket.in.h: Likewise.
22109 * lib/sys_stat.in.h: Likewise.
22110 * lib/sys_time.in.h: Likewise.
22111 * lib/sysexits.in.h: Likewise.
22112 * lib/time.in.h: Likewise.
22113 * lib/unistd.in.h: Likewise.
22114 * lib/wchar.in.h: Likewise.
22115 * lib/wctype.in.h: Likewise.
22116 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22117 * modules/fchdir (Makefile.am): Likewise.
22118 * modules/fcntl (Makefile.am): Likewise.
22119 * modules/float (Makefile.am): Likewise.
22120 * modules/iconv_open (Makefile.am): Likewise.
22121 * modules/inttypes (Makefile.am): Likewise.
22122 * modules/locale (Makefile.am): Likewise.
22123 * modules/math (Makefile.am): Likewise.
22124 * modules/netinet_in (Makefile.am): Likewise.
22125 * modules/search (Makefile.am): Likewise.
22126 * modules/signal (Makefile.am): Likewise.
22127 * modules/stdarg (Makefile.am): Likewise.
22128 * modules/stdint (Makefile.am): Likewise.
22129 * modules/stdio (Makefile.am): Likewise.
22130 * modules/stdlib (Makefile.am): Likewise.
22131 * modules/string (Makefile.am): Likewise.
22132 * modules/strings (Makefile.am): Likewise.
22133 * modules/sys_select (Makefile.am): Likewise.
22134 * modules/sys_socket (Makefile.am): Likewise.
22135 * modules/sys_stat (Makefile.am): Likewise.
22136 * modules/sys_time (Makefile.am): Likewise.
22137 * modules/sysexits (Makefile.am): Likewise.
22138 * modules/time (Makefile.am): Likewise.
22139 * modules/unistd (Makefile.am): Likewise.
22140 * modules/wchar (Makefile.am): Likewise.
22141 * modules/wctype (Makefile.am): Likewise.
22142 Reported by Reuben Thomas <rrt@sc3d.org>.
22144 2008-08-29 Bruno Haible <bruno@clisp.org>
22146 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22149 2008-08-29 Simon Josefsson <simon@josefsson.org>
22151 * MODULES.html.sh (Misc): Add bitrotate.
22153 * modules/bitrotate: New file.
22155 * lib/bitrotate.h: New file.
22157 * modules/bitrotate-tests: New file.
22159 * tests/test-bitrotate.c: New file.
22161 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22162 on the bitrotate module.
22164 * lib/arctwo.c: Use new bitrotate module.
22166 2008-08-29 Jim Meyering <meyering@redhat.com>
22168 bootstrap: merge changes from coreutils
22169 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22170 of copied files. Remove a kludge, now that this is fixed.
22171 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22172 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22173 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22175 2008-08-29 Bruno Haible <bruno@clisp.org>
22177 * MODULES.html.sh: Remove --cvs-urls option.
22179 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
22181 maint.mk: adjust to file name change
22182 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22184 2008-08-28 Jim Meyering <meyering@redhat.com>
22186 * modules/getndelim2 (License): Relicense to LGPLv2+.
22187 Approved by Richard Stallman for the version of 1995, and by
22188 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22190 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
22192 * lib/getdelim.c (flockfile, funlockfile): Make all of them
22193 dummy if one is not available. Do not touch them if
22194 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22195 (getc_maybe_unlocked): New.
22196 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22198 2008-08-26 Eric Blake <ebb9@byu.net>
22200 doc/INSTALL: resync from autoconf
22201 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22202 (INSTALL_PRELUDE): Delete; this is done more efficiently by
22204 * install.texi [!autoconf]: ...here. Resync from autoconf.
22205 * INSTALL: Regenerate.
22206 * INSTALL.ISO: New file.
22207 * INSTALL.UTF-8: Likewise.
22209 2008-08-26 Jim Meyering <meyering@redhat.com>
22211 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22212 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22213 these definitions conditional, so that they may be overridden, too.
22215 2008-08-26 Bruno Haible <bruno@clisp.org>
22217 Generate INSTALL file variants with prettier quotes.
22218 * doc/Makefile (INSTALL_PRELUDE): New macro.
22220 (INSTALL.ISO, INSTALL.UTF-8): New rules.
22222 2008-08-26 Bruno Haible <bruno@clisp.org>
22224 Run makeinfo in an English locale.
22225 * doc/Makefile (MAKEINFO): New variable.
22227 2008-08-26 Bruno Haible <bruno@clisp.org>
22229 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22230 Suggested by Eric Blake.
22232 2008-08-25 Bruno Haible <bruno@clisp.org>
22234 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22236 2008-08-25 Eric Blake <ebb9@byu.net>
22238 c-stack: test that stack overflow can be caught
22239 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22240 that platform allows handling stack overflow; at least OS/2 EMX
22241 has sigaltstack, but crashes before transferring control to
22242 handler on stack overflow.
22243 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22244 check for HAVE_STACK_OVERFLOW_HANDLING.
22245 Reported by Elbert Pol.
22247 2008-08-25 Bruno Haible <bruno@clisp.org>
22249 * doc/posix-functions/strftime.texi: Fix description of strftime
22252 2008-08-24 Bruno Haible <bruno@clisp.org>
22254 * tests/uniwidth/test-uc_width2.c: New file.
22255 * tests/uniwidth/test-uc_width2.sh: New file.
22256 * modules/uniwidth/width-tests (Files): Add the new files.
22257 (TESTS): Add uniwidth/test-uc_width2.sh.
22258 (TESTS_ENVIRONMENT): New variable.
22259 (check_PROGRAMS): Add test-uc_width2.
22260 (test_uc_width2_SOURCES): New variable.
22262 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22263 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22265 Reported by Alexander V. Lukyanov <lav@netis.ru>.
22267 2008-08-22 Eric Blake <ebb9@byu.net>
22269 test-lock, test-tls: mention why a test is skipped
22270 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22272 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22274 count-one-bits: relax license
22275 * modules/count-one-bits (License): Relicense to LGPLv2+.
22276 Suggested by Ludovic Courtès, approved by Ben Pfaff.
22278 2008-08-22 Andreas Schwab <schwab@suse.de>
22280 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22281 Remove spurious space in assignment.
22283 2008-08-21 Simon Josefsson <simon@josefsson.org>
22285 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
22286 Paul Eggert <eggert@CS.UCLA.EDU>.
22288 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
22290 * modules/gettext: Add m4/threadlib.m4.
22292 2008-08-19 Eric Blake <ebb9@byu.net>
22294 test-c-stack: fix compilation failure on FreeBSD 5.0
22295 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22296 headers before <sys/resource.h>.
22297 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22299 Reported by Nelson H. F. Beebe.
22301 strverscmp: migrate from "strverscmp.h" to <string.h>
22302 * modules/string (Makefile.am): Add new hooks.
22303 * modules/strverscmp (Files): Remove strverscmp.h.
22304 (Depends-on): Add string.
22305 (configure.ac): Add indicator.
22306 (Include): Mention new header.
22307 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22309 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22311 * lib/strverscmp.h: Delete.
22312 * lib/string.in.h (strverscmp): Provide declaration, when needed.
22313 * tests/test-strverscmp.c (includes): Adjust client.
22314 * lib/check-version.c (includes): Likewise.
22315 * NEWS: Document the change.
22317 strverscmp: add unit test
22318 * modules/strverscmp-tests: New file.
22319 * tests/test-strverscmp.c: Likewise.
22321 2008-08-19 Simon Josefsson <simon@josefsson.org>
22323 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
22324 regarding Windows crypto stuff, from Mono.
22326 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
22328 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
22329 if present, for intel RND. Return error on failures.
22331 2008-08-18 Ben Pfaff <blp@gnu.org>
22333 gitlog-to-changelog: give better diagnostic for failed pipe-open
22334 * build-aux/gitlog-to-changelog: Improve error message: suggest
22335 that the version of Git may be too old.
22337 2008-08-18 Simon Josefsson <simon@josefsson.org>
22339 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
22340 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
22342 2008-08-18 Bruno Haible <bruno@clisp.org>
22344 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22347 2008-08-18 Bruno Haible <bruno@clisp.org>
22349 * lib/glthread/threadlib.c: Include <pthread.h>.
22351 2008-08-18 Bruno Haible <bruno@clisp.org>
22353 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22354 glthread_recursive_lock_* macros.
22355 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22358 2008-08-18 Bruno Haible <bruno@clisp.org>
22360 * lib/glthread/thread.c: Avoid forcing a context switch right after
22363 2008-08-17 Bruno Haible <bruno@clisp.org>
22365 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22366 * lib/glthread/thread.h: Provide Win32 specific implementation.
22367 * modules/thread (Files): Add lib/glthread/thread.c.
22368 (Depends-on): Add lock.
22369 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22371 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22373 New module 'yield'.
22374 * modules/yield: New file.
22375 * lib/glthread/yield.h: New file.
22376 * m4/yield.m4: New file.
22377 * MODULES.html.sh (Multithreading): Add yield.
22379 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22381 New module 'thread'.
22382 * modules/thread: New file.
22383 * lib/glthread/thread.h: New file.
22384 * m4/thread.m4: New file.
22385 * MODULES.html.sh (Multithreading): Add thread.
22387 2008-08-17 Bruno Haible <bruno@clisp.org>
22389 * lib/glthread/lock.h: Include <stdlib.h> always.
22390 * lib/glthread/tls.h: Likewise.
22391 * lib/glthread/cond.h: Likewise.
22393 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22396 * modules/cond: New file.
22397 * lib/glthread/cond.h: New file.
22398 * lib/glthread/cond.c: New file.
22399 * m4/cond.m4: New file.
22400 * MODULES.html.sh (Multithreading): Add cond.
22402 2008-08-16 Eric Blake <ebb9@byu.net>
22404 c-stack: fix regression on Irix 5.3 from 2008-06-21
22405 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22407 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22408 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22409 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22410 * modules/signal (Makefile.am): Use the value.
22411 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22412 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22413 * doc/posix-headers/signal.texi (signal.h): Document this
22415 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22416 Reported by Tom G. Christensen.
22418 2008-08-17 Bruno Haible <bruno@clisp.org>
22420 New module 'threadlib'.
22421 * modules/threadlib: New file.
22422 * lib/glthread/threadlib.c: New file, extracted from
22423 lib/glthread/lock.c.
22424 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22426 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22427 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22428 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22430 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22431 (gl_DISABLE_THREADS): Remove macro.
22432 * modules/lock (Files): Remove build-aux/config.rpath.
22433 (Depends-on): Remove havelib. Add threadlib.
22434 (configure.ac-early): Remove section.
22435 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22436 * modules/tls (Depends-on): Remove lock. Add threadlib.
22437 (Link): New section, copied from threadlib.
22438 * MODULES.html.sh (Multithreading): Add threadlib.
22440 2008-08-14 Bruno Haible <bruno@clisp.org>
22442 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22443 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22444 glthread_rwlock_unlock, glthread_rwlock_destroy,
22445 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22446 glthread_recursive_lock_destroy): Define as macros always.
22447 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22448 glthread_lock_lock.
22449 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22450 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22451 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22452 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22453 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22454 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22455 (glthread_recursive_lock_lock_func): Renamed from
22456 glthread_recursive_lock_lock.
22457 (glthread_recursive_lock_unlock_func): Renamed from
22458 glthread_recursive_lock_unlock.
22459 (glthread_recursive_lock_destroy_func): Renamed from
22460 glthread_recursive_lock_destroy.
22462 2008-08-14 Bruno Haible <bruno@clisp.org>
22464 * lib/glthread/lock.h: Renamed from lib/lock.h.
22465 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22466 * lib/glthread/tls.h: Renamed from lib/tls.h.
22467 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22468 * lib/fstrcmp.c: Update includes.
22469 * lib/strsignal.c: Update includes.
22470 * modules/lock (Files, Makefile.am): Update.
22471 (Include): Change to "glthread/lock.h".
22472 * modules/tls (Files, Makefile.am): Update.
22473 (Include): Change to "glthread/tls.h".
22474 * tests/test-lock.c: Update includes.
22475 * tests/test-tls.c: Update includes.
22476 * NEWS: Mention the renamed header files.
22478 2008-08-11 Jim Meyering <meyering@redhat.com>
22480 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22482 2008-08-11 Eric Blake <ebb9@byu.net>
22484 test-c-stack: avoid C99-ism
22485 * tests/test-c-stack.c (main): Fix whitespace, move declaration
22487 Reported by Alain Guibert.
22489 2008-08-10 Jim Meyering <meyering@redhat.com>
22491 ensure that return value of uinttostr et al are not ignored
22492 * lib/inttostr.h (__GNUC_PREREQ): Define.
22493 (__attribute_warn_unused_result__): Define.
22494 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22496 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
22498 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22499 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22501 2008-08-07 Jim Meyering <meyering@redhat.com>
22503 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22505 * modules/mkstemp (License): Relicense under LGPLv2+.
22506 * modules/tempname (License): Likewise.
22508 2008-08-06 Bruno Haible <bruno@clisp.org>
22510 * lib/poll.c (poll): Further micro-optimization.
22512 2008-08-06 Jim Meyering <meyering@redhat.com>
22514 inet_pton.c: use locale-independent tolower
22515 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22516 (inet_pton6): Use c_tolower rather than tolower.
22517 * modules/inet_pton (Depends-on): Add c-ctype.
22519 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
22521 * lib/poll.c (poll): Avoid division when timeout is 0, cache
22522 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
22524 2008-08-06 Jim Meyering <meyering@redhat.com>
22526 * modules/inet_pton (License): Relicense under LGPLv2+.
22528 2008-08-03 Bruno Haible <bruno@clisp.org>
22530 Additional non-aborting API for lock and tls.
22531 * lib/lock.h: Include <errno.h>.
22532 (glthread_lock_init): New macro/function.
22533 (gl_lock_init): Define as wrapper around glthread_lock_init.
22534 (glthread_lock_lock): New macro/function.
22535 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22536 (glthread_lock_unlock): New macro/function.
22537 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22538 (glthread_lock_destroy): New macro/function.
22539 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22540 (glthread_rwlock_init): New macro/function.
22541 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22542 (glthread_rwlock_rdlock): New macro/function.
22543 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22544 (glthread_rwlock_wrlock): New macro/function.
22545 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22546 (glthread_rwlock_unlock): New macro/function.
22547 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22548 (glthread_rwlock_destroy): New macro/function.
22549 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22550 (glthread_recursive_lock_init): New macro/function.
22551 (gl_recursive_lock_init): Define as wrapper around
22552 glthread_recursive_lock_init.
22553 (glthread_recursive_lock_lock): New macro/function.
22554 (gl_recursive_lock_lock): Define as wrapper around
22555 glthread_recursive_lock_lock.
22556 (glthread_recursive_lock_unlock): New macro/function.
22557 (gl_recursive_lock_unlock): Define as wrapper around
22558 glthread_recursive_lock_unlock.
22559 (glthread_recursive_lock_destroy): New macro/function.
22560 (gl_recursive_lock_destroy): Define as wrapper around
22561 glthread_recursive_lock_destroy.
22562 (glthread_once): New macro/function.
22563 (gl_once): Define as wrapper around glthread_once.
22564 Update function declarations.
22565 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22566 glthread_rwlock_init. Return error code.
22567 (glthread_rwlock_rdlock_multithreaded): Renamed from
22568 glthread_rwlock_rdlock. Return error code.
22569 (glthread_rwlock_wrlock_multithreaded): Renamed from
22570 glthread_rwlock_wrlock. Return error code.
22571 (glthread_rwlock_unlock_multithreaded): Renamed from
22572 glthread_rwlock_unlock. Return error code.
22573 (glthread_rwlock_destroy_multithreaded): Renamed from
22574 glthread_rwlock_destroy. Return error code.
22575 (glthread_recursive_lock_init_multithreaded): Renamed from
22576 glthread_recursive_lock_init. Return error code.
22577 (glthread_recursive_lock_lock_multithreaded): Renamed from
22578 glthread_recursive_lock_lock. Return error code.
22579 (glthread_recursive_lock_unlock_multithreaded): Renamed from
22580 glthread_recursive_lock_unlock. Return error code.
22581 (glthread_recursive_lock_destroy_multithreaded): Renamed from
22582 glthread_recursive_lock_destroy. Return error code.
22583 (glthread_once_call): Make static.
22584 (glthread_once_multithreaded): Renamed from glthread_once.
22585 * lib/tls.h: Include <errno.h>.
22586 (glthread_tls_key_init): New macro/function.
22587 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22588 (glthread_tls_set): New macro/function.
22589 (gl_tls_set): Define as wrapper around glthread_tls_set.
22590 (glthread_tls_key_destroy): New macro/function.
22591 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22592 Update function declarations.
22593 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22595 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22597 2008-08-04 Eric Blake <ebb9@byu.net>
22599 gnumakefile: use space, not TAB, outside of targets
22600 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22602 2008-08-02 Jim Meyering <meyering@redhat.com>
22604 getdate.y: avoid locale-dependent date parsing failure
22605 In Turkish locales, getdate would fail to recognize keywords
22606 containing a lowercase "i". The solution is not to rely on
22607 locale-sensitive case-conversion.
22608 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22609 (lookup_word): Use c_toupper in place of toupper.
22610 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22611 Reported by Vefa Bicakci <bicave@superonline.com> in
22612 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22613 * modules/getdate (Depends-on): Add c-ctype.
22615 2008-08-02 Bruno Haible <bruno@clisp.org>
22617 * gnulib-tool (func_import): When updating or creating a .gitignore
22618 file, prepend each added line with a slash, and ignore leading slashes
22619 from the existing lines.
22620 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22622 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22624 Portability fix for GNU make 3.79.1.
22625 * top/GNUmakefile: Avoid 'else COND', which older GNU make
22626 versions do not understand.
22628 2008-08-01 Bruno Haible <bruno@clisp.org>
22630 Work around bug of HP-UX 10.20 cc with -0.0 literal.
22631 * tests/test-isnanf.h (zero): New variable.
22632 (main): Avoid literal -0.0f.
22633 * tests/test-isnand.h (zero): New variable.
22634 (main): Avoid literal -0.0.
22635 * tests/test-isnanl.h (zero): New variable.
22636 (main): Avoid literal -0.0L.
22637 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22638 (test_float, test_double, test_long_double): Avoid literals -0.0f,
22640 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22641 (test_signbitd): Avoid literal -0.0.
22642 (test_signbitl): Avoid literal -0.0L.
22643 * tests/test-ceilf1.c (zero): New variable.
22644 (main): Avoid literal -0.0f.
22645 * tests/test-ceill.c (zero): New variable.
22646 (main): Avoid literal -0.0L.
22647 * tests/test-floorf1.c (zero): New variable.
22648 (main): Avoid literal -0.0f.
22649 * tests/test-floorl.c (zero): New variable.
22650 (main): Avoid literal -0.0L.
22651 * tests/test-roundf1.c (zero): New variable.
22652 (main): Avoid literal -0.0f.
22653 * tests/test-round1.c (zero): New variable.
22654 (main): Avoid literal -0.0.
22655 * tests/test-roundl.c (zero): New variable.
22656 (main): Avoid literal -0.0L.
22657 * tests/test-truncf1.c (zero): New variable.
22658 (main): Avoid literal -0.0f.
22659 * tests/test-trunc1.c (zero): New variable.
22660 (main): Avoid literal -0.0.
22661 * tests/test-truncl.c (zero): New variable.
22662 (main): Avoid literal -0.0L.
22663 * tests/test-frexp.c (zero): New variable.
22664 (main): Avoid literal -0.0.
22665 * tests/test-frexpl.c (zero): New variable.
22666 (main): Avoid literal -0.0L.
22667 * tests/test-ldexpl.c (zero): New variable.
22668 (main): Avoid literal -0.0L.
22669 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22670 (zerod, zerol): New variables.
22671 (test_function): Avoid literals -0.0, -0.0L.
22672 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22673 (zerod, zerol): New variables.
22674 (test_function): Avoid literals -0.0, -0.0L.
22675 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22676 (zerod, zerol): New variables.
22677 (test_function): Avoid literals -0.0, -0.0L.
22678 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22679 (zerod, zerol): New variables.
22680 (test_function): Avoid literals -0.0, -0.0L.
22681 * tests/test-strtod.c (zero): New variable.
22682 (main): Avoid literal -0.0.
22683 Reported by Jonathan C. Patschke <jp@centtech.com>.
22685 2008-07-31 Jim Meyering <meyering@redhat.com>
22687 sha256.h: correct definition of SHA224_DIGEST_SIZE
22688 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22689 Reported by Paulie Pena IV <paulie4@gmail.com>.
22690 Define as 224 / 8, rather than as a literal.
22691 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22692 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22693 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22695 2008-07-31 Bruno Haible <bruno@clisp.org>
22697 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22698 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22699 Reported by Jonathan Patschke <jp@centtech.com>.
22701 2008-07-31 Bruno Haible <bruno@clisp.org>
22703 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22704 Reported by Paolo Bonzini <bonzini@gnu.org>.
22706 2008-07-30 Eric Blake <ebb9@byu.net>
22708 test-strtod: allow compilation without -lm
22709 * tests/test-strtod.c (main): Avoid link dependence on fabs.
22710 Reported by Dennis Clarke <blastwave@gmail.com>.
22712 2008-07-28 Jim Meyering <meyering@redhat.com>
22714 bootstrap: work also when there are no .po files in po/
22715 * build-aux/bootstrap (update_po_files): Complete the change
22716 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22718 2008-07-27 Jim Meyering <meyering@redhat.com>
22720 * users.txt: Add zile.
22722 2008-07-26 Ben Pfaff <blp@gnu.org>
22724 Add missing dependencies on new m4/exponent[fdl].m4 files.
22725 * modules/isnanf-nolibm: Add m4/exponentf.m4.
22726 * modules/isnand-nolibm: Add m4/exponentd.m4.
22727 * modules/isnanl-nolibm: Add m4/exponentl.m4.
22728 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22729 m4/isnan[fdl].m4, because the macros actually used moved.
22730 Reported by Jim Meyering.
22732 2008-07-14 Ben Pfaff <blp@gnu.org>
22735 * lib/isinf.c: New file.
22736 * lib/math.in.h: Define isinf macro if we have decided to replace
22738 * m4/isinf.m4: New file.
22739 * m4/math_h.m4: Initialize and substitute variables for isinf
22741 * modules/isinf: New file.
22742 * modules/isinf-tests: New file.
22743 * modules/math: Add substitutions for new module.
22744 * tests/test-isinf.c: New file.
22745 * doc/posix-functions/isinf.texi: Mention new module.
22746 * MODULES.html.sh: Mention new module.
22748 2008-07-14 Ben Pfaff <blp@gnu.org>
22750 Factor out some macros for use by additional modules.
22751 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22753 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22755 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22757 * m4/exponentf.m4: New file.
22758 * m4/exponentd.m4: New file.
22759 * m4/exponentl.m4: New file.
22760 * modules/isnanf: Use new file m4/exponentf.m4.
22761 * modules/isnand: Use new file m4/exponentd.m4.
22762 * modules/isnanl: Use new file m4/exponentl.m4.
22764 2008-07-23 Ulrich Drepper <drepper@redhat.com>
22766 mktime.c: normalize tp->tm_isdst value to -1/0/1.
22767 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22768 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22769 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22771 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22772 readlink on platforms without PATH_MAX.
22774 2008-07-21 Eric Blake <ebb9@byu.net>
22776 Warn, not fail, on stale version.
22777 * top/GNUmakefile (_curr-ver): Tone down previous patch.
22779 Don't allow installation with stale devel version number.
22780 * top/GNUmakefile (_is-install-target): New macro.
22781 (_curr-ver): Forbid installation with stale version number.
22783 2008-07-20 Bruno Haible <bruno@clisp.org>
22785 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22787 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22789 2008-07-20 Bruno Haible <bruno@clisp.org>
22791 * lib/c-stack.h (c_stack_action): Add documentation.
22792 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22794 2008-07-20 Bruno Haible <bruno@clisp.org>
22796 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22797 * modules/readlink (License): Likewise.
22799 2008-07-17 Eric Blake <ebb9@byu.net>
22801 * modules/c-stack (Link): Fix typo.
22803 Make c-stack use libsigsegv, when available.
22804 * modules/c-stack (Depends-on): Add libsigsegv.
22805 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22807 * lib/c-stack.c (SIGSTKSZ): Define fallback.
22808 (segv_handler, overflow_handler, c_stack_action)
22809 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22810 implementation when libsigsegv is available, but only when using
22811 the library is necessary.
22812 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22813 comment, explaining why XSI check fails on Linux.
22814 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22815 * tests/test-c-stack2.sh: Tweak skip message.
22816 * NEWS: Document new link-time requirements.
22818 2008-07-16 Eric Blake <ebb9@byu.net>
22820 c-stack: Expose false positives when not using libsigsegv.
22821 * modules/c-stack-tests (Files): Expand test.
22822 * tests/test-c-stack.c (main): Add means to conditionally trigger
22823 non-overflow SIGSEGV.
22824 * tests/test-c-stack2.sh: New file.
22826 2008-07-14 Bruno Haible <bruno@clisp.org>
22828 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22829 Reported by Eric Blake.
22831 2008-07-14 Sam Steingold <sds@gnu.org>
22832 Bruno Haible <bruno@clisp.org>
22834 New module libsigsegv.
22835 * modules/libsigsegv: New file.
22836 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22838 * MODULES.html.sh (Signal handling): New section.
22840 2008-07-14 Bruno Haible <bruno@clisp.org>
22842 * modules/unictype/ctype-* (Description): Add the word "function".
22843 Improves the resulting doc in MODULES.html.
22845 2008-07-12 Ben Pfaff <blp@gnu.org>
22847 Add longlong module.
22848 * modules/longlong: New file.
22850 2008-07-12 Bruno Haible <bruno@clisp.org>
22852 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22855 2008-07-10 Ben Pfaff <blp@gnu.org>
22858 * doc/posix-functions/isnan.texi: Mention new module.
22859 * lib/math.in.h: Define isnan macro if we have decided to replace
22861 * m4/isnan.m4: New file.
22862 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22863 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22865 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22867 * m4/math_h.m4: Initialize and substitute variables for isnan
22869 * modules/isnan: New file.
22870 * modules/isnan-tests: New file.
22871 * modules/math: Add substitutions for new module.
22872 * tests/test-isnan.c: New file.
22873 * MODULES.html.sh: Mention new module.
22875 2008-07-10 Ben Pfaff <blp@gnu.org>
22878 * lib/isnanf.m4: New file.
22879 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22880 (gl_HAVE_ISNANF_IN_LIBM): New macro.
22881 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22882 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22883 * modules/isnanf: New file.
22884 * modules/isnanf-tests: New file.
22885 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22887 * tests/test-isnanf-nolibm.c: factored most of its contents into
22888 new file tests/test-isnanf.h.
22889 * tests/test-isnanf.h: New file.
22890 * tests/test-isnanf.c: New file.
22891 * MODULES.html.sh: Mention new module.
22892 * doc/glibc-functions/isnanf.texi: Mention new module.
22894 2008-07-10 Ben Pfaff <blp@gnu.org>
22897 * lib/isnand.h: New file.
22898 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22899 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22900 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22901 functionality also.
22902 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22903 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22904 (gl_HAVE_ISNAND_IN_LIBM): New macro.
22905 * modules/isnand: New file.
22906 * modules/isnand-tests: New file.
22907 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22909 * tests/test-isnand-nolibm.c: factored most of its contents into
22910 new file tests/test-isnand.h.
22911 * tests/test-isnand.h: New file.
22912 * tests/test-isnand.c: New file.
22913 * MODULES.html.sh: Mention new module.
22915 2008-07-10 Ben Pfaff <blp@gnu.org>
22917 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22918 * lib/isnand.h: Rename lib/isnand-nolibm.h.
22919 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22920 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22921 * modules/isnanf-nolibm: Update references to renamed files.
22922 * modules/isnand-nolibm: Likewise.
22923 * modules/isnanf-nolibm-tests: Likewise.
22924 * modules/isnand-nolibm-tests: Likewise.
22925 * lib/frexp.c: Likewise.
22926 * lib/isfinite.c: Likewise.
22927 * lib/signbitd.c: Likewise.
22928 * lib/signbitf.c: Likewise.
22929 * lib/vasnprintf.c: Likewise.
22930 * tests/test-ceilf1.c: Likewise.
22931 * tests/test-ceilf2.c: Likewise.
22932 * tests/test-floorf1.c: Likewise.
22933 * tests/test-floorf2.c: Likewise.
22934 * tests/test-frexp.c: Likewise.
22935 * tests/test-round1.c: Likewise.
22936 * tests/test-round2.c: Likewise.
22937 * tests/test-roundf1.c: Likewise.
22938 * tests/test-strtod.c: Likewise.
22939 * tests/test-trunc1.c: Likewise.
22940 * tests/test-trunc2.c: Likewise.
22941 * tests/test-truncf1.c: Likewise.
22942 * tests/test-truncf2.c: Likewise.
22943 * NEWS: Mention the renamed header files.
22945 2008-07-11 Jim Meyering <meyering@redhat.com>
22947 vc-list-files: make the last-resort awk code more portable
22948 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22949 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22950 does not support it.
22952 2008-07-10 Eric Blake <ebb9@byu.net>
22954 Work with tar's bootstrap.
22955 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22956 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22959 2008-07-09 Jim Meyering <meyering@redhat.com>
22961 posix-shell.m4: fix typo that made this test malfunction
22962 * m4/posix-shell.m4: Remove capitalization in variable name.
22964 2008-07-08 Bruno Haible <bruno@clisp.org>
22966 * m4/onceonly.m4: Update comments.
22967 Reported by Ben Pfaff <blp@cs.stanford.edu>.
22969 2008-07-04 Jim Meyering <meyering@redhat.com>
22971 * users.txt: Add vc-dwim.
22972 (bison, coreutils): Use the gitweb URL.
22974 2008-07-03 Jim Meyering <meyering@redhat.com>
22976 * users.txt: Add libffcall. From Sam Steingold.
22978 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22980 getdate.y: do not ignore TZ with relative day, month or year offset
22981 * lib/getdate.y (get_date): Move the tz-handling block to follow the
22982 relative-date-handling, since otherwise, the latter would clobber the
22983 sole output (an updated Start value) of the tz-handling block.
22984 * tests/test-getdate.c: Tests for the fix
22986 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22988 Recognize 'foo_LIBRARIES += libgnu.a'.
22989 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22990 makefile snippet has already specified an installation location,
22993 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22995 getdate.y: factor out common actions
22996 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22997 Use them in place of open-coded actions.
22999 2008-07-01 Simon Josefsson <simon@josefsson.org>
23001 Add self-test for getdate module.
23002 * modules/getdate-tests: New file.
23003 * tests/test-getdate.c: New file.
23005 2008-06-29 Bruno Haible <bruno@clisp.org>
23007 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23009 Reported by Sylvain Beucler <beuc@beuc.net>.
23011 2008-06-29 Bruno Haible <bruno@clisp.org>
23013 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23014 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23016 2008-06-29 Bruno Haible <bruno@clisp.org>
23018 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23020 Reported by Sylvain Beucler <beuc@beuc.net>.
23022 2008-06-26 Jim Meyering <meyering@redhat.com>
23024 make several modules depend on the "open" module
23025 This provides slightly increased consistency when opening-for-write
23026 the name of a non-directory spelled with a trailing slash.
23027 * modules/chdir-safer: Likewise.
23028 * modules/chown: Likewise.
23029 * modules/clean-temp: Likewise.
23030 * modules/copy-file: Likewise.
23031 * modules/fchdir: Likewise.
23032 * modules/fcntl-safer: Likewise.
23033 * modules/pipe: Likewise.
23034 * modules/utime: Likewise.
23035 Prompted by Eric Blake and Bruno Haible.
23037 2008-06-24 Andreas Schwab <schwab@suse.de>
23039 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23040 literals can be used as initializers for global variables.
23042 2008-06-23 Eric Blake <ebb9@byu.net>
23044 Make gnulib-cache.m4 easier to diff.
23045 * gnulib-tool (func_import): Allow newlines when reading cached
23046 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23048 2008-06-23 Bruno Haible <bruno@clisp.org>
23050 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23051 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23052 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23053 m4/signalblocking.m4.
23054 (gl_PREREQ_SIGACTION): Don't invoke it.
23055 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23056 gl_PREREQ_SIG_HANDLER_H.
23057 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23058 Don't check for sigaction here.
23060 2008-06-23 Bruno Haible <bruno@clisp.org>
23062 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23063 (install_handlers): Don't set the SA_RESETHAND flag.
23065 2008-06-23 Bruno Haible <bruno@clisp.org>
23067 * m4/sigaction.m4: Comment fixes.
23068 * lib/signal.in.h: Likewise.
23070 2008-06-23 Eric Blake <ebb9@byu.net>
23073 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23075 Avoid SA_ namespace.
23076 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23077 Reported by Ralf Wildenhues.
23079 Avoid test failure due to SA_RESTORER.
23080 * tests/test-sigaction.c (SA_MASK): New macro.
23081 (main): Avoid failing due to extension flags being set.
23082 Reported by Jim Meyering.
23084 Revert use of sig-handler.h in sigprocmask.c.
23085 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23086 it requires the existence of struct sigaction.
23087 * lib/sigprocmask.c (handler_t): Restore typedef.
23088 (rpl_signal, old_handlers): Use local type.
23090 2008-06-22 Bruno Haible <bruno@clisp.org>
23092 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23094 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23096 2008-06-22 Bruno Haible <bruno@clisp.org>
23098 * doc/posix-functions/siginterrupt.texi: Move note.
23100 * lib/signal.in.h (SA_RESTART): New macro.
23101 * lib/sigaction.c: Update comment.
23103 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23105 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23106 (gl_PREREQ_SIGPROCMASK): Invoke it.
23107 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23109 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23111 * lib/sigprocmask.c: Update a comment.
23113 2008-06-21 Eric Blake <ebb9@byu.net>
23115 Use sigaction module rather than signal().
23116 * modules/c-stack (Depends-on): Add sigaction.
23117 * modules/fatal-signal (Depends-on): Likewise.
23118 * modules/nanosleep (Depends-on): Likewise.
23119 * modules/sigprocmask (Files): Add sig-handler.h.
23120 * modules/sigaction (Files): Likewise.
23121 * lib/sig-handler.h (get_handler): New file, suggested by Paul
23123 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23124 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23125 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23126 (init_fatal_signals): Likewise.
23127 * lib/nanosleep.c (rpl_nanosleep): Likewise.
23128 (siginterrupt): Delete fallback.
23129 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23131 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23134 New module sigaction, for mingw.
23135 * modules/sigaction: New module...
23136 * modules/sigaction-tests: ...and its test.
23137 * m4/sigaction.m4: New file.
23138 * lib/sigaction.c: Likewise.
23139 * tests/test-sigaction.c: Likewise.
23140 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23141 * modules/signal (Makefile.am): Likewise.
23142 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23144 * doc/posix-headers/signal.texi (signal.h): Mention provided
23146 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23147 that sigaction is preferable.
23148 * doc/posix-functions/sigaction.texi (sigaction): Mention new
23150 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23153 Improve robustness of sigprocmask by overriding signal.
23154 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23156 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23157 (SIGKILL, SIGSTOP): Provide fallbacks.
23158 (rpl_signal): Implement.
23159 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23160 signal can be called inside handlers.
23162 Fix nanosleep module on mingw.
23163 * modules/nanosleep (Depends-on): Add sys_select.
23164 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23166 Fix licensing of sigprocmask.
23167 * modules/raise (License): Relicense as LGPL.
23169 2008-06-21 Bruno Haible <bruno@clisp.org>
23171 * lib/propername.c (proper_name_utf8): Don't use the transliterated
23172 result if it contains question marks.
23173 Reported by Michael Geng <linux@michaelgeng.de>.
23175 2008-06-19 Bruno Haible <bruno@clisp.org>
23178 * doc/gnulib.texi: Include updated-stamp.texi.
23179 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23180 (updated-stamp.texi): New rule.
23181 (gnulib.info): Depend on it.
23182 * doc/.gitignore: Add updated-stamp.texi.
23183 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23185 2008-06-19 Bruno Haible <bruno@clisp.org>
23187 * doc/Makefile (gnulib.info): Update and simplify dependencies.
23188 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23190 2008-06-19 Eric Blake <ebb9@byu.net>
23192 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23193 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23194 Reported by Stepan Kasal.
23196 2008-06-18 Bruno Haible <bruno@clisp.org>
23198 * lib/fatal-signal.c (init_fatal_signals): Add comment.
23199 Reported by Eric Blake.
23201 2008-06-18 Eric Blake <ebb9@byu.net>
23203 Work around cygwin 1.5.25 strsignal bug.
23204 * tests/test-strsignal.c: Allow for const char *.
23205 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23207 2008-06-18 Simon Josefsson <simon@josefsson.org>
23209 * users.txt: Update URL to article and add author/date
23212 2008-06-17 Bruno Haible <bruno@clisp.org>
23214 New macro gl_DISABLE_THREADS.
23215 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23216 if the user did not pass --enable-threads or --disable-threads option.
23217 (gl_DISABLE_THREADS): New macro.
23218 Reported by Eric Blake <ebb9@byu.net>.
23220 2008-06-17 Bruno Haible <bruno@clisp.org>
23222 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23223 when the macro ignores it.
23224 Based on a patch by Eric Blake <ebb9@byu.net>.
23226 2008-06-17 Bruno Haible <bruno@clisp.org>
23228 * modules/tls (License): Change to LGPLv2+.
23229 Reported by Eric Blake.
23231 2008-06-17 Eric Blake <ebb9@byu.net>
23233 Simplify c-stack prerequisites.
23234 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23235 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23236 no longer requires <ucontext.h> to exist. Optimize setrlimit
23238 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23241 Move c-stack test into testsuite.
23242 * modules/c-stack-tests: New file.
23243 * lib/c-stack.c [DEBUG]: Move test program...
23244 * tests/test-c-stack.c: ...into this new file. Skip rather than
23245 fail test if sigaltstack is lacking.
23246 * tests/test-c-stack.sh: New driver file.
23248 2008-06-16 Eric Blake <ebb9@byu.net>
23250 Use raise module consistently.
23251 * modules/fatal-signal (Depends-on): Add raise.
23252 * modules/sigprocmask (Depends-on): Likewise.
23253 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23254 * lib/sigprocmask.c (sigprocmask): Likewise.
23255 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23256 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23258 Fix compliance bug in sigpending.
23259 * lib/sigprocmask.c (sigpending): Return pending array via
23260 parameter, not return value.
23262 2008-06-14 Eric Blake <ebb9@byu.net>
23264 Improve obstack-printf test code.
23265 * tests/test-obstack-printf.c (test_function): Fix comment, and
23266 simplify usage of obstack_* in macros. Add a test for coverage.
23267 Reported by Bruno Haible.
23269 2008-06-14 Bruno Haible <bruno@clisp.org>
23271 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23272 array size as a constant, not as a const variable.
23273 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23274 AC_USE_SYSTEM_EXTENSIONS.
23275 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23276 Test whether the obstack_printf function actually exists.
23277 * modules/obstack-printf (Depends-on): Add extensions.
23278 (Include): Remove obstack.h.
23279 * modules/obstack-printf-posix (Depends-on): Add extensions.
23280 (Include): Remove obstack.h.
23282 2008-06-13 Eric Blake <ebb9@byu.net>
23284 Add obstack-printf and obstack-printf-posix modules.
23285 * modules/obstack-printf: New file.
23286 * modules/obstack-printf-posix: Likewise.
23287 * MODULES.html.sh (Misc): Mention them.
23288 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23290 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23292 * modules/stdio (Makefile.am): Accomodate new modules.
23293 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23294 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23296 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23298 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23299 (gl_REPLACE_OBSTACK_PRINTF): New macros
23300 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23301 * tests/test-obstack-printf.c: New file.
23302 * modules/obstack-printf-tests: Likewise.
23303 * modules/obstack-printf-posix-tests: Likewise.
23305 2008-06-11 Bruno Haible <bruno@clisp.org>
23307 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23308 * lib/open.c: Include errno.h.
23309 (open): Fail when attempting to write to a file that has a trailing
23311 * tests/test-open.c (main): Test against trailing slash bug.
23312 * doc/posix-functions/open.texi: Mention the trailing slash bug.
23314 2008-06-10 Bruno Haible <bruno@clisp.org>
23316 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23317 for $? to work inside the trap command, with various /bin/sh-s.
23318 * tests/test-vc-list-files-cvs.sh: Likewise.
23320 2008-06-10 Bruno Haible <bruno@clisp.org>
23322 * lib/acl-internal.h: Don't include gettext.h here.
23323 * lib/set-mode-acl.c: Include gettext.h here.
23324 * lib/copy-acl.c: Likewise.
23326 2008-06-10 Bruno Haible <bruno@clisp.org>
23328 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23329 * lib/wait-process.c (wait_subprocess): Likewise.
23330 * lib/execute.h (execute): Add termsigp argument.
23331 * lib/execute.c (execute): Likewise.
23332 * lib/csharpcomp.c (compile_csharp_using_pnet,
23333 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23334 * lib/csharpexec.c (execute_csharp_using_pnet,
23335 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23336 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23337 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23338 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23339 is_jikes_present): Update.
23340 * lib/javaexec.c (execute_java_class): Update.
23341 * lib/javaversion.c (execute_and_read_line): Update.
23342 * NEWS: Document the changes.
23343 Reported by Eric Blake.
23345 2008-06-10 Eric Blake <ebb9@byu.net>
23347 Add missing include.
23348 * tests/test-strstr.c (includes): Add <signal.h>.
23349 * tests/test-strcasestr.c (includes): Likewise.
23350 * tests/test-memmem.c (includes): Likewise.
23352 2008-06-10 Bruno Haible <bruno@clisp.org>
23354 * lib/wait-process.c (wait_subprocess): Add an assertion.
23356 2008-06-10 Bruno Haible <bruno@clisp.org>
23358 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23360 2008-06-10 Bruno Haible <bruno@clisp.org>
23362 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23364 * tests/test-strcasestr.c (main): Likewise.
23365 * tests/test-strstr.c (main): Likewise.
23367 2008-06-09 Bruno Haible <bruno@clisp.org>
23369 Work around the Solaris 10 ACE ACLs ABI change.
23370 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23371 declare if ACL_NO_TRIVIAL is present.
23372 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23373 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23374 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23375 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23376 define if ACL_NO_TRIVIAL is present.
23377 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23378 and use the current ABI.
23379 (file_has_acl): Use same #if condition as elsewhere.
23380 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23381 in use, and use the current ABI.
23382 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23383 Reported by Jim Meyering.
23385 2008-06-09 Eric Blake <ebb9@byu.net>
23387 Work around environments that (stupidly) ignore SIGALRM.
23388 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23389 before using alarm().
23390 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23391 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23392 Reported by Ian Beckwith <ianb@erislabs.net>.
23394 Produce autobuild blurb earlier in log.
23395 * modules/autobuild (configure.ac-early): Move AB_INIT here.
23397 2008-06-09 Jim Meyering <meyering@redhat.com>
23398 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
23400 utimens.c: correct kernel bug work-around
23401 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
23402 failure, not success, and the kernel bug we're trying to work
23403 around affects not just the utimensat call, but also the fallback
23405 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23407 [HAVE_FUTIMENS]: Use the same work-around, here.
23409 2008-06-09 Jim Meyering <meyering@redhat.com>
23411 add more guards around definition of ACE_-related code
23412 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23413 ALLOW and ACE_OWNER are also defined.
23415 2008-06-08 Bruno Haible <bruno@clisp.org>
23417 * lib/acl-internal.h: Add me as co-author.
23418 * lib/file-has-acl.c: Likewise.
23419 * lib/set-mode-acl.c: Likewise.
23420 * lib/copy-acl.c: Likewise.
23422 2008-06-08 Bruno Haible <bruno@clisp.org>
23424 Add support for AIX ACLs.
23425 * lib/acl-internal.h (acl_nontrivial): New declaration.
23426 * lib/file-has-acl.c (acl_nontrivial): New function.
23427 (file_has_acl): Add implementation using AIX 4 ACL API.
23428 * lib/set-mode-acl.c (qset_acl): Likewise.
23429 * lib/copy-acl.c (qcopy_acl): Likewise.
23431 2008-06-08 Bruno Haible <bruno@clisp.org>
23433 Add support for HP-UX ACLs.
23434 * lib/acl-internal.h (acl_nontrivial): New declaration.
23435 * lib/file-has-acl.c (acl_nontrivial): New function.
23436 (file_has_acl): Add implementation using HP-UX 11 ACL API.
23437 * lib/set-mode-acl.c (qset_acl): Likewise.
23438 * lib/copy-acl.c (qcopy_acl): Likewise.
23440 2008-06-08 Bruno Haible <bruno@clisp.org>
23442 Add support for Cygwin ACLs.
23443 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23444 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23445 the chmod_or_fchmod call.
23446 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23448 2008-06-08 Bruno Haible <bruno@clisp.org>
23450 Fix bug with setuid modes in Solaris 10+ code.
23451 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23452 succeeded, when the mode contains some special bits.
23454 2008-06-08 Bruno Haible <bruno@clisp.org>
23456 Add support for Solaris 7..10 ACLs.
23457 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23459 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23461 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23462 * lib/set-mode-acl.c (qset_acl): Likewise.
23463 * lib/copy-acl.c (qcopy_acl): Likewise.
23465 2008-06-08 Bruno Haible <bruno@clisp.org>
23467 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23469 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23470 (acl_access_nontrivial): Remove MacOS X case.
23471 (file_has_acl): Use acl_extended_nontrivial.
23472 * lib/copy-acl.c (qcopy_acl): Likewise.
23474 2008-06-08 Bruno Haible <bruno@clisp.org>
23476 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23478 2008-06-08 Jim Meyering <meyering@redhat.com>
23480 * modules/acl (Maintainer): Add Bruno Haible.
23482 2008-06-07 Bruno Haible <bruno@clisp.org>
23484 Improve support for Tru64 ACLs.
23485 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23488 2008-06-07 Bruno Haible <bruno@clisp.org>
23490 Add support for MacOS X ACLs.
23491 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23492 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23493 * lib/set-mode-acl.c (qset_acl): Likewise.
23494 * lib/copy-acl.c (qcopy_acl): Likewise.
23496 2008-06-07 Bruno Haible <bruno@clisp.org>
23498 Fix memory leak introduced on 2008-05-22.
23499 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23502 2008-06-07 Bruno Haible <bruno@clisp.org>
23504 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23505 to construct an empty ACL.
23507 2008-06-07 Bruno Haible <bruno@clisp.org>
23509 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23511 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23513 2008-06-07 Bruno Haible <bruno@clisp.org>
23515 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23516 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23518 2008-06-07 Bruno Haible <bruno@clisp.org>
23520 * doc/posix-functions/_setjmp.texi: Explain the use of this function
23521 regardless of POSIX.
23522 * doc/posix-functions/_longjmp.texi: Likewise.
23523 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23524 SystemV platform in this case.
23526 2008-06-06 Eric Blake <ebb9@byu.net>
23528 Document abort() bugs.
23529 * doc/posix-functions/abort.texi (abort): Mention anomalies.
23531 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23532 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23534 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23535 siglongjmp, but only as a macro.
23536 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23538 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23540 Tweak documentation to cover cygwin argz bugs.
23541 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23542 argz bug fix; no code change needed since no cygwin releases
23543 occurred between the last fix and the bug being tested.
23544 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23545 module and recently fixed cygwin bugs.
23546 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23547 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23548 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23549 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23550 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23552 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23553 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23554 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23555 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23556 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23557 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23560 Avoid gcc warning on cygwin.
23561 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23562 !ACL_NO_TRIVIAL]: Avoid unused variable.
23564 2008-06-05 Eric Blake <ebb9@byu.net>
23566 Be tolerant of UNKNOWN version in gnulib-tool test dir.
23567 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23568 git-version-gen fails to come up with a version.
23569 Reported by Simon Josefsson.
23571 2008-06-05 Jim Meyering <meyering@redhat.com>
23572 Paul Eggert <eggert@cs.ucla.edu>
23574 utimens.c: work around a probable Linux kernel bug
23575 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23576 appears to be a kernel bug that causes utimensat to return 280
23577 instead of 0, indicating success.
23579 2008-06-04 Bruno Haible <bruno@clisp.org>
23581 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23584 2008-06-04 Bruno Haible <bruno@clisp.org>
23586 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23587 * lib/file-has-acl.c (acl_access_nontrivial): New function.
23588 (file_has_acl): Use it. Save errno afterwards.
23589 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23591 2008-06-03 Bruno Haible <bruno@clisp.org>
23593 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23594 draft code. Simplify #ifs.
23595 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23596 Put Solaris code after POSIX-draft code. Fix comments regarding
23597 Solaris 10, HP-UX. Mention Cygwin.
23598 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23600 2008-06-03 Eric Blake <ebb9@byu.net>
23602 Provide fallback for older kernels.
23603 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23604 Provide runtime fallback if kernel lacks support.
23605 Reported by Mike Frysinger.
23607 2008-06-02 Bruno Haible <bruno@clisp.org>
23609 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23612 2008-06-02 Bruno Haible <bruno@clisp.org>
23614 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23615 * lib/copy-acl.c (qcopy_acl): Update comment.
23617 2008-06-02 Bruno Haible <bruno@clisp.org>
23619 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23622 2008-06-02 Bruno Haible <bruno@clisp.org>
23624 * tests/test-file-has-acl.sh: Use different code for Cygwin.
23625 * tests/test-set-mode-acl.sh: Likewise.
23626 * tests/test-copy-acl.sh: Likewise.
23627 * tests/test-copy-file.sh: Likewise.
23629 2008-06-02 Bruno Haible <bruno@clisp.org>
23631 * tests/test-file-has-acl.sh: Remove unused code.
23633 2008-06-01 Bruno Haible <bruno@clisp.org>
23635 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23636 (copy_acl): Just a wrapper around qcopy_acl that emits the error
23638 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23640 2008-06-01 Bruno Haible <bruno@clisp.org>
23642 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23643 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23644 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23646 * modules/acl-tests (configure.ac): Remove tests now contained in
23649 2008-06-02 Jim Meyering <meyering@redhat.com>
23651 announce-gen: use a better key-server host name
23652 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23653 it may be more consistently reliable. Suggested by Werner Koch
23654 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23656 2008-06-01 Bruno Haible <bruno@clisp.org>
23658 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23659 Reported by Voroskoi Andras <voroskoi@gmail.com>.
23661 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
23663 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23665 2008-06-01 Bruno Haible <bruno@clisp.org>
23668 * tests/test-file-has-acl.sh: New file.
23669 * tests/test-file-has-acl.c: New file.
23670 * tests/test-set-mode-acl.sh: New file.
23671 * tests/test-set-mode-acl.c: New file.
23672 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23673 * tests/test-copy-acl.c: New file.
23674 * modules/acl-tests: New file, based on modules/copy-file-tests.
23675 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23676 (Depends-on): Add acl-tests.
23677 (configure.ac): Remove checks.
23678 (Makefile.am): Don't create test-sameacls program here any more.
23680 2008-06-01 Bruno Haible <bruno@clisp.org>
23682 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23683 * tests/test-sameacls.c: Include progname.h.
23684 (main): Invoke set_program_name. Portability fixes for MacOS X,
23687 2008-06-01 Bruno Haible <bruno@clisp.org>
23689 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23691 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23693 2008-06-01 Bruno Haible <bruno@clisp.org>
23695 * modules/rpmatch (Depends-on): Add strdup.
23697 2008-06-01 Bruno Haible <bruno@clisp.org>
23699 * lib/pipe.c: Include unistd-safer.h.
23700 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23701 * modules/pipe (Depends-on): Add unistd-safer.
23703 2008-05-30 Simon Josefsson <simon@josefsson.org>
23705 * modules/autobuild (configure.ac): Call AB_INIT.
23707 2008-05-30 Simon Josefsson <simon@josefsson.org>
23709 * tests/test-getaddrinfo.c: Don't print debug messages by default.
23710 Suggested by Bruno Haible <bruno@clisp.org>.
23712 2008-05-30 Simon Josefsson <simon@josefsson.org>
23714 * tests/test-base64.c: Cast size_t to unsigned long when invoking
23715 printf. Use %lu instead of %d. Reported by Bruno Haible
23718 2008-05-29 Eric Blake <ebb9@byu.net>
23720 Prefer new POSIX 200x interfaces over futimesat.
23721 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23722 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23724 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23726 2008-05-28 Bruno Haible <bruno@clisp.org>
23728 * modules/stpcpy (License): Change to LGPLv2+.
23729 Requested by David Lutterkort <dlutter@redhat.com>.
23731 2008-05-27 Bruno Haible <bruno@clisp.org>
23733 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23735 Reported by Jose E. Marchesi <jemarch@gnu.org>.
23737 2008-05-27 Bruno Haible <bruno@clisp.org>
23739 * modules/iconv_open (Link): New section, from module 'iconv'.
23740 * modules/striconv (Link): Likewise.
23741 * modules/striconveh (Link): Likewise.
23742 * modules/xstriconv (Link): Likewise.
23743 * modules/unicodeio (Link): Likewise.
23744 * modules/propername (Link): Likewise.
23745 Reported by Jim Meyering.
23747 2008-05-26 Jim Meyering <meyering@redhat.com>
23749 sha256: do not artificially restrict buffer length to be < 2^32
23750 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23751 uint32_t to size_t.
23752 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23755 avoid unaligned access errors, e.g., on sparc
23756 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23757 direct access through a possibly-unaligned uint64* pointer.
23758 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23759 direct access through a possibly-unaligned uint32* pointer.
23760 Prompted by this patch from Tom "spot" Callaway:
23761 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23763 sha512.c: fix typo in comment
23764 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23766 2008-05-25 Bruno Haible <bruno@clisp.org>
23768 * lib/set-mode-acl.c: Renamed from lib/acl.c.
23769 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23770 (Makefile.am): Update lib_SOURCES.
23772 2008-05-25 Bruno Haible <bruno@clisp.org>
23774 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23776 2008-05-25 Jim Meyering <meyering@redhat.com>
23778 useless-if-before-free: freed expr may have white-space differences
23779 * build-aux/useless-if-before-free: Recognize cases in which the
23780 freed expression differs from the tested one in embedded white
23781 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
23782 $1 was used, so we can't make any regexp shy. Improved tests now
23785 useless-if-before-free: accept white space in the expression.
23786 * build-aux/useless-if-before-free: For now, any white space
23787 in the expression must be identical in the free argument.
23789 useless-if-before-free: efficiency tweak
23790 * build-aux/useless-if-before-free: Make the expression-matching
23792 Make the *outer* regexp shy, not the expr-matching one.
23794 update code-in-comment to accept cast of free arg
23795 * build-aux/useless-if-before-free: Update regexp.
23797 2008-05-25 Bruno Haible <bruno@clisp.org>
23799 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23800 * modules/copy-file-tests (Files, Makefile.am): Update.
23801 * tests/test-copy-file.c (func_test_copy): Update.
23803 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
23805 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23807 2008-05-23 Bruno Haible <bruno@clisp.org>
23809 Improve support for ACLs on OSF/1.
23810 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23811 Remove fallback for unknown flavors of ACLs.
23813 2008-05-22 Bruno Haible <bruno@clisp.org>
23815 Add support for ACLs on OSF/1.
23816 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23818 (acl_free_text): New macro fallback.
23819 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23821 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23822 acl_free_text function. Require AC_C_INLINE.
23824 2008-05-22 Bruno Haible <bruno@clisp.org>
23826 Make copy_acl work on MacOS X 10.5.
23827 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23828 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23829 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23830 If MODE_INSIDE_ACL, don't assume that every system has the same text
23831 representation for ACLs as FreeBSD.
23832 * lib/copy-acl.c (copy_acl): Add support for platforms with
23834 * lib/file-has-acl.c (file_has_acl): Likewise.
23835 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23836 FreeBSD, MacOS X, or IRIX, respectively.
23838 2008-05-22 Bruno Haible <bruno@clisp.org>
23840 * lib/acl.h: Don't include <sys/acl.h>.
23841 (GETACLCNT): Move fallback to lib/acl-internal.h.
23842 * lib/acl-internal.h: Include <sys/acl.h> here.
23843 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23845 2008-05-22 Bruno Haible <bruno@clisp.org>
23847 Split off copy_acl function to separate file.
23848 * lib/copy-acl.c: New file, extracted from lib/acl.c.
23849 * lib/acl.c (copy_acl): Moved function to separate file.
23850 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23851 * modules/acl (Files): Add lib/copy-acl.c.
23852 (Makefiles.am): Augment lib_SOURCES.
23854 2008-05-22 Bruno Haible <bruno@clisp.org>
23856 * modules/copy-file-tests: New file.
23857 * tests/test-copy-file.sh: New file.
23858 * tests/test-copy-file.c: New file.
23859 * tests/test-copy-file-sameacls.c: New file.
23861 2008-05-22 Eric Blake <ebb9@byu.net>
23864 * tests/test-memcmp.c (main): Pass NULL indirectly.
23866 2008-05-21 Bruno Haible <bruno@clisp.org>
23868 Add reference doc about ACLs.
23869 * doc/acl-resources.txt: New file.
23870 * doc/acl-cygwin.txt: New file.
23872 2008-05-21 Bruno Haible <bruno@clisp.org>
23874 Avoid one more warning from gcc.
23875 * lib/vasnprintf.c (IF_LINT): Update comments.
23876 (VASNPRINTF): Use it also for the 'prefix' array initializer.
23878 2008-05-21 Jim Meyering <meyering@redhat.com>
23880 avoid a warning from gcc
23881 * lib/vasnprintf.c (IF_LINT): Define.
23882 (scale10_round_decimal_long_double):
23883 Use it to avoid a "may be used uninitialized" warning.
23884 (scale10_round_decimal_double): Likewise.
23886 2008-05-21 Simon Josefsson <simon@josefsson.org>
23888 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23891 2008-05-20 Bruno Haible <bruno@clisp.org>
23893 * tests/test-memcmp.c (main): Test also the sign of the result. Test
23894 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23896 2008-05-20 Simon Josefsson <simon@josefsson.org>
23898 * modules/memcmp-tests: New file.
23899 * tests/test-memcmp.c: New file.
23901 2008-05-19 Bruno Haible <bruno@clisp.org>
23903 * modules/propername (Notice, configure.ac): Put quoted "..." into
23905 * lib/propername.h: Update comments accordingly.
23906 Reported by Eric Blake.
23908 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
23910 * modules/getpass-gnu (Depends-on): Add fseeko.
23912 2008-05-19 Simon Josefsson <simon@josefsson.org>
23914 * modules/base64-tests: New file.
23916 2008-05-19 Bo Borgerson <gigabo@gmail.com>
23918 * lib/base64.c (base64_decode_ctx): If a decode context structure
23919 was passed in use it to ignore newlines. If a context structure
23920 was _not_ passed in, continue to treat newlines as garbage (this
23921 is the historical behavior). Formerly base64_decode.
23922 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23923 takes a decode context structure.
23924 * lib/base64.h (base64_decode): Macro for four-argument calls.
23925 (base64_decode_alloc): Likewise.
23926 * lib/base64.c (base64_decode_ctx): If a decode context structure
23927 was passed in use it to ignore newlines. If a context structure
23928 was _not_ passed in, continue to treat newlines as garbage (this
23929 is the historical behavior). Formerly base64_decode.
23930 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23931 takes a decode context structure.
23932 * lib/base64.h (base64_decode): Macro for four-argument calls.
23933 (base64_decode_alloc): Likewise.
23935 2008-05-19 Jim Meyering <meyering@redhat.com>
23937 avoid a warning from gcc
23938 * lib/trim.c (IF_LINT): Define.
23939 (trim2): Use it to avoid a "may be used uninitialized" warning.
23942 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23944 2008-05-19 Bruno Haible <bruno@clisp.org>
23946 * doc/glibc-functions/getpass.texi: Document limits of other
23949 2008-05-19 Simon Josefsson <simon@josefsson.org>
23950 Bruno Haible <bruno@clisp.org>
23952 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23954 2008-05-18 Bruno Haible <bruno@clisp.org>
23956 * modules/propername: New file, from GNU gettext.
23957 * lib/propername.h: New file, from GNU gettext.
23958 * lib/propername.c: New file, from GNU gettext.
23959 * MODULES.html.sh (Internationalization functions): Add propername.
23961 2008-05-16 Jim Meyering <meyering@redhat.com>
23962 Bruno Haible <bruno@clisp.org>
23964 Avoid some warnings from "gcc -Wshadow".
23965 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23967 2008-05-15 Eric Blake <ebb9@byu.net>
23969 Extend previous patch to cygwin 1.7.0.
23970 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23971 fast implementation in cygwin >= 1.7.0.
23972 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23973 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23975 2008-05-15 Bruno Haible <bruno@clisp.org>
23977 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23978 implementation in glibc >= 2.9.
23979 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23980 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23982 2008-05-15 Bruno Haible <bruno@clisp.org>
23984 * MODULES.html.sh (Internationalization functions): Remove linebreak.
23985 (Unicode string functions): Add unilbrk/*.
23986 Reported by Karl Berry.
23988 2008-05-15 Eric Blake <ebb9@byu.net>
23990 Fix violation of <stdbool.h> replacement in regex.
23991 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23992 * lib/regexec.c (re_search_internal): Likewise.
23993 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23995 2008-05-15 Jim Meyering <meyering@redhat.com>
23997 avoid distracting test output when git or cvs is not found
23998 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23999 * tests/test-vc-list-files-git.sh: Likewise.
24001 2008-05-15 Eric Blake <ebb9@byu.net>
24003 Glibc finally accepted the memmem speedup code, bugzilla #5514.
24004 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24006 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24007 * doc/posix-functions/strstr.texi (strstr): Likewise.
24008 * lib/str-two-way.h (MAX): Sychronize with glibc.
24010 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
24012 * lib/regcomp.c (optimize_utf8): Add a note on why we test
24014 (calc_first): Initialize constraint field.
24015 (duplicate_node_closure): Use it instead of special casing ANCHORS.
24017 (duplicate_node): Merge constraint field for all node types.
24018 (calc_eclosure_iter): Look at constraint field for all node types.
24019 * lib/regex_internal.c (create_cd_newstate): Don't look at
24022 2008-05-14 Bruno Haible <bruno@clisp.org>
24024 Help GCC to do better code generation.
24025 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24026 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24027 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24028 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24029 Declare with attribute 'malloc' if supported.
24031 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
24033 use "echo STR|wc -c" rather than unportable "expr length STR"
24034 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24035 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24037 2008-05-14 Jim Meyering <meyering@redhat.com>
24039 use dd ibs=$n count=1 ... rather than less-portable head -c$n
24040 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24041 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24042 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24045 2008-05-14 Eric Blake <ebb9@byu.net>
24047 Avoid quadratic growth in gl_LIBSOURCES.
24048 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24049 Suggested by Bruno Haible.
24052 * modules/xmemdup0-tests: New file.
24053 * tests/test-xmemdup0.c: Likewise.
24055 2008-05-13 Eric Blake <ebb9@byu.net>
24057 Split xmemdup0 into its own module.
24058 * modules/xmemdup0: New file.
24059 * lib/xmemdup0.h: Likewise.
24060 * lib/xmemdup0.c: Likewise.
24061 * MODULES.html.sh (Memory management functions): Add xmemdup0.
24062 * lib/xalloc.h (xmemdup0): Remove.
24063 * lib/xmalloc.c (xmemdup0): Likewise.
24065 2008-05-13 Eric Blake <ebb9@byu.net>
24066 Bruno Haible <bruno@clisp.org>
24068 Reduce number of forks required during autoconf.
24069 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24070 and gl_LIBSOURCES_DIR.
24071 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24072 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24073 m4_syscmd per file.
24074 <m4_foreach_w>: Move...
24075 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24077 2008-05-13 Eric Blake <ebb9@byu.net>
24079 * gnulib-tool: Fix various comment typos.
24081 2008-05-12 Bruno Haible <bruno@clisp.org>
24083 Tailor the linebreaking algorithm.
24084 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24086 2008-05-12 Bruno Haible <bruno@clisp.org>
24088 Update to Unicode 5.0.0.
24089 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24090 LBP_JV, LBP_JT. Redistribute values.
24091 (unilbrk_table): Change size.
24092 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24093 Unicode TR#14 rev. 22.
24094 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24095 LBP_JV, LBP_JT. Redistribute values.
24096 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24097 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24099 * lib/unilbrk/lbrkprop1.h: Regenerated.
24100 * lib/unilbrk/lbrkprop2.h: Regenerated.
24101 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24102 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24103 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24105 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24107 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24109 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24110 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24111 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24112 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24113 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24114 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24116 2008-05-11 Bruno Haible <bruno@clisp.org>
24118 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24120 2008-05-11 Bruno Haible <bruno@clisp.org>
24122 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24123 * modules/unilbrk/gen-lbrk: New file.
24125 2008-05-11 Bruno Haible <bruno@clisp.org>
24127 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24128 * m4/sha512.m4 (gl_SHA512): Likewise.
24130 2008-05-11 Jim Meyering <meyering@redhat.com>
24132 New modules: crypto/sha256, crypto/sha512 (from coreutils)
24133 * modules/crypto/sha256: New file.
24134 * modules/crypto/sha512: Likewise.
24135 * lib/sha256.c: Likewise.
24136 * lib/sha256.h: Likewise.
24137 * lib/sha512.c: Likewise.
24138 * lib/sha512.h: Likewise.
24139 * lib/u64.h: Likewise.
24140 * m4/sha256.m4: Likewise.
24141 * m4/sha512.m4: Likewise.
24142 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24144 2008-05-10 Bruno Haible <bruno@clisp.org>
24146 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24147 (Input/Output <stdio.h>): Add xprintf.
24148 (Signal handling <signal.h>): Add strsignal.
24149 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24150 (Core language properties): Add func.
24151 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24152 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24154 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24155 (Input/output): New section.
24156 (File system functions): Add openat-die, stat-macros.
24157 (Networking functions): Add sockets.
24158 (Unicode string functions): Add unictype/*.
24159 (Support for building libraries and executables): Add gperf.
24160 (Support for building documentation): Add agpl-3.0.
24161 (Misc): Add nocrash.
24163 2008-05-10 Bruno Haible <bruno@clisp.org>
24165 * modules/unictype/gen-ctype: New file.
24167 2008-05-10 Jim Meyering <meyering@redhat.com>
24169 Make chdir-safer.c more efficient on a system with no symlinks.
24170 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24171 also if ELOOP is zero. Suggested by Bruno Haible.
24173 Make chdir-safer.c slightly safer.
24174 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24175 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24177 Avoid compile failure on systems without ELOOP (like mingw).
24178 * lib/chdir-safer.c (ELOOP): Define if not already defined.
24179 Reported by Bruno Haible.
24181 2008-05-10 Bruno Haible <bruno@clisp.org>
24183 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24184 (is_utf8_encoding): Use a case-insensitive comparison.
24185 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24188 2008-05-10 Bruno Haible <bruno@clisp.org>
24190 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24191 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24192 * lib/unilbrk/ulc-common.h (iconv_string_length,
24193 iconv_string_keeping_offsets): Remove declarations.
24194 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24195 Don't include <iconv.h>, streq.h, xsize.h.
24196 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24198 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24199 <iconv.h>, streq.h, xsize.h.
24200 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24202 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24203 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24204 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24205 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24207 2008-05-10 Bruno Haible <bruno@clisp.org>
24209 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24210 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24212 * modules/unilbrk/u32-width-linebreaks-tests: New file.
24213 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24215 * modules/unilbrk/u16-width-linebreaks-tests: New file.
24216 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24218 * modules/unilbrk/u8-width-linebreaks-tests: New file.
24219 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24221 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24222 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24224 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24225 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24227 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24228 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24230 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24231 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24233 2008-05-10 Bruno Haible <bruno@clisp.org>
24235 Split up 'linebreak' module.
24236 * lib/unilbrk.h: New file, based on lib/linebreak.h.
24237 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24238 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24240 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24241 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24242 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24244 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24246 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24248 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24249 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24250 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24252 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24254 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24256 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24258 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24260 * modules/unilbrk/base: New file.
24261 * modules/unilbrk/tables: New file.
24262 * modules/unilbrk/u8-possible-linebreaks: New file.
24263 * modules/unilbrk/u16-possible-linebreaks: New file.
24264 * modules/unilbrk/u32-possible-linebreaks: New file.
24265 * modules/unilbrk/ulc-common: New file.
24266 * modules/unilbrk/ulc-possible-linebreaks: New file.
24267 * modules/unilbrk/u8-width-linebreaks: New file.
24268 * modules/unilbrk/u16-width-linebreaks: New file.
24269 * modules/unilbrk/u32-width-linebreaks: New file.
24270 * modules/unilbrk/ulc-width-linebreaks: New file.
24271 * lib/linebreak.h: Remove file.
24272 * lib/linebreak.c: Remove file.
24273 * m4/linebreak.m4: Remove file.
24274 * modules/linebreak: Remove file.
24275 * NEWS: Mention the changes.
24277 2008-05-09 Eric Blake <ebb9@byu.net>
24280 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24282 * lib/xmalloc.c (xmemdup0): New C implementation.
24284 2008-05-08 Bruno Haible <bruno@clisp.org>
24286 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24288 2008-05-07 Eric Blake <ebb9@byu.net>
24290 Support cross-compilation of <wctype.h>.
24291 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24294 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
24296 * build-aux/vc-list-files: Add support for bzr.
24298 2008-05-03 Jim Meyering <meyering@redhat.com>
24300 avoid failed assertion with tight malloc
24301 * tests/test-getndelim2.c: Correct an off-by-one assertion.
24303 2008-05-03 Simon Josefsson <simon@josefsson.org>
24305 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24306 are needed from arpa/inet.h.
24307 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24308 Reported by Bruno Haible.
24310 2008-05-02 Jim Meyering <meyering@redhat.com>
24312 avoid compilation error on FreeBSD 6
24313 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24315 2008-05-01 Jim Meyering <meyering@redhat.com>
24317 useless-if-before-free: correct --help's exit status description
24318 * build-aux/useless-if-before-free (usage): Like grep, exit 0
24319 for one or more matches, etc. Reported by Bruno Haible.
24321 vc-list-files: make the stand-alone gnulib test work
24322 * modules/vc-list-files-tests (configure.ac):
24323 Define and AC_SUBST abs_aux_dir.
24324 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24325 $(abs_top_srcdir) to each script and having each of them
24326 duplicate the work of setting PATH, set PATH here, using
24327 the new variable, abs_aux_dir instead.
24328 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24329 * tests/test-vc-list-files-git.sh: Likewise.
24330 Reported by Bruno Haible.
24332 2008-05-01 Bruno Haible <bruno@clisp.org>
24334 * lib/getndelim2.c (getndelim2): Fix newsize computation during
24335 reallocation. Rename 'done' to 'found_delimiter'.
24337 2008-05-01 Jim Meyering <meyering@redhat.com>
24339 vc-list-files: accommodate /bin/sh like the one from Solaris 10
24340 * build-aux/vc-list-files: Use `...`, not $(...).
24342 2008-04-30 Jim Meyering <meyering@redhat.com>
24344 add tests for vc-list-files
24345 * modules/vc-list-files-tests: New module.
24346 * tests/test-vc-list-files-cvs.sh: New file.
24347 * tests/test-vc-list-files-git.sh: New file.
24349 avoid a warning from gcc
24350 * lib/getndelim2.c (IF_LINT): Define.
24351 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24353 vc-list-files: work properly with build-aux/cvsu, too
24354 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24355 to all cvs-based clauses.
24357 vc-list-files: work properly in the CVS+awk case, too
24358 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24360 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24361 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24362 take more than one file argument, so . Add quotes, just in case $dir
24363 ever contains a shell meta-character. Prompted by Soren Hansen in
24364 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24366 2008-04-29 Eric Blake <ebb9@byu.net>
24368 Optimize getndelim2 to use block operations when possible.
24369 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24370 freadseek, and memchr2.
24371 * lib/getndelim2.c (getndelim2): Use them for block reads.
24373 2008-04-29 Bruno Haible <bruno@clisp.org>
24375 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24376 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24377 * modules/inet_ntop (Depends-on): Add extensions.
24378 * modules/inet_pton (Depends-on): Likewise.
24379 Reported by Simon Josefsson.
24381 2008-04-29 Jim Meyering <meyering@redhat.com>
24383 When the is more than one match in a block, match all of them.
24384 * build-aux/useless-if-before-free: Iterate through each block
24385 until there are no more matches.
24387 Fix broken useless-if-before-free script.
24388 * build-aux/useless-if-before-free: Fix typo: missing "?" after
24389 the expression to match cast of argument to free-like function.
24391 2008-04-29 Eric Blake <ebb9@byu.net>
24394 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24396 2008-04-29 Jim Meyering <meyering@redhat.com>
24398 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24399 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24400 by gnulib to exist and to declare e.g., inet_ntop.
24401 Don't include "inet_ntop.h", now removed.
24403 * m4/arpa_inet_h.m4: Remove trailing blanks.
24405 2008-04-29 Eric Blake <ebb9@byu.net>
24407 Silence valgrind on safe reads beyond potential array bounds.
24408 * lib/rawmemchr.valgrind: New file.
24409 * lib/strchrnul.valgrind: Likewise.
24410 * modules/rawmemchr (Files): Distribute new file.
24411 * modules/strchrnul (Files): Likewise.
24412 Suggested by Bruno Haible.
24414 2008-04-29 Bruno Haible <bruno@clisp.org>
24416 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24417 (inet_ntop, inet_pton): Change portability warning's wording.
24418 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24419 Invoke gl_CHECK_NEXT_HEADERS.
24420 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24421 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24423 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24424 * modules/arpa_inet (Description): No longer only for systems that
24426 (Depends-on): Add include_next.
24427 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24430 2008-04-29 Jim Meyering <meyering@redhat.com>
24432 * modules/mkdir (License): Re-license as LGPLv2+.
24434 2008-04-29 Bruno Haible <bruno@clisp.org>
24436 * modules/rawmemchr (Maintainer): Set to Eric.
24437 * modules/strchrnul (Maintainer): Likewise.
24439 2008-04-29 Simon Josefsson <simon@josefsson.org>
24441 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24442 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24444 * modules/arpa_inet (arpa/inet.h): Use them.
24446 2008-04-28 Eric Blake <ebb9@byu.net>
24449 * modules/getndelim2-tests: New file.
24450 * tests/test-getndelim2.c: Likewise.
24451 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
24453 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24455 * MODULES.html.sh: Document new module.
24457 2008-04-20 Bruno Haible <bruno@clisp.org>
24459 * lib/c-stack.c (die): Use raise.
24460 * modules/c-stack (Depends-on): Add raise.
24462 2008-04-28 Bruno Haible <bruno@clisp.org>
24464 Expect rpmatch to be declared.
24465 * lib/yesno.c (rpmatch): Remove declaration.
24468 * lib/stdlib.in.h (rpmatch): New declaration.
24469 * lib/rpmatch.c: Include <stdlib.h> first.
24470 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24471 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24472 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24474 * modules/rpmatch (Depends-on): Add stdlib, extensions.
24475 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24476 (Include): Set to <stdlib.h>.
24477 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24479 * NEWS: Document the change.
24481 2008-04-28 Bruno Haible <bruno@clisp.org>
24483 Change rpmatch to use nl_langinfo when appropriate.
24484 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24486 (localized_pattern): New function/macro.
24487 (try): Remove match, nomatch arguments. Copy the pattern into safe
24488 memory before caching it.
24489 (rpmatch): Use localized_pattern. Add translator comments.
24490 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24491 Suggested by Eric Blake.
24492 * modules/rpmatch (Depends-on): Add stdbool.
24494 2008-04-28 Eric Blake <ebb9@byu.net>
24496 Add rawmemchr module, matching glibc.
24497 * modules/string (Makefile.am): New indicator.
24498 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24499 * lib/string.in.h (rawmemchr): Declare when appropriate.
24500 * modules/rawmemchr: New file.
24501 * m4/rawmemchr.m4: Likewise.
24502 * lib/rawmemchr.c: Likewise.
24503 * modules/rawmemchr-tests: Likewise.
24504 * tests/test-rawmemchr.c: Likewise.
24505 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24507 * modules/strchrnul (Depends-on): Add rawmemchr.
24508 * lib/strchrnul.c (strchrnul): Optimize a corner case.
24510 Whitespace cleanup.
24511 * tests/test-strchrnul.c: Reindent.
24512 * lib/strchrnul.c: Likewise.
24514 Optimize and test strchrnul.
24515 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24516 * modules/strchrnul-tests: New file.
24517 * tests/test-strchrnul.c: Likewise.
24519 Remove intprops dependency.
24520 * modules/memchr (Depends-on): Remove intprops.
24521 * modules/memrchr (Depends-on): Likewise.
24522 * modules/memchr2 (Depends-on): Likewise.
24523 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24524 * lib/memrchr.c (__memrchr): Likewise.
24525 * lib/memrchr2.c (memchr2): Likewise.
24526 Reported by Simon Josefsson.
24528 2008-04-28 Simon Josefsson <simon@josefsson.org>
24530 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24531 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24533 2008-04-28 Simon Josefsson <simon@josefsson.org>
24535 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24537 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24539 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24541 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24543 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24545 * m4/inet_pton.m4: Don't check for header files.
24547 * m4/inet_ntop.m4: Don't check for header files.
24549 2008-04-28 Simon Josefsson <simon@josefsson.org>
24551 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24552 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24553 trigger for cygwin).
24554 Reported by Bruno Haible <bruno@clisp.org>.
24556 2008-04-28 Bruno Haible <bruno@clisp.org>
24558 * doc/posix-functions/strdup.texi: Mention mingw problem.
24560 2008-04-27 Bruno Haible <bruno@clisp.org>
24562 * modules/stat-time-tests (Depends-on): Add sleep.
24563 * tests/test-stat-time.c (force_unlink): New function.
24565 (test_mtime): Remove the ctime related tests.
24566 (test_ctime): New function, containing the ctime related tests.
24567 (main): Call test_ctime, except on native Windows platforms.
24569 2008-04-27 Bruno Haible <bruno@clisp.org>
24571 * lib/rpmatch.c (rpmatch): Add some comments.
24572 Reported by James Youngman <jay@gnu.org>.
24574 2008-04-27 Bruno Haible <bruno@clisp.org>
24576 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24579 2008-04-27 Bruno Haible <bruno@clisp.org>
24581 Make test-yesno.sh work on mingw.
24582 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24583 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24584 (main): Set stdin to binary mode.
24585 * modules/yesno-tests (Depends-on): Add binary-io.
24587 2008-04-27 Bruno Haible <bruno@clisp.org>
24589 Fix 'isfinite' on x86, x86_64, ia64 platforms.
24590 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24591 argument that lie outside the IEEE 854 domain.
24592 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24593 (gl_ISFINITE): Use it.
24594 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24596 2008-04-27 Bruno Haible <bruno@clisp.org>
24598 Allow local renaming in config.h.
24599 * lib/memrchr.c (memrchr): Don't undefine outside libc.
24601 2008-04-27 Bruno Haible <bruno@clisp.org>
24603 * lib/memchr.c (__memchr): Change type of 'i'.
24604 * lib/memchr2.c (memchr2): Likewise.
24606 2008-04-26 Eric Blake <ebb9@byu.net>
24607 and Bruno Haible <bruno@clisp.org>
24609 Optimize and test memrchr.
24610 * modules/memrchr (Depends-on): Add intprops.
24611 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24612 * modules/memrchr-tests: New file.
24613 * tests/test-memrchr.c: New file.
24615 2008-04-26 Bruno Haible <bruno@clisp.org>
24617 Add tentative support for DragonFly BSD.
24618 * lib/stdio-impl.h: Add macros for DragonFly BSD.
24619 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24621 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24622 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24623 * lib/fpurge.c (fpurge): Likewise.
24624 * lib/freadable.c (freaadable): Likewise.
24625 * lib/freadahead.c (freadahead): Likewise.
24626 * lib/freading.c (freading): Likewise.
24627 * lib/freadptr.c (freadptr): Likewise.
24628 * lib/freadseek.c (freadptrinc): Likewise.
24629 * lib/fseeko.c (fseeko): Likewise.
24630 * lib/fseterr.c (fseterr): Likewise.
24631 * lib/fwritable.c (fwritable): Likewise.
24632 * lib/fwriting.c (fwriting): Likewise.
24634 2008-04-26 Bruno Haible <bruno@clisp.org>
24636 * lib/stdio-impl.h: New file.
24637 * lib/fbufmode.c: Include stdio-impl.h.
24638 (fbufmode): Use fp_, remove redundant #defines.
24639 * lib/fflush.c: Include stdio-impl.h.
24640 (clear_ungetc_buffer): Remove redundant #defines.
24641 * lib/fpurge.c: Include stdio-impl.h.
24642 (fpurge): Remove redundant #defines.
24643 * lib/freadable.c: Include stdio-impl.h.
24644 (freadable): Remove redundant #defines.
24645 * lib/freadahead.c: Include stdio-impl.h.
24646 (freadahead): Remove redundant #defines.
24647 * lib/freading.c: Include stdio-impl.h.
24648 (freading): Remove redundant #defines.
24649 * lib/freadptr.c: Include stdio-impl.h.
24650 (freadptr): Remove redundant #defines.
24651 * lib/freadseek.c: Include stdio-impl.h.
24652 (freadptrinc): Remove redundant #defines.
24653 * lib/fseeko.c: Include stdio-impl.h.
24654 (rpl_fseeko): Remove redundant #defines.
24655 * lib/fseterr.c: Include stdio-impl.h.
24656 (fseterr): Remove redundant #defines.
24657 * lib/fwritable.c: Include stdio-impl.h.
24658 (fwritable: Remove redundant #defines.
24659 * lib/fwriting.c: Include stdio-impl.h.
24660 (fwriting): Remove redundant #defines.
24661 * modules/fbufmode (Files): Add lib/stdio-impl.h.
24662 * modules/fflush (Files): Likewise.
24663 * modules/fpurge (Files): Likewise.
24664 * modules/freadable (Files): Likewise.
24665 * modules/freadahead (Files): Likewise.
24666 * modules/freading (Files): Likewise.
24667 * modules/freadptr (Files): Likewise.
24668 * modules/freadseek (Files): Likewise.
24669 * modules/fseeko (Files): Likewise.
24670 * modules/fseterr (Files): Likewise.
24671 * modules/fwritable (Files): Likewise.
24672 * modules/fwriting (Files): Likewise.
24674 2008-04-26 Bruno Haible <bruno@clisp.org>
24676 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24677 restore_seek_optimization, update_fpos_cache): New functions, extracted
24679 (rpl_fflush): Use them.
24680 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24681 (gl_REPLACE_FFLUSH): Use it.
24683 2008-04-26 Bruno Haible <bruno@clisp.org>
24685 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24687 * tests/test-xstrtoimax.sh: Likewise.
24688 * tests/test-xstrtoumax.sh: Likewise.
24689 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24691 2008-04-26 Bruno Haible <bruno@clisp.org>
24693 * modules/memchr-tests: New file.
24694 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24696 2008-04-26 Eric Blake <ebb9@byu.net>
24697 Bruno Haible <bruno@clisp.org>
24699 * lib/memchr.c: Include intprops.h.
24700 (__memchr): Optimize parallel detection of matching bytes. Rename local
24701 variables. Add explanatory comments.
24703 2008-04-26 Bruno Haible <bruno@clisp.org>
24705 Fix module 'memchr', broken since 2000-10-28.
24706 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24708 2008-04-26 Bruno Haible <bruno@clisp.org>
24710 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24713 2008-04-25 Eric Blake <ebb9@byu.net>
24715 Use native fstatat on cygwin 1.7.0.
24716 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24719 2008-04-23 Eric Blake <ebb9@byu.net>
24721 Improve memchr2 performance.
24722 * lib/memchr2.c (memchr2): Further optimize parallel detection of
24724 * modules/memchr2 (Depends-on): Use intprops.h.
24726 2008-04-23 Simon Josefsson <simon@josefsson.org>
24728 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24729 an inline function instead of a CPP macro. Patch by Ben Pfaff
24730 <blp@cs.stanford.edu>.
24732 2008-04-23 Simon Josefsson <simon@josefsson.org>
24734 * lib/arpa_inet.in.h: New file.
24736 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24737 (Makefile.am): Sed in substitute header file.
24739 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24740 gl_ARPA_INET_MODULE_INDICATOR. Use them.
24742 * modules/inet_ntop (configure.ac): Use
24743 gl_ARPA_INET_MODULE_INDICATOR.
24745 * modules/inet_pton (configure.ac): Use
24746 gl_ARPA_INET_MODULE_INDICATOR.
24748 2008-04-22 Jim Meyering <meyering@redhat.com>
24750 * modules/verify (License): Re-license as LGPLv2+.
24752 2008-04-22 Simon Josefsson <simon@josefsson.org>
24754 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24755 parameter to void* as per POSIX standard (MinGW uses char*).
24757 2008-04-21 Bruno Haible <bruno@clisp.org>
24759 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24760 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24761 Define to replacements if REPLACE_ISWCNTRL is 1.
24762 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24763 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24764 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24765 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24767 * doc/posix-functions/iswalpha.texi: Likewise.
24768 * doc/posix-functions/iswblank.texi: Likewise.
24769 * doc/posix-functions/iswcntrl.texi: Likewise.
24770 * doc/posix-functions/iswdigit.texi: Likewise.
24771 * doc/posix-functions/iswgraph.texi: Likewise.
24772 * doc/posix-functions/iswlower.texi: Likewise.
24773 * doc/posix-functions/iswprint.texi: Likewise.
24774 * doc/posix-functions/iswpunct.texi: Likewise.
24775 * doc/posix-functions/iswspace.texi: Likewise.
24776 * doc/posix-functions/iswupper.texi: Likewise.
24777 * doc/posix-functions/iswxdigit.texi: Likewise.
24778 Reported by Alain Guibert.
24780 2008-04-21 Bruno Haible <bruno@clisp.org>
24782 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24783 Patch by Alain Guibert.
24785 2008-04-21 Bruno Haible <bruno@clisp.org>
24787 Fix test failures on mingw.
24788 * tests/test-xstrtol.c (print_no_progname): New function.
24789 (main): Install it in error_print_progname hook.
24790 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24791 * tests/test-xstrtoimax.sh: Likewise.
24792 * tests/test-xstrtoumax.sh: Likewise.
24794 2008-04-21 Bruno Haible <bruno@clisp.org>
24796 Fix test failure on mingw.
24797 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24799 2008-04-21 Bruno Haible <bruno@clisp.org>
24801 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24802 Actually assign a value.
24804 2008-04-20 Bruno Haible <bruno@clisp.org>
24806 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24808 * lib/canonicalize.c (canonicalize_file_name): Elide if the
24809 'canonicalize-lgpl' module is also used.
24810 * lib/canonicalize-lgpl.c: Undo last change.
24811 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24813 2008-04-20 Bruno Haible <bruno@clisp.org>
24815 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24816 config.h. Provide _mkdir based fallback for mingw.
24817 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24818 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24819 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24820 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24821 rather than defining mkdir in config.h.
24822 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24823 (gl_SYS_STAT_H_DEFAULTS): New macro.
24824 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24825 HAVE_IO_H any more.
24826 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24827 HAVE_DECL_MKDIR and HAVE_IO_H.
24829 2008-04-20 Bruno Haible <bruno@clisp.org>
24831 * lib/isapipe.c: Port to native Windows platforms.
24833 2008-04-20 Bruno Haible <bruno@clisp.org>
24835 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24837 2008-04-21 Eric Blake <ebb9@byu.net>
24839 Work around preprocessors that don't handle UINTMAX_MAX.
24840 * lib/memchr2.c (memchr2): Avoid embedded #if.
24841 Reported by Alain Guibert, fix suggested by Bruno Haible.
24843 2008-04-21 Simon Josefsson <simon@josefsson.org>
24845 * doc/posix-functions/strftime.texi (strftime): Explain better
24846 Windows incompatibility. Suggested by Micah Cowan
24847 <micah@cowan.name>.
24849 2008-04-20 Bruno Haible <bruno@clisp.org>
24851 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24854 2008-04-20 Bruno Haible <bruno@clisp.org>
24856 Fix test failure on platforms with non-GNU iconv.
24857 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24858 (U_TO_U8): Use it, rather than u16_to_u8.
24859 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24860 units at the end of the input string.
24861 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24863 2008-04-20 Bruno Haible <bruno@clisp.org>
24865 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24866 when the resulting length is 0.
24867 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24869 2008-04-20 Bruno Haible <bruno@clisp.org>
24871 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24873 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24875 2008-04-20 Bruno Haible <bruno@clisp.org>
24877 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24878 * modules/tsearch-tests (configure.ac): Test for initstate function.
24880 2008-04-20 Bruno Haible <bruno@clisp.org>
24882 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24883 for nlink_t if missing.
24884 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24886 2008-04-19 Bruno Haible <bruno@clisp.org>
24888 Work around snprintf bug on Linux libc5.
24889 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24890 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24892 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24893 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24895 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24896 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24897 * modules/snprintf (Files): Add m4/printf.m4.
24898 * modules/vsnprintf (Files): Likewise.
24899 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24900 * doc/posix-functions/vsnprintf.texi: Likewise.
24902 2008-04-19 Bruno Haible <bruno@clisp.org>
24904 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24905 from 0.0058 to less than 10^-7.
24907 2008-04-19 Bruno Haible <bruno@clisp.org>
24909 Fix rounding when a precision is given.
24910 * lib/vasnprintf.c (is_borderline): New function.
24911 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24913 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24915 * tests/test-vasprintf-posix.c (test_function): Likewise.
24916 * tests/test-snprintf-posix.h (test_function): Likewise.
24917 * tests/test-sprintf-posix.h (test_function): Likewise.
24918 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24919 * tests/test-printf-posix.h (test_function): Likewise.
24920 * tests/test-printf-posix.output: Update.
24921 Reported by John Darrington <john@darrington.wattle.id.au> via
24922 Ben Pfaff <blp@cs.stanford.edu>.
24924 2008-04-18 Simon Josefsson <simon@josefsson.org>
24926 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24927 Suggested by Bruno Haible <bruno@clisp.org>.
24929 2008-04-17 Bruno Haible <bruno@clisp.org>
24931 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24932 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24934 Patch by Bruce Merry <bmerry@gmail.com>.
24936 2008-04-17 Simon Josefsson <simon@josefsson.org>
24938 * doc/posix-functions/strftime.texi (strftime): Mention that %e
24939 doesn't work under Windows.
24941 2008-04-16 Bruno Haible <bruno@clisp.org>
24943 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24945 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24946 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24947 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24948 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24949 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24950 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24951 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24953 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24954 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24955 Northern Sotho, Uighur.
24957 2008-04-16 Bruno Haible <bruno@clisp.org>
24959 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24960 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24961 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24962 Reported by Daniel Bergström <daniel@octocode.com>.
24964 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
24965 Bruno Haible <bruno@clisp.org>
24967 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24969 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24970 New functions, mostly extracted from gl_locale_name_default.
24971 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24973 2008-04-16 Eric Blake <ebb9@byu.net>
24975 Adjust strtod detection to catch glibc 2.7 bug.
24976 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24977 Reported by John Gatewood Ham.
24979 2008-04-16 Bruno Haible <bruno@clisp.org>
24981 Add tentative support for Linux libc5.
24982 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24983 * lib/fpurge.c (fpurge): Likewise.
24984 * lib/freadable.c (freadable): Likewise.
24985 * lib/freadahead.c (freadahead): Likewise.
24986 * lib/freading.c (freading): Likewise.
24987 * lib/freadptr.c (freadptr): Likewise.
24988 * lib/freadseek.c (freadptrinc): Likewise.
24989 * lib/fseeko.c (rpl_fseeko): Likewise.
24990 * lib/fseterr.c (fseterr): Likewise.
24991 * lib/fwritable.c (fwritable): Likewise.
24992 * lib/fwriting.c (fwriting): Likewise.
24993 Reported by Alain Guibert <alguibert+bts@free.fr>.
24995 2008-04-15 Bruno Haible <bruno@clisp.org>
24997 * modules/mathl (configure.ac): Define module indicator.
24999 2008-04-15 Bruno Haible <bruno@clisp.org>
25001 * lib/logl.c (logl): Remove unused variables.
25003 2008-04-15 Bruno Haible <bruno@clisp.org>
25005 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25008 2008-04-15 Bruno Haible <bruno@clisp.org>
25010 * lib/trim.c (trim2): Fix argument of isspace() macro.
25012 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
25014 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25016 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25018 2008-04-14 Bruno Haible <bruno@clisp.org>
25020 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25021 AC_LANG_PROGRAM argument.
25022 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25023 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25024 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25025 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25026 * m4/math_h.m4 (gl_MATH_H): Likewise.
25027 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25028 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25029 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25030 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25031 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25032 * m4/regex.m4 (gl_REGEX): Likewise.
25033 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25034 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25035 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25036 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25037 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25038 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25039 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25040 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25042 2008-04-14 Jim Meyering <meyering@redhat.com>
25044 test-strtod: fix typos: s/abs/fabs/
25045 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25047 2008-04-13 Bruno Haible <bruno@clisp.org>
25049 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25050 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25051 module is also used and while not building the reloc-wrapper.
25053 2008-04-13 Bruno Haible <bruno@clisp.org>
25055 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25057 2008-04-13 Bruno Haible <bruno@clisp.org>
25059 Fix AIX compilation failure introduced on 2008-04-02.
25060 * tests/test-frexp.c (exp): Undefine before redefining.
25061 * tests/test-frexpl.c (exp): Likewise.
25063 2008-04-13 Bruno Haible <bruno@clisp.org>
25065 Work around a HP-UX stdio bug.
25066 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25067 * tests/test-ftello.c (main): Likewise.
25068 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25069 * doc/posix-functions/ftello.texi: Likewise.
25071 2008-04-13 Bruno Haible <bruno@clisp.org>
25073 Make test-signbit pass on HP-UX/hppa.
25074 * tests/test-signbit.c (minus_zerol): New variable.
25075 (test_signbitl): Use it.
25077 2008-04-13 Bruno Haible <bruno@clisp.org>
25079 Make truncl work on OSF/1 4.0.
25080 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25081 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25082 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25083 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25085 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25087 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25089 2008-04-13 Bruno Haible <bruno@clisp.org>
25091 * lib/unictype.h: Remove trailing comma from enumeration definitions.
25093 2008-04-13 Bruno Haible <bruno@clisp.org>
25095 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25096 expression, so as to avoid HP-UX 11 cc compiler bug.
25098 2008-04-13 Bruno Haible <bruno@clisp.org>
25100 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25102 2008-04-13 Bruno Haible <bruno@clisp.org>
25104 * lib/git-merge-changelog.c: Remove empty declaration outside of
25107 2008-04-13 Bruno Haible <bruno@clisp.org>
25109 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25111 2008-04-13 Bruno Haible <bruno@clisp.org>
25113 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25114 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25115 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25116 also if it exists but lacks definitions of the SHUT_* macros.
25117 * modules/sys_socket (Description): Update.
25118 Reported by Elbert Pol <e.pol@chello.nl>.
25120 2008-04-13 Bruno Haible <bruno@clisp.org>
25122 * lib/localcharset.c (OS2): Don't redefine if already defined.
25123 Reported by Elbert Pol <e.pol@chello.nl>.
25125 2008-04-13 Bruno Haible <bruno@clisp.org>
25127 * lib/binary-io.h [__EMX__]: Include <io.h>.
25128 Reported by Elbert Pol <e.pol@chello.nl>.
25130 2008-04-12 Bruno Haible <bruno@clisp.org>
25132 * lib/fpucw.h: Enable the definitions also for x86_64.
25133 Needed for NetBSD/x86_64.
25134 Reported by Thomas Klausner <tk@giga.or.at>.
25136 2008-04-12 Bruno Haible <bruno@clisp.org>
25138 * tests/test-strtod.c: Include isnand.h.
25139 (main): Use isnand instead of isnan.
25140 Reported by Jim Meyering.
25142 2008-04-12 Bruno Haible <bruno@clisp.org>
25144 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25145 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25147 2008-04-12 Jim Meyering <meyering@redhat.com>
25149 * m4/math_h.m4 (gl_MATH_H): Fix typos.
25151 2008-04-12 Bruno Haible <bruno@clisp.org>
25153 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25154 Reported by Elbert Pol <e.pol@chello.nl>.
25156 2008-04-12 Eric Blake <ebb9@byu.net>
25158 Work around Solaris 10 math.h bug.
25159 * m4/math_h.m4 (gl_MATH_H): Check for bug.
25160 (gl_MATH_H_DEFAULTS): Set up default.
25161 * modules/math (Makefile.am): Replace new indicators.
25162 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25163 * tests/test-math.c (main): Test this.
25164 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25165 * doc/posix-headers/math.texi (math.h): Mention bug.
25166 Reported by Nelson H. F. Beebe and Jim Meyering.
25168 2008-04-11 Bruno Haible <bruno@clisp.org>
25170 Adapt to future versions of Apple GCC.
25171 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25172 Reported by Peter O'Gorman <peter@pogma.com>.
25174 2008-04-11 Bruno Haible <bruno@clisp.org>
25176 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25178 2008-04-11 Bruno Haible <bruno@clisp.org>
25180 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25182 * modules/getaddrinfo-tests (Makefile.am): Define
25183 test_getaddrinfo_LDADD.
25185 2008-04-11 Bruno Haible <bruno@clisp.org>
25187 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25188 (init): Fix syntax error.
25189 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25192 2008-04-11 Bruno Haible <bruno@clisp.org>
25194 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25195 * modules/glob (Depends-on): Add stdbool.
25197 2008-04-11 Bruno Haible <bruno@clisp.org>
25199 * lib/trim.c: Include <string.h>.
25201 2008-04-11 Eric Blake <ebb9@byu.net>
25203 Avoid compile failure on OS/2.
25204 * lib/regex_internal.h (internal_function): Disable optimization
25205 on OS/2 (__EMX__), where it caused compiler error.
25206 Reported by Elbert Pol.
25208 2008-04-11 Bruno Haible <bruno@clisp.org>
25210 Flush the standard error stream before aborting. Needed on mingw.
25211 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25212 * tests/test-array_list.c (ASSERT): Likewise.
25213 * tests/test-array_oset.c (ASSERT): Likewise.
25214 * tests/test-avltree_list.c (ASSERT): Likewise.
25215 * tests/test-avltree_oset.c (ASSERT): Likewise.
25216 * tests/test-avltreehash_list.c (ASSERT): Likewise.
25217 * tests/test-binary-io.c (ASSERT): Likewise.
25218 * tests/test-byteswap.c (ASSERT): Likewise.
25219 * tests/test-c-ctype.c (ASSERT): Likewise.
25220 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25221 * tests/test-c-strcasestr.c (ASSERT): Likewise.
25222 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25223 * tests/test-c-strstr.c (ASSERT): Likewise.
25224 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25225 * tests/test-canonicalize.c (ASSERT): Likewise.
25226 * tests/test-carray_list.c (ASSERT): Likewise.
25227 * tests/test-ceilf1.c (ASSERT): Likewise.
25228 * tests/test-ceilf2.c (ASSERT): Likewise.
25229 * tests/test-ceill.c (ASSERT): Likewise.
25230 * tests/test-count-one-bits.c (ASSERT): Likewise.
25231 * tests/test-fbufmode.c (ASSERT): Likewise.
25232 * tests/test-fflush2.c (ASSERT): Likewise.
25233 * tests/test-floorf1.c (ASSERT): Likewise.
25234 * tests/test-floorf2.c (ASSERT): Likewise.
25235 * tests/test-floorl.c (ASSERT): Likewise.
25236 * tests/test-fopen.c (ASSERT): Likewise.
25237 * tests/test-fpending.c (ASSERT): Likewise.
25238 * tests/test-fprintf-posix.c (ASSERT): Likewise.
25239 * tests/test-fpurge.c (ASSERT): Likewise.
25240 * tests/test-freadable.c (ASSERT): Likewise.
25241 * tests/test-freadahead.c (ASSERT): Likewise.
25242 * tests/test-freading.c (ASSERT): Likewise.
25243 * tests/test-freadptr.c (ASSERT): Likewise.
25244 * tests/test-freadptr2.c (ASSERT): Likewise.
25245 * tests/test-freadseek.c (ASSERT): Likewise.
25246 * tests/test-freopen.c (ASSERT): Likewise.
25247 * tests/test-frexp.c (ASSERT): Likewise.
25248 * tests/test-frexpl.c (ASSERT): Likewise.
25249 * tests/test-fseek.c (ASSERT): Likewise.
25250 * tests/test-fseeko.c (ASSERT): Likewise.
25251 * tests/test-fstrcmp.c (ASSERT): Likewise.
25252 * tests/test-ftell.c (ASSERT): Likewise.
25253 * tests/test-ftello.c (ASSERT): Likewise.
25254 * tests/test-func.c (ASSERT): Likewise.
25255 * tests/test-fwritable.c (ASSERT): Likewise.
25256 * tests/test-fwriting.c (ASSERT): Likewise.
25257 * tests/test-getdelim.c (ASSERT): Likewise.
25258 * tests/test-getline.c (ASSERT): Likewise.
25259 * tests/test-i-ring.c (ASSERT): Likewise.
25260 * tests/test-iconv-utf.c (ASSERT): Likewise.
25261 * tests/test-iconv.c (ASSERT): Likewise.
25262 * tests/test-isfinite.c (ASSERT): Likewise.
25263 * tests/test-isnand.c (ASSERT): Likewise.
25264 * tests/test-isnanf.c (ASSERT): Likewise.
25265 * tests/test-isnanl.h (ASSERT): Likewise.
25266 * tests/test-ldexpl.c (ASSERT): Likewise.
25267 * tests/test-linked_list.c (ASSERT): Likewise.
25268 * tests/test-linkedhash_list.c (ASSERT): Likewise.
25269 * tests/test-localename.c (ASSERT): Likewise.
25270 * tests/test-lseek.c (ASSERT): Likewise.
25271 * tests/test-mbscasecmp.c (ASSERT): Likewise.
25272 * tests/test-mbscasestr1.c (ASSERT): Likewise.
25273 * tests/test-mbscasestr2.c (ASSERT): Likewise.
25274 * tests/test-mbscasestr3.c (ASSERT): Likewise.
25275 * tests/test-mbscasestr4.c (ASSERT): Likewise.
25276 * tests/test-mbschr.c (ASSERT): Likewise.
25277 * tests/test-mbscspn.c (ASSERT): Likewise.
25278 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25279 * tests/test-mbspbrk.c (ASSERT): Likewise.
25280 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25281 * tests/test-mbsrchr.c (ASSERT): Likewise.
25282 * tests/test-mbsspn.c (ASSERT): Likewise.
25283 * tests/test-mbsstr1.c (ASSERT): Likewise.
25284 * tests/test-mbsstr2.c (ASSERT): Likewise.
25285 * tests/test-mbsstr3.c (ASSERT): Likewise.
25286 * tests/test-memchr2.c (ASSERT): Likewise.
25287 * tests/test-memmem.c (ASSERT): Likewise.
25288 * tests/test-open.c (ASSERT): Likewise.
25289 * tests/test-printf-frexp.c (ASSERT): Likewise.
25290 * tests/test-printf-frexpl.c (ASSERT): Likewise.
25291 * tests/test-printf-posix.c (ASSERT): Likewise.
25292 * tests/test-quotearg.c (ASSERT): Likewise.
25293 * tests/test-rbtree_list.c (ASSERT): Likewise.
25294 * tests/test-rbtree_oset.c (ASSERT): Likewise.
25295 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25296 * tests/test-round1.c (ASSERT): Likewise.
25297 * tests/test-roundf1.c (ASSERT): Likewise.
25298 * tests/test-roundl.c (ASSERT): Likewise.
25299 * tests/test-signbit.c (ASSERT): Likewise.
25300 * tests/test-sleep.c (ASSERT): Likewise.
25301 * tests/test-snprintf-posix.c (ASSERT): Likewise.
25302 * tests/test-snprintf.c (ASSERT): Likewise.
25303 * tests/test-sprintf-posix.c (ASSERT): Likewise.
25304 * tests/test-stat-time.c (ASSERT): Likewise.
25305 * tests/test-strcasestr.c (ASSERT): Likewise.
25306 * tests/test-strerror.c (ASSERT): Likewise.
25307 * tests/test-striconv.c (ASSERT): Likewise.
25308 * tests/test-striconveh.c (ASSERT): Likewise.
25309 * tests/test-striconveha.c (ASSERT): Likewise.
25310 * tests/test-strsignal.c (ASSERT): Likewise.
25311 * tests/test-strstr.c (ASSERT): Likewise.
25312 * tests/test-strtod.c (ASSERT): Likewise.
25313 * tests/test-trunc1.c (ASSERT): Likewise.
25314 * tests/test-trunc2.c (ASSERT): Likewise.
25315 * tests/test-truncf1.c (ASSERT): Likewise.
25316 * tests/test-truncf2.c (ASSERT): Likewise.
25317 * tests/test-truncl.c (ASSERT): Likewise.
25318 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25319 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25320 * tests/test-vasnprintf.c (ASSERT): Likewise.
25321 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25322 * tests/test-vasprintf.c (ASSERT): Likewise.
25323 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25324 * tests/test-vprintf-posix.c (ASSERT): Likewise.
25325 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25326 * tests/test-vsnprintf.c (ASSERT): Likewise.
25327 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25328 * tests/test-wcwidth.c (ASSERT): Likewise.
25329 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25330 * tests/test-xprintf-posix.c (ASSERT): Likewise.
25331 * tests/test-xvasprintf.c (ASSERT): Likewise.
25332 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25333 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25334 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25335 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25336 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25337 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25338 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25339 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25340 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25341 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25342 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25343 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25344 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25345 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25346 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25347 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25348 * tests/unictype/test-block_list.c (ASSERT): Likewise.
25349 * tests/unictype/test-block_of.c (ASSERT): Likewise.
25350 * tests/unictype/test-block_test.c (ASSERT): Likewise.
25351 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25352 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25353 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25354 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25355 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25356 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25357 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25358 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25359 * tests/unictype/test-combining.c (ASSERT): Likewise.
25360 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25361 * tests/unictype/test-digit.c (ASSERT): Likewise.
25362 * tests/unictype/test-mirror.c (ASSERT): Likewise.
25363 * tests/unictype/test-numeric.c (ASSERT): Likewise.
25364 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25365 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25366 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25367 * tests/unictype/test-scripts.c (ASSERT): Likewise.
25368 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25369 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25370 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25371 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25372 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25373 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25374 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25375 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25376 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25377 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25378 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25379 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25380 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25381 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25382 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25383 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25384 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25385 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25386 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25387 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25388 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25389 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25390 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25391 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25392 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25393 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25394 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25395 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25396 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25397 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25398 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25399 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25400 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25401 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25402 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25403 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25404 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25405 Reported by Eric Blake.
25407 2008-04-11 Bruno Haible <bruno@clisp.org>
25409 * lib/wchar.in.h: Tweak comment.
25411 2008-04-11 Bruno Haible <bruno@clisp.org>
25413 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25414 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25416 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25418 2008-04-11 Bruno Haible <bruno@clisp.org>
25420 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25422 2008-04-11 Simon Josefsson <simon@josefsson.org>
25424 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25425 of attempting to use non-existing /dev/*random. Based on patch
25426 from Adam Strzelecki <ono@java.pl> in
25427 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25429 2008-04-08 Bruno Haible <bruno@clisp.org>
25431 Add tentative support for emx+gcc.
25432 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25433 * lib/fpurge.c (fpurge): Likewise.
25434 * lib/freadable.c (freadable): Likewise.
25435 * lib/freadahead.c (freadahead): Likewise.
25436 * lib/freading.c (freading): Likewise.
25437 * lib/freadptr.c (freadptr): Likewise.
25438 * lib/freadseek.c (freadptrinc): Likewise.
25439 * lib/fseeko.c (rpl_fseeko): Likewise.
25440 * lib/fseterr.c (fseterr): Likewise.
25441 * lib/fwritable.c (fwritable): Likewise.
25442 * lib/fwriting.c (fwriting): Likewise.
25443 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25445 2008-04-09 Eric Blake <ebb9@byu.net>
25447 Avoid some autoconf warnings.
25448 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25449 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25450 * m4/afs.m4 (gl_AFS): Likewise.
25451 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25452 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25453 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25454 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25455 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25456 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25457 (AC_CHECK_DECLS_ONCE): Likewise.
25459 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25460 gnulib-tool requires autoconf 2.59 or better.
25461 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25463 2008-04-08 Eric Blake <ebb9@byu.net>
25465 Use 'git describe --match' if present (added in git 1.5.5).
25466 * build-aux/git-version-gen: Limit result to tags that match 'v*'
25469 2008-04-08 Bruno Haible <bruno@clisp.org>
25471 Add tentative support for OpenServer.
25472 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25474 * lib/fpurge.c (fpurge): Likewise.
25475 * lib/freadable.c (freadable): Likewise.
25476 * lib/freadahead.c (freadahead): Likewise.
25477 * lib/freading.c (freading): Likewise.
25478 * lib/freadptr.c (freadptr): Likewise.
25479 * lib/freadseek.c (freadptrinc): Likewise.
25480 * lib/fseeko.c (rpl_fseeko): Likewise.
25481 * lib/fseterr.c (fseterr): Likewise.
25482 * lib/fwritable.c (fwritable): Likewise.
25483 * lib/fwriting.c (fwriting): Likewise.
25484 Reported by Roger Cornelius <rac@tenzing.org> and
25485 Brian K. White <brian@aljex.com>.
25487 2008-04-06 Jim Meyering <meyering@redhat.com>
25489 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25491 2008-04-06 Bruno Haible <bruno@clisp.org>
25493 Avoid possible error with non-ASCII bytes in UTF-8 locales.
25494 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25495 * tests/test-printf-posix.sh: Likewise.
25496 * tests/test-vfprintf-posix.sh: Likewise.
25497 * tests/test-vprintf-posix.sh: Likewise.
25498 * tests/test-xprintf-posix.sh: Likewise.
25500 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25502 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25503 hide error from 'ls', needed on OS/2.
25504 Report by Elbert Pol <elbert.pol@gmail.com>.
25506 2008-04-04 Eric Blake <ebb9@byu.net>
25508 Make test-fseeko.c failures meaningful.
25509 * tests/test-fseeko.c: Print line number on failure.
25510 * tests/test-fseek.c: Likewise.
25511 Reported by Nelson H. F. Beebe.
25513 Improve strtod bug detection check.
25514 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25515 required for Solaris 10.
25516 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25518 2008-04-04 Bruno Haible <bruno@clisp.org>
25520 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25523 2008-04-03 Eric Blake <ebb9@byu.net>
25525 Ensure sane .version contents.
25526 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25528 * build-aux/git-version-gen: Improve documentation.
25530 Make GNU make output nicer.
25531 * top/GNUmakefile [!_have-Makefile]: Add dependency on
25532 MAKECMDGOALS to enforce message for all command line targets. Set
25533 srcdir for use in maint.mk.
25535 Another maintainer tweak.
25536 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25537 a target that regenerates version.
25539 2008-04-03 Jim Meyering <meyering@redhat.com>
25541 vc-list-files: don't cause coreutils "make po-check" failure
25542 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25544 2008-04-03 Eric Blake <ebb9@byu.net>
25546 Allow VPATH usage of vc-list-files.
25547 * build-aux/vc-list-files (scriptversion): Add timestamp.
25548 (options): Add --help, --version, -C.
25549 (CVS): Support installed cvsu.
25551 2008-04-02 Bruno Haible <bruno@clisp.org>
25553 Avoid some "statement with no effect" warnings from gcc.
25554 * tests/test-wctype.c (main): Explicitly ignore unused values.
25555 Reported by Jim Meyering.
25557 2008-04-02 Jim Meyering <meyering@redhat.com>
25559 Avoid some warnings from "gcc -Wshadow".
25560 * tests/test-frexp.c (exp): Define to a different identifier.
25561 * tests/test-frexpl.c (exp): Likewise.
25563 2008-04-03 Jim Meyering <meyering@redhat.com>
25565 bootstrap: remove dangling *.[ch] symlinks from lib
25566 * build-aux/bootstrap [dangling symlink removal]: Move find's
25567 -depth option to precede all others, to avoid a warning.
25568 Remove *.[ch] files too, and from "$source_base" (usually lib/).
25570 2008-04-02 Bruno Haible <bruno@clisp.org>
25572 Avoid some warnings from "gcc -Wshadow".
25573 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25574 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25575 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25576 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25577 Reported by Jim Meyering.
25579 2008-04-01 Bruno Haible <bruno@clisp.org>
25581 Fix test to work on IRIX 6.5 with cc.
25582 * tests/test-math.c (numeric_equal): New function.
25585 2008-04-01 Bruno Haible <bruno@clisp.org>
25587 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25589 2008-04-01 Bruno Haible <bruno@clisp.org>
25591 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25592 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25593 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25594 (Depends-on): Remove math.
25596 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25597 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25598 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25599 (Depends-on): Remove math.
25601 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25602 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25603 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25604 (Depends-on): Remove math.
25605 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25606 (Depends-on): Remove math.
25608 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25609 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25610 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25611 (Depends-on): Remove math.
25612 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25613 (Depends-on): Remove math.
25615 * tests/test-round1.c: Include nan.h.
25616 (main): Use NaNd instead of NAN.
25617 * modules/round-tests (Files): Add tests/nan.h.
25619 * tests/test-trunc1.c: Include nan.h.
25620 (main): Use NaNd instead of NAN.
25621 * modules/trunc-tests (Files): Add tests/nan.h.
25623 * tests/test-roundf1.c: Include nan.h.
25624 (main): Use NaNf instead of NAN.
25625 * modules/roundf-tests (Files): Add tests/nan.h.
25627 * tests/test-truncf1.c: Include nan.h.
25628 (main): Use NaNf instead of NAN.
25629 * modules/truncf-tests (Files): Add tests/nan.h.
25631 * tests/test-ceilf1.c: Include nan.h.
25632 (main): Use NaNf instead of NAN.
25633 * modules/ceilf-tests (Files): Add tests/nan.h.
25635 * tests/test-floorf1.c: Include nan.h.
25636 (main): Use NaNf instead of NAN.
25637 * modules/floorf-tests (Files): Add tests/nan.h.
25639 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25640 (main): Use NaNf instead of NAN.
25641 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25643 * tests/test-isnand.c: Include nan.h instead of <math.h>.
25644 (main): Use NaNd instead of NAN.
25645 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25647 * tests/test-frexp.c: Include nan.h.
25648 (main): Use NaNd instead of NAN.
25649 * modules/frexp-tests (Files): Add tests/nan.h.
25651 * lib/isnan.c: Don't include <math.h>.
25652 (FUNC): Don't use NAN macro.
25653 * modules/isnand-nolibm (Depends-on): Remove math.
25654 * modules/isnanf-nolibm (Depends-on): Remove math.
25655 * modules/isnanl (Depends-on): Remove math.
25656 * modules/isnanl-nolibm (Depends-on): Remove math.
25658 * tests/nan.h: New file.
25660 2008-04-01 Eric Blake <ebb9@byu.net>
25663 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25664 values to be the right type.
25666 For now, cater to gnulib strtod inaccuracies.
25667 * tests/test-strtod.c (main): Allow 1-ulp error on expected
25668 fractional results. While not as nice from a QoI perspective, it
25669 is a quicker patch than correctly implementing decimal to binary
25672 2008-03-31 Eric Blake <ebb9@byu.net>
25674 Guarantee a definition of NAN.
25675 * lib/math.in.h (NAN): Define if missing.
25676 * tests/test-math.c (main): Test it.
25677 * doc/posix-headers/math.texi (math.h): Document this.
25678 * lib/isnan.c (rpl_isnand): Use it.
25679 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25680 * tests/test-floorf1.c (NaN): Likewise.
25681 * tests/test-frexp.c (NaN): Likewise.
25682 * tests/test-isnand.c (NaN): Likewise.
25683 * tests/test-isnanf.c (NaN): Likewise.
25684 * tests/test-round1.c (NaN): Likewise.
25685 * tests/test-roundf1.c (NaN): Likewise.
25686 * tests/test-snprintf-posix.h (NaN): Likewise.
25687 * tests/test-sprintf-posix.h (NaN): Likewise.
25688 * tests/test-trunc1.c (NaN): Likewise.
25689 * tests/test-truncf1.c (NaN): Likewise.
25690 * tests/test-vasnprintf-posix.c (NaN): Likewise.
25691 * tests/test-vasprintf-posix.c (NaN): Likewise.
25692 * modules/isnand-nolibm (Depends-on): Add math.
25693 * modules/isnanf-nolibm (Depends-on): Likewise.
25694 * modules/isnanl (Depends-on): Likewise.
25695 * modules/isnanl-nolibm (Depends-on): Likewise.
25696 * modules/snprintf-posix-tests (Depends-on): Likewise.
25697 * modules/sprintf-posix-tests (Depends-on): Likewise.
25698 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25699 * modules/vsprintf-posix-tests (Depends-on): Likewise.
25700 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25701 * modules/vasprintf-posix-tests (Depends-on): Likewise.
25703 2008-03-31 Bruno Haible <bruno@clisp.org>
25705 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25706 * doc/posix-functions/strtod.texi: Likewise.
25708 2008-03-31 Bruno Haible <bruno@clisp.org>
25710 * tests/test-strtod.c (main): Don't use C99 syntax.
25712 2008-03-31 Bruno Haible <bruno@clisp.org>
25714 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25715 Reported by Eric Blake.
25717 2008-03-31 Jim Meyering <meyering@redhat.com>
25719 Don't compare actual signbit return values.
25720 * tests/test-strtod.c (main): Rather, compare only their
25721 zero/non-zero nature.
25723 2008-03-31 Eric Blake <ebb9@byu.net>
25725 More strtod documentation.
25726 * doc/posix-functions/strtod.texi (strtod): Interpret more test
25727 failures as distinct bugs.
25729 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
25731 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25732 Problem reported by Erik Benada in
25733 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25735 2008-03-30 Bruno Haible <bruno@clisp.org>
25737 * tests/test-strtod.c: Add comments about which assertion fails on which
25739 * doc/posix-functions/strtod.texi: Add info about many more platforms.
25741 2008-03-30 Eric Blake <ebb9@byu.net>
25743 Test signbit behavior on zeros.
25744 * tests/test-signbit.c (test_signbitf): Add tests for zero.
25745 (test_signbitd, test_signbitl): Likewise.
25747 More strtod touchups.
25748 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25749 sign of negative underflow, for now. Use .5, not .1.
25750 * doc/posix-functions/strtod.texi (strtod): Mention these
25752 Reported by Jim Meyering.
25754 2008-03-30 Bruno Haible <bruno@clisp.org>
25756 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25757 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25759 2008-03-30 Bruno Haible <bruno@clisp.org>
25761 Avoid failure when attempting to return empty iconv results on some
25763 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25764 allocation, don't report ENOMEM when the resulting string is empty.
25766 2008-03-30 Bruno Haible <bruno@clisp.org>
25768 Fix buffer overrun.
25769 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25770 Don't consider the width for tmp_length. Check count against tmp_length
25771 before doing the padding. Ensure enough allocation during padding.
25773 2008-03-30 Eric Blake <ebb9@byu.net>
25776 * lib/strtod.c (strtod): Avoid compiler warnings.
25777 Reported by Jim Meyering.
25779 2008-03-30 Bruno Haible <bruno@clisp.org>
25781 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25782 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25783 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25784 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25785 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25786 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25787 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25788 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25790 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25791 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25792 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25793 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25794 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25795 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25796 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25797 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25799 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25800 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25801 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25802 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25803 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25804 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25805 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25806 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25808 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25809 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25811 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25812 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25814 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25815 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25817 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25818 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25819 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25821 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25822 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25823 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25825 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25826 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25827 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25829 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25830 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25831 * modules/vasprintf (Depends-on): Add EOVERFLOW.
25833 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25834 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25835 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25836 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25837 (Depends-on): Add EOVERFLOW.
25838 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25839 (Depends-on): Add EOVERFLOW.
25840 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25841 (Depends-on): Add EOVERFLOW.
25842 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25843 (Depends-on): Add EOVERFLOW.
25844 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25845 (Depends-on): Add EOVERFLOW.
25846 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25847 (Depends-on): Add EOVERFLOW.
25848 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25849 (Depends-on): Add EOVERFLOW.
25850 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25851 (Depends-on): Add EOVERFLOW.
25853 * lib/sprintf.c (EOVERFLOW): Remove fallback.
25854 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25855 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25857 * lib/snprintf.c (EOVERFLOW): Remove fallback.
25858 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25859 * modules/snprintf (Depends-on): Add EOVERFLOW.
25861 * lib/poll.c (EOVERFLOW): Remove fallback.
25862 * modules/poll (Depends-on): Add EOVERFLOW.
25864 * lib/getugroups.c (EOVERFLOW): Remove fallback.
25865 * modules/getugroups (Depends-on): Add EOVERFLOW.
25867 * lib/getdelim.c (EOVERFLOW): Remove fallback.
25868 * modules/getdelim (Depends-on): Add EOVERFLOW.
25870 * lib/ftell.c (EOVERFLOW): Remove fallback.
25871 * modules/ftell (Depends-on): Add EOVERFLOW.
25873 * lib/fprintf.c (EOVERFLOW): Remove fallback.
25874 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25875 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25877 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25879 * modules/EOVERFLOW-tests: New file.
25880 * tests/test-EOVERFLOW.c: New file.
25882 * modules/EOVERFLOW: New file.
25883 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25885 2008-03-30 Bruno Haible <bruno@clisp.org>
25887 Fix bug introduced on 2007-06-10.
25888 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25889 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25891 2008-03-30 Bruno Haible <bruno@clisp.org>
25893 Improve freadseek's efficiency after ungetc.
25894 * lib/freadseek.c: Include freadahead.h.
25895 (freadptrinc): New function, extracted from freadseek.
25896 (freadseek): Use it in a loop. Use freadahead to determine the number
25897 of loop iterations.
25898 * modules/freadseek (Depends-on): Add freadahead.
25899 (configure.ac): Require AC_C_INLINE.
25901 2008-03-30 Bruno Haible <bruno@clisp.org>
25903 * lib/freadseek.c (freadseek): Don't ignore the return value of
25906 2008-03-29 Eric Blake <ebb9@byu.net>
25908 Add hex float support.
25909 * modules/strtod (Depends-on): Add c-ctype.
25910 (Link): Mention POW_LIB.
25911 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
25912 whitespace between 'e' and exponent.
25913 * tests/test-strtod.c (main): Enable hex float tests.
25914 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25917 Document various strtod bugs, with some fixes.
25918 * doc/posix-functions/strtod.texi (strtod): Document bugs with
25919 "-0x", "inf", "nan", and hex constants.
25920 * doc/posix-functions/atof.texi (atof): Likewise.
25921 * modules/stdlib (Makefile.am): Support strtod.
25922 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25923 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25924 detect additional strtod bugs.
25925 * lib/stdlib.in.h (rpl_strtod): Add declarations.
25926 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
25927 bool where appropriate. Parse 'inf' and 'nan'.
25928 * tests/test-strtod.c: New file.
25929 * modules/strtod (Depends-on): Add stdbool, stdlib.
25930 (configure.ac): Turn on module indicator.
25931 * modules/strtod-tests: New module.
25933 2008-03-29 Eric Blake <ebb9@byu.net>
25935 Fix ftell on mingw.
25936 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25937 * modules/ftell-tests (Depends-on): Add binary-io.
25938 * modules/ftello-tests (Depends-on): Likewise.
25939 * tests/test-ftell.c (main): Enhance test to cover behavior after
25940 ungetc. Enforce binary mode.
25941 * tests/test-ftello.c (main): Likewise.
25943 Pass test-freadseek on cygwin.
25944 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25945 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25948 * tests/test-fflush2.c (main): Fix typo.
25950 2008-03-29 Bruno Haible <bruno@clisp.org>
25952 * tests/test-fflush2.c (main): Temporarily disable the contents of
25954 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25955 Reported by Eric Blake.
25957 2008-03-28 Simon Josefsson <simon@josefsson.org>
25959 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25960 (GC_SHA224_DIGEST_SIZE): Add.
25962 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25963 (gc_hash_digest_length): Likewise.
25964 (gc_hash_buffer): Likewise.
25966 2008-03-25 Bruno Haible <bruno@clisp.org>
25968 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25969 detail which gettext release to use.
25970 Reported by Simon Josefsson.
25972 2008-03-26 Jim Meyering <meyering@redhat.com>
25974 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25975 * modules/gnumakefile (clean-GNUmakefile): Also, use
25976 test ... && ... || : syntax rather than if-then ... fi.
25978 gnumakefile: Don't double-quote-expand $(VPATH) value.
25979 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25981 2008-03-24 Eric Blake <ebb9@byu.net>
25983 Alter GNUmakefile to install into top directory.
25984 * modules/maintainer-makefile: Split, and add dependency...
25985 * modules/gnumakefile: to this new module.
25986 * build-aux/GNUmakefile: Move...
25987 * top/GNUmakefile: ...here.
25988 * build-aux/maint.mk: Move...
25989 * top/maint.mk: ...here.
25990 * MODULES.html.sh (Support for maintaining...): Document new
25993 2008-03-23 Bruno Haible <bruno@clisp.org>
25995 * gnulib-tool: New options --vc-files, --no-vc-files.
25996 (func_usage): Document them.
25997 (vc_files): New variable.
25998 (func_import): Consider vc_files.
25999 (func_create_testdir): Set vc_files to empty.
26000 Suggested by Jim Meyering and Karl Berry.
26002 2008-03-23 Bruno Haible <bruno@clisp.org>
26004 Fix regex compilation error on HP-UX 11.
26005 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26006 * modules/regex (Files): Add m4/mbstate_t.m4.
26007 Reported by Ton Voon <ton.voon@altinity.com>.
26009 2008-03-23 Bruno Haible <bruno@clisp.org>
26011 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26013 2008-03-23 Eric Blake <ebb9@byu.net>
26014 Bruno Haible <bruno@clisp.org>
26016 Install files from top/ in the destination directory.
26017 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26018 augmentation also for the files from top/.
26019 (func_import, func_create_testdir): Rewrite file names:
26020 top/filename -> filename.
26022 2008-03-23 Bruno Haible <bruno@clisp.org>
26024 Tweak "gnulib --version" output.
26025 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26027 2008-03-23 Bruno Haible <bruno@clisp.org>
26029 Tweak "gnulib --version" output.
26030 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26031 rather than contents of ChangeLog, when possible.
26033 2008-03-21 Eric Blake <ebb9@byu.net>
26035 More --version tweaks.
26036 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
26037 date of last ChangeLog entry.
26039 2008-03-21 Jim Meyering <meyering@redhat.com>
26041 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26043 2008-03-20 Eric Blake <ebb9@byu.net>
26046 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26048 2008-03-20 Simon Josefsson <simon@josefsson.org>
26050 * build-aux/GNUmakefile: Make git-version-gen optional. Add
26051 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
26053 2008-03-20 Eric Blake <ebb9@byu.net>
26055 Sync GNUmakefile with coreutils.
26056 * build-aux/GNUmakefile (have-Makefile): Rename...
26057 (_have-Makefile): ...to this, for namespace consideration.
26058 (GNUmakefile.cfg): Include, if present.
26059 (_autoreconf): Define a default.
26060 (_is-dist-target): New rule for rebuilds to pick up intra-release
26062 (maint-cfg.mk): Rename...
26063 (cfg.mk): ...to this.
26065 2008-03-18 Jim Meyering <meyering@redhat.com>
26067 New script and module: mktempd
26068 * MODULES.html.sh (maint+release support): Add mktempd.
26069 * build-aux/mktempd: New file.
26070 * modules/mktempd: New file.
26072 2008-03-15 Jim Meyering <meyering@redhat.com>
26075 * lib/sha1.c, lib/md5.c: 63 != ~63.
26076 Reported by Andreas Schwab.
26078 sha1.c, md5.c: Hoist a redundant expression.
26079 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26080 "ctx->buflen" only once, before calling *_process_block.
26081 * lib/md5.c (md5_process_bytes): Likewise.
26083 2008-03-14 Eric Blake <ebb9@byu.net>
26085 Bump copyright year in files generated by gnulib-tool.
26086 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26087 gnulib-tool, rather than hard-coding it.
26089 Fix 'gnulib-tool --version' output to work with git.
26090 * gnulib-tool (func_gnulib_dir): New function, extracted from...
26091 (startup): ...here.
26092 (func_version): Use it to invoke git-version-gen, rather than
26093 relying on CVS keyword expansion. Modernize wording.
26094 (cvsdatestamp, last_checkin_date, version): Kill unused
26097 2008-03-12 Jim Meyering <meyering@redhat.com>
26099 Recognize optional cast of the argument to free.
26100 * build-aux/useless-if-before-free: Update regexps.
26102 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26104 2008-03-11 Bruno Haible <bruno@clisp.org>
26106 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26107 by a single package.
26108 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26109 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26110 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26111 Reported by Sam Steingold <sds@gnu.org>.
26113 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
26115 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26118 2008-03-11 Bruno Haible <bruno@clisp.org>
26120 Avoid conflicts between local macro definitions.
26121 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26122 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26124 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
26125 Bruno Haible <bruno@clisp.org>
26127 Make va_copy work with some version of xlc on AIX 5.1.
26128 * lib/stdarg.in.h: New file.
26129 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26130 On AIX, use a <stdarg.h> file substitute.
26131 * modules/stdarg (Files): Add lib/stdarg.in.h.
26132 (Depends-on): Add include_next.
26133 (Makefile.am): Build a stdarg.h substitute if requested.
26134 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26136 2008-03-10 Bruno Haible <bruno@clisp.org>
26138 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26139 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26140 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26142 2008-03-10 Bruno Haible <bruno@clisp.org>
26144 * modules/stdlib (Depends-on): Add include_next, remove
26147 2008-03-09 Bruno Haible <bruno@clisp.org>
26149 * lib/freadahead.h (freadahead): Document more precisely.
26150 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26151 the sum of both buffer sizes.
26152 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26153 * NEWS: Document the change.
26155 2008-03-09 Bruno Haible <bruno@clisp.org>
26157 Extend freadptr to return also the buffer size.
26158 * lib/freadptr.h (freadptr): Add sizep argument.
26159 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26160 (freadptr): Add sizep argument. Determine buffer size like freadahead
26162 * tests/test-freadptr.c: Don't include freadahead.h.
26163 (main): Adapt for new calling convention of freadptr.
26164 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26165 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26166 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26167 tests/test-freadptr2.sh.
26168 (Depends): Remove freadahead.
26169 (TESTS): Add test-freadptr2.sh.
26170 (check_PROGRAMS): Add test-freadptr2.
26172 2008-03-09 Bruno Haible <bruno@clisp.org>
26174 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26175 Report and solution by Simon Josefsson.
26177 2008-03-06 Bruno Haible <bruno@clisp.org>
26179 Make fflush after ungetc work on BSD platforms.
26180 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26181 * tests/test-fflush2.c: New file.
26182 * tests/test-fflush2.sh: New file.
26183 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26184 tests/test-fflush2.c.
26185 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26186 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26188 2008-03-06 Eric Blake <ebb9@byu.net>
26190 Likewise for ftello.
26191 * modules/ftello (Dependencies): Add extensions.
26192 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26194 2008-03-06 Bruno Haible <bruno@clisp.org>
26196 * modules/fseeko (Dependencies): Add extensions.
26197 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26198 Needed on glibc systems.
26200 2008-03-06 Bruno Haible <bruno@clisp.org>
26202 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26204 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26206 2008-03-06 Bruno Haible <bruno@clisp.org>
26208 * users.txt: Add libgnupdf.
26210 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
26212 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26213 (Header File Substitutes, Function Substitutes,
26214 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26215 (Build robot for gnulib): Fix typo.
26217 2008-03-06 Bruno Haible <bruno@clisp.org>
26219 * doc/gnulib-tool.texi (VCS Issues): Small updates.
26220 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26222 2008-03-06 Bruno Haible <bruno@clisp.org>
26224 * doc/func.texi: New file, extracted from doc/gnulib.texi.
26225 * doc/gnulib.texi: Include it.
26227 2008-03-06 Simon Josefsson <simon@josefsson.org>
26229 * modules/func (License): Change license to unlimited; there was
26230 no LGPL parts in the module anyway.
26232 2008-03-06 Simon Josefsson <simon@josefsson.org>
26234 * modules/__func__: Renamed to modules/func.
26235 * modules/__func__-tests: Renamed to modules/func-tests.
26236 * tests/test-__func__.c: Renamed to tests/test-func.c.
26237 * m4/__func__.m4: Renamed to m4/func.m4.
26238 * doc/gnulib.texi (__func__): Section renamed to func.
26239 Suggested by Eric Blake <ebb9@byu.net>.
26241 2008-03-06 Simon Josefsson <simon@josefsson.org>
26243 * doc/gnulib.texi (__func__): Use C99 terminology when talking
26244 about __func__. Make example self-contained. Suggested by Eric
26245 Blake <ebb9@byu.net>.
26247 * tests/test-__func__.c (main): Avoid extraneous () around __func.
26248 Suggested by Eric Blake <ebb9@byu.net>.
26250 2008-03-06 Simon Josefsson <simon@josefsson.org>
26252 * modules/__func__: New file.
26253 * modules/__func__-tests: New file.
26254 * tests/test-__func__.c: New file.
26255 * m4/__func__.m4: New file.
26256 * doc/gnulib.texi (__func__): Document __func__ module.
26258 2008-03-05 Simon Josefsson <simon@josefsson.org>
26260 * modules/byteswap (License): Re-license as LGPLv2+.
26262 2008-03-05 Simon Josefsson <simon@josefsson.org>
26264 * doc/Makefile: Add pdf target.
26266 2008-03-05 Simon Josefsson <simon@josefsson.org>
26268 * modules/inline (License): Use 'unlimited', since there are only
26269 *.m4 files in this module.
26271 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
26272 Bruno Haible <bruno@clisp.org>
26274 Add support for HP C 7.1 on OpenVMS 8.3.
26275 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26277 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
26279 Update VMS specifics.
26280 * lib/getopt.c [VMS]: Remove include of unixlib.h.
26282 2008-03-02 Jim Meyering <meyering@redhat.com>
26284 Remove the last dependency on the "free" module.
26285 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26286 Reported by Bob Proulx.
26288 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26290 Remove useless "if" tests before free. Deprecate "free" module.
26291 * doc/posix-functions/free.texi: Mention that this
26292 module is no longer useful.
26293 * modules/free (Notice): Say this module is obsolete.
26294 * modules/readutmp (Depends-on): Remove free.
26295 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26296 * lib/putenv.c (putenv): Likewise.
26297 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26298 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26299 * tests/test-c-strcasestr.c (main): Likewise.
26300 * tests/test-c-strstr.c (main): Likewise.
26301 * tests/test-mbscasestr1.c (main): Likewise.
26302 * tests/test-mbscasestr2.c (main): Likewise.
26303 * tests/test-mbsstr1.c (main): Likewise.
26304 * tests/test-mbsstr2.c (main): Likewise.
26305 * tests/test-memmem.c (main): Likewise.
26306 * tests/test-strcasestr.c (main): Likewise.
26307 * tests/test-striconv.c (main): Likewise.
26308 * tests/test-striconveh.c (main): Likewise.
26309 * tests/test-striconveha.c (main): Likewise.
26310 * tests/test-strstr.c (main): Likewise.
26312 * build-aux/git-version-gen: Adjust a comment and the Usage string.
26314 bootstrap: sync from coreutils again
26315 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26317 2008-03-01 Jim Meyering <meyering@redhat.com>
26319 bootstrap: sync from coreutils
26320 * build-aux/bootstrap (update_po_files): Copy a .po file into place
26321 also when the target doesn't exist.
26323 2008-03-01 Eric Blake <ebb9@byu.net>
26325 Fix bugs in last patch.
26326 * lib/memchr2.c (memchr2): Fix typo.
26327 * tests/test-memchr2.c: Test previous bug, and don't use GNU
26329 Reported by Bruce Korb.
26331 New module 'memchr2'.
26332 * modules/memchr2: New file.
26333 * modules/memchr2-tests: Likewise.
26334 * lib/memchr2.h: Likewise.
26335 * lib/memchr2.c: Likewise, based on memchr.c.
26336 * tests/test-memchr2.c: New test.
26337 * MODULES.html.sh (String handling): Add memchr2.
26339 2008-02-29 Bruno Haible <bruno@clisp.org>
26341 * modules/freadseek-tests: New file.
26342 * tests/test-freadseek.sh: New file.
26343 * tests/test-freadseek.c: New file.
26345 New module 'freadseek'.
26346 * modules/freadseek: New file.
26347 * lib/freadseek.h: New file.
26348 * lib/freadseek.c: New file.
26349 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26351 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
26353 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26356 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26357 program_invocation_name and program_invocation_short_name are
26360 2008-02-28 Bruno Haible <bruno@clisp.org>
26362 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26363 * tests/test-freadptr.sh: Also test non-seekable stdin.
26365 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
26367 * build-aux/bootstrap (source_base, m4_base)
26368 (doc_base, tests_base): New variables.
26369 (gnulib_tool_options): Do not hardcode base directories, use
26370 the above variables instead.
26372 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
26374 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26376 2008-02-28 Bruno Haible <bruno@clisp.org>
26378 * modules/freadptr-tests: New file.
26379 * tests/test-freadptr.sh: New file.
26380 * tests/test-freadptr.c: New file.
26382 New module 'freadptr'.
26383 * modules/freadptr: New file.
26384 * lib/freadptr.h: New file.
26385 * lib/freadptr.c: New file.
26386 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26388 2008-02-26 Karl Berry <karl@freefriends.org>
26391 * libltdl/argz.c (argz_add, argz_count): New functions.
26392 * libltdl/argz.in.h: Declare them.
26393 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26395 2008-02-22 Bruno Haible <bruno@clisp.org>
26397 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26398 is a pointer type. Needed for HP-UX 10.
26399 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26400 * doc/posix-functions/gmtime_r.texi: Likewise.
26401 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26403 2008-02-24 Bruno Haible <bruno@clisp.org>
26405 * modules/environ-tests: New file.
26406 * tests/test-environ.c: New file.
26408 New module 'environ'.
26409 * modules/environ: New file.
26410 * lib/unistd.in.h (environ): New declaration.
26411 * m4/environ.m4: New file.
26412 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26414 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26416 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26418 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26419 wrong claim that 'environ' is missing on some systems.
26420 * modules/execute (Depends-on): Add environ.
26421 * lib/execute.c (environ): Remove fallback declaration.
26422 * modules/pipe (Depends-on): Add environ.
26423 * lib/pipe.c (environ): Remove fallback declaration.
26424 * modules/setenv (Depends-on): Add environ.
26425 * lib/setenv.c (environ): Remove fallback declaration.
26426 * modules/unsetenv (Depends-on): Add environ.
26427 * lib/unsetenv.c (environ): Remove fallback declaration.
26428 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26430 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26431 (gl_PREREQ_UNSETENV): Likewise.
26433 2008-02-24 Bruno Haible <bruno@clisp.org>
26435 * doc/posix-functions/environ.texi: Document the MacOS X problem.
26437 2008-02-20 Bob Proulx <bob@proulx.com>
26439 Enable use of older two part flavor 'git describe'.
26440 * build-aux/git-version-gen: If using the older two part flavor of
26441 git version then recreate the third part now present in the
26442 newer three part flavor of git describe.
26444 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
26446 * lib/fts.c (fts_build): Typo correction to comment.
26448 2008-02-17 Bruno Haible <bruno@clisp.org>
26450 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26451 generating no-op conflicts.
26453 2008-02-17 Bruno Haible <bruno@clisp.org>
26456 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26457 result_entries, rather than an index-based loop.
26459 2008-02-17 Bruno Haible <bruno@clisp.org>
26462 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26464 (entry_create): New function.
26465 (entry_hashcode): Use the cached hashcode if possible.
26466 (read_changelog_file, try_split_merged_entry): Use entry_create.
26468 2008-02-17 Bruno Haible <bruno@clisp.org>
26470 Speed up from O(n^2) to O(n) for long ChangeLog files.
26471 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26472 (read_changelog_file): Change implementation of entries_reversed list
26474 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26476 2008-02-17 Bruno Haible <bruno@clisp.org>
26478 New option --split-merged-entry.
26479 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26480 (find_paragraph_end, try_split_merged_entry): New functions.
26481 (long_options): Add option --split-merged-entry.
26482 (usage): Document option --split-merged-entry.
26483 (main): Implement option --split-merged-entry.
26484 Reported by Eric Blake.
26486 2008-02-17 Bruno Haible <bruno@clisp.org>
26488 * lib/git-merge-changelog.c: Include c-strstr.h.
26489 (main): Support the "git pull --rebase" situation.
26490 * modules/git-merge-changelog (Depends-on): Add c-strstr.
26491 Reported by Eric Blake.
26493 2008-02-16 Eric Blake <ebb9@byu.net>
26495 Avoid doubling \ in common case of "c-maybe" quoting style.
26496 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26497 eliding outer quotes.
26498 * lib/quotearg.h: Document this.
26499 * tests/test-quotearg.c (result_strings, inputs, results_g)
26500 (flag_results, locale_results): Test it by adding a new string to
26502 (compare_strings): Test new string.
26504 2008-02-13 Eric Blake <ebb9@byu.net>
26506 Avoid trigraph quoting in default output.
26507 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26508 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26509 unless explicitly requested.
26510 * tests/test-quotearg.c (flag_results, main): Add additional tests.
26512 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
26514 Don't rely on signed integer overflowing to negative value.
26515 * lib/getugroups.c (getugroups): Include <limits.h>.
26516 Instead, compare against INT_MAX, and increment only if the test passes.
26518 2008-02-13 Jim Meyering <meyering@redhat.com>
26519 and Eric Blake <ebb9@byu.net>
26521 Avoid shadowing warning and compile errors on Linux.
26522 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26523 forwarding macros on Linux.
26524 (dcgettext): Define a stub, for Linux.
26525 (results_g, main): Avoid warnings.
26527 2008-02-12 Eric Blake <ebb9@byu.net>
26529 Silence warning in last patch.
26530 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26532 Quotearg part 4: add tests, fix c-maybe colon quoting.
26533 * lib/quotearg.h: Improve documentation.
26534 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26535 escapes when adding outer quotes. When quoting trigraphs, use
26536 valid C notation. When quoting NUL, omit extra characters if next
26537 character is not digit. Alter prototype.
26538 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26540 * modules/quotearg-tests: New module.
26541 * tests/test-quotearg.c: New test.
26543 2008-02-07 Eric Blake <ebb9@byu.net>
26545 Quotearg part 3: add flag to control outer quote elision.
26546 * lib/quotearg.h (c_maybe_quoting_style): New style.
26547 (enum quoting_flags): Better documentation of flags.
26548 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26550 (quotearg_buffer_restyled): Handle new flag to elide outer
26553 Quotearg part 2: add flag that can control NUL elision.
26554 * lib/quotearg.h (set_quoting_flags): New prototype.
26555 * lib/quotearg.c (struct quoting_options): Add flag field.
26556 (set_quoting_flags): New function.
26557 (quotearg_buffer_restyled): Add flags parameter.
26558 (quotearg_alloc_mem): Set the flag if length cannot be returned.
26559 (quotearg_n_options): Set the flag, since length cannot be
26561 (quoting_options_from_style): Default flags correctly.
26563 Quotearg part 1: more wrappers, restore quotearg_char state.
26564 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26565 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26566 (quotearg_colon_mem): New wrappers.
26567 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26568 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26570 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26571 (quotearg_colon_mem): New functions.
26573 2008-02-11 Bruno Haible <bruno@clisp.org>
26575 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26576 library in the current directory: it does not work with parallel make.
26577 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26579 2008-02-11 Bruno Haible <bruno@clisp.org>
26581 * .gitattributes: New file.
26583 2008-02-11 Jim Meyering <meyering@redhat.com>
26585 useless-if-before-free: Fix reversed exit values.
26586 * build-aux/useless-if-before-free: Use correct values
26587 for EXIT_MATCH and EXIT_NO_MATCH.
26589 * build-aux/useless-if-before-free: Close stdout carefully.
26591 2008-02-10 Bruno Haible <bruno@clisp.org>
26593 New module 'git-merge-changelog'.
26594 * modules/git-merge-changelog: New file.
26595 * lib/git-merge-changelog.c: New file.
26597 2008-02-10 Jim Meyering <meyering@redhat.com>
26599 useless-if-before-free: New option: --list (-l).
26601 useless-if-before-free: Don't exit immediately upon open failure.
26602 * build-aux/useless-if-before-free: Exit 2 for errors.
26603 Upon failure to open a file, don't exit immediately.
26604 Rather, just warn and continue with any remaining files.
26606 2008-02-10 Bruno Haible <bruno@clisp.org>
26608 New abstract list operation 'node_set_value'.
26609 * lib/gl_list.h (gl_list_node_set_value): New function.
26610 (struct gl_list_implementation): New field node_set_value.
26611 * lib/gl_list.c (gl_list_node_set_value): New function.
26612 * lib/gl_array_list.c (gl_array_node_set_value): New function.
26613 (gl_array_list_implementation): Update.
26614 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26615 (gl_carray_list_implementation): Update.
26616 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26617 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26618 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26619 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26620 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26621 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26622 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26624 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26625 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26626 (gl_sublist_list_implementation): Update.
26628 2008-02-10 Bruno Haible <bruno@clisp.org>
26630 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26631 Needed when ELEMENT is #defined to 'some_type *'.
26633 2008-02-10 Jim Meyering <meyering@redhat.com>
26635 New script and module: useless-if-before-free
26636 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26637 * build-aux/useless-if-before-free: New file.
26638 * modules/useless-if-before-free: New file.
26640 * build-aux/gitlog-to-changelog: Use committer date, not author date.
26642 xstrtol_error: Fix typo.
26643 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26644 s/exit_failure/exit_status/.
26646 2008-02-09 Jim Meyering <meyering@redhat.com>
26648 New script and module: gitlog-to-changelog
26649 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26650 * modules/gitlog-to-changelog: New file.
26651 * build-aux/gitlog-to-changelog: New file.
26653 2008-02-08 Jim Meyering <meyering@redhat.com>
26655 Avoid two "parameter unused" warnings.
26656 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26659 Use "git COMMAND", not "git-COMMAND".
26660 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26661 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26662 * build-aux/git-version-gen: Use "git status", not "git-status".
26664 2008-02-07 Bruno Haible <bruno@clisp.org>
26666 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26667 Avoids a crash on Windows Vista.
26668 Reported by Adam Strzelecki <ono@java.pl> via
26669 Simon Josefsson <simon@josefsson.org>.
26671 2008-02-06 Bruno Haible <bruno@clisp.org>
26673 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26674 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26675 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26676 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26677 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26678 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26679 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26680 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26681 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26682 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26683 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26684 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26685 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26686 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26687 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26688 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26690 * tests/test-snprintf-posix.h (test_function): Likewise.
26691 * tests/test-sprintf-posix.h (test_function): Likewise.
26692 * tests/test-vasprintf-posix.c (test_function): Likewise.
26693 * doc/posix-functions/fprintf.texi: Update.
26694 * doc/posix-functions/printf.texi: Update.
26695 * doc/posix-functions/snprintf.texi: Update.
26696 * doc/posix-functions/sprintf.texi: Update.
26697 * doc/posix-functions/vfprintf.texi: Update.
26698 * doc/posix-functions/vprintf.texi: Update.
26699 * doc/posix-functions/vsnprintf.texi: Update.
26700 * doc/posix-functions/vsprintf.texi: Update.
26701 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26703 2008-02-06 Bruno Haible <bruno@clisp.org>
26705 Fix bug introduced on 2008-01-26.
26706 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26708 2008-02-06 Bruno Haible <bruno@clisp.org>
26710 Fix bug introduced on 2007-06-10.
26711 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26712 !NEED_PRINTF_FLAG_ZERO.
26714 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
26716 getloadavg: use libperfstat on AIX5
26717 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26719 2008-02-03 Bruno Haible <bruno@clisp.org>
26721 * lib/diffseq.h: Add comments about required #includes.
26722 Reported by Michael Biggs <gnulib@doubleplum.net>.
26724 2008-02-01 Bruno Haible <bruno@clisp.org>
26726 * users.txt: Add gnuit.
26728 2008-01-31 Bruno Haible <bruno@clisp.org>
26730 * lib/md4.c (set_uint32): Mark as inline.
26731 * lib/md5.c (set_uint32): Likewise.
26732 * lib/sha1.c (set_uint32): Likewise.
26733 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26734 * m4/md5.m4 (gl_MD5): Likewise.
26735 * m4/sha1.m4 (gl_SHA1): Likewise.
26737 2008-01-31 Jim Meyering <meyering@redhat.com>
26739 Use "sizeof VAR", rather than a literal "4".
26740 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26741 * lib/md4.c (md4_read_ctx): Likewise.
26742 * lib/sha1.c (sha1_read_ctx): Likewise.
26744 2008-01-31 Simon Josefsson <simon@josefsson.org>
26746 * tests/test-sha1.c: New file, based on test-md5.c.
26748 * modules/crypto/sha1-tests: New file.
26750 2008-01-31 Simon Josefsson <simon@josefsson.org>
26752 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26754 2008-01-31 Jim Meyering <meyering@redhat.com>
26756 Prefer "sizeof v" over the equivalent "4".
26757 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26758 * lib/md5.c (set_uint32): Likewise.
26759 * lib/sha1.c (set_uint32): Likewise.
26761 2008-01-31 Simon Josefsson <simon@josefsson.org>
26763 * lib/sha1.c (set_uint32): Mark function as static.
26765 2008-01-31 Simon Josefsson <simon@josefsson.org>
26767 md2: clarify comments to say that alignment is not required.
26768 * lib/md2.h: Remove warning about alignment in comment.
26769 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26770 never been required.
26772 2008-01-31 Simon Josefsson <simon@josefsson.org>
26774 md4: adapt alignment constraint fix from sha1.
26775 * lib/md4.c (set_uint32): New function, from sha1.c
26776 (md4_read_ctx): Use it.
26777 (md4_finish_ctx): Doc fix.
26778 * lib/md4.h: Doc fix.
26780 2008-01-31 Simon Josefsson <simon@josefsson.org>
26782 md5: adapt alignment constraint fix from sha1.
26783 * lib/md5.c (set_uint32): New function, from sha1.c
26784 (md5_read_ctx): Use it.
26785 (md5_finish_ctx): Doc fix.
26786 * lib/md5.h: Doc fix.
26788 2008-01-30 Peter Palfrader <weasel@debian.org>
26790 sha1: remove the result buffer alignment constraint
26791 * lib/sha1.c (set_uint32): New function.
26792 (sha1_read_ctx): Rewrite to remove the result buffer alignment
26794 (sha1_finish_ctx): Remove comment warning about alignment constraint.
26795 * lib/sha1.h: Likewise.
26797 2008-01-30 Andreas Schwab <schwab@suse.de>
26798 Bruno Haible <bruno@clisp.org>
26800 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26801 correct definition of LDBL_MIN_EXP.
26803 2008-01-30 Karl Berry <karl@gnu.org>
26805 * config/srclist-update: try to preserve x bit on updates.
26806 * config/srclistvars.sh: update for karl.
26808 2008-01-29 Jim Meyering <meyering@redhat.com>
26810 vasnprintf.c: Avoid warning about unused label
26811 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26812 "overflow" label definition and associated code with the
26813 same cpp condition that guards the sole use of that label.
26815 2008-01-26 Bruno Haible <bruno@clisp.org>
26817 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26818 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26819 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26820 * lib/isnanl-nolibm.h (isnanl): Likewise.
26821 Reported by Paul Eggert <eggert@cs.ucla.edu>.
26823 2008-01-26 Bruno Haible <bruno@clisp.org>
26825 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26826 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26828 2008-01-26 Bruno Haible <bruno@clisp.org>
26830 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26831 GCC >= 4.0 built-in.
26832 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26834 2008-01-26 Bruno Haible <bruno@clisp.org>
26836 Rename isnan, applicable to 'double' only, to isnand.
26837 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26838 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26839 (configure.ac): Update.
26840 (Include): Replace "isnan.h" with "isnand.h".
26841 * m4/isnand.m4: Renamed from m4/isnan.m4.
26842 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26843 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26844 instead of isnan.c.
26845 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26846 instead of HAVE_ISNAN_IN_LIBC.
26847 (isnand): Renamed from isnan.
26848 * lib/isnand.c: New file.
26849 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26850 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26851 (Makefile.am): Update.
26852 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26853 Include isnand.h instead of isnan.h.
26854 (main): Test isnand instead of isnan.
26855 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26857 * modules/frexp (Depends-on): Likewise.
26858 * modules/frexp-tests (Depends-on): Likewise.
26859 * modules/frexp-nolibm (Depends-on): Likewise.
26860 * modules/frexp-nolibm-tests (Depends-on): Likewise.
26861 * modules/isfinite (Depends-on): Likewise.
26862 * modules/round-tests (Depends-on): Likewise.
26863 * modules/signbit (Depends-on): Likewise.
26864 * modules/signbit-tests (Depends-on): Likewise.
26865 * modules/snprintf-posix (Depends-on): Likewise.
26866 * modules/sprintf-posix (Depends-on): Likewise.
26867 * modules/trunc-tests (Depends-on): Likewise.
26868 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26869 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26870 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26871 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26872 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26873 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26874 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26875 * modules/vasnprintf-posix (Depends-on): Likewise.
26876 * modules/vasprintf-posix (Depends-on): Likewise.
26877 * modules/vfprintf-posix (Depends-on): Likewise.
26878 * modules/vsnprintf-posix (Depends-on): Likewise.
26879 * modules/vsprintf-posix (Depends-on): Likewise.
26880 * lib/frexp.c: Include isnand.h instead of isnan.h.
26881 (ISNAN): Set to isnand instead of isnan.
26882 * lib/isfinite.c: Include isnand.h instead of isnan.h.
26883 (gl_isfinited): Use isnand instead of isnan.
26884 * lib/signbitd.c: Include isnand.h instead of isnan.h.
26885 (gl_signbitd): Use isnand instead of isnan.
26886 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26887 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26888 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26889 (main): Use isnand instead of isnan.
26890 * tests/test-round1.c: Include isnand.h.
26891 (main): Use isnand instead of isnan.
26892 * tests/test-round2.c: Include isnand.h instead of isnan.h.
26893 (ISNAN): Set to isnand instead of isnan.
26894 * tests/test-trunc1.c: Include isnand.h.
26895 (main): Use isnand instead of isnan.
26896 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26897 (equal): Use isnand instead of isnan.
26898 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26900 * NEWS: Mention the change.
26902 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
26903 Bruno Haible <bruno@clisp.org>
26905 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26906 the GCC builtins for signbits are present and set
26907 REPLACE_SIGNBIT_USING_GCC if so.
26908 * lib/math.in.h (signbit): Define using GCC builtins if
26909 REPLACE_SIGNBIT_USING_GCC is set.
26910 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26911 REPLACE_SIGNBIT_USING_GCC.
26912 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26914 2008-01-25 Jim Meyering <meyering@redhat.com>
26916 Prefer <config.h> over "config.h". See autoconf doc for explanation.
26917 * lib/poll.c: Include <config.h>, not "config.h".
26918 * tests/test-getaddrinfo.c: Likewise.
26920 2008-01-25 Simon Josefsson <simon@josefsson.org>
26922 * modules/sockets-tests: New file.
26924 2008-01-24 Simon Josefsson <simon@josefsson.org>
26926 * modules/sockets: New module, can be used to call WSA_Startup and
26927 WSA_Cleanup when needed.
26929 * lib/sockets.h, lib/sockets.c: New files.
26931 * m4/sockets.m4: New file.
26933 * tests/test-sockets.c: New file.
26935 2008-01-19 Bruno Haible <bruno@clisp.org>
26937 * doc/posix-headers: Renamed from doc/headers.
26938 * doc/posix-functions: Renamed from doc/functions.
26939 * doc/gnulib.texi: Update.
26941 2008-01-19 Bruno Haible <bruno@clisp.org>
26943 * doc/glibc-functions/strcasestr.texi: Include contents of
26944 doc/functions/strcasestr.texi, fixing the list of platforms.
26945 * doc/functions/strcasestr.texi: Remove file.
26947 2008-01-19 Bruno Haible <bruno@clisp.org>
26949 * doc/glibc-functions/memmem.texi: Include contents of
26950 doc/functions/memmem.texi.
26951 * doc/functions/memmem.texi: Remove file.
26953 2008-01-18 Bruno Haible <bruno@clisp.org>
26955 * doc/glibc-functions/*.texi: New files.
26956 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26957 to use the new files.
26959 2008-01-17 Bruno Haible <bruno@clisp.org>
26961 * tests/test-gethostname.c (main): Fix printf statement.
26963 2008-01-17 Simon Josefsson <simon@josefsson.org>
26965 * modules/gethostname-tests: New file.
26967 * tests/test-gethostname.c: New file.
26969 2008-01-17 Simon Josefsson <simon@josefsson.org>
26971 * lib/gethostname.c: Include string.h unconditionally, strncpy is
26972 used by the UNAME case. Reported by Bruno Haible
26975 2008-01-17 Eric Blake <ebb9@byu.net>
26977 Convert c-strcasestr to be more efficient.
26978 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26979 (Depends-on): Add c-strcase, remove malloca, strnlen.
26980 * tests/test-c-strcasestr.c (main): Enhance test.
26981 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26983 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
26985 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26986 Use it in creating po/Makevars.
26988 2008-01-15 Simon Josefsson <simon@josefsson.org>
26990 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26991 Applications that requires it should initialize libgcrypt
26994 2008-01-16 Simon Josefsson <simon@josefsson.org>
26996 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26998 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
27000 Fix problem with getdate on mingw32 reported by Simon Josefsson
27001 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27002 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27003 tzname", when deciding whether to declare tzname.
27004 * lib/strftime.c (tzname): Likewise.
27006 2008-01-15 Bruno Haible <bruno@clisp.org>
27008 Work around a MacOS X 10.5 bug in frexpl().
27009 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27010 * doc/functions/frexpl.texi: Document the bug.
27011 Reported by Elias Pipping <pipping@gentoo.org>.
27013 2008-01-14 Eric Blake <ebb9@byu.net>
27015 Touch up previous patch.
27016 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27017 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27019 Convert strcasestr module to use Two-Way algorithm.
27020 * modules/strcasestr-simple: New module, based on the old
27021 strcasestr, but with Two-Way rather than KMP.
27022 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27023 * lib/string.in.h (rpl_strcasestr): Declare.
27024 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27026 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27027 * modules/string (Makefile.am): Support strcasestr.
27028 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27029 * modules/strcasestr-tests (Depends-on): Check for alarm.
27030 * tests/test-strcasestr.c: Augment test.
27031 * lib/str-two-way.h: Clean up stray macro.
27032 * NEWS: Document new module.
27033 * MODULES.html.sh (string handling): Likewise.
27034 * doc/functions/strcasestr.texi: New file.
27035 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
27036 here, since it is not a POSIX function.
27038 2008-01-14 Colin Watson <cjwatson@debian.org>
27039 Bruno Haible <bruno@clisp.org>
27041 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27042 works fine; if not, set REPLACE_STRSIGNAL.
27043 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27044 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27046 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27047 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27048 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27050 2008-01-14 Bruno Haible <bruno@clisp.org>
27052 * modules/strsignal (Include): Change to <string.h>.
27054 2008-01-14 Colin Watson <cjwatson@debian.org>
27056 * modules/argp (Notice): Add a notice recommending to change
27058 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27060 2008-01-13 Colin Watson <cjwatson@debian.org>
27062 * modules/strsignal-tests: New file.
27063 * tests/test-strsignal.c: New file.
27065 * lib/strsignal.c: New file, from glibc with modifications.
27066 * lib/siglist.h: New file, from glibc with modifications.
27067 * lib/string.in.h (strsignal): New declaration.
27068 * m4/strsignal.m4: New file.
27069 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27070 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27071 * modules/strsignal: New file.
27072 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27073 HAVE_DECL_STRSIGNAL.
27075 2008-01-13 Bruno Haible <bruno@clisp.org>
27077 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27078 locale encoding is not ASCII. Needed for OpenBSD 4.0.
27079 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27080 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27082 2008-01-13 Bruno Haible <bruno@clisp.org>
27084 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27085 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27086 * lib/argp.h (__attribute__): Likewise.
27087 * lib/c-stack.c (__attribute__): Likewise.
27088 * lib/error.h (__attribute__): Likewise.
27089 * lib/fts.c (__attribute__): Likewise.
27090 * lib/openat.h (__attribute__): Likewise.
27091 * lib/stdio.in.h (__attribute__): Likewise.
27092 * lib/string.in.h (__attribute__): Likewise.
27093 * lib/utimens.c (__attribute__): Likewise.
27094 * lib/vasnprintf.h (__attribute__): Likewise.
27095 * lib/xalloc.h (__attribute__): Likewise.
27096 * lib/xprintf.h (__attribute__): Likewise.
27097 * lib/xstrtol.h (__attribute__): Likewise.
27098 * lib/xvasprintf.h (__attribute__): Likewise.
27100 2008-01-12 Bruno Haible <bruno@clisp.org>
27102 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27103 * doc/glibc-headers/a.out.texi: New file.
27104 * doc/glibc-headers/aliases.texi: New file.
27105 * doc/glibc-headers/alloca.texi: New file.
27106 * doc/glibc-headers/ar.texi: New file.
27107 * doc/glibc-headers/argp.texi: New file.
27108 * doc/glibc-headers/argz.texi: New file.
27109 * doc/glibc-headers/byteswap.texi: New file.
27110 * doc/glibc-headers/crypt.texi: New file.
27111 * doc/glibc-headers/endian.texi: New file.
27112 * doc/glibc-headers/envz.texi: New file.
27113 * doc/glibc-headers/err.texi: New file.
27114 * doc/glibc-headers/error.texi: New file.
27115 * doc/glibc-headers/execinfo.texi: New file.
27116 * doc/glibc-headers/fpu_control.texi: New file.
27117 * doc/glibc-headers/fstab.texi: New file.
27118 * doc/glibc-headers/fts.texi: New file.
27119 * doc/glibc-headers/getopt.texi: New file.
27120 * doc/glibc-headers/ieee754.texi: New file.
27121 * doc/glibc-headers/ifaddrs.texi: New file.
27122 * doc/glibc-headers/libintl.texi: New file.
27123 * doc/glibc-headers/mcheck.texi: New file.
27124 * doc/glibc-headers/mntent.texi: New file.
27125 * doc/glibc-headers/obstack.texi: New file.
27126 * doc/glibc-headers/paths.texi: New file.
27127 * doc/glibc-headers/printf.texi: New file.
27128 * doc/glibc-headers/pty.texi: New file.
27129 * doc/glibc-headers/resolv.texi: New file.
27130 * doc/glibc-headers/shadow.texi: New file.
27131 * doc/glibc-headers/sysexits.texi: New file.
27132 * doc/glibc-headers/ttyent.texi: New file.
27134 2008-01-12 Jim Meyering <meyering@redhat.com>
27136 announce-gen: emit Gnulib's git-based version string.
27137 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27138 New option --gnulib-version=V, where V is expected to be
27139 the output of running git describe in the gnulib directory.
27140 (get_tool_versions): Request feedback on xdelta. I suspect it's
27141 not useful, and plan to stop publishing an xdelta file with each
27144 * build-aux/announce-gen: Also check for lzma-compressed files.
27146 2008-01-11 Bruno Haible <bruno@clisp.org>
27148 * tests/test-memmem.c (main): Increase maximum allowed time.
27149 * tests/test-strstr.c (main): Likewise.
27151 2008-01-11 Bruno Haible <bruno@clisp.org>
27153 * doc/functions/memmem.texi: Add more precisions about platforms.
27154 * doc/functions/strstr.texi: Likewise.
27156 2008-01-10 Eric Blake <ebb9@byu.net>
27158 * m4/strstr.m4: Delete cruft from copy-n-paste.
27159 Reported by Bruno Haible.
27161 2008-01-10 Bruno Haible <bruno@clisp.org>
27163 Make c-strstr rely on strstr.
27164 * lib/c-strstr.c: Don't include str-kmp.h.
27165 (c_strstr): Define in terms of strstr.
27166 * modules/c-strstr (Files): Remove lib/str-kmp.h.
27167 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27169 2008-01-10 Bruno Haible <bruno@clisp.org>
27171 * doc/gnulib.texi (String Functions in C Locale): New section.
27172 * doc/c-ctype.texi: New file.
27173 * doc/c-strcase.texi: New file.
27174 * doc/c-strcaseeq.texi: New file.
27175 * doc/c-strcasestr.texi: New file.
27176 * doc/c-strstr.texi: New file.
27177 * doc/c-strtod.texi: New file.
27178 * doc/c-strtold.texi: New file.
27180 2008-01-10 Eric Blake <ebb9@byu.net>
27182 * lib/relocatable.h: Fix a comment.
27184 2008-01-10 Eric Blake <ebb9@byu.net>
27186 Share two-way algorithm.
27187 * lib/str-two-way.h: New file, merged from...
27188 * lib/memmem.c: ...here...
27189 * lib/strstr.c: ...and here.
27190 * modules/memmem (Files): Use it.
27191 * modules/strstr (Files): Likewise.
27193 Avoid quadratic strstr implementations.
27194 * lib/strstr.c: New file.
27195 * m4/strstr.m4: Likewise.
27196 * modules/strstr: Likewise.
27197 * modules/strstr-tests: Likewise.
27198 * tests/test-strstr.c: Likewise.
27199 * lib/string.in.h (rpl_strstr): Declare.
27200 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27201 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27202 * modules/string (Makefile.am): Likewise.
27203 * MODULES.html.sh (string handling): Mention new module.
27204 * doc/functions/strstr.texi (strstr): Document the bug.
27206 2008-01-10 Bruno Haible <bruno@clisp.org>
27208 * lib/relocatable.h (relocate): State whether result is freshly
27210 * lib/relocatable.c (relocate): Return a freshly allocated string
27211 instead of a pointer to a privately held string.
27212 Reported by Sylvain Beucler <beuc@gnu.org>.
27214 2008-01-10 Colin Watson <cjwatson@debian.org>
27216 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27217 s/S_ISNLK/S_ISLNK/.
27219 2008-01-09 Bruno Haible <bruno@clisp.org>
27221 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27223 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27224 if it's only a guess.
27225 * modules/memmem: Simplify by depending on memmem-simple.
27227 2008-01-09 Bruno Haible <bruno@clisp.org>
27229 Work around OpenBSD 4.0 tdelete() bug.
27230 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27231 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27232 macros and don't redefine the enum values.
27233 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27234 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27235 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27237 2008-01-09 Bruno Haible <bruno@clisp.org>
27239 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27240 (main): Don't perform the tests if setlocale did not install a UTF-8
27241 locale. Needed on OpenBSD 4.0.
27242 * modules/wcwidth-tests (Depends-on): Add localcharset.
27244 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
27246 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27247 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27248 * NEWS: announce this.
27249 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27251 2008-01-09 Simon Josefsson <simon@josefsson.org>
27252 and Eric Blake <ebb9@byu.net>
27254 Add memmem-simple module.
27255 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27256 (gl_FUNC_MEMMEM): Separate performance from presence checks.
27257 * modules/memmem-simple: New file.
27258 * modules/memmem (Description): Tweak.
27259 * MODULES.html.sh (string handling): Mention new module.
27260 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27261 addressed by memmem-simple.
27262 * NEWS: Document the difference.
27264 2008-01-09 Eric Blake <ebb9@byu.net>
27266 Give gcc some memmem optimization hints.
27267 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27268 (strcasestr): Declare as pure.
27269 * modules/memmem (Maintainer): Claim my implementation.
27271 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27273 Support AIX 6.1 and higher.
27274 * build-aux/config.libpath: Likewise.
27275 * build-aux/config.rpath: Likewise.
27277 2008-01-08 Jim Meyering <meyering@redhat.com>
27278 Bruno Haible <bruno@clisp.org>
27280 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27281 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27282 Reported by Peter Fales in
27283 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27285 2008-01-08 Bruno Haible <bruno@clisp.org>
27287 * modules/unictype/category-of (Depends-on): Add
27288 unictype/category-none.
27289 * modules/unictype/category-and-tests (Depends-on): Add
27290 unictype/category-{L,N,Lu,Nd}.
27291 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27292 * modules/unictype/category-or-tests (Depends-on): Add
27293 unictype/category-{L,N}.
27294 * modules/unictype/category-name-tests (Depends-on): Add
27295 unictype/category-{Z,Nl}.
27296 Reported by Simon Josefsson.
27298 2008-01-08 Bruno Haible <bruno@clisp.org>
27300 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27302 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27303 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27304 Reported by Peter Miller <millerp@canb.auug.org.au>.
27306 2008-01-08 Eric Blake <ebb9@byu.net>
27308 Rewrite memmem to guarantee linear complexity without malloc.
27309 * lib/memmem.c (memmem): Use Two-Way rather than
27310 Knuth-Morris-Pratt, to allow O(1) space usage.
27311 (critical_factorization, two_way_short_needle)
27312 (two_way_long_needle): New functions.
27313 (knuth_morris_pratt): Delete.
27314 * modules/memmem (Depends-on): No longer need malloca or stdbool.
27316 * tests/test-memmem.c (main): Add tests for periodic needle and
27317 sublinear performance.
27318 * doc/functions/memmem.texi (memmem): Document other deficiencies
27319 in cygwin and older glibc.
27321 2008-01-08 Bruno Haible <bruno@clisp.org>
27323 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27326 2008-01-08 Mike Frysinger <vapier@gentoo.org>
27328 Add a configure time option: --disable-acl.
27329 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27330 AC_ARG_ENABLE(acl).
27332 2008-01-06 Simon Josefsson <simon@josefsson.org>
27334 * tests/test-localename.c: Don't include obsolete "setenv.h".
27336 * modules/localename-tests (Depends-on): Need unsetenv.
27338 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27340 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27342 2008-01-06 Colin Watson <cjwatson@debian.org>
27344 * users.txt: Add man-db.
27346 2008-01-07 Bruno Haible <bruno@clisp.org>
27348 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27349 previous section name.
27351 2008-01-07 Bruno Haible <bruno@clisp.org>
27353 * lib/progname.c (set_program_name): Don't strip off a leading
27354 "lt-" prefix outside a .libs directory.
27355 Suggested by Paul Eggert.
27357 2008-01-01 Sylvain Beucler <beuc@gnu.org>
27358 Bruno Haible <bruno@clisp.org>
27360 Improve memory cleanup in 'relocatable' module.
27361 * lib/relocatable.h (compute_curr_prefix): Change return type to
27363 * lib/relocatable.c (compute_curr_prefix): Change return type to
27364 'char *'. Free curr_installdir after use.
27365 (relocate): Free curr_prefix_better after use.
27366 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27368 2008-01-01 Bruno Haible <bruno@clisp.org>
27370 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27371 failure on older glibc systems.
27372 Reported by Peter Fales <psfales@alcatel-lucent.com>.
27374 2008-01-05 Eric Blake <ebb9@byu.net>
27376 Avoid quadratic system memmem.
27377 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27378 Reported by Ralf Wildenhues.
27380 Fix memmem test for mingw.
27381 * modules/memmem-tests (configure.ac): Check for alarm.
27382 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27384 * doc/functions/memmem.texi: New file.
27385 * doc/gnulib.texi (Function Substitutes): Add memmem.
27386 Reported by Bruno Haible.
27388 2008-01-04 Bruno Haible <bruno@clisp.org>
27390 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27391 Require gl_HEADER_STRINGS_H_DEFAULTS, not
27392 gl_HEADER_STRING_H_DEFAULTS.
27394 2008-01-04 Eric Blake <ebb9@byu.net>
27396 Shorten duration of memmem test.
27397 * tests/test-memmem.c (main): Use alarm to declare failure if test
27398 is taking too long.
27399 Reported by Ralf Wildenhues.
27401 2007-12-21 Simon Josefsson <simon@josefsson.org>
27403 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27404 string, needed by strerror.
27406 2008-01-03 Colin Watson <cjwatson@debian.org>
27407 Bruno Haible <bruno@clisp.org>
27409 * doc/gnulib-tool.texi (Localization): New section.
27411 2008-01-02 Bruno Haible <bruno@clisp.org>
27413 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27414 variables to 'unsigned char *' type.
27415 Reported by Paul Eggert.
27417 2008-01-02 Jim Meyering <jim@meyering.net>
27419 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27421 2007-12-31 Jim Meyering <jim@meyering.net>
27423 Avoid use of private FTS type name.
27424 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27426 2007-12-30 Karl Berry <karl@gnu.org>
27428 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27429 work around defect in Texinfo and/or the standalone Info browser.
27431 2007-12-30 Bruno Haible <bruno@clisp.org>
27433 Unify 5 copies of the KMP code.
27434 * lib/str-kmp.h: New file.
27435 * lib/c-strcasestr.c: Include str-kmp.h.
27436 (knuth_morris_pratt): Remove function.
27437 (c_strcasestr): Update.
27438 * lib/c-strstr.c: Include str-kmp.h.
27439 (knuth_morris_pratt): Remove function.
27440 (c_strcasestr): Update.
27441 * lib/mbscasestr.c: Include str-kmp.h.
27442 (knuth_morris_pratt_unibyte): Remove function.
27443 * lib/mbsstr.c: Include str-kmp.h.
27444 (knuth_morris_pratt_unibyte): Remove function.
27445 * lib/strcasestr.c: Include str-kmp.h.
27446 (knuth_morris_pratt): Remove function.
27447 (strcasestr): Update.
27448 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27449 * modules/c-strstr (Files): Likewise.
27450 * modules/mbscasestr (Files): Likewise.
27451 * modules/mbsstr (Files): Likewise.
27452 * modules/strcasestr (Files): Likewise.
27453 Suggested by Paul Eggert.
27455 2007-12-30 Bruno Haible <bruno@clisp.org>
27457 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27460 2007-12-30 Bruno Haible <bruno@clisp.org>
27462 * lib/xmalloca.h: Include xalloc.h.
27463 (xnmalloca): New macro.
27465 2007-12-30 Bruno Haible <bruno@clisp.org>
27467 * lib/malloca.h (nmalloca): New macro.
27468 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27469 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27470 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27471 knuth_morris_pratt_multibyte): Likewise.
27472 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27473 knuth_morris_pratt_multibyte): Likewise.
27474 * lib/memmem.c (knuth_morris_pratt): Likewise.
27475 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27477 2007-12-25 Bruno Haible <bruno@clisp.org>
27479 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27480 * lib/glob.c: Don't include openat.h.
27481 (link_exists2_p): Add back the code that deals with the
27482 !GLOB_ALTDIRFUNC case.
27483 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27484 let it do the filename concatenation.
27485 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27486 * modules/glob (Depends-on): Remove openat.
27488 2007-12-31 Bruno Haible <bruno@clisp.org>
27490 * modules/dirfd (License): Change to LGPLv2+.
27491 Approved by Jim Meyering.
27493 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
27495 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27496 when multiplying M by sizeof (size_t).
27498 2007-12-10 Martin Lambers <marlam@marlam.de>
27500 Override getpagesize on mingw.
27501 * lib/getpagesize.c: New file.
27502 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27503 * modules/getpagesize (Files): Add lib/getpagesize.c.
27504 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27505 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27506 REPLACE_GETPAGESIZE.
27507 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27509 2007-12-25 Bruno Haible <bruno@clisp.org>
27511 * modules/localcharset (Notice): New field.
27512 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27513 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27515 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
27516 Bruno Haible <bruno@clisp.org>
27518 Avoid using the syntax symbol() in formatted documentation.
27519 * MODULES.html.sh (func_module): When replacing symbol() with a
27520 hyperlink, remove the parentheses. Show an error if some remain.
27521 Recognize and render the '...' syntax.
27522 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27523 Rework. Add paragraph about GCC's inlining.
27524 * doc/alloca.texi: Likewise.
27525 * doc/error.texi: Remove parentheses from symbol reference.
27526 * doc/gnulib-intro.texi: Likewise.
27527 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27528 * modules/fnmatch (Description): Reword to say "the ... function".
27529 * modules/full-read (Description): Likewise.
27530 * modules/full-write (Description): Likewise.
27531 * modules/safe-read (Description): Likewise.
27532 * modules/safe-write (Description): Likewise.
27533 * modules/strchrnul (Description): Likewise.
27534 * modules/trim (Description): Likewise.
27535 * modules/error (Description): Remove parentheses from symbol
27537 * modules/verror (Description): Likewise.
27538 Reported by Karl Berry.
27540 2007-12-25 Bruno Haible <bruno@clisp.org>
27542 Fixup after 2007-10-16 commit.
27543 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27545 2007-12-24 Bruno Haible <bruno@clisp.org>
27547 Make --enable-relocatable work with DESTDIR.
27548 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27549 to compute installdir from destprog.
27550 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27551 also set the RELOC_DESTDIR variable.
27552 Reported by Левашев Иван <octagram@bluebottle.com>.
27554 2007-12-24 Bruno Haible <bruno@clisp.org>
27556 Fix link error due to xalloc_die().
27557 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27559 * lib/relocwrapper.c: Update comments.
27560 * build-aux/install-reloc: Remove xreadlink.c from file list.
27561 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27563 Reported by Левашев Иван <octagram@bluebottle.com>.
27565 2007-12-24 Bruno Haible <bruno@clisp.org>
27567 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27568 * lib/setenv.h: Remove file.
27569 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27571 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27572 (Depends-on): Add stdlib.
27573 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27575 (Include): Replace setenv.h with <stdlib.h>.
27576 * modules/unsetenv: New file.
27577 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27578 * lib/unsetenv.c: Include <stdlib.h> first.
27579 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27580 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27581 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27582 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27583 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27584 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27585 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27586 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27587 * doc/functions/unsetenv.texi: Update.
27588 * modules/xsetenv (Depends-on): Add unsetenv.
27589 * modules/getdate (Depends-on): Likewise.
27590 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27591 * lib/xsetenv.c: Don't include setenv.h.
27592 * lib/getdate.y: Likewise.
27593 * lib/relocwrapper.c: Likewise.
27594 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27595 (Depends-on): Add stdlib.
27596 * NEWS: Mention the changes.
27597 Reported by Левашев Иван <octagram@bluebottle.com>.
27599 2007-12-23 Bruno Haible <bruno@clisp.org>
27601 * lib/memmem.c (memmem): Use lowercase variable names. Tab
27604 2007-12-23 Bruno Haible <bruno@clisp.org>
27606 * lib/c-strcasestr.c: Add more comments.
27607 * lib/c-strstr.c: Likewise.
27608 * lib/mbscasestr.c: Likewise.
27609 * lib/mbsstr.c: Likewise.
27610 * lib/strcasestr.c: Likewise.
27611 * lib/memmem.c: Likewise.
27613 2007-12-23 Bruno Haible <bruno@clisp.org>
27615 * tests/test-memmem.c: Include <string.h> first.
27617 2007-12-22 Bruno Haible <bruno@clisp.org>
27619 * gnulib-tool (func_create_testdir): Change $auxdir while generating
27620 the contents of $testsbase.
27621 Reported by Ralf Wildenhues.
27623 2007-12-22 Bruno Haible <bruno@clisp.org>
27625 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27626 two variables local_ldadd_before, local_ldadd_last.
27628 2007-12-20 Eric Blake <ebb9@byu.net>
27630 Work around circular library issue when cross-compiling.
27631 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27632 that progname.o does not need to pull in rpl_memcmp.
27634 2007-12-19 Eric Blake <ebb9@byu.net>
27636 Fix memmem to avoid O(n^2) worst-case complexity.
27637 * lib/memmem.c (knuth_morris_pratt): New function.
27638 (memmem): Use it if first few naive iterations fail.
27639 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27640 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27641 * modules/memchr (License): Likewise.
27642 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27644 * tests/test-memmem.c: Rewrite, borrowing ideas from
27645 test-mbsstr1.c; the old version wouldn't even compile!
27646 * modules/memmem-tests: New file.
27647 * lib/string.in.h (rpl_memmem): Add declaration.
27648 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27649 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27652 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
27654 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27655 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27656 before any system include files, and undef after them all. This
27657 should fix a problem on VMS reported by John E. Malmberg in
27658 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27660 2007-12-17 Eric Blake <ebb9@byu.net>
27662 Revert addition of verify, for BSD/OS.
27663 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27664 can't handle large files, for the sake of obsolete platforms.
27665 * modules/fseeko (Depends-on): Remove verify.
27666 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27667 * doc/functions/ftello.texi (ftello): Likewise.
27668 * doc/functions/fgetpos.texi (fgetpos): Likewise.
27669 Reported by Larry Jones.
27671 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
27673 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27674 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27676 2007-12-17 Jim Meyering <meyering@redhat.com>
27678 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27679 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27680 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27681 * modules/getcwd (Depends-on): Add openat.
27682 Reported by Petr Salinger.
27684 2007-12-17 Bruno Haible <bruno@clisp.org>
27686 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27687 avoid a segmentation fault of the configure test on x86_64 systems.
27689 2007-12-15 Jim Meyering <meyering@redhat.com>
27691 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27693 2007-12-13 Eric Blake <ebb9@byu.net>
27695 Another fseek test.
27696 * tests/test-fseek.c (main): Also test ungetc handling.
27697 * tests/test-fseeko.c (main): Likewise.
27698 * modules/fseeko (Depends-on): Add verify.
27699 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27701 Reported by Larry Jones.
27703 Fix fseeko on mingw.
27704 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27707 Beef up fseek tests.
27708 * tests/test-fseek.c (main): Also test eof handling.
27709 * tests/test-fseeko.c (main): Likewise.
27710 Reported by Larry Jones.
27712 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
27714 Fix fseeko on BSD-based platforms.
27715 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27718 2007-12-12 Eric Blake <ebb9@byu.net>
27720 Allow circular dependency of separate libtests.a
27721 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27724 2007-12-11 Eric Blake <ebb9@byu.net>
27726 Fix bug with -0.0L in previous patch.
27727 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27728 * tests/test-isnan.c (main): Also test on zeroes.
27729 * tests/test-isnanf.c (main): Likewise.
27730 * tests/test-isnanl.h (main): Likewise.
27732 Detect pseudo-denormals on x86 even when cross-compiling.
27733 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27734 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27735 invalid bit patterns that happen to satisfy ==.
27737 Avoid link failures with separate libtests.a.
27738 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27739 last, to satisfy circular dependencies.
27741 2007-12-11 Eric Blake <ebb9@byu.net>
27742 and Bruno Haible <bruno@clisp.org>
27744 Fix OpenBSD 4.0 <float.h> handling of long double.
27745 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27746 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27747 * doc/headers/float.texi (float.h): Document OpenBSD bug.
27749 2007-12-11 Jim Meyering <meyering@redhat.com>
27751 * users.txt: Add libvirt.
27753 Support versions of autoconf prior to 2.59c.
27754 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27755 if it is not already defined.
27757 2007-12-09 Bruno Haible <bruno@clisp.org>
27759 Let 'gnulib-tool --import' collect sources needed for the tests in
27760 tests/ rather than in lib/.
27761 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27762 argument. If true, add rules to generate libtests.a, and put libtests.a
27763 into $(LDADD). Consider source files in subdirectories and set
27765 (func_emit_initmacro_start, func_emit_initmacro_end,
27766 func_emit_initmacro_done): Pass all arguments explicitly.
27767 (func_import): Determine two module lists main_modules,
27768 testsrelated_modules. Determine use_libtests. Determine two variables
27769 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27770 instead of just sed_transform_lib_file. Determine two variables
27771 main_files and testsrelated_files. Compute 'files' as the union of
27772 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27773 func_add_or_update. In the generated gnulib-comp.m4, collect the
27774 object files for tests/ in different variables than those for lib/.
27775 Substitute LIBTESTS_LIBDEPS.
27776 (func_create_testdir): Combine the uses_subdirs results from
27777 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27779 2007-12-09 Bruno Haible <bruno@clisp.org>
27781 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27782 the build-aux directory.
27784 2007-12-09 Bruno Haible <bruno@clisp.org>
27786 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27787 introduced on 2006-09-09.
27789 2007-12-07 Jim Meyering <meyering@redhat.com>
27791 Let these macros work also with autoconf-2.59.
27792 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
27793 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27794 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27796 2007-12-06 Jim Meyering <meyering@redhat.com>
27798 Avoid a configure-time syntax error in gl_FUNC_ACL.
27799 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27800 function in each branch, before testing the cache variable.
27802 2007-12-04 Eric Blake <ebb9@byu.net>
27804 Make scripts executable.
27805 * build-aux/config.guess: Add execute permissions.
27806 * build-aux/config.sub: Likewise.
27807 * build-aux/gendocs.sh: Likewise.
27809 Fix frexp on mingw.
27810 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27812 * doc/functions/frexp.texi (frexp): Document the bug.
27814 Make cygwin fseeko check more reliable.
27815 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27816 version numbers, rather than unrelated feature check.
27817 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27818 * doc/functions/ftello.texi (ftello): Likewise.
27819 Reported by Bruno Haible.
27821 * m4/strerror.m4: Bump version number.
27823 2007-12-03 Bruno Haible <bruno@clisp.org>
27825 * doc/functions/mprotect.texi: Mention the mingw problem.
27827 2007-12-03 Eric Blake <ebb9@byu.net>
27829 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27830 REPLACE_STRERROR is initialized before this macro.
27832 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
27834 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
27835 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27836 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
27837 put -lsec in even for programs other than 'ls'. This fixes a problem
27838 for gettext reported by Bruno Haible in
27839 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27840 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27841 Add support for Solaris 10. This isn't efficient, but should get the
27844 2007-12-03 James Youngman <jay@gnu.org>
27846 * doc/regexprops-generic.texi: change "an close-group" to "a
27847 close-group" and "illegal" to "not allowed".
27849 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27851 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27852 pr_byname.h. Needed for the rare case when the maintainer has done
27853 "make maintainer-clean" in the source directory and then attempts a
27854 build outside the source directory.
27855 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27858 2007-12-02 Martin Lambers <marlam@marlam.de>
27859 Bruno Haible <bruno@clisp.org>
27861 * lib/getpagesize.h: Remove file.
27862 * lib/unistd.in.h: Include declaration of getpagesize here.
27863 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27864 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27866 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27867 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27868 * modules/getpagesize (Files): Remove lib/getpagesize.h.
27869 (Depends-on): Add unistd.
27870 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27871 (Include): Use <unistd.h> instead of getpagesize.h.
27872 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27873 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27874 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27875 gl_GETPAGESIZE invocation, already handled by module dependency.
27876 * lib/pagealign_alloc.c: Don't include getpagesize.h.
27878 2007-12-02 Bruno Haible <bruno@clisp.org>
27880 * modules/strings-tests: New file.
27881 * tests/test-strings.c: New file.
27883 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27884 * lib/strings.in.h: New file.
27885 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27886 * m4/strings_h.m4: New file.
27887 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27888 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27889 * modules/strings: New file.
27890 * modules/string (Makefile.am): Update.
27891 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27892 Reported by Karl Berry.
27894 2007-12-01 Eric Blake <ebb9@byu.net>
27896 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27897 accomodate fix in cygwin 1.5.25.
27899 2007-12-01 Jim Meyering <meyering@redhat.com>
27901 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27902 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27903 that would inhibit utf8-optimization of a regexp containing line-
27904 or buffer-anchors, e.g., `^', `$'.
27906 2007-11-30 Bruno Haible <bruno@clisp.org>
27908 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27909 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27910 glthread_recursive_lock_init.
27911 * lib/lock.c (glthread_recursive_lock_init)
27912 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27913 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27915 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
27917 New function qset_acl, like set_acl but with syscall semantics.
27918 * lib/acl.h (qset_acl): New decl.
27919 * lib/acl.c (qset_acl): New function.
27920 (set_acl): Use new function. Use more-consistent diagnostics.
27922 2007-11-28 Jim Meyering <meyering@redhat.com>
27924 * modules/physmem (License): Change from GPL to LGPLv2+.
27926 2007-11-26 Bruno Haible <bruno@clisp.org>
27928 * lib/vasnprintf.c (decode_long_double): Don't abort if the
27929 'long double' type has excess precision.
27930 Reported by Jim Meyering in
27931 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27933 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27935 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27936 Sync from <http://gnu.org/licenses>.
27937 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27938 with license text from same location.
27939 * doc/maintain.texi, doc/standards.texi: Sync from
27940 <http://savannah.gnu.org/projects/gnustandards>.
27942 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
27943 and Jim Meyering <meyering@redhat.com>
27945 Adjust getdate' grammar to accept a slightly more regular language.
27946 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27947 Before, the former was rejected.
27948 * lib/getdate.y (digits_to_date_time): New function, factored
27950 (number): ...here. Just call digits_to_date_time.
27951 (hybrid): New non-terminal to handle an <unsigned number,
27952 signed relative offset> sequence consistently.
27954 2007-11-18 Jim Meyering <meyering@redhat.com>
27956 Pull my changes from coreutils:
27957 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27958 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27959 use of $gnulib_tool_option_extras, so that it's separated from the
27960 preceding argument.
27962 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27963 * build-aux/bootstrap (cp_mark_as_generated): Create any required
27964 parent destination directories before copying a file into place.
27966 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
27968 bootstrap: work also with 4-argument variant of AC_INIT
27969 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27971 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
27973 Port test-getaddrinfo to Solaris.
27974 Problem reported by Bruno Haible in
27975 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27976 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27977 explanation of setting 'hints'.
27978 Don't reject an implementation merely because it returns EAI_SERVICE.
27979 (EAI_SERVICE): Define to 0 if not defined.
27981 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
27983 The license of gnu-make and posix-shell is now "GPLed build tool".
27984 * modules/gnu-make (License): Likewise.
27985 * modules/posix-shell (License): Likewise.
27987 New module posix-shell, for determining a POSIX shell
27988 or perhaps something that is close enough to a POSIX shell.
27989 * m4/posix-shell.m4: New file.
27990 * modules/posix-shell: New file.
27992 * MODULES.html.sh: Mention new module.
27994 New module gnu-make, for determining whether we're using GNU Make.
27995 * m4/gnu-make.m4: New file.
27996 * modules/gnu-make: New file.
27997 * MODULES.html.sh: Mention new module.
27999 2007-11-14 Jim Meyering <meyering@redhat.com>
28001 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28002 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28003 use this macro to create a function _definition_.
28004 Remove useless "#undef ARGMATCH_DIE".
28006 2007-11-14 Bruno Haible <bruno@clisp.org>
28008 * lib/config.charset: Update for OpenBSD 4.1.
28009 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28011 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
28013 Document 64-bit #if problems in stdint.texi.
28014 * doc/headers/stdint.texi (stdint.h): Mention problems with
28015 64-bit-#if, and how to work around them.
28017 Don't insist on 'long long int' support in the preprocessor. It
28018 breaks too many things. For example, PRIdMAX still uses a 'long
28019 long int' format with the latest Sun compiler, even though
28020 HAVE_LONG_LONG_INT isn't defined due to that compiler's
28021 preprocessor problem. This causes the latest coreutils to dump
28022 core on Solaris 10 sparc with the Sun C compiler.
28023 Instead, fix the 2007-10-16 problem in a different way, by evaluating
28024 the troublesome expressions at configure-time, not at #if-time.
28025 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28027 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28028 compile-time C checks, done at 'configure'-time.
28029 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28030 * modules/inttypes (Makefile): Substitute the new symbols that
28031 gl_INTTYPES_H now generates.
28032 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28034 2007-11-12 Bruno Haible <bruno@clisp.org>
28036 Tests for Unicode character classification functions.
28038 * modules/unictype/bidicategory-byname-tests: New file.
28039 * modules/unictype/bidicategory-name-tests: New file.
28040 * modules/unictype/bidicategory-of-tests: New file.
28041 * modules/unictype/bidicategory-test-tests: New file.
28042 * modules/unictype/block-list-tests: New file.
28043 * modules/unictype/block-of-tests: New file.
28044 * modules/unictype/block-test-tests: New file.
28045 * modules/unictype/category-C-tests: New file.
28046 * modules/unictype/category-Cc-tests: New file.
28047 * modules/unictype/category-Cf-tests: New file.
28048 * modules/unictype/category-Cn-tests: New file.
28049 * modules/unictype/category-Co-tests: New file.
28050 * modules/unictype/category-Cs-tests: New file.
28051 * modules/unictype/category-L-tests: New file.
28052 * modules/unictype/category-Ll-tests: New file.
28053 * modules/unictype/category-Lm-tests: New file.
28054 * modules/unictype/category-Lo-tests: New file.
28055 * modules/unictype/category-Lt-tests: New file.
28056 * modules/unictype/category-Lu-tests: New file.
28057 * modules/unictype/category-M-tests: New file.
28058 * modules/unictype/category-Mc-tests: New file.
28059 * modules/unictype/category-Me-tests: New file.
28060 * modules/unictype/category-Mn-tests: New file.
28061 * modules/unictype/category-N-tests: New file.
28062 * modules/unictype/category-Nd-tests: New file.
28063 * modules/unictype/category-Nl-tests: New file.
28064 * modules/unictype/category-No-tests: New file.
28065 * modules/unictype/category-P-tests: New file.
28066 * modules/unictype/category-Pc-tests: New file.
28067 * modules/unictype/category-Pd-tests: New file.
28068 * modules/unictype/category-Pe-tests: New file.
28069 * modules/unictype/category-Pf-tests: New file.
28070 * modules/unictype/category-Pi-tests: New file.
28071 * modules/unictype/category-Po-tests: New file.
28072 * modules/unictype/category-Ps-tests: New file.
28073 * modules/unictype/category-S-tests: New file.
28074 * modules/unictype/category-Sc-tests: New file.
28075 * modules/unictype/category-Sk-tests: New file.
28076 * modules/unictype/category-Sm-tests: New file.
28077 * modules/unictype/category-So-tests: New file.
28078 * modules/unictype/category-Z-tests: New file.
28079 * modules/unictype/category-Zl-tests: New file.
28080 * modules/unictype/category-Zp-tests: New file.
28081 * modules/unictype/category-Zs-tests: New file.
28082 * modules/unictype/category-and-not-tests: New file.
28083 * modules/unictype/category-and-tests: New file.
28084 * modules/unictype/category-byname-tests: New file.
28085 * modules/unictype/category-name-tests: New file.
28086 * modules/unictype/category-none-tests: New file.
28087 * modules/unictype/category-of-tests: New file.
28088 * modules/unictype/category-or-tests: New file.
28089 * modules/unictype/category-test-withtable-tests: New file.
28090 * modules/unictype/combining-class-tests: New file.
28091 * modules/unictype/ctype-alnum-tests: New file.
28092 * modules/unictype/ctype-alpha-tests: New file.
28093 * modules/unictype/ctype-blank-tests: New file.
28094 * modules/unictype/ctype-cntrl-tests: New file.
28095 * modules/unictype/ctype-digit-tests: New file.
28096 * modules/unictype/ctype-graph-tests: New file.
28097 * modules/unictype/ctype-lower-tests: New file.
28098 * modules/unictype/ctype-print-tests: New file.
28099 * modules/unictype/ctype-punct-tests: New file.
28100 * modules/unictype/ctype-space-tests: New file.
28101 * modules/unictype/ctype-upper-tests: New file.
28102 * modules/unictype/ctype-xdigit-tests: New file.
28103 * modules/unictype/decimal-digit-tests: New file.
28104 * modules/unictype/digit-tests: New file.
28105 * modules/unictype/mirror-tests: New file.
28106 * modules/unictype/numeric-tests: New file.
28107 * modules/unictype/property-alphabetic-tests: New file.
28108 * modules/unictype/property-ascii-hex-digit-tests: New file.
28109 * modules/unictype/property-bidi-arabic-digit-tests: New file.
28110 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28111 * modules/unictype/property-bidi-block-separator-tests: New file.
28112 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28113 * modules/unictype/property-bidi-common-separator-tests: New file.
28114 * modules/unictype/property-bidi-control-tests: New file.
28115 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28116 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28117 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28118 * modules/unictype/property-bidi-european-digit-tests: New file.
28119 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28120 * modules/unictype/property-bidi-left-to-right-tests: New file.
28121 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28122 * modules/unictype/property-bidi-other-neutral-tests: New file.
28123 * modules/unictype/property-bidi-pdf-tests: New file.
28124 * modules/unictype/property-bidi-segment-separator-tests: New file.
28125 * modules/unictype/property-bidi-whitespace-tests: New file.
28126 * modules/unictype/property-byname-tests: New file.
28127 * modules/unictype/property-combining-tests: New file.
28128 * modules/unictype/property-composite-tests: New file.
28129 * modules/unictype/property-currency-symbol-tests: New file.
28130 * modules/unictype/property-dash-tests: New file.
28131 * modules/unictype/property-decimal-digit-tests: New file.
28132 * modules/unictype/property-default-ignorable-code-point-tests: New file.
28133 * modules/unictype/property-deprecated-tests: New file.
28134 * modules/unictype/property-diacritic-tests: New file.
28135 * modules/unictype/property-extender-tests: New file.
28136 * modules/unictype/property-format-control-tests: New file.
28137 * modules/unictype/property-grapheme-base-tests: New file.
28138 * modules/unictype/property-grapheme-extend-tests: New file.
28139 * modules/unictype/property-grapheme-link-tests: New file.
28140 * modules/unictype/property-hex-digit-tests: New file.
28141 * modules/unictype/property-hyphen-tests: New file.
28142 * modules/unictype/property-id-continue-tests: New file.
28143 * modules/unictype/property-id-start-tests: New file.
28144 * modules/unictype/property-ideographic-tests: New file.
28145 * modules/unictype/property-ids-binary-operator-tests: New file.
28146 * modules/unictype/property-ids-trinary-operator-tests: New file.
28147 * modules/unictype/property-ignorable-control-tests: New file.
28148 * modules/unictype/property-iso-control-tests: New file.
28149 * modules/unictype/property-join-control-tests: New file.
28150 * modules/unictype/property-left-of-pair-tests: New file.
28151 * modules/unictype/property-line-separator-tests: New file.
28152 * modules/unictype/property-logical-order-exception-tests: New file.
28153 * modules/unictype/property-lowercase-tests: New file.
28154 * modules/unictype/property-math-tests: New file.
28155 * modules/unictype/property-non-break-tests: New file.
28156 * modules/unictype/property-not-a-character-tests: New file.
28157 * modules/unictype/property-numeric-tests: New file.
28158 * modules/unictype/property-other-alphabetic-tests: New file.
28159 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28160 * modules/unictype/property-other-grapheme-extend-tests: New file.
28161 * modules/unictype/property-other-id-continue-tests: New file.
28162 * modules/unictype/property-other-id-start-tests: New file.
28163 * modules/unictype/property-other-lowercase-tests: New file.
28164 * modules/unictype/property-other-math-tests: New file.
28165 * modules/unictype/property-other-uppercase-tests: New file.
28166 * modules/unictype/property-paired-punctuation-tests: New file.
28167 * modules/unictype/property-paragraph-separator-tests: New file.
28168 * modules/unictype/property-pattern-syntax-tests: New file.
28169 * modules/unictype/property-pattern-white-space-tests: New file.
28170 * modules/unictype/property-private-use-tests: New file.
28171 * modules/unictype/property-punctuation-tests: New file.
28172 * modules/unictype/property-quotation-mark-tests: New file.
28173 * modules/unictype/property-radical-tests: New file.
28174 * modules/unictype/property-sentence-terminal-tests: New file.
28175 * modules/unictype/property-soft-dotted-tests: New file.
28176 * modules/unictype/property-space-tests: New file.
28177 * modules/unictype/property-terminal-punctuation-tests: New file.
28178 * modules/unictype/property-test-tests: New file.
28179 * modules/unictype/property-titlecase-tests: New file.
28180 * modules/unictype/property-unassigned-code-value-tests: New file.
28181 * modules/unictype/property-unified-ideograph-tests: New file.
28182 * modules/unictype/property-uppercase-tests: New file.
28183 * modules/unictype/property-variation-selector-tests: New file.
28184 * modules/unictype/property-white-space-tests: New file.
28185 * modules/unictype/property-xid-continue-tests: New file.
28186 * modules/unictype/property-xid-start-tests: New file.
28187 * modules/unictype/property-zero-width-tests: New file.
28188 * modules/unictype/scripts-tests: New file.
28189 * modules/unictype/syntax-c-ident-tests: New file.
28190 * modules/unictype/syntax-c-whitespace-tests: New file.
28191 * modules/unictype/syntax-java-ident-tests: New file.
28192 * modules/unictype/syntax-java-whitespace-tests: New file.
28193 * tests/unictype/test-bidi_byname.c: New file.
28194 * tests/unictype/test-bidi_name.c: New file.
28195 * tests/unictype/test-bidi_of.c: New file.
28196 * tests/unictype/test-bidi_test.c: New file.
28197 * tests/unictype/test-block_list.c: New file.
28198 * tests/unictype/test-block_of.c: New file.
28199 * tests/unictype/test-block_test.c: New file.
28200 * tests/unictype/test-categ_and.c: New file.
28201 * tests/unictype/test-categ_and_not.c: New file.
28202 * tests/unictype/test-categ_byname.c: New file.
28203 * tests/unictype/test-categ_name.c: New file.
28204 * tests/unictype/test-categ_none.c: New file.
28205 * tests/unictype/test-categ_of.c: New file.
28206 * tests/unictype/test-categ_or.c: New file.
28207 * tests/unictype/test-categ_test_withtable.c: New file.
28208 * tests/unictype/test-combining.c: New file.
28209 * tests/unictype/test-decdigit.c: New file.
28210 * tests/unictype/test-digit.c: New file.
28211 * tests/unictype/test-mirror.c: New file.
28212 * tests/unictype/test-numeric.c: New file.
28213 * tests/unictype/test-pr_byname.c: New file.
28214 * tests/unictype/test-pr_test.c: New file.
28215 * tests/unictype/test-predicate-part1.h: New file.
28216 * tests/unictype/test-predicate-part2.h: New file.
28217 * tests/unictype/test-scripts.c: New file.
28218 * tests/unictype/test-sy_c_ident.c: New file.
28219 * tests/unictype/test-sy_java_ident.c: New file.
28221 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28223 * tests/unictype/test-categ_Cc.c: Likewise.
28224 * tests/unictype/test-categ_Cf.c: Likewise.
28225 * tests/unictype/test-categ_Cn.c: Likewise.
28226 * tests/unictype/test-categ_Co.c: Likewise.
28227 * tests/unictype/test-categ_Cs.c: Likewise.
28228 * tests/unictype/test-categ_L.c: Likewise.
28229 * tests/unictype/test-categ_Ll.c: Likewise.
28230 * tests/unictype/test-categ_Lm.c: Likewise.
28231 * tests/unictype/test-categ_Lo.c: Likewise.
28232 * tests/unictype/test-categ_Lt.c: Likewise.
28233 * tests/unictype/test-categ_Lu.c: Likewise.
28234 * tests/unictype/test-categ_M.c: Likewise.
28235 * tests/unictype/test-categ_Mc.c: Likewise.
28236 * tests/unictype/test-categ_Me.c: Likewise.
28237 * tests/unictype/test-categ_Mn.c: Likewise.
28238 * tests/unictype/test-categ_N.c: Likewise.
28239 * tests/unictype/test-categ_Nd.c: Likewise.
28240 * tests/unictype/test-categ_Nl.c: Likewise.
28241 * tests/unictype/test-categ_No.c: Likewise.
28242 * tests/unictype/test-categ_P.c: Likewise.
28243 * tests/unictype/test-categ_Pc.c: Likewise.
28244 * tests/unictype/test-categ_Pd.c: Likewise.
28245 * tests/unictype/test-categ_Pe.c: Likewise.
28246 * tests/unictype/test-categ_Pf.c: Likewise.
28247 * tests/unictype/test-categ_Pi.c: Likewise.
28248 * tests/unictype/test-categ_Po.c: Likewise.
28249 * tests/unictype/test-categ_Ps.c: Likewise.
28250 * tests/unictype/test-categ_S.c: Likewise.
28251 * tests/unictype/test-categ_Sc.c: Likewise.
28252 * tests/unictype/test-categ_Sk.c: Likewise.
28253 * tests/unictype/test-categ_Sm.c: Likewise.
28254 * tests/unictype/test-categ_So.c: Likewise.
28255 * tests/unictype/test-categ_Z.c: Likewise.
28256 * tests/unictype/test-categ_Zl.c: Likewise.
28257 * tests/unictype/test-categ_Zp.c: Likewise.
28258 * tests/unictype/test-categ_Zs.c: Likewise.
28259 * tests/unictype/test-ctype_alnum.c: Likewise.
28260 * tests/unictype/test-ctype_alpha.c: Likewise.
28261 * tests/unictype/test-ctype_blank.c: Likewise.
28262 * tests/unictype/test-ctype_cntrl.c: Likewise.
28263 * tests/unictype/test-ctype_digit.c: Likewise.
28264 * tests/unictype/test-ctype_graph.c: Likewise.
28265 * tests/unictype/test-ctype_lower.c: Likewise.
28266 * tests/unictype/test-ctype_print.c: Likewise.
28267 * tests/unictype/test-ctype_punct.c: Likewise.
28268 * tests/unictype/test-ctype_space.c: Likewise.
28269 * tests/unictype/test-ctype_upper.c: Likewise.
28270 * tests/unictype/test-ctype_xdigit.c: Likewise.
28271 * tests/unictype/test-decdigit.h: Likewise.
28272 * tests/unictype/test-digit.h: Likewise.
28273 * tests/unictype/test-numeric.h: Likewise.
28274 * tests/unictype/test-pr_alphabetic.c: Likewise.
28275 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28276 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28277 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28278 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28279 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28280 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28281 * tests/unictype/test-pr_bidi_control.c: Likewise.
28282 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28283 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28284 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28285 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28286 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28287 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28288 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28289 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28290 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28291 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28292 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28293 * tests/unictype/test-pr_combining.c: Likewise.
28294 * tests/unictype/test-pr_composite.c: Likewise.
28295 * tests/unictype/test-pr_currency_symbol.c: Likewise.
28296 * tests/unictype/test-pr_dash.c: Likewise.
28297 * tests/unictype/test-pr_decimal_digit.c: Likewise.
28298 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28299 * tests/unictype/test-pr_deprecated.c: Likewise.
28300 * tests/unictype/test-pr_diacritic.c: Likewise.
28301 * tests/unictype/test-pr_extender.c: Likewise.
28302 * tests/unictype/test-pr_format_control.c: Likewise.
28303 * tests/unictype/test-pr_grapheme_base.c: Likewise.
28304 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28305 * tests/unictype/test-pr_grapheme_link.c: Likewise.
28306 * tests/unictype/test-pr_hex_digit.c: Likewise.
28307 * tests/unictype/test-pr_hyphen.c: Likewise.
28308 * tests/unictype/test-pr_id_continue.c: Likewise.
28309 * tests/unictype/test-pr_id_start.c: Likewise.
28310 * tests/unictype/test-pr_ideographic.c: Likewise.
28311 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28312 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28313 * tests/unictype/test-pr_ignorable_control.c: Likewise.
28314 * tests/unictype/test-pr_iso_control.c: Likewise.
28315 * tests/unictype/test-pr_join_control.c: Likewise.
28316 * tests/unictype/test-pr_left_of_pair.c: Likewise.
28317 * tests/unictype/test-pr_line_separator.c: Likewise.
28318 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28319 * tests/unictype/test-pr_lowercase.c: Likewise.
28320 * tests/unictype/test-pr_math.c: Likewise.
28321 * tests/unictype/test-pr_non_break.c: Likewise.
28322 * tests/unictype/test-pr_not_a_character.c: Likewise.
28323 * tests/unictype/test-pr_numeric.c: Likewise.
28324 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28325 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28326 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28327 * tests/unictype/test-pr_other_id_continue.c: Likewise.
28328 * tests/unictype/test-pr_other_id_start.c: Likewise.
28329 * tests/unictype/test-pr_other_lowercase.c: Likewise.
28330 * tests/unictype/test-pr_other_math.c: Likewise.
28331 * tests/unictype/test-pr_other_uppercase.c: Likewise.
28332 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28333 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28334 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28335 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28336 * tests/unictype/test-pr_private_use.c: Likewise.
28337 * tests/unictype/test-pr_punctuation.c: Likewise.
28338 * tests/unictype/test-pr_quotation_mark.c: Likewise.
28339 * tests/unictype/test-pr_radical.c: Likewise.
28340 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28341 * tests/unictype/test-pr_soft_dotted.c: Likewise.
28342 * tests/unictype/test-pr_space.c: Likewise.
28343 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28344 * tests/unictype/test-pr_titlecase.c: Likewise.
28345 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28346 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28347 * tests/unictype/test-pr_uppercase.c: Likewise.
28348 * tests/unictype/test-pr_variation_selector.c: Likewise.
28349 * tests/unictype/test-pr_white_space.c: Likewise.
28350 * tests/unictype/test-pr_xid_continue.c: Likewise.
28351 * tests/unictype/test-pr_xid_start.c: Likewise.
28352 * tests/unictype/test-pr_zero_width.c: Likewise.
28353 * tests/unictype/test-sy_c_whitespace.c: Likewise.
28354 * tests/unictype/test-sy_java_whitespace.c: Likewise.
28356 2007-11-12 Bruno Haible <bruno@clisp.org>
28358 Unicode character classification functions.
28359 * lib/unictype.h: New file.
28360 * modules/unictype/base: New file.
28361 * modules/unictype/category-L: New file.
28362 * modules/unictype/category-Lu: New file.
28363 * modules/unictype/category-Ll: New file.
28364 * modules/unictype/category-Lt: New file.
28365 * modules/unictype/category-Lm: New file.
28366 * modules/unictype/category-Lo: New file.
28367 * modules/unictype/category-M: New file.
28368 * modules/unictype/category-Mn: New file.
28369 * modules/unictype/category-Mc: New file.
28370 * modules/unictype/category-Me: New file.
28371 * modules/unictype/category-N: New file.
28372 * modules/unictype/category-Nd: New file.
28373 * modules/unictype/category-Nl: New file.
28374 * modules/unictype/category-No: New file.
28375 * modules/unictype/category-P: New file.
28376 * modules/unictype/category-Pc: New file.
28377 * modules/unictype/category-Pd: New file.
28378 * modules/unictype/category-Ps: New file.
28379 * modules/unictype/category-Pe: New file.
28380 * modules/unictype/category-Pi: New file.
28381 * modules/unictype/category-Pf: New file.
28382 * modules/unictype/category-Po: New file.
28383 * modules/unictype/category-S: New file.
28384 * modules/unictype/category-Sm: New file.
28385 * modules/unictype/category-Sc: New file.
28386 * modules/unictype/category-Sk: New file.
28387 * modules/unictype/category-So: New file.
28388 * modules/unictype/category-Z: New file.
28389 * modules/unictype/category-Zs: New file.
28390 * modules/unictype/category-Zl: New file.
28391 * modules/unictype/category-Zp: New file.
28392 * modules/unictype/category-C: New file.
28393 * modules/unictype/category-Cc: New file.
28394 * modules/unictype/category-Cf: New file.
28395 * modules/unictype/category-Cs: New file.
28396 * modules/unictype/category-Co: New file.
28397 * modules/unictype/category-Cn: New file.
28398 * modules/unictype/category-or: New file.
28399 * modules/unictype/category-of: New file.
28400 * modules/unictype/category-test: New file.
28401 * modules/unictype/category-test-withtable: New file.
28402 * modules/unictype/category-byname: New file.
28403 * modules/unictype/category-none: New file.
28404 * modules/unictype/category-and: New file.
28405 * modules/unictype/category-and-not: New file.
28406 * modules/unictype/category-name: New file.
28407 * modules/unictype/combining-class: New file.
28408 * modules/unictype/category-all: New file.
28409 * modules/unictype/bidicategory-all: New file.
28410 * modules/unictype/bidicategory-byname: New file.
28411 * modules/unictype/bidicategory-name: New file.
28412 * modules/unictype/bidicategory-of: New file.
28413 * modules/unictype/bidicategory-test: New file.
28414 * modules/unictype/decimal-digit: New file.
28415 * modules/unictype/digit: New file.
28416 * modules/unictype/numeric: New file.
28417 * modules/unictype/mirror: New file.
28418 * modules/unictype/property-white-space: New file.
28419 * modules/unictype/property-alphabetic: New file.
28420 * modules/unictype/property-other-alphabetic: New file.
28421 * modules/unictype/property-not-a-character: New file.
28422 * modules/unictype/property-default-ignorable-code-point: New file.
28423 * modules/unictype/property-other-default-ignorable-code-point: New
28425 * modules/unictype/property-deprecated: New file.
28426 * modules/unictype/property-logical-order-exception: New file.
28427 * modules/unictype/property-variation-selector: New file.
28428 * modules/unictype/property-private-use: New file.
28429 * modules/unictype/property-unassigned-code-value: New file.
28430 * modules/unictype/property-uppercase: New file.
28431 * modules/unictype/property-other-uppercase: New file.
28432 * modules/unictype/property-lowercase: New file.
28433 * modules/unictype/property-other-lowercase: New file.
28434 * modules/unictype/property-titlecase: New file.
28435 * modules/unictype/property-soft-dotted: New file.
28436 * modules/unictype/property-id-start: New file.
28437 * modules/unictype/property-other-id-start: New file.
28438 * modules/unictype/property-id-continue: New file.
28439 * modules/unictype/property-other-id-continue: New file.
28440 * modules/unictype/property-xid-start: New file.
28441 * modules/unictype/property-xid-continue: New file.
28442 * modules/unictype/property-pattern-white-space: New file.
28443 * modules/unictype/property-pattern-syntax: New file.
28444 * modules/unictype/property-join-control: New file.
28445 * modules/unictype/property-grapheme-base: New file.
28446 * modules/unictype/property-grapheme-extend: New file.
28447 * modules/unictype/property-other-grapheme-extend: New file.
28448 * modules/unictype/property-grapheme-link: New file.
28449 * modules/unictype/property-bidi-control: New file.
28450 * modules/unictype/property-bidi-left-to-right: New file.
28451 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28452 * modules/unictype/property-bidi-arabic-right-to-left: New file.
28453 * modules/unictype/property-bidi-european-digit: New file.
28454 * modules/unictype/property-bidi-eur-num-separator: New file.
28455 * modules/unictype/property-bidi-eur-num-terminator: New file.
28456 * modules/unictype/property-bidi-arabic-digit: New file.
28457 * modules/unictype/property-bidi-common-separator: New file.
28458 * modules/unictype/property-bidi-block-separator: New file.
28459 * modules/unictype/property-bidi-segment-separator: New file.
28460 * modules/unictype/property-bidi-whitespace: New file.
28461 * modules/unictype/property-bidi-non-spacing-mark: New file.
28462 * modules/unictype/property-bidi-boundary-neutral: New file.
28463 * modules/unictype/property-bidi-pdf: New file.
28464 * modules/unictype/property-bidi-embedding-or-override: New file.
28465 * modules/unictype/property-bidi-other-neutral: New file.
28466 * modules/unictype/property-hex-digit: New file.
28467 * modules/unictype/property-ascii-hex-digit: New file.
28468 * modules/unictype/property-ideographic: New file.
28469 * modules/unictype/property-unified-ideograph: New file.
28470 * modules/unictype/property-radical: New file.
28471 * modules/unictype/property-ids-binary-operator: New file.
28472 * modules/unictype/property-ids-trinary-operator: New file.
28473 * modules/unictype/property-zero-width: New file.
28474 * modules/unictype/property-space: New file.
28475 * modules/unictype/property-non-break: New file.
28476 * modules/unictype/property-iso-control: New file.
28477 * modules/unictype/property-format-control: New file.
28478 * modules/unictype/property-dash: New file.
28479 * modules/unictype/property-hyphen: New file.
28480 * modules/unictype/property-punctuation: New file.
28481 * modules/unictype/property-line-separator: New file.
28482 * modules/unictype/property-paragraph-separator: New file.
28483 * modules/unictype/property-quotation-mark: New file.
28484 * modules/unictype/property-sentence-terminal: New file.
28485 * modules/unictype/property-terminal-punctuation: New file.
28486 * modules/unictype/property-currency-symbol: New file.
28487 * modules/unictype/property-math: New file.
28488 * modules/unictype/property-other-math: New file.
28489 * modules/unictype/property-paired-punctuation: New file.
28490 * modules/unictype/property-left-of-pair: New file.
28491 * modules/unictype/property-combining: New file.
28492 * modules/unictype/property-composite: New file.
28493 * modules/unictype/property-decimal-digit: New file.
28494 * modules/unictype/property-numeric: New file.
28495 * modules/unictype/property-diacritic: New file.
28496 * modules/unictype/property-extender: New file.
28497 * modules/unictype/property-ignorable-control: New file.
28498 * modules/unictype/property-test: New file.
28499 * modules/unictype/property-byname: New file.
28500 * modules/unictype/property-all: New file.
28501 * modules/unictype/scripts: New file.
28502 * modules/unictype/scripts-all: New file.
28503 * modules/unictype/block-of: New file.
28504 * modules/unictype/block-test: New file.
28505 * modules/unictype/block-list: New file.
28506 * modules/unictype/block-all: New file.
28507 * modules/unictype/syntax-c-whitespace: New file.
28508 * modules/unictype/syntax-java-whitespace: New file.
28509 * modules/unictype/syntax-c-ident: New file.
28510 * modules/unictype/syntax-java-ident: New file.
28511 * modules/unictype/ctype-alnum: New file.
28512 * modules/unictype/ctype-alpha: New file.
28513 * modules/unictype/ctype-cntrl: New file.
28514 * modules/unictype/ctype-digit: New file.
28515 * modules/unictype/ctype-graph: New file.
28516 * modules/unictype/ctype-lower: New file.
28517 * modules/unictype/ctype-print: New file.
28518 * modules/unictype/ctype-punct: New file.
28519 * modules/unictype/ctype-space: New file.
28520 * modules/unictype/ctype-upper: New file.
28521 * modules/unictype/ctype-xdigit: New file.
28522 * modules/unictype/ctype-blank: New file.
28523 * lib/unictype/bidi_byname.c: New file.
28524 * lib/unictype/bidi_name.c: New file.
28525 * lib/unictype/bidi_of.c: New file.
28526 * lib/unictype/bidi_test.c: New file.
28527 * lib/unictype/bitmap.h: New file.
28528 * lib/unictype/block_test.c: New file.
28529 * lib/unictype/blocks.c: New file.
28530 * lib/unictype/categ_C.c: New file.
28531 * lib/unictype/categ_Cc.c: New file.
28532 * lib/unictype/categ_Cf.c: New file.
28533 * lib/unictype/categ_Cn.c: New file.
28534 * lib/unictype/categ_Co.c: New file.
28535 * lib/unictype/categ_Cs.c: New file.
28536 * lib/unictype/categ_L.c: New file.
28537 * lib/unictype/categ_Ll.c: New file.
28538 * lib/unictype/categ_Lm.c: New file.
28539 * lib/unictype/categ_Lo.c: New file.
28540 * lib/unictype/categ_Lt.c: New file.
28541 * lib/unictype/categ_Lu.c: New file.
28542 * lib/unictype/categ_M.c: New file.
28543 * lib/unictype/categ_Mc.c: New file.
28544 * lib/unictype/categ_Me.c: New file.
28545 * lib/unictype/categ_Mn.c: New file.
28546 * lib/unictype/categ_N.c: New file.
28547 * lib/unictype/categ_Nd.c: New file.
28548 * lib/unictype/categ_Nl.c: New file.
28549 * lib/unictype/categ_No.c: New file.
28550 * lib/unictype/categ_P.c: New file.
28551 * lib/unictype/categ_Pc.c: New file.
28552 * lib/unictype/categ_Pd.c: New file.
28553 * lib/unictype/categ_Pe.c: New file.
28554 * lib/unictype/categ_Pf.c: New file.
28555 * lib/unictype/categ_Pi.c: New file.
28556 * lib/unictype/categ_Po.c: New file.
28557 * lib/unictype/categ_Ps.c: New file.
28558 * lib/unictype/categ_S.c: New file.
28559 * lib/unictype/categ_Sc.c: New file.
28560 * lib/unictype/categ_Sk.c: New file.
28561 * lib/unictype/categ_Sm.c: New file.
28562 * lib/unictype/categ_So.c: New file.
28563 * lib/unictype/categ_Z.c: New file.
28564 * lib/unictype/categ_Zl.c: New file.
28565 * lib/unictype/categ_Zp.c: New file.
28566 * lib/unictype/categ_Zs.c: New file.
28567 * lib/unictype/categ_and.c: New file.
28568 * lib/unictype/categ_and_not.c: New file.
28569 * lib/unictype/categ_byname.c: New file.
28570 * lib/unictype/categ_name.c: New file.
28571 * lib/unictype/categ_none.c: New file.
28572 * lib/unictype/categ_of.c: New file.
28573 * lib/unictype/categ_or.c: New file.
28574 * lib/unictype/categ_test.c: New file.
28575 * lib/unictype/combining.c: New file.
28576 * lib/unictype/ctype_alnum.c: New file.
28577 * lib/unictype/ctype_alpha.c: New file.
28578 * lib/unictype/ctype_blank.c: New file.
28579 * lib/unictype/ctype_cntrl.c: New file.
28580 * lib/unictype/ctype_digit.c: New file.
28581 * lib/unictype/ctype_graph.c: New file.
28582 * lib/unictype/ctype_lower.c: New file.
28583 * lib/unictype/ctype_print.c: New file.
28584 * lib/unictype/ctype_punct.c: New file.
28585 * lib/unictype/ctype_space.c: New file.
28586 * lib/unictype/ctype_upper.c: New file.
28587 * lib/unictype/ctype_xdigit.c: New file.
28588 * lib/unictype/decdigit.c: New file.
28589 * lib/unictype/digit.c: New file.
28590 * lib/unictype/identsyntaxmap.h: New file.
28591 * lib/unictype/mirror.c: New file.
28592 * lib/unictype/numeric.c: New file.
28593 * lib/unictype/pr_alphabetic.c: New file.
28594 * lib/unictype/pr_ascii_hex_digit.c: New file.
28595 * lib/unictype/pr_bidi_arabic_digit.c: New file.
28596 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28597 * lib/unictype/pr_bidi_block_separator.c: New file.
28598 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28599 * lib/unictype/pr_bidi_common_separator.c: New file.
28600 * lib/unictype/pr_bidi_control.c: New file.
28601 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28602 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28603 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28604 * lib/unictype/pr_bidi_european_digit.c: New file.
28605 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28606 * lib/unictype/pr_bidi_left_to_right.c: New file.
28607 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28608 * lib/unictype/pr_bidi_other_neutral.c: New file.
28609 * lib/unictype/pr_bidi_pdf.c: New file.
28610 * lib/unictype/pr_bidi_segment_separator.c: New file.
28611 * lib/unictype/pr_bidi_whitespace.c: New file.
28612 * lib/unictype/pr_byname.c: New file.
28613 * lib/unictype/pr_byname.gperf: New file.
28614 * lib/unictype/pr_combining.c: New file.
28615 * lib/unictype/pr_composite.c: New file.
28616 * lib/unictype/pr_currency_symbol.c: New file.
28617 * lib/unictype/pr_dash.c: New file.
28618 * lib/unictype/pr_decimal_digit.c: New file.
28619 * lib/unictype/pr_default_ignorable_code_point.c: New file.
28620 * lib/unictype/pr_deprecated.c: New file.
28621 * lib/unictype/pr_diacritic.c: New file.
28622 * lib/unictype/pr_extender.c: New file.
28623 * lib/unictype/pr_format_control.c: New file.
28624 * lib/unictype/pr_grapheme_base.c: New file.
28625 * lib/unictype/pr_grapheme_extend.c: New file.
28626 * lib/unictype/pr_grapheme_link.c: New file.
28627 * lib/unictype/pr_hex_digit.c: New file.
28628 * lib/unictype/pr_hyphen.c: New file.
28629 * lib/unictype/pr_id_continue.c: New file.
28630 * lib/unictype/pr_id_start.c: New file.
28631 * lib/unictype/pr_ideographic.c: New file.
28632 * lib/unictype/pr_ids_binary_operator.c: New file.
28633 * lib/unictype/pr_ids_trinary_operator.c: New file.
28634 * lib/unictype/pr_ignorable_control.c: New file.
28635 * lib/unictype/pr_iso_control.c: New file.
28636 * lib/unictype/pr_join_control.c: New file.
28637 * lib/unictype/pr_left_of_pair.c: New file.
28638 * lib/unictype/pr_line_separator.c: New file.
28639 * lib/unictype/pr_logical_order_exception.c: New file.
28640 * lib/unictype/pr_lowercase.c: New file.
28641 * lib/unictype/pr_math.c: New file.
28642 * lib/unictype/pr_non_break.c: New file.
28643 * lib/unictype/pr_not_a_character.c: New file.
28644 * lib/unictype/pr_numeric.c: New file.
28645 * lib/unictype/pr_other_alphabetic.c: New file.
28646 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28647 * lib/unictype/pr_other_grapheme_extend.c: New file.
28648 * lib/unictype/pr_other_id_continue.c: New file.
28649 * lib/unictype/pr_other_id_start.c: New file.
28650 * lib/unictype/pr_other_lowercase.c: New file.
28651 * lib/unictype/pr_other_math.c: New file.
28652 * lib/unictype/pr_other_uppercase.c: New file.
28653 * lib/unictype/pr_paired_punctuation.c: New file.
28654 * lib/unictype/pr_paragraph_separator.c: New file.
28655 * lib/unictype/pr_pattern_syntax.c: New file.
28656 * lib/unictype/pr_pattern_white_space.c: New file.
28657 * lib/unictype/pr_private_use.c: New file.
28658 * lib/unictype/pr_punctuation.c: New file.
28659 * lib/unictype/pr_quotation_mark.c: New file.
28660 * lib/unictype/pr_radical.c: New file.
28661 * lib/unictype/pr_sentence_terminal.c: New file.
28662 * lib/unictype/pr_soft_dotted.c: New file.
28663 * lib/unictype/pr_space.c: New file.
28664 * lib/unictype/pr_terminal_punctuation.c: New file.
28665 * lib/unictype/pr_test.c: New file.
28666 * lib/unictype/pr_titlecase.c: New file.
28667 * lib/unictype/pr_unassigned_code_value.c: New file.
28668 * lib/unictype/pr_unified_ideograph.c: New file.
28669 * lib/unictype/pr_uppercase.c: New file.
28670 * lib/unictype/pr_variation_selector.c: New file.
28671 * lib/unictype/pr_white_space.c: New file.
28672 * lib/unictype/pr_xid_continue.c: New file.
28673 * lib/unictype/pr_xid_start.c: New file.
28674 * lib/unictype/pr_zero_width.c: New file.
28675 * lib/unictype/scripts.c: New file.
28676 * lib/unictype/sy_c_ident.c: New file.
28677 * lib/unictype/sy_c_whitespace.c: New file.
28678 * lib/unictype/sy_java_ident.c: New file.
28679 * lib/unictype/sy_java_whitespace.c: New file.
28681 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28683 * lib/unictype/blocks.h: Likewise.
28684 * lib/unictype/categ_C.h: Likewise.
28685 * lib/unictype/categ_Cc.h: Likewise.
28686 * lib/unictype/categ_Cf.h: Likewise.
28687 * lib/unictype/categ_Cn.h: Likewise.
28688 * lib/unictype/categ_Co.h: Likewise.
28689 * lib/unictype/categ_Cs.h: Likewise.
28690 * lib/unictype/categ_L.h: Likewise.
28691 * lib/unictype/categ_Ll.h: Likewise.
28692 * lib/unictype/categ_Lm.h: Likewise.
28693 * lib/unictype/categ_Lo.h: Likewise.
28694 * lib/unictype/categ_Lt.h: Likewise.
28695 * lib/unictype/categ_Lu.h: Likewise.
28696 * lib/unictype/categ_M.h: Likewise.
28697 * lib/unictype/categ_Mc.h: Likewise.
28698 * lib/unictype/categ_Me.h: Likewise.
28699 * lib/unictype/categ_Mn.h: Likewise.
28700 * lib/unictype/categ_N.h: Likewise.
28701 * lib/unictype/categ_Nd.h: Likewise.
28702 * lib/unictype/categ_Nl.h: Likewise.
28703 * lib/unictype/categ_No.h: Likewise.
28704 * lib/unictype/categ_P.h: Likewise.
28705 * lib/unictype/categ_Pc.h: Likewise.
28706 * lib/unictype/categ_Pd.h: Likewise.
28707 * lib/unictype/categ_Pe.h: Likewise.
28708 * lib/unictype/categ_Pf.h: Likewise.
28709 * lib/unictype/categ_Pi.h: Likewise.
28710 * lib/unictype/categ_Po.h: Likewise.
28711 * lib/unictype/categ_Ps.h: Likewise.
28712 * lib/unictype/categ_S.h: Likewise.
28713 * lib/unictype/categ_Sc.h: Likewise.
28714 * lib/unictype/categ_Sk.h: Likewise.
28715 * lib/unictype/categ_Sm.h: Likewise.
28716 * lib/unictype/categ_So.h: Likewise.
28717 * lib/unictype/categ_Z.h: Likewise.
28718 * lib/unictype/categ_Zl.h: Likewise.
28719 * lib/unictype/categ_Zp.h: Likewise.
28720 * lib/unictype/categ_Zs.h: Likewise.
28721 * lib/unictype/categ_of.h: Likewise.
28722 * lib/unictype/combining.h: Likewise.
28723 * lib/unictype/ctype_alnum.h: Likewise.
28724 * lib/unictype/ctype_alpha.h: Likewise.
28725 * lib/unictype/ctype_blank.h: Likewise.
28726 * lib/unictype/ctype_cntrl.h: Likewise.
28727 * lib/unictype/ctype_digit.h: Likewise.
28728 * lib/unictype/ctype_graph.h: Likewise.
28729 * lib/unictype/ctype_lower.h: Likewise.
28730 * lib/unictype/ctype_print.h: Likewise.
28731 * lib/unictype/ctype_punct.h: Likewise.
28732 * lib/unictype/ctype_space.h: Likewise.
28733 * lib/unictype/ctype_upper.h: Likewise.
28734 * lib/unictype/ctype_xdigit.h: Likewise.
28735 * lib/unictype/decdigit.h: Likewise.
28736 * lib/unictype/digit.h: Likewise.
28737 * lib/unictype/mirror.h: Likewise.
28738 * lib/unictype/numeric.h: Likewise.
28739 * lib/unictype/pr_alphabetic.h: Likewise.
28740 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28741 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28742 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28743 * lib/unictype/pr_bidi_block_separator.h: Likewise.
28744 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28745 * lib/unictype/pr_bidi_common_separator.h: Likewise.
28746 * lib/unictype/pr_bidi_control.h: Likewise.
28747 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28748 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28749 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28750 * lib/unictype/pr_bidi_european_digit.h: Likewise.
28751 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28752 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28753 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28754 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28755 * lib/unictype/pr_bidi_pdf.h: Likewise.
28756 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28757 * lib/unictype/pr_bidi_whitespace.h: Likewise.
28758 * lib/unictype/pr_combining.h: Likewise.
28759 * lib/unictype/pr_composite.h: Likewise.
28760 * lib/unictype/pr_currency_symbol.h: Likewise.
28761 * lib/unictype/pr_dash.h: Likewise.
28762 * lib/unictype/pr_decimal_digit.h: Likewise.
28763 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28764 * lib/unictype/pr_deprecated.h: Likewise.
28765 * lib/unictype/pr_diacritic.h: Likewise.
28766 * lib/unictype/pr_extender.h: Likewise.
28767 * lib/unictype/pr_format_control.h: Likewise.
28768 * lib/unictype/pr_grapheme_base.h: Likewise.
28769 * lib/unictype/pr_grapheme_extend.h: Likewise.
28770 * lib/unictype/pr_grapheme_link.h: Likewise.
28771 * lib/unictype/pr_hex_digit.h: Likewise.
28772 * lib/unictype/pr_hyphen.h: Likewise.
28773 * lib/unictype/pr_id_continue.h: Likewise.
28774 * lib/unictype/pr_id_start.h: Likewise.
28775 * lib/unictype/pr_ideographic.h: Likewise.
28776 * lib/unictype/pr_ids_binary_operator.h: Likewise.
28777 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28778 * lib/unictype/pr_ignorable_control.h: Likewise.
28779 * lib/unictype/pr_iso_control.h: Likewise.
28780 * lib/unictype/pr_join_control.h: Likewise.
28781 * lib/unictype/pr_left_of_pair.h: Likewise.
28782 * lib/unictype/pr_line_separator.h: Likewise.
28783 * lib/unictype/pr_logical_order_exception.h: Likewise.
28784 * lib/unictype/pr_lowercase.h: Likewise.
28785 * lib/unictype/pr_math.h: Likewise.
28786 * lib/unictype/pr_non_break.h: Likewise.
28787 * lib/unictype/pr_not_a_character.h: Likewise.
28788 * lib/unictype/pr_numeric.h: Likewise.
28789 * lib/unictype/pr_other_alphabetic.h: Likewise.
28790 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28791 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28792 * lib/unictype/pr_other_id_continue.h: Likewise.
28793 * lib/unictype/pr_other_id_start.h: Likewise.
28794 * lib/unictype/pr_other_lowercase.h: Likewise.
28795 * lib/unictype/pr_other_math.h: Likewise.
28796 * lib/unictype/pr_other_uppercase.h: Likewise.
28797 * lib/unictype/pr_paired_punctuation.h: Likewise.
28798 * lib/unictype/pr_paragraph_separator.h: Likewise.
28799 * lib/unictype/pr_pattern_syntax.h: Likewise.
28800 * lib/unictype/pr_pattern_white_space.h: Likewise.
28801 * lib/unictype/pr_private_use.h: Likewise.
28802 * lib/unictype/pr_punctuation.h: Likewise.
28803 * lib/unictype/pr_quotation_mark.h: Likewise.
28804 * lib/unictype/pr_radical.h: Likewise.
28805 * lib/unictype/pr_sentence_terminal.h: Likewise.
28806 * lib/unictype/pr_soft_dotted.h: Likewise.
28807 * lib/unictype/pr_space.h: Likewise.
28808 * lib/unictype/pr_terminal_punctuation.h: Likewise.
28809 * lib/unictype/pr_titlecase.h: Likewise.
28810 * lib/unictype/pr_unassigned_code_value.h: Likewise.
28811 * lib/unictype/pr_unified_ideograph.h: Likewise.
28812 * lib/unictype/pr_uppercase.h: Likewise.
28813 * lib/unictype/pr_variation_selector.h: Likewise.
28814 * lib/unictype/pr_white_space.h: Likewise.
28815 * lib/unictype/pr_xid_continue.h: Likewise.
28816 * lib/unictype/pr_xid_start.h: Likewise.
28817 * lib/unictype/pr_zero_width.h: Likewise.
28818 * lib/unictype/scripts.h: Likewise.
28819 * lib/unictype/scripts_byname.gperf: Likewise.
28820 * lib/unictype/sy_c_ident.h: Likewise.
28821 * lib/unictype/sy_c_whitespace.h: Likewise.
28822 * lib/unictype/sy_java_ident.h: Likewise.
28823 * lib/unictype/sy_java_whitespace.h: Likewise.
28825 * lib/unictype/Makefile: New file.
28826 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28828 * lib/unictype/3level.h: New file, copied from glibc.
28829 * lib/unictype/3levelbit.h: New file.
28831 2007-11-11 Bruno Haible <bruno@clisp.org>
28833 * modules/gperf: New file.
28834 * modules/iconv_open (Depends-on): Add it.
28835 (Makefile.am): Remove the GPERF definition.
28837 2007-11-11 Bruno Haible <bruno@clisp.org>
28839 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28840 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28842 2007-11-11 Bruno Haible <bruno@clisp.org>
28844 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28845 (usage): Remove function.
28847 2007-11-11 Bruno Haible <bruno@clisp.org>
28849 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28850 gl_FUNC_CEILF_LIBS.
28851 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28853 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28854 gl_FUNC_CEILL_LIBS.
28855 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28856 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28857 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28859 2007-11-11 Bruno Haible <bruno@clisp.org>
28861 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28862 roundf were declared but do not exist on functions.
28863 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28864 roundl were declared but do not exist on functions.
28865 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28866 HAVE_FLOORL_AND_CEILL, respectively.
28867 Needed for Sun C on Solaris 10.
28869 2007-11-11 Bruno Haible <bruno@clisp.org>
28871 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28872 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28873 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28874 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28875 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28876 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28877 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28879 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28880 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28881 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28882 of HAVE_DECL_ROUND*.
28883 * modules/math (Makefile.am): Update.
28885 2007-11-10 Bruno Haible <bruno@clisp.org>
28887 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28888 ptrdiff_t as m4/intl.m4.
28890 2007-11-10 Jim Meyering <meyering@redhat.com>
28892 Avoid link failure for the argmatch test.
28893 * tests/test-argmatch.c (usage): Define function to avoid a link
28894 failure: argmatch_die requires a usage function.
28896 2007-11-09 Bruno Haible <bruno@clisp.org>
28898 * doc/functions/snprintf.texi: Mention BeOS deficiency.
28899 * doc/functions/vsnprintf.texi: Likewise.
28900 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28901 with a size argument < 2.
28903 2007-11-09 Bruno Haible <bruno@clisp.org>
28905 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28906 buffer. Fixes an inefficiency introduced on 2007-11-03.
28908 2007-11-09 Bruno Haible <bruno@clisp.org>
28910 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28911 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28913 2007-11-08 Jim Meyering <meyering@redhat.com>
28915 Change cache variable name prefix "jm_" to "gl_" everywhere.
28916 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28917 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28918 * m4/uptime.m4: s/gl_/jm_/
28920 2007-11-07 Bruno Haible <bruno@clisp.org>
28922 Update to GNU gettext 0.17.
28923 * m4/intl.m4: Update to GNU gettext 0.17.
28924 * m4/po.m4: Likewise.
28925 * modules/gettext (Files): Remove m4/ulonglong.m4.
28926 (configure.ac): Require gettext infrastructure from version 0.17.
28928 2007-11-06 Bruno Haible <bruno@clisp.org>
28930 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28931 symbolic values are not defined in a public header.
28932 * lib/freadable.c (freadable) [QNX]: Likewise.
28933 * lib/freadahead.c (freadahead) [QNX]: Likewise.
28934 * lib/freading.c (freading) [QNX]: Likewise.
28935 * lib/fseterr.c (fseterr) [QNX]: Likewise.
28936 * lib/fwritable.c (fwritable) [QNX]: Likewise.
28937 * lib/fwriting.c (fwriting) [QNX]: Likewise.
28938 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28939 Reported by Alain Magloire.
28941 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28943 2007-11-05 Bruno Haible <bruno@clisp.org>
28945 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28946 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28947 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28948 Reported by Eric Blake.
28950 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28951 Bruno Haible <bruno@clisp.org>
28953 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28954 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28955 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28956 (malloc): Undefine also before including <stdlib.h>.
28957 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28958 Needed on OSF/1 4.0.
28960 2007-11-05 Jim Meyering <meyering@redhat.com>
28962 git-version-gen: sync from coreutils.
28963 * build-aux/git-version-gen: Add comments.
28964 Change the first '-' to '.' in the snapshot version string,
28965 e.g., 6.9-377-08144 -> 6.9.377-08144
28966 Remove first parameter.
28967 Don't declare a version "-dirty" merely because a time
28970 2007-11-04 Bruno Haible <bruno@clisp.org>
28972 * lib/lock.h: Protect all macro definitions containing an 'if'
28973 statement through a "do { ... } while (0)".
28974 * lib/tls.h: Likewise.
28976 2007-11-04 Bruno Haible <bruno@clisp.org>
28978 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28980 2007-11-04 Bruno Haible <bruno@clisp.org>
28982 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28983 * modules/fprintf-posix (Depends-on): Add nocrash.
28984 * modules/snprintf-posix (Depends-on): Likewise.
28985 * modules/sprintf-posix (Depends-on): Likewise.
28986 * modules/vasnprintf-posix (Depends-on): Likewise.
28987 * modules/vasprintf-posix (Depends-on): Likewise.
28988 * modules/vfprintf-posix (Depends-on): Likewise.
28989 * modules/vsnprintf-posix (Depends-on): Likewise.
28990 * modules/vsprintf-posix (Depends-on): Likewise.
28991 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28992 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28993 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28994 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28995 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28996 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28997 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28999 2007-11-04 Bruno Haible <bruno@clisp.org>
29001 * modules/nocrash: New file.
29002 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29003 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29005 2007-11-04 Bruno Haible <bruno@clisp.org>
29007 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29008 precision handling.
29009 * tests/test-vasprintf-posix.c (test_function): Likewise.
29010 * tests/test-snprintf-posix.h (test_function): Likewise.
29011 * tests/test-sprintf-posix.h (test_function): Likewise.
29013 Fix *printf behaviour for large precisions on mingw and BeOS.
29014 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29015 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29016 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29017 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29018 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29019 gl_PRINTF_PRECISION and test its result. Invoke
29020 gl_PREREQ_VASNPRINTF_PRECISION.
29021 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29022 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29023 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29024 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29025 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29026 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29027 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29028 * doc/functions/fprintf.texi: Update.
29029 * doc/functions/printf.texi: Update.
29030 * doc/functions/snprintf.texi: Update.
29031 * doc/functions/sprintf.texi: Update.
29032 * doc/functions/vfprintf.texi: Update.
29033 * doc/functions/vprintf.texi: Update.
29034 * doc/functions/vsnprintf.texi: Update.
29035 * doc/functions/vsprintf.texi: Update.
29037 2007-11-04 Bruno Haible <bruno@clisp.org>
29039 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29041 2007-11-04 Bruno Haible <bruno@clisp.org>
29043 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29044 Reported by Sylvain Beucler <beuc@gnu.org>.
29046 2007-11-03 Bruno Haible <bruno@clisp.org>
29048 * tests/test-fprintf-posix2.sh: New file.
29049 * tests/test-fprintf-posix2.c: New file.
29050 * modules/fprintf-posix-tests (Files): Add them.
29051 (TESTS): Add test-fprintf-posix2.sh.
29052 (configure.ac): Check for getrlimit and setrlimit.
29053 (check_PROGRAMS): Add test-fprintf-posix2.
29055 * tests/test-printf-posix2.sh: New file.
29056 * tests/test-printf-posix2.c: New file.
29057 * modules/printf-posix-tests (Files): Add them.
29058 (TESTS): Add test-printf-posix2.sh.
29059 (configure.ac): Check for getrlimit and setrlimit.
29060 (check_PROGRAMS): Add test-printf-posix2.
29062 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29063 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29064 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29065 (decode_double): New function, copied from decode_long_double.
29066 (scale10_round_decimal_decoded): New function, extracted from
29067 scale10_round_decimal_long_double.
29068 (scale10_round_decimal_long_double): Use it.
29069 (scale10_round_decimal_double): New function.
29070 (floorlog10): New function.
29071 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29072 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29073 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29074 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29075 gl_PRINTF_ENOMEM and test its result. Invoke
29076 gl_PREREQ_VASNPRINTF_ENOMEM.
29077 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29078 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29079 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29080 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29081 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29082 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29083 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29084 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29085 * modules/snprintf-posix (Depends-on): Likewise.
29086 * modules/sprintf-posix (Depends-on): Likewise.
29087 * modules/vasnprintf-posix (Depends-on): Likewise.
29088 * modules/vasprintf-posix (Depends-on): Likewise.
29089 * modules/vfprintf-posix (Depends-on): Likewise.
29090 * modules/vsnprintf-posix (Depends-on): Likewise.
29091 * modules/vsprintf-posix (Depends-on): Likewise.
29092 * doc/functions/fprintf.texi: Update.
29093 * doc/functions/printf.texi: Update.
29094 * doc/functions/snprintf.texi: Update.
29095 * doc/functions/sprintf.texi: Update.
29096 * doc/functions/vfprintf.texi: Update.
29097 * doc/functions/vprintf.texi: Update.
29098 * doc/functions/vsnprintf.texi: Update.
29099 * doc/functions/vsprintf.texi: Update.
29101 2007-11-03 Bruno Haible <bruno@clisp.org>
29103 * modules/frexp-nolibm-tests: New file.
29105 * modules/frexp-nolibm: New file.
29106 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29108 2007-11-03 Bruno Haible <bruno@clisp.org>
29110 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29111 value is C99 compliant.
29112 Needed for OSF/1 5.1.
29114 2007-11-03 Bruno Haible <bruno@clisp.org>
29116 Fix out-of-memory handling of vasnprintf.
29117 * lib/printf-parse.c: Include <errno.h>.
29118 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29119 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29122 2007-11-02 Eric Blake <ebb9@byu.net>
29124 Fix tests on cygwin.
29125 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29127 2007-11-01 Bruno Haible <bruno@clisp.org>
29129 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29131 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29132 needed for POSIX compatibility.
29134 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
29136 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29137 for compatibility with GNU.
29139 2007-11-01 Bruno Haible <bruno@clisp.org>
29141 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29142 (putenv): Renamed from rpl_putenv. Change argument type from
29143 'const char *' to 'char *'.
29144 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29145 of defining putenv in config.h, just set REPLACE_PUTENV.
29146 * modules/putenv (Depends-on): Add stdlib.
29147 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29148 (Include): Use <stdlib.h>.
29149 * lib/stdlib.in.h (putenv): New declaration.
29150 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29152 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29154 Needed for MacOS X 10.5.0.
29155 Reported by Peter O'Gorman <peter@pogma.com>.
29157 2007-11-01 Jim Meyering <meyering@redhat.com>
29159 Treat an empty date string exactly like "0".
29160 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29161 if the remaining date string (to be parsed) is empty, use "0".
29162 Reported by Mischa Molhoek and discussed in this thread:
29163 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29165 2007-10-31 Bruno Haible <bruno@clisp.org>
29167 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29168 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29169 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29170 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29171 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29172 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29174 2007-10-31 Bruno Haible <bruno@clisp.org>
29176 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29177 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29178 (AC_TYPE_LONG_LONG_INT): Use it.
29179 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29181 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29183 * modules/stdint (Files): Remove m4/ulonglong.m4.
29184 * modules/strtoull (Files): Use m4/longlong.m4 instead of
29186 * modules/strtoumax (Files): Likewise.
29188 2007-10-30 Bruno Haible <bruno@clisp.org>
29190 * modules/xvasprintf-posix: New file.
29191 Suggested by Eric Blake.
29193 2007-10-30 Bruno Haible <bruno@clisp.org>
29195 * modules/xprintf-posix-tests: New file.
29196 * tests/test-xprintf-posix.sh: New file.
29197 * tests/test-xprintf-posix.c: New file.
29198 * tests/test-xfprintf-posix.c: New file.
29200 * modules/xprintf-posix: New file.
29202 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29204 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29205 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29206 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29208 2007-10-29 Bruno Haible <bruno@clisp.org>
29210 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29211 contain the special marker '_cv_'.
29212 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29213 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29214 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29215 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29216 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29217 Reported by Ralf Wildenhues.
29219 2007-10-29 Bruno Haible <bruno@clisp.org>
29221 * gnulib-tool (func_import): When --lgpl is not specified, set
29222 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29224 Reported by Simon Josefsson.
29226 2007-10-28 Bruno Haible <bruno@clisp.org>
29228 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29229 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29230 HAVE_DECL_ISFINITE.
29231 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29232 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29233 HAVE_DECL_ISFINITE.
29235 2007-10-28 Bruno Haible <bruno@clisp.org>
29237 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29238 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29240 2007-10-28 Bruno Haible <bruno@clisp.org>
29242 Fix link errors with Sun C 5.0 on Solaris 10.
29243 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29244 function is declared but not present in the compiler's libm.
29245 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29246 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29247 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29248 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29249 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29250 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29251 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29252 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29253 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29254 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29255 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29258 2007-10-28 Bruno Haible <bruno@clisp.org>
29260 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29261 gl_FUNC_FLOORL. Cache the result.
29262 (gl_FUNC_FLOORL): Use it.
29263 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29264 gl_FUNC_CEILL. Cache the result.
29265 (gl_FUNC_CEILL): Use it.
29267 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29268 gl_FUNC_FLOOR. Cache the result.
29269 (gl_FUNC_FLOOR): Use it.
29270 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29271 gl_FUNC_CEIL. Cache the result.
29272 (gl_FUNC_CEIL): Use it.
29274 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29275 gl_FUNC_FLOORF. Cache the result.
29276 (gl_FUNC_FLOORF): Use it.
29277 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29278 gl_FUNC_CEILF. Cache the result.
29279 (gl_FUNC_CEILF): Use it.
29281 2007-10-28 Bruno Haible <bruno@clisp.org>
29283 * gnulib-tool: Allow specifying the LGPL version number through
29284 --lgpl=2 or --lgpl=3.
29285 (func_usage): Document --lgpl with argument.
29286 Handle --lgpl=... arguments.
29287 (func_import): Recognize also gl_LGPL calls with an argument. When
29288 --lgpl=2 is used and the module's license is just LGPL, report an
29289 error. Set sed_transform_lib_file according to the lgpl variable. In
29290 the generated files, use --lgpl or gl_LGPL invocations with argument,
29292 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29294 * doc/gnulib-tool.texi (Modified imports): Update explanation of
29297 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29298 Bruno Haible <bruno@clisp.org>
29300 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29301 (u16_uctomb_aux): Likewise.
29302 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29304 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29306 2007-10-28 Bruno Haible <bruno@clisp.org>
29308 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29309 Invoke AM_GETTEXT_OPTION if it exists.
29310 * modules/vasprintf: Likewise.
29311 * modules/verror: Likewise.
29312 * modules/xprintf: Likewise.
29313 * modules/xvasprintf: Likewise.
29315 2007-10-27 Ben Pfaff <blp@gnu.org>
29317 * lib/math.in.h: Define isfinite macro and prototypes for
29318 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29320 * m4/math_h.m4: New substitutions for isfinite module.
29321 * lib/isfinite.c: New file.
29322 * m4/isfinite.m4: New file.
29323 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29324 * modules/isfinite: New file.
29325 * modules/isfinite-tests: New file.
29326 * tests/tests-isfinite.c: New file.
29327 * doc/functions/isfinite.texi: Mention isfinite module.
29328 * MODULES.html.sh: Mention new module.
29330 2007-10-27 Ben Pfaff <blp@gnu.org>
29332 Ralf Wildenhues reported that Tru64 4.0D declares the round
29333 functions but does not have definitions.
29334 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29335 cannot be found in any library, set the output variable to
29336 "missing" instead of "".
29337 * m4/round.m4: Also use our substitute if we cannot find round in
29338 any library, even if it is declared.
29339 * m4/roundf.m4: Likewise for roundf.
29340 * m4/roundl.m4: Likewise for roundl.
29341 * lib/math.in.h: Undefine roundf, round, roundl before defining
29342 their replacements, to allow for hypothetical systems where these
29343 may be defined as macros but not available in libraries.
29345 2007-10-27 Bruno Haible <bruno@clisp.org>
29347 * doc/gnulib.texi: Invoke @firstparagraphindent.
29348 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29350 (Source changes): New section.
29352 2007-10-26 Bruno Haible <bruno@clisp.org>
29354 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29355 borrowed from autoconf.
29357 2007-10-26 Bruno Haible <bruno@clisp.org>
29359 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29360 strerror returned the empty string. Needed on HP-UX 11.00.
29362 2007-10-24 Micah Cowan <micah@cowan.name>
29364 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
29365 * build-aux/bootstrap: Remove support for now-unnecessary option,
29366 --cvs-user, and envvars CVS_USER, CVS_RSH.
29368 2007-10-24 Jim Meyering <meyering@redhat.com>
29370 Avoid diagnostics from sha1sum when there is no cached checksum.
29371 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29372 if the po.s1 file hasn't been created yet.
29374 * build-aux/bootstrap: Sync from coreutils:
29375 2007-10-24 Jim Meyering <meyering@redhat.com>
29376 Get gnulib from the git repository, not from an obsolete cvs one.
29377 * build-aux/bootstrap: Suggestion from Micah Cowan.
29378 2007-10-04 Jim Meyering <jim@meyering.net>
29379 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29380 (update_po_files): Work also when there are no .po files in po/.
29382 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
29384 * README: Append ".git" to git and cg examples.
29385 Problem reported by Benoit Sigoure.
29387 2007-10-23 Micah Cowan <micah@cowan.name>
29389 * users.txt: Add wget.
29391 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29393 Fix linking of some unistdio tests on FreeBSD.
29394 * modules/unistdio/u16-vsnprintf-tests
29395 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29396 * modules/unistdio/u16-vsprintf-tests
29397 (test_u16_vsnprintf1_LDADD): Likewise.
29398 * modules/unistdio/u32-vsnprintf-tests
29399 (test_u32_vsnprintf1_LDADD): Likewise.
29400 * modules/unistdio/u32-vsprintf-tests
29401 (test_u32_vsprintf1_LDADD): Likewise.
29402 * modules/unistdio/u8-vsnprintf-tests
29403 (test_u8_vsnprintf1_LDADD): Likewise.
29404 * modules/unistdio/u8-vsprintf-tests
29405 (test_u8_vsprintf1_LDADD): Likewise.
29406 * modules/unistdio/ulc-vsnprintf-tests
29407 (test_ulc_vsnprintf1_LDADD): Likewise.
29408 * modules/unistdio/ulc-vsprintf-tests
29409 (test_ulc_vsprintf1_LDADD): Likewise.
29411 Fix linking of some uniconv tests on FreeBSD.
29412 * modules/uniconv/u16-conv-from-enc-tests
29413 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29414 * modules/uniconv/u16-conv-to-enc-tests
29415 (test_u16_conv_to_enc_LDADD): Likewise.
29416 * modules/uniconv/u16-strconv-from-enc-tests
29417 (test_u16_strconv_from_enc_LDADD): Likewise.
29418 * modules/uniconv/u16-strconv-to-enc-tests
29419 (test_u16_strconv_to_enc_LDADD): Likewise.
29420 * modules/uniconv/u32-conv-from-enc-tests
29421 (test_u32_conv_from_enc_LDADD): Likewise.
29422 * modules/uniconv/u32-conv-to-enc-tests
29423 (test_u32_conv_to_enc_LDADD): Likewise.
29424 * modules/uniconv/u32-strconv-from-enc-tests
29425 (test_u32_strconv_from_enc_LDADD): Likewise.
29426 * modules/uniconv/u32-strconv-to-enc-tests
29427 (test_u32_strconv_to_enc_LDADD): Likewise.
29428 * modules/uniconv/u8-conv-from-enc-tests
29429 (test_u8_conv_from_enc_LDADD): Likewise.
29430 * modules/uniconv/u8-conv-to-enc-tests
29431 (test_u8_conv_to_enc_LDADD): Likewise.
29432 * modules/uniconv/u8-strconv-from-enc-tests
29433 (test_u8_strconv_from_enc_LDADD): Likewise.
29434 * modules/uniconv/u8-strconv-to-enc-tests
29435 (test_u8_strconv_to_enc_LDADD): Likewise.
29437 2007-10-22 Bruno Haible <bruno@clisp.org>
29439 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29442 2007-10-22 Eric Blake <ebb9@byu.net>
29444 Tweak x*printf documentation.
29445 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29446 variable name and comments.
29447 Suggested by Bruno Haible.
29449 2007-10-22 Bruno Haible <bruno@clisp.org>
29451 * lib/acl.c (copy_acl): Fix file name in comment.
29453 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29455 Fix Tru64 problem with stdbool.h.
29456 * lib/stdbool.in.h (false, true):
29457 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29458 Don't declare as an enum in this situation; it runs afoul of Tru64.
29459 Problem reported by Steven M. Schweda in
29460 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29462 2007-10-22 Eric Blake <ebb9@byu.net>
29464 Also wrap vf?printf.
29465 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29466 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29467 (xvprintf, xvfprintf): New functions.
29469 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29471 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29472 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29474 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29475 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29477 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29479 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
29482 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29485 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29486 Undef `sys' after including sys/table.h, for Tru64 4.0D.
29488 * tests/test-i-ring.c: Work for C89.
29490 2007-10-22 Bruno Haible <bruno@clisp.org>
29492 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29493 -1u, in preprocessor expression, so that we don't test for the bug
29494 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
29495 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29497 2007-10-22 Eric Blake <ebb9@byu.net>
29499 * tests/test-yesno.sh: Silence stderr during test.
29501 2007-10-22 Simon Josefsson <simon@josefsson.org>
29503 * modules/crypto/gc-camellia: New file.
29505 * m4/gc-camellia.m4: New file.
29507 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29509 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29511 2007-10-22 Simon Josefsson <simon@josefsson.org>
29513 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29514 --help to stdout. Reported by sms@antinode.org (Steven
29517 2007-10-22 Simon Josefsson <simon@josefsson.org>
29519 * users.txt: Fix link to libksba.
29521 2007-10-21 Ben Pfaff <blp@gnu.org>
29523 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29524 round.c roundf implementation that depends on floorf and ceilf to
29525 be tested unconditionally.
29527 2007-10-21 Ben Pfaff <blp@gnu.org>
29529 * m4/check-libm-func.m4: Removed.
29530 * m4/check-math-lib.m4: New file.
29531 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29532 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29533 definition and lack of AC_LIBOBJ([roundf]).
29534 * m4/roundl.m4: Ditto, and similarly for roundl.
29535 * modules/round: Reference new m4 file.
29536 * modules/roundf: Ditto.
29537 * modules/roundl: Ditto.
29538 * tests/test-round2.c (main): Use ROUND instead of round.
29539 Bug report from Bruno Haible.
29541 2007-10-21 Bruno Haible <bruno@clisp.org>
29543 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29546 2007-10-21 Bruno Haible <bruno@clisp.org>
29548 * tests/test-wcwidth.c (main): Allow negative result for some control
29551 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29552 Needed on OSF/1 5.1.
29554 2007-10-21 Bruno Haible <bruno@clisp.org>
29556 * tests/test-floorf1.c: Include isnanf.h.
29557 (main): Use isnanf() instead of isnan().
29558 * tests/test-ceilf1.c: Include isnanf.h.
29559 (main): Use isnanf() instead of isnan().
29560 * tests/test-truncf1.c: Include isnanf.h.
29561 (main): Use isnanf() instead of isnan().
29562 * tests/test-roundf1.c: Include isnanf.h.
29563 (main): Use isnanf() instead of isnan().
29565 2007-10-21 Eric Blake <ebb9@byu.net>
29567 * users.txt: Update URL for m4.
29569 2007-10-21 Bruno Haible <bruno@clisp.org>
29571 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29573 2007-10-21 Bruno Haible <bruno@clisp.org>
29575 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29576 Git's management files if the CVS files are not present.
29578 2007-10-20 Bruno Haible <bruno@clisp.org>
29580 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29583 2007-10-20 Ben Pfaff <blp@gnu.org>
29585 * lib/math.in.h: Declare round, roundf, roundl if we are providing
29587 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29588 * lib/round.c: New file.
29589 * lib/roundf.c: New file.
29590 * lib/roundl.c: New file.
29591 * m4/round.m4: New file.
29592 * m4/roundf.m4: New file.
29593 * m4/roundl.m4: New file.
29594 * m4/check-libm-func-m4: New file.
29595 * modules/math: Replace round, roundf, roundl related @VARS@ in
29597 * modules/round: New file.
29598 * modules/round-tests: New file.
29599 * modules/roundf: New file.
29600 * modules/roundf-tests: New file.
29601 * modules/roundl: New file.
29602 * modules/roundl-tests: New file.
29603 * tests/test-round1.c: New file.
29604 * tests/test-round2.c: New file.
29605 * tests/test-roundf1.c: New file.
29606 * tests/test-roundf2.c: New file.
29607 * tests/test-roundl.c: New file.
29608 * doc/functions/round.texi: Mention round module.
29609 * doc/functions/roundf.texi: Mention roundf module.
29610 * doc/functions/roundl.texi: Mention roundl module.
29611 * MODULES.html.sh: Mention new modules.
29612 Thanks to Bruno Haible for suggestions.
29614 2007-10-20 Jim Meyering <meyering@redhat.com>
29616 * lib/xprintf.c: Include <config.h> unconditionally.
29618 Change xprintf's license to GPL.
29619 * modules/xprintf (License): s/LGPL/GPL/, since this module
29620 depends on modules (exit and exitfail) which are GPL.
29621 Suggestion from Bruno Haible.
29624 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29625 Use a clearer diagnostic.
29626 Patch from Bruno Haible.
29628 2007-10-20 Bruno Haible <bruno@clisp.org>
29630 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29631 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29632 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29634 2007-10-20 Bruno Haible <bruno@clisp.org>
29636 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29637 precision in the comparison result > x - 1 or similar.
29638 * tests/test-ceilf2.c (correct_result_p): Likewise.
29639 * tests/test-truncf2.c (correct_result_p): Likewise.
29640 * tests/test-trunc2.c (correct_result_p): Likewise.
29641 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29643 2007-10-20 Bruno Haible <bruno@clisp.org>
29645 * modules/ceil: New file.
29646 * m4/ceil.m4: New file.
29647 * doc/functions/ceil.texi: Mention the 'ceil' module.
29649 2007-10-20 Bruno Haible <bruno@clisp.org>
29651 * modules/floor: New file.
29652 * m4/floor.m4: New file.
29653 * doc/functions/floor.texi: Mention the 'floor' module.
29655 2007-10-20 Bruno Haible <bruno@clisp.org>
29657 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29659 * modules/floorf-tests (Depends-on): Likewise.
29660 * modules/truncf-tests (Depends-on): Likewise.
29661 * modules/trunc-tests (Depends-on): Likewise.
29662 Reported by Ben Pfaff.
29664 2007-10-19 Jim Meyering <meyering@redhat.com>
29666 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29667 Don't bother testing specific errno values. Just test ferror.
29669 New module: xprintf
29670 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29672 2007-10-19 Bruno Haible <bruno@clisp.org>
29674 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29676 * modules/javaexec (Makefile.am): Likewise.
29677 * modules/relocatable-prog (Makefile.am): Likewise.
29678 Suggested by Jim Meyering.
29680 2007-10-18 Bruno Haible <bruno@clisp.org>
29682 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29683 Reported by Jim Meyering.
29685 2007-10-18 Eric Blake <ebb9@byu.net>
29687 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29689 2007-10-18 Bruno Haible <bruno@clisp.org>
29691 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29692 the format string into writable memory. Needed in Fortify conditions.
29694 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
29695 Bruno Haible <bruno@clisp.org>
29697 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29698 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29699 * modules/trim (Depends-on): Add mbchar.
29700 (configure.ac): Add gl_FUNC_MBRTOWC.
29701 (Makefile.am): Augment lib_SOURCES.
29703 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
29705 Modify glob.c to use fstatat and dirfd, to simplify it.
29706 Suggested by Eric Blake.
29707 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29708 Don't include <stdbool.h>; not used.
29709 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29710 (link_exists_p): Simplify implementation, since we can now assume
29712 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
29714 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29716 * gnulib-tool (func_get_dependencies): Fix sed script to
29719 2007-10-17 Bruno Haible <bruno@clisp.org>
29721 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29722 allow locale names without encoding suffix.
29723 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29724 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29726 2007-10-16 Bruno Haible <bruno@clisp.org>
29728 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29729 * lib/getgroups.c (getgroups): Likewise.
29730 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29732 2007-10-16 Bruno Haible <bruno@clisp.org>
29734 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29735 * modules/malloc-posix (License): Likewise.
29736 * modules/realloc-posix (License): Likewise.
29737 * modules/calloc-posix (License): Likewise.
29738 * modules/intprops (License): Change from GPL to LGPL, with
29739 Paul Eggert's approval.
29741 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29743 Merge glibc changes into lib/glob.c.
29745 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29746 2007-10-15 04:59:03 UTC. Here are the changes:
29748 2007-10-14 Ulrich Drepper <drepper@redhat.com>
29750 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29752 * lib/glob.c: Add some branch prediction throughout.
29754 2007-10-07 Ulrich Drepper <drepper@redhat.com>
29757 * lib/glob.c (glob): Recognize patterns starting \/.
29759 2007-02-14 Jakub Jelinek <jakub@redhat.com>
29762 * lib/glob.c (attribute_hidden): Define if not defined.
29763 (glob): Unescape dirname, filename or username when needed and not
29764 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
29765 is NULL. Handle unescaped [ in pattern without closing ].
29766 Don't pass GLOB_CHECK down to recursive glob for directories.
29767 (__glob_pattern_type): New function.
29768 (__glob_pattern_p): Implement using __glob_pattern_type.
29769 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29770 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29771 Remove unreachable code.
29773 2006-09-30 Ulrich Drepper <drepper@redhat.com>
29775 * lib/glob.c (glob_in_dir): Add some comments and asserts to
29776 explain why there are no leaks.
29778 2006-09-25 Jakub Jelinek <jakub@redhat.com>
29781 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29782 time, rather allocate increasingly bigger arrays of pointers, if
29783 possible with alloca, if too large with malloc.
29785 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29787 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29788 Problem reported by H.Merijn Brand in
29789 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29790 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29791 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29793 2007-10-15 Bruno Haible <bruno@clisp.org>
29795 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29796 with explicit rpl_ prefix.
29797 * lib/fopen.c (fopen): Likewise.
29798 * lib/freopen.c (freopen): Likewise.
29799 * lib/iconv.c (iconv): Likewise.
29800 * lib/iconv_close.c (iconv_close): Likewise.
29802 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29804 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29806 2007-10-15 Bruno Haible <bruno@clisp.org>
29808 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29809 <stddef.h> instead of <stdlib.h> since we only need NULL.
29810 Reported by Ben Pfaff <blp@cs.stanford.edu>.
29812 2007-10-15 Bruno Haible <bruno@clisp.org>
29814 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29815 Replace paragraph talking about LIBOBJS.
29816 Reported by Colin Watson <cjwatson@debian.org>.
29818 2007-10-15 Bruno Haible <bruno@clisp.org>
29820 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29821 <stdlib.h> before using NULL.
29823 2007-10-15 Simon Josefsson <simon@josefsson.org>
29825 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29826 Reported by Albert Chin <china@thewrittenword.com>.
29828 2007-10-14 Bruno Haible <bruno@clisp.org>
29830 * modules/iconv_open-utf-tests: New file.
29831 * tests/test-iconv-utf.c: New file.
29833 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29834 * modules/iconv_open-utf: New file.
29835 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29836 (iconv, iconv_close): New declarations.
29837 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29839 (iconv_open): Add special handling of conversion between UTF-8 and
29840 UTF-{16,32}{BE,LE}.
29841 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29842 * lib/iconv_close.c: New file.
29843 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29844 gl_FUNC_ICONV_OPEN.
29845 (gl_FUNC_ICONV_OPEN): Use it.
29846 (gl_FUNC_ICONV_OPEN_UTF): New macro.
29847 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29848 and REPLACE_ICONV_UTF.
29849 * modules/iconv_open (Depends-on): Add c-strcase.
29850 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29852 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29854 2007-10-13 Albert Chin <china@thewrittenword.com>
29855 Bruno Haible <bruno@clisp.org>
29857 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29858 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29860 2007-10-13 Bruno Haible <bruno@clisp.org>
29862 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29863 defined, use the ISO C99 inline semantics.
29864 * lib/argp.h (ARGP_EI): Likewise.
29866 2007-10-13 Bruno Haible <bruno@clisp.org>
29868 Handle 'inline' change in gcc 4.3.0.
29869 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29870 argp_fmtstream_write, argp_fmtstream_set_lmargin,
29871 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29872 argp_fmtstream_point): Disable 'extern' declaration if the function
29873 definition is going to be provided inline.
29874 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29875 semantics, not the ISO C99 inline semantics.
29876 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29877 'extern' declaration if the function definition is going to be provided
29879 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29880 the GNU C inline semantics, not the ISO C99 inline semantics. With
29881 GCC 4.2, avoid a warning.
29883 2007-10-13 Bruno Haible <bruno@clisp.org>
29885 * lib/freading.h (freading): Enable the use of __freading for
29887 * lib/freading.c (freading): Likewise.
29889 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
29891 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29892 "warning: C99 inline functions are not supported; using GNU89".
29894 2007-10-12 Bruno Haible <bruno@clisp.org>
29896 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29898 * tests/test-ceilf2.c: New file.
29899 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29901 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29902 * modules/ceilf-tests: Update.
29904 2007-10-12 Bruno Haible <bruno@clisp.org>
29906 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29908 * tests/test-floorf2.c: New file.
29909 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29911 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29912 * modules/floorf-tests: Update.
29914 2007-10-12 Bruno Haible <bruno@clisp.org>
29916 * tests/test-trunc2.c: New file.
29917 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29919 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29920 * modules/trunc-tests: Update.
29922 2007-10-12 Bruno Haible <bruno@clisp.org>
29924 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29926 * tests/test-truncf2.c: New file.
29927 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29929 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29930 * modules/truncf-tests: Update.
29932 2007-10-11 Eric Blake <ebb9@byu.net>
29934 Don't claim strerror is broken on Interix.
29935 * doc/functions/strerror.texi (strerror): Known broken systems are
29936 now Solaris 8, and not Interix.
29937 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29938 Interix on cross-compile.
29939 Reported by Martin Koeppe in
29940 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29942 2007-10-11 Bruno Haible <bruno@clisp.org>
29944 * modules/i-ring-tests: New file.
29945 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29948 2007-10-11 Bruno Haible <bruno@clisp.org>
29950 * modules/filenamecat-tests: New file.
29951 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29952 * lib/filenamecat.c: Remove test code.
29954 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
29956 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29958 * lib/strerror.c: Include <string.h> always, to test interface,
29959 and to remove the need for the dummy.
29960 Include intprops.h to compute width instead of doing it ourselves
29961 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29962 (strerror): Define it to return NULL if there's no system strerror.
29963 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29964 Omit !HAVE_STRERROR code. We don't need to worry about supporting
29965 ancient pre-strerror Unix systems well any more. Saying "unknown
29966 system error" is enough.
29967 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29968 simpler strerror.c implementation.
29969 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29970 Simplify the tests to reflect the simpler strerror implementation.
29971 * modules/strerror (Depends-on): Add intprops.
29973 2007-10-09 Eric Blake <ebb9@byu.net>
29975 Silence test-fpending.
29976 * modules/fpending-tests (Files): Add wrapper script.
29977 * tests/test-fpending.sh: New file.
29979 2007-10-09 Bruno Haible <bruno@clisp.org>
29981 * MODULES.html.sh (func_module): Don't create a hyperlink for
29982 function names like 'printf_frexp'.
29983 (Misc): Add crc, memxor.
29984 (Characteristics of floating types): New section.
29985 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29986 isnanf-nolibm, signbit, trunc, truncf, truncl.
29987 (Enhancements for ISO C 99 functions): New subsection Input/output.
29988 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29989 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29990 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29991 (Compatibility checks for POSIX:2001 functions): Add clock-time.
29992 (Enhancements for POSIX:2001 functions): Add chdir-long.
29993 (File system functions): Add areadlink, chdir-safer, read-file.
29994 Remove cycle-check.
29995 (File system as inode set): New section.
29996 (Date and time): Add gethrxtime.
29997 (Multithreading): Add openmp.
29998 (Internationalization functions): Add localename.
29999 (Unicode string functions): Add unistr/u*-mbsnlen.
30000 (Support for maintaining and releasing projects): Add git-version-gen.
30001 (Lone files): Remove directories.
30003 2007-10-08 Ben Pfaff <blp@gnu.org>
30005 * lib/xmalloca.h: Fix typo in comment.
30007 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
30009 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30010 when avoiding problems with integer overflow. Use a portable test
30013 2007-10-08 Simon Josefsson <simon@josefsson.org>
30015 * modules/dummy (License): Change to LGPLv2+.
30016 * modules/float (License): Likewise
30017 * modules/realloc (License): Likewise
30018 * modules/stdlib (License): Likewise
30020 2007-10-07 Bruno Haible <bruno@clisp.org>
30022 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30023 * floor.c (TWO_MANT_DIG): Likewise.
30024 * ceil.c (TWO_MANT_DIG): Likewise.
30025 Reported by Ben Pfaff.
30027 2007-10-07 Bruno Haible <bruno@clisp.org>
30029 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30030 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30031 * lib/frexp.c (FUNC): Likewise.
30032 * lib/printf-frexp.h (printf_frexp): Likewise.
30033 * lib/printf-frexpl.h (printf_frexpl): Likewise.
30034 * lib/printf-frexp.c (FUNC): Likewise.
30035 Suggested by Jim Meyering.
30037 2007-10-07 Jim Meyering <meyering@redhat.com>
30039 Make xnanosleep's integer overflow test more robust.
30040 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30041 so that gcc-4.3.0 doesn't optimize away this test for overflow.
30043 2007-10-07 Bruno Haible <bruno@clisp.org>
30045 * NEWS: Mention the license change.
30047 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30048 abbreviations in the modules files.
30050 Change copyright notice from GPLv2+ to GPLv3+.
30051 * README: Change copyright notice.
30052 * MODULES.html.sh: Likewise.
30053 * build-aux/bootstrap.conf: Likewise.
30054 * build-aux/config.libpath: Likewise.
30055 * build-aux/csharpcomp.sh.in: Likewise.
30056 * build-aux/csharpexec.sh.in: Likewise.
30057 * build-aux/install-reloc: Likewise.
30058 * build-aux/javacomp.sh.in: Likewise.
30059 * build-aux/javaexec.sh.in: Likewise.
30060 * build-aux/ldd.sh.in: Likewise.
30061 * build-aux/reloc-ldflags: Likewise.
30062 * build-aux/relocatable.sh.in: Likewise.
30063 * build-aux/x-to-1.in: Likewise.
30064 * check-module: Likewise.
30065 * config/srclistvars.sh: Likewise.
30066 * gnulib-tool: Likewise.
30067 * lib/acl-internal.h: Likewise.
30068 * lib/acl.c: Likewise.
30069 * lib/acl.h: Likewise.
30070 * lib/acl_entries.c: Likewise.
30071 * lib/areadlink-with-size.c: Likewise.
30072 * lib/areadlink.c: Likewise.
30073 * lib/areadlink.h: Likewise.
30074 * lib/argmatch.c: Likewise.
30075 * lib/argmatch.h: Likewise.
30076 * lib/argp-ba.c: Likewise.
30077 * lib/argp-eexst.c: Likewise.
30078 * lib/argp-fmtstream.c: Likewise.
30079 * lib/argp-fmtstream.h: Likewise.
30080 * lib/argp-fs-xinl.c: Likewise.
30081 * lib/argp-help.c: Likewise.
30082 * lib/argp-namefrob.h: Likewise.
30083 * lib/argp-parse.c: Likewise.
30084 * lib/argp-pin.c: Likewise.
30085 * lib/argp-pv.c: Likewise.
30086 * lib/argp-pvh.c: Likewise.
30087 * lib/argp-xinl.c: Likewise.
30088 * lib/argp.h: Likewise.
30089 * lib/at-func.c: Likewise.
30090 * lib/atanl.c: Likewise.
30091 * lib/backupfile.c: Likewise.
30092 * lib/backupfile.h: Likewise.
30093 * lib/basename.c: Likewise.
30094 * lib/binary-io.h: Likewise.
30095 * lib/byteswap.in.h: Likewise.
30096 * lib/c-stack.c: Likewise.
30097 * lib/c-stack.h: Likewise.
30098 * lib/c-strcasestr.c: Likewise.
30099 * lib/c-strcasestr.h: Likewise.
30100 * lib/c-strstr.c: Likewise.
30101 * lib/c-strstr.h: Likewise.
30102 * lib/c-strtod.c: Likewise.
30103 * lib/calloc.c: Likewise.
30104 * lib/canon-host.c: Likewise.
30105 * lib/canon-host.h: Likewise.
30106 * lib/canonicalize-lgpl.c: Likewise.
30107 * lib/canonicalize.c: Likewise.
30108 * lib/canonicalize.h: Likewise.
30109 * lib/ceil.c: Likewise.
30110 * lib/ceilf.c: Likewise.
30111 * lib/ceill.c: Likewise.
30112 * lib/chdir-long.c: Likewise.
30113 * lib/chdir-long.h: Likewise.
30114 * lib/chdir-safer.c: Likewise.
30115 * lib/chdir-safer.h: Likewise.
30116 * lib/chown.c: Likewise.
30117 * lib/classpath.c: Likewise.
30118 * lib/classpath.h: Likewise.
30119 * lib/clean-temp.c: Likewise.
30120 * lib/clean-temp.h: Likewise.
30121 * lib/cloexec.c: Likewise.
30122 * lib/close-stream.c: Likewise.
30123 * lib/closein.c: Likewise.
30124 * lib/closein.h: Likewise.
30125 * lib/closeout.c: Likewise.
30126 * lib/closeout.h: Likewise.
30127 * lib/concat-filename.c: Likewise.
30128 * lib/copy-file.c: Likewise.
30129 * lib/copy-file.h: Likewise.
30130 * lib/count-one-bits.h: Likewise.
30131 * lib/crc.c: Likewise.
30132 * lib/crc.h: Likewise.
30133 * lib/creat-safer.c: Likewise.
30134 * lib/csharpcomp.c: Likewise.
30135 * lib/csharpcomp.h: Likewise.
30136 * lib/csharpexec.c: Likewise.
30137 * lib/csharpexec.h: Likewise.
30138 * lib/cycle-check.c: Likewise.
30139 * lib/cycle-check.h: Likewise.
30140 * lib/diacrit.c: Likewise.
30141 * lib/diacrit.h: Likewise.
30142 * lib/diffseq.h: Likewise.
30143 * lib/dirchownmod.c: Likewise.
30144 * lib/dirent.in.h: Likewise.
30145 * lib/dirfd.c: Likewise.
30146 * lib/dirfd.h: Likewise.
30147 * lib/dirname.c: Likewise.
30148 * lib/dirname.h: Likewise.
30149 * lib/dummy.c: Likewise.
30150 * lib/dup-safer.c: Likewise.
30151 * lib/dup2.c: Likewise.
30152 * lib/eealloc.h: Likewise.
30153 * lib/error.c: Likewise.
30154 * lib/error.h: Likewise.
30155 * lib/euidaccess.c: Likewise.
30156 * lib/exclude.c: Likewise.
30157 * lib/exclude.h: Likewise.
30158 * lib/execute.c: Likewise.
30159 * lib/execute.h: Likewise.
30160 * lib/exitfail.c: Likewise.
30161 * lib/exitfail.h: Likewise.
30162 * lib/expl.c: Likewise.
30163 * lib/fatal-signal.c: Likewise.
30164 * lib/fatal-signal.h: Likewise.
30165 * lib/fbufmode.c: Likewise.
30166 * lib/fbufmode.h: Likewise.
30167 * lib/fchdir.c: Likewise.
30168 * lib/fchmodat.c: Likewise.
30169 * lib/fchownat.c: Likewise.
30170 * lib/fcntl--.h: Likewise.
30171 * lib/fcntl-safer.h: Likewise.
30172 * lib/fcntl.in.h: Likewise.
30173 * lib/fd-safer.c: Likewise.
30174 * lib/fflush.c: Likewise.
30175 * lib/file-has-acl.c: Likewise.
30176 * lib/file-set.c: Likewise.
30177 * lib/file-type.c: Likewise.
30178 * lib/file-type.h: Likewise.
30179 * lib/fileblocks.c: Likewise.
30180 * lib/filemode.c: Likewise.
30181 * lib/filemode.h: Likewise.
30182 * lib/filename.h: Likewise.
30183 * lib/filenamecat.c: Likewise.
30184 * lib/filenamecat.h: Likewise.
30185 * lib/findprog.c: Likewise.
30186 * lib/findprog.h: Likewise.
30187 * lib/float.in.h: Likewise.
30188 * lib/floor.c: Likewise.
30189 * lib/floorf.c: Likewise.
30190 * lib/floorl.c: Likewise.
30191 * lib/fopen-safer.c: Likewise.
30192 * lib/fopen.c: Likewise.
30193 * lib/fpending.c: Likewise.
30194 * lib/fpending.h: Likewise.
30195 * lib/fprintf.c: Likewise.
30196 * lib/fprintftime.h: Likewise.
30197 * lib/fpucw.h: Likewise.
30198 * lib/fpurge.c: Likewise.
30199 * lib/fpurge.h: Likewise.
30200 * lib/freadable.c: Likewise.
30201 * lib/freadable.h: Likewise.
30202 * lib/freadahead.c: Likewise.
30203 * lib/freadahead.h: Likewise.
30204 * lib/freading.c: Likewise.
30205 * lib/freading.h: Likewise.
30206 * lib/free.c: Likewise.
30207 * lib/freopen.c: Likewise.
30208 * lib/frexp.c: Likewise.
30209 * lib/frexpl.c: Likewise.
30210 * lib/fseek.c: Likewise.
30211 * lib/fseterr.c: Likewise.
30212 * lib/fseterr.h: Likewise.
30213 * lib/fstatat.c: Likewise.
30214 * lib/fstrcmp.c: Likewise.
30215 * lib/fstrcmp.h: Likewise.
30216 * lib/fsusage.c: Likewise.
30217 * lib/fsusage.h: Likewise.
30218 * lib/ftell.c: Likewise.
30219 * lib/ftello.c: Likewise.
30220 * lib/fts-cycle.c: Likewise.
30221 * lib/fts.c: Likewise.
30222 * lib/fts_.h: Likewise.
30223 * lib/full-read.c: Likewise.
30224 * lib/full-read.h: Likewise.
30225 * lib/full-write.c: Likewise.
30226 * lib/full-write.h: Likewise.
30227 * lib/fwritable.c: Likewise.
30228 * lib/fwritable.h: Likewise.
30229 * lib/fwriteerror.c: Likewise.
30230 * lib/fwriteerror.h: Likewise.
30231 * lib/fwriting.c: Likewise.
30232 * lib/fwriting.h: Likewise.
30233 * lib/gcd.c: Likewise.
30234 * lib/gcd.h: Likewise.
30235 * lib/getcwd.c: Likewise.
30236 * lib/getdate.h: Likewise.
30237 * lib/getdate.y: Likewise.
30238 * lib/getdomainname.c: Likewise.
30239 * lib/getdomainname.h: Likewise.
30240 * lib/getgroups.c: Likewise.
30241 * lib/gethostname.c: Likewise.
30242 * lib/gethrxtime.c: Likewise.
30243 * lib/gethrxtime.h: Likewise.
30244 * lib/getloadavg.c: Likewise.
30245 * lib/getndelim2.c: Likewise.
30246 * lib/getndelim2.h: Likewise.
30247 * lib/getnline.c: Likewise.
30248 * lib/getnline.h: Likewise.
30249 * lib/getopt.c: Likewise.
30250 * lib/getopt.in.h: Likewise.
30251 * lib/getopt1.c: Likewise.
30252 * lib/getopt_int.h: Likewise.
30253 * lib/getpagesize.h: Likewise.
30254 * lib/getsubopt.c: Likewise.
30255 * lib/gettime.c: Likewise.
30256 * lib/getugroups.c: Likewise.
30257 * lib/getugroups.h: Likewise.
30258 * lib/getusershell.c: Likewise.
30259 * lib/gl_anyavltree_list1.h: Likewise.
30260 * lib/gl_anyavltree_list2.h: Likewise.
30261 * lib/gl_anyhash_list1.h: Likewise.
30262 * lib/gl_anyhash_list2.h: Likewise.
30263 * lib/gl_anylinked_list1.h: Likewise.
30264 * lib/gl_anylinked_list2.h: Likewise.
30265 * lib/gl_anyrbtree_list1.h: Likewise.
30266 * lib/gl_anyrbtree_list2.h: Likewise.
30267 * lib/gl_anytree_list1.h: Likewise.
30268 * lib/gl_anytree_list2.h: Likewise.
30269 * lib/gl_anytree_oset.h: Likewise.
30270 * lib/gl_anytreehash_list1.h: Likewise.
30271 * lib/gl_anytreehash_list2.h: Likewise.
30272 * lib/gl_array_list.c: Likewise.
30273 * lib/gl_array_list.h: Likewise.
30274 * lib/gl_array_oset.c: Likewise.
30275 * lib/gl_array_oset.h: Likewise.
30276 * lib/gl_avltree_list.c: Likewise.
30277 * lib/gl_avltree_list.h: Likewise.
30278 * lib/gl_avltree_oset.c: Likewise.
30279 * lib/gl_avltree_oset.h: Likewise.
30280 * lib/gl_avltreehash_list.c: Likewise.
30281 * lib/gl_avltreehash_list.h: Likewise.
30282 * lib/gl_carray_list.c: Likewise.
30283 * lib/gl_carray_list.h: Likewise.
30284 * lib/gl_linked_list.c: Likewise.
30285 * lib/gl_linked_list.h: Likewise.
30286 * lib/gl_linkedhash_list.c: Likewise.
30287 * lib/gl_linkedhash_list.h: Likewise.
30288 * lib/gl_list.c: Likewise.
30289 * lib/gl_list.h: Likewise.
30290 * lib/gl_oset.c: Likewise.
30291 * lib/gl_oset.h: Likewise.
30292 * lib/gl_rbtree_list.c: Likewise.
30293 * lib/gl_rbtree_list.h: Likewise.
30294 * lib/gl_rbtree_oset.c: Likewise.
30295 * lib/gl_rbtree_oset.h: Likewise.
30296 * lib/gl_rbtreehash_list.c: Likewise.
30297 * lib/gl_rbtreehash_list.h: Likewise.
30298 * lib/gl_sublist.c: Likewise.
30299 * lib/gl_sublist.h: Likewise.
30300 * lib/group-member.c: Likewise.
30301 * lib/group-member.h: Likewise.
30302 * lib/hard-locale.c: Likewise.
30303 * lib/hard-locale.h: Likewise.
30304 * lib/hash-pjw.c: Likewise.
30305 * lib/hash-pjw.h: Likewise.
30306 * lib/hash-triple.c: Likewise.
30307 * lib/hash.c: Likewise.
30308 * lib/hash.h: Likewise.
30309 * lib/human.c: Likewise.
30310 * lib/human.h: Likewise.
30311 * lib/i-ring.c: Likewise.
30312 * lib/i-ring.h: Likewise.
30313 * lib/idcache.c: Likewise.
30314 * lib/imaxabs.c: Likewise.
30315 * lib/imaxdiv.c: Likewise.
30316 * lib/inet_pton.c: Likewise.
30317 * lib/inet_pton.h: Likewise.
30318 * lib/intprops.h: Likewise.
30319 * lib/inttostr.c: Likewise.
30320 * lib/inttostr.h: Likewise.
30321 * lib/inttypes.in.h: Likewise.
30322 * lib/isapipe.c: Likewise.
30323 * lib/isdir.c: Likewise.
30324 * lib/isnan.c: Likewise.
30325 * lib/isnan.h: Likewise.
30326 * lib/isnanf.c: Likewise.
30327 * lib/isnanf.h: Likewise.
30328 * lib/isnanl-nolibm.h: Likewise.
30329 * lib/isnanl.c: Likewise.
30330 * lib/isnanl.h: Likewise.
30331 * lib/javacomp.c: Likewise.
30332 * lib/javacomp.h: Likewise.
30333 * lib/javaexec.c: Likewise.
30334 * lib/javaexec.h: Likewise.
30335 * lib/javaversion.c: Likewise.
30336 * lib/javaversion.h: Likewise.
30337 * lib/javaversion.java: Likewise.
30338 * lib/lbrkprop.h: Likewise.
30339 * lib/lchmod.h: Likewise.
30340 * lib/lchown.c: Likewise.
30341 * lib/ldexpl.c: Likewise.
30342 * lib/linebreak.c: Likewise.
30343 * lib/linebreak.h: Likewise.
30344 * lib/linebuffer.c: Likewise.
30345 * lib/linebuffer.h: Likewise.
30346 * lib/locale.in.h: Likewise.
30347 * lib/logl.c: Likewise.
30348 * lib/long-options.c: Likewise.
30349 * lib/long-options.h: Likewise.
30350 * lib/lstat.c: Likewise.
30351 * lib/lstat.h: Likewise.
30352 * lib/math.in.h: Likewise.
30353 * lib/mbchar.c: Likewise.
30354 * lib/mbchar.h: Likewise.
30355 * lib/mbfile.h: Likewise.
30356 * lib/mbiter.h: Likewise.
30357 * lib/mbscasecmp.c: Likewise.
30358 * lib/mbscasestr.c: Likewise.
30359 * lib/mbschr.c: Likewise.
30360 * lib/mbscspn.c: Likewise.
30361 * lib/mbslen.c: Likewise.
30362 * lib/mbsncasecmp.c: Likewise.
30363 * lib/mbsnlen.c: Likewise.
30364 * lib/mbspbrk.c: Likewise.
30365 * lib/mbspcasecmp.c: Likewise.
30366 * lib/mbsrchr.c: Likewise.
30367 * lib/mbssep.c: Likewise.
30368 * lib/mbsspn.c: Likewise.
30369 * lib/mbsstr.c: Likewise.
30370 * lib/mbstok_r.c: Likewise.
30371 * lib/mbswidth.c: Likewise.
30372 * lib/mbswidth.h: Likewise.
30373 * lib/mbuiter.h: Likewise.
30374 * lib/memcasecmp.c: Likewise.
30375 * lib/memcasecmp.h: Likewise.
30376 * lib/memchr.c: Likewise.
30377 * lib/memcmp.c: Likewise.
30378 * lib/memcoll.c: Likewise.
30379 * lib/memcoll.h: Likewise.
30380 * lib/memcpy.c: Likewise.
30381 * lib/memrchr.c: Likewise.
30382 * lib/mkancesdirs.c: Likewise.
30383 * lib/mkdir-p.c: Likewise.
30384 * lib/mkdir-p.h: Likewise.
30385 * lib/mkdir.c: Likewise.
30386 * lib/mkdirat.c: Likewise.
30387 * lib/mkdtemp.c: Likewise.
30388 * lib/mkstemp-safer.c: Likewise.
30389 * lib/mkstemp.c: Likewise.
30390 * lib/modechange.c: Likewise.
30391 * lib/modechange.h: Likewise.
30392 * lib/mountlist.c: Likewise.
30393 * lib/mountlist.h: Likewise.
30394 * lib/mpsort.c: Likewise.
30395 * lib/nanosleep.c: Likewise.
30396 * lib/obstack.c: Likewise.
30397 * lib/obstack.h: Likewise.
30398 * lib/open-safer.c: Likewise.
30399 * lib/open.c: Likewise.
30400 * lib/openat-die.c: Likewise.
30401 * lib/openat-priv.h: Likewise.
30402 * lib/openat-proc.c: Likewise.
30403 * lib/openat.c: Likewise.
30404 * lib/openat.h: Likewise.
30405 * lib/pagealign_alloc.c: Likewise.
30406 * lib/pagealign_alloc.h: Likewise.
30407 * lib/physmem.c: Likewise.
30408 * lib/physmem.h: Likewise.
30409 * lib/pipe-safer.c: Likewise.
30410 * lib/pipe.c: Likewise.
30411 * lib/pipe.h: Likewise.
30412 * lib/posixtm.c: Likewise.
30413 * lib/posixtm.h: Likewise.
30414 * lib/posixver.c: Likewise.
30415 * lib/printf-frexp.c: Likewise.
30416 * lib/printf-frexp.h: Likewise.
30417 * lib/printf-frexpl.c: Likewise.
30418 * lib/printf-frexpl.h: Likewise.
30419 * lib/printf.c: Likewise.
30420 * lib/progname.c: Likewise.
30421 * lib/progname.h: Likewise.
30422 * lib/progreloc.c: Likewise.
30423 * lib/putenv.c: Likewise.
30424 * lib/quote.c: Likewise.
30425 * lib/quote.h: Likewise.
30426 * lib/quotearg.c: Likewise.
30427 * lib/quotearg.h: Likewise.
30428 * lib/raise.c: Likewise.
30429 * lib/readline.c: Likewise.
30430 * lib/readline.h: Likewise.
30431 * lib/readlink.c: Likewise.
30432 * lib/readtokens.c: Likewise.
30433 * lib/readtokens.h: Likewise.
30434 * lib/readtokens0.c: Likewise.
30435 * lib/readtokens0.h: Likewise.
30436 * lib/readutmp.c: Likewise.
30437 * lib/readutmp.h: Likewise.
30438 * lib/realloc.c: Likewise.
30439 * lib/relocwrapper.c: Likewise.
30440 * lib/rename-dest-slash.c: Likewise.
30441 * lib/rename.c: Likewise.
30442 * lib/rmdir.c: Likewise.
30443 * lib/rpmatch.c: Likewise.
30444 * lib/safe-read.c: Likewise.
30445 * lib/safe-read.h: Likewise.
30446 * lib/safe-write.c: Likewise.
30447 * lib/safe-write.h: Likewise.
30448 * lib/same-inode.h: Likewise.
30449 * lib/same.c: Likewise.
30450 * lib/same.h: Likewise.
30451 * lib/save-cwd.c: Likewise.
30452 * lib/save-cwd.h: Likewise.
30453 * lib/savedir.c: Likewise.
30454 * lib/savedir.h: Likewise.
30455 * lib/savewd.c: Likewise.
30456 * lib/savewd.h: Likewise.
30457 * lib/search.in.h: Likewise.
30458 * lib/setenv.c: Likewise.
30459 * lib/setenv.h: Likewise.
30460 * lib/settime.c: Likewise.
30461 * lib/sh-quote.c: Likewise.
30462 * lib/sh-quote.h: Likewise.
30463 * lib/sig2str.c: Likewise.
30464 * lib/sig2str.h: Likewise.
30465 * lib/signal.in.h: Likewise.
30466 * lib/signbitd.c: Likewise.
30467 * lib/signbitf.c: Likewise.
30468 * lib/signbitl.c: Likewise.
30469 * lib/sigprocmask.c: Likewise.
30470 * lib/sincosl.c: Likewise.
30471 * lib/sleep.c: Likewise.
30472 * lib/sprintf.c: Likewise.
30473 * lib/sqrtl.c: Likewise.
30474 * lib/stat-time.h: Likewise.
30475 * lib/stdio--.h: Likewise.
30476 * lib/stdio-safer.h: Likewise.
30477 * lib/stdlib--.h: Likewise.
30478 * lib/stdlib-safer.h: Likewise.
30479 * lib/stdlib.in.h: Likewise.
30480 * lib/stpcpy.c: Likewise.
30481 * lib/stpncpy.c: Likewise.
30482 * lib/strchrnul.c: Likewise.
30483 * lib/strcspn.c: Likewise.
30484 * lib/strerror.c: Likewise.
30485 * lib/strftime.c: Likewise.
30486 * lib/strftime.h: Likewise.
30487 * lib/striconveh.c: Likewise.
30488 * lib/striconveh.h: Likewise.
30489 * lib/striconveha.c: Likewise.
30490 * lib/striconveha.h: Likewise.
30491 * lib/stripslash.c: Likewise.
30492 * lib/strnlen1.c: Likewise.
30493 * lib/strnlen1.h: Likewise.
30494 * lib/strtod.c: Likewise.
30495 * lib/strtoimax.c: Likewise.
30496 * lib/strtok_r.c: Likewise.
30497 * lib/strtol.c: Likewise.
30498 * lib/strtoll.c: Likewise.
30499 * lib/strtoul.c: Likewise.
30500 * lib/strtoull.c: Likewise.
30501 * lib/sysexits.in.h: Likewise.
30502 * lib/tempname.c: Likewise.
30503 * lib/tempname.h: Likewise.
30504 * lib/timespec.h: Likewise.
30505 * lib/tls.c: Likewise.
30506 * lib/tls.h: Likewise.
30507 * lib/tmpdir.c: Likewise.
30508 * lib/tmpdir.h: Likewise.
30509 * lib/tmpfile-safer.c: Likewise.
30510 * lib/tmpfile.c: Likewise.
30511 * lib/trigl.c: Likewise.
30512 * lib/trigl.h: Likewise.
30513 * lib/trim.c: Likewise.
30514 * lib/trim.h: Likewise.
30515 * lib/trunc.c: Likewise.
30516 * lib/truncf.c: Likewise.
30517 * lib/truncl.c: Likewise.
30518 * lib/tsearch.c: Likewise.
30519 * lib/unicodeio.c: Likewise.
30520 * lib/unicodeio.h: Likewise.
30521 * lib/unistd--.h: Likewise.
30522 * lib/unistd-safer.h: Likewise.
30523 * lib/unistdio/ulc-fprintf.c: Likewise.
30524 * lib/unistdio/ulc-vfprintf.c: Likewise.
30525 * lib/unlinkdir.c: Likewise.
30526 * lib/unlinkdir.h: Likewise.
30527 * lib/unlocked-io.h: Likewise.
30528 * lib/unsetenv.c: Likewise.
30529 * lib/userspec.c: Likewise.
30530 * lib/utime.c: Likewise.
30531 * lib/utimecmp.c: Likewise.
30532 * lib/utimecmp.h: Likewise.
30533 * lib/utimens.c: Likewise.
30534 * lib/verify.h: Likewise.
30535 * lib/verror.c: Likewise.
30536 * lib/verror.h: Likewise.
30537 * lib/version-etc-fsf.c: Likewise.
30538 * lib/version-etc.c: Likewise.
30539 * lib/version-etc.h: Likewise.
30540 * lib/vfprintf.c: Likewise.
30541 * lib/vprintf.c: Likewise.
30542 * lib/vsprintf.c: Likewise.
30543 * lib/w32spawn.h: Likewise.
30544 * lib/wait-process.c: Likewise.
30545 * lib/wait-process.h: Likewise.
30546 * lib/wcwidth.c: Likewise.
30547 * lib/write-any-file.c: Likewise.
30548 * lib/xalloc-die.c: Likewise.
30549 * lib/xalloc.h: Likewise.
30550 * lib/xasprintf.c: Likewise.
30551 * lib/xgetcwd.c: Likewise.
30552 * lib/xgetcwd.h: Likewise.
30553 * lib/xgetdomainname.c: Likewise.
30554 * lib/xgetdomainname.h: Likewise.
30555 * lib/xgethostname.c: Likewise.
30556 * lib/xmalloc.c: Likewise.
30557 * lib/xmalloca.c: Likewise.
30558 * lib/xmalloca.h: Likewise.
30559 * lib/xmemcoll.c: Likewise.
30560 * lib/xnanosleep.c: Likewise.
30561 * lib/xreadlink.c: Likewise.
30562 * lib/xreadlink.h: Likewise.
30563 * lib/xsetenv.c: Likewise.
30564 * lib/xsetenv.h: Likewise.
30565 * lib/xstriconv.c: Likewise.
30566 * lib/xstriconv.h: Likewise.
30567 * lib/xstrndup.c: Likewise.
30568 * lib/xstrndup.h: Likewise.
30569 * lib/xstrtod.c: Likewise.
30570 * lib/xstrtod.h: Likewise.
30571 * lib/xstrtol-error.c: Likewise.
30572 * lib/xstrtol.c: Likewise.
30573 * lib/xstrtol.h: Likewise.
30574 * lib/xtime.h: Likewise.
30575 * lib/xvasprintf.c: Likewise.
30576 * lib/xvasprintf.h: Likewise.
30577 * lib/yesno.c: Likewise.
30578 * lib/yesno.h: Likewise.
30579 * posix-modules: Likewise.
30580 * tests/test-alloca-opt.c: Likewise.
30581 * tests/test-arcfour.c: Likewise.
30582 * tests/test-arctwo.c: Likewise.
30583 * tests/test-argmatch.c: Likewise.
30584 * tests/test-argp-2.sh: Likewise.
30585 * tests/test-argp.c: Likewise.
30586 * tests/test-arpa_inet.c: Likewise.
30587 * tests/test-array_list.c: Likewise.
30588 * tests/test-array_oset.c: Likewise.
30589 * tests/test-atexit.c: Likewise.
30590 * tests/test-avltree_list.c: Likewise.
30591 * tests/test-avltree_oset.c: Likewise.
30592 * tests/test-avltreehash_list.c: Likewise.
30593 * tests/test-base64.c: Likewise.
30594 * tests/test-binary-io.c: Likewise.
30595 * tests/test-byteswap.c: Likewise.
30596 * tests/test-c-ctype.c: Likewise.
30597 * tests/test-c-strcasecmp.c: Likewise.
30598 * tests/test-c-strcasestr.c: Likewise.
30599 * tests/test-c-strncasecmp.c: Likewise.
30600 * tests/test-c-strstr.c: Likewise.
30601 * tests/test-canonicalize-lgpl.c: Likewise.
30602 * tests/test-canonicalize.c: Likewise.
30603 * tests/test-carray_list.c: Likewise.
30604 * tests/test-ceilf.c: Likewise.
30605 * tests/test-ceill.c: Likewise.
30606 * tests/test-count-one-bits.c: Likewise.
30607 * tests/test-crc.c: Likewise.
30608 * tests/test-dirname.c: Likewise.
30609 * tests/test-fbufmode.c: Likewise.
30610 * tests/test-fcntl.c: Likewise.
30611 * tests/test-fflush.c: Likewise.
30612 * tests/test-floorf.c: Likewise.
30613 * tests/test-floorl.c: Likewise.
30614 * tests/test-fopen.c: Likewise.
30615 * tests/test-fprintf-posix.c: Likewise.
30616 * tests/test-fprintf-posix.h: Likewise.
30617 * tests/test-fpurge.c: Likewise.
30618 * tests/test-freadable.c: Likewise.
30619 * tests/test-freadahead.c: Likewise.
30620 * tests/test-freading.c: Likewise.
30621 * tests/test-freopen.c: Likewise.
30622 * tests/test-frexp.c: Likewise.
30623 * tests/test-frexpl.c: Likewise.
30624 * tests/test-fseek.c: Likewise.
30625 * tests/test-fseeko.c: Likewise.
30626 * tests/test-fseterr.c: Likewise.
30627 * tests/test-fstrcmp.c: Likewise.
30628 * tests/test-ftell.c: Likewise.
30629 * tests/test-ftello.c: Likewise.
30630 * tests/test-fwritable.c: Likewise.
30631 * tests/test-fwriting.c: Likewise.
30632 * tests/test-getaddrinfo.c: Likewise.
30633 * tests/test-getpass.c: Likewise.
30634 * tests/test-gettimeofday.c: Likewise.
30635 * tests/test-hmac-md5.c: Likewise.
30636 * tests/test-hmac-sha1.c: Likewise.
30637 * tests/test-iconv.c: Likewise.
30638 * tests/test-iconvme.c: Likewise.
30639 * tests/test-inttypes.c: Likewise.
30640 * tests/test-isnan.c: Likewise.
30641 * tests/test-isnanf.c: Likewise.
30642 * tests/test-isnanl-nolibm.c: Likewise.
30643 * tests/test-isnanl.c: Likewise.
30644 * tests/test-isnanl.h: Likewise.
30645 * tests/test-ldexpl.c: Likewise.
30646 * tests/test-linked_list.c: Likewise.
30647 * tests/test-linkedhash_list.c: Likewise.
30648 * tests/test-locale.c: Likewise.
30649 * tests/test-localename.c: Likewise.
30650 * tests/test-lock.c: Likewise.
30651 * tests/test-lseek.c: Likewise.
30652 * tests/test-malloca.c: Likewise.
30653 * tests/test-math.c: Likewise.
30654 * tests/test-mbscasecmp.c: Likewise.
30655 * tests/test-mbscasestr1.c: Likewise.
30656 * tests/test-mbscasestr2.c: Likewise.
30657 * tests/test-mbscasestr3.c: Likewise.
30658 * tests/test-mbscasestr4.c: Likewise.
30659 * tests/test-mbschr.c: Likewise.
30660 * tests/test-mbscspn.c: Likewise.
30661 * tests/test-mbsncasecmp.c: Likewise.
30662 * tests/test-mbspbrk.c: Likewise.
30663 * tests/test-mbspcasecmp.c: Likewise.
30664 * tests/test-mbsrchr.c: Likewise.
30665 * tests/test-mbsspn.c: Likewise.
30666 * tests/test-mbsstr1.c: Likewise.
30667 * tests/test-mbsstr2.c: Likewise.
30668 * tests/test-mbsstr3.c: Likewise.
30669 * tests/test-md5.c: Likewise.
30670 * tests/test-memmem.c: Likewise.
30671 * tests/test-netinet_in.c: Likewise.
30672 * tests/test-open.c: Likewise.
30673 * tests/test-printf-frexp.c: Likewise.
30674 * tests/test-printf-frexpl.c: Likewise.
30675 * tests/test-printf-posix.c: Likewise.
30676 * tests/test-printf-posix.h: Likewise.
30677 * tests/test-rbtree_list.c: Likewise.
30678 * tests/test-rbtree_oset.c: Likewise.
30679 * tests/test-rbtreehash_list.c: Likewise.
30680 * tests/test-read-file.c: Likewise.
30681 * tests/test-rijndael.c: Likewise.
30682 * tests/test-search.c: Likewise.
30683 * tests/test-signbit.c: Likewise.
30684 * tests/test-sleep.c: Likewise.
30685 * tests/test-snprintf-posix.c: Likewise.
30686 * tests/test-snprintf-posix.h: Likewise.
30687 * tests/test-snprintf.c: Likewise.
30688 * tests/test-sprintf-posix.c: Likewise.
30689 * tests/test-sprintf-posix.h: Likewise.
30690 * tests/test-stat-time.c: Likewise.
30691 * tests/test-stdbool.c: Likewise.
30692 * tests/test-stdint.c: Likewise.
30693 * tests/test-stdio.c: Likewise.
30694 * tests/test-stdlib.c: Likewise.
30695 * tests/test-stpncpy.c: Likewise.
30696 * tests/test-strcasestr.c: Likewise.
30697 * tests/test-striconv.c: Likewise.
30698 * tests/test-striconveh.c: Likewise.
30699 * tests/test-striconveha.c: Likewise.
30700 * tests/test-string.c: Likewise.
30701 * tests/test-sys_select.c: Likewise.
30702 * tests/test-sys_socket.c: Likewise.
30703 * tests/test-sys_stat.c: Likewise.
30704 * tests/test-sys_time.c: Likewise.
30705 * tests/test-sysexits.c: Likewise.
30706 * tests/test-time.c: Likewise.
30707 * tests/test-tls.c: Likewise.
30708 * tests/test-trunc.c: Likewise.
30709 * tests/test-truncf.c: Likewise.
30710 * tests/test-truncl.c: Likewise.
30711 * tests/test-unistd.c: Likewise.
30712 * tests/test-vasnprintf-posix.c: Likewise.
30713 * tests/test-vasnprintf-posix2.c: Likewise.
30714 * tests/test-vasnprintf.c: Likewise.
30715 * tests/test-vasprintf-posix.c: Likewise.
30716 * tests/test-vasprintf.c: Likewise.
30717 * tests/test-verify.c: Likewise.
30718 * tests/test-vfprintf-posix.c: Likewise.
30719 * tests/test-vprintf-posix.c: Likewise.
30720 * tests/test-vsnprintf-posix.c: Likewise.
30721 * tests/test-vsnprintf.c: Likewise.
30722 * tests/test-vsprintf-posix.c: Likewise.
30723 * tests/test-wchar.c: Likewise.
30724 * tests/test-wctype.c: Likewise.
30725 * tests/test-wcwidth.c: Likewise.
30726 * tests/test-xstrtol.c: Likewise.
30727 * tests/test-xvasprintf.c: Likewise.
30728 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30729 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30730 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30731 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30732 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30733 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30734 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30735 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30736 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30737 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30738 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30739 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30740 * tests/uniname/test-uninames.c: Likewise.
30741 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30742 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30743 * tests/unistdio/test-u16-printf1.h: Likewise.
30744 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30745 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30746 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30747 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30748 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30749 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30750 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30751 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30752 * tests/unistdio/test-u32-printf1.h: Likewise.
30753 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30754 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30755 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30756 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30757 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30758 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30759 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30760 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30761 * tests/unistdio/test-u8-printf1.h: Likewise.
30762 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30763 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30764 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30765 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30766 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30767 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30768 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30769 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30770 * tests/unistdio/test-ulc-printf1.h: Likewise.
30771 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30772 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30773 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30774 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30775 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30776 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30777 * tests/uniwidth/test-u16-strwidth.c: Likewise.
30778 * tests/uniwidth/test-u16-width.c: Likewise.
30779 * tests/uniwidth/test-u32-strwidth.c: Likewise.
30780 * tests/uniwidth/test-u32-width.c: Likewise.
30781 * tests/uniwidth/test-u8-strwidth.c: Likewise.
30782 * tests/uniwidth/test-u8-width.c: Likewise.
30783 * tests/uniwidth/test-uc_width.c: Likewise.
30784 * config/srclist-update: Likewise.
30785 (fixlicense): Update to GPLv3+.
30787 Change copyright notice from LGPLv2.1+ to LGPLv3+.
30788 * tests/test-tsearch.c: Change copyright notice.
30790 Change copyright notice from LGPLv2.0+ to LGPLv3+.
30791 * lib/c-strcaseeq.h: Change copyright notice.
30792 * lib/streq.h: Likewise.
30793 * lib/uniconv.h: Likewise.
30794 * lib/uniconv/u-conv-from-enc.h: Likewise.
30795 * lib/uniconv/u-conv-to-enc.h: Likewise.
30796 * lib/uniconv/u-strconv-from-enc.h: Likewise.
30797 * lib/uniconv/u-strconv-to-enc.h: Likewise.
30798 * lib/uniconv/u16-conv-from-enc.c: Likewise.
30799 * lib/uniconv/u16-conv-to-enc.c: Likewise.
30800 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30801 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30802 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30803 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30804 * lib/uniconv/u32-conv-from-enc.c: Likewise.
30805 * lib/uniconv/u32-conv-to-enc.c: Likewise.
30806 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30807 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30808 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30809 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30810 * lib/uniconv/u8-conv-from-enc.c: Likewise.
30811 * lib/uniconv/u8-conv-to-enc.c: Likewise.
30812 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30813 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30814 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30815 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30816 * lib/uniname.h: Likewise.
30817 * lib/uniname/uniname.c: Likewise.
30818 * lib/unistdio.h: Likewise.
30819 * lib/unistdio/u-asnprintf.h: Likewise.
30820 * lib/unistdio/u-asprintf.h: Likewise.
30821 * lib/unistdio/u-printf-args.c: Likewise.
30822 * lib/unistdio/u-printf-args.h: Likewise.
30823 * lib/unistdio/u-printf-parse.h: Likewise.
30824 * lib/unistdio/u-snprintf.h: Likewise.
30825 * lib/unistdio/u-sprintf.h: Likewise.
30826 * lib/unistdio/u-vasprintf.h: Likewise.
30827 * lib/unistdio/u-vsnprintf.h: Likewise.
30828 * lib/unistdio/u-vsprintf.h: Likewise.
30829 * lib/unistdio/u16-asnprintf.c: Likewise.
30830 * lib/unistdio/u16-asprintf.c: Likewise.
30831 * lib/unistdio/u16-printf-parse.c: Likewise.
30832 * lib/unistdio/u16-snprintf.c: Likewise.
30833 * lib/unistdio/u16-sprintf.c: Likewise.
30834 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30835 * lib/unistdio/u16-u16-asprintf.c: Likewise.
30836 * lib/unistdio/u16-u16-snprintf.c: Likewise.
30837 * lib/unistdio/u16-u16-sprintf.c: Likewise.
30838 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30839 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30840 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30841 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30842 * lib/unistdio/u16-vasnprintf.c: Likewise.
30843 * lib/unistdio/u16-vasprintf.c: Likewise.
30844 * lib/unistdio/u16-vsnprintf.c: Likewise.
30845 * lib/unistdio/u16-vsprintf.c: Likewise.
30846 * lib/unistdio/u32-asnprintf.c: Likewise.
30847 * lib/unistdio/u32-asprintf.c: Likewise.
30848 * lib/unistdio/u32-printf-parse.c: Likewise.
30849 * lib/unistdio/u32-snprintf.c: Likewise.
30850 * lib/unistdio/u32-sprintf.c: Likewise.
30851 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30852 * lib/unistdio/u32-u32-asprintf.c: Likewise.
30853 * lib/unistdio/u32-u32-snprintf.c: Likewise.
30854 * lib/unistdio/u32-u32-sprintf.c: Likewise.
30855 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30856 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30857 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30858 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30859 * lib/unistdio/u32-vasnprintf.c: Likewise.
30860 * lib/unistdio/u32-vasprintf.c: Likewise.
30861 * lib/unistdio/u32-vsnprintf.c: Likewise.
30862 * lib/unistdio/u32-vsprintf.c: Likewise.
30863 * lib/unistdio/u8-asnprintf.c: Likewise.
30864 * lib/unistdio/u8-asprintf.c: Likewise.
30865 * lib/unistdio/u8-printf-parse.c: Likewise.
30866 * lib/unistdio/u8-snprintf.c: Likewise.
30867 * lib/unistdio/u8-sprintf.c: Likewise.
30868 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30869 * lib/unistdio/u8-u8-asprintf.c: Likewise.
30870 * lib/unistdio/u8-u8-snprintf.c: Likewise.
30871 * lib/unistdio/u8-u8-sprintf.c: Likewise.
30872 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30873 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30874 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30875 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30876 * lib/unistdio/u8-vasnprintf.c: Likewise.
30877 * lib/unistdio/u8-vasprintf.c: Likewise.
30878 * lib/unistdio/u8-vsnprintf.c: Likewise.
30879 * lib/unistdio/u8-vsprintf.c: Likewise.
30880 * lib/unistdio/ulc-asnprintf.c: Likewise.
30881 * lib/unistdio/ulc-asprintf.c: Likewise.
30882 * lib/unistdio/ulc-printf-parse.c: Likewise.
30883 * lib/unistdio/ulc-snprintf.c: Likewise.
30884 * lib/unistdio/ulc-sprintf.c: Likewise.
30885 * lib/unistdio/ulc-vasnprintf.c: Likewise.
30886 * lib/unistdio/ulc-vasprintf.c: Likewise.
30887 * lib/unistdio/ulc-vsnprintf.c: Likewise.
30888 * lib/unistdio/ulc-vsprintf.c: Likewise.
30889 * lib/unistr.h: Likewise.
30890 * lib/unistr/u-cpy-alloc.h: Likewise.
30891 * lib/unistr/u-cpy.h: Likewise.
30892 * lib/unistr/u-endswith.h: Likewise.
30893 * lib/unistr/u-move.h: Likewise.
30894 * lib/unistr/u-set.h: Likewise.
30895 * lib/unistr/u-startswith.h: Likewise.
30896 * lib/unistr/u-stpcpy.h: Likewise.
30897 * lib/unistr/u-stpncpy.h: Likewise.
30898 * lib/unistr/u-strcat.h: Likewise.
30899 * lib/unistr/u-strcpy.h: Likewise.
30900 * lib/unistr/u-strcspn.h: Likewise.
30901 * lib/unistr/u-strdup.h: Likewise.
30902 * lib/unistr/u-strlen.h: Likewise.
30903 * lib/unistr/u-strncat.h: Likewise.
30904 * lib/unistr/u-strncpy.h: Likewise.
30905 * lib/unistr/u-strnlen.h: Likewise.
30906 * lib/unistr/u-strpbrk.h: Likewise.
30907 * lib/unistr/u-strspn.h: Likewise.
30908 * lib/unistr/u-strstr.h: Likewise.
30909 * lib/unistr/u-strtok.h: Likewise.
30910 * lib/unistr/u16-check.c: Likewise.
30911 * lib/unistr/u16-chr.c: Likewise.
30912 * lib/unistr/u16-cmp.c: Likewise.
30913 * lib/unistr/u16-cpy-alloc.c: Likewise.
30914 * lib/unistr/u16-cpy.c: Likewise.
30915 * lib/unistr/u16-endswith.c: Likewise.
30916 * lib/unistr/u16-mblen.c: Likewise.
30917 * lib/unistr/u16-mbsnlen.c: Likewise.
30918 * lib/unistr/u16-mbtouc-aux.c: Likewise.
30919 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30920 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30921 * lib/unistr/u16-mbtouc.c: Likewise.
30922 * lib/unistr/u16-mbtoucr.c: Likewise.
30923 * lib/unistr/u16-move.c: Likewise.
30924 * lib/unistr/u16-next.c: Likewise.
30925 * lib/unistr/u16-prev.c: Likewise.
30926 * lib/unistr/u16-set.c: Likewise.
30927 * lib/unistr/u16-startswith.c: Likewise.
30928 * lib/unistr/u16-stpcpy.c: Likewise.
30929 * lib/unistr/u16-stpncpy.c: Likewise.
30930 * lib/unistr/u16-strcat.c: Likewise.
30931 * lib/unistr/u16-strchr.c: Likewise.
30932 * lib/unistr/u16-strcmp.c: Likewise.
30933 * lib/unistr/u16-strcpy.c: Likewise.
30934 * lib/unistr/u16-strcspn.c: Likewise.
30935 * lib/unistr/u16-strdup.c: Likewise.
30936 * lib/unistr/u16-strlen.c: Likewise.
30937 * lib/unistr/u16-strmblen.c: Likewise.
30938 * lib/unistr/u16-strmbtouc.c: Likewise.
30939 * lib/unistr/u16-strncat.c: Likewise.
30940 * lib/unistr/u16-strncmp.c: Likewise.
30941 * lib/unistr/u16-strncpy.c: Likewise.
30942 * lib/unistr/u16-strnlen.c: Likewise.
30943 * lib/unistr/u16-strpbrk.c: Likewise.
30944 * lib/unistr/u16-strrchr.c: Likewise.
30945 * lib/unistr/u16-strspn.c: Likewise.
30946 * lib/unistr/u16-strstr.c: Likewise.
30947 * lib/unistr/u16-strtok.c: Likewise.
30948 * lib/unistr/u16-to-u32.c: Likewise.
30949 * lib/unistr/u16-to-u8.c: Likewise.
30950 * lib/unistr/u16-uctomb-aux.c: Likewise.
30951 * lib/unistr/u16-uctomb.c: Likewise.
30952 * lib/unistr/u32-check.c: Likewise.
30953 * lib/unistr/u32-chr.c: Likewise.
30954 * lib/unistr/u32-cmp.c: Likewise.
30955 * lib/unistr/u32-cpy-alloc.c: Likewise.
30956 * lib/unistr/u32-cpy.c: Likewise.
30957 * lib/unistr/u32-endswith.c: Likewise.
30958 * lib/unistr/u32-mblen.c: Likewise.
30959 * lib/unistr/u32-mbsnlen.c: Likewise.
30960 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30961 * lib/unistr/u32-mbtouc.c: Likewise.
30962 * lib/unistr/u32-mbtoucr.c: Likewise.
30963 * lib/unistr/u32-move.c: Likewise.
30964 * lib/unistr/u32-next.c: Likewise.
30965 * lib/unistr/u32-prev.c: Likewise.
30966 * lib/unistr/u32-set.c: Likewise.
30967 * lib/unistr/u32-startswith.c: Likewise.
30968 * lib/unistr/u32-stpcpy.c: Likewise.
30969 * lib/unistr/u32-stpncpy.c: Likewise.
30970 * lib/unistr/u32-strcat.c: Likewise.
30971 * lib/unistr/u32-strchr.c: Likewise.
30972 * lib/unistr/u32-strcmp.c: Likewise.
30973 * lib/unistr/u32-strcpy.c: Likewise.
30974 * lib/unistr/u32-strcspn.c: Likewise.
30975 * lib/unistr/u32-strdup.c: Likewise.
30976 * lib/unistr/u32-strlen.c: Likewise.
30977 * lib/unistr/u32-strmblen.c: Likewise.
30978 * lib/unistr/u32-strmbtouc.c: Likewise.
30979 * lib/unistr/u32-strncat.c: Likewise.
30980 * lib/unistr/u32-strncmp.c: Likewise.
30981 * lib/unistr/u32-strncpy.c: Likewise.
30982 * lib/unistr/u32-strnlen.c: Likewise.
30983 * lib/unistr/u32-strpbrk.c: Likewise.
30984 * lib/unistr/u32-strrchr.c: Likewise.
30985 * lib/unistr/u32-strspn.c: Likewise.
30986 * lib/unistr/u32-strstr.c: Likewise.
30987 * lib/unistr/u32-strtok.c: Likewise.
30988 * lib/unistr/u32-to-u16.c: Likewise.
30989 * lib/unistr/u32-to-u8.c: Likewise.
30990 * lib/unistr/u32-uctomb.c: Likewise.
30991 * lib/unistr/u8-check.c: Likewise.
30992 * lib/unistr/u8-chr.c: Likewise.
30993 * lib/unistr/u8-cmp.c: Likewise.
30994 * lib/unistr/u8-cpy-alloc.c: Likewise.
30995 * lib/unistr/u8-cpy.c: Likewise.
30996 * lib/unistr/u8-endswith.c: Likewise.
30997 * lib/unistr/u8-mblen.c: Likewise.
30998 * lib/unistr/u8-mbsnlen.c: Likewise.
30999 * lib/unistr/u8-mbtouc-aux.c: Likewise.
31000 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31001 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31002 * lib/unistr/u8-mbtouc.c: Likewise.
31003 * lib/unistr/u8-mbtoucr.c: Likewise.
31004 * lib/unistr/u8-move.c: Likewise.
31005 * lib/unistr/u8-next.c: Likewise.
31006 * lib/unistr/u8-prev.c: Likewise.
31007 * lib/unistr/u8-set.c: Likewise.
31008 * lib/unistr/u8-startswith.c: Likewise.
31009 * lib/unistr/u8-stpcpy.c: Likewise.
31010 * lib/unistr/u8-stpncpy.c: Likewise.
31011 * lib/unistr/u8-strcat.c: Likewise.
31012 * lib/unistr/u8-strchr.c: Likewise.
31013 * lib/unistr/u8-strcmp.c: Likewise.
31014 * lib/unistr/u8-strcpy.c: Likewise.
31015 * lib/unistr/u8-strcspn.c: Likewise.
31016 * lib/unistr/u8-strdup.c: Likewise.
31017 * lib/unistr/u8-strlen.c: Likewise.
31018 * lib/unistr/u8-strmblen.c: Likewise.
31019 * lib/unistr/u8-strmbtouc.c: Likewise.
31020 * lib/unistr/u8-strncat.c: Likewise.
31021 * lib/unistr/u8-strncmp.c: Likewise.
31022 * lib/unistr/u8-strncpy.c: Likewise.
31023 * lib/unistr/u8-strnlen.c: Likewise.
31024 * lib/unistr/u8-strpbrk.c: Likewise.
31025 * lib/unistr/u8-strrchr.c: Likewise.
31026 * lib/unistr/u8-strspn.c: Likewise.
31027 * lib/unistr/u8-strstr.c: Likewise.
31028 * lib/unistr/u8-strtok.c: Likewise.
31029 * lib/unistr/u8-to-u16.c: Likewise.
31030 * lib/unistr/u8-to-u32.c: Likewise.
31031 * lib/unistr/u8-uctomb-aux.c: Likewise.
31032 * lib/unistr/u8-uctomb.c: Likewise.
31033 * lib/unitypes.h: Likewise.
31034 * lib/uniwidth.h: Likewise.
31035 * lib/uniwidth/cjk.h: Likewise.
31036 * lib/uniwidth/u16-strwidth.c: Likewise.
31037 * lib/uniwidth/u16-width.c: Likewise.
31038 * lib/uniwidth/u32-strwidth.c: Likewise.
31039 * lib/uniwidth/u32-width.c: Likewise.
31040 * lib/uniwidth/u8-strwidth.c: Likewise.
31041 * lib/uniwidth/u8-width.c: Likewise.
31042 * lib/uniwidth/width.c: Likewise.
31044 2007-10-07 Bruno Haible <bruno@clisp.org>
31046 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31047 The file is still under LGPL (see modules/inttypes).
31049 2007-10-06 Bruno Haible <bruno@clisp.org>
31051 * modules/trunc (Dependencies): Add 'extensions'.
31052 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31053 Reported by Ben Pfaff <blp@gnu.org>.
31055 2007-10-06 Bruno Haible <bruno@clisp.org>
31057 * modules/freopen-tests: New file.
31058 * tests/test-freopen.c: New file.
31060 * modules/fopen-tests: New file.
31061 * tests/test-fopen.c: New file.
31063 * modules/fopen: New file.
31064 * lib/fopen.c: New file.
31065 * m4/fopen.m4: New file.
31066 * modules/freopen: New file.
31067 * lib/freopen.c: New file.
31068 * m4/freopen.m4: New file.
31069 * lib/stdio.in.h (fopen, freopen): New declarations.
31070 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31071 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31072 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31073 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31074 * doc/functions/fopen.texi: Mention the 'fopen' module.
31075 * doc/functions/freopen.texi: Mention the 'freopen' module.
31077 2007-10-06 Bruno Haible <bruno@clisp.org>
31079 * modules/open-tests: New file.
31080 * tests/test-open.c: New file.
31082 * modules/open: New file.
31083 * lib/open.c: New file.
31084 * m4/open.m4: New file.
31085 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31087 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31088 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31090 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31091 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31093 * doc/functions/open.texi: Mention the 'open' module.
31095 2007-10-04 Bruno Haible <bruno@clisp.org>
31097 * modules/ceill-tests: New file.
31098 * tests/test-ceill.c: New file.
31100 * modules/ceill: New file.
31101 * lib/ceill.c: Replace entire file.
31102 * m4/ceill.m4: New file.
31103 * lib/math.in.h (ceill): Replace declaration.
31104 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31105 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31106 * doc/functions/ceill.texi: Mention the 'ceill' module.
31107 * modules/mathl (Files): Remove lib/ceill.c.
31108 (Depends-on): Add ceill.
31110 2007-10-04 Bruno Haible <bruno@clisp.org>
31112 * modules/ceilf-tests: New file.
31113 * tests/test-ceilf.c: New file.
31115 * modules/ceilf: New file.
31116 * lib/ceil.c: New file.
31117 * lib/ceilf.c: New file.
31118 * m4/ceilf.m4: New file.
31119 * lib/math.in.h (ceilf): New declaration.
31120 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31122 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31124 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31126 2007-10-04 Bruno Haible <bruno@clisp.org>
31128 * modules/floorl-tests: New file.
31129 * tests/test-floorl.c: New file.
31131 * modules/floorl: New file.
31132 * lib/floorl.c: Replace entire file.
31133 * m4/floorl.m4: New file.
31134 * lib/math.in.h (floorl): Replace declaration.
31135 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31136 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31137 * doc/functions/floorl.texi: Mention the 'floorl' module.
31138 * modules/mathl (Files): Remove lib/floorl.c.
31139 (Depends-on): Add floorl.
31141 2007-10-04 Bruno Haible <bruno@clisp.org>
31143 * modules/floorf-tests: New file.
31144 * tests/test-floorf.c: New file.
31146 * modules/floorf: New file.
31147 * lib/floor.c: New file.
31148 * lib/floorf.c: New file.
31149 * m4/floorf.m4: New file.
31150 * lib/math.in.h (floorf): New declaration.
31151 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31153 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31155 * doc/functions/floorf.texi: Mention the 'floorf' module.
31157 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
31158 Bruno Haible <bruno@clisp.org>
31160 Advertise for the Git server instead of the CVS server.
31161 * doc/gnulib-intro.texi (Steady Development): Mention the Git
31162 repository instead of the CVS one.
31163 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31164 about all VCS systems generically.
31165 * doc/gnulib.texi (Introduction): Capitalize `Git'.
31167 2007-10-04 Bruno Haible <bruno@clisp.org>
31169 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31171 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31173 2007-10-04 Bruno Haible <bruno@clisp.org>
31175 * modules/truncl-tests: New file.
31176 * tests/test-truncl.c: New file.
31178 * modules/truncl: New file.
31179 * lib/truncl.c: New file.
31180 * m4/truncl.m4: New file.
31181 * lib/math.in.h (truncl): New declaration.
31182 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31184 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31186 * doc/functions/truncl.texi: Mention the 'truncl' module.
31188 2007-10-04 Bruno Haible <bruno@clisp.org>
31190 * modules/truncf-tests: New file.
31191 * tests/test-truncf.c: New file.
31193 * modules/truncf: New file.
31194 * lib/trunc.c: Make paramerizable through USE_* macros.
31195 * lib/truncf.c: New file.
31196 * m4/truncf.m4: New file.
31197 * lib/math.in.h (truncf): New declaration.
31198 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31200 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31202 * doc/functions/truncf.texi: Mention the 'truncf' module.
31204 2007-10-03 Bruno Haible <bruno@clisp.org>
31206 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31207 augmentation also for tests modules.
31208 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31209 * modules/atexit-tests (Makefile.am): Likewise.
31210 * modules/binary-io-tests (Makefile.am): Likewise.
31211 * modules/c-strcase-tests (Makefile.am): Likewise.
31212 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31213 * modules/canonicalize-tests (Makefile.am): Likewise.
31214 * modules/closein-tests (Makefile.am): Likewise.
31215 * modules/fprintf-posix-tests (Makefile.am): Likewise.
31216 * modules/freadahead-tests (Makefile.am): Likewise.
31217 * modules/fseek-tests (Makefile.am): Likewise.
31218 * modules/fseeko-tests (Makefile.am): Likewise.
31219 * modules/ftell-tests (Makefile.am): Likewise.
31220 * modules/ftello-tests (Makefile.am): Likewise.
31221 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31222 * modules/isnanl-tests (Makefile.am): Likewise.
31223 * modules/lseek-tests (Makefile.am): Likewise.
31224 * modules/mbscasecmp-tests (Makefile.am): Likewise.
31225 * modules/mbscasestr-tests (Makefile.am): Likewise.
31226 * modules/mbschr-tests (Makefile.am): Likewise.
31227 * modules/mbscspn-tests (Makefile.am): Likewise.
31228 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31229 * modules/mbspbrk-tests (Makefile.am): Likewise.
31230 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31231 * modules/mbsrchr-tests (Makefile.am): Likewise.
31232 * modules/mbsspn-tests (Makefile.am): Likewise.
31233 * modules/mbsstr-tests (Makefile.am): Likewise.
31234 * modules/printf-posix-tests (Makefile.am): Likewise.
31235 * modules/snprintf-posix-tests (Makefile.am): Likewise.
31236 * modules/sprintf-posix-tests (Makefile.am): Likewise.
31237 * modules/tsearch-tests (Makefile.am): Likewise.
31238 * modules/uniname/uniname-tests (Makefile.am): Likewise.
31239 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31240 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31241 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31242 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31243 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31244 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31245 * modules/vprintf-posix-tests (Makefile.am): Likewise.
31246 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31247 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31248 * modules/xstrtoimax-tests (Makefile.am): Likewise.
31249 * modules/xstrtol-tests (Makefile.am): Likewise.
31250 * modules/xstrtoumax-tests (Makefile.am): Likewise.
31251 * modules/yesno-tests (Makefile.am): Likewise.
31253 2007-10-03 Bruno Haible <bruno@clisp.org>
31255 * modules/trunc-tests: New file.
31256 * tests/test-trunc.c: New file.
31258 * modules/trunc: New file.
31259 * lib/trunc.c: New file.
31260 * m4/trunc.m4: New file.
31261 * lib/math.in.h (trunc): New declaration.
31262 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31264 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31266 * doc/functions/trunc.texi: Mention the 'trunc' module.
31268 2007-10-03 Bruno Haible <bruno@clisp.org>
31270 * tests/test-fpending.c: New file, mostly copied
31271 from coreutils/lib/t-fpending.c.
31272 * modules/fpending-tests: New file.
31274 2007-10-03 Bruno Haible <bruno@clisp.org>
31276 Port the stdio extensions to QNX (untested).
31277 * lib/fseterr.c (fseterr): Add support for QNX.
31278 * lib/fbufmode.c (fbufmode): Likewise.
31279 * lib/freadable.c (freadable): Likewise.
31280 * lib/fwritable.c (fwritable): Likewise.
31281 * lib/freading.c (freading): Likewise.
31282 * lib/fwriting.c (fwriting): Likewise.
31283 * lib/freadahead.c (freadahed): Likewise.
31284 * lib/fpurge.c (fpurge): Likewise.
31285 * lib/fseeko.c (rpl_fseeko): Likewise.
31287 2007-10-03 Bruno Haible <bruno@clisp.org>
31288 Jim Meyering <jim@meyering.net>
31289 Eric Blake <ebb9@byu.net>
31291 * doc/relocatable.texi: Use @command instead of @program.
31293 2007-10-02 Jim Meyering <jim@meyering.net>
31295 Perform one more "_.h" -> ".in.h" substitution.
31296 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31297 instead of unistd_.h here, too.
31299 2007-10-01 Bruno Haible <bruno@clisp.org>
31301 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31302 Needed for the alloca-opt module.
31304 2007-09-30 Bruno Haible <bruno@clisp.org>
31306 * lib/alloca.in.h: Renamed from lib/alloca_.h.
31307 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31309 * lib/argz.in.h: Renamed from lib/argz_.h.
31310 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31311 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31312 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31314 * lib/dirent.in.h: Renamed from lib/dirent_.h.
31315 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31317 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31318 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31320 * lib/float.in.h: Renamed from lib/float_.h.
31321 * modules/float (Files, Makefile.am): Use float.in.h instead of
31323 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31324 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31326 * lib/getopt.in.h: Renamed from lib/getopt_.h.
31327 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31329 * lib/glob.in.h: Renamed from lib/glob_.h.
31330 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31331 * lib/iconv.in.h: Renamed from lib/iconv_.h.
31332 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31334 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31335 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31337 * lib/locale.in.h: Renamed from lib/locale_.h.
31338 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31340 * lib/math.in.h: Renamed from lib/math_.h.
31341 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31342 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31343 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31344 of netinet_in_.h. Add dependency.
31345 * lib/poll.in.h: Renamed from lib/poll_.h.
31346 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31347 * lib/search.in.h: Renamed from lib/search_.h.
31348 * modules/search (Files, Makefile.am): Use search.in.h instead of
31350 * lib/signal.in.h: Renamed from lib/signal_.h.
31351 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31353 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31354 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31356 * lib/stdint.in.h: Renamed from lib/stdint_.h.
31357 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31359 * lib/stdio.in.h: Renamed from lib/stdio_.h.
31360 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31362 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31363 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31365 * lib/string.in.h: Renamed from lib/string_.h.
31366 * modules/string (Files, Makefile.am): Use string.in.h instead of
31368 * doc/gnulib-tool.texi (Initial import): Update.
31369 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31370 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31371 of sys_select_.h. Add dependency.
31372 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31373 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31375 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31376 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31378 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31379 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31381 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31382 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31384 * lib/time.in.h: Renamed from lib/time_.h.
31385 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31386 * lib/unistd.in.h: Renamed from lib/unistd_.h.
31387 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31389 * lib/wchar.in.h: Renamed from lib/wchar_.h.
31390 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31392 * lib/wctype.in.h: Renamed from lib/wctype_.h.
31393 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31395 * build-aux/bootstrap (slurp): Update.
31396 * lib/.cppi-disable: Update.
31398 2007-09-30 Bruno Haible <bruno@clisp.org>
31400 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31403 2007-09-30 Bruno Haible <bruno@clisp.org>
31405 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31407 2007-09-29 Bruno Haible <bruno@clisp.org>
31409 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31411 2007-09-29 Bruno Haible <bruno@clisp.org>
31413 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31414 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31415 * build-aux/install-reloc: Compile also areadlink.c.
31416 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31418 2007-09-29 Bruno Haible <bruno@clisp.org>
31420 * gnulib-tool (func_emit_initmacro_done): Indentation.
31422 2007-09-29 Bruno Haible <bruno@clisp.org>
31424 * README: Add CVS checkout update instructions.
31425 Info from Bob Proulx <bob@proulx.com>.
31427 2007-09-28 Eric Blake <ebb9@byu.net>
31429 Provide move-if-change.
31430 * build-aux/move-if-change: New file, based on best practice
31431 rather than any canonical upstream location.
31433 2007-09-28 Jim Meyering <jim@meyering.net>
31435 Fix canonicalize loop-detection corner case.
31436 Do not attempt to stat the symlink values stored via seen_triple.
31437 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31438 on linux-2.6.18, (but not 2.6.22).
31439 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31440 triple_compare. The former compares dev,ino,filename, while the latter
31441 would actually stat dirname(filename) when dev and ino were equal.
31442 * lib/hash-triple.c: Install <string.h>.
31444 (triple_compare_ino_str): New function.
31445 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31447 2007-09-28 Eric Blake <ebb9@byu.net>
31449 Enforce that AC_REPLACE_FUNCS files exist.
31450 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31451 override check for typos.
31453 Fix test-closein on Solaris 10.
31454 * tests/test-closein.c (main): Don't assume stdin can be inherited
31455 closed on all systems.
31456 * tests/test-closein.sh: Likewise.
31457 Reported by Piotr Tarnowski.
31459 2007-09-28 Jim Meyering <jim@meyering.net>
31461 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31463 2007-09-27 Jim Meyering <jim@meyering.net>
31465 canonicalize: Avoid a false-positive cycle failure.
31466 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31467 Sort. Remove cycle-check.
31468 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31470 (seen_triple): New function.
31471 (canonicalize_filename_mode): Use it instead of cycle-check.
31472 * tests/test-canonicalize.c: Add a test for this bug.
31473 * tests/test-canonicalize.sh: Set up and run the test.
31475 New module, file-set, from coreutils.
31476 * modules/file-set: Define it.
31477 * lib/file-set.c, lib/file-set.h: Implement.
31479 New module, hash-triple, from coreutils.
31480 * modules/hash-triple: Define it.
31481 * lib/hash-triple.c, lib/hash-triple.h: Implement.
31483 2007-09-25 Eric Blake <ebb9@byu.net>
31485 Fix strerror on Interix.
31486 * lib/string_.h (strerror): Declare replacement.
31487 * doc/functions/strerror.texi (strerror): Document the Interix
31489 * modules/string (Makefile.am): Support new hooks.
31490 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31491 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31492 gl_FUNC_STRERROR_SEPARATE.
31493 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31494 * lib/strerror.c (rpl_strerror): Provide replacement.
31495 * modules/strerror (Depends-on): Add string.
31496 (configure.ac): Detect use of module.
31497 * tests/test-strerror.c: New file.
31498 * modules/strerror-tests: New test module.
31499 * modules/argp (Depends-on): Add strerror.
31500 * modules/error (Depends-on): Likewise.
31501 Reported by Martin Koeppe.
31503 2007-09-24 Bruno Haible <bruno@clisp.org>
31505 * README: Update git instructions.
31507 2007-09-24 Eric Blake <ebb9@byu.net>
31509 Revert fpending breakage from 2007-09-08.
31510 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31513 2007-09-24 Jim Meyering <jim@meyering.net>
31515 filenamecat.c: Add a test.
31516 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31517 showing how the function works when DIR is the empty string.
31519 2007-09-21 Simon Josefsson <simon@josefsson.org>
31521 * tests/test-canonicalize.sh: Turn on executable bit.
31523 2007-09-19 Eric Blake <ebb9@byu.net>
31525 * README: Update CVS instructions.
31527 2007-09-18 Bruno Haible <bruno@clisp.org>
31529 * modules/areadlink: New file.
31530 * lib/areadlink.h (areadlink): New declaration.
31531 * lib/areadlink.c: New file, based on lib/xreadlink.c.
31533 2007-09-17 Jim Meyering <jim@meyering.net>
31535 * lib/savewd.c (ESTALE) [!defined]: Define.
31536 Reported to be required on Interix by Martin Koeppe.
31538 2007-09-17 Bruno Haible <bruno@clisp.org>
31540 * gnulib-tool (func_version): Use $version.
31542 2007-09-16 Bruno Haible <bruno@clisp.org>
31544 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31545 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31546 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31547 Reported by Greg Schafer <gschafer@zip.com.au>.
31549 2007-09-15 Bruno Haible <bruno@clisp.org>
31551 * gnulib-tool (sed): Try a little harder to make bash understand the
31553 Reported by Bruce Korb <bruce.korb@gmail.com>.
31555 2007-09-13 Eric Blake <ebb9@byu.net>
31557 * ChangeLog: Remove conflict markers.
31559 2007-09-13 Simon Josefsson <simon@josefsson.org>
31561 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31562 Reported by Bruno Haible <bruno@clisp.org>.
31564 2007-09-12 Bruno Haible <bruno@clisp.org>
31566 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31567 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31570 2007-09-12 Eric Blake <ebb9@byu.net>
31572 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31573 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31574 Autoconf definition.
31575 * modules/euidaccess (Depends-on): Add extensions, for
31576 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31577 * modules/fnmatch (Depends-on): Likewise.
31578 * modules/getaddrinfo (Depends-on): Likewise.
31579 * modules/getdelim (Depends-on): Likewise.
31580 * modules/getline (Depends-on): Likewise.
31581 * modules/getsubopt (Depends-on): Likewise.
31582 * modules/gettext (Depends-on): Likewise.
31583 * modules/group-member (Depends-on): Likewise.
31584 * modules/mbchar (Depends-on): Likewise.
31585 * modules/memmem (Depends-on): Likewise.
31586 * modules/mempcpy (Depends-on): Likewise.
31587 * modules/memrchr (Depends-on): Likewise.
31588 * modules/pagealign_alloc (Depends-on): Likewise.
31589 * modules/readutmp (Depends-on): Likewise.
31590 * modules/stpcpy (Depends-on): Likewise.
31591 * modules/stpncpy (Depends-on): Likewise.
31592 * modules/strchrnul (Depends-on): Likewise.
31593 * modules/strndup (Depends-on): Likewise.
31594 * modules/strsep (Depends-on): Likewise.
31595 * modules/strverscmp (Depends-on): Likewise.
31596 * modules/vasprintf (Depends-on): Likewise.
31597 * modules/wcwidth (Depends-on): Likewise.
31598 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31599 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31600 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31601 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31602 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31603 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31604 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31605 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31606 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31607 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31608 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31609 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31610 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31611 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31612 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31613 * m4/readutmp.m4 (gl_READUTMP): Likewise.
31614 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31615 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31616 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31617 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31618 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31619 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31620 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31621 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31622 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31623 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31624 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31625 so that lock.m4 can be used in gettext without extensions module.
31627 2007-09-11 Bruno Haible <bruno@clisp.org>
31629 * m4/isc-posix.m4: Remove file.
31630 Suggested by Eric Blake.
31632 2007-09-11 Eric Blake <ebb9@byu.net>
31634 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31636 2007-09-10 Bruno Haible <bruno@clisp.org>
31638 * posix-modules: Fix typo in error message.
31639 Reported by Matt <mkraai@beckman.com>.
31641 2007-09-09 Bruno Haible <bruno@clisp.org>
31643 * doc/functions/getdelim.texi: Update list of platforms lacking the
31645 * doc/functions/getline.texi: Likewise.
31647 2007-09-09 Jim Meyering <jim@meyering.net>
31649 * lib/hash.c (hash_initialize): Detect calloc failure.
31650 Reported by Bruno Haible.
31652 2007-09-09 Bruno Haible <bruno@clisp.org>
31654 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31655 malloc or realloc fails.
31657 2007-09-09 Bruno Haible <bruno@clisp.org>
31659 * modules/getcwd (Depends-on): Add malloc-posix.
31660 * modules/glob (Depends-on): Likewise.
31661 * modules/putenv (Depends-on): Likewise.
31662 * modules/strdup (Depends-on): Likewise.
31663 * modules/getdelim (Depends-on): Add realloc-posix.
31664 * modules/read-file (Depends-on): Likewise.
31666 2007-09-09 Bruno Haible <bruno@clisp.org>
31668 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31669 (gl_FUNC_MALLOC_POSIX): Require it.
31670 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31671 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31672 * modules/realloc (Files): Add m4/malloc.m4.
31673 * modules/calloc (Files): Likewise.
31675 2007-09-09 Bruno Haible <bruno@clisp.org>
31677 * modules/malloc-posix: New file.
31678 * modules/malloc (Depends-on): Add malloc-posix.
31679 * lib/malloc.c: Include errno.h.
31680 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31681 and a POSIX-compatible malloc into a single function. Set ENOMEM
31682 when returning NULL.
31683 * m4/malloc.m4: New file.
31684 * doc/functions/malloc.texi: Mention the malloc-posix module.
31685 * lib/stdlib_.h (malloc): New declaration.
31686 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31687 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31688 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31689 and HAVE_MALLOC_POSIX.
31691 2007-09-09 Bruno Haible <bruno@clisp.org>
31693 * modules/realloc-posix: New file.
31694 * modules/realloc (Depends-on): Add realloc-posix.
31695 * lib/realloc.c: Include errno.h.
31696 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31697 and a POSIX-compatible realloc into a single function. Set ENOMEM
31698 when returning NULL.
31699 * m4/realloc.m4: New file.
31700 * doc/functions/realloc.texi: Mention the realloc-posix module.
31701 * lib/stdlib_.h (realloc): New declaration.
31702 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31703 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31704 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31705 and HAVE_REALLOC_POSIX.
31707 2007-09-09 Bruno Haible <bruno@clisp.org>
31709 * modules/calloc-posix: New file.
31710 * modules/calloc (Depends-on): Add calloc-posix.
31711 * lib/calloc.c: Include errno.h.
31712 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31713 and a POSIX-compatible calloc into a single function. Set ENOMEM
31714 when returning NULL.
31715 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31716 * doc/functions/calloc.texi: Mention the calloc-posix module.
31717 * lib/stdlib_.h (calloc): New declaration.
31718 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31719 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31720 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31721 and HAVE_CALLOC_POSIX.
31723 2007-09-09 Bruno Haible <bruno@clisp.org>
31725 Allow for modules to show an arbitrary notice.
31726 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31727 * gnulib-tool: New option --extract-notice.
31728 (func_usage): Document it.
31729 (sed_extract_prog): Update.
31730 (func_get_notice): New function.
31731 (func_modules_notice): New function.
31732 (func_import, func_create_testdir): Invoke it.
31733 Suggested by Jim Meyering.
31735 2007-09-09 Bruno Haible <bruno@clisp.org>
31737 * gnulib-tool: New options --verbose, --quiet.
31738 (func_usage): Document them.
31739 (verbose): New variable.
31740 (func_execute_command): New function.
31741 (func_import): Don't show the module list and the file list if
31743 (func_create_testdir): Likewise. Use func_execute_command.
31744 (func_create_megatestdir): Use func_execute_command.
31746 2007-09-08 Bruno Haible <bruno@clisp.org>
31748 * gnulib-tool (func_import): Prefer rsync over wget when available,
31749 for fetching the PO files.
31751 2007-09-08 Bruno Haible <bruno@clisp.org>
31753 * posix-modules: New file. Portions copied from gnulib-tool.
31754 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31756 2007-09-08 Jim Meyering <jim@meyering.net>
31758 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31759 * lib/fpending.h: Rename from __fpending.h.
31760 * lib/fpending.c: Rename from __fpending.c.
31761 Include "fpending.h", not "__fpending.h".
31762 * lib/__fpending.h, lib/__fpending.c: Remove files.
31763 * modules/fpending (Files): Reflect new file names.
31764 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31766 2007-09-08 Bruno Haible <bruno@clisp.org>
31768 * m4/inttypes-h.m4: Remove stub file.
31770 2007-09-07 Simon Josefsson <simon@josefsson.org>
31772 * doc/headers/stdint.texi: Discuss #include_next issue.
31774 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
31776 * build-aux/bootstrap: Remove obsolete comment about wget --help.
31778 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31780 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31783 2007-09-03 Jim Meyering <jim@meyering.net>
31785 New module: git-version-gen.
31786 * modules/git-version-gen: New file.
31788 Import changes from coreutils for bootstrap script.
31790 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31792 bootstrap: uses rsync to download the .po files
31793 * build-aux/bootstrap (po_download_command_format): New global.
31794 (download_po_files): Use rsync.
31795 (update_po_files): Don't remove .po files after download,
31796 so future rsync runs can take advantage of the copies.
31798 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31800 Solve the unnecessary-.po-file-regeneration problem once and for all.
31801 * build-aux/bootstrap (download_po_files): New function, renamed from
31802 get_translations. Now, downloads, but doesn't update LINGUAS.
31803 (update_po_files): New function.
31805 bootstrap: Ignore more.
31806 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31807 uniwidth to e.g., lib/.gitignore.
31808 (slurp): Handle the sys_stat_.h -> sys mapping, too.
31810 * build-aux/bootstrap: New setting: vc_ignore.
31811 (insert_sorted_if_absent): Create $file if absent.
31812 Adapt to new, possibly empty, list: $vc_ignore.
31814 bootstrap: generate more ignorable names
31815 * build-aux/bootstrap (slurp): When generating ignorable names,
31816 also map .sin to .sed, .gperf to .c, and .y to .c.
31818 2007-09-03 Jim Meyering <jim@meyering.net>
31820 * build-aux/git-version-gen: New file, from coreutils. For details, see
31821 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31823 2007-09-02 Bruno Haible <bruno@clisp.org>
31825 Fix mis-recognition of 'mcs' on QNX 6.
31826 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31827 output contains the string "Mono".
31828 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31829 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31831 2007-09-01 Bruno Haible <bruno@clisp.org>
31833 Fix collision between uniwidth/* and linebreak modules.
31834 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31835 u32_width): Remove declarations.
31836 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31837 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31838 streq3, streq2, streq1, streq0): Remove functions.
31839 (STREQ): Remove macro.
31840 (is_cjk_encoding): Remove function.
31841 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31842 (uc_width, u8_width, u16_width, u32_width): Remove functions.
31843 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31844 * NEWS: Document the change.
31846 2007-09-01 Bruno Haible <bruno@clisp.org>
31848 * lib/streq.h: Add double-inclusion guard.
31850 2007-09-01 Karl Berry <karl@gnu.org>
31852 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31854 2007-08-28 Jim Meyering <jim@meyering.net>
31856 Rename mreadlink_with_size to areadlink_with_size.
31857 * NEWS: Document the change.
31858 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31859 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31860 * lib/mreadlink.h: Rename this to...
31861 * lib/areadlink.h: ...this.
31862 * modules/mreadlink-with-size: Rename this to...
31863 * modules/areadlink-with-size: ...this.
31864 * lib/canonicalize.c: Reflect the renaming.
31865 * modules/canonicalize: Likewise.
31867 2007-08-26 Bruno Haible <bruno@clisp.org>
31869 * gnulib-tool (func_import): When deciding which files to remove,
31870 consider also dangling symbolic links.
31871 Reported by Eric Blake.
31873 2007-08-26 Bruno Haible <bruno@clisp.org>
31875 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31877 2007-08-23 Simon Josefsson <simon@josefsson.org>
31879 * lib/readline.c: Don't include getline.h, the prototype is now
31882 2007-08-23 Jim Meyering <jim@meyering.net>
31885 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31886 around the funlockfile call, since funlockfile never sets errno.
31887 Don't set errno upon failed realloc.
31889 2007-08-22 Eric Blake <ebb9@byu.net>
31892 * lib/getdelim.c (getdelim): Revert regression that required *n to
31893 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
31894 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31895 getdelim, rather than whether implementation is missing.
31896 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31897 * lib/stdio_.h (getline): Also declare if replacement is
31899 * doc/functions/getdelim.texi: New file.
31900 * doc/functions/getline.texi: Likewise.
31901 * doc/gnulib.texi (Function Substitutes): Add new files.
31902 Reported by Bruno Haible.
31904 2007-08-22 Ludovic Courtès <ludo@gnu.org>
31906 * users.txt: Add Guile.
31908 2007-08-22 Eric Blake <ebb9@byu.net>
31910 * tests/test-getdelim.c (main): Use remove, not unlink.
31911 * tests/test-getline.c (main): Likewise.
31913 Move getline and getdelim into stdio.h, per POSIX 200x.
31914 * modules/getline (Files): Remove getline.h.
31915 (Depends-on): Add stdio.
31916 (configure.ac): Add module indicator.
31917 * modules/getdelim (Files): Remove getdelim.h.
31918 (Depends-on): Add stdio.
31919 (configure.ac): Add module indicator.
31920 * modules/stdio (Makefile.am): Work with new indicators.
31921 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31922 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31923 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31924 * lib/getdelim.h: Delete.
31925 * lib/getline.h: Delete.
31926 * lib/stdio_.h (getdelim, getline): Declare.
31927 * modules/getdelim-tests: New module.
31928 * modules/getline-tests: Likewise.
31929 * tests/test-getdelim.c: New file.
31930 * tests/test-getline.c: Likewise.
31931 * NEWS: Document the change.
31932 * lib/getline.c: Update choice of header.
31933 * lib/csharpcomp.c: Likewise.
31934 * lib/getpass.c: Likewise.
31935 * lib/javacomp.c: Likewise.
31936 * lib/javaversion.c: Likewise.
31937 * lib/yesno.c: Likewise.
31938 * lib/getdelim.c: Likewise.
31939 (getdelim): Set errno on failure, and avoid memory leak.
31941 2007-08-19 Bruno Haible <bruno@clisp.org>
31943 * modules/closein (Depends-on): Add freadahead.
31944 * lib/closein.c: Include freadahead.h.
31945 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31948 2007-08-19 Bruno Haible <bruno@clisp.org>
31950 * modules/freadahead-tests: New file.
31951 * tests/test-freadahead.sh: New file.
31952 * tests/test-freadahead.c: New file.
31954 * modules/freadahead: New file.
31955 * lib/freadahead.h: New file.
31956 * lib/freadahead.c: New file.
31957 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31958 fbufmode, fpurge, freadable, fwritable.
31960 2007-08-19 Eric Blake <ebb9@byu.net>
31962 Test yesno in combination with closein.
31963 * lib/yesno.c (yesno): Document use of stdin.
31964 * modules/yesno-tests (Files): New module.
31965 * tests/test-yesno.c (main): New file.
31966 * tests/test-yesno.sh: Likewise.
31968 2007-08-19 Bruno Haible <bruno@clisp.org>
31970 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31971 * lib/fseeko.c (rpl_fseeko): Likewise.
31972 * lib/fseterr.c (fseterr): Likewise.
31974 2007-08-19 Bruno Haible <bruno@clisp.org>
31976 * tests/test-lseek.c (main): Disable a test for BeOS.
31977 * doc/functions/lseek.texi: Document the BeOS bug.
31979 2007-08-19 Bruno Haible <bruno@clisp.org>
31980 Eric Blake <ebb9@byu.net>
31982 * lib/lseek.c: Include <sys/stat.h>.
31983 (rpl_lseek): Add workaround code also for Unix platforms.
31985 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31986 * doc/functions/lseek.texi: Document BeOS definiency.
31988 2007-08-18 Bruno Haible <bruno@clisp.org>
31990 * modules/fstrcmp-tests: New file.
31991 * tests/test-fstrcmp.c: New file.
31993 2007-08-18 Bruno Haible <bruno@clisp.org>
31995 * modules/fstrcmp: New file, from GNU gettext with modifications.
31996 * lib/fstrcmp.h: New file, from GNU gettext.
31997 * lib/fstrcmp.c: New file, from GNU gettext.
31998 * MODULES.html.sh (String handling): Add fstrcmp.
32000 2007-08-18 Bruno Haible <bruno@clisp.org>
32002 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32004 (diag, compareseq): Remove const from the ctxt argument.
32005 (USE_HEURISTIC): Undefine at the end.
32007 2007-08-18 Jim Meyering <jim@meyering.net>
32009 New file: lib/idcache.h
32010 * NEWS: Mention the addition.
32011 * modules/idcache (Files): Add lib/idcache.h
32012 * lib/idcache.c: Include "idcache.h".
32013 Don't include <sys/types.h>.
32014 Add a FIXME comment.
32015 Move file-scoped "static" declarations to the top.
32016 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
32018 2007-08-17 Bruno Haible <bruno@clisp.org>
32019 and Paul Eggert <eggert@cs.ucla.edu>
32021 * MODULES.html.sh: Add diffseq.
32022 * modules/diffseq: New file.
32023 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32024 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32026 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
32028 Import changes from coreutils for bootstrap script.
32030 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
32032 * build-aux/bootstrap (slurp): Work even in environments where
32033 "ls" defaults to "ls -A". Put in a FIXME, though, since the
32034 current code does not slurp files whose names start with ".", and
32035 this looks like it might be a troublesome area.
32037 2007-07-11 Jim Meyering <jim@meyering.net>
32039 If there's a GPL vN copyright comment, require that N == 3.
32041 2007-07-08 Jim Meyering <jim@meyering.net>
32043 Run the coreutils-specific code only if tests/Makefile.am.in exists.
32044 * build-aux/bootstrap (mam_template): Move definition out of loop.
32046 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32048 * build-aux/bootstrap (symlink_to_dir): Rename function from
32049 symlink_to_gnulib. Add a directory parameter. Update all
32051 (cp_mark_as_generated): Also check for -- and link to -- files in
32054 2007-07-08 Jim Meyering <jim@meyering.net>
32056 Adapt to deeper hierarchy in gnulib.
32057 * build-aux/bootstrap (symlink_to_dir): If the destination
32058 directory doesn't exist, create it. This is required at least for
32059 "lib/uniwidth/cjk.h".
32061 2007-05-15 Jim Meyering <jim@meyering.net>
32063 * build-aux/bootstrap: Now that generated Makefile.am files
32064 are no longer under version control, they must be created at
32067 2007-08-14 Ben Pfaff <blp@gnu.org>
32069 * lib/count-one-bits.h: Add comments. From Bruno Haible.
32071 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
32073 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32074 given the changes below.
32075 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
32076 even on hosts that have padding bits beyond the supported 64.
32078 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
32080 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32081 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32082 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
32084 (xstrtol_error): Remove.
32085 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32086 but with a different signature.
32087 (ATTRIBUTE_NORETURN, __attribute__): New macros.
32088 * lib/xstrtol-error.c: Include exitfail.h.
32089 (xstrtol_fatal): New function, with a different signature from the
32090 old xstrtol_error, so that the caller need not worry about passing
32091 in an exit status, or about storage management of the option argument.
32092 (xstrtol_error): Now a static function. Redo signature to
32093 implement xstrtol_fatal. Output the correct number of hyphens in
32094 front of the option so that the caller need not worry about
32095 storage management.
32097 (_): Remove; not used now.
32098 * modules/xstrtol: Depend on getopt.
32099 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32100 of old STRTOL_FATAL_ERROR macro.
32101 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32103 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32104 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32106 2007-08-08 Eric Blake <ebb9@byu.net>
32108 * lib/xstrtol-error.c: Add missing include.
32110 Move xstrtol messages into gnulib domain, when --pobase is used.
32111 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32112 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32113 * modules/xstrtol (Files): Distribute new file.
32114 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32115 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32116 * tests/test-xstrtol.c: ...into new file.
32117 * tests/test-xstrtoul.c: Also test xstrtoul.
32118 * tests/test-xstrtoimax.c: Also test xstrtoimax.
32119 * tests/test-xstrtoumax.c: Also test xstrtoumax.
32120 * tests/test-xstrtol.sh: Drive the tests.
32121 * tests/test-xstrtoimax.sh: Likewise.
32122 * tests/test-xstrtoumax.sh: Likewise.
32123 * modules/xstrtol-tests: New module.
32124 * modules/xstrtoimax-tests: Likewise.
32125 * modules/xstrtoumax-tests: Likewise.
32127 2007-08-08 Jim Meyering <jim@meyering.net>
32129 New function: mfile_name_concat.
32130 * lib/filenamecat.c (mfile_name_concat): New function, just like
32131 file_name_concat, but return NULL upon failure rather than exiting
32133 * lib/filenamecat.h: Declare it.
32135 2007-08-07 Bruno Haible <bruno@clisp.org>
32137 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32138 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32140 Reported by Eric Blake.
32142 2007-08-07 Simon Josefsson <simon@josefsson.org>
32144 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32145 * modules/crypto/arcfour (License): Likewise.
32146 * modules/crypto/des-tests (License): Likewise.
32147 * modules/crypto/gc-arctwo-tests (License): Likewise.
32148 * modules/crypto/gc-des-tests (License): Likewise.
32149 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32150 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32151 * modules/crypto/gc-md2-tests (License): Likewise.
32152 * modules/crypto/gc-md4-tests (License): Likewise.
32153 * modules/crypto/gc-md5-tests (License): Likewise.
32154 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32155 * modules/crypto/gc-rijndael-tests (License): Likewise.
32156 * modules/crypto/gc-sha1-tests (License): Likewise.
32157 * modules/crypto/gc-tests (License): Likewise.
32158 * modules/crypto/hmac-md5 (License): Likewise.
32159 * modules/crypto/hmac-sha1 (License): Likewise.
32160 * modules/crypto/md2-tests (License): Likewise.
32161 * modules/crypto/md4-tests (License): Likewise.
32162 * modules/crypto/md5 (License): Likewise.
32163 * modules/crypto/rijndael (License): Likewise.
32164 * modules/crypto/sha1 (License): Likewise.
32165 * modules/memxor (License): Likewise.
32167 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
32168 and Bruno Haible <bruno@clisp.org>
32170 * NEWS: Describe interface changes to human, xstrtol.
32171 * lib/human.h: Include <xstrtol.h>.
32172 (human_options): Return enum strtol_error, not int. Remove
32173 bool arg; take int * instead.
32174 * lib/human.c: Don't include "gettext.h".
32175 (_): Remove; no longer used.
32176 Don't include <xstrtol.h>, since human.h does it.
32177 (human_options): Adjust to abovementioned interface changes.
32178 Do not report error to stderr; that's now the caller's
32180 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32182 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32183 Str, Argument_type_string. All uses changed. Put " argument"
32184 in diagnostics to make them clearer. Change wording of suffix
32185 message for clarity.
32186 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32187 Argument_type_string.
32188 (STRTOL_FATAL_WARN): Remove; no longer used.
32189 * modules/human (Depends-on): Remove gettext-h.
32191 2007-08-06 Simon Josefsson <simon@josefsson.org>
32193 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32195 2007-07-31 Bruno Haible <bruno@clisp.org>
32197 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32198 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32199 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32201 2007-07-31 Bruno Haible <bruno@clisp.org>
32203 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32204 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32206 2007-07-30 Bruno Haible <bruno@clisp.org>
32208 * modules/base64 (License): Use the synonymous term "LGPLv2+".
32209 * modules/c-ctype (License): Likewise.
32210 * modules/c-strcase (License): Likewise.
32211 * modules/check-version (License): Likewise.
32212 * modules/iconv (License): Likewise.
32213 * modules/iconv_open (License): Likewise.
32214 * modules/read-file (License): Likewise.
32215 * modules/striconv (License): Likewise.
32216 * modules/strverscmp (License): Likewise.
32217 * modules/vasprintf (License): Likewise.
32218 * modules/crypto/des (License): Likewise.
32219 * modules/crypto/gc (License): Likewise.
32220 * modules/crypto/gc-arcfour (License): Likewise.
32221 * modules/crypto/gc-arctwo (License): Likewise.
32222 * modules/crypto/gc-des (License): Likewise.
32223 * modules/crypto/gc-hmac-md5 (License): Likewise.
32224 * modules/crypto/gc-hmac-sha1 (License): Likewise.
32225 * modules/crypto/gc-md2 (License): Likewise.
32226 * modules/crypto/gc-md4 (License): Likewise.
32227 * modules/crypto/gc-md5 (License): Likewise.
32228 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32229 * modules/crypto/gc-random (License): Likewise.
32230 * modules/crypto/gc-rijndael (License): Likewise.
32231 * modules/crypto/gc-sha1 (License): Likewise.
32232 * modules/crypto/md2 (License): Likewise.
32233 * modules/crypto/md4 (License): Likewise.
32235 2007-07-30 Jim Meyering <jim@meyering.net>
32237 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32238 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32239 it has valid stat data. This bug would cause du not to count the
32240 sizes of inaccessible directories.
32241 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32242 in <http://bugzilla.redhat.com/250077>.
32244 2007-07-25 Peter O'Gorman <peter@pogma.com>
32245 Bruno Haible <bruno@clisp.org>
32247 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32248 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32249 #include_next, gives a diagnostic about it, but reports no error in
32251 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32253 2007-07-24 Ben Pfaff <blp@gnu.org>
32255 Improve name: "count-one-bits" is better than "popcount".
32256 * MODULES.html.sh: Update name.
32257 * lib/popcount.h: Renamed lib/count-one-bits.h.
32258 (popcount): Renamed count_one_bits.
32259 (popcountl): Renamed count_one_bits_l.
32260 (popcountll): Renamed count_one_bits_ll.
32261 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32262 * modules/popcount: Renamed module/count-one-bits.
32263 * modules/popcount-tests: Renamed module/count-one-bits-tests.
32264 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32266 2007-07-23 Ben Pfaff <blp@gnu.org>
32268 * lib/popcount.h (popcount32): Reduce size of constants, to allow
32269 better code generation, and add U to large constants to avoid
32270 warnings, in non-GCC case.
32271 Suggested by Bruno Haible.
32273 2007-07-23 Ben Pfaff <blp@gnu.org>
32275 * lib/popcount.h: Use verify_true instead of if...abort.
32276 * modules/popcount: Depend on verify module.
32277 Suggested by Jim Meyering.
32279 2007-07-23 Bruno Haible <bruno@clisp.org>
32281 * gnulib-tool (func_import): Create a .cvsignore file also when the
32282 directory is not yet in CVS but the toplevel directory is. When
32283 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32284 Reported by Karl Berry.
32286 2007-07-22 Ben Pfaff <blp@gnu.org>
32288 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32290 Suggested by Eric Blake.
32292 2007-07-22 Ben Pfaff <blp@gnu.org>
32294 New module: popcount.
32295 * MODULES.html.sh: Add popcount.
32296 * modules/popcount: New file.
32297 * modules/popcount-tests: New file.
32298 * tests/test-popcount.c: New file.
32299 * lib/popcount.h: New file.
32300 * m4/popcount.m4: New file.
32302 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
32304 * build-aux/announce-gen: Update to GPLv3.
32306 * build-aux/config.guess: Update from config.
32308 2007-07-21 Bruno Haible <bruno@clisp.org>
32310 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32311 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32313 2007-07-20 Jim Meyering <jim@meyering.net>
32315 * check-module: Diagnose a self-dependency.
32317 2007-07-19 Bruno Haible <bruno@clisp.org>
32319 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32321 Reported by Eric Blake.
32323 2007-07-18 Bruno Haible <bruno@clisp.org>
32325 * gnulib-tool: New options --po-base, --po-domain.
32326 (func_usage): Document them.
32327 (pobase, po_domain): New variables.
32328 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32329 DEFAULT_TEXT_DOMAIN.
32330 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32331 (func_import): Consider pobase and po_domain. Create a po/ directory.
32332 (func_create_testdir): Set pobase and po_domain to empty.
32333 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32334 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32336 2007-07-18 Bruno Haible <bruno@clisp.org>
32338 * gnulib-tool (func_get_automake_snippet): Synthesize also an
32339 EXTRA_DIST augmentation for files in build-aux/.
32341 2007-07-16 Bruno Haible <bruno@clisp.org>
32343 * modules/lseek (License): Use the synonymous term "LGPLv2+".
32344 * modules/getdelim (License): Likewise.
32346 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32348 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32349 * modules/d-type (License): Likewise.
32350 * modules/extensions (License): Likewise.
32351 * modules/fnmatch (License): Likewise.
32352 * modules/fseeko (License): Likewise.
32353 * modules/getaddrinfo (License): Likewise.
32354 * modules/getline (License): Likewise.
32355 * modules/getlogin_r (License): Likewise.
32356 * modules/getpass (License): Likewise.
32357 * modules/gettimeofday (License): Likewise.
32358 * modules/glob (License): Likewise.
32359 * modules/inet_ntop (License): Likewise.
32360 * modules/malloc (License): Likewise.
32361 * modules/malloca (License): Likewise.
32362 * modules/memmem (License): Likewise.
32363 * modules/mempcpy (License): Likewise.
32364 * modules/memset (License): Likewise.
32365 * modules/minmax (License): Likewise.
32366 * modules/mktime (License): Likewise.
32367 * modules/netinet_in (License): Likewise.
32368 * modules/pathmax (License): Likewise.
32369 * modules/poll (License): Likewise.
32370 * modules/regex (License): Likewise.
32371 * modules/snprintf (License): Likewise.
32372 * modules/stdbool (License): Likewise.
32373 * modules/stdint (License): Likewise.
32374 * modules/stdio (License): Likewise.
32375 * modules/strcase (License): Likewise.
32376 * modules/strcasestr (License): Likewise.
32377 * modules/strdup (License): Likewise.
32378 * modules/string (License): Likewise.
32379 * modules/strndup (License): Likewise.
32380 * modules/strnlen (License): Likewise.
32381 * modules/strpbrk (License): Likewise.
32382 * modules/strptime (License): Likewise.
32383 * modules/strsep (License): Likewise.
32384 * modules/sys_select (License): Likewise.
32385 * modules/sys_socket (License): Likewise.
32386 * modules/sys_stat (License): Likewise.
32387 * modules/sys_time (License): Likewise.
32388 * modules/time (License): Likewise.
32389 * modules/time_r (License): Likewise.
32390 * modules/timegm (License): Likewise.
32391 * modules/unistd (License): Likewise.
32392 * modules/vsnprintf (License): Likewise.
32393 * modules/wctype (License): Likewise.
32395 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32397 * modules/argz (License): LGPLv2+.
32399 2007-07-15 Karl Berry <karl@gnu.org>
32401 * doc/gnulib.texi: revise node structure per new fdl.texi.
32403 2007-07-14 Bruno Haible <bruno@clisp.org>
32405 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32407 * lib/uniname/uninames.h: Regenerated.
32409 2007-07-14 Karl Berry <karl@gnu.org>
32411 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32412 omitting sectioning and index commands.
32414 2007-07-13 Bruno Haible <bruno@clisp.org>
32416 New gnulib-tool option --more-symlinks.
32417 * gnulib-tool (func_usage): Document --more-symlinks.
32418 (do_copyrights): New variable.
32419 Recognize option --more-symlinks.
32420 (func_import): Don't add a copyright notice transform to
32421 sed_transform_lib_file if do_copyrights is empty.
32423 2007-07-13 Bruno Haible <bruno@clisp.org>
32425 * lib/vasnprintf.c (decimal_point_char): Define also if
32426 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32427 && !NEED_PRINTF_DIRECTIVE_A.
32428 Reported by Clemens Koller <clemens.koller@anagramm.de> via
32429 Gary V. Vaughan <gary@gnu.org>.
32431 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
32433 * lib/inttypes_.h: Undo previous change, since it was fixed
32434 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32436 2007-07-13 Bruno Haible <bruno@clisp.org>
32438 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32439 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32441 2007-07-13 Jim Meyering <jim@meyering.net>
32443 df: Don't fail for Tru64's "file-on-file mount".
32444 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32445 so we fall through and use statfs instead. Details here:
32446 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32447 Reported by Albert Chin.
32449 2007-07-13 Bruno Haible <bruno@clisp.org>
32451 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32452 * modules/configmake (License): Likewise.
32453 * modules/gettext (License): Likewise.
32454 * modules/gettext-h (License): Likewise.
32455 * modules/include_next (License): Likewise.
32456 * modules/link-warning (License): Likewise.
32457 * modules/localcharset (License): Likewise.
32458 * modules/localename (License): Likewise.
32459 * modules/lock (License): Likewise.
32460 * modules/relocatable-lib-lgpl (License): Likewise.
32461 * modules/size_max (License): Likewise.
32462 * modules/vasnprintf (License): Likewise.
32463 * modules/wchar (License): Likewise.
32464 * modules/xsize (License): Likewise.
32466 2007-07-13 Bruno Haible <bruno@clisp.org>
32468 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32469 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32471 2007-07-12 Bruno Haible <bruno@clisp.org>
32473 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32474 in the modules files.
32476 2007-07-11 Karl Berry <karl@gnu.org>
32478 * MODULES.html.sh (func_module): use
32479 sed -e '\|^'"${includefile}"'$|d'
32480 instead of /.../d, to avoid errors on $includefile's containing /.
32482 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
32484 * gnulib-tool (func_import): Avoid duplication of --avoid
32486 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32487 names to `_' in variable names.
32489 2007-07-10 Eric Blake <ebb9@byu.net>
32491 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32492 * NEWS: Document this change.
32494 2007-07-08 Bruno Haible <bruno@clisp.org>
32496 Update to Unicode 5.0.
32497 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32498 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32499 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32500 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32501 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32502 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32503 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32504 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32505 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32506 U+10A3F, U+1D242..U+1D244.
32507 (nonspacing_table_ind): Update.
32508 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32509 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32511 2007-07-08 Bruno Haible <bruno@clisp.org>
32513 Update to Unicode 5.0.
32514 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32515 code transform. Extend the name index field of unicode_name_to_code and
32516 unicode_code_to_name from 16 to 24 bits.
32517 * lib/uniname/uniname.c (unicode_character_name,
32518 unicode_name_character): Add the range 0x12xxx to the code transform.
32519 * lib/uniname/uninames.h: Regenerated.
32520 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32522 2007-07-07 Bruno Haible <bruno@clisp.org>
32524 * modules/wcwidth-tests: New file.
32525 * tests/test-wcwidth.c: New file.
32527 Work around MacOS X wcwidth() bug.
32528 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32529 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32530 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32531 original wcwidth in non-UTF-8 locales.
32532 * modules/wcwidth (Depends-on): Add localcharset, streq,
32534 * doc/functions/wcwidth.texi: Update.
32536 2007-07-07 Bruno Haible <bruno@clisp.org>
32538 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32539 (wcwidth): New declaration.
32540 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32542 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32543 here. Prepare for creating <wchar.h> unconditionally.
32544 * modules/wchar (Depends-on): Add link-warning.
32545 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32546 REPLACE_WCWIDTH, and GL_LINK_WARNING.
32547 * lib/wcwidth.h: Remove file.
32548 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32549 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32550 * modules/wcwidth (Files): Remove lib/wcwidth.h.
32551 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32552 (Include): Replace wcwidth.h with <wchar.h>.
32553 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32554 * lib/mbchar.h: Don't include wcwidth.h.
32555 * lib/mbswidth.c: Likewise.
32556 * NEWS: Mention the change.
32558 2007-07-07 Bruno Haible <bruno@clisp.org>
32560 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32561 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32562 definition with an external declaration.
32563 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32564 defined as a function. Remove AC_C_INLINE requirement.
32565 * modules/wcwidth (Files): Add lib/wcwidth.c.
32566 (Makefile.am): Remove redundant statement.
32568 2007-07-07 Bruno Haible <bruno@clisp.org>
32570 * MODULES.html.sh (Unicode string functions): Add the new modules.
32572 * tests/uniwidth/test-u32-strwidth.c: New file.
32573 * modules/uniwidth/u32-strwidth-tests: New file.
32575 * lib/uniwidth/u32-strwidth.c: New file.
32576 * modules/uniwidth/u32-strwidth: New file.
32578 * tests/uniwidth/test-u16-strwidth.c: New file.
32579 * modules/uniwidth/u16-strwidth-tests: New file.
32581 * lib/uniwidth/u16-strwidth.c: New file.
32582 * modules/uniwidth/u16-strwidth: New file.
32584 * tests/uniwidth/test-u8-strwidth.c: New file.
32585 * modules/uniwidth/u8-strwidth-tests: New file.
32587 * lib/uniwidth/u8-strwidth.c: New file.
32588 * modules/uniwidth/u8-strwidth: New file.
32590 * tests/uniwidth/test-u32-width.c: New file.
32591 * modules/uniwidth/u32-width-tests: New file.
32593 * lib/uniwidth/u32-width.c: New file.
32594 * modules/uniwidth/u32-width: New file.
32596 * tests/uniwidth/test-u16-width.c: New file.
32597 * modules/uniwidth/u16-width-tests: New file.
32599 * lib/uniwidth/u16-width.c: New file.
32600 * modules/uniwidth/u16-width: New file.
32602 * tests/uniwidth/test-u8-width.c: New file.
32603 * modules/uniwidth/u8-width-tests: New file.
32605 * lib/uniwidth/u8-width.c: New file.
32606 * modules/uniwidth/u8-width: New file.
32608 * tests/uniwidth/test-uc_width.c: New file.
32609 * modules/uniwidth/width-tests: New file.
32611 * lib/uniwidth/width.c: New file, from GNU libiconv.
32612 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32613 * modules/uniwidth/width: New file.
32615 * lib/uniwidth.h: New file, from GNU libiconv.
32616 * modules/uniwidth/base: New file.
32618 2007-07-07 Bruno Haible <bruno@clisp.org>
32620 * lib/uniname.h: New file, from GNU gettext.
32621 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32622 * lib/uniname/uninames.h: New file, from GNU gettext.
32623 * lib/uniname/uniname.c: New file, from GNU gettext.
32624 * tests/uniname/test-uninames.sh: New file.
32625 * tests/uniname/test-uninames.c: New file, from GNU gettext.
32626 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32627 * modules/uniname/base: New file.
32628 * modules/uniname/uniname: New file.
32629 * modules/uniname/uniname-tests: New file.
32630 * MODULES.html.sh (Unicode string functions): Add the new modules.
32632 2007-07-06 Bruno Haible <bruno@clisp.org>
32634 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32636 2007-07-06 Bruno Haible <bruno@clisp.org>
32638 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32639 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32640 includes <cygwin/sys_time.h> which includes <sys/select.h> which
32641 include <sys/time.h>.
32642 Reported by Eric Blake.
32644 2007-07-06 Eric Blake <ebb9@byu.net>
32646 Fix testing canonicalize on cygwin.
32647 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32648 Revert patch from 2007-06-19.
32649 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32650 canonicalize module is also in use.
32651 * tests/test-canonicalize.c: New file.
32652 * tests/test-canonicalize.sh: Likewise.
32653 * modules/canonicalize-tests: Likewise.
32655 2007-07-06 Jim Meyering <jim@meyering.net>
32657 * lib/getugroups.c (getugroups): Detect getgrent failure.
32658 Adjust comment to reflect reality: this function may return -1.
32660 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
32662 * build-aux/bootstrap (TP_URL,get_translations): Update to use
32663 the new TP address.
32665 (gnulib_mk): New variable.
32667 2007-07-05 Jim Meyering <jim@meyering.net>
32669 Don't let endgrent clobber errno, no matter how improbable.
32670 * lib/getugroups.c (getugroups): Save and restore errno around
32673 Close the group DB even when failing with 2^31 or more members.
32674 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32676 2007-07-04 Jim Meyering <jim@meyering.net>
32678 * lib/getugroups.h: New file.
32679 * lib/getugroups.c: Include "getugroups.h".
32680 Remove uses of "register" keyword.
32681 Move local variable, "cp", down into scope where used.
32682 Give "username" parameter the "const" attribute.
32683 * modules/getugroups (Files): Add lib/getugroups.h
32685 2007-07-04 Karl Berry <karl@gnu.org>
32687 * MODULES.html.sh (func_all_modules): Complete rename of
32688 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32690 2007-07-02 Bruno Haible <bruno@clisp.org>
32692 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32693 mode, when inttypes.h comes from gnulib.
32694 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32696 2007-07-02 Simon Josefsson <simon@josefsson.org>
32698 * NEWS: Mention lgpl module name change.
32700 * modules/lgpl-2.1: Renamed from lgpl.
32702 * NEWS: Mention gpl module name change.
32704 * modules/gpl-3.0: New file, based on gpl-2.0.
32706 * modules/gpl-2.0: Renamed from gpl.
32708 * modules/gpl: Fix filename, doc/gpl.texi is now found at
32711 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
32713 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32714 #define __STDC_LIMIT_MACROS temporarily while including
32715 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32716 Problem reported by Joel E. Denny in
32717 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32719 2007-07-01 Bruno Haible <bruno@clisp.org>
32721 * lib/unistdio.h: New file.
32722 * lib/unistdio/u-asnprintf.h: New file.
32723 * lib/unistdio/u-asprintf.h: New file.
32724 * lib/unistdio/u-printf-args.c: New file.
32725 * lib/unistdio/u-printf-args.h: New file.
32726 * lib/unistdio/u-printf-parse.h: New file.
32727 * lib/unistdio/u-snprintf.h: New file.
32728 * lib/unistdio/u-sprintf.h: New file.
32729 * lib/unistdio/u-vasprintf.h: New file.
32730 * lib/unistdio/u-vsnprintf.h: New file.
32731 * lib/unistdio/u-vsprintf.h: New file.
32732 * lib/unistdio/ulc-asnprintf.c: New file.
32733 * lib/unistdio/ulc-asprintf.c: New file.
32734 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32735 * lib/unistdio/ulc-printf-parse.c: New file.
32736 * lib/unistdio/ulc-snprintf.c: New file.
32737 * lib/unistdio/ulc-sprintf.c: New file.
32738 * lib/unistdio/ulc-vasnprintf.c: New file.
32739 * lib/unistdio/ulc-vasprintf.c: New file.
32740 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32741 * lib/unistdio/ulc-vsnprintf.c: New file.
32742 * lib/unistdio/ulc-vsprintf.c: New file.
32743 * lib/unistdio/u8-asnprintf.c: New file.
32744 * lib/unistdio/u8-asprintf.c: New file.
32745 * lib/unistdio/u8-printf-parse.c: New file.
32746 * lib/unistdio/u8-snprintf.c: New file.
32747 * lib/unistdio/u8-sprintf.c: New file.
32748 * lib/unistdio/u8-vasnprintf.c: New file.
32749 * lib/unistdio/u8-vasprintf.c: New file.
32750 * lib/unistdio/u8-vsnprintf.c: New file.
32751 * lib/unistdio/u8-vsprintf.c: New file.
32752 * lib/unistdio/u8-u8-asnprintf.c: New file.
32753 * lib/unistdio/u8-u8-asprintf.c: New file.
32754 * lib/unistdio/u8-u8-snprintf.c: New file.
32755 * lib/unistdio/u8-u8-sprintf.c: New file.
32756 * lib/unistdio/u8-u8-vasnprintf.c: New file.
32757 * lib/unistdio/u8-u8-vasprintf.c: New file.
32758 * lib/unistdio/u8-u8-vsnprintf.c: New file.
32759 * lib/unistdio/u8-u8-vsprintf.c: New file.
32760 * lib/unistdio/u16-asnprintf.c: New file.
32761 * lib/unistdio/u16-asprintf.c: New file.
32762 * lib/unistdio/u16-printf-parse.c: New file.
32763 * lib/unistdio/u16-snprintf.c: New file.
32764 * lib/unistdio/u16-sprintf.c: New file.
32765 * lib/unistdio/u16-vasnprintf.c: New file.
32766 * lib/unistdio/u16-vasprintf.c: New file.
32767 * lib/unistdio/u16-vsnprintf.c: New file.
32768 * lib/unistdio/u16-vsprintf.c: New file.
32769 * lib/unistdio/u16-u16-asnprintf.c: New file.
32770 * lib/unistdio/u16-u16-asprintf.c: New file.
32771 * lib/unistdio/u16-u16-snprintf.c: New file.
32772 * lib/unistdio/u16-u16-sprintf.c: New file.
32773 * lib/unistdio/u16-u16-vasnprintf.c: New file.
32774 * lib/unistdio/u16-u16-vasprintf.c: New file.
32775 * lib/unistdio/u16-u16-vsnprintf.c: New file.
32776 * lib/unistdio/u16-u16-vsprintf.c: New file.
32777 * lib/unistdio/u32-asnprintf.c: New file.
32778 * lib/unistdio/u32-asprintf.c: New file.
32779 * lib/unistdio/u32-printf-parse.c: New file.
32780 * lib/unistdio/u32-snprintf.c: New file.
32781 * lib/unistdio/u32-sprintf.c: New file.
32782 * lib/unistdio/u32-vasnprintf.c: New file.
32783 * lib/unistdio/u32-vasprintf.c: New file.
32784 * lib/unistdio/u32-vsnprintf.c: New file.
32785 * lib/unistdio/u32-vsprintf.c: New file.
32786 * lib/unistdio/u32-u32-asnprintf.c: New file.
32787 * lib/unistdio/u32-u32-asprintf.c: New file.
32788 * lib/unistdio/u32-u32-snprintf.c: New file.
32789 * lib/unistdio/u32-u32-sprintf.c: New file.
32790 * lib/unistdio/u32-u32-vasnprintf.c: New file.
32791 * lib/unistdio/u32-u32-vasprintf.c: New file.
32792 * lib/unistdio/u32-u32-vsnprintf.c: New file.
32793 * lib/unistdio/u32-u32-vsprintf.c: New file.
32794 * tests/unistdio/test-ulc-asnprintf1.c: New file.
32795 * tests/unistdio/test-ulc-asnprintf1.h: New file.
32796 * tests/unistdio/test-ulc-printf1.h: New file.
32797 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32798 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32799 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32800 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32801 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32802 * tests/unistdio/test-ulc-vasprintf1.c: New file.
32803 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32804 * tests/unistdio/test-ulc-vsprintf1.c: New file.
32805 * tests/unistdio/test-u8-asnprintf1.c: New file.
32806 * tests/unistdio/test-u8-asnprintf1.h: New file.
32807 * tests/unistdio/test-u8-printf1.h: New file.
32808 * tests/unistdio/test-u8-vasnprintf1.c: New file.
32809 * tests/unistdio/test-u8-vasnprintf2.c: New file.
32810 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32811 * tests/unistdio/test-u8-vasnprintf3.c: New file.
32812 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32813 * tests/unistdio/test-u8-vasprintf1.c: New file.
32814 * tests/unistdio/test-u8-vsnprintf1.c: New file.
32815 * tests/unistdio/test-u8-vsprintf1.c: New file.
32816 * tests/unistdio/test-u16-asnprintf1.c: New file.
32817 * tests/unistdio/test-u16-asnprintf1.h: New file.
32818 * tests/unistdio/test-u16-printf1.h: New file.
32819 * tests/unistdio/test-u16-vasnprintf1.c: New file.
32820 * tests/unistdio/test-u16-vasnprintf2.c: New file.
32821 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32822 * tests/unistdio/test-u16-vasnprintf3.c: New file.
32823 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32824 * tests/unistdio/test-u16-vasprintf1.c: New file.
32825 * tests/unistdio/test-u16-vsnprintf1.c: New file.
32826 * tests/unistdio/test-u16-vsprintf1.c: New file.
32827 * tests/unistdio/test-u32-asnprintf1.c: New file.
32828 * tests/unistdio/test-u32-asnprintf1.h: New file.
32829 * tests/unistdio/test-u32-printf1.h: New file.
32830 * tests/unistdio/test-u32-vasnprintf1.c: New file.
32831 * tests/unistdio/test-u32-vasnprintf2.c: New file.
32832 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32833 * tests/unistdio/test-u32-vasnprintf3.c: New file.
32834 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32835 * tests/unistdio/test-u32-vasprintf1.c: New file.
32836 * tests/unistdio/test-u32-vsnprintf1.c: New file.
32837 * tests/unistdio/test-u32-vsprintf1.c: New file.
32838 * modules/unistdio/base: New file.
32839 * modules/unistdio/u-printf-args: New file.
32840 * modules/unistdio/ulc-asnprintf: New file.
32841 * modules/unistdio/ulc-asprintf: New file.
32842 * modules/unistdio/ulc-fprintf: New file.
32843 * modules/unistdio/ulc-printf-parse: New file.
32844 * modules/unistdio/ulc-snprintf: New file.
32845 * modules/unistdio/ulc-sprintf: New file.
32846 * modules/unistdio/ulc-vasnprintf: New file.
32847 * modules/unistdio/ulc-vasprintf: New file.
32848 * modules/unistdio/ulc-vfprintf: New file.
32849 * modules/unistdio/ulc-vsnprintf: New file.
32850 * modules/unistdio/ulc-vsprintf: New file.
32851 * modules/unistdio/u8-asnprintf: New file.
32852 * modules/unistdio/u8-asprintf: New file.
32853 * modules/unistdio/u8-printf-parse: New file.
32854 * modules/unistdio/u8-snprintf: New file.
32855 * modules/unistdio/u8-sprintf: New file.
32856 * modules/unistdio/u8-vasnprintf: New file.
32857 * modules/unistdio/u8-vasprintf: New file.
32858 * modules/unistdio/u8-vsnprintf: New file.
32859 * modules/unistdio/u8-vsprintf: New file.
32860 * modules/unistdio/u8-u8-asnprintf: New file.
32861 * modules/unistdio/u8-u8-asprintf: New file.
32862 * modules/unistdio/u8-u8-snprintf: New file.
32863 * modules/unistdio/u8-u8-sprintf: New file.
32864 * modules/unistdio/u8-u8-vasnprintf: New file.
32865 * modules/unistdio/u8-u8-vasprintf: New file.
32866 * modules/unistdio/u8-u8-vsnprintf: New file.
32867 * modules/unistdio/u8-u8-vsprintf: New file.
32868 * modules/unistdio/u16-asnprintf: New file.
32869 * modules/unistdio/u16-asprintf: New file.
32870 * modules/unistdio/u16-printf-parse: New file.
32871 * modules/unistdio/u16-snprintf: New file.
32872 * modules/unistdio/u16-sprintf: New file.
32873 * modules/unistdio/u16-vasnprintf: New file.
32874 * modules/unistdio/u16-vasprintf: New file.
32875 * modules/unistdio/u16-vsnprintf: New file.
32876 * modules/unistdio/u16-vsprintf: New file.
32877 * modules/unistdio/u16-u16-asnprintf: New file.
32878 * modules/unistdio/u16-u16-asprintf: New file.
32879 * modules/unistdio/u16-u16-snprintf: New file.
32880 * modules/unistdio/u16-u16-sprintf: New file.
32881 * modules/unistdio/u16-u16-vasnprintf: New file.
32882 * modules/unistdio/u16-u16-vasprintf: New file.
32883 * modules/unistdio/u16-u16-vsnprintf: New file.
32884 * modules/unistdio/u16-u16-vsprintf: New file.
32885 * modules/unistdio/u32-asnprintf: New file.
32886 * modules/unistdio/u32-asprintf: New file.
32887 * modules/unistdio/u32-printf-parse: New file.
32888 * modules/unistdio/u32-snprintf: New file.
32889 * modules/unistdio/u32-sprintf: New file.
32890 * modules/unistdio/u32-vasnprintf: New file.
32891 * modules/unistdio/u32-vasprintf: New file.
32892 * modules/unistdio/u32-vsnprintf: New file.
32893 * modules/unistdio/u32-vsprintf: New file.
32894 * modules/unistdio/u32-u32-asnprintf: New file.
32895 * modules/unistdio/u32-u32-asprintf: New file.
32896 * modules/unistdio/u32-u32-snprintf: New file.
32897 * modules/unistdio/u32-u32-sprintf: New file.
32898 * modules/unistdio/u32-u32-vasnprintf: New file.
32899 * modules/unistdio/u32-u32-vasprintf: New file.
32900 * modules/unistdio/u32-u32-vsnprintf: New file.
32901 * modules/unistdio/u32-u32-vsprintf: New file.
32902 * modules/unistdio/ulc-asnprintf-tests: New file.
32903 * modules/unistdio/ulc-vasnprintf-tests: New file.
32904 * modules/unistdio/ulc-vasprintf-tests: New file.
32905 * modules/unistdio/ulc-vsnprintf-tests: New file.
32906 * modules/unistdio/ulc-vsprintf-tests: New file.
32907 * modules/unistdio/u8-asnprintf-tests: New file.
32908 * modules/unistdio/u8-vasnprintf-tests: New file.
32909 * modules/unistdio/u8-vasprintf-tests: New file.
32910 * modules/unistdio/u8-vsnprintf-tests: New file.
32911 * modules/unistdio/u8-vsprintf-tests: New file.
32912 * modules/unistdio/u16-asnprintf-tests: New file.
32913 * modules/unistdio/u16-vasnprintf-tests: New file.
32914 * modules/unistdio/u16-vasprintf-tests: New file.
32915 * modules/unistdio/u16-vsnprintf-tests: New file.
32916 * modules/unistdio/u16-vsprintf-tests: New file.
32917 * modules/unistdio/u32-asnprintf-tests: New file.
32918 * modules/unistdio/u32-vasnprintf-tests: New file.
32919 * modules/unistdio/u32-vasprintf-tests: New file.
32920 * modules/unistdio/u32-vsnprintf-tests: New file.
32921 * modules/unistdio/u32-vsprintf-tests: New file.
32922 * MODULES.html.sh (Unicode string functions): Add the new modules.
32924 2007-07-01 Bruno Haible <bruno@clisp.org>
32926 * lib/sprintf.c (sprintf): Limit the available length estimation,
32927 to avoid address wraparound.
32928 * lib/vsprintf.c (vsprintf): Likewise.
32929 * modules/sprintf-posix (Dependencies): Add stdint.
32930 * modules/vsprintf-posix (Dependencies): Likewise.
32932 2007-07-01 Bruno Haible <bruno@clisp.org>
32934 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32935 Windows PATH as well. Conservative double-quoting. Comments.
32937 2007-07-01 Bruno Haible <bruno@clisp.org>
32938 Eric Blake <ebb9@byu.net>
32939 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32941 * gnulib-tool (self_abspathname): Fix algorithm to cope with
32942 empty components in $PATH, denoting '.'.
32944 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32946 * gnulib-tool: Fix indentation.
32947 (func_create_megatestdir): Likewise.
32948 Report by Bruno Haible.
32950 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32952 Sync from Automake.
32953 * build-aux/gnupload: Fix shell portability issues with for loops.
32954 Report by Karl Berry.
32956 2007-06-29 Simon Josefsson <simon@josefsson.org>
32958 * build-aux/maint.mk (POURL): Use translationproject.org.
32960 2007-06-27 Simon Josefsson <simon@josefsson.org>
32961 Bruno Haible <bruno@clisp.org>
32963 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32964 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32965 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32966 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32967 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32969 2007-06-27 Bruno Haible <bruno@clisp.org>
32971 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32972 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32974 2007-06-26 Karl Berry <karl@gnu.org>
32976 * MODULES.html.sh: remove xreadlink-with-size.
32978 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32980 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32981 method that I hope also handles the double-include problem noted
32983 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32985 2007-06-23 Bruno Haible <bruno@clisp.org>
32987 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32988 Don't let the 'mostlyclean' target fail if the last subdirectory could
32990 Reported by Karl Berry.
32992 2007-06-23 Bruno Haible <bruno@clisp.org>
32994 * gnulib-tool (echo): Add a speedier workaround for ksh.
32995 * tests/test-echo.sh: Likewise.
32997 2007-06-23 Bruno Haible <bruno@clisp.org>
32999 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33000 * tests/test-echo.sh: Likewise.
33002 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33004 * gnulib-tool (IFS): Initialize early, so we don't set it to
33006 (self_abspathname): Rewrite algorithm to set it, reindent.
33007 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33008 (func_create_megatestdir): Merge some sed scripts.
33010 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
33012 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33013 exposed by Sun Studio 11 cc on Solaris 8.
33015 2007-06-22 Bruno Haible <bruno@clisp.org>
33017 * gnulib-tool (echo): Ensure the echo primitive does not interpret
33019 * tests/test-echo.sh: New file.
33021 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33023 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33024 simplify `sed_replace_build_aux' scripts, they are portable but
33025 echoing them with `echo' is not.
33026 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33028 2007-06-21 Karl Berry <karl@gnu.org>
33030 * config/srclist.txt: guess we can't handle the licenses via
33031 srclist at the moment.
33033 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
33035 * MODULES.html.sh: Add include_next.
33036 * modules/include_next: New file.
33038 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
33040 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33042 (gl_CHECK_NEXT_HEADERS): New macro.
33043 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33044 the obsolescent gl_ABSOLUTE_HEADER.
33045 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33046 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33047 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33048 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33049 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33050 * m4/math_h.m4 (gl_MATH_H): Likewise.
33051 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33052 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33053 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33054 * m4/stdint.m4 (gl_STDINT_H): Likewise.
33055 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33056 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33057 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33058 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33059 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33060 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33061 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33062 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33063 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33064 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33065 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33066 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33067 * m4/inttypes.m4 (gl_INTTYPES_H): Define
33068 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33069 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33070 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33071 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33072 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33073 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33074 * lib/float_.h: Likewise.
33075 * lib/inttypes_.h: Likewise.
33076 * lib/math_.h: Likewise.
33077 * lib/search_.h: Likewise.
33078 * lib/signal_.h: Likewise.
33079 * lib/stdint_.h: Likewise.
33080 * lib/stdio_.h: Likewise.
33081 * lib/stdlib_.h: Likewise.
33082 * lib/string_.h: Likewise.
33083 * lib/sys_stat_.h: Likewise.
33084 * lib/sys_time_.h: Likewise.
33085 * lib/time_.h: Likewise.
33086 * lib/unistd_.h: Likewise.
33087 * lib/wchar_.h: Likewise.
33088 * lib/wctype_.h: Likewise.
33089 * lib/dirent_.h: Likewise.
33090 * lib/iconv_.h: Likewise.
33091 * lib/locale_.h: Likewise.
33092 * lib/netinet_in_.h: Likewise.
33093 * lib/sys_select_.h: Likewise.
33094 * lib/sys_socket_.h: Likewise.
33095 * lib/sysexits_.h: Likewise.
33096 * modules/fcntl (Depends-on): Depend on include_next, not
33098 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33099 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33100 * modules/fchdir: Likewise.
33101 * modules/float: Likewise.
33102 * modules/iconv_open: Likewise.
33103 * modules/inttypes: Likewise.
33104 * modules/locale: Likewise.
33105 * modules/math: Likewise.
33106 * modules/netinet_in: Likewise.
33107 * modules/search: Likewise.
33108 * modules/signal: Likewise.
33109 * modules/stdint: Likewise.
33110 * modules/stdio: Likewise.
33111 * modules/stdlib: Likewise.
33112 * modules/string: Likewise.
33113 * modules/sys_select: Likewise.
33114 * modules/sys_socket: Likewise.
33115 * modules/sys_stat: Likewise.
33116 * modules/sys_time: Likewise.
33117 * modules/sysexits: Likewise.
33118 * modules/time: Likewise.
33119 * modules/unistd: Likewise.
33120 * modules/wchar: Likewise.
33121 * modules/wctype: Likewise.
33122 * modules/sys_stat: Change maintainer to "all".
33123 * modules/unistd: Likewise.
33125 2007-06-20 Karl Berry <karl@gnu.org>
33127 * config/srclist.txt: track www changes in license files.
33129 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
33131 * build-aux/bootstrap: Remove stray dot.
33132 Make sure build_aux settings are honored when linking
33133 gnulib_extra_files.
33135 2007-06-19 Eric Blake <ebb9@byu.net>
33137 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33138 Allow compilation on cygwin.
33140 2007-06-19 Jim Meyering <jim@meyering.net>
33142 xreadlink-with-size: Remove module. No longer used.
33143 Ex-callers now use xreadlink or mreadlink-with-size.
33144 * modules/xreadlink-with-size: Remove module.
33145 * lib/xreadlink-with-size.c: Remove file.
33146 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33147 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
33148 just before the function definition *is* accurate.
33150 Eliminate one way canonicalize_filename_mode could exit.
33151 * lib/canonicalize.c (canonicalize_filename_mode):
33152 Use mreadlink_with_size, not xreadlink_with_size.
33154 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
33156 Detect porting problems to FreeBSD/arm, which has time_t wider than
33157 long int. Original problem reported for GNU diff by Xin Li in
33158 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33159 * modules/getdate (Depends-on): Add intprops, verify.
33160 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
33161 is an integer type no wider than long int.
33163 2007-06-18 Jim Meyering <jim@meyering.net>
33165 New module: mreadlink-with-size.
33166 * MODULES.html.sh: Add mreadlink-with-size.
33167 * modules/mreadlink-with-size: New module
33168 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33169 not xreadlink-with-size.
33170 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33172 2007-06-16 Bruno Haible <bruno@clisp.org>
33174 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33175 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33176 Reported by Gary V. Vaughan <gary@gnu.org>.
33178 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
33180 Revamp lchown so that it lives in unistd.h where it belongs.
33181 * lib/lchown.h: Remove.
33182 * lib/dirchownmod.c: Don't include lib/lchown.h.
33183 * lib/fchownat.c: Likewise.
33184 * lib/openat.c: Likewise.
33185 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33186 does not follow symlinks.
33187 (EOPNOTSUPP): Define if not defined.
33188 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33190 (lchown): New decl.
33191 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33192 Do not check for lchown decl.
33193 Set REPLACE_LCHOWN.
33194 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33196 * modules/chown: Make it clear it follows symlinks.
33197 * modules/lchown: Make it clear it doesn't follow symlinks.
33198 (Files): Remove lib/lchown.h
33199 (Depends-on): Add unistd.
33200 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33201 (Include): Include <unistd.h>, not "lchown.h".
33202 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33205 2007-06-15 Jim Meyering <jim@meyering.net>
33207 Change license (GPL to LGPL) of fsusage and dependents.
33208 * modules/fsusage (License): Change to LGPL.
33209 * modules/full-read (License): Likewise.
33210 * modules/full-write (License): Likewise.
33211 * modules/safe-read (License): Likewise.
33212 * modules/safe-write (License): Likewise.
33214 2007-06-14 Ben Pfaff <blp@gnu.org>
33216 Missing part of allocsa -> malloca transition.
33217 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33220 2007-06-12 Bruno Haible <bruno@clisp.org>
33222 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33223 to ia64, x86_64, i386.
33224 Reported by Eric Blake.
33226 2007-06-12 Bruno Haible <bruno@clisp.org>
33228 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33229 cross-compiling to x86_64.
33231 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
33233 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33234 glitch reported by Ralf Wildenhues in
33235 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33237 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33240 2007-06-11 Bruno Haible <bruno@clisp.org>
33242 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33243 replacement string.
33244 Reported by Eric Blake.
33246 2007-06-10 Bruno Haible <bruno@clisp.org>
33248 Prepare vasnprintf code for use with Unicode strings.
33249 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33250 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33252 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33253 a_u32_string variants.
33254 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33255 * lib/printf-args.c: Don't include config.h and the specification
33256 header if PRINTF_FETCHARGS is already defined.
33257 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33258 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33259 TYPE_U16_STRING, TYPE_U32_STRING.
33260 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33261 u16_directive, u16_directives, u32_directive, u32_directives): New
33263 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33265 * lib/printf-parse.c: Don't include config.h and the specification
33266 header if PRINTF_PARSE is already defined. Eliminate the set of
33267 parameters for WIDE_CHAR_VERSION; the user of this file must provide
33268 them now. Include c-ctype.h.
33269 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33270 directive and CHAR_T_ONLY_ASCII.
33271 * lib/vasnprintf.c: Don't include config.h and the specification header
33272 if VASNPRINTF is already defined.
33273 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33274 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33275 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33276 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33277 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33278 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33280 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33281 pad_ourselves also in this case, with the 'c' and 's' directives, and
33282 with a different notion of "width".
33283 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33285 2007-06-10 Bruno Haible <bruno@clisp.org>
33287 * modules/unistr/u32-mbsnlen: New file.
33288 * lib/unistr/u32-mbsnlen.c: New file.
33290 * modules/unistr/u16-mbsnlen: New file.
33291 * lib/unistr/u16-mbsnlen.c: New file.
33293 * modules/unistr/u8-mbsnlen: New file.
33294 * lib/unistr/u8-mbsnlen.c: New file.
33296 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33299 2007-06-10 Bruno Haible <bruno@clisp.org>
33301 * lib/string_.h (mbsnlen): New declaration.
33302 * lib/mbsnlen.c: New file.
33303 * m4/mbsnlen.m4: New file.
33304 * modules/mbsnlen: New file.
33305 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33306 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33307 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33309 2007-06-10 Bruno Haible <bruno@clisp.org>
33311 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33313 2007-06-10 Bruno Haible <bruno@clisp.org>
33315 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33316 * lib/mbuiter.h: Likewise.
33318 2007-06-10 Bruno Haible <bruno@clisp.org>
33320 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33323 2007-06-10 Karl Berry <karl@gnu.org>
33325 * config/srclist.txt: remove gettext entries, Bruno prefers
33326 to update individually.
33328 2007-06-10 Bruno Haible <bruno@clisp.org>
33330 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33331 'maxlen'. Ensure only length + width bytes are allocated, not
33332 length + 1 + width.
33334 2007-06-09 Bruno Haible <bruno@clisp.org>
33336 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33337 (CHAR_T): Remove macro.
33338 (VASNPRINTF): Update.
33340 2007-06-09 Bruno Haible <bruno@clisp.org>
33342 * MODULES.html.sh (Unicode string functions): Add the new modules.
33344 * modules/uniconv/u32-conv-to-enc: New file.
33345 * lib/uniconv/u32-conv-to-enc.c: New file.
33346 * modules/uniconv/u32-conv-to-enc-tests: New file.
33347 * tests/uniconv/test-u32-conv-to-enc.c: New file.
33349 * modules/uniconv/u16-conv-to-enc: New file.
33350 * lib/uniconv/u16-conv-to-enc.c: New file.
33351 * lib/uniconv/u-conv-to-enc.h: New file.
33352 * modules/uniconv/u16-conv-to-enc-tests: New file.
33353 * tests/uniconv/test-u16-conv-to-enc.c: New file.
33355 * modules/uniconv/u8-conv-to-enc: New file.
33356 * lib/uniconv/u8-conv-to-enc.c: New file.
33357 * modules/uniconv/u8-conv-to-enc-tests: New file.
33358 * tests/uniconv/test-u8-conv-to-enc.c: New file.
33360 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33361 u32_conv_to_encoding): New declarations.
33363 2007-06-09 Bruno Haible <bruno@clisp.org>
33365 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33367 2007-06-09 Bruno Haible <bruno@clisp.org>
33369 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33370 * modules/malloca: Renamed from modules/allocsa, updated.
33371 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33372 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33373 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33374 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33375 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33376 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33377 * modules/xmalloca: Renamed from modules/xallocsa, updated.
33378 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33379 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33380 * modules/c-strcasestr (Depends-on): Update.
33381 * lib/c-strcasestr.c: Update.
33382 * modules/c-strstr (Depends-on): Update.
33383 * lib/c-strstr.c: Update.
33384 * modules/canonicalize-lgpl (Depends-on): Update.
33385 * lib/canonicalize-lgpl.c: Update.
33386 * modules/clean-temp (Depends-on): Update.
33387 * lib/clean-temp.c: Update.
33388 * modules/csharpcomp (Depends-on): Update.
33389 * lib/csharpcomp.c: Update.
33390 * modules/csharpexec (Depends-on): Update.
33391 * lib/csharpexec.c: Update.
33392 * modules/javacomp (Depends-on): Update.
33393 * lib/javacomp.c: Update.
33394 * modules/javaexec (Depends-on): Update.
33395 * lib/javaexec.c: Update.
33396 * modules/mbscasestr (Depends-on): Update.
33397 * lib/mbscasestr.c: Update.
33398 * modules/mbsstr (Depends-on): Update.
33399 * lib/mbsstr.c: Update.
33400 * modules/setenv (Depends-on): Update.
33401 * lib/setenv.c: Update.
33402 * modules/strcasestr (Depends-on): Update.
33403 * lib/strcasestr.c: Update.
33404 * modules/striconveha (Depends-on): Update.
33405 * lib/striconveha.c: Update.
33406 * modules/relocatable-prog-wrapper (Files): Update.
33407 * lib/relocwrapper.c: Update.
33408 * build-aux/install-reloc: Update.
33409 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33411 2007-06-08 Bruno Haible <bruno@clisp.org>
33414 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33415 * lib/fpurge.c (fpurge): Likewise.
33416 * lib/freading.c (freading): Likewise.
33417 * lib/fseeko.c (rpl_fseeko): Likewise.
33418 * lib/fseterr.c (fseterr): Likewise.
33419 * lib/fwriting.c (fwriting): Likewise.
33420 * tests/test-fflush.c (main): Avoid a failure on uClibc.
33422 2007-06-08 Bruno Haible <bruno@clisp.org>
33424 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33425 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33426 * modules/gettext (Files): Add m4/intlmacosx.m4.
33428 2007-06-07 Bruno Haible <bruno@clisp.org>
33430 * modules/localename-tests: New file.
33431 * tests/test-localename.c: New file.
33433 New module 'localename'.
33434 * lib/localename.h: New file.
33435 * lib/localename.c: New file, from GNU gettext.
33436 * m4/localename.m4: New file.
33437 * modules/localename: New file.
33439 2007-06-07 Bruno Haible <bruno@clisp.org>
33441 Work around the lack of <wchar.h> on some builds of uClibc.
33442 * doc/headers/wchar.texi: Update.
33443 * lib/wchar_.h: Include <wchar.h> only if it exists.
33444 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33445 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33446 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33448 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33449 * modules/mbfile (Depends-on): Add wchar.
33450 * modules/mbiter (Depends-on): Likewise.
33451 * modules/mbuiter (Depends-on): Likewise.
33452 Reported by Simon Josefsson.
33454 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
33456 Work around problem reported by Steven M. Schweda in
33457 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33458 Tru64 5.1B with the Compaq compiler environment installed declares
33459 an 'isblank' function but does not define it in the C library.
33460 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33461 * lib/regex_internal.h (isblank): Likewise.
33462 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33463 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33465 2007-06-05 Bruno Haible <bruno@clisp.org>
33467 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33469 * modules/printf-safe: New file.
33470 * modules/fprintf-posix (Depends-on): Add printf-safe.
33471 * modules/printf-posix (Depends-on): Likewise.
33472 * modules/snprintf-posix (Depends-on): Likewise.
33473 * modules/sprintf-posix (Depends-on): Likewise.
33474 * modules/vasnprintf-posix (Depends-on): Likewise.
33475 * modules/vasprintf-posix (Depends-on): Likewise.
33476 * modules/vfprintf-posix (Depends-on): Likewise.
33477 * modules/vprintf-posix (Depends-on): Likewise.
33478 * modules/vsnprintf-posix (Depends-on): Likewise.
33479 * modules/vsprintf-posix (Depends-on): Likewise.
33480 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33481 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33482 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33483 "no" on i386, x86_64, ia64.
33484 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33485 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33486 on i386, x86_64, ia64.
33487 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33488 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33489 on i386, x86_64, ia64.
33490 * tests/test-vasnprintf-posix.c: Include float.h.
33491 (LDBL80_WORDS): New macro.
33492 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33493 on i386, x86_64, ia64.
33494 * tests/test-vasprintf-posix.c: Include float.h.
33495 (LDBL80_WORDS): New macro.
33496 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33497 on i386, x86_64, ia64.
33498 * tests/test-snprintf-posix.c: Include float.h.
33499 * tests/test-sprintf-posix.c: Likewise.
33500 * tests/test-vsnprintf-posix.c: Likewise.
33501 * tests/test-vsprintf-posix.c: Likewise.
33503 2007-06-05 Bruno Haible <bruno@clisp.org>
33505 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33506 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33507 non-IEEE numbers on i386, x86_64, ia64.
33508 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33509 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33510 * tests/test-isnanl.h: Include float.h.
33511 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33513 2007-06-05 Bruno Haible <bruno@clisp.org>
33515 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33516 also the %a / %A. Handle the %a / %A code before this extra handling.
33518 2007-06-05 Bruno Haible <bruno@clisp.org>
33520 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33521 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33523 2007-06-05 Bruno Haible <bruno@clisp.org>
33525 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33526 typo in variable name.
33528 2007-06-05 Eric Blake <ebb9@byu.net>
33530 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33531 Reported by Simon Josefsson.
33533 2007-06-04 Bruno Haible <bruno@clisp.org>
33535 Avoid test failures on some PowerPC platforms.
33536 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33537 Define differently for PowerPC.
33538 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33539 Reported by Gary V. Vaughan <gary@gnu.org>.
33541 2007-06-02 Bruno Haible <bruno@clisp.org>
33543 Fix test-stdint failure on FreeBSD/ia64.
33544 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33545 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33546 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33547 * doc/headers/stdint.texi: Update.
33549 2007-06-01 Bruno Haible <bruno@clisp.org>
33551 * tests/test-binary-io.c (main): Pass a third argument to open().
33552 Reported by Gary V. Vaughan <gary@gnu.org>.
33554 2007-06-01 Bruno Haible <bruno@clisp.org>
33556 * doc/functions/frexpl.texi: Update for mingw.
33558 2007-06-01 Bruno Haible <bruno@clisp.org>
33560 * tests/test-lseek.c (main): Disable test of errno for invalid third
33562 * doc/functions/lseek.texi: Update.
33563 Reported by Gary V. Vaughan <gary@gnu.org>.
33565 2007-05-28 Bruno Haible <bruno@clisp.org>
33567 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33569 2007-05-31 Eric Blake <ebb9@byu.net>
33571 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33574 2007-05-30 Eric Blake <ebb9@byu.net>
33575 and Bruno Haible <bruno@clisp.org>
33577 Work around mingw test failures exposed by m4-1.4.9b.
33578 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33579 * tests/test-unistd.c: Disable uid_t and git_t tests for the
33582 2007-05-30 Bruno Haible <bruno@clisp.org>
33584 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33585 assuming that they are closed. Needed on HP-UX 11.
33587 2007-05-29 Bruno Haible <bruno@clisp.org>
33589 Fix a problem with #include_next.
33590 * lib/dirent_.h: Split the double-inclusion guard.
33591 * lib/fcntl_.h: Likewise.
33592 * lib/float_.h: Likewise.
33593 * lib/iconv_.h: Likewise.
33594 * lib/inttypes_.h: Likewise.
33595 * lib/locale_.h: Likewise.
33596 * lib/math_.h: Likewise.
33597 * lib/netinet_in_.h: Likewise.
33598 * lib/search_.h: Likewise.
33599 * lib/signal_.h: Likewise.
33600 * lib/stdint_.h: Likewise.
33601 * lib/stdio_.h: Likewise.
33602 * lib/stdlib_.h: Likewise.
33603 * lib/string_.h: Likewise.
33604 * lib/sys_select_.h: Likewise.
33605 * lib/sys_socket_.h: Likewise.
33606 * lib/sys_stat_.h: Likewise.
33607 * lib/sys_time_.h: Likewise.
33608 * lib/sysexits_.h: Likewise.
33609 * lib/time_.h: Likewise.
33610 * lib/unistd_.h: Likewise.
33611 * lib/wchar_.h: Likewise.
33612 * lib/wctype_.h: Likewise.
33614 2007-05-29 Bruno Haible <bruno@clisp.org>
33616 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33619 2007-05-29 Bruno Haible <bruno@clisp.org>
33621 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33623 Reported by Eric Blake.
33625 2007-05-29 Bruno Haible <bruno@clisp.org>
33627 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33630 2007-05-29 Eric Blake <ebb9@byu.net>
33631 Bruno Haible <bruno@clisp.org>
33633 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33636 2007-05-28 Eric Blake <ebb9@byu.net>
33638 * modules/closein-tests (test_closein_LDADD): Support test on
33639 cygwin with libtool.
33641 2007-05-28 Bruno Haible <bruno@clisp.org>
33643 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33644 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33645 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33646 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33647 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33648 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33649 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33650 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33651 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33653 2007-05-28 Eric Blake <ebb9@byu.net>
33655 Unconditionally include <config.h> in unit tests.
33656 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33657 * tests/test-allocsa.c, tests/test-arcfour.c,
33658 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33659 tests/test-array_list.c, tests/test-array_oset.c,
33660 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33661 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33662 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33663 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33664 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33665 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33666 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33667 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33668 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33669 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33670 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33671 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33672 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33673 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33674 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33675 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33676 test-md5.c, test-memmem.c, test-printf-posix.c,
33677 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33678 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33679 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33680 test-strcasestr.c, test-striconv.c, test-striconveh.c,
33681 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33682 test-vasnprintf-posix2.c, test-vasnprintf.c,
33683 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33684 test-vfprintf-posix.c, test-vprintf-posix.c,
33685 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33686 test-xvasprintf.c: Likewise.
33688 2007-05-28 Bruno Haible <bruno@clisp.org>
33690 * gnulib-tool (func_import): Remember the --with-tests command-line
33691 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33692 Reported by Eric Blake.
33694 2007-05-28 Bruno Haible <bruno@clisp.org>
33696 * modules/ftell-tests: New file.
33697 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33698 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33700 * lib/ftell.c: New file.
33701 * modules/ftell: New file.
33702 * m4/ftell.m4: New file.
33703 * doc/functions/ftell.texi: Update.
33704 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33706 * lib/stdio_.h (rpl_ftell): New declaration.
33707 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33710 2007-05-28 Eric Blake <ebb9@byu.net>
33712 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33714 2007-05-28 Bruno Haible <bruno@clisp.org>
33716 * modules/fseek-tests: New file.
33717 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33718 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33720 * lib/fseek.c: New file.
33721 * modules/fseek: New file.
33722 * m4/fseek.m4: New file.
33723 * doc/functions/fseek.texi: Update.
33724 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33726 * lib/stdio_.h (rpl_fseek): New declaration.
33727 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33730 2007-05-28 Bruno Haible <bruno@clisp.org>
33732 * lib/stdio_.h (fflush): More comments.
33734 2007-05-28 Bruno Haible <bruno@clisp.org>
33736 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33739 2007-05-28 Eric Blake <ebb9@byu.net>
33741 Improve lseek module.
33742 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33743 * lib/unistd_.h (lseek): Scale back link warning message.
33744 * tests/test-lseek.c: Beef up test.
33745 * tests/test-lseek.sh: Exercise more facets of lseek.
33746 Reported by Bruno Haible.
33748 2007-05-28 Bruno Haible <bruno@clisp.org>
33750 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33753 2007-05-27 Bruno Haible <bruno@clisp.org>
33755 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33757 2007-05-27 Bruno Haible <bruno@clisp.org>
33759 * modules/openmp: New file.
33760 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33763 2007-05-26 Bruno Haible <bruno@clisp.org>
33765 * modules/chdir-long (Depends-on): Add fchdir.
33766 * modules/chdir-safer (Depends-on): Likewise.
33767 * modules/fts (Depends-on): Likewise.
33768 * modules/fts-lgpl (Depends-on): Likewise.
33769 * modules/openat (Depends-on): Likewise.
33770 * modules/savewd (Depends-on): Likewise.
33772 2007-05-24 Eric Blake <ebb9@byu.net>
33774 Fix lseek on mingw.
33775 * modules/lseek: New module.
33776 * m4/lseek.m4: New file.
33777 * lib/lseek.c: New file.
33778 * modules/lseek-tests: New file.
33779 * tests/test-lseek.c: New file.
33780 * tests/test-lseek.sh: New file.
33781 * MODULES.html.sh: Document lseek module.
33782 * modules/fflush (Depends-on): Add lseek, fseeko.
33783 * modules/fseeko (Depends-on): Likewise.
33784 * modules/ftello (Depends-on): Likewise.
33785 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33787 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33789 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33790 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33791 * lib/ftello.c (rpl_ftello): Likewise.
33792 * tests/test-fseeko.c (main): Test this.
33793 * tests/test-fseeko.sh: Likewise.
33794 * tests/test-ftello.c (main): Likewise.
33795 * tests/test-ftello.sh: Likewise.
33796 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33797 implies replacing fseek.
33798 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33800 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33801 * modules/unistd (Makefile.am): Likewise.
33802 * lib/unistd_.h (lseek): Declare a replacement.
33803 * doc/functions/lseek.texi (lseek): Document this fix.
33804 * doc/functions/fseek.texi (fseek): Likewise.
33805 * doc/functions/ftell.texi (ftell): Likewise.
33807 2007-05-24 Bruno Haible <bruno@clisp.org>
33809 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33810 in the printed representation of a NaN.
33811 * tests/test-vasprintf-posix.c (test_function): Likewise.
33812 * tests/test-snprintf-posix.h (test_function): Likewise.
33813 * tests/test-sprintf-posix.h (test_function): Likewise.
33814 Reported by Eric Blake.
33816 2007-05-23 Eric Blake <ebb9@byu.net>
33818 Fix fseeko/ftello on cygwin 1.5.24.
33819 * doc/functions/fseeko.texi (fseeko): Document the fix.
33820 * doc/functions/ftello.texi (ftello): Document the fix.
33821 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33822 * doc/functions/stdout.text (stdout): New file.
33823 * doc/functions/stderr.text (stderr): New file.
33824 * doc/gnulib.texi (Function Substitutes): Use new files.
33825 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33827 * tests/test-ftello.c (main): Likewise for ftello.
33828 * tests/test-fseeko.sh: New file.
33829 * tests/test-ftello.sh: New file.
33830 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33831 with seekable stdin.
33832 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33833 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33834 (gl_REPLACE_FSEEKO): New macro.
33835 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33836 * modules/fseeko (Files): Distribute fseeko.c.
33837 * modules/ftello (Files): Distribute ftello.c.
33838 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33840 * lib/ftello.c (rpl_ftello): New file.
33841 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33843 (gl_STDIN_LARGE_OFFSET): New macro.
33844 * modules/stdio (Makefile.am): Perform the replacement.
33845 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33847 2007-05-23 Bruno Haible <bruno@clisp.org>
33849 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33850 GNULIB_POSIXCHECK is defined.
33852 2007-05-21 Bruno Haible <bruno@clisp.org>
33854 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33855 Check also the output for NaN arguments. When cross-compiling, guess
33857 * lib/vasnprintf.c: Update comments.
33858 * tests/test-vasnprintf-posix.c (strisnan): New function.
33859 (test_function): Use it.
33860 * tests/test-vasprintf-posix.c (strisnan): New function.
33861 (test_function): Use it.
33862 * tests/test-snprintf-posix.h (strisnan): New function.
33863 (test_function): Use it.
33864 * tests/test-sprintf-posix.h (strisnan): New function.
33865 (test_function): Use it.
33866 Reported by Eric Blake.
33868 2007-05-20 Bruno Haible <bruno@clisp.org>
33870 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33871 numbers that fails on BeOS.
33872 * doc/functions/frexpl.texi: Update.
33874 2007-05-20 Jim Meyering <jim@meyering.net>
33876 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33877 forced upon us by glibc-2.6.
33879 2007-05-20 Bruno Haible <bruno@clisp.org>
33881 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33882 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33883 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33884 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33885 NEED_PRINTF_INFINITE.
33886 (is_infinitel): New function.
33887 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33888 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33889 gl_PREREQ_VASNPRINTF_INFINITE.
33890 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33891 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33892 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33893 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33894 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33895 gl_PREREQ_VASNPRINTF_INFINITE.
33896 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33897 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33898 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33899 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33900 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33901 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33902 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33903 * doc/functions/fprintf.texi: Update.
33904 * doc/functions/printf.texi: Update.
33905 * doc/functions/snprintf.texi: Update.
33906 * doc/functions/sprintf.texi: Update.
33907 * doc/functions/vfprintf.texi: Update.
33908 * doc/functions/vprintf.texi: Update.
33909 * doc/functions/vsnprintf.texi: Update.
33910 * doc/functions/vsprintf.texi: Update.
33912 2007-05-20 Bruno Haible <bruno@clisp.org>
33914 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33915 was not found in libc.
33916 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33918 2007-05-20 Bruno Haible <bruno@clisp.org>
33920 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33921 printed as "-nan" instead of "nan".
33922 * tests/test-vasprintf-posix.c (test_function): Likewise.
33923 * tests/test-snprintf-posix.h (test_function): Likewise.
33924 * tests/test-sprintf-posix.h (test_function): Likewise.
33925 Needed for HP-UX 11.
33927 2007-05-20 Jim Meyering <jim@meyering.net>
33929 Fix buggy test for the fchownat-deref bug.
33930 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33931 symlink required for the run-test. Without it, this test would
33932 always declare that fchownat doesn't work, and client code would
33933 unnecessarily use the replacement function with fixed libc.
33934 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33935 Reported by Greg Schafer.
33937 2007-05-19 Bruno Haible <bruno@clisp.org>
33939 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33940 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33941 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33942 Needed for IRIX 6.5 and Solaris 2.5.1.
33944 2007-05-19 Bruno Haible <bruno@clisp.org>
33946 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33947 (test_function): Skip tests involving -0.0 on platforms where
33949 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33950 (test_function): Skip tests involving -0.0 on platforms where
33952 * tests/test-snprintf-posix.h (have_minus_zero): New function.
33953 (test_function): Skip tests involving -0.0 on platforms where
33955 * tests/test-sprintf-posix.h (have_minus_zero): New function.
33956 (test_function): Skip tests involving -0.0 on platforms where
33958 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33960 * tests/test-printf-posix.h (test_function): Likewise.
33961 * tests/test-printf-posix.output: Remove all -0.0 related results.
33962 Needed for IRIX 6.5.
33964 2007-05-19 Bruno Haible <bruno@clisp.org>
33966 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33967 printed as "nan0x7fffffff" instead of "nan".
33968 * tests/test-vasprintf-posix.c (test_function): Likewise.
33969 * tests/test-snprintf-posix.h (test_function): Likewise.
33970 * tests/test-sprintf-posix.h (test_function): Likewise.
33971 * tests/test-fprintf-posix.h (NaN): Remove macro.
33972 (test_function): Remove all NaN related tests.
33973 * tests/test-printf-posix.h (NaN): Remove macro.
33974 (test_function): Remove all NaN related tests.
33975 * tests/test-printf-posix.output: Remove all NaN related results.
33976 Needed for IRIX 6.5.
33978 2007-05-19 Bruno Haible <bruno@clisp.org>
33980 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33981 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33983 2007-05-19 Bruno Haible <bruno@clisp.org>
33985 * lib/float_.h: New file.
33986 * m4/float_h.m4: New file.
33987 * modules/float: New file.
33988 * modules/isnanl (Dependencies): Add float.
33989 * modules/isnanl-nolibm (Dependencies): Likewise.
33990 * modules/mathl (Dependencies): Likewise.
33991 * modules/printf-frexpl (Dependencies): Likewise.
33992 * modules/signbit (Dependencies): Likewise.
33993 * modules/vasnprintf (Dependencies): Likewise.
33994 * doc/headers/float.texi: Update.
33996 2007-05-19 Jim Meyering <jim@meyering.net>
33998 * lib/utimens.c (gl_futimens): Rename from futimens,
33999 now that glibc-2.6 declares futimens.
34000 * lib/utimens.h: Likewise.
34002 2007-05-19 Bruno Haible <bruno@clisp.org>
34004 Avoid test failures on mingw.
34005 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34006 * tests/test-printf-posix.sh: Likewise.
34007 * tests/test-vfprintf-posix.sh: Likewise.
34008 * tests/test-vprintf-posix.sh: Likewise.
34010 2007-05-19 Bruno Haible <bruno@clisp.org>
34012 Fix *printf result for NaN, Inf, -0.0 on mingw.
34013 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34014 * lib/vasnprintf.c: Include math.h and isnan.h.
34015 (is_infinite_or_zero): New function.
34016 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34017 values in the %f, %F, %e, %E, %g, %G directives.
34018 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34019 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34020 gl_PRINTF_INFINITE and test its result. Invoke
34021 gl_PREREQ_VASNPRINTF_INFINITE.
34022 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34023 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34024 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34025 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34026 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34027 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34028 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34029 * doc/functions/fprintf.texi: Update.
34030 * doc/functions/printf.texi: Update.
34031 * doc/functions/snprintf.texi: Update.
34032 * doc/functions/sprintf.texi: Update.
34033 * doc/functions/vfprintf.texi: Update.
34034 * doc/functions/vprintf.texi: Update.
34035 * doc/functions/vsnprintf.texi: Update.
34036 * doc/functions/vsprintf.texi: Update.
34038 2007-05-19 Bruno Haible <bruno@clisp.org>
34040 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34041 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34042 Instead of multiplying with 10^k, set extra_zeroes to k.
34043 (scale10_round_long_double): Remove function.
34045 2007-05-18 Bruno Haible <bruno@clisp.org>
34047 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34048 introduced on 2007-05-06.
34050 2007-05-18 Bruno Haible <bruno@clisp.org>
34052 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34054 * tests/test-vasprintf-posix.c (test_function): Likewise.
34055 * tests/test-snprintf-posix.h (test_function): Likewise.
34056 * tests/test-sprintf-posix.h (test_function): Likewise.
34058 2007-05-18 Bruno Haible <bruno@clisp.org>
34060 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34061 (strmatch): New function.
34062 (test_function): Test the %f directive on numbers of various exponents.
34063 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34064 (strmatch): New function.
34065 (test_function): Test the %f directive on numbers of various exponents.
34066 * tests/test-snprintf-posix.h (strmatch): New function.
34067 (test_function): Test the %f directive on numbers of various exponents.
34068 * tests/test-sprintf-posix.h (strmatch): New function.
34069 (test_function): Test the %f directive on numbers of various exponents.
34070 * tests/test-snprintf-posix.c (SIZEOF): New macro.
34071 * tests/test-sprintf-posix.c (SIZEOF): New macro.
34072 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34073 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34075 2007-05-18 Bruno Haible <bruno@clisp.org>
34077 Add support for 'long double' number output.
34078 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34079 * lib/vasnprintf.c: Include math.h and float+.h.
34080 (mp_limb_t): New type.
34081 (GMP_LIMB_BITS): New macro.
34082 (mp_twolimb_t): New type.
34083 (GMP_TWOLIMB_BITS): New macro.
34085 (multiply, divide, convert_to_decimal, decode_long_double,
34086 scale10_round_long_double, scale10_round_decimal_long_double,
34087 floorlog10l): New functions.
34088 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34089 for the %f, %F, %e, %E, %g, %G directives.
34090 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34091 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34092 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34093 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34094 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34095 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34096 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34097 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34098 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34099 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34100 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34101 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34102 * modules/snprintf-posix (Depends-on): Likewise.
34103 * modules/sprintf-posix (Depends-on): Likewise.
34104 * modules/vasnprintf-posix (Depends-on): Likewise.
34105 * modules/vasprintf-posix (Depends-on): Likewise.
34106 * modules/vfprintf-posix (Depends-on): Likewise.
34107 * modules/vsnprintf-posix (Depends-on): Likewise.
34108 * modules/vsprintf-posix (Depends-on): Likewise.
34109 * modules/vasnprintf (Files): Add lib/float+.h.
34110 * doc/functions/fprintf.texi: Update.
34111 * doc/functions/printf.texi: Update.
34112 * doc/functions/snprintf.texi: Update.
34113 * doc/functions/sprintf.texi: Update.
34114 * doc/functions/vfprintf.texi: Update.
34115 * doc/functions/vprintf.texi: Update.
34116 * doc/functions/vsnprintf.texi: Update.
34117 * doc/functions/vsprintf.texi: Update.
34119 2007-05-18 Bruno Haible <bruno@clisp.org>
34121 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34123 2007-05-18 Bruno Haible <bruno@clisp.org>
34125 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34126 for printing 64-bit integers. Needed for mingw.
34128 2007-05-18 Bruno Haible <bruno@clisp.org>
34130 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34131 gl_FUNC_FREXPL_WORKS.
34132 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34134 2007-05-18 Bruno Haible <bruno@clisp.org>
34136 * modules/frexpl-nolibm-tests: New file.
34138 * modules/frexpl-nolibm: New file.
34139 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34141 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
34143 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34144 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
34145 GCC 4.2, which otherwise issues a lot of warnings.
34146 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34147 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34149 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34150 * modules/iconv_open (iconv.h): Likewise.
34151 * modules/locale (locale.h): Likewise.
34152 * modules/netinet_in (netinet/in.h): Likewise.
34153 * modules/sys_select (sys_select.h): Likewise.
34154 * modules/sys_socket (sys/socket.h): Likewise.
34155 * modules/sys_stat (sys/stat.h): Likewise.
34156 * modules/sysexits (sysexits.h): Likewise.
34157 * modules/unistd (unistd.h): Likewise.
34159 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34161 * modules/closein-tests (Makefile.am): Distribute
34164 2007-05-17 Bruno Haible <bruno@clisp.org>
34166 * tests/test-printf-posix.output: Renamed from
34167 tests/test-fprintf-posix.out.
34168 * modules/fprintf-posix-tests: Update.
34169 * modules/printf-posix-tests: Update.
34170 * modules/vfprintf-posix-tests: Update.
34171 * modules/vprintf-posix-tests: Update.
34172 * tests/test-fprintf-posix.sh: Update.
34173 * tests/test-printf-posix.sh: Update.
34174 * tests/test-vfprintf-posix.sh: Update.
34175 * tests/test-vprintf-posix.sh: Update.
34176 Reported by Ralf Wildenhues.
34178 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
34180 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34181 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
34182 GCC 4.2, which otherwise issues a lot of warnings.
34183 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34184 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34185 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34186 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34187 it should no longer be needed.
34188 * lib/string_.h: Likewise.
34189 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34190 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34191 * modules/inttypes (inttypes.h): Likewise.
34192 * modules/math (math.h): Likewise.
34193 * modules/search (search.h): Likewise.
34194 * modules/signal (signal.h): Likewise.
34195 * modules/stdint (stdint.h): Likewise.
34196 * modules/stdio (stdio.h): Likewise.
34197 * modules/stdlib (stdlib.h): Likewise.
34198 * modules/string (string.h): Likewise.
34199 * modules/sys_time (sys/time.h): Likewise.
34200 * modules/time (time.h): Likewise.
34201 * modules/wchar (wchar.h): Likewise.
34202 * modules/wctype (wtype.h): Likewise.
34204 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
34206 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34208 2007-05-13 Bruno Haible <bruno@clisp.org>
34210 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34211 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34212 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34213 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34214 (gl_PREREQ_STRTOK_R): Don't require it here.
34216 2007-05-13 Bruno Haible <bruno@clisp.org>
34218 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34219 when used in C++ mode.
34221 2007-05-12 Bruno Haible <bruno@clisp.org>
34223 * lib/linebuffer.h: Tweak doc.
34224 * lib/linebuffer.c: Likewise.
34226 2007-05-12 James Youngman <jay@gnu.org>
34228 * lib/linebuffer.c (readlinebuffer_delim): New function,
34229 like readlinebuffer, but use a caller-specified delimiter.
34230 (readlinebuffer): Just call readlinebuffer_delim with '\n'
34232 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34234 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
34236 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34237 * modules/openat (Files): Remove openat-die.c.
34238 (Depends-on): Add openat-die.
34239 * modules/openat-die: New module.
34241 2007-05-06 Bruno Haible <bruno@clisp.org>
34243 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34244 Update with info about Cygwin.
34245 * doc/functions/fprintf.texi: Update.
34246 * doc/functions/printf.texi: Update.
34247 * doc/functions/snprintf.texi: Update.
34248 * doc/functions/sprintf.texi: Update.
34249 * doc/functions/vfprintf.texi: Update.
34250 * doc/functions/vprintf.texi: Update.
34251 * doc/functions/vsnprintf.texi: Update.
34252 * doc/functions/vsprintf.texi: Update.
34253 Reported by Eric Blake.
34255 2007-05-06 Bruno Haible <bruno@clisp.org>
34257 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34258 padding ourselves for the floating-point directives.
34259 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34260 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34261 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34262 gl_PRINTF_FLAG_ZERO and test its result. Invoke
34263 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34264 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34265 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34266 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34267 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34268 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34269 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34270 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34271 * tests/test-snprintf-posix.h (test_function): Also check the width
34272 and some flags in the %f directive.
34273 * tests/test-sprintf-posix.h (test_function): Likewise.
34274 * tests/test-vasnprintf-posix.c (test_function): Likewise.
34275 * tests/test-vasprintf-posix.c (test_function): Likewise.
34276 * doc/functions/fprintf.texi: Update.
34277 * doc/functions/printf.texi: Update.
34278 * doc/functions/snprintf.texi: Update.
34279 * doc/functions/sprintf.texi: Update.
34280 * doc/functions/vfprintf.texi: Update.
34281 * doc/functions/vprintf.texi: Update.
34282 * doc/functions/vsnprintf.texi: Update.
34283 * doc/functions/vsprintf.texi: Update.
34285 2007-05-06 Bruno Haible <bruno@clisp.org>
34287 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34288 pass the ' flag character to sprintf or snprintf.
34289 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34290 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34291 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34292 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34293 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34294 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34295 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34296 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34297 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34298 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34299 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34300 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34301 * tests/test-snprintf-posix.h (test_function): Also check the grouping
34303 * tests/test-sprintf-posix.h (test_function): Likewise.
34304 * tests/test-vasnprintf-posix.c (test_function): Likewise.
34305 * tests/test-vasprintf-posix.c (test_function): Likewise.
34306 * doc/functions/fprintf.texi: Update.
34307 * doc/functions/printf.texi: Update.
34308 * doc/functions/snprintf.texi: Update.
34309 * doc/functions/sprintf.texi: Update.
34310 * doc/functions/vfprintf.texi: Update.
34311 * doc/functions/vprintf.texi: Update.
34312 * doc/functions/vsnprintf.texi: Update.
34313 * doc/functions/vsprintf.texi: Update.
34315 2007-05-01 Bruno Haible <bruno@clisp.org>
34317 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34319 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
34321 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34322 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
34324 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
34326 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34327 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
34328 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34330 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
34332 * lib/argp-help.c (struct hol_entry): New member `ord'.
34333 (HOL_ENTRY_PTRCMP): Use ord for comparison
34334 (hol_sort): Initialize ord.
34336 2007-05-01 Bruno Haible <bruno@clisp.org>
34338 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34339 Reported by Eric Blake.
34340 * doc/gnulib.texi (Function Substitutes): Update.
34342 2007-05-01 Bruno Haible <bruno@clisp.org>
34344 * doc/functions.texi: Remove file, now redundant through
34345 doc/functions/*.texi.
34347 2007-05-01 Bruno Haible <bruno@clisp.org>
34349 * modules/argp (Depends-on): Add sleep.
34351 2007-05-01 Bruno Haible <bruno@clisp.org>
34353 * modules/sleep-tests: New file.
34354 * tests/test-sleep.c: New file.
34356 * modules/sleep: New file.
34357 * lib/sleep.c: New file.
34358 * m4/sleep.m4: New file.
34359 * lib/unistd_.h (sleep): New declaration.
34360 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34362 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34363 * doc/functions/sleep.texi: Document the sleep module.
34365 2007-05-01 Bruno Haible <bruno@clisp.org>
34367 * lib/sigprocmask.h: Remove file.
34368 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34369 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34370 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34371 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34372 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34373 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34374 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34375 HAVE_SIGSET_T as a shell variable.
34376 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34377 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34378 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34379 (Depends-on): Add signal. Remove verify.
34380 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34381 (Include): Mention <signal.h> instead of sigprocmask.h.
34382 * NEWS: Mention the change.
34383 * lib/fatal-signal.c: Don't include sigprocmask.h.
34385 2007-05-01 Bruno Haible <bruno@clisp.org>
34387 * modules/signal: New file.
34388 * lib/signal_.h: New file.
34389 * m4/signal_h.m4: New file.
34391 2007-05-01 Bruno Haible <bruno@clisp.org>
34393 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34394 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34395 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34396 HAVE_WCTYPE_CTMP_BUG into wctype.h.
34398 2007-05-01 Bruno Haible <bruno@clisp.org>
34400 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34402 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34403 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34404 * modules/sys_stat (Makefile.am): Substitute their values into
34407 2007-05-01 Bruno Haible <bruno@clisp.org>
34409 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34410 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34411 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34413 2007-05-01 Bruno Haible <bruno@clisp.org>
34415 * doc/header/assert.texi: Undo last change: don't mention the gnulib
34416 'assert' module here.
34418 2007-05-01 Bruno Haible <bruno@clisp.org>
34420 * doc/functions/*.texi: New files.
34421 * doc/functions/google-ranking.txt: New file.
34422 * doc/gnulib.texi (Function Substitutes): New chapter.
34423 (ctime, inet_ntoa): Remove sections.
34424 * doc/ctime.texi: Remove file.
34425 * doc/inet_ntoa.texi: Remove file.
34426 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34428 (%.info): New rule, specifying a --reference-limit.
34430 2007-05-01 Bruno Haible <bruno@clisp.org>
34432 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34434 2007-05-01 Bruno Haible <bruno@clisp.org>
34436 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34437 the portability of 'mkdir' to mingw systems.
34439 2007-05-01 Bruno Haible <bruno@clisp.org>
34441 * doc/headers/google-ranking.txt: New file.
34443 2007-04-30 Eric Blake <ebb9@byu.net>
34445 Prefer fseeko to fseek.
34446 * modules/getpass (Depends-on): Add fseeko.
34447 * lib/getpass.c (getpass): Use fseeko, not fseek.
34449 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
34451 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34452 assumes the sorting is stable, while most qsort implementations
34453 are not. Use argument addresses to ensure they never compare as
34456 * tests/test-argp-2.sh (usage-indent test): Fix output
34457 (func_compare): Restore diff options
34458 * tests/test-argp.c: Restore #include "progname.h"
34460 2007-04-29 Bruno Haible <bruno@clisp.org>
34462 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34463 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34464 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34465 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34466 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34467 (configure.ac): Define CHECK_SNPRINTF_POSIX.
34468 (TESTS, check_PROGRAMS): Add test-snprintf.
34469 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34470 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34471 (TESTS, check_PROGRAMS): Add test-vsnprintf.
34472 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34473 assertions that fail on HP-UX, OSF/1, or IRIX.
34474 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34476 2007-04-29 Bruno Haible <bruno@clisp.org>
34478 * MODULES.html.sh (posix_functions): Remove 'contents'.
34480 2007-04-29 Karl Berry <karl@gnu.org>
34482 * config/srclist.txt (gendocs_template_min): new entry.
34484 2007-04-29 Bruno Haible <bruno@clisp.org>
34486 Work around fpurge bug on BSD systems.
34487 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34488 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34489 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34490 fpurge to rpl_fpurge if the system already has this function.
34491 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34492 the case where the system already has this function. Correct invariants
34494 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34497 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
34499 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
34500 proposed by Sven Verdoolaege.
34502 * tests/test-argp.c: Fix option ordering. Test deeply clustered
34504 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34505 (usage and help tests): Update
34507 2007-04-29 Bruno Haible <bruno@clisp.org>
34509 * tests/test-fflush.c (main): Use a file of size 17, not 10.
34510 Print more information in case of failure. Disable a test on BeOS.
34512 2007-04-29 Bruno Haible <bruno@clisp.org>
34514 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34515 This helps debugging on systems on which no gdb is available.
34517 2007-04-29 Bruno Haible <bruno@clisp.org>
34519 * lib/freading.h: Improve comments.
34520 * lib/fwriting.h: Likewise.
34521 * tests/test-freading.c (main): Don't check freading immediately after
34522 repositioning. Needed for glibc.
34524 2007-04-29 Bruno Haible <bruno@clisp.org>
34526 * lib/freading.c (freading): Trivial simplification.
34528 2007-04-28 Bruno Haible <bruno@clisp.org>
34530 * tests/test-fwriting.c (main): Also test the interaction between
34531 fflush and fwriting.
34532 * modules/fwriting-tests (Depends-on): Add fflush.
34534 * tests/test-freading.c (main): Also test the interaction between
34535 fflush and freading.
34536 * modules/freading-tests (Depends-on): Add fflush.
34538 2007-04-28 Bruno Haible <bruno@clisp.org>
34540 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34542 Suggested by Eric Blake.
34544 2007-04-28 Jim Meyering <jim@meyering.net>
34546 Avoid false-negative in gl_STDINT_H's C99 conformance test.
34547 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34548 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34550 2007-04-27 Eric Blake <ebb9@byu.net>
34552 * doc/headers/assert.texi (assert.h): Document assert module use.
34554 2007-04-27 Bruno Haible <bruno@clisp.org>
34556 * doc/headers/*.texi: New files.
34557 * doc/gnulib.texi (Header File Substitutes): New chapter.
34558 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34560 (standards.info ,standards.html, standards.dvi): Update dependencies.
34561 (mostlyclean, clean): New targets.
34563 2007-04-27 Bruno Haible <bruno@clisp.org>
34565 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34566 * modules/sysexits (Files, Makefile.am): Update.
34568 * lib/sys_socket_.h: Renamed from lib/socket_.h.
34569 * modules/sys_socket (Files, Makefile.am): Update.
34571 * lib/sys_stat_.h: Renamed from lib/stat_.h.
34572 * modules/sys_stat (Files, Makefile.am): Update.
34574 2007-04-27 Eric Blake <ebb9@byu.net>
34576 * lib/freading.h: Improve comments.
34577 * lib/fwriting.h: Likewise.
34578 * lib/fflush.c: Likewise.
34580 Fix closein for mingw.
34581 * modules/closein-tests: Add tests for closein.
34582 * tests/test-closein.c: New file.
34583 * tests/test-closein.sh: Likewise.
34584 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34585 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34587 2007-04-27 Bruno Haible <bruno@clisp.org>
34589 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34591 * lib/math_.h [__DECC]: Likewise.
34592 * lib/stdio_.h [__DECC]: Likewise.
34593 * lib/stdlib_.h [__DECC]: Likewise.
34594 * lib/string_.h [__DECC]: Likewise.
34595 * lib/time_.h [__DECC]: Likewise.
34596 * lib/wchar_.h [__DECC]: Likewise.
34597 * lib/wctype_.h [__DECC]: Likewise.
34599 2007-04-27 Bruno Haible <bruno@clisp.org>
34601 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34603 2007-04-27 Bruno Haible <bruno@clisp.org>
34605 * lib/fflush.c: Add comments.
34606 * modules/fpurge-tests (Depends-on): Add fflush.
34607 * modules/freadable-tests (Depends-on): Likewise.
34608 * modules/fwritable-tests (Depends-on): Likewise.
34610 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
34612 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34613 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
34614 Report by Bruno Haible <bruno@clisp.org>.
34616 2007-04-26 Eric Blake <ebb9@byu.net>
34618 Fix fflush on mingw.
34619 * modules/fflush (Depends-on): Add freading.
34620 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34623 2007-04-26 Eric Blake <ebb9@byu.net>
34624 and Bruno Haible <bruno@clisp.org>
34626 Implement freading and fwriting.
34627 * lib/freading.c: New file.
34628 * lib/freading.h: Likewise.
34629 * m4/freading.m4: Likewise.
34630 * modules/freading: Likewise.
34631 * modules/freading-tests: Likewise.
34632 * tests/test-freading.c: Likewise.
34633 * lib/fwriting.c: New file.
34634 * lib/fwriting.h: Likewise.
34635 * m4/fwriting.m4: Likewise.
34636 * modules/fwriting: Likewise.
34637 * modules/fwriting-tests: Likewise.
34638 * tests/test-fwriting.c: Likewise.
34639 * MODULES.html.sh (File stream based Input/Output): Mention them.
34641 2007-04-26 Bruno Haible <bruno@clisp.org>
34643 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34644 'long' when we assume it.
34645 Suggested by Eric Blake.
34647 2007-04-26 Bruno Haible <bruno@clisp.org>
34649 Ensure fseeko, ftello are declared on glibc systems.
34650 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34651 * modules/fseeko (configure.ac-early): Likewise.
34652 * modules/ftello (configure.ac-early): Likewise.
34653 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34654 AC_FUNC_FSEEKO for this.
34655 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34656 (gl_CHECK_FSEEKO): Remove macro.
34658 2007-04-26 Bruno Haible <bruno@clisp.org>
34660 * tests/test-fflush.c (main): Also check the ftell result after
34661 fflush and fseek/fseeko.
34662 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34663 file descriptor position cache in the stream.
34664 * lib/fseeko.c (rpl_fseeko): Likewise.
34666 2007-04-26 Bruno Haible <bruno@clisp.org>
34668 * modules/fflush-tests (Depends-on): Add fseeko.
34670 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
34671 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34673 * lib/argz_.h: ensure error_t definition is obtained in same
34674 mechanism system argz.h would have.
34675 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34676 argz facilities are known bad. Err on the side of caution if
34679 2007-04-25 Eric Blake <ebb9@byu.net>
34681 * lib/fpurge.c (includes): Use stdlib.h for free.
34682 * tests/test-fflush.c (main): Also test fflush-fseeko.
34684 2007-04-25 Bruno Haible <bruno@clisp.org>
34686 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34687 * lib/fseeko.c: New file.
34688 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34689 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34690 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34692 (gl_FUNC_FSEEKO): Invoke it.
34693 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34694 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34695 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34697 2007-04-25 Bruno Haible <bruno@clisp.org>
34699 * modules/fflush (Depends-on): Add ftello.
34701 2007-04-25 Bruno Haible <bruno@clisp.org>
34703 * modules/ftello-tests: New file.
34704 * tests/test-ftello.c: New file.
34706 * modules/ftello: New file.
34707 * m4/ftello.m4: New file.
34708 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34710 * lib/stdio_.h (ftello): New declaration.
34711 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34714 2007-04-25 Bruno Haible <bruno@clisp.org>
34716 * modules/fseeko-tests: New file.
34717 * tests/test-fseeko.c: New file.
34719 * modules/fseeko: New file.
34720 * m4/fseeko.m4: New file.
34721 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34723 * lib/stdio_.h (fseeko): New declaration.
34724 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34727 2007-04-25 Bruno Haible <bruno@clisp.org>
34729 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34731 2007-04-25 Bruno Haible <bruno@clisp.org>
34733 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34734 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34735 * tests/test-unistd.c: Likewise.
34736 * tests/test-fcntl.c: Likewise.
34738 2007-04-23 Eric Blake <ebb9@byu.net>
34740 * lib/fflush.c: Fix missing include.
34741 Reported by Bruno Haible.
34743 2007-04-23 Bruno Haible <bruno@clisp.org>
34745 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34746 Reported by Eric Blake.
34748 2007-04-23 Bruno Haible <bruno@clisp.org>
34750 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34752 2007-04-23 Bruno Haible <bruno@clisp.org>
34754 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34756 2007-04-23 Bruno Haible <bruno@clisp.org>
34758 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34759 Needed on HP-UX 11.
34761 2007-04-16 Eric Blake <ebb9@byu.net>
34763 Make fflush rely on fpurge.
34764 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34765 open coding all variants.
34766 * modules/fflush (Depends-on): Add fpurge and unistd.
34767 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34768 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34770 Fix --with-tests compilation on cygwin.
34771 * modules/argmatch-tests (Makefile.am): List gnulib library first
34773 * modules/argp-tests (Makefile.am): Likewise.
34774 * modules/array-list-tests (Makefile.am): Likewise.
34775 * modules/array-oset-tests (Makefile.am): Likewise.
34776 * modules/avltree-list-tests (Makefile.am): Likewise.
34777 * modules/avltree-oset-tests (Makefile.am): Likewise.
34778 * modules/avltreehash-list-tests (Makefile.am): Likewise.
34779 * modules/carray-list-tests (Makefile.am): Likewise.
34780 * modules/dirname-tests (Makefile.am): Likewise.
34781 * modules/frexp-tests (Makefile.am): Likewise.
34782 * modules/isnanl-tests (Makefile.am): Likewise.
34783 * modules/linked-list-tests (Makefile.am): Likewise.
34784 * modules/linkedhash-list-tests (Makefile.am): Likewise.
34785 * modules/lock-tests (Makefile.am): Likewise.
34786 * modules/rbtree-list-tests (Makefile.am): Likewise.
34787 * modules/rbtree-oset-tests (Makefile.am): Likewise.
34788 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34789 * modules/tls-tests (Makefile.am): Likewise.
34790 * modules/tsearch-tests (Makefile.am): Likewise.
34791 * modules/xvasprintf-tests (Makefile.am): Likewise.
34793 Fix fpurge for cygwin.
34794 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34796 * modules/fpurge-tests (Depends-on): Clean up trash.
34798 2007-04-16 Simon Josefsson <simon@josefsson.org>
34800 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34802 * m4/autobuild.m4: Re-indent.
34804 2007-04-13 Bruno Haible <bruno@clisp.org>
34806 * modules/fpurge-tests: New file.
34807 * tests/test-fpurge.c: New file.
34809 * modules/fpurge: New file.
34810 * lib/fpurge.h: New file.
34811 * lib/fpurge.c: New file.
34812 * m4/fpurge.m4: New file.
34814 2007-04-13 Bruno Haible <bruno@clisp.org>
34816 * modules/fbufmode-tests: New file.
34817 * tests/test-fbufmode.c: New file.
34819 * modules/fbufmode: New file.
34820 * lib/fbufmode.h: New file.
34821 * lib/fbufmode.c: New file.
34822 * m4/fbufmode.m4: New file.
34824 2007-04-13 Bruno Haible <bruno@clisp.org>
34826 * modules/fwritable-tests: New file.
34827 * tests/test-fwritable.c: New file.
34829 * modules/fwritable: New file.
34830 * lib/fwritable.h: New file.
34831 * lib/fwritable.c: New file.
34832 * m4/fwritable.m4: New file.
34834 2007-04-13 Bruno Haible <bruno@clisp.org>
34836 * modules/freadable-tests: New file.
34837 * tests/test-freadable.c: New file.
34839 * modules/freadable: New file.
34840 * lib/freadable.h: New file.
34841 * lib/freadable.c: New file.
34842 * m4/freadable.m4: New file.
34844 2007-04-13 Bruno Haible <bruno@clisp.org>
34846 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34849 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
34851 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34852 gzip bootstrap.conf to avoid dragging in i18n machinery.
34853 (gnulib_tool_option): Use it.
34855 2007-04-13 Bruno Haible <bruno@clisp.org>
34857 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34859 * tests/test-vasprintf-posix.c (test_function): Likewise.
34860 * tests/test-snprintf-posix.h (test_function): Likewise.
34861 * tests/test-sprintf-posix.h (test_function): Likewise.
34862 * tests/test-fprintf-posix.h (test_function): Likewise.
34863 * tests/test-printf-posix.h (test_function): Likewise.
34864 * tests/test-fprintf-posix.out: Likewise.
34866 2007-04-13 Bruno Haible <bruno@clisp.org>
34868 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34869 * modules/tls-tests (configure.ac): Likewise.
34870 Reported by Arto C. Nirkko <anirkko@insel.ch>.
34872 2007-04-13 Bruno Haible <bruno@clisp.org>
34874 * lib/tls.c (glthread_tls_get): Fix return type.
34875 Patch by Arto C. Nirkko <anirkko@insel.ch>.
34877 2007-04-12 Eric Blake <ebb9@byu.net>
34879 * modules/gettime (Depends-on): Remove gettime.
34880 Reported by Dmitry V. Levin.
34882 2007-04-12 Bruno Haible <bruno@clisp.org>
34884 * modules/fflush (Include): Mention <stdio.h>.
34885 * modules/strtoimax (Include): Mention <inttypes.h>.
34886 * modules/strtoumax (Include): Likewise.
34888 2007-04-12 Eric Blake <ebb9@byu.net>
34890 * .cvsignore: New file.
34891 * .gitignore: Likewise.
34893 2007-04-12 Bruno Haible <bruno@clisp.org>
34895 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34896 not before, since $(LDADD) often contains libgnu.a.
34897 * modules/striconv-tests (test_striconv_LDADD): Likewise.
34898 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34899 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34902 2007-04-12 Eric Blake <ebb9@byu.net>
34904 Work around glibc's failure to flush stdin on fclose.
34905 * lib/closein.c (close_stdin): Flush stdin before closing.
34907 Work around glibc's failure to reset seekable stdin on exit.
34908 * modules/closein: New module.
34909 * lib/closein.c: New file.
34910 * lib/closein.h: Likewise.
34911 * m4/closein.m4: Likewise.
34912 * MODULES.html.sh (File stream based Input/Output): Document it.
34914 2007-04-12 Simon Josefsson <simon@josefsson.org>
34916 * gnulib-tool: Rename generated 'autobuild' script to
34917 'do-autobuild' in --create-megatestdir output.
34919 * doc/gnulib.texi (Build robot for gnulib): Fix.
34921 2007-04-12 Simon Josefsson <simon@josefsson.org>
34923 * modules/sysexits (Depends-on): Add absolute-header.
34925 2007-04-12 Eric Blake <ebb9@byu.net>
34927 No need to preserve errno on success.
34928 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34929 Reported by Bruno Haible.
34931 2007-04-12 Simon Josefsson <simon@josefsson.org>
34933 * MODULES.html.sh (Support for maintaining and releasing
34934 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
34936 2007-04-12 Simon Josefsson <simon@josefsson.org>
34938 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34940 2007-04-12 Simon Josefsson <simon@josefsson.org>
34942 * modules/autobuild: New module.
34944 * m4/autobuild.m4: New file.
34946 2007-04-11 Bruno Haible <bruno@clisp.org>
34948 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34949 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34950 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34951 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34952 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34953 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34954 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34955 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34956 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34957 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34958 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34959 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34960 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34961 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34962 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34963 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34964 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34965 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34966 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34967 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34968 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34969 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34970 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34971 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34972 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34973 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34974 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34975 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34976 Reported by Eric Blake.
34978 2007-04-11 Bruno Haible <bruno@clisp.org>
34980 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34982 2007-04-10 Bruno Haible <bruno@clisp.org>
34984 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34985 for NaN and Infinity. Needed on FreeBSD 6.1.
34986 * tests/test-vasnprintf-posix.c (test_function): Undo last change
34987 regarding results for "%010a" of Infinity and NaN.
34988 * tests/test-vasprintf-posix.c (test_function): Likewise.
34989 * tests/test-snprintf-posix.h (test_function): Likewise.
34990 * tests/test-sprintf-posix.h (test_function): Likewise.
34991 * tests/test-fprintf-posix.h (test_function): Likewise.
34992 * tests/test-printf-posix.h (test_function): Likewise.
34993 * tests/test-fprintf-posix.out: Likewise.
34995 2007-04-10 Bruno Haible <bruno@clisp.org>
34997 * modules/locale-tests: New file.
34998 * tests/test-locale.c: New file.
35000 * modules/locale: New file.
35001 * lib/locale_.h: New file.
35002 * m4/locale_h.m4: New file.
35004 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
35005 Bruno Haible <bruno@clisp.org>
35007 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35008 be determined, test for availability of the copysignf, copysign,
35009 copysignl functions.
35010 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35011 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35012 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35014 2007-04-09 Eric Blake <ebb9@byu.net>
35016 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35017 * modules/stdio (Makefile.am): Support fflush.
35018 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35019 * modules/fflush: New file.
35020 * lib/fflush.c: Likewise.
35021 * m4/fflush.m4: Likewise.
35022 * modules/fflush-tests: New test.
35023 * tests/test-fflush.c: Likewise.
35024 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35026 2007-04-06 Bruno Haible <bruno@clisp.org>
35028 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35029 (VASNPRINTF): Use signbit for faster determination whether to print a
35031 * modules/vasnprintf (Files): Remove lib/float+.h.
35032 * modules/fprintf-posix (Depends-on): Add signbit.
35033 * modules/snprintf-posix (Depends-on): Likewise.
35034 * modules/sprintf-posix (Depends-on): Likewise.
35035 * modules/vasnprintf-posix (Depends-on): Likewise.
35036 * modules/vasprintf-posix (Depends-on): Likewise.
35037 * modules/vfprintf-posix (Depends-on): Likewise.
35038 * modules/vsnprintf-posix (Depends-on): Likewise.
35039 * modules/vsprintf-posix (Depends-on): Likewise.
35041 2007-04-06 Bruno Haible <bruno@clisp.org>
35043 * tests/test-frexp.c (main): Test also the sign bit of zero results.
35044 * tests/test-frexpl.c (main): Likewise.
35045 * tests/test-ldexpl.c (main): Likewise.
35046 * modules/frexp-tests (Depends-on): Add signbit.
35047 * modules/frexpl-tests (Depdends-on): Likewise.
35048 * modules/ldexpl-tests (Depdends-on): Likewise.
35050 2007-04-06 Bruno Haible <bruno@clisp.org>
35052 * modules/signbit-tests: New file.
35053 * tests/test-signbit.c: New file.
35055 * modules/signbit: New file.
35056 * lib/signbitf.c: New file.
35057 * lib/signbitd.c: New file.
35058 * lib/signbitl.c: New file.
35059 * m4/signbit.m4: New file.
35060 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35061 (signbit): New macro.
35062 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35064 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35065 REPLACE_FREXPL into math.h.
35067 2007-04-06 Bruno Haible <bruno@clisp.org>
35069 * modules/isnanf-nolibm-tests: New file.
35070 * tests/test-isnanf.c: New file.
35072 * modules/isnanf-nolibm: New file.
35073 * lib/isnanf.h: New file.
35074 * lib/isnanf.c: New file.
35075 * lib/isnan.c: Consider the USE_FLOAT macro.
35076 * m4/isnanf.m4: New file.
35078 2007-04-06 Bruno Haible <bruno@clisp.org>
35080 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35081 (Link): New section.
35083 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35085 2007-04-06 Bruno Haible <bruno@clisp.org>
35087 Assume the 'long double' type.
35088 * m4/longdouble.m4: Remove file.
35089 * config/srclist.txt: Don't mention longdouble.m4.
35090 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35091 * lib/float+.h: Likewise.
35092 * lib/frexp.c: Likewise.
35093 * lib/printf-args.h: Likewise.
35094 * lib/printf-args.c: Likewise.
35095 * lib/printf-frexp.c: Likewise.
35096 * lib/printf-parse.c: Likewise.
35097 * lib/vasnprintf.c: Likewise.
35098 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35099 * m4/intl.m4: Likewise.
35100 * m4/isnanl.m4: Likewise.
35101 * m4/printf.m4: Likewise.
35102 * m4/printf-frexpl.m4: Likewise.
35103 * m4/vasnprintf.m4: Likewise.
35104 * modules/allocsa (Files): Remove m4/longdouble.m4.
35105 * modules/gettext (Files): Likewise.
35106 * modules/relocatable-prog-wrapper (Files): Likewise.
35107 * modules/vasnprintf (Files): Likewise.
35108 * modules/isnanl (Files): Likewise.
35109 (Include): Simplify.
35110 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35111 (Include): Simplify.
35112 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35113 (Include): Simplify.
35114 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35115 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35116 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35117 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35118 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35119 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35120 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35121 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35122 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35123 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35124 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35125 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35126 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35127 * tests/test-isnanl.c: Likewise.
35128 * tests/test-snprintf-posix.h: Likewise.
35129 * tests/test-sprintf-posix.h: Likewise.
35130 * tests/test-vasnprintf-posix.c: Likewise.
35131 * tests/test-vasnprintf-posix2.c: Likewise.
35132 * tests/test-vasprintf-posix.c: Likewise.
35134 2007-04-06 Bruno Haible <bruno@clisp.org>
35136 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35137 * lib/math_.h [__DECC]: Include the overridden include file through
35138 #include_next, outside the double-inclusion guard.
35139 * lib/stdio_.h [__DECC]: Likewise.
35140 * lib/stdlib_.h [__DECC]: Likewise.
35141 * lib/string_.h [__DECC]: Likewise.
35142 * lib/time_.h [__DECC]: Likewise.
35143 * lib/wchar_.h [__DECC]: Likewise.
35144 * lib/wctype_.h [__DECC]: Likewise.
35145 * lib/inttypes_.h [__DECC]: Likewise.
35146 Reported by Albert Chin <china@thewrittenword.com> in
35147 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35149 2007-04-04 Eric Blake <ebb9@byu.net>
35151 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35154 2007-04-04 Bruno Haible <bruno@clisp.org>
35156 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35157 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35159 2007-04-04 Bruno Haible <bruno@clisp.org>
35161 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35162 results for "%010a" of Infinity and NaN.
35163 * tests/test-vasprintf-posix.c (test_function): Likewise.
35164 * tests/test-snprintf-posix.h (test_function): Likewise.
35165 * tests/test-sprintf-posix.h (test_function): Likewise.
35166 * tests/test-fprintf-posix.h (test_function): Remove these tests.
35167 * tests/test-printf-posix.h (test_function): Likewise.
35168 * tests/test-fprintf-posix.out: Update.
35169 Needed for FreeBSD 6.1.
35171 2007-04-04 Bruno Haible <bruno@clisp.org>
35173 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35174 directly used by the gnulib modules nor by gnulib-tool.
35176 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
35178 * DEPENDENCIES: Give overall description of version dependency
35179 desirability. Use more-typical names for apps.
35180 Add shell, coreutils, diffutils, grep, tar, gzip.
35182 2007-04-04 Simon Josefsson <simon@josefsson.org>
35184 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
35186 2007-04-04 Karl Berry <karl@gnu.org>
35188 * MODULES.html.sh (func_module): missing '.
35190 2007-04-03 Bruno Haible <bruno@clisp.org>
35192 * modules/argmatch-tests (Makefile.am): New variable
35193 test_argmatch_LDADD.
35194 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35195 * modules/array-list-tests (Makefile.am): New variable
35196 test_array_list_LDADD.
35197 * modules/array-oset-tests (Makefile.am): New variable
35198 test_array_oset_LDADD.
35199 * modules/avltree-list-tests (Makefile.am): New variable
35200 test_avltree_list_LDADD.
35201 * modules/avltree-oset-tests (Makefile.am): New variable
35202 test_avltree_oset_LDADD.
35203 * modules/avltreehash-list-tests (Makefile.am): New variable
35204 test_avltreehash_list_LDADD.
35205 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35206 test_canonicalize_lgpl_LDADD.
35207 * modules/carray-list-tests (Makefile.am): New variable
35208 test_carray_list_LDADD.
35209 * modules/dirname-tests (Makefile.am): New variable
35210 test_dirname_LDADD.
35211 * modules/linked-list-tests (Makefile.am): New variable
35212 test_linked_list_LDADD.
35213 * modules/linkedhash-list-tests (Makefile.am): New variable
35214 test_linkedhash_list_LDADD.
35215 * modules/rbtree-list-tests (Makefile.am): New variable
35216 test_rbtree_list_LDADD.
35217 * modules/rbtree-oset-tests (Makefile.am): New variable
35218 test_rbtree_oset_LDADD.
35219 * modules/rbtreehash-list-tests (Makefile.am): New variable
35220 test_rbtreehash_list_LDADD.
35221 * modules/xvasprintf-tests (Makefile.am): New variable
35222 test_xvasprintf_LDADD.
35223 Reported by Eric Blake.
35225 2007-04-03 Eric Blake <ebb9@byu.net>
35227 * DEPENDENCIES: Weaken m4 requirements.
35229 2007-04-03 Bruno Haible <bruno@clisp.org>
35231 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35232 * modules/isnanl-tests (configure.ac): Likewise.
35234 2007-04-03 Ben Pfaff <blp@gnu.org>
35236 * modules/iconv_open: Add $(srcdir)/ to source directory
35237 references in Makefile fragments that call gperf, to fix VPATH
35240 2007-04-03 Bruno Haible <bruno@clisp.org>
35242 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35243 * lib/ldexpl.c: Undo last change.
35245 2007-04-03 Bruno Haible <bruno@clisp.org>
35247 * modules/printf-frexpl (Depends-on): Undo last change.
35248 (Files): Add m4/ldexpl.m4.
35250 2007-04-03 Bruno Haible <bruno@clisp.org>
35252 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35253 * modules/isnanl (Link): New section.
35255 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35256 * modules/frexp (Link): New section.
35258 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35259 * modules/frexpl (Link): New section.
35261 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35262 * modules/ldexpl (Link): New section.
35264 2007-04-03 Bruno Haible <bruno@clisp.org>
35266 * modules/TEMPLATE-EXTENDED: New file.
35267 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35269 2007-04-03 Bruno Haible <bruno@clisp.org>
35271 * DEPENDENCIES: New file.
35272 Suggested by Simon Josefsson.
35274 2007-04-03 Bruno Haible <bruno@clisp.org>
35276 * doc/gnulib.texi: Escape @.
35278 2007-04-03 James Youngman <jay@gnu.org>
35279 and Paul Eggert <eggert@cs.ucla.edu>
35281 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35282 birthtime on all systems that have birthtime, not just those which
35283 use st_birthtimensec rather than st_birthtim. Putting zero in
35284 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35285 that the birth time is not available for files on an NFS mount.
35287 2007-04-03 Simon Josefsson <simon@josefsson.org>
35289 * modules/memxor: Move back from crypto/, suggested by Bruno.
35290 * modules/crypto/hmac-sha1: Fix memxor dependency.
35292 * modules/crypto/gc: Moved from ../.
35294 2007-04-02 Eric Blake <ebb9@byu.net>
35296 * lib/ldexpl.c (includes): Avoid libm.
35298 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35300 2007-04-02 Bruno Haible <bruno@clisp.org>
35302 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35305 2007-04-02 Bruno Haible <bruno@clisp.org>
35307 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35308 x86 or x86_64 platforms running MacOS X.
35309 Reported by Ryan Schmidt <@ryandesign.com>.
35311 2007-04-02 Bruno Haible <bruno@clisp.org>
35313 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35316 2007-04-01 Simon Josefsson <simon@josefsson.org>
35318 * modules/crypto/arcfour: Moved from ../.
35319 * modules/crypto/arcfour-tests: Moved from ../.
35320 * modules/crypto/arctwo: Moved from ../.
35321 * modules/crypto/arctwo-tests: Moved from ../.
35322 * modules/crypto/des: Moved from ../.
35323 * modules/crypto/des-tests: Moved from ../.
35324 * modules/crypto/gc-arcfour: Moved from ../.
35325 * modules/crypto/gc-arcfour-tests: Moved from ../.
35326 * modules/crypto/gc-arctwo: Moved from ../.
35327 * modules/crypto/gc-arctwo-tests: Moved from ../.
35328 * modules/crypto/gc-des: Moved from ../.
35329 * modules/crypto/gc-des-tests: Moved from ../.
35330 * modules/crypto/gc-hmac-md5: Moved from ../.
35331 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35332 * modules/crypto/gc-hmac-sha1: Moved from ../.
35333 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35334 * modules/crypto/gc-md2: Moved from ../.
35335 * modules/crypto/gc-md2-tests: Moved from ../.
35336 * modules/crypto/gc-md4: Moved from ../.
35337 * modules/crypto/gc-md4-tests: Moved from ../.
35338 * modules/crypto/gc-md5: Moved from ../.
35339 * modules/crypto/gc-md5-tests: Moved from ../.
35340 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35341 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35342 * modules/crypto/gc-random: Moved from ../.
35343 * modules/crypto/gc-rijndael: Moved from ../.
35344 * modules/crypto/gc-rijndael-tests: Moved from ../.
35345 * modules/crypto/gc-sha1: Moved from ../.
35346 * modules/crypto/gc-sha1-tests: Moved from ../.
35347 * modules/crypto/gc-tests: Moved from ../.
35348 * modules/crypto/hmac-md5: Moved from ../.
35349 * modules/crypto/hmac-md5-tests: Moved from ../.
35350 * modules/crypto/hmac-sha1: Moved from ../.
35351 * modules/crypto/hmac-sha1-tests: Moved from ../.
35352 * modules/crypto/md2: Moved from ../.
35353 * modules/crypto/md2-tests: Moved from ../.
35354 * modules/crypto/md4: Moved from ../.
35355 * modules/crypto/md4-tests: Moved from ../.
35356 * modules/crypto/md5: Moved from ../.
35357 * modules/crypto/md5-tests: Moved from ../.
35358 * modules/crypto/memxor: Moved from ../.
35359 * modules/crypto/rijndael: Moved from ../.
35360 * modules/crypto/rijndael-tests: Moved from ../.
35361 * modules/crypto/sha1: Moved from ../.
35363 2007-03-30 James Youngman <jay@gnu.org>
35365 * tests/test-stat-time.c (prepare_test): use chmod() rather than
35366 rename() to change the ctime of a file (because ctime is unaffected
35367 by rename on jfs2 on AIX 5.1).
35368 (main): Start by doing cleanup, in case a previous run failed leaving
35371 2007-03-31 Bruno Haible <bruno@clisp.org>
35373 Support old proprietary implementations of iconv.
35374 * modules/iconv_open: New file.
35375 * lib/iconv_.h: New file.
35376 * m4/iconv_h.m4: New file.
35377 * lib/iconv_open.c: New file.
35378 * lib/iconv_open-aix.gperf: New file.
35379 * lib/iconv_open-hpux.gperf: New file.
35380 * lib/iconv_open-irix.gperf: New file.
35381 * lib/iconv_open-osf.gperf: New file.
35382 * m4/iconv_open.m4: New file.
35383 * modules/linebreak (Depends-on): Add iconv_open.
35384 * modules/striconv (Depends-on): Likewise.
35385 * modules/striconveh (Depends-on): Likewise.
35386 * modules/unicodeio (Depends-on): Likewise.
35387 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35389 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35390 conversion if cd is (iconv_t)(-1).
35391 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35394 2007-03-31 Bruno Haible <bruno@clisp.org>
35396 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35397 work on Solaris either. Protect also second use of "autodetect_jp".
35399 2007-03-31 Bruno Haible <bruno@clisp.org>
35401 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35402 the function is not present.
35404 2007-03-31 Bruno Haible <bruno@clisp.org>
35406 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35407 the function is not present.
35409 2007-03-31 Bruno Haible <bruno@clisp.org>
35411 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35412 a bug in HP-UX iconv_open().
35414 2007-03-31 Bruno Haible <bruno@clisp.org>
35416 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35417 (Mathematics <math.h>): New section, add fpieee.
35418 (Input/output <stdio.h>): Add fseterr.
35419 (Mathematics <math.h>): New section, add printf-frexp.
35420 (Container data structures): Add sublist.
35421 (Core language properties): Add fpucw, inline.
35422 (Functions for greatest-width integer types <inttypes.h>): Add
35423 imaxabs, imaxdiv, inttypes.
35424 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35425 isnanl-nolibm, ldexp.
35426 (Mathematics <math.h>): New section, add printf-frexpl.
35427 (Support for systems lacking POSIX:2001): Add fprintf-posix,
35428 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35429 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35430 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35431 (Unicode string functions): Add unistr/u*-mbtoucr.
35432 (Java): Add javacomp-script, javaexec-script.
35433 (C#): Add csharpcomp-script, csharpexec-script.
35434 (Support for building libraries and executables): Add havelib,
35436 (Support for maintaining and releasing projects): Renamed from
35437 'Support for maintaining and release projects'. Add announce-gen.
35439 2007-03-31 Bruno Haible <bruno@clisp.org>
35441 * README: Talk primarily about git.
35442 (git and CVS): Renamed from CVS.
35443 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35444 gnulib is available through git.
35445 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35447 2007-03-30 Bruno Haible <bruno@clisp.org>
35449 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35450 * lib/poll_.h: Likewise.
35451 * lib/stat_.h: Likewise.
35452 * lib/sys_time_.h: Likewise.
35453 * lib/sysexit_.h: Likewise.
35454 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35455 * lib/stdbool_.h: Likewise.
35456 * lib/byteswap_.h: Add double-inclusion guard.
35458 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
35460 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35462 2007-03-30 Karl Berry <karl@gnu.org>
35464 * config/srclist-update: double space after USA in the license
35465 substitution, since that's how it's usually (?) written.
35467 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
35469 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35470 reported by Bruno Haible.
35472 2007-03-29 Bruno Haible <bruno@clisp.org>
35474 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35475 a bug in AIX iconv().
35477 2007-03-29 Bruno Haible <bruno@clisp.org>
35479 * modules/ldexpl-tests: New file.
35480 * tests/test-ldexpl.c: New file.
35482 2007-03-29 Bruno Haible <bruno@clisp.org>
35484 * lib/ldexpl.c: Include fpucw.h.
35485 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35487 * modules/ldexpl (Depends-on): Add fpucw.
35489 2007-03-29 Bruno Haible <bruno@clisp.org>
35491 * modules/ldexpl: New file.
35492 * m4/ldexpl.m4: New file.
35493 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35495 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35497 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35499 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35500 gl_FUNC_LDEXPL_WORKS.
35501 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35502 * modules/mathl (Files): Remove lib/ldexpl.c.
35503 (Depends-on): Add ldexpl.
35505 2007-03-29 Bruno Haible <bruno@clisp.org>
35507 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35509 2007-03-29 Bruno Haible <bruno@clisp.org>
35511 * tests/test-striconveh.c (main): Don't assume that a direct conversion
35512 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35513 and possibly also HP-UX.
35514 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35515 work on AIX, IRIX, HP-UX, OSF/1.
35516 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35517 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35518 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35519 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35520 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35521 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35523 2007-03-29 Bruno Haible <bruno@clisp.org>
35525 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35527 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35529 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35530 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35532 2007-03-29 Eric Blake <ebb9@byu.net>
35534 * lib/acl-internal.h: Remove redundant include.
35535 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35536 Cygwin when a file is locked.
35538 2007-03-29 Bruno Haible <bruno@clisp.org>
35540 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35542 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35544 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35546 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35547 try to remove a parent directory if the child couldn't be removed
35548 (except for the first rmdir, which could fail because the child
35549 doesn't exist). Problem reported by Jeff Blaine in
35550 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35552 2007-03-28 Bruno Haible <bruno@clisp.org>
35554 * lib/striconveh.c (utf8conv_carefully): New function.
35555 (mem_cd_iconveh_internal): Invoke it.
35557 2007-03-28 Bruno Haible <bruno@clisp.org>
35559 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35560 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35562 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35563 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35566 2007-03-28 Bruno Haible <bruno@clisp.org>
35568 * modules/unistr/u8-mbtoucr: New file.
35569 * lib/unistr/u8-mbtoucr.c: New file.
35570 * modules/unistr/u16-mbtoucr: New file.
35571 * lib/unistr/u16-mbtoucr.c: New file.
35572 * modules/unistr/u16-mbtoucr: New file.
35573 * lib/unistr/u16-mbtoucr.c: New file.
35574 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35576 2007-03-27 Simon Josefsson <simon@josefsson.org>
35577 Bruno Haible <bruno@clisp.org>
35579 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35580 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
35581 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35583 * m4/stdio_h.m4: Add stubs for vasprintf too.
35585 * modules/stdio: Support vasprintf in sed command.
35587 * modules/vasprintf: Depend on stdio for prototypes. Remove
35588 vasprintf.h. Add stdio module indicator.
35590 * lib/stdio_.h: Declare asprintf and vasprintf, based on
35593 * lib/vasprintf.h: File removed.
35595 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35596 * lib/vasprintf.c: Ditto.
35597 * lib/xvasprintf.c: Ditto.
35598 * tests/test-vasprintf-posix.c: Ditto.
35599 * tests/test-vasprintf.c: Ditto.
35601 2007-03-27 Bruno Haible <bruno@clisp.org>
35603 Make vasnprintf multithread-safe.
35604 * lib/vasnprintf.c (decimal_point_char): New function.
35605 (VASNPRINTF): Use it.
35606 Suggested by Simon Josefsson.
35608 2007-03-27 Eric Blake <ebb9@byu.net>
35610 Support sub-second birthtime on cygwin.
35611 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35612 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35613 (get_stat_birthtime): Also work with st_birthtim.
35615 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
35617 * lib/stat-time.h (USE_BIRTHTIME): Remove.
35618 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35619 (get_stat_birthtime_ns): Do not try to use "spare" fields.
35620 (get_stat_birthtime_ns): Simplify compile-time tests.
35621 (get_stat_birthtime): Change the API to look like
35622 get_stat_mtime etc., except return a negative tv_nsec on error.
35623 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35624 Don't check for "spare" fields.
35625 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35626 or for struct stat.st_birthtime, as these tests aren't used.
35627 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35629 2007-03-27 Bruno Haible <bruno@clisp.org>
35631 * lib/stat-time.h: Include <sys/stat.h>.
35633 2007-03-27 James Youngman <jay@gnu.org>
35635 * lib/stat-time.h (get_stat_birthtime): New function for
35636 retrieving st_birthtime as provided by UFS2 (hence *BSD).
35637 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35639 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35640 * modules/stat-time-test: New file.
35641 * tests/test-stat-time.c: New test, devised by Bruno Haible.
35643 2007-03-26 Bruno Haible <bruno@clisp.org>
35645 Better support of signalling NaNs.
35646 * lib/atanl.c: Include isnanl.h.
35647 (atanl): Perform test for NaN at the beginning of the function and
35648 through a call to isnanl.
35649 * lib/cosl.c: Include isnanl.h.
35650 (cosl): Perform test for NaN at the beginning of the function and
35651 through a call to isnanl.
35652 * lib/ldexpl.c: Include isnanl.h.
35653 (ldexpl): Perform test for NaN through a call to isnanl.
35654 * lib/logl.c: Include isnanl.h.
35655 (logl): Perform test for NaN at the beginning of the function and
35656 through a call to isnanl.
35657 * lib/sinl.c: Include isnanl.h.
35658 (sinl): Perform test for NaN at the beginning of the function and
35659 through a call to isnanl.
35660 * lib/sqrtl.c: Include isnanl.h.
35661 (sqrtl): Perform test for NaN at the beginning of the function and
35662 through a call to isnanl.
35663 * lib/tanl.c: Include isnanl.h.
35664 (tanl): Perform test for NaN at the beginning of the function and
35665 through a call to isnanl.
35666 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35667 * modules/mathl (Depends-on): Add isnanl.
35669 2007-03-26 Eric Blake <ebb9@byu.net>
35671 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35672 regression in logic sense of previous patch.
35674 2007-03-26 Bruno Haible <bruno@clisp.org>
35676 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35677 unportable shell command "if ! ...".
35678 Reported by Ralf Wildenhues.
35680 2007-03-25 Bruno Haible <bruno@clisp.org>
35682 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35683 <sysexits.h> file, and only add EX_CONFIG.
35684 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35685 absolute file name and whether it is sufficient. Substitute also
35686 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35687 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35688 ABSOLUTE_SYSEXITS_H into sysexits.h.
35690 2007-03-25 Bruno Haible <bruno@clisp.org>
35692 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35695 2007-03-25 Bruno Haible <bruno@clisp.org>
35697 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35698 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35700 2007-03-25 Bruno Haible <bruno@clisp.org>
35702 * lib/vasnprintf.c: Include langinfo.h.
35703 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35705 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35706 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35707 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35708 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35709 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35710 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35711 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35712 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35713 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35714 Reported by Simon Josefsson.
35716 2007-03-25 Bruno Haible <bruno@clisp.org>
35718 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35719 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35720 * modules/vasnprintf (Depends-on): Add stdint.
35722 2007-03-25 Bruno Haible <bruno@clisp.org>
35724 * modules/fpieee: New file.
35725 * m4/fpieee.m4: New file.
35726 * modules/isnan-nolibm (Depends-on): Add fpieee.
35727 * modules/isnanl-nolibm (Depends-on): Add fpieee.
35728 * modules/isnanl (Depends-on): Add fpieee.
35730 2007-03-25 Bruno Haible <bruno@clisp.org>
35732 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35734 2007-03-25 Bruno Haible <bruno@clisp.org>
35736 Avoid test failures on IRIX 6.5.
35737 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35739 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35743 2007-03-25 Bruno Haible <bruno@clisp.org>
35745 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35746 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35747 exists but doesn't work.
35748 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35749 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35750 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35751 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35753 2007-03-25 Bruno Haible <bruno@clisp.org>
35755 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35756 returns inf. Needed on IRIX 6.5.
35758 2007-03-25 Bruno Haible <bruno@clisp.org>
35760 * tests/test-frexpl.c: Include isnanl-nolibm.h.
35761 (main): Use isnanl instead of x != x idiom.
35762 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35764 * tests/test-frexp.c: Include isnan.h.
35765 (main): Use isnan instead of x != x idiom.
35766 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35768 2007-03-25 Bruno Haible <bruno@clisp.org>
35770 * tests/test-frexp.c (NaN): New function/macro.
35771 (main): Use it instead of 0.0 / 0.0.
35772 * tests/test-isnan.c (NaN): New function/macro.
35773 (main): Use it instead of 0.0 / 0.0.
35774 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35775 (test_function): Use it instead of 0.0 / 0.0.
35776 * tests/test-vasprintf-posix.c (NaN): New function/macro.
35777 (test_function): Use it instead of 0.0 / 0.0.
35778 * tests/test-snprintf-posix.h (NaN): New function/macro.
35779 (test_function): Use it instead of 0.0 / 0.0.
35780 * tests/test-sprintf-posix.h (NaN): New function/macro.
35781 (test_function): Use it instead of 0.0 / 0.0.
35782 * tests/test-fprintf-posix.h (NaN): New function/macro.
35783 (test_function): Use it instead of 0.0 / 0.0.
35784 * tests/test-printf-posix.h (NaN): New function/macro.
35785 (test_function): Use it instead of 0.0 / 0.0.
35787 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35789 2007-03-25 Bruno Haible <bruno@clisp.org>
35791 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35793 2007-03-25 Bruno Haible <bruno@clisp.org>
35795 * lib/regexec.c (merge_state_with_log): Make static.
35797 2007-03-25 Bruno Haible <bruno@clisp.org>
35799 * lib/trigl.c (kernel_rem_pio2): Make static.
35801 2007-03-25 Bruno Haible <bruno@clisp.org>
35803 * lib/sincosl.c (sincosl_table): Make static.
35805 2007-03-25 Bruno Haible <bruno@clisp.org>
35807 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35808 if the compiler does not support C99.
35810 2007-03-25 Bruno Haible <bruno@clisp.org>
35812 * modules/time (Makefile.am): Ensure all rule action lines start with a
35815 2007-03-24 Bruno Haible <bruno@clisp.org>
35817 * modules/tsearch-tests: New file.
35818 * tests/test-tsearch.sh: New file.
35819 * tests/test-tsearch.c: New file, mostly copied from glibc.
35821 * modules/search-tests: New file.
35822 * tests/test-search.c: New file.
35824 * modules/search: New file.
35825 * lib/search_.h: New file, incorporating lib/tsearch.h.
35826 * m4/search_h.m4: New file.
35827 * lib/tsearch.h: Remove file.
35828 * lib/tsearch.c: Include search.h instead of tsearch.h.
35829 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35831 * modules/tsearch (Files): Remove lib/tsearch.h.
35832 (Depends-on): Add search.
35833 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35834 (Include): Change tsearch.h into search.h.
35836 2007-03-24 Bruno Haible <bruno@clisp.org>
35838 * modules/fpucw: New file.
35839 * lib/fpucw.h: New file.
35840 * lib/frexp.c: Include fpucw.h.
35841 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35843 * lib/printf-frexp.c: Include fpucw.h.
35844 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35846 * lib/vasnprintf.c: Include fpucw.h.
35847 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35848 'long double' calculations.
35849 * tests/test-frexpl.c: Include fpucw.h.
35850 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35851 * tests/test-printf-frexpl.c: Include fpucw.h.
35852 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35853 * modules/frexpl (Depends-on): Add fpucw.
35854 * modules/printf-frexpl (Depends-on): Likewise.
35855 * modules/fprintf-posix (Depends-on): Likewise.
35856 * modules/snprintf-posix (Depends-on): Likewise.
35857 * modules/sprintf-posix (Depends-on): Likewise.
35858 * modules/vasnprintf-posix (Depends-on): Likewise.
35859 * modules/vasprintf-posix (Depends-on): Likewise.
35860 * modules/vfprintf-posix (Depends-on): Likewise.
35861 * modules/vsnprintf-posix (Depends-on): Likewise.
35862 * modules/vsprintf-posix (Depends-on): Likewise.
35863 * modules/frexpl-tests (Depends-on): Likewise.
35864 * modules/printf-frexpl-tests (Depends-on): Likewise.
35866 2007-03-24 Bruno Haible <bruno@clisp.org>
35868 * lib/float+.h: New file.
35869 * lib/isnan.c: Include float+.h.
35871 (FUNC): Compare only SIZE bytes of the value.
35872 * lib/vasnprintf.c: Include float+.h.
35873 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35874 SIZEOF_LDBL or SIZEOF_DBL bytes.
35875 * modules/isnan-nolibm (Files): Add lib/float+.h.
35876 * modules/isnanl-nolibm (Files): Add lib/float+.h.
35877 * modules/isnanl (Files): Add lib/float+.h.
35878 * modules/vasnprintf (Files): Add lib/float+.h.
35880 2007-03-24 Bruno Haible <bruno@clisp.org>
35882 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35883 include isnanl-nolibm.h.
35885 2007-03-24 Bruno Haible <bruno@clisp.org>
35887 * tests/test-read-file.c (main): Don't produce spurious output for
35888 expected situations. Make the test fail if it encountered unexpected
35891 2007-03-24 Bruno Haible <bruno@clisp.org>
35893 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35894 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35896 2007-03-24 Bruno Haible <bruno@clisp.org>
35898 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35900 2007-03-24 Bruno Haible <bruno@clisp.org>
35902 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35903 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35905 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35906 * modules/utf8-ucs4: Turn into a symbolic link to module
35909 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35911 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35912 unistr/u8-mbtouc-unsafe.
35914 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35915 * modules/utf16-ucs4: Turn into a symbolic link to module
35918 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35920 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35921 unistr/u16-mbtouc-unsafe.
35923 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35924 * modules/ucs4-utf8: Turn into a symbolic link to module
35927 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35928 * modules/ucs4-utf16: Turn into a symbolic link to module
35931 2007-03-24 Bruno Haible <bruno@clisp.org>
35933 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35934 Enable the function only if HAVE_INLINE.
35935 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35936 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35937 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35938 Enable the function only if HAVE_INLINE.
35939 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35940 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35941 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35942 Enable the function only if HAVE_INLINE.
35943 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35944 Enable the function only if HAVE_INLINE.
35945 * modules/utf8-ucs4: Update.
35946 * modules/utf8-ucs4-unsafe: Update.
35947 * modules/utf16-ucs4: Update.
35948 * modules/utf16-ucs4-unsafe: Update.
35949 * modules/ucs4-utf8: Update.
35950 * modules/ucs4-utf16: Update.
35952 2007-03-24 Bruno Haible <bruno@clisp.org>
35954 * lib/utf8-ucs4.h: Remove file.
35955 * lib/utf8-ucs4-unsafe.h: Remove file.
35956 * lib/utf16-ucs4.h: Remove file.
35957 * lib/utf16-ucs4-unsafe.h: Remove file.
35958 * lib/ucs4-utf8.h: Remove file.
35959 * lib/ucs4-utf16.h: Remove file.
35960 * lib/unistr.h: Include their previous contents.
35961 * m4/utf-ucs4.m4: Remove file.
35962 * m4/ucs4-utf.m4: Remove file.
35963 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35964 (Depends-on): Add unistr/base.
35965 (configure.ac): Remove gl_UTF_UCS4.
35966 (Makefile.am): Update.
35967 (Include): Change to unistr.h.
35968 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35969 (Depends-on): Add unistr/base.
35970 (configure.ac): Remove gl_UTF_UCS4.
35971 (Makefile.am): Update.
35972 (Include): Change to unistr.h.
35973 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35974 (Depends-on): Add unistr/base.
35975 (configure.ac): Remove gl_UTF_UCS4.
35976 (Makefile.am): Update.
35977 (Include): Change to unistr.h.
35978 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35979 (Depends-on): Add unistr/base.
35980 (configure.ac): Remove gl_UTF_UCS4.
35981 (Makefile.am): Update.
35982 (Include): Change to unistr.h.
35983 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35984 (Depends-on): Add unistr/base.
35985 (configure.ac): Remove gl_UCS4_UTF.
35986 (Makefile.am): Update.
35987 (Include): Change to unistr.h.
35988 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35989 (Depends-on): Add unistr/base.
35990 (configure.ac): Remove gl_UCS4_UTF.
35991 (Makefile.am): Update.
35992 (Include): Change to unistr.h.
35993 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35994 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35995 utf8-ucs4-unsafe.h.
35996 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35997 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35998 utf16-ucs4-unsafe.h.
35999 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36000 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36001 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36002 * lib/unistr/u8-strchr.c: Likewise.
36003 * lib/unistr/u8-strrchr.c: Likewise.
36004 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36005 * lib/unistr/u16-strchr.c: Likewise.
36006 * lib/unistr/u16-strrchr.c: Likewise.
36007 * lib/striconveh.c: Update.
36008 * lib/linebreak.c: Update.
36010 2007-03-24 Bruno Haible <bruno@clisp.org>
36012 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36013 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36015 2007-03-22 Bruno Haible <bruno@clisp.org>
36017 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36019 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
36021 * MODULES.html.sh (File system functions): New module write-any-file.
36022 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36023 * m4/write-any-file.m4: New files.
36025 2007-03-23 Eric Blake <ebb9@byu.net>
36027 * gnulib-tool: Rearrange space-tab sequences, since some editors
36030 2007-03-23 Eric Blake <ebb9@byu.net>
36032 * lib/version-etc.c (version_etc_va): Update license wording to
36033 be more concise. Recommended by Richard Stallman.
36035 2007-03-22 Bruno Haible <bruno@clisp.org>
36037 * lib/poll.c (MSG_PEEK): New fallback definition.
36039 2007-03-22 Bruno Haible <bruno@clisp.org>
36041 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36042 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36044 Fixes a compilation error on BeOS.
36046 2007-03-22 Bruno Haible <bruno@clisp.org>
36048 * modules/frexpl-tests: New file.
36049 * tests/test-frexpl.c: New file.
36051 * modules/frexpl: New file.
36052 * m4/frexpl.m4: New file.
36053 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36054 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36055 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36056 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36057 (Depends-on): Add frexpl. Remove isnanl-nolibm.
36058 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36060 2007-03-22 Bruno Haible <bruno@clisp.org>
36062 * lib/frexpl.c: Share code with lib/frexp.c.
36063 * modules/mathl (Files): Add lib/frexp.c.
36064 (Depends-on): Add isnanl-nolibm.
36066 2007-03-22 Bruno Haible <bruno@clisp.org>
36068 * modules/printf-frexp (Files): Add m4/frexp.m4.
36069 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36070 only if the found frexp function actually works.
36072 2007-03-22 Bruno Haible <bruno@clisp.org>
36074 * lib/frexp.c: Remove older implementation that uses divisions.
36076 2007-03-21 Bruno Haible <bruno@clisp.org>
36078 * modules/frexp-tests: New file.
36079 * tests/test-frexp.c: New file.
36081 * modules/frexp: New file.
36082 * lib/frexp.c: New file.
36083 * m4/frexp.m4: New file.
36084 * lib/math_.h (frexp): New declaration.
36085 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36087 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36089 2007-03-21 Bruno Haible <bruno@clisp.org>
36091 * modules/isnanl-tests: New file.
36092 * tests/test-isnanl.c: New file.
36094 * modules/isnanl: New file.
36095 * lib/isnanl.h: New file.
36096 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36097 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36098 gl_FUNC_ISNANL_WORKS.
36099 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36102 2007-03-21 Bruno Haible <bruno@clisp.org>
36104 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36107 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36108 * lib/vasnprintf.c: Update.
36109 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36110 tests/test-isnanl.h, remove tests/test-isnanl.c.
36111 (Makefile.am): Update.
36112 * tests/test-isnanl-nolibm.c: New file.
36113 * tests/test-isnanl.h: New file.
36114 * tests/test-isnanl.c: Remove file.
36116 2007-03-21 Jim Meyering <jim@meyering.net>
36118 When trying to open ".", treat ESTALE like EACCES.
36119 * lib/savewd.c (savewd_save): Resort to forking not just upon
36120 failure with EACCES, but also when errno is ESTALE.
36122 2007-03-20 Bruno Haible <bruno@clisp.org>
36124 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36125 Needed on AIX 5.1. Reported by Matthew Woehlke.
36127 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36129 Suggestions by Bruno Haible:
36130 * lib/acl-internal.h: Include "gettext.h" rather than rolling
36132 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36133 * modules/acl (Depends-on): Add gettext.
36135 2007-03-19 Bruno Haible <bruno@clisp.org>
36137 * modules/iconvme: Remove file.
36138 * lib/iconvme.h: Remove file.
36139 * lib/iconvme.c: Remove file.
36140 * m4/iconvme.m4: Remove file.
36142 2007-03-19 Bruno Haible <bruno@clisp.org>
36144 * doc/relocatable-maint.texi: Break long shell script line.
36145 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36147 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36149 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36150 handle file_has_acl.
36151 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36152 * lib/acl.c: Move header inclusions and related macro defns into
36153 lib/acl-internal.h.
36154 (S_ISLNK): Remove defn, since that's now done for us.
36155 (file_has_acl): Move to lib/file-has-acl.c.
36156 Call acl_trivial if available. This is the crucial part of the fix.
36157 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
36158 shared within the library. Rewrite a bit, partly to make it compatible
36159 with the GNU coding style.
36160 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36161 Remove unnecessary double-quotes.
36162 Don't test for acl_to_text; the build will catch that.
36163 Replace acl_entries if it doesn't exist and it is needed.
36164 Check for -lsec and acl_trivial (as used on Solaris 10).
36165 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36166 lib/file-has-acl.c.
36167 (Depends-on): Add sys_stat, for S_ISLNK.
36169 2007-03-19 Ben Pfaff <blp@gnu.org>
36171 * doc/gnulib.texi: Fix typos.
36172 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36174 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36176 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36177 If size is zero here, buf must be zero.
36179 2007-03-19 Simon Josefsson <simon@josefsson.org>
36181 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
36184 2007-03-18 Bruno Haible <bruno@clisp.org>
36186 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36187 Suggested by Eric Blake.
36189 2007-03-18 Ben Pfaff <blp@gnu.org>
36191 * doc/relocatable.texi: Recommend using as prefix a directory
36192 that does not exist and will never be created. Based on
36193 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36196 2007-03-17 Bruno Haible <bruno@clisp.org>
36198 * lib/fchownat.c: Include lchown.h.
36200 2007-03-17 Bruno Haible <bruno@clisp.org>
36202 Fix endless loop when the given allocated size was > INT_MAX.
36203 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36204 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36205 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36206 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36207 * lib/sprintf.c (sprintf): Likewise.
36209 2007-03-17 Bruno Haible <bruno@clisp.org>
36211 * tests/test-argp-2.sh (func_compare): Output a context diff.
36213 2007-03-17 Bruno Haible <bruno@clisp.org>
36215 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36216 locale's decimal-point character.
36218 2007-03-17 Bruno Haible <bruno@clisp.org>
36220 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36221 before comparing it. Needed because on some platforms (e.g. x86) a
36222 'long double' occupies less bytes than sizeof (long double).
36224 2007-03-17 Bruno Haible <bruno@clisp.org>
36226 * tests/test-crc.c (main): Make printf statements 64-bit clean.
36227 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36228 * tests/test-getaddrinfo.c (simple): Likewise.
36229 * tests/test-read-file.c (main): Likewise.
36231 2007-03-17 Bruno Haible <bruno@clisp.org>
36233 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36235 2007-03-17 Bruno Haible <bruno@clisp.org>
36237 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36240 2007-03-17 Bruno Haible <bruno@clisp.org>
36242 * tests/test-c-strcasecmp.c: Include c-strcase.h.
36243 * tests/test-c-strncasecmp.c: Likewise.
36245 2007-03-17 Bruno Haible <bruno@clisp.org>
36247 * modules/stdlib (Depends-on): Add unistd.
36248 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36249 Needed for MacOS X 10.3.
36251 2007-03-17 Bruno Haible <bruno@clisp.org>
36253 * lib/unistr/u-strdup.h: Include <stdlib.h>.
36255 2007-03-17 Bruno Haible <bruno@clisp.org>
36257 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36259 2007-03-17 Bruno Haible <bruno@clisp.org>
36261 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36262 to reflect files copied from gnulib (with or without modifications).
36263 Suggested by Jim Meyering.
36265 2007-03-17 Eric Blake <ebb9@byu.net>
36267 * NEWS: Document stdlib change from 2007-02-18.
36269 2007-03-17 Jim Meyering <jim@meyering.net>
36271 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36272 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36273 someone uses a name containing shell meta-characters.
36274 Reported by Alfred M. Szmidt.
36276 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
36278 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
36280 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
36281 and copy gettext configuration files only if configure.ac contains
36282 a use of AM_GNU_GETTEXT_VERSION.
36284 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
36286 * build-aux/bootstrap (gnulib_name): New variable.
36287 (gnulib_tool_options): Use it.
36289 2007-03-13 Simon Josefsson <simon@josefsson.org>
36291 * tests/test-des.c: Use new namespace.
36293 2007-03-15 Bruno Haible <bruno@clisp.org>
36295 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36296 Reported by James Youngman <jay@gnu.org>.
36298 2007-03-15 Bruno Haible <bruno@clisp.org>
36300 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36301 declared prototype. Needed with cc on OSF/1 5.1.
36303 2007-03-15 Bruno Haible <bruno@clisp.org>
36305 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36306 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36307 (struct gl_list_implementation): Add dispose_fn argument to the
36308 'create_empty', 'create' methods.
36309 (struct gl_list_impl_base): Add field 'dispose_fn'.
36310 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36312 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36313 dispose_fn argument.
36314 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36315 dispose_fn on the dropped values.
36316 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36317 dispose_fn argument.
36318 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36320 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36321 (gl_tree_remove_node): Call dispose_fn on the dropped value.
36322 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36323 (gl_tree_remove_node): Call dispose_fn on the dropped value.
36324 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36326 (gl_tree_list_free): Call dispose_fn on the dropped values.
36327 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36328 the dropped values.
36329 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36330 Add dispose_fn argument.
36331 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36332 Call dispose_fn on the dropped values.
36333 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36334 Add dispose_fn argument.
36335 (gl_sublist_create): Initialize the 'dispose_fn' field.
36336 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36337 * tests/test-array_list.c (main): Update.
36338 * tests/test-carray_list.c (main): Update.
36339 * tests/test-avltree_list.c (main): Update.
36340 * tests/test-rbtree_list.c (main): Update.
36341 * tests/test-avltreehash_list.c (main): Update.
36342 * tests/test-rbtreehash_list.c (main): Update.
36343 * tests/test-linked_list.c (main): Update.
36344 * tests/test-linkedhash_list.c (main): Update.
36345 * tests/test-array_oset.c (main): Update.
36347 2007-03-15 Bruno Haible <bruno@clisp.org>
36349 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36350 (gl_oset_create_empty): Add dispose_fn argument.
36351 (struct gl_oset_implementation): Add dispose_fn argument to
36352 'create_empty' method.
36353 (struct gl_oset_impl_base): Add dispose_fn field.
36354 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36355 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36356 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36358 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36359 (gl_tree_oset_free): Call dispose_fn on the dropped values.
36360 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36362 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36364 * tests/test-array_oset.c (main): Update.
36365 * tests/test-avltree_oset.c (main): Update.
36366 * tests/test-rbtree_oset.c (main): Update.
36367 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36369 2007-03-13 Bruno Haible <bruno@clisp.org>
36371 * tests/test-stdbool.c (i): Update after last patch.
36373 2007-03-12 Bruno Haible <bruno@clisp.org>
36375 * lib/quotearg.c: Include <wctype.h> early, before the definition of
36376 the iswprint macro. Needed on Solaris 2.5.1.
36378 2007-03-12 Bruno Haible <bruno@clisp.org>
36380 * tests/test-printf-frexp.c (main): Declare x as volatile.
36382 2007-03-12 Simon Josefsson <simon@josefsson.org>
36384 * doc/gnulib.texi (Build robot for gnulib): New section.
36386 2007-03-12 Jim Meyering <jim@meyering.net>
36388 * build-aux/bootstrap: New file.
36389 * build-aux/bootstrap.conf: New file, from coreutils.
36391 2007-03-11 Bruno Haible <bruno@clisp.org>
36393 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36395 2007-03-12 Simon Josefsson <simon@josefsson.org>
36397 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36398 avoid collisions with 'des_setkey'. Reported by Bruno Haible
36399 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
36401 2007-03-11 Bruno Haible <bruno@clisp.org>
36403 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36404 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36406 2007-03-11 Bruno Haible <bruno@clisp.org>
36408 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36409 formula. Needed for SunPRO C 5.0.
36411 2007-03-11 Bruno Haible <bruno@clisp.org>
36413 * modules/long-options (Depends-on): Add getopt.
36415 2007-03-11 Bruno Haible <bruno@clisp.org>
36417 * modules/modechange (Depends-on): Add stdbool.
36419 2007-03-11 Bruno Haible <bruno@clisp.org>
36421 * modules/i-ring (Depends-on): Add stdbool.
36423 2007-03-11 Bruno Haible <bruno@clisp.org>
36425 * modules/gc-des (Depends-on): Add stdbool.
36427 2007-03-11 Bruno Haible <bruno@clisp.org>
36429 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36431 2007-03-11 Bruno Haible <bruno@clisp.org>
36433 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36435 2007-03-11 Bruno Haible <bruno@clisp.org>
36437 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36439 2007-03-11 Bruno Haible <bruno@clisp.org>
36441 * lib/vasnprintf.c (sprintf): Undefine.
36443 2007-03-11 Bruno Haible <bruno@clisp.org>
36445 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36446 initializers in SunPRO C and Compaq C compilers.
36448 2007-03-11 Bruno Haible <bruno@clisp.org>
36450 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36451 decrementing code ANSI C compliant.
36453 2007-03-11 Bruno Haible <bruno@clisp.org>
36455 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36456 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36458 2007-03-11 Bruno Haible <bruno@clisp.org>
36460 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36461 <stdbool.h> substitute doesn't pass.
36463 2007-03-11 Bruno Haible <bruno@clisp.org>
36465 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36467 2007-03-11 Bruno Haible <bruno@clisp.org>
36469 * gnulib-tool (func_create_megatestdir): Create also an autobuild
36470 script, for submission to autobuild.josefsson.org.
36472 2007-03-10 Bruno Haible <bruno@clisp.org>
36474 * modules/canonicalize-lgpl-tests: New file.
36475 * tests/test-canonicalize-lgpl.sh: New file.
36476 * tests/test-canonicalize-lgpl.c: New file.
36478 * modules/c-strcase-tests: New file.
36479 * tests/test-c-strcase.sh: New file.
36480 * tests/test-c-strcasecmp.c: New file.
36481 * tests/test-c-strncasecmp.c: New file.
36483 * modules/atexit-tests: New file.
36484 * tests/test-atexit.sh: New file.
36485 * tests/test-atexit.c: New file.
36487 2007-03-10 Bruno Haible <bruno@clisp.org>
36489 * tests/test-binary-io.sh: Use temporary filenames that are not so
36490 likely to clash with those of other tests (in a parallel make).
36491 * tests/test-binary-io.c: Likewise.
36493 2007-03-10 Bruno Haible <bruno@clisp.org>
36495 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36496 fallback; use #error instead.
36497 Suggested by Simon Josefsson.
36499 2007-03-10 Bruno Haible <bruno@clisp.org>
36501 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36502 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36503 first and the last.
36505 2007-03-10 Bruno Haible <bruno@clisp.org>
36507 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36509 2007-03-10 Bruno Haible <bruno@clisp.org>
36511 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36513 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36514 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36515 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36517 2007-03-10 Bruno Haible <bruno@clisp.org>
36519 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36521 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36524 2007-03-09 Eric Blake <ebb9@byu.net>
36525 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
36527 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36528 types are not being provided by gnulib.
36529 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36530 types are supported.
36532 2007-03-10 Bruno Haible <bruno@clisp.org>
36534 * lib/stdio_.h (__attribute__): New macro.
36535 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36536 vsprintf): Specify __attribute__ __format__ for GCC.
36537 Suggested by Eric Blake.
36539 2007-03-09 Bruno Haible <bruno@clisp.org>
36541 * modules/printf-posix-tests: New file.
36542 * tests/test-printf-posix.sh: New file.
36543 * tests/test-printf-posix.c: New file.
36545 * modules/printf-posix: New file.
36546 * lib/printf.c: New file.
36547 * m4/printf-posix-rpl.m4: New file.
36548 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36550 * lib/stdio_.h (printf): New declaration.
36551 (format, __format__, ____printf____, ____scanf____, ____strftime____,
36552 ____strfmon____): New macros.
36553 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36556 2007-03-09 Bruno Haible <bruno@clisp.org>
36558 * tests/test-vasnprintf-posix2.sh: New file.
36559 * tests/test-vasnprintf-posix2.c: New file.
36560 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36561 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36562 (Makefile.am): Activate test-vasnprintf-posix2.sh.
36564 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36565 a locale dependent decimal point, rather than always '.'.
36567 2007-03-09 Eric Blake <ebb9@byu.net>
36569 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36570 spite of platforms like Tandem/NSK that define it to -1.
36572 2007-03-08 Bruno Haible <bruno@clisp.org>
36574 * modules/vprintf-posix-tests: New file.
36575 * tests/test-vprintf-posix.sh: New file.
36576 * tests/test-vprintf-posix.c: New file.
36577 * tests/test-printf-posix.h: New file.
36579 * modules/vprintf-posix: New file.
36580 * lib/vprintf.c: New file.
36581 * m4/vprintf-posix.m4: New file.
36582 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36584 * lib/stdio_.h (vprintf): New declaration.
36585 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36588 2007-03-08 Bruno Haible <bruno@clisp.org>
36590 * modules/fprintf-posix-tests: New file.
36591 * tests/test-fprintf-posix.sh: New file.
36592 * tests/test-fprintf-posix.c: New file.
36594 * modules/fprintf-posix: New file.
36595 * lib/fprintf.c: New file.
36596 * m4/fprintf-posix.m4: New file.
36597 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36599 * lib/stdio_.h (fprintf): New declaration.
36600 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36603 2007-03-08 Bruno Haible <bruno@clisp.org>
36605 * modules/vfprintf-posix-tests: New file.
36606 * tests/test-vfprintf-posix.sh: New file.
36607 * tests/test-vfprintf-posix.c: New file.
36608 * tests/test-fprintf-posix.h: New file.
36609 * tests/test-fprintf-posix.out: New file.
36611 * modules/vfprintf-posix: New file.
36612 * lib/vfprintf.c: New file.
36613 * m4/vfprintf-posix.m4: New file.
36614 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36616 * lib/stdio_.h (vfprintf): New declaration.
36617 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36620 2007-03-08 Bruno Haible <bruno@clisp.org>
36622 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36624 2007-03-08 Bruno Haible <bruno@clisp.org>
36626 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36627 instead of 'expr' invocations.
36628 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36629 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36630 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36631 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36632 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36633 Suggested by Paul Eggert.
36635 2007-03-08 Bruno Haible <bruno@clisp.org>
36637 * modules/fseterr-tests: New file.
36638 * tests/test-fseterr.c: New file.
36640 * modules/fseterr: New file.
36641 * lib/fseterr.h: New file.
36642 * lib/fseterr.c: New file.
36644 2007-03-08 Bruno Haible <bruno@clisp.org>
36646 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36647 * lib/getopt_.h: Likewise.
36648 * lib/mbswidth.h: Likewise.
36649 * lib/setenv.h: Likewise.
36650 * lib/vasnprintf.h: Likewise.
36651 * lib/vasprintf.h: Likewise.
36652 * lib/verror.h: Likewise.
36653 * lib/xsetenv.h: Likewise.
36654 * lib/xvasprintf.h: Likewise.
36656 2007-03-08 Jim Meyering <jim@meyering.net>
36658 * users.txt: Add parted.
36660 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36662 2007-03-07 Bruno Haible <bruno@clisp.org>
36664 * m4/printf.m4: Make the shell script snippets copy&pastable.
36666 2007-03-02 Bruno Haible <bruno@clisp.org>
36668 * lib/netinet_in_.h: New file.
36669 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36670 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36671 * modules/netinet_in (Files): Add lib/netinet_in_.h.
36672 (Depends-on): Add absolute-header.
36673 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36676 2007-03-03 Bruno Haible <bruno@clisp.org>
36678 * lib/sys_select_.h: New file.
36679 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36680 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36681 * modules/sys_select (Files): Add lib/sys_select_.h.
36682 (Depends-on): Add absolute-header.
36683 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36686 2007-03-02 Bruno Haible <bruno@clisp.org>
36688 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36689 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36691 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36692 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36693 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36694 * modules/sys_socket (Depends-on): Add absolute-header.
36695 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36696 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36697 (Include): Remove requirement of inclusion of <sys/types.h>.
36699 2007-03-02 Bruno Haible <bruno@clisp.org>
36701 * lib/byteswap_.h (bswap_32): Fix formula.
36703 2007-03-06 Bruno Haible <bruno@clisp.org>
36705 * modules/sprintf-posix-tests: New file.
36706 * tests/test-sprintf-posix.c: New file.
36708 * modules/sprintf-posix: New file.
36709 * lib/sprintf.c: New file.
36710 * m4/sprintf-posix.m4: New file.
36711 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36713 * lib/stdio_.h (sprintf): New declaration.
36714 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36717 2007-03-06 Bruno Haible <bruno@clisp.org>
36719 * modules/vsprintf-posix-tests: New file.
36720 * tests/test-vsprintf-posix.c: New file.
36721 * tests/test-sprintf-posix.h: New file.
36723 * modules/vsprintf-posix: New file.
36724 * lib/vsprintf.c: New file.
36725 * m4/vsprintf-posix.m4: New file.
36726 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36728 * lib/stdio_.h (vsprintf): New declaration.
36729 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36732 2007-03-06 Bruno Haible <bruno@clisp.org>
36734 * modules/vsnprintf (Depend-on): Remove minmax.
36736 2007-03-06 Bruno Haible <bruno@clisp.org>
36738 * modules/snprintf-posix-tests: New file.
36739 * tests/test-snprintf-posix.c: New file.
36741 * modules/snprintf-posix: New file.
36742 * m4/snprintf-posix.m4: New file.
36743 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36745 (gl_FUNC_SNPRINTF): Invoke it.
36746 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36747 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36749 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36751 2007-03-06 Bruno Haible <bruno@clisp.org>
36753 * modules/vsnprintf-posix-tests: New file.
36754 * tests/test-vsnprintf-posix.c: New file.
36755 * tests/test-snprintf-posix.h: New file.
36757 * modules/vsnprintf-posix: New file.
36758 * m4/vsnprintf-posix.m4: New file.
36759 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36761 (gl_FUNC_VSNPRINTF): Invoke it.
36762 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36763 * lib/stdio_.h (vsnprintf): Define as a replacement if
36764 REPLACE_VSNPRINTF is set.
36765 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36767 2007-03-06 Bruno Haible <bruno@clisp.org>
36769 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36770 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36772 2007-03-06 Bruno Haible <bruno@clisp.org>
36774 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36775 (asinl): Declare also if HAVE_DECL_ASINL is set.
36776 (atanl): Declare also if HAVE_DECL_ATANL is set.
36777 (ceill): Declare also if HAVE_DECL_CEILL is set.
36778 (cosl): Declare also if HAVE_DECL_COSL is set.
36779 (expl): Declare also if HAVE_DECL_EXPL is set.
36780 (floorl): Declare also if HAVE_DECL_FLOORL is set.
36781 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36782 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36783 (logl): Declare also if HAVE_DECL_LOGL is set.
36784 (sinl): Declare also if HAVE_DECL_SINL is set.
36785 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36786 (tanl): Declare also if HAVE_DECL_TANL is set.
36787 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36788 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36789 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36790 declaration of frexpl, ldexpl.
36791 * modules/printf-frexpl (Depends-on): Add math.
36792 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36794 2007-03-05 Bruno Haible <bruno@clisp.org>
36796 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36797 frexpl and ldexpl are declared.
36798 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36800 2007-03-05 Bruno Haible <bruno@clisp.org>
36802 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36803 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36805 2007-03-05 Bruno Haible <bruno@clisp.org>
36807 * lib/stdio_.h: Include <stddef.h>.
36809 2007-03-05 Bruno Haible <bruno@clisp.org>
36811 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36813 2007-03-05 Bruno Haible <bruno@clisp.org>
36815 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36816 NetBSD 4, from Ralf Wildenhues.
36818 2007-03-04 Bruno Haible <bruno@clisp.org>
36820 * lib/vasprintf.h: Update #if logic for the case when the functions
36821 exist but are overridden.
36823 2007-03-04 Bruno Haible <bruno@clisp.org>
36825 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36826 implementations: glibc-2.4 and MacOS X 10.3.
36827 * tests/test-vasnprintf-posix.c (test_function): Test also the case
36828 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36829 * tests/test-vasprintf-posix.c (test_function): Likewise.
36831 2007-03-04 Bruno Haible <bruno@clisp.org>
36833 * modules/vasprintf-posix-tests: New file.
36834 * tests/test-vasprintf-posix.c: New file.
36836 * modules/vasprintf-posix: New file.
36837 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36839 * m4/vasprintf-posix.m4: New file.
36840 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36842 (gl_FUNC_VASPRINTF): Invoke it.
36843 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36845 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36847 2007-03-04 Bruno Haible <bruno@clisp.org>
36849 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36850 REPLACE_GETTIMEOFDAY.
36851 * modules/sys_time (Makefile.am): Likewise.
36852 * m4/sys_time_h.m4: Likewise.
36853 * m4/gettimeofday.m4: Likewise.
36855 2007-03-04 Bruno Haible <bruno@clisp.org>
36857 * modules/vasnprintf-posix-tests: New file.
36858 * tests/test-vasnprintf-posix.c: New file.
36860 * modules/vasnprintf-posix: New file.
36861 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36863 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36864 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36865 REPLACE_VASNPRINTF is defined.
36866 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36867 gl_FUNC_VASNPRINTF.
36868 (gl_FUNC_VASNPRINTF): Invoke it.
36869 * m4/vasnprintf-posix.m4: New file.
36870 * m4/printf.m4: New file.
36872 2007-03-04 Bruno Haible <bruno@clisp.org>
36874 Compile progreloc.c only if --enable-relocatable is specified.
36875 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36876 if --enable-relocatable was specified.
36877 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36880 2007-03-04 Jim Meyering <jim@meyering.net>
36882 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36883 Use it consistently, rather than enumerating errno constants.
36885 2007-03-04 Bruno Haible <bruno@clisp.org>
36887 * modules/xvasprintf-tests: New file.
36888 * tests/test-xvasprintf.c: New file.
36890 * modules/vasprintf-tests: New file.
36891 * tests/test-vasprintf.c: New file.
36893 * modules/vasnprintf-tests: New file.
36894 * tests/test-vasnprintf.c: New file.
36896 * modules/vsnprintf-tests: New file.
36897 * tests/test-vsnprintf.c: New file.
36899 * modules/snprintf-tests: New file.
36900 * tests/test-snprintf.c: New file.
36902 2007-03-04 Bruno Haible <bruno@clisp.org>
36904 Compile relocatable.c only if --enable-relocatable is specified.
36905 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36906 gl_RELOCATABLE_LIBRARY.
36907 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36908 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36909 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36910 gl_RELOCATABLE_LIBRARY.
36911 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36912 (Makefile.am): Remove lib_SOURCES.
36913 * modules/relocatable-lib-lgpl (configure.ac): Invoke
36914 gl_RELOCATABLE_LIBRARY.
36915 (Makefile.am): Remove lib_SOURCES.
36916 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36918 * modules/relocatable-prog-wrapper (configure.ac): Invoke
36919 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36921 2007-03-04 Bruno Haible <bruno@clisp.org>
36923 * modules/argmatch-tests: New file.
36924 * tests/test-argmatch.c: New file.
36926 * tests/test-allocsa.c (main): Halve the number of loop runs.
36928 * modules/alloca-opt-tests: New file.
36929 * tests/test-alloca-opt.c: New file.
36931 2007-03-04 Jim Meyering <jim@meyering.net>
36933 Work around difference between Linux ACLs and Solaris 10 ZFS.
36934 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36937 2007-03-03 Bruno Haible <bruno@clisp.org>
36939 * modules/relocatable-prog (Depends-on): Add back progreloc's
36940 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36942 2007-03-03 Bruno Haible <bruno@clisp.org>
36944 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36945 * modules/relocatable-lib: New file.
36947 2007-03-03 Bruno Haible <bruno@clisp.org>
36949 * modules/relocatable-prog: Renamed from modules/relocatable.
36950 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36952 2007-03-03 Bruno Haible <bruno@clisp.org>
36954 * modules/relocatable-script (Files): Add doc/relocatable.texi,
36955 m4/relocatable-lib.m4.
36956 (Depends-on): Remove 'relocatable'.
36957 (configure.ac): Add gl_RELOCATABLE_NOP.
36959 2007-03-03 Bruno Haible <bruno@clisp.org>
36961 * modules/relocatable-prog-wrapper: New file.
36962 * modules/relocatable (Depends-on): Add it. Remove all other
36963 dependencies except progname.
36964 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36966 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36967 (gl_FUNC_STRERROR): Nop.
36968 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36970 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36971 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36973 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36974 (gl_FUNC_READLINK): Update.
36976 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36978 2007-03-03 Bruno Haible <bruno@clisp.org>
36980 * lib/xreadlink.c: Include <unistd.h> unconditionally.
36981 * modules/xreadlink (Depends-on): Add unistd.
36982 * modules/xreadlink-with-size (Depends-on): Likewise.
36984 2007-03-03 Bruno Haible <bruno@clisp.org>
36986 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36987 extracted from gt_FUNC_SETENV.
36988 (gt_FUNC_SETENV): Remove macro.
36989 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36990 remove gt_FUNC_SETENV.
36992 2007-03-03 Bruno Haible <bruno@clisp.org>
36994 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36995 ENABLE_RELOCATABLE here.
36996 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36998 2007-03-03 Bruno Haible <bruno@clisp.org>
37000 * modules/rbtreehash-list-tests (Depends-on): Add progname.
37001 * tests/test-rbtreehash_list.c: Include progname.h.
37002 (main): Call set_program_name.
37004 * modules/rbtree-oset-tests (Depends-on): Add progname.
37005 * tests/test-rbtree_oset.c: Include progname.h.
37006 (main): Call set_program_name.
37008 * modules/rbtree-list-tests (Depends-on): Add progname.
37009 * tests/test-rbtree_list.c: Include progname.h.
37010 (main): Call set_program_name.
37012 * modules/linked-list-tests (Depends-on): Add progname.
37013 * tests/test-linked_list.c: Include progname.h.
37014 (main): Call set_program_name.
37016 2007-03-03 Bruno Haible <bruno@clisp.org>
37018 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37019 All uses of __restrict changed to _Restrict_.
37020 * lib/glob_.h (__restrict): Remove macro.
37022 2007-03-02 Bruno Haible <bruno@clisp.org>
37024 * modules/gettext (configure.ac): Require gettext infrastructure
37025 from version 0.16.1.
37027 2007-03-02 Bruno Haible <bruno@clisp.org>
37029 * modules/linkedhash-list-tests (Depends-on): Add progname.
37030 * tests/test-linkedhash_list.c: Include progname.h.
37031 (main): Call set_program_name.
37033 * modules/carray-list-tests (Depends-on): Add progname.
37034 * tests/test-carray_list.c: Include progname.h.
37035 (main): Call set_program_name.
37037 * modules/avltreehash-list-tests (Depends-on): Add progname.
37038 * tests/test-avltreehash_list.c: Include progname.h.
37039 (main): Call set_program_name.
37041 * modules/avltree-oset-tests (Depends-on): Add progname.
37042 * tests/test-avltree_oset.c: Include progname.h.
37043 (main): Call set_program_name.
37045 * modules/avltree-list-tests (Depends-on): Add progname.
37046 * tests/test-avltree_list.c: Include progname.h.
37047 (main): Call set_program_name.
37049 * modules/array-oset-tests (Depends-on): Add progname.
37050 * tests/test-array_oset.c: Include progname.h.
37051 (main): Call set_program_name.
37053 * modules/array-list-tests (Depends-on): Add progname.
37054 * tests/test-array_list.c: Include progname.h.
37055 (main): Call set_program_name.
37057 * modules/argp-tests (Depends-on): Add progname.
37058 * tests/test-argp.c: Include argp.h first. Include progname.h.
37059 (main): Call set_program_name.
37061 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
37063 * doc/gnulib-tool.texi (Initial import): Reword description of
37064 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37065 limited effect even if defined after the first system include.
37067 2007-03-01 Bruno Haible <bruno@clisp.org>
37069 * build-aux/config.libpath: Update to libtool-1.5.22.
37070 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37072 2007-03-01 Bruno Haible <bruno@clisp.org>
37074 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37076 Reported by Ralf Wildenhues.
37078 2007-03-01 Bruno Haible <bruno@clisp.org>
37080 * build-aux/install-reloc: Remove object files left over by some
37082 Reported by Ralf Wildenhues.
37084 2007-03-01 Bruno Haible <bruno@clisp.org>
37086 * build-aux/install-reloc: Break long lines.
37088 2007-03-01 Bruno Haible <bruno@clisp.org>
37090 * doc/relocatable.texi: Document that it may not work on OpenBSD.
37091 Reported by Ralf Wildenhues.
37093 2007-03-01 Bruno Haible <bruno@clisp.org>
37095 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37096 include ordering constraints.
37098 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
37100 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37101 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37102 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37103 as another example.
37104 * lib/time_.h: Fix misspelling.
37105 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37106 Require gl_HEADER_TIME_H_DEFAULTS.
37107 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37108 * m4/time_r.m4 (gl_TIME_R): Likewise.
37109 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37111 2007-03-01 Bruno Haible <bruno@clisp.org>
37113 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37114 * m4/utimens.m4 (gl_UTIMENS): Likewise.
37116 2007-03-01 Jim Meyering <jim@meyering.net>
37118 * modules/xreadlink (Maintainer): Add my name.
37119 * modules/xreadlink-with-size (Depends-on): Alphabetize.
37121 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
37122 Bruno Haible <bruno@clisp.org>
37124 * build-aux/install-reloc: Compile also c-ctype.c.
37125 * build-aux/relocatable.sh.in: New file.
37126 * doc/relocatable.texi: New file.
37127 * doc/relocatable-maint.texi: New file.
37128 * doc/gnulib.texi: Include relocatable-maint.texi.
37129 * lib/progreloc.c: Include unistd.h unconditionally.
37130 * lib/relocwrapper.c: Include unistd.h unconditionally.
37132 (add_dotbin): Use c_tolower.
37133 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37134 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37135 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37136 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37137 to m4/relocatable-lib.m4.
37138 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37139 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37140 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37141 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37142 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37143 * modules/relocatable: New file.
37144 * modules/relocatable-lib: New file.
37145 * modules/relocatable-script: New file.
37147 2007-02-28 Bruno Haible <bruno@clisp.org>
37149 Import --enable-relocatable infrastructure.
37150 * build-aux/config.libpath: New file, from GNU gettext.
37151 * build-aux/install-reloc: New file, from GNU gettext.
37152 * build-aux/reloc-ldflags: New file, from GNU gettext.
37153 * lib/relocatable.h: New file, from GNU gettext.
37154 * lib/relocatable.c: New file, from GNU gettext.
37155 * lib/relocwrapper.c: New file, from GNU gettext.
37156 * m4/relocatable.m4: New file, from GNU gettext.
37158 2007-02-28 Bruno Haible <bruno@clisp.org>
37160 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37162 * modules/xreadlink: New file, from GNU gettext with modifications.
37163 * lib/xreadlink.c: New file, from GNU gettext.
37164 * lib/xreadlink.h: Add comments.
37165 (xreadlink): New declaration.
37167 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37168 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37169 lib/xreadlink-with-size.c.
37170 (configure.ac): Remove gl_XREADLINK invocation.
37171 (Makefile.am): Augment lib_SOURCES.
37172 * m4/xreadlink.m4: Remove file.
37173 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37174 (xreadlink_with_size): Renamed from xreadink.
37175 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37176 * modules/canonicalize (Depends-on): Replace xreadlink with
37177 xreadlink-with-size.
37178 * lib/canonicalize.c (canonicalize_filename_mode): Update.
37180 2007-02-25 Jim Meyering <jim@meyering.net>
37182 * build-aux/announce-gen: When complaining about excess arguments,
37185 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
37187 * README: Document signed integer overflow situation more
37190 2007-02-25 Bruno Haible <bruno@clisp.org>
37192 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37193 'a' or 'A' conversion.
37195 2007-02-25 Bruno Haible <bruno@clisp.org>
37197 * modules/filename: Renamed from modules/pathname.
37198 (Files): Replace lib/pathname.h with lib/filename.h. Replace
37199 lib/concatpath.c with lib/concat-filename.c.
37200 (Makefile.am): Update.
37201 (Include): Replace pathname.h with filename.h.
37202 * lib/filename.h: Renamed from lib/pathname.h.
37203 (concatenated_filename): Renamed from concatenated_pathname.
37204 * lib/concat-filename.c: Renamed from lib/concatpath.c.
37205 (concatenated_filename): Renamed from concatenated_pathname.
37206 * lib/findprog.c: Include filename.h instead of pathname.h.
37207 (find_in_path): Update.
37208 * lib/javacomp.c: Include filename.h instead of pathname.h.
37209 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37210 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37211 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37212 is_oldgcj_14_13_usable, is_javac_usable): Update.
37213 * lib/javaexec.c: Include filename.h instead of pathname.h.
37214 (execute_java_class): Update.
37215 * modules/findprog: Update.
37216 * modules/javacomp: Update.
37217 * modules/javaexec: Update.
37218 * MODULES.html.sh (File system functions): Add 'filename', remove
37221 2007-02-25 Bruno Haible <bruno@clisp.org>
37223 * modules/printf-frexpl-tests: New file.
37224 * tests/test-printf-frexpl.c: New file.
37226 * modules/printf-frexpl: New file.
37227 * lib/printf-frexpl.h: New file.
37228 * lib/printf-frexpl.c: New file.
37229 * m4/printf-frexpl.m4: New file.
37231 2007-02-25 Bruno Haible <bruno@clisp.org>
37233 * modules/printf-frexp-tests: New file.
37234 * tests/test-printf-frexp.c: New file.
37236 * modules/printf-frexp: New file.
37237 * lib/printf-frexp.h: New file.
37238 * lib/printf-frexp.c: New file.
37239 * m4/printf-frexp.m4: New file.
37241 2007-02-25 Bruno Haible <bruno@clisp.org>
37243 Assume automake >= 1.10 for the tests.
37244 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37245 * modules/arctwo-tests: Likewise.
37246 * modules/argp-tests: Likewise.
37247 * modules/avltree-list-tests: Likewise.
37248 * modules/avltree-oset-tests: Likewise.
37249 * modules/avltreehash-list-tests: Likewise.
37250 * modules/carray-list-tests: Likewise.
37251 * modules/crc-tests: Likewise.
37252 * modules/des-tests: Likewise.
37253 * modules/gc-arcfour-tests: Likewise.
37254 * modules/gc-arctwo-tests: Likewise.
37255 * modules/gc-des-tests: Likewise.
37256 * modules/gc-hmac-md5-tests: Likewise.
37257 * modules/gc-hmac-sha1-tests: Likewise.
37258 * modules/gc-md2-tests: Likewise.
37259 * modules/gc-md4-tests: Likewise.
37260 * modules/gc-md5-tests: Likewise.
37261 * modules/gc-pbkdf2-sha1-tests: Likewise.
37262 * modules/gc-rijndael-tests: Likewise.
37263 * modules/gc-sha1-tests: Likewise.
37264 * modules/gc-tests: Likewise.
37265 * modules/getaddrinfo-tests: Likewise.
37266 * modules/hmac-md5-tests: Likewise.
37267 * modules/hmac-sha1-tests: Likewise.
37268 * modules/linked-list-tests: Likewise.
37269 * modules/linkedhash-list-tests: Likewise.
37270 * modules/lock-tests: Likewise.
37271 * modules/md2-tests: Likewise.
37272 * modules/md4-tests: Likewise.
37273 * modules/md5-tests: Likewise.
37274 * modules/rbtree-list-tests: Likewise.
37275 * modules/rbtree-oset-tests: Likewise.
37276 * modules/rbtreehash-list-tests: Likewise.
37277 * modules/read-file-tests: Likewise.
37278 * modules/rijndael-tests: Likewise.
37279 * modules/stdint-tests: Likewise.
37280 * modules/tls-tests: Likewise.
37282 2007-02-24 Bruno Haible <bruno@clisp.org>
37284 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37285 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37286 function; instead check whether isnan with a double argument links.
37287 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37288 function; instead check whether isnan with a 'long double' argument
37290 Reported by Eric Blake <ebb9@byu.net>.
37292 2007-02-24 Bruno Haible <bruno@clisp.org>
37294 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37296 * lib/isnanl.c: Remove all code. Just include isnan.c.
37297 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37299 2007-02-25 Jim Meyering <jim@meyering.net>
37301 Avoid conflicting types for 'unsetenv' on FreeBSD.
37302 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37303 conflicting with FreeBSD's (5.0 and 6.1) function declaration
37306 2007-02-24 Bruno Haible <bruno@clisp.org>
37308 * modules/isnanl-nolibm-tests: New file.
37309 * tests/test-isnanl.c: New file.
37311 * modules/isnanl-nolibm: New file.
37312 * lib/isnanl.h: New file.
37313 * lib/isnanl.c: New file.
37314 * m4/isnanl.m4: New file.
37316 2007-02-24 Bruno Haible <bruno@clisp.org>
37318 * modules/isnan-nolibm-tests: New file.
37319 * tests/test-isnan.c: New file.
37321 * modules/isnan-nolibm: New file.
37322 * lib/isnan.h: New file.
37323 * lib/isnan.c: New file.
37324 * m4/isnan.m4: New file.
37326 2007-02-24 Bruno Haible <bruno@clisp.org>
37328 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37329 assume that an exponent fits in 20 bits.
37331 2007-02-24 Jim Meyering <jim@meyering.net>
37333 * m4/regex.m4: Update the description of the configure-time option,
37334 --without-included-regex, to state accurately what the defaults are,
37335 and perhaps to give people an idea why using this option is risky.
37337 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
37339 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37340 loops on small arguments. This attempts to avoid the problem
37341 Bruno Haible reported for AIX 4.3.2 in
37342 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37344 2007-02-23 Bruno Haible <bruno@clisp.org>
37346 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37347 Needed for help2man.
37349 2007-02-23 Karl Berry <karl@gnu.org>
37351 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37352 exists, foo.h should be cvs-ignored, not committed.
37354 2007-02-23 Eric Blake <ebb9@byu.net>
37356 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
37357 * lib/stat-time.h (includes): Likewise.
37358 * lib/utimecmp.c (includes): Likewise.
37359 * lib/utimens.h (includes): Likewise.
37360 * lib/getdate.y (includes): Also include "timespec.h" for use
37361 internal to the module.
37362 * modules/utimens (Depends-on): Revert yesterday's patch.
37363 * modules/nanosleep (Depends-on): Add missing dependency.
37365 2007-02-22 Bruno Haible <bruno@clisp.org>
37367 * lib/glob.c: Don't include getlogin_r.h.
37369 2007-02-22 Jim Meyering <jim@meyering.net>
37371 * modules/utimens (Depends-on): Add timespec, required for
37372 utimens.h's inclusion of timespec.h.
37374 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
37376 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37377 long unreadable paths in GNU/Linux. Problem reported by Andreas
37379 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37380 I'll try to think of a better way to fix the Solaris problem.
37382 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37383 like glibc; on Solaris 10, it fails with errno == EINVAL.
37384 POSIX says the behavior is unspecified if the first argument is NULL,
37385 so play it safe and never pass NULL to the system getcwd.
37387 2007-02-21 Jim Meyering <jim@meyering.net>
37389 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37390 of gettimeofday. It would conflict with the one now always
37391 provided via sys_time_.h. Reported by Matthew Woehlke, as
37392 an IRIX 6.5 build failure.
37394 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
37396 Minor fixups to port to Solaris 10 with Sun C 5.8.
37397 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37398 * modules/getcwd (Depends-on): Add dirfd.
37399 * lib/putenv.c (putenv): #undef it.
37400 (rpl_putenv): New decl.
37401 (malloc, free): Include <stdlib.h> rather than prototyping separately.
37403 2007-02-20 Bruno Haible <bruno@clisp.org>
37405 * modules/stdio-tests: New file.
37406 * tests/test-stdio.c: New file.
37408 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37409 (Depends-on): Add stdio.
37410 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37411 (Include): Use <stdio.h> instead of vsnprintf.h.
37412 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37413 HAVE_DECL_VSNPRINTF.
37414 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37416 * modules/snprintf (Files): Remove lib/snprintf.h.
37417 (Depends-on): Add stdio.
37418 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37419 (Include): Use <stdio.h> instead of snprintf.h.
37420 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37421 HAVE_DECL_SNPRINTF.
37422 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37423 * lib/getaddrinfo.c: Likewise.
37425 * modules/stdio: New file.
37426 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37427 * lib/snprintf.h: Remove file.
37428 * lib/vsnprintf.h: Remove file.
37429 * lib/.cppi-disable: Remove snprintf.h.
37430 * m4/stdio_h.m4: New file.
37431 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37433 2007-02-20 Jim Meyering <jim@meyering.net>
37435 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37436 used by e.g., mingw. From Bruno Haible.
37438 2007-02-19 Bruno Haible <bruno@clisp.org>
37440 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37442 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37444 2007-02-19 Bruno Haible <bruno@clisp.org>
37446 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37449 2007-02-19 Bruno Haible <bruno@clisp.org>
37451 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37453 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37455 2007-02-19 Jim Meyering <jim@meyering.net>
37457 Don't use FD after a successful "fdopendir (fd)".
37458 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37459 Reset it by calling dirfd on the just-obtained DIR*.
37461 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37462 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37464 2007-02-18 Bruno Haible <bruno@clisp.org>
37466 * lib/readlink.c: Include <unistd.h>.
37467 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37469 * modules/readlink (Depends-on): Add unistd.
37470 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37471 (Include): Add <unistd.h>.
37473 * lib/getlogin_r.h: Remove file.
37474 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37475 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37476 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37477 HAVE_DECL_GETLOGIN_R.
37478 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37479 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37480 (Include): Use <unistd.h> instead of getlogin_r.h.
37482 * lib/getcwd.h: Remove file.
37483 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37484 * lib/xgetcwd.c: Likewise.
37485 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37486 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37487 * modules/getcwd (Files): Remove lib/getcwd.h.
37488 (Depends-on): Add unistd.
37489 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37490 (Include): Use <unistd.h> instad of getcwd.h.
37492 * lib/ftruncate.c: Include <unistd.h> first.
37493 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37494 Set HAVE_FTRUNCATE.
37495 * modules/ftruncate (Depends-on): Add unistd.
37496 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37498 * lib/fchdir.c: Include <unistd.h> first.
37499 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37500 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37501 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37502 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37503 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37505 * lib/dup2.c: Include <unistd.h> first.
37506 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37508 * modules/dup2 (Depends-on): Add unistd.
37509 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37511 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37512 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37513 REPLACE_CHOWN. Don't define chown as a macro here.
37514 * modules/chown (Depends-on): Add unistd.
37515 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37517 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37518 Add definition for GL_LINK_WARNING.
37519 (chown, dup2): New declarations.
37520 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37522 (ftruncate): New declaration.
37523 (getcwd): New declaration, taken from old getcwd.h.
37524 (getlogin_r): New declaration, taken from old getlogin_r.h.
37525 (readlink): New declaration.
37526 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37527 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37528 (gl_PREREQ_UNISTD): Remove macro.
37529 (gl_UNISTD_MODULE_INDICATOR): New macro.
37530 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37531 many new variables. Don't set UNISTD_H.
37532 * modules/unistd (Description): Change.
37533 (Depends-on): Add link-warning.
37534 (configure.ac): Update.
37535 (Makefile.am): Create unistd.h always. Substitute many new variables
37538 2007-02-18 Bruno Haible <bruno@clisp.org>
37540 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37541 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37543 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37544 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37545 * lib/getsubopt.h: Remove file.
37546 * modules/getsubopt (Files): Remove lib/getsubopt.h.
37547 (Depends-on): Add stdlib.
37548 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37549 (Includes): Use <stdlib.h> instead of getsubopt.h.
37550 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37551 Set HAVE_GETSUBOPT.
37552 * lib/getsubopt.c: Don't include getsubopt.h.
37554 2007-02-18 Bruno Haible <bruno@clisp.org>
37556 * modules/fchdir (Depends-on): Add dup2.
37558 2007-02-18 Bruno Haible <bruno@clisp.org>
37560 * lib/stdlib_.h: Handle glibc's special invocation convention
37563 2007-02-18 Bruno Haible <bruno@clisp.org>
37565 * modules/stdlib-tests: New file.
37566 * tests/test-stdlib.c: New file.
37568 * modules/mkstemp (Files): Remove lib/mkstemp.h.
37569 (Depends-on): Add stdlib.
37570 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37571 (Includes): Use <stdlib.h> instead of mkstemp.h.
37572 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37573 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37574 * lib/mkstemp.c: Don't include mkstemp.h.
37575 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37576 * lib/stdlib--.h: Don't include mkstemp.h.
37578 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37579 (Depends-on): Add stdlib.
37580 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37581 (Includes): Use <stdlib.h> instead of mkdtemp.h.
37582 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37584 * lib/mkdtemp.c: Don't include mkdtemp.h.
37585 * lib/clean-temp.c: Don't include mkdtemp.h.
37587 * modules/exit (Files): Remove lib/exit.h.
37588 (Depends-on): Add stdlib.
37589 (Makefile.am): Remove lib_SOURCES.
37590 (Include): Use <stdlib.h> instead of exit.h.
37591 * lib/argmatch.c: Don't include exit.h.
37592 * lib/execute.c: Likewise.
37593 * lib/pagealign_alloc.c: Likewise.
37594 * lib/pipe.c: Likewise.
37595 * lib/wait-process.c: Likewise.
37596 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37597 * lib/exitfail.c: Likewise.
37598 * lib/savewd.c: Likewise.
37599 * lib/xsetenv.c: Likewise.
37601 * modules/stdlib: New file.
37602 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37603 and extra comments about mkstemp().
37604 * lib/exit.h: Remove file.
37605 * lib/mkdtemp.h: Remove file.
37606 * lib/mkstemp.h: Remove file.
37607 * m4/stdlib_h.m4: New file.
37608 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37610 2007-02-18 Bruno Haible <bruno@clisp.org>
37612 * modules/math-tests: New file.
37613 * tests/test-math.c: New file.
37615 * modules/math: New file.
37616 * modules/mathl (Files): Remove lib/mathl.h.
37617 (Depends-on): Add math.
37618 (Makefile.am): Don't mention mathl.h.
37619 (Include): Use <math.h> instead of mathl.h.
37620 * lib/math_.h: New file.
37621 * lib/mathl.h: Remove file.
37622 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37624 * lib/asinl.c: Likewise.
37625 * lib/atanl.c: Likewise.
37626 * lib/ceill.c: Likewise.
37627 * lib/cosl.c: Likewise.
37628 * lib/expl.c: Likewise.
37629 * lib/floorl.c: Likewise.
37630 * lib/frexpl.c: Likewise.
37631 * lib/ldexpl.c: Likewise.
37632 * lib/logl.c: Likewise.
37633 * lib/sincosl.c: Likewise.
37634 * lib/sinl.c: Likewise.
37635 * lib/sqrtl.c: Likewise.
37636 * lib/tanl.c: Likewise.
37637 * lib/trigl.c: Likewise.
37638 * m4/math_h.m4: New file.
37639 * MODULES.html.sh (Mathematics): Add math.
37641 2007-02-17 Bruno Haible <bruno@clisp.org>
37643 * modules/wctype-tests: New file.
37644 * tests/test-wctype.c: New file.
37646 * modules/wchar-tests: New file.
37647 * tests/test-wchar.c: New file.
37649 * modules/unistd-tests: New file.
37650 * tests/test-unistd.c: New file.
37652 * modules/time-tests: New file.
37653 * tests/test-time.c: New file.
37655 * modules/sysexits-tests: New file.
37656 * tests/test-sysexits.c: New file.
37658 * modules/sys_time-tests: New file.
37659 * tests/test-sys_time.c: New file.
37661 * modules/sys_stat-tests: New file.
37662 * tests/test-sys_stat.c: New file.
37664 * modules/sys_socket-tests: New file.
37665 * tests/test-sys_socket.c: New file.
37667 * modules/sys_select-tests: New file.
37668 * tests/test-sys_select.c: New file.
37670 * modules/string-tests: New file.
37671 * tests/test-string.c: New file.
37673 * modules/stdbool-tests: New file.
37674 * tests/test-stdbool.c: New file.
37676 * modules/netinet_in-tests: New file.
37677 * tests/test-netinet_in.c: New file.
37679 * modules/inttypes-tests: New file.
37680 * tests/test-inttypes.c: New file.
37682 * modules/fcntl-tests: New file.
37683 * tests/test-fcntl.c: New file.
37685 * modules/byteswap-tests: New file.
37686 * tests/test-byteswap.c: New file.
37688 * modules/arpa_inet-tests: New file.
37689 * tests/test-arpa_inet.c: New file.
37691 2007-02-17 Bruno Haible <bruno@clisp.org>
37693 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37694 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37695 if the corresponding module is not enabled. Emit link warnings if
37696 the function is used nevertheless.
37697 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37698 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37699 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37700 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37701 * modules/inttypes (Depends-on): Add link-warning.
37702 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37703 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37704 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37705 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37706 * modules/imaxdiv (configure.ac): Likewise.
37707 * modules/strtoimax (configure.ac): Likewise.
37708 * modules/strtoumax (configure.ac): Likewise.
37710 2007-02-17 Bruno Haible <bruno@clisp.org>
37712 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37713 gl_STRING_MODULE_INDICATOR_DEFAULTS.
37714 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37715 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37717 2007-02-17 Bruno Haible <bruno@clisp.org>
37719 * modules/link-warning: New file.
37720 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37721 * lib/string_.h (GL_LINK_WARNING): Remove definition.
37722 * modules/string (Depends-on): Add link-warning.
37723 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37725 * MODULES.html.sh (Support for building libraries and executables): Add
37728 2007-02-17 Bruno Haible <bruno@clisp.org>
37730 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37731 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37732 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37735 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
37736 Bruno Haible <bruno@clisp.org>
37738 * modules/tmpfile: New file.
37739 * lib/tmpfile.c: New file.
37740 * m4/tmpfile.m4: New file.
37741 * MODULES.html.sh (func_all_modules): New section "Input/output".
37743 2007-02-15 Bruno Haible <bruno@clisp.org>
37745 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37746 (supports_delete_on_close): New function.
37747 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37749 2007-02-14 Bruno Haible <bruno@clisp.org>
37751 * modules/mbspcasecmp-tests: New file.
37752 * tests/test-mbspcasecmp.sh: New file.
37753 * tests/test-mbspcasecmp.c: New file.
37755 New module mbspcasecmp.
37756 * modules/mbspcasecmp: New file.
37757 * lib/mbspcasecmp.c: New file.
37758 * lib/string_.h (strncasecmp): Change warning message.
37759 (mbspcasecmp): New declaration.
37760 * m4/mbspcasecmp.m4: New file.
37761 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37762 GNULIB_MBSPCASECMP.
37763 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37764 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37766 2007-02-14 Bruno Haible <bruno@clisp.org>
37768 * modules/mbsncasecmp-tests: New file.
37769 * tests/test-mbsncasecmp.sh: New file.
37770 * tests/test-mbsncasecmp.c: New file.
37772 New module mbsncasecmp.
37773 * modules/mbsncasecmp: New file.
37774 * lib/mbsncasecmp.c: New file.
37775 * lib/string_.h (mbsncasecmp): New declaration.
37776 * m4/mbsncasecmp.m4: New file.
37777 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37778 GNULIB_MBSNCASECMP.
37779 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37780 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37782 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
37784 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37785 Verify that it doesn't overlap with our flags.
37786 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37787 do not have the desired effect in multibyte locales; instead, use
37789 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37790 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
37791 we don't require GNU fnmatch ourselves (if our users require it, they
37792 should do so explicitly).
37794 Fix regex code so it doesn't rely on strcasecmp.
37795 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37796 Otherwise, include gnulib's langinfo.h.
37797 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37798 undesirable behavior in non-C locales. Instead, rely on localecharset.
37799 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37800 * modules/regex (FILES): Remove m4/codeset.m4.
37801 (Depends-on): Add localcharset. Remove strcase.
37803 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37805 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37806 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37808 2007-02-13 Bruno Haible <bruno@clisp.org>
37810 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37811 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37813 2007-02-12 Bruno Haible <bruno@clisp.org>
37815 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37816 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37817 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37818 time warning rather than a link error.
37820 2007-02-12 Bruno Haible <bruno@clisp.org>
37822 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37823 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37824 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37826 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37828 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37831 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37833 New module 'time', so that apps can include <time.h> as per
37834 POSIX and GNU instead of separate include files like time_r.h
37835 and timegm.h. This implementation tries out a simpler approach
37836 for replacing decls in standard include files (as compared to
37837 the string module), somewhat as an experiment.
37839 * config/srclist.txt: Comment out mktime.c for now.
37840 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37841 since it doesn't apply any more. Use generic wording instead.
37842 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37844 * lib/time_.h, m4/time_h.m4, modules/time: New files.
37845 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37846 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37847 Don't include <sys/types.h>; no longer needed since we assume C89.
37848 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37849 * lib/strftime.c: Likewise.
37850 * lib/time_r.c: Likewise.
37851 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37852 * lib/nanosleep.c: Include <time.h> first, to check interface.
37853 * lib/strptime.c: Likewise.
37854 * lib/time_r.c: Likewise.
37855 * lib/timegm.c: Likewise.
37856 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37858 * lib/timegm.c: Don't include timegm.h; no longer needed.
37859 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37860 time.h now handles any problems in that area.
37861 (struct timespec, nanosleep): Remove; time.h now arranges for these.
37862 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37863 that time.h defines struct timespec.
37864 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37865 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
37867 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37868 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37869 needed. Set REPLACE_LOCALTIME.
37870 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37871 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37872 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37873 nanosleep; time_h.m4 now does that. Don't require
37874 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37875 module handles this now.
37876 * modules/getdate (Depends-on): Remove timespec. Add time.
37877 * modules/nanosleep (Depends-on): Likewise.
37878 * modules/stat-time (Depends-on): Likewise.
37879 * modules/nanosleep (Include): Include time.h, not timespec.h.
37880 * modules/strptime (Files): Remove lib/strptime.h.
37881 (Depends-on): Add extensions, time.
37882 (Include): Include time.h, not strptime.h.
37883 * modules/time_r (Files): Remove lib/time_r.h.
37884 (Depends-on): Add time.
37885 (Include): Include time.h, not time_r.h.
37886 * modules/timegm: Likewise.
37887 * modules/timespec (Description): Now does timespec-related decls
37888 of our own, instead of struct timespec itself.
37889 (Depends-on): Add time; remove extensions.
37890 (Maintainer): Add self.
37891 * modules/utimecmp (Depends-on): Add time; remove timespec.
37892 * modules/utimens (Depends-on): Likewise.
37893 * modules/xnanosleep (Depends-on): Likewise.
37895 2007-02-11 Bruno Haible <bruno@clisp.org>
37897 * lib/c-strstr.c: Include allocsa.h.
37898 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37899 * lib/c-strcasestr.c: Include allocsa.h.
37900 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37901 * lib/strcasestr.c: Include allocsa.h.
37902 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37903 * lib/mbsstr.c: Include allocsa.h.
37904 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37905 allocsa/freesa instead of malloc/free.
37906 * lib/mbscasestr.c: Include allocsa.h.
37907 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37908 allocsa/freesa instead of malloc/free.
37909 * modules/c-strstr (Depends-on): Add allocsa.
37910 * modules/c-strcasestr (Depends-on): Likewise.
37911 * modules/strcasestr (Depends-on): Likewise.
37912 * modules/mbsstr (Depends-on): Likewise.
37913 * modules/mbscasestr (Depends-on): Likewise.
37915 2007-02-11 Bruno Haible <bruno@clisp.org>
37917 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37919 * modules/mbsspn-tests: New file.
37920 * tests/test-mbsspn.sh: New file.
37921 * tests/test-mbsspn.c: New file.
37923 2007-02-11 Bruno Haible <bruno@clisp.org>
37925 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37927 * modules/mbspbrk-tests: New file.
37928 * tests/test-mbspbrk.sh: New file.
37929 * tests/test-mbspbrk.c: New file.
37931 2007-02-11 Bruno Haible <bruno@clisp.org>
37933 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37936 * modules/mbscspn-tests: New file.
37937 * tests/test-mbscspn.sh: New file.
37938 * tests/test-mbscspn.c: New file.
37940 2007-02-11 Bruno Haible <bruno@clisp.org>
37942 * modules/mbscasecmp-tests: New file.
37943 * tests/test-mbscasecmp.sh: New file.
37944 * tests/test-mbscasecmp.c: New file.
37946 2007-02-11 Bruno Haible <bruno@clisp.org>
37948 Ensure O(n) worst-case complexity of mbscasestr.
37949 * lib/mbscasestr.c: Include stdbool.h.
37950 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37952 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37953 the bookkeeping indicates that it's worth it.
37954 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37956 * modules/mbscasestr-tests: New file.
37957 * tests/test-mbscasestr1.c: New file.
37958 * tests/test-mbscasestr2.sh: New file.
37959 * tests/test-mbscasestr2.c: New file.
37960 * tests/test-mbscasestr3.sh: New file.
37961 * tests/test-mbscasestr3.c: New file.
37962 * tests/test-mbscasestr4.sh: New file.
37963 * tests/test-mbscasestr4.c: New file.
37964 * m4/locale-tr.m4: New file.
37966 2007-02-11 Bruno Haible <bruno@clisp.org>
37968 Ensure O(n) worst-case complexity of mbsstr.
37969 * lib/mbsstr.c: Include stdbool.h.
37970 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37972 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37973 bookkeeping indicates that it's worth it.
37974 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37976 * modules/mbsstr-tests: New file.
37977 * tests/test-mbsstr1.c: New file.
37978 * tests/test-mbsstr2.sh: New file.
37979 * tests/test-mbsstr2.c: New file.
37980 * tests/test-mbsstr3.sh: New file.
37981 * tests/test-mbsstr3.c: New file.
37982 * m4/locale-fr.m4: New file.
37984 2007-02-11 Bruno Haible <bruno@clisp.org>
37986 * lib/mbsrchr.c (mbsrchr): Fix bug.
37988 * modules/mbsrchr-tests: New file.
37989 * tests/test-mbsrchr.sh: New file.
37990 * tests/test-mbsrchr.c: New file.
37992 2007-02-11 Bruno Haible <bruno@clisp.org>
37994 * lib/mbschr.c (mbschr): Fix bug.
37996 * modules/mbschr-tests: New file.
37997 * tests/test-mbschr.sh: New file.
37998 * tests/test-mbschr.c: New file.
37999 * m4/locale-zh.m4: New file.
38001 2007-02-11 Bruno Haible <bruno@clisp.org>
38003 Support for copying multibyte string iterators.
38004 * lib/mbiter.h: Include <string.h>.
38005 (mbiter_multi_copy): New function.
38006 (mbi_copy): New macro.
38007 * lib/mbuiter.h: Include <string.h>.
38008 (mbuiter_multi_copy): New function.
38009 (mbui_copy): New macro.
38011 2007-02-11 Bruno Haible <bruno@clisp.org>
38014 * modules/mbslen: New file.
38015 * lib/mbslen.c: New file.
38016 * lib/string_.h (mbslen): New declaration.
38017 * m4/mbslen.m4: New file.
38018 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38020 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38021 * MODULES.html.sh (Internationalization functions): Add mbslen.
38023 2007-02-11 Bruno Haible <bruno@clisp.org>
38025 Ensure O(n) worst-case complexity of strcasestr substitute.
38026 * lib/strcasestr.c: Include stdbool.h.
38027 (knuth_morris_pratt): New function.
38028 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38029 bookkeeping indicates that it's worth it.
38030 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38032 * modules/strcasestr-tests: New file.
38033 * tests/test-strcasestr.c: New file.
38035 2007-02-11 Bruno Haible <bruno@clisp.org>
38037 Ensure O(n) worst-case complexity of c_strcasestr.
38038 * lib/c-strcasestr.c: Include stdbool.h, string.h.
38039 (knuth_morris_pratt): New function.
38040 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38041 the bookkeeping indicates that it's worth it.
38042 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38044 * modules/c-strcasestr-tests: New file.
38045 * tests/test-c-strcasestr.c: New file.
38047 2007-02-11 Bruno Haible <bruno@clisp.org>
38049 Ensure O(n) worst-case complexity of c_strstr.
38050 * lib/c-strstr.c: Include stdbool.h, string.h.
38051 (knuth_morris_pratt): New function.
38052 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38053 bookkeeping indicates that it's worth it.
38054 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38056 * lib/c-strstr.c: Complete rewrite for maintainability.
38058 * modules/c-strstr-tests: New file.
38059 * tests/test-c-strstr.c: New file.
38061 2007-02-11 Bruno Haible <bruno@clisp.org>
38063 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38064 5.2.1 and earlier, whereby \055 was treated just like the range
38066 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38068 2007-02-08 Bruno Haible <bruno@clisp.org>
38070 * modules/regex (Depends-on): Add stdbool.
38071 Reported by Dalibor Topic <robilad@kaffe.org>.
38073 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
38075 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38076 Prefer returning from main to exiting from it.
38077 Remove unnecessary parens after sizeof.
38079 2007-02-05 Bruno Haible <bruno@clisp.org>
38082 * modules/mbssep: New file.
38083 * lib/mbssep.c: New file.
38084 * lib/string_.h (strsep): Add a conditional link warning.
38085 (mbssep): New declaration.
38086 * m4/mbssep.m4: New file.
38087 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38089 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38090 * MODULES.html.sh (Internationalization functions): Add mbssep.
38092 2007-02-05 Bruno Haible <bruno@clisp.org>
38094 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38095 Optimize search in case of 1 delimiter.
38097 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
38099 * lib/acl.h: Include sys/types.h before sys/acl.h.
38101 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
38103 Merge upstream fix for glibc bugzilla #3957:
38105 2007-02-05 Jakub Jelinek <jakub@redhat.com>
38107 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38108 bit for RE_HAT_LISTS_NOT_NEWLINE.
38109 (build_charclass_op): Remove bogus comment.
38111 2007-02-05 Simon Josefsson <simon@josefsson.org>
38113 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38115 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
38117 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38118 * lib/memmem.c [!defined _LIBC]: Include config.h.
38120 2007-02-04 Bruno Haible <bruno@clisp.org>
38122 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38125 2007-02-04 Bruno Haible <bruno@clisp.org>
38127 New module mbstok_r.
38128 * modules/mbstok_r: New file.
38129 * lib/mbstok_r.c: New file.
38130 * lib/string_.h (strtok_r): Change argument names to match the
38131 comments. Add a conditional link warning.
38132 (mbstok_r): New declaration.
38133 * m4/mbstok_r.m4: New file.
38134 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38136 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38137 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38139 2007-02-04 Bruno Haible <bruno@clisp.org>
38142 * modules/mbsspn: New file.
38143 * lib/mbsspn.c: New file.
38144 * lib/string_.h (strspn): Add a conditional link warning.
38145 (mbsspn): New declaration.
38146 * m4/mbsspn.m4: New file.
38147 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38149 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38150 * MODULES.html.sh (Internationalization functions): Add mbsspn.
38152 2007-02-04 Bruno Haible <bruno@clisp.org>
38154 New module mbspbrk.
38155 * modules/mbspbrk: New file.
38156 * lib/mbspbrk.c: New file.
38157 * lib/string_.h (strpbrk): Add a conditional link warning.
38158 (mbspbrk): New declaration.
38159 * m4/mbspbrk.m4: New file.
38160 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38162 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38163 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38165 2007-02-04 Bruno Haible <bruno@clisp.org>
38167 New module mbscspn.
38168 * modules/mbscspn: New file.
38169 * lib/mbscspn.c: New file.
38170 * lib/string_.h (strcspn): Add a conditional link warning.
38171 (mbscspn): New declaration.
38172 * m4/mbscspn.m4: New file.
38173 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38175 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38176 * MODULES.html.sh (Internationalization functions): Add mbscspn.
38178 2007-02-04 Bruno Haible <bruno@clisp.org>
38180 New module mbscasestr, reduced goal of strcasestr.
38181 * modules/mbscasestr: New file.
38182 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38183 (mbscasestr): Renamed from strcasestr.
38184 * lib/strcasestr.c: Don't include mbuiter.h.
38185 (strcasestr): Remove support for multibyte locales.
38186 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38187 Change the conditional link warning.
38188 (mbscasestr): New declaration.
38189 * m4/mbscasestr.m4: New file.
38190 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38191 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38192 REPLACE_STRCASESTR.
38193 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38194 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38195 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38196 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38197 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38198 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38199 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38200 (Depends-on): Remove mbuiter.
38201 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38203 2007-02-04 Bruno Haible <bruno@clisp.org>
38205 Simplify handling of strncasecmp.
38206 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38207 the conditional link warning.
38208 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38209 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38210 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38211 * modules/strcase (configure.ac): Don't invoke
38212 gl_STRING_MODULE_INDICATOR.
38213 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38215 2007-02-04 Bruno Haible <bruno@clisp.org>
38217 New module mbscasecmp, reduced goal of strcasecmp.
38218 * modules/mbscasecmp: New file.
38219 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38220 (mbscasecmp): Renamed from strcasecmp.
38221 * lib/strcasecmp.c: Don't include mbuiter.h.
38222 (strcasecmp): Remove support for multibyte locales.
38223 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38224 Change the conditional link warning.
38225 (mbscasecmp): New declaration.
38226 * m4/mbscasecmp.m4: New file.
38227 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38228 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38229 REPLACE_STRCASECMP.
38230 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38231 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38233 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38234 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38235 * modules/strcase (Files): Remove m4/mbrtowc.m4.
38236 (Depends-on): Remove mbuiter.
38237 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38239 2007-02-04 Bruno Haible <bruno@clisp.org>
38241 New module mbsstr. Remove module strstr.
38242 * modules/mbsstr: New file.
38243 * modules/strstr: Remove file.
38244 * lib/mbsstr.c: Renamed from lib/strstr.c.
38245 (mbsstr): Renamed from strstr.
38246 * lib/string_.h (strstr): Remove declaration. Change the conditional
38248 (mbsstr): New declaration.
38249 * m4/mbsstr.m4: New file.
38250 * m4/strstr.m4: Remove file.
38251 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38253 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38254 Don't initialize GNULIB_STRSTR.
38255 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38256 substitute GNULIB_STRSTR and REPLACE_STRSTR.
38257 * MODULES.html.sh (Internationalization functions): Add mbsstr.
38258 (Support for systems lacking ANSI C 89): Remove strstr.
38260 2007-02-04 Bruno Haible <bruno@clisp.org>
38262 New module mbsrchr.
38263 * modules/mbsrchr: New file.
38264 * lib/mbsrchr.c: New file.
38265 * lib/string_.h (strrchr): Add a conditional link warning.
38266 (mbsrchr): New declaration.
38267 * m4/mbsrchr.m4: New file.
38268 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38270 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38271 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38273 2007-02-04 Bruno Haible <bruno@clisp.org>
38276 * modules/mbschr: New file.
38277 * lib/mbschr.c: New file.
38278 * lib/string_.h (strchr): Add a conditional link warning.
38279 (mbschr): New declaration.
38280 * m4/mbschr.m4: New file.
38281 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38283 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38284 * MODULES.html.sh (Internationalization functions): Add mbschr.
38286 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
38288 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38290 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38292 2007-02-04 Bruno Haible <bruno@clisp.org>
38294 New module description section 'configure.ac-early'.
38295 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38296 (func_get_autoconf_early_snippet): New function.
38297 (func_import, func_create_testdir): Use it. Remove special cases for
38298 modules 'extensions' and 'lock'.
38299 * modules/extensions (configure.ac-early): Require
38300 gl_USE_SYSTEM_EXTENSIONS.
38301 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38303 2007-02-04 Bruno Haible <bruno@clisp.org>
38305 Make use of gcj-4.3's -fsource and -ftarget option.
38306 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38307 and if so try the options -fsource and -ftarget.
38308 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38309 source_version, ftarget_option, target_version arguments.
38310 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38311 (is_envjavac_oldgcj_14_14_usable): Renamed from
38312 is_envjavac_gcj_14_14_usable.
38313 (is_envjavac_oldgcj_14_13_usable): Renamed from
38314 is_envjavac_gcj_14_13_usable.
38315 (is_gcj_present): Update.
38316 (is_gcj_43, is_gcj43_usable): New functions.
38317 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38318 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38319 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38320 try the options -fsource and -ftarget.
38322 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
38324 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38325 checking code. Set N = ceil (1.5 * N) rather than to a slightly
38328 2007-02-03 Jim Meyering <jim@meyering.net>
38330 Give tools a better chance to allocate space for very large buffers.
38331 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38333 Make pwd and readlink work also when run with an unreadable parent dir
38334 on systems with openat support.
38335 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38336 provided getcwd function, even when we have openat support.
38337 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38339 2007-02-02 Bruno Haible <bruno@clisp.org>
38341 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38342 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38343 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38344 portability problems if one of these functions is only used on specific
38346 Reported by Paul Eggert.
38348 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
38350 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38351 is causing more trouble than it's curing.
38352 * lib/regex_internal.h (__mempcpy): Remove.
38353 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38354 (and make the code a tad smaller to boot).
38355 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38357 2007-02-02 Jim Meyering <jim@meyering.net>
38359 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38360 section, not in the Makefile.am: one.
38362 2007-02-02 Eric Blake <ebb9@byu.net>
38364 * lib/strchrnul.c: Always include config.h first.
38366 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38367 gnulib strstr is not necessary here.
38369 2007-02-02 Simon Josefsson <simon@josefsson.org>
38371 * m4/socklen.m4: Fix typo.
38373 2007-02-02 Eric Blake <ebb9@byu.net>
38375 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38376 * modules/netinet_in (Makefile.am): Likewise.
38378 2007-02-01 Bruno Haible <bruno@clisp.org>
38380 * lib/string_.h (GL_LINK_WARNING): New macro.
38381 (strcasecmp, strstr, strcasestr): If provided by the system,
38382 conditionally define as a macro that leads to a warning instead of to
38384 (strncasecmp): Conditionally define as a macro that leads to a warning.
38386 2007-02-01 Karl Berry <karl@gnu.org>
38388 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38390 2007-02-01 Bruno Haible <bruno@clisp.org>
38392 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38395 2007-02-01 Eric Blake <ebb9@byu.net>
38397 * modules/regex (Depends-on): Revert dependence on mempcpy.
38398 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38399 module's definition of mempcpy.
38400 Reported by Paul Eggert.
38402 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
38404 * lib/string_.h: If the gnulib module XYZ is not present, undefine
38405 the symbol XYZ before redefining it. This fixes a problem with
38406 programs that don't use XYZ, when compiled on systems that define
38407 XYZ to something else.
38409 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
38411 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38412 occurs when "mkdir -m foo" creates a setgid directory that is (1)
38413 writeable to group or other and (2) is intended to have a special
38414 mode bit that is set or cleared. In such a case, the directory
38415 should be neither group- nor other-writeable until the special
38416 mode bits are right.
38418 2007-01-31 Eric Blake <ebb9@byu.net>
38420 * modules/mountlist (Depends-on): Add strstr.
38422 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38424 * modules/string (Makefile.am): Remove redundant replacement.
38425 * modules/regex (Depends-on): Add mempcpy.
38427 2007-01-31 Bruno Haible <bruno@clisp.org>
38429 New module description field 'Link'.
38430 * gnulib-tool (func_usage): Document --extract-link-directive.
38431 (sed_extract_prog): Recognize 'Link' directive.
38432 (func_get_link_directive): New function.
38433 (func_import): Show summary of link directives.
38434 Handle --extract-link-directive option.
38435 * modules/acl (Link): New section.
38436 * modules/clock-time (Link): New section.
38437 * modules/euidaccess (Link): New section.
38438 * modules/gettext (Link): New section.
38439 * modules/iconv (Link): New section.
38440 * modules/lock (Link): New section.
38441 * modules/nanosleep (Link): New section.
38442 * modules/readline (Link): New section.
38444 2007-01-27 Bruno Haible <bruno@clisp.org>
38446 Enforce the use of gnulib modules for unportable <string.h> functions.
38447 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38448 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38449 (gl_HEADER_STRING_H_BODY): Require it.
38450 * lib/string_.h: If the gnulib module XYZ is not present, redefine
38451 the symbol XYZ to one that gives a link error.
38452 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38453 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38454 * modules/mempcpy (configure.ac): Likewise.
38455 * modules/memrchr (configure.ac): Likewise.
38456 * modules/stpcpy (configure.ac): Likewise.
38457 * modules/stpncpy (configure.ac): Likewise.
38458 * modules/strcase (configure.ac): Likewise.
38459 * modules/strcasestr (configure.ac): Likewise.
38460 * modules/strchrnul (configure.ac): Likewise.
38461 * modules/strdup (configure.ac): Likewise.
38462 * modules/strndup (configure.ac): Likewise.
38463 * modules/strnlen (configure.ac): Likewise.
38464 * modules/strpbrk (configure.ac): Likewise.
38465 * modules/strsep (configure.ac): Likewise.
38466 * modules/strstr (configure.ac): Likewise.
38467 * modules/strtok_r (configure.ac): Likewise.
38469 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
38471 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38473 2007-01-30 Jim Meyering <jim@meyering.net>
38475 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38477 2007-01-29 Bruno Haible <bruno@clisp.org>
38479 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38480 * lib/execute.c: Likewise.
38481 * lib/pipe.c: Likewise.
38482 * lib/printf-args.h: Likewise.
38483 * lib/printf-args.c: Likewise.
38484 * lib/printf-parse.c: Likewise.
38485 * lib/vasnprintf.c: Likewise.
38487 2007-01-29 Eric Blake <ebb9@byu.net>
38489 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38492 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
38494 * lib/strptime.h (strptime): Use 'restrict' for args where
38495 POSIX requires this.
38496 * lib/strptime.c (strptime): Likewise.
38497 Change license notice from LGPL to GPL, since gnulib-tool will
38498 change this as needed.
38499 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38501 Include "strptime.h" first, to check interface.
38502 Do not #undef _LIBC and _NL_CURRENT.
38503 Do not include <stdlib.h>; no longer needed.
38504 Include "time_r.h" and declare ptime_locale_status
38505 only if _LIBC is not defined.
38506 (__P): Remove unused macro.
38507 (match_string): Bring back glibc version, but use it only if _LIBC
38509 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38510 Remove unnecessary assertion and abort() call.
38511 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38512 * m4/strptime.m4: Fix serial number comment.
38513 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38514 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38515 (Depends-on): Add time_r.
38517 2007-01-29 Bruno Haible <bruno@clisp.org>
38519 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38521 * modules/strptime (Depends-on): Add stdbool.
38522 * lib/strptime.h: Include <time.h> always. Add comments.
38524 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
38526 * modules/strptime: New file.
38527 * lib/strptime.h: New file.
38528 * lib/strptime.c: New file.
38529 * m4/strptime.m4: New file.
38531 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
38533 * MODULES.html.sh: New module mpsort.
38534 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38536 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38537 a circularity problem with HP-UX ia64 reported by Bob Proulx in
38538 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38540 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38542 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38544 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38545 the parameter matches the prototype.
38547 2007-01-28 Jim Meyering <jim@meyering.net>
38549 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38550 sys/time.h here, reverting that part of the previous patch:
38551 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38553 2007-01-28 Bruno Haible <bruno@clisp.org>
38555 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38556 value of $(SYS_TIME_H).
38557 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38558 remove it conditionally, too. [added by Jim Meyering]
38559 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38560 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38561 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38562 GETTIMEOFDAY_REPLACEMENT to 1.
38564 2007-01-28 Bruno Haible <bruno@clisp.org>
38566 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38567 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38568 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38569 Set UNISTD_H instead of UNISTD_H2.
38570 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38572 2007-01-28 Bruno Haible <bruno@clisp.org>
38574 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38575 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38577 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38579 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38580 (func_create_testdir): Ensure C locale for `grep' and `tr'
38582 (func_create_megatestdir): Avoid one `grep'. Fix bug in
38583 ACLOCAL_AMFLAGS parsing state machine.
38585 2007-01-27 Bruno Haible <bruno@clisp.org>
38587 * modules/unistr/base: Update.
38589 2007-01-27 Bruno Haible <bruno@clisp.org>
38591 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38592 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38593 * modules/unistr/u32-mbtouc-unsafe: Renamed from
38594 modules/unistr/u32-mbtouc.
38595 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38596 * lib/unistr.h: Update.
38597 * lib/linebreak.c: Update.
38598 * modules/unistr/u32-mbtouc: Renamed from
38599 modules/unistr/u32-mbtouc-safe.
38600 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38601 * lib/unistr.h: Update.
38602 * lib/unistr/u32-to-u8.c: Update.
38603 * lib/unistr/u32-to-u16.c: Update.
38605 2007-01-27 Bruno Haible <bruno@clisp.org>
38607 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38608 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38609 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38610 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38611 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38612 * modules/unistr/u16-mbtouc-unsafe: Renamed from
38613 modules/unistr/u16-mbtouc.
38614 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38615 * lib/unistr.h: Update.
38616 * lib/linebreak.c: Update.
38617 * modules/linebreak: Update.
38618 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38619 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38620 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38621 * modules/unistr/u16-mbtouc: Renamed from
38622 modules/unistr/u16-mbtouc-safe.
38623 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38624 * lib/unistr.h: Update.
38625 * lib/unistr/u16-to-u8.c: Update.
38626 * modules/unistr/u16-to-u8: Update.
38627 * lib/unistr/u16-to-u32.c: Update.
38628 * modules/unistr/u16-to-u32: Update.
38630 2007-01-27 Bruno Haible <bruno@clisp.org>
38632 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38633 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38634 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38635 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38636 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38637 * modules/unistr/u8-mbtouc-unsafe: Renamed from
38638 modules/unistr/u8-mbtouc.
38639 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38640 * lib/unistr.h: Update.
38641 * lib/striconveh.c: Update.
38642 * modules/striconveh: Update.
38643 * lib/linebreak.c: Update.
38644 * modules/linebreak: Update.
38645 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38646 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38647 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38648 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38649 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38650 * lib/unistr.h: Update.
38651 * lib/striconveh.c: Update.
38652 * modules/striconveh: Update.
38653 * lib/unistr/u8-to-u16.c: Update.
38654 * modules/unistr/u8-to-u16: Update.
38655 * lib/unistr/u8-to-u32.c: Update.
38656 * modules/unistr/u8-to-u32: Update.
38658 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38661 * lib/argz.c: Do not include strings.h nor memory.h, include
38662 string.h unconditionally. Patch by Simon Josefsson.
38664 2007-01-27 Bruno Haible <bruno@clisp.org>
38666 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38667 from gl_HEADER_STRING_H_BODY.
38668 (gl_HEADER_STRING_H_BODY): Require it.
38669 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38670 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38671 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38672 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38673 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38674 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38675 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38676 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38677 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38678 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38679 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38680 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38681 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38682 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38683 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38685 2007-01-27 Bruno Haible <bruno@clisp.org>
38687 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38688 check_PROGRAMS into noinst_PROGRAMS.
38689 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38690 check_PROGRAMS in this case.
38691 (func_import): Set for_test to false.
38692 (func_create_testdir): Set for_test to true.
38694 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38695 Bruno Haible <bruno@clisp.org>
38697 * modules/strcasestr (Files): Remove lib/strcasestr.h.
38698 (Depends-on): Add string.
38699 (Includes): Use <string.h> instead of strcasestr.h.
38700 * modules/string (Makefile.am): Also substitute the value of
38701 REPLACE_STRCASESTR.
38702 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38703 assume strcasestr is declared in <string.h> not <strings.h>. Also
38704 set REPLACE_STRCASESTR.
38705 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38706 REPLACE_STRCASESTR.
38707 * lib/strcasestr.h: Remove file.
38708 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38709 * lib/string_.h (strcasestr): New declaration.
38711 2007-01-27 Bruno Haible <bruno@clisp.org>
38713 * lib/string_.h: Use 'extern'.
38715 2007-01-27 Jim Meyering <jim@meyering.net>
38717 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38718 of set-but-not-used local, "q".
38720 * lib/mempcpy.c: Include <config.h> before <string.h>.
38721 This fixes a compilation error on HP-UX, due to the system's
38722 "restrict"-using mempcpy prototype.
38724 2007-01-26 Bruno Haible <bruno@clisp.org>
38726 Small optimization.
38727 * lib/javacomp.c: Include c-strstr.h.
38728 (is_envjavac_gcj): Use c_strstr instead of strstr.
38729 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38731 2007-01-26 Bruno Haible <bruno@clisp.org>
38733 * MODULES.html.sh (Unicode string functions): Add the new modules.
38735 * modules/uniconv/u32-strconv-to-locale: New file.
38736 * lib/uniconv/u32-strconv-to-locale.c: New file.
38738 * modules/uniconv/u16-strconv-to-locale: New file.
38739 * lib/uniconv/u16-strconv-to-locale.c: New file.
38741 * modules/uniconv/u8-strconv-to-locale: New file.
38742 * lib/uniconv/u8-strconv-to-locale.c: New file.
38744 * modules/uniconv/u32-strconv-from-locale: New file.
38745 * lib/uniconv/u32-strconv-from-locale.c: New file.
38747 * modules/uniconv/u16-strconv-from-locale: New file.
38748 * lib/uniconv/u16-strconv-from-locale.c: New file.
38750 * modules/uniconv/u8-strconv-from-locale: New file.
38751 * lib/uniconv/u8-strconv-from-locale.c: New file.
38753 * modules/uniconv/u32-strconv-to-enc: New file.
38754 * lib/uniconv/u32-strconv-to-enc.c: New file.
38755 * modules/uniconv/u32-strconv-to-enc-tests: New file.
38756 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38758 * modules/uniconv/u16-strconv-to-enc: New file.
38759 * lib/uniconv/u16-strconv-to-enc.c: New file.
38760 * lib/uniconv/u-strconv-to-enc.h: New file.
38761 * modules/uniconv/u16-strconv-to-enc-tests: New file.
38762 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38764 * modules/uniconv/u8-strconv-to-enc: New file.
38765 * lib/uniconv/u8-strconv-to-enc.c: New file.
38766 * modules/uniconv/u8-strconv-to-enc-tests: New file.
38767 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38769 * modules/uniconv/u32-strconv-from-enc: New file.
38770 * lib/uniconv/u32-strconv-from-enc.c: New file.
38771 * modules/uniconv/u32-strconv-from-enc-tests: New file.
38772 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38774 * modules/uniconv/u16-strconv-from-enc: New file.
38775 * lib/uniconv/u16-strconv-from-enc.c: New file.
38776 * modules/uniconv/u16-strconv-from-enc-tests: New file.
38777 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38779 * modules/uniconv/u8-strconv-from-enc: New file.
38780 * lib/uniconv/u8-strconv-from-enc.c: New file.
38781 * lib/uniconv/u-strconv-from-enc.h: New file.
38782 * modules/uniconv/u8-strconv-from-enc-tests: New file.
38783 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38785 * modules/uniconv/u32-conv-from-enc: New file.
38786 * lib/uniconv/u32-conv-from-enc.c: New file.
38787 * modules/uniconv/u32-conv-from-enc-tests: New file.
38788 * tests/uniconv/test-u32-conv-from-enc.c: New file.
38790 * modules/uniconv/u16-conv-from-enc: New file.
38791 * lib/uniconv/u16-conv-from-enc.c: New file.
38792 * lib/uniconv/u-conv-from-enc.h: New file.
38793 * modules/uniconv/u16-conv-from-enc-tests: New file.
38794 * tests/uniconv/test-u16-conv-from-enc.c: New file.
38796 * modules/uniconv/u8-conv-from-enc: New file.
38797 * lib/uniconv/u8-conv-from-enc.c: New file.
38798 * modules/uniconv/u8-conv-from-enc-tests: New file.
38799 * tests/uniconv/test-u8-conv-from-enc.c: New file.
38801 * modules/uniconv/base: New file.
38802 * lib/uniconv.h: New file.
38804 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
38806 * doc/gnulib-tool.texi (Initial import): Update to match current
38807 behavior with strdup module.
38808 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38809 * lib/memmem.h: Remove; all uses removed. This is now done
38811 * lib/mempcpy.h: Likewise.
38812 * lib/memrchr.h: Likewise.
38813 * lib/stpcpy.h: Likewise.
38814 * lib/stpncpy.h: Likewise.
38815 * lib/strcase.h: Likewise.
38816 * lib/strchrnul.h: Likewise.
38817 * lib/strdup.h: Likewise.
38818 * lib/strndup.h: Likewise.
38819 * lib/strnlen.h: Likewise.
38820 * lib/strpbrk.h: Likewise.
38821 * lib/strsep.h: Likewise.
38822 * lib/strstr.h: Likewise.
38823 * lib/strtok_r.h: Likewise.
38824 * lib/string_.h: New file.
38825 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38826 Rely on <string.h> instead.
38827 * lib/canon-host.c: Likewise.
38828 * lib/chdir-long.c: Likewise.
38829 * lib/concatpath.c: Likewise.
38830 * lib/exclude.c: Likewise.
38831 * lib/fchdir.c: Likewise.
38832 * lib/getaddrinfo.c: Likewise.
38833 * lib/getcwd.c: Likewise.
38834 * lib/getsubopt.c: Likewise.
38835 * lib/glob.c: Likewise.
38836 * lib/hard-locale.c: Likewise.
38837 * lib/iconvme.c: Likewise.
38838 * lib/javacomp.c: Likewise.
38839 * lib/mempcpy.c: Likewise.
38840 * lib/memrchr.c: Likewise.
38841 * lib/regex_internal.h: Likewise.
38842 * lib/stpncpy.c: Likewise.
38843 * lib/strcasecmp.c: Likewise.
38844 * lib/strchrnul.c: Likewise.
38845 * lib/strdup.c: Likewise.
38846 * lib/striconv.c: Likewise.
38847 * lib/striconveh.c: Likewise.
38848 * lib/striconveha.c: Likewise.
38849 * lib/strncasecmp.c: Likewise.
38850 * lib/strndup.c: Likewise.
38851 * lib/strnlen.c: Likewise.
38852 * lib/strsep.c: Likewise.
38853 * lib/strstr.c: Likewise.
38854 * lib/strtok_r.c: Likewise.
38855 * lib/userspec.c: Likewise.
38856 * lib/w32spawn.h: Likewise.
38857 * lib/xstrndup.c: Likewise.
38858 * lib/mountlist.c (strstr): Remove decl.
38859 * m4/string_h.m4: New file.
38860 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38861 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38862 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38863 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38864 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38865 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38866 Set REPLACE_STRCASECMP if necessary.
38867 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38868 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38869 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38870 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38871 HAVE_DECL_STRDUP if necessary.
38872 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38873 since gl_FUNC_STRNDUP does that now.
38874 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38875 Check for decl here...
38876 (gl_PREREQ_STRNLEN): ... not here.
38877 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38878 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38879 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38880 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38882 * modules/string: New file.
38883 * modules/memmem (Files): Remove special-purpose include file.
38884 (Depends-on): Add string.
38885 (Include): Include <string.h>, not the removed file.
38886 * modules/mempcpy: Likewise.
38887 * modules/memrchr: Likewise.
38888 * modules/stpcpy: Likewise.
38889 * modules/stpncpy: Likewise.
38890 * modules/strcase: Likewise.
38891 * modules/strchrnul: Likewise.
38892 * modules/strdup: Likewise.
38893 * modules/strndup: Likewise.
38894 * modules/strnlen: Likewise.
38895 * modules/strpbrk: Likewise.
38896 * modules/strsep: Likewise.
38897 * modules/strstr: Likewise.
38898 * modules/strtok_r: Likewise.
38899 * tests/test-dirname.c: Don't include "strdup.h", since
38900 <string.h> now suffices.
38901 * tests/test-memmem.c: Don't include "memmem.h", since
38902 <string.h> now suffices.
38904 2007-01-25 Bruno Haible <bruno@clisp.org>
38906 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38909 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38910 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38911 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38912 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38914 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38915 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38916 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38917 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38918 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38919 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38921 2007-01-24 Bruno Haible <bruno@clisp.org>
38923 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38924 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38925 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38926 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38928 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38929 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38930 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38931 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38932 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38933 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38935 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38937 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38938 Reported by Ralf Wildenhues.
38940 2007-01-24 Bruno Haible <bruno@clisp.org>
38942 Drop AC_REQUIRE calls that are redundant with the module dependencies.
38943 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38945 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38946 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38947 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38949 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
38951 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38952 Don't use 'exit'; just return from 'main'.
38953 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38955 * lib/fnmatch_.h: Readjust white space and comments to match
38956 glibc, to avoid spurious diffs.
38958 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38960 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38961 2004-12-01 change by Jakub Jelinek, since this code won't compile
38962 if !LIBC. Problem reported by Bob Proulx.
38964 2007-01-23 Bruno Haible <bruno@clisp.org>
38966 * lib/striconveh.c: Include c-strcaseeq.h.
38967 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38968 * modules/striconveh (Depends-on): Add c-strcaseeq.
38970 2007-01-23 Bruno Haible <bruno@clisp.org>
38972 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38974 * modules/c-strcaseeq: New file.
38975 * lib/c-strcaseeq.h: New file.
38977 * modules/streq: New file.
38978 * lib/streq.h: New file.
38980 2007-01-23 Bruno Haible <bruno@clisp.org>
38982 * modules/striconveha-tests: New file.
38983 * tests/test-striconveha.c: New file.
38985 * lib/striconveha.h: Include <stdbool.h>.
38986 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38987 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38988 (mem_iconveha_notranslit): Renamed from mem_iconveha.
38989 (mem_iconveha): New function.
38990 (str_iconveha_notranslit): Renamed from str_iconveha.
38991 (str_iconveha): New function.
38992 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38995 2007-01-23 Bruno Haible <bruno@clisp.org>
38997 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38998 encodings without forgiving before trying any encoding with handler.
38999 (str_iconveha): Try all encodings without forgiving before trying any
39000 encoding with handler.
39002 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
39004 Import the following changes from libc.
39006 2005-10-14 Ulrich Drepper <drepper@redhat.com>
39008 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39010 2004-12-01 Jakub Jelinek <jakub@redhat.com>
39012 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39013 normal_bracket label.
39015 2004-09-01 Jakub Jelinek <jakub@redhat.com>
39018 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39019 to normal_bracket after fetching the next character.
39021 2007-01-22 Bruno Haible <bruno@clisp.org>
39023 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39025 * lib/striconveh.c (iconv_carefully_1): New function.
39026 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39028 (str_cd_iconveh): Update.
39029 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39030 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39031 * tests/test-striconveh.c (MAGIC): New macro.
39032 (new_offsets): New function.
39033 (main): Test call with and without offsets.
39035 2007-01-22 Bruno Haible <bruno@clisp.org>
39037 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39038 * modules/sys_select (Makefile.am): Likewise.
39039 * modules/sys_socket (Makefile.am): Likewise.
39040 * modules/sys_time (Makefile.am): Likewise.
39042 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
39044 * modules/gettimeofday (License): Change from GPL to LGPL, since
39045 gettimeofday is a library function.
39047 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39049 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39051 2007-01-21 Bruno Haible <bruno@clisp.org>
39053 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39055 2007-01-21 Bruno Haible <bruno@clisp.org>
39057 * modules/striconveha: New file.
39058 * lib/striconveha.h: New file.
39059 * lib/striconveha.c: New file.
39060 * MODULES.html.sh (Internationalization functions): Add striconveha.
39061 * lib/striconv.c (str_iconv): Optimize the case of an empty input
39063 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39065 2007-01-21 Bruno Haible <bruno@clisp.org>
39067 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39068 * lib/striconveh.c (str_iconveh): Likewise.
39070 2007-01-21 Bruno Haible <bruno@clisp.org>
39072 * lib/striconveh.h (mem_iconveh): New declaration.
39073 * lib/striconveh.c (mem_iconveh): New function.
39074 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39076 2007-01-21 Bruno Haible <bruno@clisp.org>
39078 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39080 * lib/striconveh.h (mem_cd_iconveh): Change specification.
39081 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39082 original result buffer.
39083 (str_cd_iconveh): Update.
39084 * tests/test-striconveh.c (main): Update.
39086 * lib/striconv.h (mem_cd_iconv): Change specification.
39087 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39089 (str_cd_iconv): Update.
39090 * tests/test-striconv.c (main): Update.
39092 2007-01-21 Bruno Haible <bruno@clisp.org>
39094 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39096 2007-01-20 Jim Meyering <jim@meyering.net>
39098 * lib/userspec.c (parse_with_separator): If a user or group string
39099 starts with "+", skip the corresponding name-to-ID look-up, since
39100 such a look-up must fail: user and group names may not include "+".
39102 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
39104 * lib/poll.c: Include sys/time.h and time.h unconditionally,
39105 since we now assume the sys_time module.
39106 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39107 check for sys/time.h; no longer needed.
39108 * modules/poll (Depends-on): Depend on sys_time.
39110 2007-01-18 Bruno Haible <bruno@clisp.org>
39112 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39113 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39115 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39118 * tests/test-gettimeofday.c: Include <time.h>.
39119 (dummy): Remove variable.
39121 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39122 gl_HEADER_SYS_TIME_H.
39123 (gl_HEADER_SYS_TIME_H): New macro.
39125 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39126 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39127 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39128 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39129 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39130 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39131 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39132 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39133 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39134 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39135 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39137 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39138 last change; it caused a compilation error when cross-compiling to
39141 2007-01-18 Jim Meyering <jim@meyering.net>
39143 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39144 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39145 than the race-prone "test -d sys || mkdir sys".
39146 (configure.ac): Use AC_PROG_MKDIR_P.
39147 * modules/sys_select: Likewise.
39148 * modules/sys_socket: Likewise.
39149 * modules/sys_time: Likewise.
39151 2007-01-18 Eric Blake <ebb9@byu.net>
39153 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39154 replace gettimeofday.
39155 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39156 name, to avoid infinite recursion.
39158 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
39160 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39162 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39163 assume timespec.h defines struct timeval.
39164 * lib/settime.c: Likewise.
39165 * lib/utimens.c: Likewise.
39166 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39167 since we now assume the gettimeofday module.
39168 * lib/tempname.c (__gen_tempname): Likewise.
39169 * lib/gettimeofday.h: Remove.
39170 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39171 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39172 Include <time.h>, for 'time()'.
39173 (localtime_buffer_addr): Also use this workaround if
39174 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
39175 to simplify the uses. All uses changed.
39176 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39177 that #undef is inside {}, and 'const' follows type name consistently.
39178 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39179 (gettimeofday): Do not use the maximum possible value for
39180 tv->tv_usec, since that might break usages other than ls.c.
39181 Instead, we'll leave ls.c alone. This undoes today's patch
39182 by Bruno. Add a compile-time warning for 1s-clock resolution;
39183 we've never observed the problem but might as well keep the
39185 * lib/nanosleep.c: Include timespec.h first, for interface check.
39186 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39187 now assume the sys_time module.
39188 * lib/tempname.c: Likewise.
39189 * lib/timespec.h: Likewise.
39190 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39192 * lib/strftime.c: Likewise.
39193 * lib/timespec.h: Likewise.
39194 * lib/posixtm.c: Include posixtm.h first, for interface check.
39195 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39196 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39197 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39198 * lib/sys_time_.h: New file.
39199 * lib/timespec.h (struct timespec): Use long int, not long.
39200 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39201 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39202 Remove obsolescent call to AC_HEADER_TIME.
39203 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39204 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39205 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39206 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39208 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39209 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39210 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39211 into the sys_time module. Check for gettimeofday just once.
39212 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
39213 for gettimeofday signature to just check the signature. Merely
39214 compile it, since linking doesn't test signature. Improve test for
39215 whether gettimeofday.o is actually needed.
39216 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39217 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
39218 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
39219 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39220 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39221 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39222 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39223 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39224 than worrying about sys/time.h.
39225 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39226 Don't bother worrying about TIME_WITH_SYS_TIME.
39227 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39228 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39229 * m4/sys_time_h.m4: New file.
39230 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39231 Don't include sys/time.h. Return from main rather than exiting.
39232 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39234 * modules/gethrxtime (Depends-on): Add sys_time.
39235 * modules/gettime (Depends-on): Likewise.
39236 * modules/gettimeofday (Depends-on): Likewise.
39237 * modules/nanosleep (Depends-on): Likewise.
39238 * modules/settime (Depends-on): Likewise.
39239 * modules/tempname (Depends-on): Likewise.
39240 * modules/utimens (Depends-on): Likewise.
39241 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39242 (Include:) Change back to <sys/time.h>.
39243 (Maintainer:) Add self.
39244 * modules/sys_time: New file.
39245 * modules/tempname (Depends-on): Add gettimeofday.
39246 * tests/test-gettimeofday.c: Include <sys/time.h>
39247 rather than gettimeofday.h.
39249 2007-01-17 Bruno Haible <bruno@clisp.org>
39251 * gnulib-tool (func_get_license): Revert last patch. Instead, let
39252 the license default to GPL.
39253 (func_create_testdir): Don't complain if a module is LGPL and its
39254 tests module depends on GPLed modules.
39256 2007-01-17 Bruno Haible <bruno@clisp.org>
39258 * lib/gettimeofday.c (gettimeofday): Add code for the case
39259 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39260 maximum possible value for tv->tv_usec, rather than the minimum one.
39262 2005-10-08 Martin Lambers <marlam@marlam.de>
39263 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
39264 2007-01-16 Bruno Haible <bruno@clisp.org>
39266 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39267 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39268 gl_FUNC_GETTIMEOFDAY.
39269 (Include): Add gettimeofday.h.
39270 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39271 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39272 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39273 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39274 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39275 * lib/gettimeofday.h: New file.
39276 * lib/gettimeofday.c: Include <sys/timeb.h>.
39277 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39278 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39279 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39280 fall back on time().
39282 * tests/test-gettimeofday.c: New file.
39283 * modules/gettimeofday-tests: New file.
39285 2007-01-16 Eric Blake <ebb9@byu.net>
39287 * modules/fnmatch (Depends-on): Depend on wchar.
39288 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39289 * m4/fnmatch.m4: Likewise.
39290 * modules/mbchar (Makefile.am): Assume <wchar.h>.
39291 * m4/mbchar.m4: Likewise.
39292 * modules/mbswidth (Depends-on): Depend on wchar.
39293 * lib/mbswidth.c: Assume <wchar.h>.
39294 * m4/mbswidth.m4: Likewise.
39295 * modules/quotearg (Depends-on): Depend on wchar.
39296 * lib/quotearg.c: Assume <wchar.h>.
39297 * m4/quotearg.m4: Likewise.
39298 * modules/regex (Depends-on): Depend on wchar.
39299 * lib/regex_internal.h: Assume <wchar.h>.
39300 * m4/regex.m4: Likewise.
39301 * modules/stdint (Depends-on): Depend on wchar.
39302 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39303 * m4/stdint.m4: Likewise.
39304 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39305 * modules/strftime (Depends-on): Depend on wchar.
39306 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39307 * modules/strtol (Depends-on): Depend on wchar.
39308 * lib/strtol.c: Assume <wchar.h>.
39309 * modules/wcwidth (Depends-on): Depend on wchar.
39310 * lib/wcwidth.h: Assume <wchar.h>.
39311 * m4/wcwidth.m4: Likewise.
39313 2007-01-16 Bruno Haible <bruno@clisp.org>
39315 * modules/csharpexec-script: New, created from...
39316 * modules/csharpexec: ... this.
39318 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
39320 * modules/javaexec-script: New, created from...
39321 * modules/javaexec: ... this.
39323 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39325 * modules/poll (Dependencies): Add sys_select.
39327 2007-01-15 Jim Meyering <jim@meyering.net>
39329 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39330 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39331 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
39332 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39334 2007-01-15 Bruno Haible <bruno@clisp.org>
39336 * modules/striconveh: New file.
39337 * lib/striconveh.h: New file.
39338 * lib/striconveh.c: New file.
39339 * MODULES.html.sh (Internationalization functions): Add striconveh.
39341 * modules/striconveh-tests: New file.
39342 * tests/test-striconveh.c: New file.
39344 2007-01-15 Bruno Haible <bruno@clisp.org>
39346 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39347 not from GNU libiconv or GNU libc.
39349 2007-01-15 Bruno Haible <bruno@clisp.org>
39351 * doc/gnulib-intro.texi (Copyright): Explain the different license
39352 terms for module descriptions, autoconf macros, tests, documentation.
39354 2007-01-14 Bruno Haible <bruno@clisp.org>
39356 * modules/striconv-tests: New file.
39357 * tests/test-striconv.c: New file.
39359 2007-01-14 Bruno Haible <bruno@clisp.org>
39361 * modules/iconv-tests: New file.
39362 * tests/test-iconv.c: New file.
39364 2007-01-14 Bruno Haible <bruno@clisp.org>
39366 * gnulib-tool (func_get_license): For test modules, use the license of
39369 2007-01-14 Bruno Haible <bruno@clisp.org>
39371 * modules/iconv (Include): Clarify that <iconv.h> can only be included
39372 if iconv is found to exist.
39374 2007-01-14 Bruno Haible <bruno@clisp.org>
39376 * modules/c-ctype-tests: New file.
39377 * tests/test-c-ctype.c: New file.
39379 2007-01-14 Bruno Haible <bruno@clisp.org>
39381 * modules/binary-io-tests: New file.
39382 * tests/test-binary-io.sh: New file.
39383 * tests/test-binary-io.c: New file.
39385 2007-01-14 Bruno Haible <bruno@clisp.org>
39387 * modules/array-oset-tests: New file.
39388 * tests/test-array_oset.c: New file.
39390 2007-01-14 Bruno Haible <bruno@clisp.org>
39392 * modules/array-list-tests: New file.
39393 * tests/test-array_list.c: New file.
39395 2007-01-14 Bruno Haible <bruno@clisp.org>
39397 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39399 Reported by Simon Josefsson in
39400 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39402 2007-01-14 Bruno Haible <bruno@clisp.org>
39404 * modules/allocsa-tests: New file.
39405 * tests/test-allocsa.c: New file.
39407 2007-01-14 Bruno Haible <bruno@clisp.org>
39409 * modules/fchdir (Depends-on): Add absolute-header.
39410 * modules/unistd (Depends-on): Likewise.
39412 2006-12-30 Bruno Haible <bruno@clisp.org>
39414 * modules/fchdir: New file.
39415 * modules/unistd (Files): Add lib/unistd_.h.
39416 (Makefile.am): Generate unistd.h from unistd_.h.
39417 * lib/fchdir.c: New file.
39418 * lib/dirent_.h: New file.
39419 * lib/unistd_.h: New file.
39420 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39421 * m4/fchdir.m4: New file.
39422 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39423 (gl_HEADER_UNISTD): Invoke it.
39424 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39426 * lib/backupfile.c (opendir, closedir): Undefine.
39427 * lib/chown.c (open, close): Undefine.
39428 * lib/clean-temp.c (open, close): Undefine.
39429 * lib/copy-file.c (open, close): Undefine.
39430 * lib/execute.c (open, close): Undefine.
39431 * lib/fsusage.c (open, close): Undefine.
39432 * lib/gc-gnulib.c (open, close): Undefine.
39433 * lib/getcwd.c (opendir, closedir): Undefine.
39434 * lib/glob.c (opendir, closedir): Undefine.
39435 * lib/javacomp.c (open, close): Undefine.
39436 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39437 * lib/openat-proc.c (open, close): Undefine.
39438 * lib/pagealign_alloc.c (open, close): Undefine.
39439 * lib/pipe.c (open, close): Undefine.
39440 * lib/progreloc.c (open, close): Undefine.
39441 * lib/savedir.c (opendir, closedir): Undefine.
39442 * lib/utime.c (open, close): Undefine.
39443 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39445 2007-01-10 Bruno Haible <bruno@clisp.org>
39447 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39449 2007-01-12 Eric Blake <ebb9@byu.net>
39451 Provide a robust <wchar.h>. Further simplifications are now
39452 possible in other modules, but not included here.
39453 * modules/wchar: New module.
39454 * m4/wchar.m4: New file.
39455 * lib/wchar_.h: Likewise.
39456 * modules/mbchar (Depends-on): Depend on wchar, as the first use
39458 * MODULES.html.sh (Extended multibyte and wide character utilities):
39461 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
39463 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39464 to a reasonable default for memory allocation.
39465 (xreadlink): Don't allocate a huge buffer, to work around a buggy
39466 file system that reports garbage st_size values for symlinks.
39467 Problem reported by Liyang Hu.
39469 2007-01-11 Simon Josefsson <simon@josefsson.org>
39471 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39472 Emacs .#* auto-save files).
39474 2007-01-11 Bruno Haible <bruno@clisp.org>
39476 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39479 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
39481 Use @...@ consistently in lib/wctype_.h.
39482 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39483 on it being set to 1 or 0.
39484 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39485 go back to AC_SUBSTing it.
39486 * modules/wctype (Makefile.am): Undo previous change.
39488 2007-01-10 Eric Blake <ebb9@byu.net>
39490 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39491 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39492 * modules/wctype (Makefile.am): Likewise.
39493 Reported by Chris McGuire.
39495 2007-01-10 Jim Meyering <jim@meyering.net>
39497 fts.c: a small readability/maintainability improvement
39498 * lib/fts.c (fts_read): Make this code slightly more readable and
39499 maintainable by hoisting the "sp->fts_cur = p" assignments to
39500 immediately follow the statements that set P. Derived from
39501 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39503 2007-01-10 Eric Blake <ebb9@byu.net>
39505 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39506 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39507 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39508 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39509 Reported by Chris McGuire.
39511 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39513 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39516 2007-01-09 Bruno Haible <bruno@clisp.org>
39518 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39519 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39521 (func_module): Use them.
39523 2007-01-09 Bruno Haible <bruno@clisp.org>
39525 * modules/unistr/base: New file.
39526 * lib/unistr.h: New file.
39528 * modules/unistr/u8-to-u16: New file.
39529 * lib/unistr/u8-to-u16.c: New file.
39531 * modules/unistr/u8-to-u32: New file.
39532 * lib/unistr/u8-to-u32.c: New file.
39534 * modules/unistr/u16-to-u8: New file.
39535 * lib/unistr/u16-to-u8.c: New file.
39537 * modules/unistr/u16-to-u32: New file.
39538 * lib/unistr/u16-to-u32.c: New file.
39540 * modules/unistr/u32-to-u8: New file.
39541 * lib/unistr/u32-to-u8.c: New file.
39543 * modules/unistr/u32-to-u16: New file.
39544 * lib/unistr/u32-to-u16.c: New file.
39546 * modules/unistr/u8-check: New file.
39547 * modules/unistr/u16-check: New file.
39548 * modules/unistr/u32-check: New file.
39549 * lib/unistr/u8-check.c: New file.
39550 * lib/unistr/u16-check.c: New file.
39551 * lib/unistr/u32-check.c: New file.
39553 * modules/unistr/u8-chr: New file.
39554 * modules/unistr/u16-chr: New file.
39555 * modules/unistr/u32-chr: New file.
39556 * lib/unistr/u8-chr.c: New file.
39557 * lib/unistr/u16-chr.c: New file.
39558 * lib/unistr/u32-chr.c: New file.
39560 * modules/unistr/u8-cmp: New file.
39561 * modules/unistr/u16-cmp: New file.
39562 * modules/unistr/u32-cmp: New file.
39563 * lib/unistr/u8-cmp.c: New file.
39564 * lib/unistr/u16-cmp.c: New file.
39565 * lib/unistr/u32-cmp.c: New file.
39567 * modules/unistr/u8-cpy: New file.
39568 * modules/unistr/u16-cpy: New file.
39569 * modules/unistr/u32-cpy: New file.
39570 * lib/unistr/u8-cpy.c: New file.
39571 * lib/unistr/u16-cpy.c: New file.
39572 * lib/unistr/u32-cpy.c: New file.
39573 * lib/unistr/u-cpy.h: New file.
39575 * modules/unistr/u8-cpy-alloc: New file.
39576 * modules/unistr/u16-cpy-alloc: New file.
39577 * modules/unistr/u32-cpy-alloc: New file.
39578 * lib/unistr/u8-cpy-alloc.c: New file.
39579 * lib/unistr/u16-cpy-alloc.c: New file.
39580 * lib/unistr/u32-cpy-alloc.c: New file.
39581 * lib/unistr/u-cpy-alloc.h: New file.
39583 * modules/unistr/u8-endswith: New file.
39584 * modules/unistr/u16-endswith: New file.
39585 * modules/unistr/u32-endswith: New file.
39586 * lib/unistr/u8-endswith.c: New file.
39587 * lib/unistr/u16-endswith.c: New file.
39588 * lib/unistr/u32-endswith.c: New file.
39589 * lib/unistr/u-endswith.h: New file.
39591 * modules/unistr/u8-mblen: New file.
39592 * modules/unistr/u16-mblen: New file.
39593 * modules/unistr/u32-mblen: New file.
39594 * lib/unistr/u8-mblen.c: New file.
39595 * lib/unistr/u16-mblen.c: New file.
39596 * lib/unistr/u32-mblen.c: New file.
39598 * modules/unistr/u8-mbtouc: New file.
39599 * modules/unistr/u16-mbtouc: New file.
39600 * modules/unistr/u32-mbtouc: New file.
39601 * lib/unistr/u8-mbtouc.c: New file.
39602 * lib/unistr/u16-mbtouc.c: New file.
39603 * lib/unistr/u32-mbtouc.c: New file.
39605 * modules/unistr/u8-mbtouc-safe: New file.
39606 * modules/unistr/u16-mbtouc-safe: New file.
39607 * modules/unistr/u32-mbtouc-safe: New file.
39608 * lib/unistr/u8-mbtouc-safe.c: New file.
39609 * lib/unistr/u16-mbtouc-safe.c: New file.
39610 * lib/unistr/u32-mbtouc-safe.c: New file.
39612 * modules/unistr/u8-move: New file.
39613 * modules/unistr/u16-move: New file.
39614 * modules/unistr/u32-move: New file.
39615 * lib/unistr/u8-move.c: New file.
39616 * lib/unistr/u16-move.c: New file.
39617 * lib/unistr/u32-move.c: New file.
39618 * lib/unistr/u-move.h: New file.
39620 * modules/unistr/u8-next: New file.
39621 * modules/unistr/u16-next: New file.
39622 * modules/unistr/u32-next: New file.
39623 * lib/unistr/u8-next.c: New file.
39624 * lib/unistr/u16-next.c: New file.
39625 * lib/unistr/u32-next.c: New file.
39627 * modules/unistr/u8-prev: New file.
39628 * modules/unistr/u16-prev: New file.
39629 * modules/unistr/u32-prev: New file.
39630 * lib/unistr/u8-prev.c: New file.
39631 * lib/unistr/u16-prev.c: New file.
39632 * lib/unistr/u32-prev.c: New file.
39634 * modules/unistr/u8-set: New file.
39635 * modules/unistr/u16-set: New file.
39636 * modules/unistr/u32-set: New file.
39637 * lib/unistr/u8-set.c: New file.
39638 * lib/unistr/u16-set.c: New file.
39639 * lib/unistr/u32-set.c: New file.
39640 * lib/unistr/u-set.h: New file.
39642 * modules/unistr/u8-startswith: New file.
39643 * modules/unistr/u16-startswith: New file.
39644 * modules/unistr/u32-startswith: New file.
39645 * lib/unistr/u8-startswith.c: New file.
39646 * lib/unistr/u16-startswith.c: New file.
39647 * lib/unistr/u32-startswith.c: New file.
39648 * lib/unistr/u-startswith.h: New file.
39650 * modules/unistr/u8-stpcpy: New file.
39651 * modules/unistr/u16-stpcpy: New file.
39652 * modules/unistr/u32-stpcpy: New file.
39653 * lib/unistr/u8-stpcpy.c: New file.
39654 * lib/unistr/u16-stpcpy.c: New file.
39655 * lib/unistr/u32-stpcpy.c: New file.
39656 * lib/unistr/u-stpcpy.h: New file.
39658 * modules/unistr/u8-stpncpy: New file.
39659 * modules/unistr/u16-stpncpy: New file.
39660 * modules/unistr/u32-stpncpy: New file.
39661 * lib/unistr/u8-stpncpy.c: New file.
39662 * lib/unistr/u16-stpncpy.c: New file.
39663 * lib/unistr/u32-stpncpy.c: New file.
39664 * lib/unistr/u-stpncpy.h: New file.
39666 * modules/unistr/u8-strcat: New file.
39667 * modules/unistr/u16-strcat: New file.
39668 * modules/unistr/u32-strcat: New file.
39669 * lib/unistr/u8-strcat.c: New file.
39670 * lib/unistr/u16-strcat.c: New file.
39671 * lib/unistr/u32-strcat.c: New file.
39672 * lib/unistr/u-strcat.h: New file.
39674 * modules/unistr/u8-strchr: New file.
39675 * modules/unistr/u16-strchr: New file.
39676 * modules/unistr/u32-strchr: New file.
39677 * lib/unistr/u8-strchr.c: New file.
39678 * lib/unistr/u16-strchr.c: New file.
39679 * lib/unistr/u32-strchr.c: New file.
39681 * modules/unistr/u8-strcmp: New file.
39682 * modules/unistr/u16-strcmp: New file.
39683 * modules/unistr/u32-strcmp: New file.
39684 * lib/unistr/u8-strcmp.c: New file.
39685 * lib/unistr/u16-strcmp.c: New file.
39686 * lib/unistr/u32-strcmp.c: New file.
39688 * modules/unistr/u8-strcpy: New file.
39689 * modules/unistr/u16-strcpy: New file.
39690 * modules/unistr/u32-strcpy: New file.
39691 * lib/unistr/u8-strcpy.c: New file.
39692 * lib/unistr/u16-strcpy.c: New file.
39693 * lib/unistr/u32-strcpy.c: New file.
39694 * lib/unistr/u-strcpy.h: New file.
39696 * modules/unistr/u8-strcspn: New file.
39697 * modules/unistr/u16-strcspn: New file.
39698 * modules/unistr/u32-strcspn: New file.
39699 * lib/unistr/u8-strcspn.c: New file.
39700 * lib/unistr/u16-strcspn.c: New file.
39701 * lib/unistr/u32-strcspn.c: New file.
39702 * lib/unistr/u-strcspn.h: New file.
39704 * modules/unistr/u8-strdup: New file.
39705 * modules/unistr/u16-strdup: New file.
39706 * modules/unistr/u32-strdup: New file.
39707 * lib/unistr/u8-strdup.c: New file.
39708 * lib/unistr/u16-strdup.c: New file.
39709 * lib/unistr/u32-strdup.c: New file.
39710 * lib/unistr/u-strdup.h: New file.
39712 * modules/unistr/u8-strlen: New file.
39713 * modules/unistr/u16-strlen: New file.
39714 * modules/unistr/u32-strlen: New file.
39715 * lib/unistr/u8-strlen.c: New file.
39716 * lib/unistr/u16-strlen.c: New file.
39717 * lib/unistr/u32-strlen.c: New file.
39718 * lib/unistr/u-strlen.h: New file.
39720 * modules/unistr/u8-strmblen: New file.
39721 * modules/unistr/u16-strmblen: New file.
39722 * modules/unistr/u32-strmblen: New file.
39723 * lib/unistr/u8-strmblen.c: New file.
39724 * lib/unistr/u16-strmblen.c: New file.
39725 * lib/unistr/u32-strmblen.c: New file.
39727 * modules/unistr/u8-strmbtouc: New file.
39728 * modules/unistr/u16-strmbtouc: New file.
39729 * modules/unistr/u32-strmbtouc: New file.
39730 * lib/unistr/u8-strmbtouc.c: New file.
39731 * lib/unistr/u16-strmbtouc.c: New file.
39732 * lib/unistr/u32-strmbtouc.c: New file.
39734 * modules/unistr/u8-strncat: New file.
39735 * modules/unistr/u16-strncat: New file.
39736 * modules/unistr/u32-strncat: New file.
39737 * lib/unistr/u8-strncat.c: New file.
39738 * lib/unistr/u16-strncat.c: New file.
39739 * lib/unistr/u32-strncat.c: New file.
39740 * lib/unistr/u-strncat.h: New file.
39742 * modules/unistr/u8-strncmp: New file.
39743 * modules/unistr/u16-strncmp: New file.
39744 * modules/unistr/u32-strncmp: New file.
39745 * lib/unistr/u8-strncmp.c: New file.
39746 * lib/unistr/u16-strncmp.c: New file.
39747 * lib/unistr/u32-strncmp.c: New file.
39749 * modules/unistr/u8-strncpy: New file.
39750 * modules/unistr/u16-strncpy: New file.
39751 * modules/unistr/u32-strncpy: New file.
39752 * lib/unistr/u8-strncpy.c: New file.
39753 * lib/unistr/u16-strncpy.c: New file.
39754 * lib/unistr/u32-strncpy.c: New file.
39755 * lib/unistr/u-strncpy.h: New file.
39757 * modules/unistr/u8-strnlen: New file.
39758 * modules/unistr/u16-strnlen: New file.
39759 * modules/unistr/u32-strnlen: New file.
39760 * lib/unistr/u8-strnlen.c: New file.
39761 * lib/unistr/u16-strnlen.c: New file.
39762 * lib/unistr/u32-strnlen.c: New file.
39763 * lib/unistr/u-strnlen.h: New file.
39765 * modules/unistr/u8-strpbrk: New file.
39766 * modules/unistr/u16-strpbrk: New file.
39767 * modules/unistr/u32-strpbrk: New file.
39768 * lib/unistr/u8-strpbrk.c: New file.
39769 * lib/unistr/u16-strpbrk.c: New file.
39770 * lib/unistr/u32-strpbrk.c: New file.
39771 * lib/unistr/u-strpbrk.h: New file.
39773 * modules/unistr/u8-strrchr: New file.
39774 * modules/unistr/u16-strrchr: New file.
39775 * modules/unistr/u32-strrchr: New file.
39776 * lib/unistr/u8-strrchr.c: New file.
39777 * lib/unistr/u16-strrchr.c: New file.
39778 * lib/unistr/u32-strrchr.c: New file.
39780 * modules/unistr/u8-strspn: New file.
39781 * modules/unistr/u16-strspn: New file.
39782 * modules/unistr/u32-strspn: New file.
39783 * lib/unistr/u8-strspn.c: New file.
39784 * lib/unistr/u16-strspn.c: New file.
39785 * lib/unistr/u32-strspn.c: New file.
39786 * lib/unistr/u-strspn.h: New file.
39788 * modules/unistr/u8-strstr: New file.
39789 * modules/unistr/u16-strstr: New file.
39790 * modules/unistr/u32-strstr: New file.
39791 * lib/unistr/u8-strstr.c: New file.
39792 * lib/unistr/u16-strstr.c: New file.
39793 * lib/unistr/u32-strstr.c: New file.
39794 * lib/unistr/u-strstr.h: New file.
39796 * modules/unistr/u8-strtok: New file.
39797 * modules/unistr/u16-strtok: New file.
39798 * modules/unistr/u32-strtok: New file.
39799 * lib/unistr/u8-strtok.c: New file.
39800 * lib/unistr/u16-strtok.c: New file.
39801 * lib/unistr/u32-strtok.c: New file.
39802 * lib/unistr/u-strtok.h: New file.
39804 * modules/unistr/u8-uctomb: New file.
39805 * modules/unistr/u16-uctomb: New file.
39806 * modules/unistr/u32-uctomb: New file.
39807 * lib/unistr/u8-uctomb.c: New file.
39808 * lib/unistr/u16-uctomb.c: New file.
39809 * lib/unistr/u32-uctomb.c: New file.
39811 * MODULES.html.sh (Unicode string functions): Add the new modules.
39813 2007-01-08 Bruno Haible <bruno@clisp.org>
39815 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39816 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39819 2007-01-08 Karl Berry <karl@gnu.org>
39821 * doc/error.texi: mention that main() fns must set program_name
39822 when progname is used.
39824 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
39826 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39827 WCTYPE_H is empty, for the benefit of builds from non-distclean
39828 directories. Problem reported by Eric Blake in
39829 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39831 2007-01-08 Bruno Haible <bruno@clisp.org>
39833 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39834 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39835 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39836 PROVIDE_CANONICALIZE_FILENAME_MODE.
39837 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39839 2007-01-08 Bruno Haible <bruno@clisp.org>
39841 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39842 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39843 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39844 * lib/fts.c: Likewise.
39845 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39847 2006-12-25 Bruno Haible <bruno@clisp.org>
39849 * modules/utf8-ucs4-safe: New file.
39850 * lib/utf8-ucs4-safe.h: New file.
39851 * lib/unistr/utf8-ucs4-safe.c: New file.
39853 * modules/utf16-ucs4-safe: New file.
39854 * lib/utf16-ucs4-safe.h: New file.
39855 * lib/unistr/utf16-ucs4-safe.c: New file.
39857 * MODULES.html.sh (Unicode string functions): Add the new modules.
39859 2007-01-08 Bruno Haible <bruno@clisp.org>
39861 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39862 (Depends-on): Add unitypes.
39863 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39864 (u8_mbtouc_aux): Move out to separate file.
39865 (u8_mbtouc): Use ucs4_t, uint8_t types.
39866 * lib/unistr/utf8-ucs4.c: New file.
39868 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39869 (Depends-on): Add unitypes.
39870 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39871 (u16_mbtouc_aux): Move out to separate file.
39872 (u16_mbtouc): Use ucs4_t, uint16_t types.
39873 * lib/unistr/utf16-ucs4.c: New file.
39875 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39876 (Depends-on): Add unitypes.
39877 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39878 (u8_uctomb_aux): Move out to separate file.
39879 (u8_uctomb): Use ucs4_t, uint8_t types.
39880 * lib/unistr/ucs4-utf8.c: New file.
39882 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39883 (Depends-on): Add unitypes.
39884 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39885 (u16_uctomb_aux): Move out to separate file.
39886 (u16_uctomb): Use ucs4_t, uint16_t types.
39887 * lib/unistr/ucs4-utf16.c: New file.
39889 2006-12-25 Bruno Haible <bruno@clisp.org>
39891 * modules/unitypes: New file.
39892 * lib/unitypes.h: New file.
39893 * MODULES.html.sh (func_all_modules): New section "Unicode string
39894 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39895 this section. Add unitypes.
39897 2007-01-08 Bruno Haible <bruno@clisp.org>
39899 Avoid variable names that conflict with those from libtool.
39900 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39901 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39902 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39903 library_names_spec to acl_library_names_spec, hardcode_* to
39905 Reported by Ralf Wildenhues.
39907 2007-01-08 Bruno Haible <bruno@clisp.org>
39909 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39911 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39913 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39914 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39916 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39918 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39919 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39920 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39921 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39923 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39925 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39926 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39927 GC_USE_<algorithm>.
39928 * lib/gc-libgcrypt.c: Likewise.
39929 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39930 * modules/gc-arctwo (configure.ac): Likewise.
39931 * modules/gc-des (configure.ac): Likewise.
39932 * modules/gc-hmac-md5 (configure.ac): Likewise.
39933 * modules/gc-hmac-sha1 (configure.ac): Likewise.
39934 * modules/gc-md2 (configure.ac): Likewise.
39935 * modules/gc-md4 (configure.ac): Likewise.
39936 * modules/gc-md5 (configure.ac): Likewise.
39937 * modules/gc-random (configure.ac): Likewise.
39938 * modules/gc-rijndael (configure.ac): Likewise.
39939 * modules/gc-sha1 (configure.ac): Likewise.
39941 2007-01-08 Bruno Haible <bruno@clisp.org>
39943 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39945 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39947 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39949 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39950 * modules/fcntl-safer (configure.ac): Likewise.
39951 * modules/fopen-safer (configure.ac): Likewise.
39952 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39953 GNULIB_FWRITEERROR macro definition.
39955 2007-01-08 Bruno Haible <bruno@clisp.org>
39957 * m4/gnulib-common.m4: New file.
39958 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39959 (func_get_filelist): Add m4/gnulib-common.m4.
39961 2007-01-08 Bruno Haible <bruno@clisp.org>
39963 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39966 2007-01-08 Jim Meyering <jim@meyering.net>
39968 Use a more robust test for a "can't happen" condition.
39969 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39970 narrowed the st_size value. Presuming the "can't happen" condition
39971 is true, that narrowing could conceivably convert an invalid st_size
39972 value into a valid one. Instead, use a change based on Matthew
39973 Woehlke's original patch.
39975 Slight readability improvement: use an assert-like macro
39976 in place of literal "abort ()" uses.
39977 * lib/fts.c (fts_assert): Define.
39978 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39979 Use this macro instead of a bare 'abort'.
39981 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
39983 Don't worry about using IRIX 5.3's wctype.h broken definitions;
39984 simply work around them.
39985 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39986 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39987 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39989 Don't bother to define as macros, since the standard doesn't require it.
39990 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39991 longer worry about IRIX 5.3.
39992 (HAVE_WCTYPE_CTMP_BUG): Remove.
39994 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
39996 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39997 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
39998 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39999 Problems reported by Georg Schwarz for IRIX 5.3.
40001 * gnulib-tool (autoconf_minversion): Take the maximum version number
40002 found, not the minimum. Problem reported by James Youngman.
40004 2007-01-03 Karl Berry <karl@gnu.org>
40006 * doc/error.texi: new file, explaining interaction with progname.
40007 * doc/gnulib.texi: include it. Update copyright.
40009 2007-01-03 Simon Josefsson <simon@josefsson.org>
40011 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40012 AC_CANONICAL_HOST, to improve autobuild outputs.
40014 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
40015 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40017 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40018 sockets, server sockets, and other file descriptors. Count errors
40019 to compute the return value. Reorder the code a bit to be easier
40020 to follow. Don't set event bits that were not requested (except
40021 POLLERR and POLLHUP).
40023 2007-01-01 Bruno Haible <bruno@clisp.org>
40025 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40027 2007-01-03 Jim Meyering <jim@meyering.net>
40029 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
40031 2007-01-02 Bruno Haible <bruno@clisp.org>
40033 * modules/settime (Include): Require timespec.h.
40034 * modules/nanosleep (Include): Likewise.
40036 2007-01-01 Bruno Haible <bruno@clisp.org>
40038 * gnulib-tool (func_emit_copyright_notice): Bump year.
40039 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40041 2007-01-01 Bruno Haible <bruno@clisp.org>
40043 Improve support for OpenBSD.
40044 * build-aux/config.rpath (libname_spec): Export.
40045 (library_names_spec): New variable. Export.
40046 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40047 library_names_spec from the config.rpath output. Locate shared library
40048 through the name pattern in library_names_spec.
40050 2007-01-01 Eric Blake <ebb9@byu.net>
40052 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40054 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
40056 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40057 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
40058 assume the C locale, and avoid an "eval" that could cause trouble.
40059 Problem with SORT reported by Bob Proulx.
40061 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40062 Define. Trivial patch from Henning Nielsen Lund, originally
40063 sent to bug-grep@gnu.org today.
40065 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
40067 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40068 struct stat. Problem reported by Henning Nielsen Lund.
40069 * lib/acl.c: Include acl.h first, to check interface. Don't
40070 bother to include sys/types.h and sys/stat.h again.
40072 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
40074 Import the following change from libc; problem reported by
40077 2005-10-13 Ulrich Drepper <drepper@redhat.com>
40080 * lib/argp.h: Remove __NTH for __argp_usage inline function.
40082 2006-12-28 Jim Meyering <jim@meyering.net>
40084 * build-aux/announce-gen: Do not assume that the package
40085 builds any of tar.gz, tar.bz2, and .xdelta files.
40086 Suggestion from Simon Josefsson.
40088 2006-12-28 Simon Josefsson <simon@josefsson.org>
40090 * modules/announce-gen: New file.
40092 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
40094 * lib/mbchar.h: Just include <wctype.h>; the wctype module
40095 handles its gotchas now.
40096 * lib/mbswidth.c: Likewise.
40097 * lib/wcwidth.h: Likewise.
40098 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40099 and iswcntrl; the wctype module does this stuff now.
40100 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40101 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40102 * modules/mbchar (Depends-on): Add wctype.
40103 * modules/mbswidth (Depends-on): Likewise.
40104 * modules/wcwidth (Depends-on): Likewise.
40106 2006-12-27 Eric Blake <ebb9@byu.net>
40108 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40109 module uses more than what <wctype.h> is required to provide.
40111 2006-12-26 Eric Blake <ebb9@byu.net>
40113 * gnulib-tool (sed_extract_prog): Avoid space-tab.
40115 2006-12-26 Eric Blake <ebb9@byu.net>
40117 * modules/absolute-header: New module.
40118 * modules/fcntl (Depends-on): Depend on it.
40119 * modules/inttypes (Depends-on): Likewise.
40120 * modules/stdint (Depends-on): Likewise.
40121 * modules/sys_stat (Depends-on): Likewise.
40122 * modules/wctype (Depends-on): Likewise.
40123 * MODULES.html.sh (Support for building libraries and
40124 executables): Document it.
40126 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
40128 * gnulib-tool (SED): Remove, undoing previous change.
40129 The problem was that it broke coreutils on Solaris, because
40130 "sed --posix" leaked into a makefile.
40131 (sed): New alias, if 'alias' and GNU sed.
40133 2006-12-24 Jim Meyering <jim@meyering.net>
40135 Work around an fchownat bug in glibc-2.4:
40136 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40137 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40138 in spite of the -P option.
40139 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40141 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40142 * modules/openat (Files): Add lib/fchownat.c.
40143 * lib/openat.c (fchownat): Don't define here. Move to...
40144 * lib/fchownat.c: ...this new file.
40146 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
40148 Fix bug reported by Bruno Haible in
40149 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40150 where quotearg.c didn't compile on Mac OS X 10.2 because it
40151 lacks <wchar.h> and wint_t.
40152 * lib/wctype_.h (__wctype_wint_t): New type.
40153 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40154 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40155 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40156 Arg is now of type __wctype_wint_t, not wint_t.
40157 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40158 substitute HAVE_WINT_T.
40159 * modules/wctype (Files): Add m4/wint_t.m4.
40160 (wctype.h): Substitute HAVE_WINT_T.
40162 2006-12-23 Bruno Haible <bruno@clisp.org>
40164 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40166 2006-12-23 Bruno Haible <bruno@clisp.org>
40168 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40170 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40173 2006-12-22 Bruno Haible <bruno@clisp.org>
40175 * lib/copy-file.c: Include acl.h.
40176 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40177 Close the file descriptors only after being done with copy_acl.
40178 * modules/copy-file (Depends-on): Add acl.
40180 2006-12-22 Bruno Haible <bruno@clisp.org>
40182 * gnulib-tool (SED): New variable.
40183 Use $SED instead of sed everywhere.
40185 2006-12-22 Bruno Haible <bruno@clisp.org>
40187 * modules/no-c++: New file.
40188 * m4/no-c++.m4: New file.
40189 * MODULES.html.sh (Support for building libraries and executables):
40192 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
40194 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40195 Include <limits.h>, and use its INT_MAX to rewrite the
40196 j loop so that it does not overflow 'int'. Problem reported by
40198 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40199 Play it safe by shifting left by 1 rather than multiplying by 2,
40200 as GCC is less likely to optimize this away when the value
40201 is signed (when it assumes overflow leads to undefined behavior).
40202 Also, don't assume time_t uses two's complement.
40204 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
40206 * MODULES.html.sh: New module wctype.
40207 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40208 * lib/fnmatch.c: Don't bother to include <wchar.h> before
40209 <wctype.h>, since the new wctype module should fix this.
40210 * lib/quotearg.c: Include <wctype.h> unconditionally, since
40211 the wctype module should arrange for it.
40212 * lib/regex_internal.h: Likewise.
40213 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40214 since the wctype module should handle this now.
40215 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40216 * modules/fnmatch (Depends-on): Add wctype.
40217 * modules/quotearg (Depends-on): Likewise.
40218 * modules/regex (Depends-on): Likewise.
40220 2006-12-19 Bruno Haible <bruno@clisp.org>
40222 * lib/strdup.h [C++]: Wrap definitions in extern "C".
40223 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40225 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40227 * modules/savewd (Depends-on): Fix dependency on fcntl.
40229 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
40231 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40232 conforms to C99, rather than relying on the user's environment
40233 setting of STDINT_H.
40235 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
40236 and Eric Blake <ebb9@byu.net>
40238 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40239 This is more consistent with the other defines here.
40240 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40241 Port to z/OS. Problem reported by Paul Gilmartin.
40242 Change local vars to use gl_ prefix rather than ac_.
40243 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40244 with other defines.
40245 * modules/double-slash-root: New module.
40246 * modules/dirname (Files): Remove m4/double-slash-root.m4.
40247 (Depends-on): Add double-slash-root.
40248 * MODULES.html.sh (File system functions): Mention new module.
40250 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
40252 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40253 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40254 This is for the benefit of gzip, which doesn't do i18n.
40256 2006-12-12 Jim Meyering <jim@meyering.net>
40258 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40259 Reported by Andreas Schwab <schwab@suse.de>.
40261 2006-12-12 Bruno Haible <bruno@clisp.org>
40263 Merge these changes.
40264 2006-09-05 Bruno Haible <bruno@clisp.org>
40265 * lib/iconvme.c (iconv_string): No need to save and restore errno when
40266 iconv_alloc succeeded.
40267 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40268 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40269 test for " && dest " at the end - dest is always != NULL there. Call
40270 iconv with 4xNULL arguments initially, to reset the state. Call iconv
40271 with 2xNULL arguments, also to flush the state storage. Handle the
40272 IRIX iconv behaviour. Realloc the final result, to throw away unused
40275 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
40277 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40278 and fchmodat unconditionally, since glibc 2.4 has them.
40279 Problem reported by Arkadiusz Miskiewicz.
40281 2006-12-10 Bruno Haible <bruno@clisp.org>
40283 * gnulib-tool (func_import): Show the include files only for those
40284 modules that are copied and specified.
40285 Reported by Karl Berry.
40287 2006-12-08 Jim Meyering <jim@meyering.net>
40289 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40290 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
40292 * build-aux/announce-gen: Add two new options, both optional:
40293 --bootstrap-tools=TOOL_LIST
40294 a comma-separated list of tools, e.g.,
40295 autoconf,automake,bison,gnulib
40296 --gnulib-snapshot-date=DATE
40297 if gnulib is in the bootstrap tool list,
40298 then report this as the snapshot date.
40299 If not specified, use the current date/time.
40300 If you specify a date here, be sure it's UTC.
40302 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40304 * tests/test-argp-2.sh: Fix test to match actual output.
40305 (func_compare): Fix sed script to be portable.
40307 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
40309 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40310 workaround for this case. It is not autoconfigured now; offhand
40311 it's hard to see how to autoconfigure it.
40313 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
40315 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40316 a directory that is about to be chowned. Such a directory's
40317 initial file permissions should permit the owner only and this
40318 should not be changed until after the chown, since the group and
40319 other bits would be incorrect if they granted permission before
40322 Fix porting problem for iswctype reported by Georg Schwarz in:
40323 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40324 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40325 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40326 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40327 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40329 2006-12-03 Jim Meyering <jim@meyering.net>
40331 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40332 p->fts_statp may not yet be defined.
40333 (fts_read): Instead, set it in the caller, once p->fts_statp is
40334 sure to be defined, and corresponds to a top-level directory.
40335 This bug made du -x fail. Here's the coreutils test case:
40336 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40337 Reported by Mike Frysinger.
40339 2006-12-01 Jim Meyering <jim@meyering.net>
40341 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40342 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40343 Reported by Simon Josefsson.
40345 2006-11-30 Jim Meyering <jim@meyering.net>
40347 * m4/warning.m4: Use the all-permissive copyright notice
40348 recommended by RMS (rather than LGPL).
40349 * m4/vararrays.m4: Likewise.
40350 * m4/flexmember.m4: Likewise.
40352 2006-11-29 Bruno Haible <bruno@clisp.org>
40354 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40355 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40357 Reported by Simon Josefsson <simon@josefsson.org>.
40359 2006-11-28 James Youngman <jay@gnu.org>
40361 * README: Advise users that they might find the bug-gnulib@gnu.org
40362 and autotools-announce@gnu.org mailing lists useful.
40364 2006-11-28 Bruno Haible <bruno@clisp.org>
40366 * m4/ptrdiff_max.m4: Remove file.
40368 2006-11-21 Bruno Haible <bruno@clisp.org>
40370 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40372 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40373 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40375 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40376 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40378 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40380 2006-11-28 Jim Meyering <jim@meyering.net>
40382 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40383 warning from "gcc -Wshadow" about shadowing the builtin.
40385 2006-11-27 Bruno Haible <bruno@clisp.org>
40387 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40389 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40391 2006-11-27 Bruno Haible <bruno@clisp.org>
40392 Paul Eggert <eggert@cs.ucla.edu>
40394 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40396 2006-11-26 Bruno Haible <bruno@clisp.org>
40398 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40399 noinst_LTLIBRARIES.
40401 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
40402 Bruno Haible <bruno@clisp.org>
40404 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40405 if compiling with "gcc -ansi".
40407 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
40409 Fix some incompatibilities with gcc -ansi -pedantic.
40410 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40411 if compiling pedantically with GCC, unless it's C99 or later.
40412 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40413 it mishandles gcc -ansi -pedantic as well.
40414 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40416 * lib/regexec.c (check_node_accept_bytes): Don't use auto
40417 initializers for struct if -pedantic, unless it's C99 or later.
40419 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
40421 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40422 Don't close an fd more than once. Identical atimes indicate
40423 success, not failure.
40425 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
40427 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40429 2006-11-23 Jim Meyering <jim@meyering.net>
40431 * build-aux/announce-gen: New file. From coreutils.
40433 2006-11-22 Jim Meyering <jim@meyering.net>
40435 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40436 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40437 (fts_read): Use a temporary to narrow the overused st_size member
40438 before using it in a switch statement. Reported by Matthew Woehlke.
40440 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40441 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40443 2006-11-20 Bruno Haible <bruno@clisp.org>
40445 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40446 changequote instead of pairs of brackets.
40447 Reported by Andreas Schwab <schwab@suse.de>.
40449 2006-11-21 Jim Meyering <jim@meyering.net>
40451 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40452 so as to remain compatible with older compilers.
40453 Patch from Michael Deutschmann.
40455 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40457 * MODULES.html.sh (File system functions): Add openat.
40459 * lib/openat.h (rpl_fstatat): New macro, if
40460 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40461 (fstatat): Define to rpl_fstatat under the same conditions,
40462 unless COMPILING_FSTATAT.
40463 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40464 seems to have the bug.
40465 * lib/fstatat.c: New file.
40466 * modules/openat (Files): Add it.
40468 2006-11-20 Bruno Haible <bruno@clisp.org>
40470 * Makefile: New file.
40472 2006-11-20 Jim Meyering <jim@meyering.net>
40474 The beginnings of syntax-related checks for gnulib.
40475 * lib/Makefile: New file.
40476 * lib/t-idcache: New script. Ensure that the two halves of
40477 idcache.c stay in sync.
40479 * lib/idcache.c: Adjust comments in user- and group- portions to
40480 be more accurate, and to be consistent with one another.
40482 2006-11-20 Jim Meyering <jim@meyering.net>
40484 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40485 continue using the flexible array member (thus, this module performs
40486 half as many malloc calls), with the addition that...
40487 (getgroup, getuser): Consistently record a non-match via an empty
40488 "name" string, and map an empty string match to a NULL return value.
40489 * modules/idcache (Depends-on): Re-add flexmember.
40491 * lib/idcache.c (getuser): Remove all uses of the register keyword.
40492 (getuidbyname, getgroup, getgidbyname): Likewise.
40494 Use cleaner syntax: NULL rather than 0.
40495 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40497 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40499 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40500 It mishandled the case where the group was missing.
40501 Problem reported by Greg Schafer.
40502 * modules/idcache: Likewise.
40504 2006-11-18 Jim Meyering <jim@meyering.net>
40506 * check-module (%exempt_header): Add exception for some
40507 conditionally-included headers.
40509 * modules/i-ring (Depends-on): Add verify.
40510 (License): Change to LGPL.
40512 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
40514 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40515 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40516 and inttostr.h. Use snprintf rather than uinttostr, so that
40517 LGPLed code doesn't depend on GPLed.
40519 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
40521 * modules/inline (License): Change from GPL to LGPL.
40523 2006-11-17 Jim Meyering <jim@meyering.net>
40525 * modules/d-type (License): Switch to LGPL.
40527 2006-11-15 Bruno Haible <bruno@clisp.org>
40529 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40531 2006-11-15 Eric Blake <ebb9@byu.net>
40533 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40534 the module dependency.
40536 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40537 Bruno Haible <bruno@clisp.org>
40539 * gnulib-tool (func_create_testdir): Add license consistency check.
40541 2006-11-15 Eric Blake <ebb9@byu.net>
40543 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40544 random "(cached)" in configure output.
40546 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40548 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40549 test for conforming inttypes.h is both announced and cached.
40551 * MODULES.html.sh (seen_modules, seen_files): New variables.
40552 (func_module): Rewrite to use a few less gnulib-tool and sed
40553 invocations. Avoid a couple of quadratic algorithms for ...
40554 (missed_modules, missed_files): ... these, with ...
40555 (func_append, func_tmpdir): ... these new functions, from
40556 gnulib-tool. Analogously, install traps for cleanup.
40558 * tests/test-gc.c (main): Remove unused variables.
40559 * tests/test-read-file.c: Include stdlib.h, for 'free'.
40561 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
40563 * modules/inttostr (License): Change to LGPL.
40565 2006-11-14 Eric Blake <ebb9@byu.net>
40567 * modules/tempname (License): Change to LGPL.
40569 2006-11-14 Eric Blake <ebb9@byu.net>
40571 * doc/functions.texi (Function Portability): *printf functions on
40572 Cygwin now understand all POSIX size specifiers.
40574 2006-11-14 Bruno Haible <bruno@clisp.org>
40576 * modules/c-ctype (License): Change to LGPL.
40578 2006-11-12 Bruno Haible <bruno@clisp.org>
40580 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40581 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40582 for GNOME libraries, for which the include files are installed in
40583 subdirectories of $prefix/include.
40585 2006-11-12 Bruno Haible <bruno@clisp.org>
40587 * m4/lib-link.m4: Require at least autoconf-2.54.
40588 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40589 name to underscores for the --with option.
40591 2006-11-13 Bruno Haible <bruno@clisp.org>
40593 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40594 the tests directory.
40595 Reported by Ralf Wildenhues.
40597 2006-11-13 Bruno Haible <bruno@clisp.org>
40599 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40600 (func_emit_initmacro_end): Undo the override here.
40601 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40602 Works around the famous automake error in coreutils.
40604 2006-11-13 Eric Blake <ebb9@byu.net>
40606 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40607 element, not its node.
40609 2006-11-12 Bruno Haible <bruno@clisp.org>
40611 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40612 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40614 2006-11-12 Bruno Haible <bruno@clisp.org>
40616 * gnulib-tool: New option --local-symlink.
40617 (func_usage): Document it.
40618 (lsymbolic): New variable.
40619 (func_import, func_create_testdir): If --symlink was not specified,
40620 test whether --local-symlink was specified and the file comes from
40621 the local_gnulib_dir.
40623 2006-11-12 Bruno Haible <bruno@clisp.org>
40625 * gnulib-tool (func_ln): New function.
40626 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40628 2006-11-12 Bruno Haible <bruno@clisp.org>
40630 Finish support for source files in subdirectories.
40631 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40632 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40634 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40636 2006-11-12 Bruno Haible <bruno@clisp.org>
40638 * gnulib-tool (func_get_automake_snippet): Synthesize also an
40639 EXTRA_lib_SOURCES augmentation.
40640 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40642 2006-11-12 Jim Meyering <jim@meyering.net>
40644 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40645 file descriptors. This also averts a failure on systems with
40646 native openat support when a traversed directory lacks "x" access.
40647 * lib/fts_.h: Include "i-ring.h"
40648 (struct FTS) [fts_fd_ring]: New member.
40649 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40650 (FCHDIR): Add parentheses.
40651 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40652 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
40653 When descending, rather than simply closing the previous
40654 fts_cwd_fd value, push that file descriptor onto the ring.
40655 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40656 (fts_open): Initialize the new fd_ring member.
40657 (fts_close): Clear the ring.
40658 (fts_safe_changedir): When possible, use our new fd_ring to skip
40659 the diropen and fstat and dev/ino comparison that would normally
40660 accompany a virtual `chdir ("..")'.
40662 * modules/fts (Depends-on): Add i-ring.
40663 * modules/i-ring: New module.
40664 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40665 * m4/i-ring.m4: New file.
40667 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40669 * gnulib-tool (func_create_testdir): Fix replacement of
40670 `build-aux' in configure.ac. Run autotools in gltests
40672 (func_create_testdir, func_create_megatestdir, test): There is
40673 no need for '--force' in most autotool invocations in a new
40674 tree. Actually fail the whole test if any of the tools, or the
40675 configure or make stages fail.
40677 Sync from Automake.
40678 * build-aux/gnupload: Revert last change. Add pointer to upload
40679 instructions of the GNU Maintenance Instructions.
40680 Suggestion by Karl Berry.
40682 2006-11-10 Jim Meyering <jim@meyering.net>
40684 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40686 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40688 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40689 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40690 (bind_textdomain_codeset) [! ENABLE_NLS]:
40691 Evaluate all the arguments. That way, callers get compatible behavior
40692 if the arguments have side effects. Also, it avoids some GCC
40693 diagnostics in some cases; Joel E. Denny reported problems when Bison
40694 was configured with --enable-gcc-warnigs.
40696 2006-11-10 Jim Meyering <jim@meyering.net>
40698 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40699 relevant options in CFLAGS (like -O, -fno-inline) are taken into
40702 2006-11-10 Jim Meyering <jim@meyering.net>
40704 * modules/inline: New file/module.
40705 * modules/xalloc (Files): Remove m4/inline.m4.
40706 (Depends-on): Add inline, instead.
40707 * modules/oset: Likewise.
40708 * modules/list: Likewise.
40710 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40712 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40713 Problem reported by Matthew Woehlke.
40715 2006-11-09 Bruno Haible <bruno@clisp.org>
40717 * lib/tempname.c (gen_tempname): Remove variant that invokes
40719 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40722 2006-11-08 Bruno Haible <bruno@clisp.org>
40724 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40725 to 'yes' instead of 'cross-compiling'.
40727 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
40729 * lib/quotearg.h (quotearg_free): New decl.
40730 * lib/quotearg.c (quotearg_free): New function.
40731 (slot0, nslots, slotvec0, slotvec):
40732 Now file-scope so that quotearg_free can get at them.
40734 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40736 Sync from Automake.
40737 * build-aux/gnupload: Add missing 'gnu' to example URL.
40738 Report by Karl Berry.
40740 2006-11-08 Bruno Haible <bruno@clisp.org>
40742 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40743 Suggested by Paul Eggert.
40745 2006-11-08 Jim Meyering <jim@meyering.net>
40747 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40748 It's already included if !_LIBC.
40749 (fts_safe_changedir): Add a comment.
40751 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40753 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40754 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40757 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40758 definitions up, to avoid colliding with change below.
40759 (static_inline) [HAVE_INLINE]: New macro.
40760 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40761 Provide extern decls when !HAVE_INLINE. Do not define unless
40762 static_inline is defined, either by us or by xmalloc.c. Use
40763 static_inline rather than static inline.
40764 (XCALLOC): Optimize sizeof(T) = 1 case.
40765 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40767 2006-11-07 Bruno Haible <bruno@clisp.org>
40769 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40770 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40772 * modules/xalloc (Files): Add m4/inline.m4.
40774 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40776 * README: Fix typo.
40777 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40778 (Miscellanous Notes): ...from this.
40780 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40782 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40783 Mention that offsetof should be used instead of sizeof.
40786 2006-11-07 Bruno Haible <bruno@clisp.org>
40788 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40790 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40792 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40793 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40794 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40795 (gl_tree_add_before, gl_tree_add_after):
40796 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40797 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40798 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40799 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40800 (gl_linked_add_after, gl_linked_add_at): Likewise.
40801 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40802 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40803 (gl_tree_add_before, gl_tree_add_after): Likewise.
40804 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40805 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40806 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40808 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40810 * lib/gl_oset.h: Use C comment style, not C++ comment style.
40812 2006-11-06 Bruno Haible <bruno@clisp.org>
40814 * m4/inline.m4: New file.
40815 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40816 * modules/list (Files): Add m4/inline.m4.
40817 * modules/oset (Files): Likewise.
40819 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40821 * lib/idcache.c: Include <stddef.h>, for offsetof.
40822 (struct userid.name): Change from char * to a flexible array member.
40824 * modules/idcache (Depends-on): Add flexmember.
40826 * MODULES.html.sh (Core language properties): New module flexmember.
40827 * modules/flexmember, m4/flexmember.m4: New files.
40829 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40830 inline functions that are identical with the old xnmalloc_inline,
40831 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
40832 that we can avoid some unnecessary integer multiplications and
40833 divisions in the common case where the element size is known at
40835 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40837 (xnboundedmalloc): Remove.
40838 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40839 arguments, for consistency with rest of this header.
40840 (xcharalloc): Rewrite using XNMALLOC.
40841 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40842 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
40843 versions have been moved to lib/xalloc.h and renamed to be the
40844 non-*_inline versions.
40845 (xmalloc, xrealloc): Implement without reference to the xnmalloc
40846 and xnrealloc functions, since those functions are now inline and
40848 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40849 renaming described above.
40850 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40851 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
40852 captures the dependency in AC_C_INLINE.
40854 New module canonicalize-lgpl, proposed by Charles Wilson in
40855 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40856 with a few small changes afterwards.
40857 * MODULES.html.sh (File system functions): New module
40859 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40860 and canonicalize_file_name.
40861 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40862 * modules/canonicalize-lgpl: New files.
40864 2006-11-05 Bruno Haible <bruno@clisp.org>
40866 * gnulib-tool (func_import, func_create_testdir): Create directories
40867 also for files in subdirectories of lib/.
40869 2006-11-05 Bruno Haible <bruno@clisp.org>
40871 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40874 2006-11-03 Bruno Haible <bruno@clisp.org>
40876 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40877 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40878 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40879 (xnboundedmalloc): New inline function.
40880 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40881 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40883 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40885 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40886 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40887 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40889 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40890 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40892 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40893 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40894 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40896 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40897 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40898 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40899 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40900 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40901 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40902 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40904 2006-11-03 Bruno Haible <bruno@clisp.org>
40906 * lib/c-ctype.h [C++]: Define functions without name mangling.
40907 * lib/fwriteerror.h [C++]: Likewise.
40908 * lib/gcd.h [C++]: Likewise.
40909 * lib/linebreak.h [C++]: Likewise.
40911 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
40913 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40914 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40915 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40916 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40917 Check for functions and headers just once.
40918 Check for declaration of canonicalize_file_name.
40919 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40921 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
40923 * gnulib-tool (func_import): Fix typo in actioncmd.
40925 2006-11-02 Bruno Haible <bruno@clisp.org>
40927 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40928 newline sequence in the Makefile.am snippet as a space, like "make"
40930 Reported by Roger Persson <perrog@gmail.com>.
40932 2006-11-01 Bruno Haible <bruno@clisp.org>
40934 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40935 already declared in <string.h>.
40936 * lib/strcase.h (strncasecmp): Don't declare it if yes.
40938 2006-11-01 Bruno Haible <bruno@clisp.org>
40940 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40941 * lib/strcase.h: Include <string.h>.
40942 (strcasecmp): Define to rpl_strcasecmp here.
40944 2006-11-01 Bruno Haible <bruno@clisp.org>
40946 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40948 2006-11-01 Eric Blake <ebb9@byu.net>
40950 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40952 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40954 2006-10-29 Bruno Haible <bruno@clisp.org>
40956 Make it compile in C++ mode.
40957 * lib/full-write.c (full_rw): Add a cast.
40959 2006-11-01 Bruno Haible <bruno@clisp.org>
40961 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40962 be POSIX compliant.
40963 Reported by Roger Persson <perrog@gmail.com>.
40965 2006-11-01 Eric Blake <ebb9@byu.net>
40967 * lib/getopt_.h: Fix comments.
40969 2006-10-31 Eric Blake <ebb9@byu.net>
40971 * modules/tmpdir (Depends-on): Add sys_stat.
40972 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40973 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40974 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40975 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40978 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
40980 Avoid some C++ diagnostics reported by Bruno Haible.
40981 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40983 (quotearg_alloc): Use xcharalloc rather than xmalloc.
40984 (struct slotvec): Move to top level.
40985 (quotearg_n_options): Rewrite to avoid xmalloc.
40986 * lib/xalloc.h (xcharalloc): New function.
40987 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40988 [defined __cplusplus]: Add function template that provides result
40989 type propagation. This part of the change is from Bruno Haible.
40991 2006-10-29 Bruno Haible <bruno@clisp.org>
40993 Make it compile in C++ mode.
40994 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40995 * lib/strnlen1.c (strnlen1): Cast memchr result.
40996 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40997 * lib/clean-temp.c (string_equals, string_hash): Add casts.
40998 (create_temp_dir): Rename local variable 'template'.
40999 (compile_csharp_using_sscli): Add cast.
41000 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41001 * lib/findprog.c (find_in_path): Likewise.
41002 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41003 * lib/wait-process.c (register_slave_subprocess): Likewise.
41005 2006-10-22 Bruno Haible <bruno@clisp.org>
41007 * modules/tsearch: New file.
41008 * lib/tsearch.h: New file.
41009 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41010 * m4/tsearch.m4: New file.
41011 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41013 2006-10-29 Eric Blake <ebb9@byu.net>
41015 * lib/arcfour.c: Assume config.h.
41016 * lib/arctwo.c: Likewise.
41017 * lib/base64.c: Likewise.
41018 * lib/check-version.c: Likewise.
41019 * lib/crc.c: Likewise.
41020 * lib/des.c: Likewise.
41021 * lib/gc-gnulib.c: Likewise.
41022 * lib/gc-libgcrypt.c: Likewise.
41023 * lib/gc-pbkdf2-sha1.c: Likewise.
41024 * lib/getaddrinfo.c: Likewise.
41025 * lib/getdelim.c: Likewise.
41026 * lib/getline.c: Likewise.
41027 * lib/hmac-md5.c: Likewise.
41028 * lib/hmac-sha1.c: Likewise.
41029 * lib/iconvme.c: Likewise.
41030 * lib/md2.c: Likewise.
41031 * lib/md4.c: Likewise.
41032 * lib/memxor.c: Likewise.
41033 * lib/read-file.c: Likewise.
41034 * lib/readline.c: Likewise.
41035 * lib/rijndael-alg-fst.c: Likewise.
41036 * lib/rijndael-api-fst.c: Likewise.
41037 * lib/xgetdomainname.c: Likewise.
41039 2006-10-28 Eric Blake <ebb9@byu.net>
41041 * lib/xstrndup.c: Assume config.h.
41043 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
41045 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41046 stat-macros.h is now for our own macros, whereas stat_h is for
41047 macros in the <sys/stat.h> name space.
41048 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41049 (STAT_MACROS_H): Remove.
41050 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41051 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41052 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41053 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41054 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41055 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41056 Move these macros to ...
41057 * lib/stat_.h: here. Don't include stat-macros.h.
41058 * lib/canonicalize.c: Don't include stat-macros.h.
41059 * lib/chown.c: Likewise.
41060 * lib/euidaccess.c: Likewise.
41061 * lib/file-type.c: Likewise.
41062 * lib/filemode.c: Likewise.
41063 * lib/glob.c: Likewise.
41064 * lib/isapipe.c: Likewise.
41065 * lib/lchown.c: Likewise.
41066 * lib/lstat.c: Likewise.
41067 * lib/mkdir-p.c: Likewise.
41068 * lib/rmdir.c: Likewise.
41069 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41070 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41071 unless mkdir isn't declared, to speed up 'configure'.
41072 Always create sys/stat.h, since it's unlikely any real sys/stat.h
41073 would define all the S_* symbols.
41074 * modules/canonicalize (Depends-on):
41075 Depend on sys_stat, not stat-macros.
41076 * modules/chown: Likewise.
41077 * modules/euidaccess: Likewise.
41078 * modules/filemode: Likewise.
41079 * modules/file-type: Likewise.
41080 * modules/glob: Likewise.
41081 * modules/isapipe: Likewise.
41082 * modules/lchown: Likewise.
41083 * modules/lstat: Likewise.
41084 * modules/mkancesdirs: Likewise.
41085 * modules/rmdir: Likewise.
41086 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41087 * modules/modechange: Likewise.
41088 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41089 (configure.ac): Remove gl_STAT_MACROS.
41090 * modules/sys_stat (Depends-on): Remove stat-macros.
41092 2006-10-27 Bruno Haible <bruno@clisp.org>
41094 * m4/signed.m4: Remove file.
41095 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41097 * modules/vasnprintf (Files): Remove m4/signed.m4.
41099 2006-10-27 Bruno Haible <bruno@clisp.org>
41101 Update to GNU gettext 0.16.
41102 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41103 m4/inttypes-h.m4, m4/signed.m4.
41104 * m4/gettext.m4: Update to GNU gettext 0.16.
41105 * m4/intl.m4: New file, from GNU gettext.
41106 * m4/intldir.m4: New file, from GNU gettext.
41107 * config/srclist.txt: Update
41109 2006-10-27 Eric Blake <ebb9@byu.net>
41111 * MODULES.html.sh: Document tempname.
41112 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41114 (Files): Move lib/tempname.c...
41115 * modules/tempname: ...to this new module.
41116 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41117 (gl_PREREQ_TEMPNAME): Move...
41118 * m4/tempname.m4: ...to this new file.
41119 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41120 * modules/sys_stat (Depends-on): Add stat-macros.
41121 * lib/stat_.h (includes): Pick up stat macros.
41122 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41123 if stat macros are broken.
41124 * lib/tempname.c (includes): No need to include "stat-macros.h".
41125 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41126 (direxists, __path_search) [!_LIBC]: Don't compile these in
41127 gnulib; the tmpdir module covers that.
41128 * lib/tempname.h: New file.
41130 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
41132 * COPYING: Explain how gnulib-tool converts licence headers.
41133 Almost all wording by Eric Blake.
41135 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
41137 * lib/mbchar.h (is_basic_table): Make read-only.
41138 * lib/mbchar.c (is_basic_table): Likewise.
41139 Reported by John Darrington.
41141 2006-10-25 Bruno Haible <bruno@clisp.org>
41143 * lib/progname.h (set_program_name): Undefine before defining.
41145 2006-10-25 Bruno Haible <bruno@clisp.org>
41147 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41148 false for non-gcc C++ compilers.
41149 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41151 2006-10-24 Bruno Haible <bruno@clisp.org>
41153 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41154 iconv implementations like Irix iconv.
41156 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41158 * modules/vararrays: New file.
41159 * m4/vararrays.m4: New file, taken from diffutils.
41160 * MODULES.html.sh: New module vararrays.
41162 2006-10-24 Karl Berry <karl@gnu.org>
41164 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41165 Don't call GNU Unix.
41167 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41169 * users.txt: Add Libtool.
41173 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41175 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41176 to gnulib's policy of including config.h unconditionally.
41178 2006-10-24 Bruno Haible <bruno@clisp.org>
41180 * modules/wcwidth (Files): Add m4/wint_t.m4.
41181 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41182 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41184 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41186 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41187 to pacify GCC with some -W flags enabled. Problem reported by
41190 2006-10-24 Jim Meyering <jim@meyering.net>
41192 * MODULES.html.sh: Remove uinttostr. It's not a module.
41193 Reported by Karl Berry.
41195 2006-10-23 Bruno Haible <bruno@clisp.org>
41197 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41199 2006-10-24 Bruno Haible <bruno@clisp.org>
41201 * lib/gl_list.h: Use C comment style, not C++ comment style.
41203 2006-10-23 Eric Blake <ebb9@byu.net>
41205 * lib/getaddrinfo.c (includes): Add missing include.
41207 2006-10-23 Bruno Haible <bruno@clisp.org>
41208 Paul Eggert <eggert@cs.ucla.edu>
41210 Ability to rename obstack_free.
41211 * lib/obstack.h (__obstack_free): New macro. Declare instead of
41213 (obstack_free): Invoke the __obstack_free macro.
41214 * lib/obstack.c (obstack_free): Use __obstack_free macro.
41216 2006-10-23 Bruno Haible <bruno@clisp.org>
41217 Paul Eggert <eggert@cs.ucla.edu>
41219 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41220 __argc, __argv from the declaration. (They are defined as macros on
41223 2006-10-22 Bruno Haible <bruno@clisp.org>
41225 * doc/gnulib-intro.texi: New file.
41226 * doc/gnulib.texi: Include it.
41228 2006-10-21 Bruno Haible <bruno@clisp.org>
41230 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41231 "Introduction", "Miscellanous Notes", "Particular Modules".
41233 2006-10-21 Bruno Haible <bruno@clisp.org>
41235 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41236 Change mostlyclean-local rule to avoid sh syntax error from bash
41237 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41239 2006-10-23 Jim Meyering <jim@meyering.net>
41241 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41242 in place of snprintf.
41244 * modules/inttostr (Files): Add lib/uinttostr.c.
41245 * lib/uinttostr.c (inttostr): New file/function.
41246 * lib/inttostr.h (uinttostr): Declare.
41247 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41248 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41250 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
41252 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
41254 * lib/canonicalize.c (ELOOP): Define if not already defined.
41255 Problem reported by Bruno Haible in
41256 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41258 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
41260 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41261 Problem reported by Perry Smith and Ville Laurikari.
41263 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41266 2006-10-19 Bruno Haible <bruno@clisp.org>
41268 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41271 2006-10-19 Bruno Haible <bruno@clisp.org>
41273 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41276 2006-10-19 Bruno Haible <bruno@clisp.org>
41278 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41280 2006-10-19 Bruno Haible <bruno@clisp.org>
41282 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41285 2006-10-19 Bruno Haible <bruno@clisp.org>
41287 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41290 2006-10-19 Bruno Haible <bruno@clisp.org>
41292 * gnulib-tool (func_create_testdir): Don't include ftruncate and
41293 mountlist by default.
41295 2006-10-16 Bruno Haible <bruno@clisp.org>
41297 * lib/c-strstr.c: Include c-strstr.h.
41299 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
41301 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41304 2006-10-18 Bruno Haible <bruno@clisp.org>
41306 * lib/lock.h [C++]: Wrap definitions in extern "C".
41308 2006-10-18 Bruno Haible <bruno@clisp.org>
41310 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41313 2006-10-18 Bruno Haible <bruno@clisp.org>
41315 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41317 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
41319 * lib/xstrtol.h: Include gettext.h.
41320 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41321 Problem reported by Eric Blake.
41322 * modules/xstrtol (Depends-on): Add gettext-h.
41324 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
41326 * lib/strftime.c (advance): New macro.
41327 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
41328 incomplete type, so you can't add 0 to it. Problem and patch
41329 reported by Eelco Dolstra for dietlibc.
41331 2006-10-18 Jim Meyering <jim@meyering.net>
41333 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41334 type for a local, and rename it: s/up/user_proc/.
41336 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
41338 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41339 READ_UTMP_USER_PROCESS.
41340 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41342 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
41344 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41345 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41347 2006-10-17 Eric Blake <ebb9@byu.net>
41349 * lib/sigprocmask.c (sigprocmask): Fix typo.
41351 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41353 * modules/clean-temp (Makefile.am): Don't add to make output...
41354 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41357 2006-10-17 Bruno Haible <bruno@clisp.org>
41359 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41360 differently if DEFAULT_TEXT_DOMAIN is set.
41362 2006-10-16 Bruno Haible <bruno@clisp.org>
41364 * lib/clean-temp.c: Include fwriteerror.h.
41366 2006-10-16 Bruno Haible <bruno@clisp.org>
41368 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41370 2006-10-16 Bruno Haible <bruno@clisp.org>
41372 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41373 * lib/sigprocmask.h: Include <sys/types.h>.
41374 (sigset_t): Use the system's definition if present.
41376 2006-10-17 Eric Blake <ebb9@byu.net>
41378 * lib/xvasprintf.c (includes): Assume config.h.
41379 * lib/xasprintf.c (includes): Likewise.
41381 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
41383 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41384 at least as wide as intmax_t.
41386 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
41388 (Imported from Automake.)
41389 * build-aux/gnupload: Update to version 1.1 of directive file.
41391 2006-10-16 Eric Blake <ebb9@byu.net>
41393 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41394 match Automake 1.10a.
41396 2006-10-14 Bruno Haible <bruno@clisp.org>
41398 * modules/sigprocmask: New file.
41399 * lib/sigprocmask.h: New file.
41400 * lib/sigprocmask.c: New file.
41401 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41402 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41403 request sigprocmask.o.
41404 (gl_PREREQ_SIGPROCMASK): New macro.
41405 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41406 (Depends-on): Add sigprocmask.
41407 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41408 gt_SIGNALBLOCKING. Test for 'raise' only once.
41409 * lib/fatal-signal.c: Include sigprocmask.h.
41410 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41411 unblock_fatal_signals): Define always.
41412 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41415 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
41417 Sync from Automake.
41418 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41419 which incorrectly sets the mode of an existing destination
41420 directory. In some cases the unpatched install-sh could do the
41421 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41422 system. We hope this is rare in practice, but it's clearly worth
41423 fixing. Problem reported by Alex Unleashed in
41424 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41425 Also, don't bother to check for -m bugs unless we're using -m;
41426 suggested by Stepan Kasal.
41428 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41430 Sync from Automake.
41431 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41432 `-c' flag, so they appear at the same position as in %FASTDEP%
41433 mode in depend2.am. Fixes build failure for FreeBSD's c89,
41434 which ignores unknown options only after the first non-option.
41435 Bug report against M4 by Nelson H. F. Beebe.
41437 2006-10-13 Jim Meyering <jim@meyering.net>
41439 Fix a bug in yesterday's change.
41440 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41441 p->fts_statp->st_dev would be used uninitialized.
41442 Ensures that we always call fts_stat on the very first entry.
41443 Miklos Szeredi reported that find -xdev stopped working.
41445 2006-10-12 Bruno Haible <bruno@clisp.org>
41447 * gnulib-tool (func_get_automake_snippet): Append an automatically
41448 computed EXTRA_DIST augmentation.
41449 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41450 * modules/alloca-opt (Makefile.am): Likewise.
41451 * modules/allocsa (Makefile.am): Likewise.
41452 * modules/arcfour (Makefile.am): Likewise.
41453 * modules/arctwo (Makefile.am): Likewise.
41454 * modules/argmatch (Makefile.am): Likewise.
41455 * modules/argz (Makefile.am): Likewise.
41456 * modules/atexit (Makefile.am): Likewise.
41457 * modules/backupfile (Makefile.am): Likewise.
41458 * modules/byteswap (Makefile.am): Likewise.
41459 * modules/c-strtod (Makefile.am): Likewise.
41460 * modules/c-strtold (Makefile.am): Likewise.
41461 * modules/calloc (Makefile.am): Likewise.
41462 * modules/canon-host (Makefile.am): Likewise.
41463 * modules/canonicalize (Makefile.am): Likewise.
41464 * modules/chdir-long (Makefile.am): Likewise.
41465 * modules/chdir-safer (Makefile.am): Likewise.
41466 * modules/check-version (Makefile.am): Likewise.
41467 * modules/chown (Makefile.am): Likewise.
41468 * modules/cloexec (Makefile.am): Likewise.
41469 * modules/close-stream (Makefile.am): Likewise.
41470 * modules/closeout (Makefile.am): Likewise.
41471 * modules/crc (Makefile.am): Likewise.
41472 * modules/csharpexec (Makefile.am): Likewise.
41473 * modules/cycle-check (Makefile.am): Likewise.
41474 * modules/des (Makefile.am): Likewise.
41475 * modules/dev-ino (Makefile.am): Likewise.
41476 * modules/dirfd (Makefile.am): Likewise.
41477 * modules/dirname (Makefile.am): Likewise.
41478 * modules/dup2 (Makefile.am): Likewise.
41479 * modules/eealloc (Makefile.am): Likewise.
41480 * modules/error (Makefile.am): Likewise.
41481 * modules/euidaccess (Makefile.am): Likewise.
41482 * modules/exclude (Makefile.am): Likewise.
41483 * modules/exitfail (Makefile.am): Likewise.
41484 * modules/fcntl-safer (Makefile.am): Likewise.
41485 * modules/fcntl (Makefile.am): Likewise.
41486 * modules/file-type (Makefile.am): Likewise.
41487 * modules/fileblocks (Makefile.am): Likewise.
41488 * modules/filemode (Makefile.am): Likewise.
41489 * modules/filenamecat (Makefile.am): Likewise.
41490 * modules/fnmatch (Makefile.am): Likewise.
41491 * modules/fopen-safer (Makefile.am): Likewise.
41492 * modules/fpending (Makefile.am): Likewise.
41493 * modules/fprintftime (Makefile.am): Likewise.
41494 * modules/free (Makefile.am): Likewise.
41495 * modules/fsusage (Makefile.am): Likewise.
41496 * modules/ftruncate (Makefile.am): Likewise.
41497 * modules/fts (Makefile.am): Likewise.
41498 * modules/gc-arcfour (Makefile.am): Likewise.
41499 * modules/gc-des (Makefile.am): Likewise.
41500 * modules/gc-hmac-md5 (Makefile.am): Likewise.
41501 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41502 * modules/gc-md4 (Makefile.am): Likewise.
41503 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41504 * modules/gc-sha1 (Makefile.am): Likewise.
41505 * modules/gc (Makefile.am): Likewise.
41506 * modules/getaddrinfo (Makefile.am): Likewise.
41507 * modules/getcwd (Makefile.am): Likewise.
41508 * modules/getdelim (Makefile.am): Likewise.
41509 * modules/getdomainname (Makefile.am): Likewise.
41510 * modules/getgroups (Makefile.am): Likewise.
41511 * modules/gethostname (Makefile.am): Likewise.
41512 * modules/gethrxtime (Makefile.am): Likewise.
41513 * modules/getline (Makefile.am): Likewise.
41514 * modules/getloadavg (Makefile.am): Likewise.
41515 * modules/getlogin_r (Makefile.am): Likewise.
41516 * modules/getndelim2 (Makefile.am): Likewise.
41517 * modules/getopt (Makefile.am): Likewise.
41518 * modules/getpagesize (Makefile.am): Likewise.
41519 * modules/getpass-gnu (Makefile.am): Likewise.
41520 * modules/getpass (Makefile.am): Likewise.
41521 * modules/getsubopt (Makefile.am): Likewise.
41522 * modules/gettime (Makefile.am): Likewise.
41523 * modules/gettimeofday (Makefile.am): Likewise.
41524 * modules/getugroups (Makefile.am): Likewise.
41525 * modules/getusershell (Makefile.am): Likewise.
41526 * modules/glob (Makefile.am): Likewise.
41527 * modules/group-member (Makefile.am): Likewise.
41528 * modules/hard-locale (Makefile.am): Likewise.
41529 * modules/hash (Makefile.am): Likewise.
41530 * modules/hmac-md5 (Makefile.am): Likewise.
41531 * modules/hmac-sha1 (Makefile.am): Likewise.
41532 * modules/human (Makefile.am): Likewise.
41533 * modules/idcache (Makefile.am): Likewise.
41534 * modules/imaxabs (Makefile.am): Likewise.
41535 * modules/imaxdiv (Makefile.am): Likewise.
41536 * modules/inet_ntop (Makefile.am): Likewise.
41537 * modules/inet_pton (Makefile.am): Likewise.
41538 * modules/intprops (Makefile.am): Likewise.
41539 * modules/inttostr (Makefile.am): Likewise.
41540 * modules/inttypes (Makefile.am): Likewise.
41541 * modules/isapipe (Makefile.am): Likewise.
41542 * modules/javaversion (Makefile.am): Likewise.
41543 * modules/lchmod (Makefile.am): Likewise.
41544 * modules/lchown (Makefile.am): Likewise.
41545 * modules/localcharset (Makefile.am): Likewise.
41546 * modules/long-options (Makefile.am): Likewise.
41547 * modules/lstat (Makefile.am): Likewise.
41548 * modules/malloc (Makefile.am): Likewise.
41549 * modules/mathl (Makefile.am): Likewise.
41550 * modules/mbchar (Makefile.am): Likewise.
41551 * modules/md2 (Makefile.am): Likewise.
41552 * modules/md4 (Makefile.am): Likewise.
41553 * modules/md5 (Makefile.am): Likewise.
41554 * modules/memcasecmp (Makefile.am): Likewise.
41555 * modules/memchr (Makefile.am): Likewise.
41556 * modules/memcmp (Makefile.am): Likewise.
41557 * modules/memcoll (Makefile.am): Likewise.
41558 * modules/memcpy (Makefile.am): Likewise.
41559 * modules/memmem (Makefile.am): Likewise.
41560 * modules/memmove (Makefile.am): Likewise.
41561 * modules/mempcpy (Makefile.am): Likewise.
41562 * modules/memrchr (Makefile.am): Likewise.
41563 * modules/memset (Makefile.am): Likewise.
41564 * modules/memxor (Makefile.am): Likewise.
41565 * modules/mkancesdirs (Makefile.am): Likewise.
41566 * modules/mkdir-p (Makefile.am): Likewise.
41567 * modules/mkdir (Makefile.am): Likewise.
41568 * modules/mkdtemp (Makefile.am): Likewise.
41569 * modules/mkstemp (Makefile.am): Likewise.
41570 * modules/mktime (Makefile.am): Likewise.
41571 * modules/modechange (Makefile.am): Likewise.
41572 * modules/mountlist (Makefile.am): Likewise.
41573 * modules/nanosleep (Makefile.am): Likewise.
41574 * modules/obstack (Makefile.am): Likewise.
41575 * modules/openat (Makefile.am): Likewise.
41576 * modules/pagealign_alloc (Makefile.am): Likewise.
41577 * modules/pathmax (Makefile.am): Likewise.
41578 * modules/physmem (Makefile.am): Likewise.
41579 * modules/poll (Makefile.am): Likewise.
41580 * modules/posixtm (Makefile.am): Likewise.
41581 * modules/posixver (Makefile.am): Likewise.
41582 * modules/putenv (Makefile.am): Likewise.
41583 * modules/quote (Makefile.am): Likewise.
41584 * modules/quotearg (Makefile.am): Likewise.
41585 * modules/raise (Makefile.am): Likewise.
41586 * modules/read-file (Makefile.am): Likewise.
41587 * modules/readline (Makefile.am): Likewise.
41588 * modules/readlink (Makefile.am): Likewise.
41589 * modules/readtokens (Makefile.am): Likewise.
41590 * modules/readutmp (Makefile.am): Likewise.
41591 * modules/realloc (Makefile.am): Likewise.
41592 * modules/regex (Makefile.am): Likewise.
41593 * modules/rename-dest-slash (Makefile.am): Likewise.
41594 * modules/rename (Makefile.am): Likewise.
41595 * modules/rijndael (Makefile.am): Likewise.
41596 * modules/rmdir (Makefile.am): Likewise.
41597 * modules/rpmatch (Makefile.am): Likewise.
41598 * modules/safe-read (Makefile.am): Likewise.
41599 * modules/safe-write (Makefile.am): Likewise.
41600 * modules/same-inode (Makefile.am): Likewise.
41601 * modules/same (Makefile.am): Likewise.
41602 * modules/save-cwd (Makefile.am): Likewise.
41603 * modules/savedir (Makefile.am): Likewise.
41604 * modules/setenv (Makefile.am): Likewise.
41605 * modules/settime (Makefile.am): Likewise.
41606 * modules/sha1 (Makefile.am): Likewise.
41607 * modules/sig2str (Makefile.am): Likewise.
41608 * modules/snprintf (Makefile.am): Likewise.
41609 * modules/stat-macros (Makefile.am): Likewise.
41610 * modules/stat-time (Makefile.am): Likewise.
41611 * modules/stdbool (Makefile.am): Likewise.
41612 * modules/stdint (Makefile.am): Likewise.
41613 * modules/stdlib-safer (Makefile.am): Likewise.
41614 * modules/stpcpy (Makefile.am): Likewise.
41615 * modules/stpncpy (Makefile.am): Likewise.
41616 * modules/strcase (Makefile.am): Likewise.
41617 * modules/strcasestr (Makefile.am): Likewise.
41618 * modules/strchrnul (Makefile.am): Likewise.
41619 * modules/strcspn (Makefile.am): Likewise.
41620 * modules/strdup (Makefile.am): Likewise.
41621 * modules/strerror (Makefile.am): Likewise.
41622 * modules/strftime (Makefile.am): Likewise.
41623 * modules/strndup (Makefile.am): Likewise.
41624 * modules/strnlen (Makefile.am): Likewise.
41625 * modules/strpbrk (Makefile.am): Likewise.
41626 * modules/strsep (Makefile.am): Likewise.
41627 * modules/strstr (Makefile.am): Likewise.
41628 * modules/strtod (Makefile.am): Likewise.
41629 * modules/strtoimax (Makefile.am): Likewise.
41630 * modules/strtok_r (Makefile.am): Likewise.
41631 * modules/strtol (Makefile.am): Likewise.
41632 * modules/strtoll (Makefile.am): Likewise.
41633 * modules/strtoul (Makefile.am): Likewise.
41634 * modules/strtoull (Makefile.am): Likewise.
41635 * modules/strtoumax (Makefile.am): Likewise.
41636 * modules/strverscmp (Makefile.am): Likewise.
41637 * modules/sys_socket (Makefile.am): Likewise.
41638 * modules/sys_stat (Makefile.am): Likewise.
41639 * modules/sysexits (Makefile.am): Likewise.
41640 * modules/time_r (Makefile.am): Likewise.
41641 * modules/timegm (Makefile.am): Likewise.
41642 * modules/timespec (Makefile.am): Likewise.
41643 * modules/tmpfile-safer (Makefile.am): Likewise.
41644 * modules/trim (Makefile.am): Likewise.
41645 * modules/unistd-safer (Makefile.am): Likewise.
41646 * modules/unlinkdir (Makefile.am): Likewise.
41647 * modules/unlocked-io (Makefile.am): Likewise.
41648 * modules/userspec (Makefile.am): Likewise.
41649 * modules/utime (Makefile.am): Likewise.
41650 * modules/utimecmp (Makefile.am): Likewise.
41651 * modules/utimens (Makefile.am): Likewise.
41652 * modules/vasnprintf (Makefile.am): Likewise.
41653 * modules/vasprintf (Makefile.am): Likewise.
41654 * modules/vsnprintf (Makefile.am): Likewise.
41655 * modules/xalloc (Makefile.am): Likewise.
41656 * modules/xgetcwd (Makefile.am): Likewise.
41657 * modules/xnanosleep (Makefile.am): Likewise.
41658 * modules/xreadlink (Makefile.am): Likewise.
41659 * modules/xstrtod (Makefile.am): Likewise.
41660 * modules/xstrtol (Makefile.am): Likewise.
41661 * modules/xstrtold (Makefile.am): Likewise.
41662 * modules/yesno (Makefile.am): Likewise.
41663 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41665 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41667 * modules/error (Makefile.am): Distribute files through
41668 EXTRA_DIST, not lib_SOURCES.
41670 2006-10-12 Eric Blake <ebb9@byu.net>
41672 * modules/error (Makefile.am): Distribute files in /lib.
41673 * modules/obstack (Makefile.am): Likewise.
41675 2006-10-12 Bruno Haible <bruno@clisp.org>
41677 * modules/acl (Makefile.am): Distribute all files in lib/ through
41679 * modules/arcfour (Makefile.am): Likewise.
41680 * modules/arctwo (Makefile.am): Likewise.
41681 * modules/argmatch (Makefile.am): Likewise.
41682 * modules/argz (Makefile.am): Likewise.
41683 * modules/atexit (Makefile.am): Likewise.
41684 * modules/backupfile (Makefile.am): Likewise.
41685 * modules/c-strtod (Makefile.am): Likewise.
41686 * modules/c-strtold (Makefile.am): Likewise.
41687 * modules/calloc (Makefile.am): Likewise.
41688 * modules/canon-host (Makefile.am): Likewise.
41689 * modules/canonicalize (Makefile.am): Likewise.
41690 * modules/chdir-long (Makefile.am): Likewise.
41691 * modules/chdir-safer (Makefile.am): Likewise.
41692 * modules/check-version (Makefile.am): Likewise.
41693 * modules/chown (Makefile.am): Likewise.
41694 * modules/cloexec (Makefile.am): Likewise.
41695 * modules/close-stream (Makefile.am): Likewise.
41696 * modules/closeout (Makefile.am): Likewise.
41697 * modules/crc (Makefile.am): Likewise.
41698 * modules/cycle-check (Makefile.am): Likewise.
41699 * modules/des (Makefile.am): Likewise.
41700 * modules/dirfd (Makefile.am): Likewise.
41701 * modules/dirname (Makefile.am): Likewise.
41702 * modules/dup2 (Makefile.am): Likewise.
41703 * modules/euidaccess (Makefile.am): Likewise.
41704 * modules/exclude (Makefile.am): Likewise.
41705 * modules/exitfail (Makefile.am): Likewise.
41706 * modules/fcntl-safer (Makefile.am): Likewise.
41707 * modules/file-type (Makefile.am): Likewise.
41708 * modules/fileblocks (Makefile.am): Likewise.
41709 * modules/filemode (Makefile.am): Likewise.
41710 * modules/filenamecat (Makefile.am): Likewise.
41711 * modules/fnmatch (Makefile.am): Likewise.
41712 * modules/fopen-safer (Makefile.am): Likewise.
41713 * modules/fpending (Makefile.am): Likewise.
41714 * modules/fprintftime (Makefile.am): Likewise.
41715 * modules/free (Makefile.am): Likewise.
41716 * modules/fsusage (Makefile.am): Likewise.
41717 * modules/ftruncate (Makefile.am): Likewise.
41718 * modules/fts (Makefile.am): Likewise.
41719 * modules/gc (Makefile.am): Likewise.
41720 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41721 * modules/getaddrinfo (Makefile.am): Likewise.
41722 * modules/getcwd (Makefile.am): Likewise.
41723 * modules/getdelim (Makefile.am): Likewise.
41724 * modules/getdomainname (Makefile.am): Likewise.
41725 * modules/getgroups (Makefile.am): Likewise.
41726 * modules/gethostname (Makefile.am): Likewise.
41727 * modules/gethrxtime (Makefile.am): Likewise.
41728 * modules/getline (Makefile.am): Likewise.
41729 * modules/getloadavg (Makefile.am): Likewise.
41730 * modules/getlogin_r (Makefile.am): Likewise.
41731 * modules/getopt (Makefile.am): Likewise.
41732 * modules/getpass (Makefile.am): Likewise.
41733 * modules/getpass-gnu (Makefile.am): Likewise.
41734 * modules/getsubopt (Makefile.am): Likewise.
41735 * modules/gettime (Makefile.am): Likewise.
41736 * modules/gettimeofday (Makefile.am): Likewise.
41737 * modules/getugroups (Makefile.am): Likewise.
41738 * modules/getusershell (Makefile.am): Likewise.
41739 * modules/glob (Makefile.am): Likewise.
41740 * modules/group-member (Makefile.am): Likewise.
41741 * modules/hard-locale (Makefile.am): Likewise.
41742 * modules/hash (Makefile.am): Likewise.
41743 * modules/hmac-md5 (Makefile.am): Likewise.
41744 * modules/hmac-sha1 (Makefile.am): Likewise.
41745 * modules/human (Makefile.am): Likewise.
41746 * modules/idcache (Makefile.am): Likewise.
41747 * modules/imaxabs (Makefile.am): Likewise.
41748 * modules/imaxdiv (Makefile.am): Likewise.
41749 * modules/inet_ntop (Makefile.am): Likewise.
41750 * modules/inet_pton (Makefile.am): Likewise.
41751 * modules/inttostr (Makefile.am): Likewise.
41752 * modules/isapipe (Makefile.am): Likewise.
41753 * modules/lchown (Makefile.am): Likewise.
41754 * modules/long-options (Makefile.am): Likewise.
41755 * modules/lstat (Makefile.am): Likewise.
41756 * modules/malloc (Makefile.am): Likewise.
41757 * modules/mathl (Makefile.am): Likewise.
41758 * modules/mbchar (Makefile.am): Likewise.
41759 * modules/md2 (Makefile.am): Likewise.
41760 * modules/md4 (Makefile.am): Likewise.
41761 * modules/md5 (Makefile.am): Likewise.
41762 * modules/memcasecmp (Makefile.am): Likewise.
41763 * modules/memchr (Makefile.am): Likewise.
41764 * modules/memcmp (Makefile.am): Likewise.
41765 * modules/memcoll (Makefile.am): Likewise.
41766 * modules/memcpy (Makefile.am): Likewise.
41767 * modules/memmem (Makefile.am): Likewise.
41768 * modules/memmove (Makefile.am): Likewise.
41769 * modules/mempcpy (Makefile.am): Likewise.
41770 * modules/memrchr (Makefile.am): Likewise.
41771 * modules/memset (Makefile.am): Likewise.
41772 * modules/memxor (Makefile.am): Likewise.
41773 * modules/mkancesdirs (Makefile.am): Likewise.
41774 * modules/mkdir (Makefile.am): Likewise.
41775 * modules/mkdir-p (Makefile.am): Likewise.
41776 * modules/mkdtemp (Makefile.am): Likewise.
41777 * modules/mkstemp (Makefile.am): Likewise.
41778 * modules/mktime (Makefile.am): Likewise.
41779 * modules/modechange (Makefile.am): Likewise.
41780 * modules/mountlist (Makefile.am): Likewise.
41781 * modules/nanosleep (Makefile.am): Likewise.
41782 * modules/openat (Makefile.am): Likewise.
41783 * modules/pagealign_alloc (Makefile.am): Likewise.
41784 * modules/physmem (Makefile.am): Likewise.
41785 * modules/poll (Makefile.am): Likewise.
41786 * modules/posixtm (Makefile.am): Likewise.
41787 * modules/posixver (Makefile.am): Likewise.
41788 * modules/putenv (Makefile.am): Likewise.
41789 * modules/quote (Makefile.am): Likewise.
41790 * modules/quotearg (Makefile.am): Likewise.
41791 * modules/raise (Makefile.am): Likewise.
41792 * modules/read-file (Makefile.am): Likewise.
41793 * modules/readline (Makefile.am): Likewise.
41794 * modules/readlink (Makefile.am): Likewise.
41795 * modules/readtokens (Makefile.am): Likewise.
41796 * modules/readutmp (Makefile.am): Likewise.
41797 * modules/realloc (Makefile.am): Likewise.
41798 * modules/regex (Makefile.am): Likewise.
41799 * modules/rename (Makefile.am): Likewise.
41800 * modules/rename-dest-slash (Makefile.am): Likewise.
41801 * modules/rijndael (Makefile.am): Likewise.
41802 * modules/rmdir (Makefile.am): Likewise.
41803 * modules/rpmatch (Makefile.am): Likewise.
41804 * modules/safe-read (Makefile.am): Likewise.
41805 * modules/safe-write (Makefile.am): Likewise.
41806 * modules/same (Makefile.am): Likewise.
41807 * modules/save-cwd (Makefile.am): Likewise.
41808 * modules/savedir (Makefile.am): Likewise.
41809 * modules/setenv (Makefile.am): Likewise.
41810 * modules/settime (Makefile.am): Likewise.
41811 * modules/sha1 (Makefile.am): Likewise.
41812 * modules/sig2str (Makefile.am): Likewise.
41813 * modules/snprintf (Makefile.am): Likewise.
41814 * modules/stdlib-safer (Makefile.am): Likewise.
41815 * modules/stpcpy (Makefile.am): Likewise.
41816 * modules/stpncpy (Makefile.am): Likewise.
41817 * modules/strcase (Makefile.am): Likewise.
41818 * modules/strcasestr (Makefile.am): Likewise.
41819 * modules/strchrnul (Makefile.am): Likewise.
41820 * modules/strcspn (Makefile.am): Likewise.
41821 * modules/strdup (Makefile.am): Likewise.
41822 * modules/strerror (Makefile.am): Likewise.
41823 * modules/strftime (Makefile.am): Likewise.
41824 * modules/strndup (Makefile.am): Likewise.
41825 * modules/strnlen (Makefile.am): Likewise.
41826 * modules/strpbrk (Makefile.am): Likewise.
41827 * modules/strsep (Makefile.am): Likewise.
41828 * modules/strstr (Makefile.am): Likewise.
41829 * modules/strtod (Makefile.am): Likewise.
41830 * modules/strtoimax (Makefile.am): Likewise.
41831 * modules/strtok_r (Makefile.am): Likewise.
41832 * modules/strtol (Makefile.am): Likewise.
41833 * modules/strtoll (Makefile.am): Likewise.
41834 * modules/strtoul (Makefile.am): Likewise.
41835 * modules/strtoull (Makefile.am): Likewise.
41836 * modules/strtoumax (Makefile.am): Likewise.
41837 * modules/strverscmp (Makefile.am): Likewise.
41838 * modules/time_r (Makefile.am): Likewise.
41839 * modules/timegm (Makefile.am): Likewise.
41840 * modules/tmpfile-safer (Makefile.am): Likewise.
41841 * modules/unistd-safer (Makefile.am): Likewise.
41842 * modules/unlinkdir (Makefile.am): Likewise.
41843 * modules/userspec (Makefile.am): Likewise.
41844 * modules/utime (Makefile.am): Likewise.
41845 * modules/utimecmp (Makefile.am): Likewise.
41846 * modules/utimens (Makefile.am): Likewise.
41847 * modules/vasnprintf (Makefile.am): Likewise.
41848 * modules/vasprintf (Makefile.am): Likewise.
41849 * modules/vsnprintf (Makefile.am): Likewise.
41850 * modules/xalloc (Makefile.am): Likewise.
41851 * modules/xgetcwd (Makefile.am): Likewise.
41852 * modules/xnanosleep (Makefile.am): Likewise.
41853 * modules/xreadlink (Makefile.am): Likewise.
41854 * modules/xstrtod (Makefile.am): Likewise.
41855 * modules/xstrtol (Makefile.am): Likewise.
41856 * modules/xstrtold (Makefile.am): Likewise.
41857 * modules/yesno (Makefile.am): Likewise.
41859 2006-10-12 Jim Meyering <jim@meyering.net>
41861 * m4/getloadavg.m4: Revert the change below.
41863 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41864 lib/getloadavg.c using "ls -L", not "test -f". The latter would
41865 fail with a symlink, which is what coreutils' ./bootstrap now
41866 creates by default.
41868 2006-10-12 Bruno Haible <bruno@clisp.org>
41870 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41872 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41873 MSVC and mingw explicitly.
41875 2006-10-11 Simon Josefsson <jas@extundo.com>
41876 Bruno Haible <bruno@clisp.org>
41878 Add support for multiple gnulib-tool invocations in the scope of a
41879 single configure.ac file.
41880 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41881 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41882 with the same contents as the _LIBADD variable.
41883 (func_emit_initmacro_start, func_emit_initmacro_end,
41884 func_emit_initmacro_done): New functions.
41885 (func_import, func_create_testdir): Invoke them. Allow the identifiers
41886 gl_LIBOBJS and gl_LTLIBOBJS.
41888 2006-10-11 Bruno Haible <bruno@clisp.org>
41890 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41891 (func_create_testdir): Don't create po/Makefile.am, don't invoke
41892 autoreconf. Instead, invoke autopoint explicitly but move back the
41893 *.m4 files from gnulib.
41895 2006-10-11 Bruno Haible <bruno@clisp.org>
41897 * gnulib-tool (func_usage): Make module names after --create-testdir
41899 (func_create_testdir): If no module was specified, use nearly all
41902 2006-10-12 Jim Meyering <jim@meyering.net>
41904 Big performance improvement for fts-based tools that use FTS_NOSTAT.
41905 Avoid spurious inode-mismatch problems on non-POSIX file systems.
41906 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41907 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41908 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41909 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41910 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41911 (fts_set_stat_required): New function.
41912 (fts_open): Defer the calls to fts_stat, if possible or requested.
41913 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41914 into fts_stat itself.
41915 (fts_read): Perform any required (deferred) fts_stat call.
41916 (fts_build): Likewise, for the directory we're about to open and read.
41917 In the readdir loop, carefully decide whether each entry will require
41918 an eventual call to fts_stat, using dirent.d_type info if available.
41919 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41920 a command line argument into this function. Update all callers.
41921 Map a return value of FTS_DOT to FTS_D for a command line argument.
41922 * modules/fts (Depends-on): Add d-type. Alphabetize.
41923 Thanks to Miklos Szeredi for his tenacity and for the initial
41924 bug report about "find" failing on a FUSE-based file system.
41926 * lib/fts.c (fts_open): Use consistent indentation.
41928 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41930 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41931 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41932 reported by Jim Meyering. All uses of cache variables renamed
41933 to match Autoconf's.
41934 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41937 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41938 Fix misspelling in diagnostic.
41940 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41942 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41943 defined. Problem reported by Matthew Woehlke.
41945 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41946 Add support for Tandem NonStop R series.
41947 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41950 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41951 (has_trailing_slash): Omit size arg; all callers changed.
41952 Omit 'inline', since it doesn't help performance and we'd
41953 need to configure it.
41954 Don't count //, ///, etc. as having a trailing slash.
41955 As a side effect, this removes a C99ism reported by Matthew Woehlke.
41956 (rpl_rename_dest_slash): On failure, use rename's errno rather
41957 than (in some cases) an incorrect or junk errno.
41958 Simplify code by removing need to compute length; this does
41959 cause it to make two passes instead of one over the file name,
41962 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41963 change, since Autoconf's version may no longer be appropriate now
41964 that we are using CVS Autoconf's version. Add support for Tandem.
41966 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41967 Bruno Haible <bruno@clisp.org>
41969 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41970 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41971 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41972 gl_AC_TYPE_LONG_LONG.
41974 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41975 instead of HAVE_LONG_LONG.
41976 * lib/printf-args.c (printf_fetchargs): Likewise.
41977 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41978 * lib/vasnprintf.c (VASNPRINTF): Likewise.
41979 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41980 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41981 gl_AC_TYPE_LONG_LONG.
41983 2006-10-11 Bruno Haible <bruno@clisp.org>
41985 * m4/longlong.m4: Add comments.
41986 * m4/ulonglong.m4: Likewise.
41988 2006-10-10 Bruno Haible <bruno@clisp.org>
41990 Make it possible to #define stpcpy, strdup to aliases.
41991 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41992 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41994 2006-10-10 Bruno Haible <bruno@clisp.org>
41996 Make it possible to #define gcd to an alias.
41997 * lib/gcd.c: Include config.h.
41999 2006-10-10 Bruno Haible <bruno@clisp.org>
42001 Make it possible to #define c_isascii to an alias.
42002 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42003 defined. Undefine the macros before defining them, to avoid gcc
42005 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42006 define NO_C_CTYPE_MACROS early.
42008 2006-10-10 Bruno Haible <bruno@clisp.org>
42010 Make it possible to #define set_program_name to an alias.
42011 * lib/progname.c: Don't undefine set_program_name; instead, undefine
42012 ENABLE_RELOCATABLE early.
42014 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
42016 Port to Tandem NSK OSS, which has 64-bit signed int but at most
42017 32-bit unsigned int. Problem reported by Matthew Woehlke in:
42018 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42019 More generally, don't assume that 64-bit signed int is available
42020 if unsigned int is, and vice versa.
42021 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42022 unsigned symbols, not on their signed counterparts.
42023 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42024 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42025 (UINT64_C, UINTMAX_C):
42027 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42028 unsigned counterparts.
42029 (Have_long_long, Unsigned): New macros.
42030 (Int): Renamed from INT.
42031 (strtoimax): Use the new macros.
42032 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42033 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42034 * modules/inttypes (inttypes.h): Substitute
42035 HAVE_UNSIGNED_LONG_LONG_INT.
42036 * modules/stdint (stdint.h): Likewise.
42037 (Files): Add m4/ulonglong.m4.
42039 2006-10-10 Bruno Haible <bruno@clisp.org>
42041 Fix a gcc -Wshadow warning.
42042 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42044 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42045 gl_linked_indexof_from_to): Likewise.
42046 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42048 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42050 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42051 Reported by Eric Blake.
42053 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
42055 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42056 for NetBSD. Problem reported by Bruno Haible.
42058 2006-10-09 Jim Meyering <jim@meyering.net>
42060 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42061 Patch from Bruno Haible.
42063 2006-10-09 Jim Meyering <jim@meyering.net>
42065 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42066 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42067 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42069 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
42071 Don't include <config.h> twice; this doesn't work in some cases,
42072 e.g., when config.h has "#define intmax_t long long int" and
42073 we include <config.h>, <inttypes.h>, <config.h> in that order.
42074 Problem reported by Matthew Woehlke in:
42075 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42076 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42077 * lib/fts-cycle.c: Don't include config.h.
42078 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42079 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42080 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
42081 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42083 * lib/xstrtoumax.c: Likewise.
42084 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42085 __strtol and the like, so that this module is more like its siblings.
42086 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42087 Remove; no longer needed now that we assume gnulib inttypes.h.
42089 2006-10-08 Bruno Haible <bruno@clisp.org>
42091 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42094 2006-10-07 Jim Meyering <jim@meyering.net>
42096 * modules/inttypes (inttypes.h): Revert what seems to have been
42097 an inadvertent part of today's change: use "|", not "/" in the
42098 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42100 2006-10-07 Bruno Haible <bruno@clisp.org>
42102 * modules/sublist: New file.
42104 2006-10-07 Bruno Haible <bruno@clisp.org>
42106 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42107 * modules/argz (argz.h): Likewise.
42108 * modules/arpa_inet (arpa/inet.h): Likewise.
42109 * modules/byteswap (byteswap.h): Likewise.
42110 * modules/configmake (configmake.h): Likewise.
42111 * modules/fcntl (fcntl.h): Likewise.
42112 * modules/fnmatch (fnmatch.h): Likewise.
42113 * modules/getopt (getopt.h): Likewise.
42114 * modules/glob (glob.h): Likewise.
42115 * modules/inttypes (inttypes.h): Likewise.
42116 * modules/netinet_in (netinet/in.h): Likewise.
42117 * modules/poll (poll.h): Likewise.
42118 * modules/stdbool (stdbool.h): Likewise.
42119 * modules/stdint (stdint.h): Likewise.
42120 * modules/sys_select (sys/select.h): Likewise.
42121 * modules/sys_socket (sys/socket.h): Likewise.
42122 * modules/sys_stat (sys/stat.h): Likewise.
42123 * modules/sysexits (sysexits.h): Likewise.
42124 * modules/unistd (unistd.h): Likewise.
42125 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42126 Add a "DO NOT EDIT" comment to the generated file.
42127 (func_import): Likewise for gnulib-comp.m4.
42129 2006-10-07 Bruno Haible <bruno@clisp.org>
42131 * lib/gl_sublist.h: New file.
42132 * lib/gl_sublist.c: New file.
42134 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
42136 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42137 name (relative to the original working directory) and the file
42138 name component (relative to the temporary working directory). All
42140 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42141 * lib/mkdir-p.c (make_dir_parents): Likewise.
42142 * lib/mkdir-p.h (make_dir_parents): Likewise.
42144 2006-10-06 Eric Blake <ebb9@byu.net>
42146 Define several macros for use by the clean-temp module.
42147 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42148 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42149 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42151 * lib/clean-temp.h (close_stream_temp): New declaration.
42152 * lib/clean-temp.c (includes): Pull in headers according to what
42153 other modules are in use.
42154 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42156 2006-10-06 Bruno Haible <bruno@clisp.org>
42158 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42159 instead of fopen, fwriteerror.
42161 2006-10-06 Bruno Haible <bruno@clisp.org>
42163 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42164 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42166 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42167 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42168 Return an error indicator.
42169 Suggested by Eric Blake.
42171 2006-10-06 Bruno Haible <bruno@clisp.org>
42173 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42174 Reported by Eric Blake.
42176 2006-10-06 Bruno Haible <bruno@clisp.org>
42178 * modules/closeout (Description): Mention stderr too.
42180 2006-10-06 Bruno Haible <bruno@clisp.org>
42181 and Paul Eggert <eggert@cs.ucla.edu>
42183 * lib/closeout.c (close_stdout): Also close stderr.
42184 * lib/closeout.h: Update comment.
42186 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
42188 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42189 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42190 * lib/dirchownmod.c: Include lchown.h.
42191 * lib/lchown.c: Don't include files that lchown.h now includes.
42192 Don't declare chown, since lchown.h now does that.
42193 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42194 (lchown): Define to rpl_chown if lchown is declared but
42195 does not exist. Declare using a prototype if lchown is not
42196 declared. Add a copyright notice.
42197 * lib/mkstemp.h: Include <unistd.h>.
42198 * lib/openat.c: Include lchown.h.
42200 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42201 we now test for that separately.
42202 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42203 rather than O_NOFOLLOW, when testing whether it's possible to
42204 avoid a race condition reliably.
42205 * lib/savewd.c (savewd_chdir): Likewise.
42207 Remove macros that are no longer needed now that stdint.h is
42209 * lib/fsusage.c (UINTMAX_MAX): Remove.
42210 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42211 * lib/utimecmp.c (SIZE_MAX): Remove.
42213 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42215 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42216 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
42219 2006-10-05 Bruno Haible <bruno@clisp.org>
42221 * lib/gl_list.h (gl_sortedlist_search_from_to,
42222 gl_sortedlist_indexof_from_to): New declarations.
42223 (gl_list_implementation): New fields sortedlist_search_from_to,
42224 sortedlist_indexof_from_to.
42225 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42227 * lib/gl_list.c (gl_sortedlist_search_from_to,
42228 gl_sortedlist_indexof_from_to): New functions.
42229 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42231 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42232 (gl_array_sortedlist_search_from_to): New function.
42233 (gl_array_list_implementation): Update.
42234 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42236 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42237 (gl_carray_sortedlist_search_from_to): New function.
42238 (gl_carray_list_implementation): Update.
42239 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42240 gl_linked_sortedlist_indexof_from_to): New functions.
42241 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42242 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42243 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42244 gl_tree_sortedlist_indexof_from_to): New functions.
42245 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42246 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42248 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42249 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42252 2006-10-05 Bruno Haible <bruno@clisp.org>
42254 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42255 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42256 (struct gl_list_implementation): Add fields search_from_to,
42257 indexof_from_to. Remove fields search, indexof.
42258 (gl_list_search): Use the search_from_to method.
42259 (gl_list_search_from, gl_list_search_from_to): New functions.
42260 (gl_list_indexof): Use the indexof_from_to method.
42261 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42262 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42263 (gl_list_search_from, gl_list_search_from_to): New functions.
42264 (gl_list_indexof): Use the indexof_from_to method.
42265 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42266 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42267 gl_array_indexof. Add start_index, end_index arguments.
42268 (gl_array_search_from_to): Renamed from gl_array_search. Add
42269 start_index, end_index arguments.
42270 (gl_array_remove, gl_array_list_implementation): Update.
42271 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42272 gl_carray_indexof. Add start_index, end_index arguments.
42273 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42274 start_index, end_index arguments.
42275 (gl_carray_remove, gl_carray_list_implementation): Update.
42276 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42277 gl_linked_search. Add start_index, end_index arguments.
42278 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42279 start_index, end_index arguments.
42280 (gl_linked_remove): Update.
42281 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42282 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42283 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42285 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42286 gl_tree_search. Add start_index, end_index arguments.
42287 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42288 start_index, end_index arguments.
42289 (gl_tree_remove): Update.
42290 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42291 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42292 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42294 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42295 gl_tree_search. Add start_index, end_index arguments.
42296 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42297 start_index, end_index arguments.
42298 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42300 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42302 2006-10-05 Bruno Haible <bruno@clisp.org>
42304 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42306 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42307 fwriteerror_temp): New declarations.
42308 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42309 (descriptors): New variable.
42310 (cleanup): First, close the descriptors.
42311 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42312 fclose_temp, fwriteerror_temp): New functions.
42314 2006-10-04 Jim Meyering <jim@meyering.net>
42316 * lib/fts.c (fts_open): Tiny comment change.
42318 2006-10-04 Bruno Haible <bruno@clisp.org>
42320 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42321 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42323 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42324 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42325 gl_LOCK_EARLY_BODY.
42326 (gl_LOCK): Require gl_LOCK_BODY.
42328 2006-10-04 Bruno Haible <bruno@clisp.org>
42330 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42331 (gl_oset_search_atleast): New declaration.
42332 (struct gl_oset_implementation): Add field 'search_atleast'.
42333 (gl_oset_search_atleast): New inline function.
42334 * lib/gl_oset.c (gl_oset_search_atleast): New function.
42335 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42336 (gl_array_oset_implementation): Update.
42337 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42338 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42339 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42341 2006-10-04 Bruno Haible <bruno@clisp.org>
42343 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42345 2006-10-03 Bruno Haible <bruno@clisp.org>
42347 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42348 from gl_avltreehash_list_implementation.
42350 2006-10-03 Bruno Haible <bruno@clisp.org>
42352 * lib/gl_oset.c (gl_oset_add): Fix return type.
42354 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
42356 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42358 2006-10-02 Eric Blake <ebb9@byu.net>
42360 * modules/strnlen (Depends-on): Add extensions.
42362 2006-10-02 Eric Blake <ebb9@byu.net>
42364 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42365 definition in 2.60+.
42367 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
42369 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42372 2006-10-02 Bruno Haible <bruno@clisp.org>
42374 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42375 to the AUTOMAKE_OPTIONS.
42376 Reported by Jim Meyering.
42378 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
42380 Work around bug in Solaris 10 /proc file system:
42381 /proc/self/fd/NNN/.. isn't the parent directory of
42382 the directory whose file descriptor is NNN. This needs to
42383 be worked around at run time, not compile time, since a
42384 program might be built on Solaris 8, where things work, and
42386 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
42387 to use the following interface instead:
42388 (OPENAT_BUFFER_SIZE): New macro.
42389 (openat_proc_name): New function.
42390 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42391 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42393 * lib/openat-proc.c: New file.
42394 * modules/openat (Files): Add lib/openat-proc.c.
42395 (Depends-on): Add same-inode, stdbool.
42396 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42398 2006-09-29 Bruno Haible <bruno@clisp.org>
42400 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42401 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42402 argument. Set stdout_closed before testing for ferror, not after.
42403 (fwriteerror, fwriteerror_no_ebadf): New functions.
42405 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42407 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42409 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
42411 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42412 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42414 2006-09-28 Jim Meyering <jim@meyering.net>
42416 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42417 Include <unistd.h>.
42419 2006-09-28 Bruno Haible <bruno@clisp.org>
42421 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42422 * modules/linkedhash-list (Depends-on): Likewise.
42423 * modules/rbtreehash-list (Depends-on): Likewise.
42425 2006-09-28 Bruno Haible <bruno@clisp.org>
42427 * lib/strndup.h: Simplify the redefinition of strndup.
42428 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42429 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42431 2006-09-28 Bruno Haible <bruno@clisp.org>
42433 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42434 * lib/gl_linkedhash_list.c: Likewise.
42435 * lib/gl_rbtreehash_list.c: Likewise.
42437 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
42439 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42442 * lib/__fpending.h: Don't include <stdio_ext.h> unless
42443 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
42444 it causes <stdio_ext.h> to cause a compile-time error.
42445 Problem reported by Nelson H. F. Beebe.
42446 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42447 of HAVE_DECL___PENDING.
42449 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42450 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42453 2006-09-27 Jim Meyering <jim@meyering.net>
42455 This file could end up with a definition for a function
42456 named __strndup, rather than rpl_strndup on a system with
42457 incomplete weak_alias support.
42458 * lib/strndup.c (strndup): Rename from __strndup.
42459 Remove #defines that used to map __strndup to strndup.
42460 Don't use K&R prototypes.
42461 Remove LIBC-related code, since this file is not sync'd with glibc.
42462 * lib/strndup.h: Revamp, accordingly.
42463 * m4/strndup.m4: Modernize.
42465 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
42467 * modules/savewd (Depends-on): Add 'raise'.
42468 * lib/savewd.c: Include <signal.h>, for 'raise'.
42470 2006-09-26 Jim Meyering <jim@meyering.net>
42472 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42473 when we detect Darwin 8.7.0's acl_get_file bug.
42474 Rearrange to perform the new (below) run-test while $LIBS
42475 contains any acl-related library. Set USE_ACL at the end.
42476 (gl_ACL_GET_FILE): New function.
42478 2006-09-26 Eric Blake <ebb9@byu.net>
42480 * lib/verror.c: Include <config.h> unconditionally.
42482 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
42484 * modules/clock-time (Maintainer): Add self.
42485 * modules/getlogin_r (Depends-on): Add extensions.
42487 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42489 * modules/clock-time: New module.
42490 * modules/nanosleep (Depends-on): Add clock-time.
42491 * modules/gethrxtime (Depends-on): Likewise.
42492 * modules/gettime (Depends-on): Likewise.
42493 * modules/settime (Depends-on): Likewise.
42495 * modules/fts-lgpl: Depend on openat.
42496 * modules/mkancesdirs: Depend on savewd.
42497 * modules/mkdir-p: Likewise.
42499 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42501 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42503 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42504 `gl_have_arbitrary_file_name_length_limit' to
42505 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42506 actually works between configure runs.
42508 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42509 Bruno Haible <bruno@clisp.org>
42511 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42513 2006-09-25 Jim Meyering <jim@meyering.net>
42515 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42516 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42518 2006-09-25 Eric Blake <ebb9@byu.net>
42520 * gnulib-tool (func_import, func_create_testdir): Fix typos in
42521 exec's in 2006-09-18 patch when shuffling fds.
42523 2006-09-25 Bruno Haible <bruno@clisp.org>
42525 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42526 Reported by Jim Meyering.
42528 2006-09-24 Jim Meyering <jim@meyering.net>
42530 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42531 compare a pointer against a literal "0". That caused failures with
42532 at least HP-UX's hpcc.
42534 2006-09-22 Simon Josefsson <jas@extundo.com>
42538 * modules/gc-hmac-sha1:
42539 * modules/gc-hmac-md5:
42541 * modules/gc-arcfour: Distribute more files.
42543 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42545 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42546 (gl_linked_iterator_from_to): Initialize struct completely.
42547 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42548 (gl_tree_iterator_from_to): Likewise
42549 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42550 * lib/gl_array_list.c [lint] (gl_array_iterator)
42551 (gl_array_iterator_from_to): Likewise.
42552 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42553 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42554 (gl_carray_iterator_from_to): Likewise.
42556 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42557 * lib/md4.c (md4_process_block): Remove unused variable.
42558 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42559 parentheses for clarity.
42561 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42563 * modules/bison-i18n (Depends-on): Add gettext.
42565 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42567 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42568 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42569 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42570 also add missing comma that caused broken test.
42571 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42572 stdlib.h, for `abort'.
42573 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42575 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42576 include unistd.h if present, for `rmdir'.
42577 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42579 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42580 in the process include standard headers for prototypes.
42581 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42582 gets declared on GNU/Linux.
42583 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42584 unistd.h, for `rmdir'.
42585 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42587 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42589 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42591 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42593 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42595 * gnulib-tool (func_version): Create output all at once. This
42596 may help avoid triggering unnecessary SIGPIPEs, and at any
42597 rate it doesn't hurt.
42599 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42600 Bruno Haible <bruno@clisp.org>
42602 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42603 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42604 * m4/signed.m4 (bh_C_SIGNED): Likewise.
42606 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42607 (gl_FUNC_VASPRINTF): Invoke it.
42609 2006-09-22 Bruno Haible <bruno@clisp.org>
42611 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42612 getloadavg.c as first argument.
42614 2006-09-22 Bruno Haible <bruno@clisp.org>
42616 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42617 at the beginning of the gl_INIT macro.
42618 * modules/getloadavg (configure.ac): Pass $gl_source_base to
42621 2006-09-22 Bruno Haible <bruno@clisp.org>
42623 * gnulib-tool (func_create_megatestdir): Don't include the config-h
42625 Suggested by Ralf Wildenhues.
42627 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
42629 Import this patch from libc:
42631 2006-09-06 Jakub Jelinek <jakub@redhat.com>
42633 * lib/regex_internal.c (re_string_reconstruct): Handle
42634 offset < pstr->valid_raw_len && pstr->offsets_needed case.
42635 Ensure no bytes read before raw_mbs array. Pass a saved copy of
42636 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42637 re_string_context_at.
42639 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42641 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42642 gl_REGEX now does it for us.
42643 (gl_REGEX): Add test taken from
42644 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42646 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42647 Check that large offsets work. Modernize Autoconf usages.
42648 Prefer "yes" to mean a good thing rather than a bad.
42649 Don't put "#define mkstemp" in config.h, as this might interfere
42650 with standard system headers that "#define mkstemp mkstemp64".
42652 * modules/mkstemp (Depends-on): Add extensions, so that
42653 mkstemp is visible on some platforms.
42654 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42655 (Include): Change to "mkstemp.h" from <stdlib.h>.
42656 (Files): Add mkstemp.h.
42658 * lib/mkstemp.h: New file, since some standard headers
42660 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42661 Include "mkstemp.h".
42662 Make the _LIBC code resemble glibc original more,
42663 e.g., use K&R style.
42664 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42665 (mkstemp): Remove, since mkstemp.h does this for us.
42666 * lib/stdlib--.h: Include mkstemp.h.
42668 Import this patch from libc:
42670 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42672 * lib/tempname.c (__gen_tempname): Change attempts_min
42673 into a macro. Use preprocessor to decide how to initialize
42674 attempts [Coverity CID 67].
42676 2006-09-20 Bruno Haible <bruno@clisp.org>
42678 * lib/mkdtemp.c: Import from libc.
42679 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42680 * sysdeps/posix/tempname.c (__gen_tempname): Change
42681 attempts_min into a macro. Use preprocessor to decide how to
42682 initialize attempts [Coverity CID 67].
42683 2001-11-27 Paul Eggert <eggert@twinsun.com>
42684 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42685 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42687 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42689 * gnulib-tool (func_exit): New function, to allow to pass the
42690 exit status portably through the trap. Use everywhere.
42691 (--help, --version): Signal a write error.
42692 (trap): catch SIGPIPE, for write errors.
42693 Exit at the end of the trap, with the correct exit status.
42695 2006-09-19 Karl Berry <karl@gnu.org>
42697 * doc/gnulib.texi: note about the license texinfo files.
42699 2006-09-19 Eric Blake <ebb9@byu.net>
42701 * gnulib-tool: Avoid space-tab.
42703 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42705 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42706 that prevented coreutils 6.1 from building. Problem reported
42707 by Petter Reinholdtsen.
42709 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42711 * gnulib-tool (avoidlist): Fix typo that broke options like
42712 --avoid=lock that are used by coreutils bootstrap.
42714 2006-09-18 Mark D. Baushke <mdb@gnu.org>
42716 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42717 more systematically.
42719 2006-09-18 Jim Meyering <jim@meyering.net>
42721 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42723 2006-09-18 Bruno Haible <bruno@clisp.org>
42725 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42727 2006-09-18 Bruno Haible <bruno@clisp.org>
42729 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42730 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42731 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42732 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42733 * m4/gettext.m4: Require autoconf >= 2.52.
42734 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42735 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42736 of gl_cv_header_inttypes_h.
42738 2006-09-18 Bruno Haible <bruno@clisp.org>
42740 * lib/javaversion.c: Include configmake.h.
42742 2006-09-18 Bruno Haible <bruno@clisp.org>
42744 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42745 avoid that the while loops be executed in a subshell.
42747 2006-09-18 Bruno Haible <bruno@clisp.org>
42749 * MODULES.html.sh (func_module): Break long lines.
42750 Suggested by Bruce Korb <bkorb@gnu.org>.
42752 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42754 Speed up by a factor of 1.12.
42755 * gnulib-tool (nl): New variable.
42756 (func_import): Rewrite include directive extraction to only read each
42759 2006-09-17 Bruno Haible <bruno@clisp.org>
42761 * modules/javaversion (Makefile.am): Remove DEFS setting.
42762 (Depends-on): Add configmake, for PKGDATADIR definition.
42764 2006-09-17 Bruno Haible <bruno@clisp.org>
42766 * gnulib-tool (func_create_testdir): Rewrite all files at once.
42768 2006-09-17 Bruno Haible <bruno@clisp.org>
42770 * gnulib-tool (func_append): New function, stolen from libtool.m4.
42771 (func_modules_transitive_closure, func_modules_add_dummy,
42772 func_modules_to_filelist, func_import, func_create_testdir,
42773 func_create_megatestdir, ...): Use it wherever possible.
42774 Suggested by Ralf Wildenhues.
42776 2006-09-16 Karl Berry <karl@gnu.org>
42778 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42779 to avoid sectioning errors.
42780 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42781 [ifinfo]: blank line after @center-ed titles.
42782 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42783 Spell FSF address consistently with others.
42784 (These changes approved by rms.)
42786 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42788 Speed up by a factor of 1.61.
42789 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42790 already checked module names again.
42792 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42794 Speed up by a factor of 1.13.
42795 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42796 for new_files, and the input to func_add_or_update.
42798 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42800 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42801 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42803 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42805 * modules/mkancesdirs (Depends-on): Add fcntl.
42806 * modules/savewd: New file.
42807 * MODULES.html.sh (File system functions): Add savewd.
42809 * modules/configmake (Makefile.am): Add support for the
42810 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42812 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42814 * m4/savewd.m4: New file.
42816 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42818 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42819 (dirchownmod): New arg FD. All callers changed.
42820 Use FD rather than opening the directory ourself, as opening is
42821 now the caller's responsibility.
42822 * lib/dirchownmod.h: Likewise.
42823 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42824 hosts that require <sys/types.h> before <sys/stat.h>. Include
42825 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42826 (test_dir): Remove.
42827 (mkancesdirs): Return length of prefix of FILE that has already
42828 been made, or -2 if there is a child doing the work. Redo
42829 algorithm so that it is O(N) rather than O(N**2). Optimize away
42830 ".", and treat ".." specially since it might stray back into
42831 already-created areas. Use a subprocess if necessary. New arg
42832 WD; all users changed. MAKE_DIR function should now return 1
42833 if it creates a directory that is not readable. Return -2 if
42834 a child process is spun off.
42835 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42836 Adjust signature to match code.
42837 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42838 (make_dir_parents): Use a subprocess if necessary. New arg WD;
42840 * lib/savewd.c, lib/savewd.h: New files.
42842 2006-09-15 Jim Meyering <jim@meyering.net>
42844 * modules/rename-dest-slash: New module.
42845 * MODULES.html.sh (posix_compat): Add it here.
42847 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42849 2006-09-15 Jim Meyering <jim@meyering.net>
42851 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42854 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42856 2006-09-15 Jim Meyering <jim@meyering.net>
42858 * lib/rename-dest-slash.c (has_trailing_slash): Use
42859 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42860 (rpl_rename_dest_slash): Perform the cheaper trailing slash
42861 test before testing whether SRC is a directory.
42862 Suggestions from Bruno Haible.
42864 Avoid a warning about an unused variable.
42865 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42866 into the #ifdef block where it's used.
42868 * lib/rename-dest-slash.c: New file.
42870 2006-09-14 Bruno Haible <bruno@clisp.org>
42872 * lib/allocsa.c: Include <config.h> unconditionally.
42873 * lib/asnprintf.c: Likewise.
42874 * lib/asprintf.c: Likewise.
42875 * lib/c-strcasecmp.c: Likewise.
42876 * lib/c-strcasestr.c: Likewise.
42877 * lib/c-strncasecmp.c: Likewise.
42878 * lib/c-strstr.c: Likewise.
42879 * lib/classpath.c: Likewise.
42880 * lib/clean-temp.c: Likewise.
42881 * lib/concatpath.c: Likewise.
42882 * lib/copy-file.c: Likewise.
42883 * lib/csharpcomp.c: Likewise.
42884 * lib/csharpexec.c: Likewise.
42885 * lib/execute.c: Likewise.
42886 * lib/fatal-signal.c: Likewise.
42887 * lib/findprog.c: Likewise.
42888 * lib/fwriteerror.c: Likewise.
42889 * lib/gl_array_list.c: Likewise.
42890 * lib/gl_array_oset.c: Likewise.
42891 * lib/gl_avltree_list.c: Likewise.
42892 * lib/gl_avltree_oset.c: Likewise.
42893 * lib/gl_avltreehash_list.c: Likewise.
42894 * lib/gl_carray_list.c: Likewise.
42895 * lib/gl_linked_list.c: Likewise.
42896 * lib/gl_linkedhash_list.c: Likewise.
42897 * lib/gl_list.c: Likewise.
42898 * lib/gl_oset.c: Likewise.
42899 * lib/gl_rbtree_list.c: Likewise.
42900 * lib/gl_rbtree_oset.c: Likewise.
42901 * lib/gl_rbtreehash_list.c: Likewise.
42902 * lib/imaxabs.c: Likewise.
42903 * lib/imaxdiv.c: Likewise.
42904 * lib/javacomp.c: Likewise.
42905 * lib/javaexec.c: Likewise.
42906 * lib/javaversion.c: Likewise.
42907 * lib/linebreak.c: Likewise.
42908 * lib/localcharset.c: Likewise.
42909 * lib/lock.c: Likewise.
42910 * lib/mbchar.c: Likewise.
42911 * lib/mbswidth.c: Likewise.
42912 * lib/mkdtemp.c: Likewise.
42913 * lib/pipe.c: Likewise.
42914 * lib/printf-args.c: Likewise.
42915 * lib/printf-parse.c: Likewise.
42916 * lib/progname.c: Likewise.
42917 * lib/progreloc.c: Likewise.
42918 * lib/readlink.c: Likewise.
42919 * lib/sh-quote.c: Likewise.
42920 * lib/stpcpy.c: Likewise.
42921 * lib/stpncpy.c: Likewise.
42922 * lib/strcasecmp.c: Likewise.
42923 * lib/strcasestr.c: Likewise.
42924 * lib/strcspn.c: Likewise.
42925 * lib/striconv.c: Likewise.
42926 * lib/strncasecmp.c: Likewise.
42927 * lib/strnlen1.c: Likewise.
42928 * lib/strstr.c: Likewise.
42929 * lib/strtok_r.c: Likewise.
42930 * lib/tls.c: Likewise.
42931 * lib/tmpdir.c: Likewise.
42932 * lib/unicodeio.c: Likewise.
42933 * lib/unsetenv.c: Likewise.
42934 * lib/vasnprintf.c: Likewise.
42935 * lib/vasprintf.c: Likewise.
42936 * lib/wait-process.c: Likewise.
42937 * lib/xallocsa.c: Likewise.
42938 * lib/xsetenv.c: Likewise.
42939 * lib/xstriconv.c: Likewise.
42941 2006-09-13 Simon Josefsson <jas@extundo.com>
42943 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42944 that internally, suggested by Ralf Wildenhues
42945 <Ralf.Wildenhues@gmx.de>.
42947 2006-09-13 Simon Josefsson <jas@extundo.com>
42949 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42951 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42953 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
42955 * lib/_fpending.c: Include <config.h> unconditionally, since we no
42956 longer worry about uses that don't define HAVE_CONFIG_H.
42957 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42958 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42959 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42960 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42961 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42962 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42963 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42964 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42965 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42966 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42967 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42968 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42969 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42970 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42971 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42972 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42973 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42974 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42975 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42976 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42977 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42978 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42979 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42980 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42981 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42982 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42983 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42984 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42985 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42986 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42987 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42988 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42989 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42990 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42991 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42992 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42993 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42994 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42995 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42996 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42997 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43000 2006-09-13 Eric Blake <ebb9@byu.net>
43002 * lib/getopt.c: Fix typo in last commit.
43004 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
43006 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43009 2006-09-12 Jim Meyering <jim@meyering.net>
43011 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43012 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43013 Reported by Nelson H. F. Beebe.
43015 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
43017 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43018 program_invocation_name and program_invocation_short_name are
43020 * lib/argp-namefrob.h: Move declarations of program_invocation_name
43021 and program_invocation_short_name to argp.h, so they are visible
43023 * lib/argp.h: Likewise
43025 2006-09-10 Bruno Haible <bruno@clisp.org>
43027 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43028 m4/inttypes_h.m4, m4/uintmax_t.m4.
43030 2006-09-10 Bruno Haible <bruno@clisp.org>
43032 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43033 gl_AC_TYPE_UINTMAX_T.
43035 2006-09-10 Bruno Haible <bruno@clisp.org>
43037 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43039 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
43041 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43042 convention. Text proposed by Bruno Haible.
43043 (struct argp_option): Document the use of N_() wrappers.
43045 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43046 '\v', and translate the two parts separately, instead of feeding
43047 the whole string to gettext. This allows to exclude
43048 '\v' from the strings visible to the translator by writing doc
43049 strings as N_("..") "\v" N_("..").
43051 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
43053 * config/srclist.txt: Undo latest change; the bug was fixed.
43055 2006-09-09 Bruno Haible <bruno@clisp.org>
43057 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43058 assignments if building a library without libtool.
43059 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43060 in func_emit_lib_Makefile_am.
43061 (func_import): When building a static library libfoo.a, arrange to
43062 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43063 (func_create_testdir): Likewise.
43064 * modules/gc (configure.ac, Makefile.am): If building statically,
43065 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43066 * modules/iconvme (configure.ac, Makefile.am): Likewise.
43067 * modules/striconv (configure.ac, Makefile.am): Likewise.
43068 Based on a suggestion by Ralf Wildenhues.
43070 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43072 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43073 Check for unistd.h too, since Autoconf doesn't assume POSIX.
43076 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43077 Add year_2050_test to catch glibc bug 2821
43078 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43080 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43081 Prefer #ifdef to #if.
43083 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
43084 Return from 'main' instead of calling 'exit'.
43086 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43088 * lib/mktime.c (guess_time_tm): Fix bug where mktime
43089 returned the maximum time_t value rather than (time_t) -1.
43090 Problem originally reported by William Bardwell
43091 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43093 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43095 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43098 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43100 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43103 2006-09-08 Jim Meyering <jim@meyering.net>
43105 Don't make generated files read-only. That would bother too many
43106 people. However, do retain the ability to work when targets are
43107 read-only: remove the destination and temporary files before writing
43108 them (when generated via sed or echo), or by using the -f option for
43109 both cp and mv commands. Suggestion to use -f from Paul Eggert.
43110 * modules/alloca-opt, modules/argz, modules/arpa_inet:
43111 * modules/byteswap, modules/configmake, modules/fcntl:
43112 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43113 * modules/localcharset, modules/netinet_in, modules/poll:
43114 * modules/stdbool, modules/stdint, modules/sys_select:
43115 * modules/sys_socket, modules/sys_stat, modules/sysexits:
43117 2006-09-08 Jim Meyering <jim@meyering.net>
43119 Avoid new build failure on FreeBSD 6.0.
43120 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43121 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
43122 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43124 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43126 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43128 2006-09-07 Jim Meyering <jim@meyering.net>
43130 Fix global typo in last change: use chmod u-w, not chmod u-x.
43131 Spotted by Paul Eggert and Bruce Korb.
43132 * modules/alloca-opt, modules/argz, modules/arpa_inet:
43133 * modules/byteswap, modules/configmake, modules/fcntl:
43134 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43135 * modules/localcharset, modules/netinet_in, modules/poll:
43136 * modules/stdbool, modules/stdint, modules/sys_select:
43137 * modules/sys_socket, modules/sys_stat, modules/sysexits:
43139 2006-09-06 Jim Meyering <jim@meyering.net>
43141 Make generated files be read-only.
43142 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43143 Ensure that each generated file is now read-only.
43144 * modules/argz: Likewise.
43145 * modules/arpa_inet: Likewise.
43146 * modules/byteswap: Likewise.
43147 * modules/configmake: Likewise.
43148 * modules/fcntl: Likewise.
43149 * modules/fnmatch: Likewise.
43150 * modules/getopt: Likewise.
43151 * modules/glob: Likewise.
43152 * modules/inttypes: Likewise.
43153 * modules/netinet_in: Likewise.
43154 * modules/poll: Likewise.
43155 * modules/stdbool: Likewise.
43156 * modules/stdint: Likewise.
43157 * modules/sys_select: Likewise.
43158 * modules/sys_socket: Likewise.
43159 * modules/sys_stat: Likewise.
43160 * modules/sysexits: Likewise.
43161 * modules/localcharset: Same as above, but continue using temporary
43162 file named "t-$@" (why different?) rather than the "$@-t" used
43165 * modules/sysexits (Makefile.am): Replace literal occurrences
43166 of "sysexit.h" more readable, and more consistent, "$@".
43168 2006-09-06 Bruno Haible <bruno@clisp.org>
43170 * modules/striconv: New file.
43171 * modules/xstriconv: New file.
43172 * MODULES.html.sh (Internationalization functions): Add striconv,
43175 2006-09-06 Bruno Haible <bruno@clisp.org>
43177 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43178 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43179 not using libtool correctly.
43181 2006-09-06 Bruno Haible <bruno@clisp.org>
43183 * lib/striconv.h: New file.
43184 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43186 * lib/xstriconv.h: New file.
43187 * lib/xstriconv.c: New file.
43189 2006-09-06 Bruno Haible <bruno@clisp.org>
43191 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43194 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43196 * lib/argz_.h: Sync from Libtool.
43198 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
43199 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43201 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43203 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
43205 * modules/trim: New file.
43207 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
43209 * lib/trim.h: New file.
43210 * lib/trim.c: New file.
43212 2006-09-05 Bruno Haible <bruno@clisp.org>
43214 * MODULES.html.sh (String handling): Add trim.
43216 2006-09-04 Karl Berry <karl@gnu.org>
43218 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43219 until next release.
43221 2006-09-03 Bruno Haible <bruno@clisp.org>
43223 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43226 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43228 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43229 not gl_GETLOADAVG. Omit unneeded semicolons.
43230 Problems reported by Ralf Wildenhues in
43231 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43232 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
43233 at the end, which is the usual gnulib style.
43235 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43236 of doing all the work ourselves.
43237 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43238 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43240 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43242 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43243 Problem reported by Ralf Wildenhues in
43244 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43246 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43247 HAVE_STRUCT_STATFS_F_FSTYPENAME.
43249 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43251 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43252 yesterday's patch by changing test -n to test -z.
43254 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43256 * modules/getloadavg (Files): Add m4/getloadavg.m4.
43257 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43258 the former is now obsolescent.
43260 * modules/chdir-long (Depends-on): Add fcntl.
43262 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43264 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43265 obsolescent, and programs should use gnulib instead.
43266 * m4/getloadavg.m4: New file, with contents taken from Autoconf
43267 but with prefixes changed.
43269 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43271 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43272 or stdbool.h, because they might not exist while configuring.
43274 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43275 Don't include unistd.h or limits.h; not needed, since chdir-long.h
43277 (O_DIRECTORY): Remove.
43279 2006-08-31 Eric Blake <ebb9@byu.net>
43281 * gnulib-tool: Don't let emacs change spaces to TAB.
43283 2006-08-31 Bruno Haible <bruno@clisp.org>
43285 * gnulib-tool: When calling func_import more than once, do it in a
43287 Reported by Eric Blake <ebb9@byu.net>.
43289 2006-08-31 Bruno Haible <bruno@clisp.org>
43291 * gnulib-tool (nl): Remove variable.
43292 (sed_transform_lib_file): Use more robust test for config-h module.
43293 (func_import): Fix typo in 2006-08-25 patch.
43295 2006-08-31 Bruno Haible <bruno@clisp.org>
43297 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43298 specified, augment Makefile.am variables instead of assigning them.
43300 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43302 Work around a bug in both the Linux and SunOS 64-bit kernels:
43303 nanosleep mishandles sleeps for longer than 2**31 seconds.
43304 Problem reported by Frank v Waveren in
43305 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43306 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43307 Check for nanosleep bug.
43308 (LIB_NANOSLEEP): Append clock_gettime library if needed.
43310 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43312 Work around a bug in both the Linux and SunOS 64-bit kernels:
43313 nanosleep mishandles sleeps for longer than 2**31 seconds.
43314 Problem reported by Frank v Waveren in
43315 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43316 * lib/nanosleep.c (BILLION): New constant.
43317 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43318 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43321 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43323 * modules/nanosleep (Depends-on): Add gettime.
43325 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43326 and Simon Josefsson <jas@extundo.com>
43327 and Oskar Liljeblad <oskar@osk.mine.nu>
43329 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43330 * gnulib-tool (func_import): New license type 'unmodifiable license
43332 * modules/fdl: Use it. Longer description.
43333 * module/gpl, module/lgpl: New files.
43335 2006-08-30 Jim Meyering <jim@meyering.net>
43337 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43338 shadowing the parameter.
43340 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43344 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43346 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43347 sharing with gnulib. Report by Eric Blake.
43349 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43351 * modules/isapipe: New file.
43352 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43354 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43356 * modules/configmake (Makefile.am): Add a comment, and omit
43357 the CONFIGMAKE_ prefix from generated macro names. Suggested
43360 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43362 * m4/isapipe.m4: New file.
43364 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43366 * lib/isapipe.c, lib/isapipe.h: New files.
43368 2006-08-29 Jim Meyering <jim@meyering.net>
43370 * modules/configmake (Makefile.am): Make configmake.h depend on
43371 Makefile. Otherwise, a stale configmake.h could hang around.
43373 2006-08-29 Eric Blake <ebb9@byu.net>
43375 * lib/error.c (error_at_line, print_errno_message): Match libc, after
43376 resolution of upstream bug 3044.
43378 2006-08-29 Bruno Haible <bruno@clisp.org>
43380 * modules/localcharset (Depends-on): Add configmake.
43381 (Makefile.am): Remove setting of LIBDIR through DEFS.
43383 2006-08-29 Bruno Haible <bruno@clisp.org>
43385 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43388 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43390 * modules/fcntl: New file.
43391 * modules/chdir-safer (Depends-on): Add fcntl.
43392 * modules/fts: Likewise.
43393 * modules/mkdir-p: Likewise.
43395 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43396 This undoes the most recent change, since we're now addressing the
43397 problem in a different way.
43399 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43400 into output, since the output might be called Makefile.am even
43401 if $makefile_name is something different.
43402 (func_import): Use $makefile_am rather than
43403 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43406 * modules/inttypes (Files): Add m4/inttypes-h.m4.
43408 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43410 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43411 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
43412 recent change to stdint.m4, since we're now addressing the problem in a
43415 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43417 * m4/fcntl_h.m4: New file.
43419 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43421 * lib/fcntl_.h: New file.
43422 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43424 * lib/dirchownmod.c: Likewise.
43425 * lib/fts.c: Likewise.
43427 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43428 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43429 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43430 just before including <inttypes.h>, to avoid circular inclusion.
43432 2006-08-28 Jim Meyering <jim@meyering.net>
43434 * doc/visibility.texi: Actually read and correct the grammar of the
43435 sentence affected by yesterday's change.
43437 2006-08-28 Eric Blake <ebb9@byu.net>
43439 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43442 2006-08-28 Eric Blake <ebb9@byu.net>
43444 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43446 2006-08-28 Eric Blake <ebb9@byu.net>
43448 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43450 2006-08-28 Bruno Haible <bruno@clisp.org>
43452 * modules/c-strstr: New file, from GNU gettext.
43453 * MODULES.html.sh (String handling): Add c-strstr.
43455 2006-08-28 Bruno Haible <bruno@clisp.org>
43457 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43459 Reported by Eric Blake.
43461 2006-08-28 Bruno Haible <bruno@clisp.org>
43463 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43464 (VASNPRINTF): Return a string of length > INT_MAX without failing.
43465 * lib/vasprintf.c: Include errno.h, limits.h.
43466 (EOVERFLOW): New fallback definition.
43467 (vasprintf): Test here whether the string length is > INT_MAX.
43468 * lib/vsnprintf.c: Include errno.h, limits.h.
43469 (EOVERFLOW): New fallback definition.
43470 (vsnprintf): Fix bug when generated string was too long for the buffer.
43471 Test here whether the string length is > INT_MAX.
43473 2006-08-28 Bruno Haible <bruno@clisp.org>
43475 * lib/inttypes_.h (SCNX*): Remove definitions.
43476 Reported by Eric Blake.
43478 2006-08-28 Bruno Haible <bruno@clisp.org>
43480 * lib/c-strstr.h: New file, from GNU gettext.
43481 * lib/c-strstr.c: New file, from GNU gettext.
43483 2006-08-28 Bruno Haible <bruno@clisp.org>
43485 * gnulib-tool: Reorder some statements.
43487 2006-08-28 Bruno Haible <bruno@clisp.org>
43489 * gnulib-tool: New option --makefile-name.
43490 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43492 (func_import): Write $makefile_name to the cache file, and read it from
43493 there unless explicitly specified. Use $makefile_name as file name
43494 instead of Makefile.am. Adjust the recommendations accordingly.
43496 2006-08-28 Bruno Haible <bruno@clisp.org>
43498 * gnulib-tool (func_verify_module): Check against misapplying patch.
43500 2006-08-28 Bruno Haible <bruno@clisp.org>
43502 * gnulib-tool (func_relativize, func_relconcat): New functions.
43503 Give an error if --local-dir is given with --update.
43504 Remove trailing slashes from $local_gnulib_dir.
43505 (func_import): Store the relativized $local_gnulib_dir in
43506 gnulib-cache.m4, and read it from there if not specified explicitly.
43508 2006-08-28 Bruno Haible <bruno@clisp.org>
43510 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43511 is the current directory. Respect also $local_gnulib_dir.
43513 2006-08-28 Bruno Haible <bruno@clisp.org>
43514 Simon Josefsson <jas@extundo.com>
43517 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43519 2006-08-27 Jim Meyering <jim@meyering.net>
43521 * doc/visibility.texi: Remove duplicate word: "pointer".
43523 2006-08-26 Bruno Haible <bruno@clisp.org>
43525 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43526 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43527 (Makefile.am): Create inttypes.h from inttypes_.h.
43528 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43530 * modules/imaxabs: New file.
43532 * modules/imaxdiv: New file.
43534 2006-08-26 Bruno Haible <bruno@clisp.org>
43536 * m4/inttypes.m4: New file.
43537 * m4/_inttypes_h.m4: Remove file.
43538 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43540 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43542 * m4/imaxabs.m4: New file.
43544 * m4/imaxdiv.m4: New file.
43546 2006-08-26 Bruno Haible <bruno@clisp.org>
43548 * lib/inttypes_.h: New file.
43549 * lib/inttypes.h: Remove file.
43550 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43552 * lib/imaxabs.c: New file.
43554 * lib/imaxdiv.c: New file.
43556 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43558 New config-h module, so that "make" output needn't be cluttered
43559 by -DHAVE_CONFIG_H.
43560 * MODULES.html.sh (Support for building libraries and executables):
43562 * modules/config-h: New file.
43563 * gnulib-tool (nl, sed_transform_lib_file): New vars.
43564 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43565 the config-h module is used.
43567 New configmake module, so that "make" output needn't be cluttered
43568 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43569 * MODULES.html.sh (Support for building libraries and executables):
43571 * modules/configmake: New file.
43573 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43575 * m4/config-h.m4: New file.
43577 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43579 * config/srclist.txt: Add elisp-comp.
43581 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43583 * MODULES.html.sh (Support for building libraries and executables):
43585 * build-aux/elisp-comp: New file.
43586 * modules/elisp-comp: New file.
43588 2006-08-24 Bruno Haible <bruno@clisp.org>
43590 * gnulib-tool (func_create_testdir): Use non-default values of
43591 sourcebase and m4base.
43593 2006-08-24 Bruno Haible <bruno@clisp.org>
43595 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43598 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
43600 * modules/openat (Depends-on): Add lchown.
43602 2006-08-23 Bruno Haible <bruno@clisp.org>
43604 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43605 of gl_LOCK_EARLY instead of gl_LOCK.
43607 2006-08-23 Bruno Haible <bruno@clisp.org>
43609 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43611 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43613 2006-08-23 Bruno Haible <bruno@clisp.org>
43615 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43618 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43619 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43620 (gl_LOCK): New macro.
43622 2006-08-22 Simon Josefsson <jas@extundo.com>
43624 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43627 2006-08-22 Simon Josefsson <jas@extundo.com>
43629 * MODULES.html.sh: Add "Support for maintaining and release
43632 * build-aux/gnupload: New file, from coreutils.
43634 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43636 Avoid the need for AC_LIBSOURCES in m4 macros.
43637 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43638 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43639 * modules/check-version (EXTRA_DIST): Add check-version.h.
43640 * modules/crc (EXTRA_DIST): Add crc.h.
43641 * modules/des (EXTRA_DIST): Add des.h.
43642 * modules/gc (EXTRA_DIST): Add gc.h.
43643 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43644 * modules/getline (EXTRA_DIST): Add getline.h.
43645 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43646 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43647 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43648 * modules/md2 (EXTRA_DIST): Add md2.h.
43649 * modules/md4 (EXTRA_DIST): Add md4.h.
43650 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43651 * modules/read-file (EXTRA_DIST): Add read-file.h.
43652 * modules/readline (EXTRA_DIST): Add readline.h.
43653 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43654 rijndael-api-fst.h.
43656 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43658 * m4/rijndael.m4 (gl_ARCFOUR):
43659 * m4/arctwo.m4 (gl_ARCTWO):
43660 * m4/check-version.m4 (gl_CHECK_VERSION):
43661 * m4/crc.m4 (gl_CRC):
43662 * m4/des.m4 (gl_DES):
43663 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43664 * m4/gc.m4 (gl_GC):
43665 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43666 * m4/getline.m4 (gl_FUNC_GETLINE):
43667 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43668 * m4/hmac-md5.m4 (gl_HMAC_MD5):
43669 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43670 * m4/md2.m4 (gl_MD2):
43671 * m4/md4.m4 (gl_MD4):
43672 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43673 * m4/read-file.m4 (gl_FUNC_READ_FILE):
43674 * m4/readline.m4 (gl_FUNC_READLINE):
43675 * m4/rijndael.m4 (gl_RIJNDAEL):
43676 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43677 to get the necessary .h files and whatnot.
43679 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43681 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43682 gnulib rather than the other way around.
43683 * config/srclistvars.sh (COREUTILS): Remove.
43685 2006-08-22 Jim Meyering <jim@meyering.net>
43687 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43689 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43691 2006-08-22 Eric Blake <ebb9@byu.net>
43693 * modules/regexprops-generic: New file.
43694 * MODULES.html.sh (Support for building documentation): List it.
43696 2006-08-22 Eric Blake <ebb9@byu.net>
43698 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43699 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43700 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43701 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43703 2006-08-22 Bruno Haible <bruno@clisp.org>
43705 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43706 and lib_LTLIBRARIES like the other lib_* variables.
43708 2006-08-22 Bruno Haible <bruno@clisp.org>
43710 * build-aux/x-to-1.in: New file, from GNU gettext.
43712 2006-08-22 Bruno Haible <bruno@clisp.org>
43714 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43717 2006-08-22 Bruno Haible <bruno@clisp.org>
43719 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43722 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43725 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43727 Problem reported by Bruno Haible.
43729 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43731 Avoid the need for AC_LIBSOURCES in m4 macros.
43732 * modules/acl (EXTRA_DIST): Add acl.h.
43733 * modules/argmatch (Files): Add m4/argmatch.m4.
43734 (configure.ac): Add gl_ARGMATCH.
43735 (EXTRA_DIST): Renamed from lib_SOURCES, for
43736 consistency with the other modules. Remove argmatch.c.
43737 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43738 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43739 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43740 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43741 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43742 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43743 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43744 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43745 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43746 * modules/closeout (EXTRA_DIST): Add closeout.h.
43747 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43748 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43749 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43750 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
43751 dirname.h; remove basename.c and stripslash.c.
43752 * modules/exclude (EXTRA_DIST): Add exclude.h.
43753 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43754 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43755 * modules/file-type (EXTRA_DIST): Add file-type.h.
43756 * modules/filemode (EXTRA_DIST): Add filemode.h.
43757 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43758 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43759 * modules/fpending (EXTRA_DIST): Add __fpending.h.
43760 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43761 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43762 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43763 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43764 * modules/getdate (EXTRA_DIST): Add getdate.c.
43765 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43766 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43767 * modules/getpass (EXTRA_DIST): Add getpass.h.
43768 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43769 * modules/group-member (EXTRA_DIST): Add group-member.h.
43770 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43771 * modules/hash (EXTRA_DIST): Add hash.h.
43772 * modules/human (EXTRA_DIST): Add human.h.
43773 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43774 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43775 * modules/lchown (EXTRA_DIST): Add lchown.h.
43776 * modules/long-options (EXTRA_DIST): Add long-options.h.
43777 * modules/lstat (EXTRA_DIST): Add lstat.h.
43778 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43779 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43780 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43781 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43782 * modules/memxor (EXTRA_DIST): Add memxor.h.
43783 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43784 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43785 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43786 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43787 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43788 * modules/physmem (EXTRA_DIST): Add physmem.h.
43789 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43790 * modules/posixver (EXTRA_DIST): Add posixver.h.
43791 * modules/quote (EXTRA_DIST): Add quote.h.
43792 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43793 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43794 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43795 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43796 regex_internal.h regexec.c.
43797 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43798 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43799 * modules/same (EXTRA_DIST): Add same.h.
43800 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43801 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43802 * modules/savedir (EXTRA_DIST): Add savedir.h.
43803 * modules/sha1 (EXTRA_DIST): Add sha1.h.
43804 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43805 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43806 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43807 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43808 * modules/strdup (EXTRA_DIST): Add strdup.h.
43809 * modules/strftime (EXTRA_DIST): Add strftime.h.
43810 * modules/strndup (EXTRA_DIST): Add strndup.h.
43811 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43812 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43813 * modules/time_r (EXTRA_DIST): Add time_r.h.
43814 * modules/timespec (EXTRA_DIST): Add timespec.h.
43815 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43816 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43817 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43818 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43819 * modules/userspec (EXTRA_DIST): Add userspec.h.
43820 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43821 * modules/utimens (EXTRA_DIST): Add utimens.h.
43822 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43823 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43824 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43825 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43826 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43827 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43828 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43829 * modules/yesno (EXTRA_DIST): Add yesno.h.
43831 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43833 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43835 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43836 * m4/dev-ino.m4, same-inode.m4: Remove.
43838 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43839 * m4/acl.m4 (AC_FUNC_ACL):
43840 * m4/backupfile.m4 (gl_BACKUPFILE):
43841 * m4/c-strtod.m4 (gl_C99_STRTOLD):
43842 * m4/canon-host.m4 (gl_CANON_HOST):
43843 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43844 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43845 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43846 * m4/cloexec.m4 (gl_CLOEXEC):
43847 * m4/close-stream.m4 (gl_CLOSE_STREAM):
43848 * m4/closeout.m4 (gl_CLOSEOUT):
43849 * m4/dirfd.m4 (gl_FUNC_DIRFD):
43850 * m4/dirname.m4 (gl_DIRNAME):
43851 * m4/exclude.m4 (gl_EXCLUDE):
43852 * m4/exitfail.m4 (gl_EXITFAIL):
43853 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43854 * m4/file-type.m4 (gl_FILE_TYPE):
43855 * m4/filemode.m4 (gl_FILEMODE):
43856 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43857 * m4/fpending.m4 (gl_FUNC_FPENDING):
43858 * m4/fprintftime.m4 (gl_FPRINTFTIME):
43859 * m4/fts.m4 (gl_FUNC_FTS):
43860 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43861 * m4/getdate.m4 (gl_GETDATE):
43862 * m4/gethrxtime.m4 (gl_GETHRXTIME):
43863 * m4/getpagesize.m4 (gl_GETPAGESIZE):
43864 * m4/getpass.m4 (gl_FUNC_GETPASS):
43865 * m4/gettime.m4 (gl_GETTIME):
43866 * m4/getugroups.m4 (gl_GETUGROUPS):
43867 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43868 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43869 * m4/hard-locale.m4 (gl_HARD_LOCALE):
43870 * m4/hash.m4 (gl_HASH):
43871 * m4/idcache.m4 (gl_IDCACHE):
43872 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43873 * m4/lchown.m4 (gl_FUNC_LCHOWN):
43874 * m4/long-options.m4 (gl_LONG_OPTIONS):
43875 * m4/lstat.m4 (gl_FUNC_LSTAT):
43876 * m4/md5.m4 (gl_MD5):
43877 * m4/memcasecmp.m4 (gl_MEMCASECMP):
43878 * m4/memcoll.m4 (gl_MEMCOLL):
43879 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43880 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43881 * m4/memxor.m4 (gl_MEMXOR):
43882 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43883 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43884 * m4/modechange.m4 (gl_MODECHANGE):
43885 * m4/mountlist.m4 (gl_MOUNTLIST):
43886 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43887 * m4/openat.m4 (gl_FUNC_OPENAT):
43888 * m4/pathmax.m4 (gl_PATHMAX):
43889 * m4/physmem.m4 (gl_PHYSMEM):
43890 * m4/posixtm.m4 (gl_POSIXTM):
43891 * m4/posixver.m4 (gl_POSIXVER):
43892 * m4/quote.m4 (gl_QUOTE):
43893 * m4/quotearg.m4 (gl_QUOTEARG):
43894 * m4/readtokens.m4 (gl_READTOKENS):
43895 * m4/readutmp.m4 (gl_READUTMP):
43896 * m4/regex.m4 (gl_REGEX):
43897 * m4/safe-read.m4 (gl_SAFE_READ):
43898 * m4/safe-write.m4 (gl_SAFE_WRITE):
43899 * m4/same.m4 (gl_SAME):
43900 * m4/save-cwd.m4 (gl_SAVE_CWD):
43901 * m4/savedir.m4 (gl_SAVEDIR):
43902 * m4/settime.m4 (gl_SETTIME):
43903 * m4/sha1.m4 (gl_SHA1):
43904 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43905 * m4/stat-macros.m4 (gl_STAT_MACROS):
43906 * m4/stat-time.m4 (gl_STAT_TIME):
43907 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43908 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43909 * m4/strdup.m4 (gl_FUNC_STRDUP):
43910 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43911 * m4/strndup.m4 (gl_FUNC_STRNDUP):
43912 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43913 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43914 * m4/time_r.m4 (gl_TIME_R):
43915 * m4/timespec.m4 (gl_TIMESPEC):
43916 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43917 * m4/unlinkdir.m4 (gl_UNLINKDIR):
43918 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43919 * m4/userspec.m4 (gl_USERSPEC):
43920 * m4/utimecmp.m4 (gl_UTIMECMP):
43921 * m4/utimens.m4 (gl_UTIMENS):
43922 * m4/xalloc.m4 (gl_XALLOC):
43923 * m4/xgetcwd.m4 (gl_XGETCWD):
43924 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43925 * m4/xreadlink.m4 (gl_XREADLINK):
43926 * m4/xstrtod.m4 (gl_XSTRTOD):
43927 * m4/yesno.m4 (gl_YESNO):
43928 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43929 to get the necessary .h files and whatnot.
43931 2006-08-21 Mark D. Baushke <mdb@gnu.org>
43932 Bruno Haible <bruno@clisp.org>
43934 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43935 /bin/sh understanding of '!' conditional negation.
43937 2006-08-21 Jim Meyering <jim@meyering.net>
43939 * modules/openat (Depends-on): Really alphabetize.
43941 * modules/acl (Depends-on): Add error and quote.
43943 * check-module (find_included_lib_files): Add at-func.c to the
43944 ok-to-include-more-than-once white list.
43946 * modules/openat (Depends-on): Add lstat. Alphabetize.
43948 2006-08-21 Bruno Haible <bruno@clisp.org>
43950 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43951 Emit a pkgdata_DATA variable only if some snippets add contents to it.
43952 Reported by Martin Lambers <marlam@marlam.de>.
43954 2006-08-21 Bruno Haible <bruno@clisp.org>
43956 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43957 specify an installation location, don't emit a noinst_LIBRARIES or
43958 noinst_LTLIBRARIES assignment.
43960 2006-08-21 Bruno Haible <bruno@clisp.org>
43963 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43964 BeOS has mbrtowc() but no <wctype.h>.
43966 2006-08-21 Bruno Haible <bruno@clisp.org>
43969 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43972 2006-08-21 Bruno Haible <bruno@clisp.org>
43975 * lib/mbchar.h: Include <wctype.h> only if it exists.
43977 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43979 Remove files that are no longer needed by their respective modules.
43980 * m4/obstack.m4: Remove.
43981 * m4/strerror_r.m4: Remove.
43982 * m4/uint32_t.m4: Remove.
43983 * m4/uintptr_t.m4: Remove.
43984 * m4/ullong_max.m4: Remove.
43985 * m4/xstrtoimax.m4: Remove.
43986 * m4/xstrtoumax.m4: Remove.
43988 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43989 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43990 dependencies now capture this.
43992 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43993 Do not use AC_LIBSOURCES, since gnulib modules now do this.
43994 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43995 * m4/human.m4 (gl_HUMAN): Likewise.
43996 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43997 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43999 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44001 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44002 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44004 * m4/human.m4 (gl_HUMAN): Likewise.
44005 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44006 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44007 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44008 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44009 * m4/xstrtol (gl_XSTRTOL): Likewise.
44011 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44012 AC_TYPE_LONG_LONG_INT.
44013 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44014 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44015 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44016 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44018 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44021 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44022 (gl_PREREQ_XSTRTOUL): Remove.
44024 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44026 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44029 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
44031 Add and change modules to make it easier for coreutils to use
44033 * modules/backupfile (Files): Remove m4/d-ino.m4.
44034 (Depends-on): Add d-ino.
44035 * modules/cycle-check (Depends-on): Add stdint.
44036 (lib_SOURCES): Add cycle-check.h.
44037 * modules/d-ino: New module.
44038 * modules/d-type: New module.
44039 * modules/error (Files): Remove m4/strerror_r.m4.
44040 * modules/filemode (Files): Add m4/st_dm_mode.m4.
44041 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44042 m4/inttypes_h.m4, m4/uintmax_t.m4.
44043 (Depends-on): Add stdint.
44044 (lib_SOURCES): Add fsusage.h.
44045 * modules/getcwd (Files): Remove d-ino.m4.
44046 (Depends-on): Add d-ino.
44047 * modules/getndelim2 (Depends-on): Add stdint.
44048 * modules/glob (Files): Remove m4/d-type.m4.
44049 (Depends-on): Add d-type.
44050 * modules/host-os: New module.
44051 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44052 m4/inttypes_h.m4, m4/uintmax_t.m4.
44053 * Depends-on: Add stdint.
44054 (lib_SOURCES): Add human.h.
44055 * modules/inttostr (Files): Remove m4/intmax_t.m4,
44056 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44057 m4/uintmax_t.m4, m4/ulonglong.m4.
44058 (Depends-on): Add stdint.
44059 (EXTRA_DIST): Add inttostr.h.
44060 * modules/lchmod: New module.
44061 * modules/link-follow: New module.
44062 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44063 (Depends-on): Add lchmod.
44064 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44065 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44066 (Depends-on): Add stdint.
44067 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44068 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44069 (Depends-on): Add stdint.
44070 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44071 * modules/perl: New module.
44072 * modules/regex (Depends-on): Add stdint.
44073 * modules/rmdir-errno: New module.
44074 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44076 (Depends-on): Add stdint.
44077 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44079 (Depends-on): Add stdint.
44080 * modules/unlink-busy: New module.
44081 * modules/utimecmp (Depends-on): Add stdint.
44082 * modules/uptime: New module.
44083 * modules/winsz-ioctl: New module.
44084 * modules/winsz-termios: New module.
44085 * modules/xnanosleep (Depends-on): Add nanosleep.
44086 * modules/ullong_max: Remove.
44087 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44088 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44089 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44090 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44091 (Depends-on): Add inttypes.
44092 (lib_SOURCES): Add xstrtol.h.
44093 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44094 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44095 * MODULES.html.sh: Move 'assert' into the assert section.
44096 Move 'dummy' into the linking section.
44098 Add section for compatibility checks for POSIX:2001 functions,
44099 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44100 winsz-ioctl, and winsz-termios into it.
44102 Add top-level Misc section and put host-os, perl, and uptime
44105 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
44107 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44108 now assume the stdint module. Do not include inttypes.h.
44109 * lib/fsusage.h: Likewise.
44110 * lib/getndelim2.c: Likewise.
44111 * lib/human.h: Likewise.
44112 * lib/inttostr.h: Likewise.
44113 * lib/obstack.c: Likewise.
44114 * lib/regex_internal.h: Likewise.
44115 * lib/tempname.c: Likewise.
44116 * lib/utimecmp.c: Likewise.
44117 * lib/xstrtol.h: Likewise.
44119 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44121 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44122 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44123 * lib/xtime.h: Likewise.
44125 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
44127 * modules/openat (Files): Add lib/fchmodat.c.
44128 Fixes problem reported by Jay Youngman.
44130 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
44132 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
44133 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
44135 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
44136 Bruno Haible <bruno@clisp.org>
44138 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44139 and is a script that invokes bison. Tighten the code. Add comments.
44141 2006-08-18 Jim Meyering <jim@meyering.net>
44143 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44144 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44145 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
44146 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44148 2006-08-18 Bruno Haible <bruno@clisp.org>
44150 * modules/bison-i18n: New file.
44151 * MODULES.html.sh (Internationalization functions): Add it.
44153 2006-08-18 Bruno Haible <bruno@clisp.org>
44155 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44156 sys/statvfs.h. When getmntinfo was found, check its declaration and
44157 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44159 2006-08-18 Bruno Haible <bruno@clisp.org>
44161 * m4/bison-i18n.m4: New file, from bison.
44163 2006-08-18 Bruno Haible <bruno@clisp.org>
44165 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44166 (ME_DUMMY): Treat "kernfs" as a dummy.
44167 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44169 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
44171 Update from coreutils.
44173 2006-08-15 Jim Meyering <jim@meyering.net>
44175 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44177 2006-01-17 Jim Meyering <jim@meyering.net>
44179 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44181 2006-01-11 Jim Meyering <jim@meyering.net>
44183 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44184 Check for the lchmod function.
44186 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
44188 Update from coreutils.
44190 * lib/__fpending.h: Add copyright notice.
44191 * lib/fprintftime.h: Likewise.
44192 * lib/savedir.c: Use (C) in copyright notice.
44193 * lib/savedir.h: Likewise.
44195 2006-08-15 Jim Meyering <jim@meyering.net>
44197 * lib/at-func.c: New file, with the logic of all emulated at-functions.
44198 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44199 in support of the EXPECTED_ERRNO macro.
44200 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44201 definitions. Instead, define the appropriate symbols and include
44203 * lib/mkdirat.c (mkdirat): Likewise.
44204 * lib/fchmodat.c (fchmodat): Likewise.
44205 (ENOSYS): Remove definition.
44206 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44207 it. Don't include "unistd--.h" -- it wasn't ever used.
44209 2006-01-17 Jim Meyering <jim@meyering.net>
44211 Rewrite fts.c not to change the current working directory,
44212 by using openat, fstatat, fdopendir, etc..
44214 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44215 (HAVE_OPENAT_SUPPORT): Define.
44216 [_LIBC] (fchdir): Don't undef or define; no longer used.
44217 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44218 Now, this `function' always succeeds, and consumes its file descriptor
44219 parameter -- so callers must not close such FDs. Update callers.
44220 (diropen_fd, opendirat, cwd_advance_fd): New functions.
44221 (diropen): Add parameter, SP. Adjust all callers.
44222 Implement using diropen_fd, rather than open.
44223 (fts_open): Initialize new member, fts_cwd_fd.
44224 Remove fts_rft-setting code.
44225 (fts_close): Close fts_cwd_fd, if necessary.
44226 (__opendir2): Define in terms of opendir or opendirat,
44227 depending on whether the FST_NOCHDIR flag is set.
44228 (fts_build): Since fts_safe_changedir consumes its FD, and since
44229 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44230 and close the dup'd file descriptor upon failure.
44231 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44232 (fts_safe_changedir): Tweak semantics to reflect that this function
44233 now calls cwd_advance_fd and hence consumes its FD argument.
44234 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44235 [struct FTS] (fts_rft): Remove now-unused member.
44236 [struct FTS] (fts_cycle.state): Improve comment.
44238 * lib/openat.c (openat_needs_fchdir): New function.
44239 * lib/openat.h (openat_needs_fchdir): Declare it.
44241 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
44243 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44244 Problem and fix reported by Pádraig Brady in
44245 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44247 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44249 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44251 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44253 * lib/memcoll.c (memcoll): Optimize for the common case where the
44254 arguments are bytewise equal.
44256 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44258 * doc/regexprops-generic.texi: Add a copyright notice.
44260 2006-08-15 Bruno Haible <bruno@clisp.org>
44262 * modules/tmpdir (License): Change to LGPL.
44264 2006-08-15 Bruno Haible <bruno@clisp.org>
44266 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44269 2006-08-14 Simon Josefsson <jas@extundo.com>
44271 * config/srclist.txt: Add gnupload.
44273 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44275 Change copyright notice from LGPL 2 to GPL 2, since that's the
44276 standard form used in the gnulib repository.
44277 * tests/test-lock.c: Likewise.
44278 * tests/test-stdint.c: Likewise.
44279 * tests/test-tls.c: Likewise.
44281 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44282 prelude-manager. User shorter URLs for GNU projects, without '?'.
44283 Add copyright notice.
44285 * check-module: Add copyright notice. Output a copyright
44286 notice if "--version" is specified.
44287 * modules/COPYING: New file.
44288 * tests/test-getaddrinfo.c: Add copyright notice.
44289 * tests/test-verify.c: Likewise.
44291 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44293 Change copyright notice from LGPL 2 to GPL 2, since that's the
44294 standard form used in the gnulib repository.
44295 * lib/lock.c: LGPL -> GPL.
44296 * lib/lock.h: Likewise.
44297 * lib/strnlen1.c: Likewise.
44298 * lib/strnlen1.h: Likewise.
44299 * lib/tls.c: Likewise.
44300 * lib/tls.h: Likewise.
44301 * lib/tmpdir.c: Likewise.
44303 * lib/TODO: Remove; this belongs only in coreutils.
44305 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44307 Add copyright notices to long-enough files that lack them, since
44308 otherwise the files aren't clearly free. Use the same notice that
44309 getdate.texi already uses.
44310 * doc/alloca-opt.texi: Add copyright notice.
44311 * doc/alloca.texi: Likewise.
44312 * doc/ctime.texi: Likewise.
44313 * doc/functions.texi: Likewise.
44314 * doc/gcd.texi: Likewise.
44315 * doc/gnulib-tool.texi: Likewise.
44316 * doc/inet_ntoa.texi: Likewise.
44317 * doc/visibility.texi: Likewise.
44319 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44320 * doc/quote.texi: Add copyright notice.
44322 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44323 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
44324 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
44325 Mention SunOS 5.11. Mention that everything before SunOS 5.7
44326 is now obsolete, and give a pointer to the Sun list.
44327 Add copyright notice.
44329 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44331 * config/srclistvars.sh: Add copyright notice.
44333 2006-08-14 Eric Blake <ebb9@byu.net>
44335 Import the following change from libc:
44337 2006-08-12 Ulrich Drepper <drepper@redhat.com>
44340 * lib/misc/error.c: Add space between program name and message if file
44343 2006-08-12 Karl Berry <karl@gnu.org>
44345 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44346 remove, these originate in gnulib now.
44348 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44350 * doc/Makefile (standards.info standards.html standards.dvi):
44351 Also depend on make-stds.texi.
44353 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
44355 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44356 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
44358 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44359 in wchar_t. Problem reported by Eric Blake.
44361 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44362 LEN is smaller than SIZE. Suggested by Bruno Haible.
44363 Also, help the compiler to keep LEN in a register.
44365 2006-08-11 Eric Blake <ebb9@byu.net>
44367 * users.txt: Sort. Add tar.
44369 2006-08-11 Bruno Haible <bruno@clisp.org>
44371 * users.txt: New file.
44373 2006-08-11 Bruno Haible <bruno@clisp.org>
44375 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44376 before <wchar.h>. Needed for OSF/1 and BSD/OS.
44378 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
44380 * modules/snprintf (Depends-on): Remove minmax.
44381 (Maintainer): Add self and Bruno.
44383 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
44385 * lib/.cppi-disable: Add snprintf.h, socket_.h.
44386 * lib/snprintf.c: Include <errno.h> and <limits.h>.
44387 (EOVERFLOW): Define if the system does not.
44388 Do not include "minmax.h"; it wasn't used.
44389 (snprintf): Don't assume size_t promotes to an unsigned type.
44390 Fix bug when generated string was too long for the buffer: the
44391 buffer's contents are supposed to be the initial prefix of the
44392 output. Don't assume vasnprintf returns EOVERFLOW if the size
44393 exceeds INT_MAX; do the check ourselves.
44395 Import the following changes from libc:
44397 2006-06-02 Jakub Jelinek <jakub@redhat.com>
44399 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44400 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
44401 set wc to the byte which couldn't be converted.
44402 (re_string_reconstruct): Don't clear valid_raw_len before calling
44403 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
44404 tip_context using re_string_context_at.
44406 2006-05-02 Ulrich Drepper <drepper@redhat.com>
44408 * lib/posix/regex.h: g++ still cannot handled [restrict].
44410 2006-04-21 Ulrich Drepper <drepper@redhat.com>
44412 * lib/posix/regex.h: Remove special handling for VMS.
44414 2006-08-10 Jim Meyering <jim@meyering.net>
44416 * modules/same-inode: New module.
44417 * modules/dev-ino: New module.
44418 * modules/cycle-check: Depend on these modules, rather than simply
44419 including their .h files.
44420 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44421 required via m4/cycle-check.m4.
44422 * modules/same: Depend on new same-inode module, rather than
44423 including same-inode.h.
44424 * modules/chdir-safer: New file.
44426 * modules/chown (Depends-on): Add stat-macros.
44428 2006-08-10 Jim Meyering <jim@meyering.net>
44430 * m4/cycle-check.m4: New file.
44431 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44432 * m4/dev-ino.m4, m4/same-inode.m4: New files.
44434 2006-08-10 Eric Blake <ebb9@byu.net>
44436 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44437 in from original proposal.
44439 2006-08-10 Eric Blake <ebb9@byu.net>
44440 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44442 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44445 2006-08-10 Bruno Haible <bruno@clisp.org>
44447 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44450 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44452 Sync from coreutils.
44454 2006-07-19 Mike Frysinger <vapier@gentoo.org>
44456 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44457 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44459 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44461 * modules/restrict: Remove; no longer needed now that we assume
44462 Autoconf 2.59 or later.
44463 * MODULES.html.sh: Remove 'restrict'.
44464 * modules/argp (Depends-on): Remove 'restrict'.
44465 * modules/base64 (Depends-on): Likewise.
44466 * modules/gc (Depends-on): Likewise.
44467 * modules/getaddrinfo (Depends-on): Likewise.
44468 * modules/glob (Depends-on): Likewise.
44469 * modules/inet_ntop (Depends-on): Likewise.
44470 * modules/inet_pton (Depends-on): Likewise.
44471 * modules/memxor (Depends-on): Likewise.
44472 * modules/regex (Depends-on): Likewise.
44473 * modules/strtok_r (Depends-on): Likewise.
44474 * modules/time_r (Depends-on): Likewise.
44476 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44478 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44479 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44480 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44481 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44482 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44483 * m4/memxor.m4 (gl_MEMXOR): Likewise.
44484 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
44485 gl_C_RESTRICT replaced by AC_C_RESTRICT.
44487 Merge from coreutils.
44488 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44489 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44490 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44491 * m4/time_r.m4 (gl_TIME_R): Likewise.
44493 2006-08-09 Karl Berry <karl@gnu.org>
44495 * config/srclist.txt: no more gettext-tools, per Bruno.
44497 2006-08-08 Eric Blake <ebb9@byu.net>
44499 * modules/verror: New module.
44500 * MODULES.html.sh: Document it.
44502 2006-08-08 Eric Blake <ebb9@byu.net>
44504 * lib/verror.h, lib/verror.c: New files.
44506 2006-08-08 Eric Blake <ebb9@byu.net>
44508 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44509 verror_at_line output complies with GNU Coding Standards even when
44512 2006-08-07 Bruno Haible <bruno@clisp.org>
44514 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44516 Reported by Ralf Wildenhues.
44518 2006-08-07 Bruno Haible <bruno@clisp.org>
44520 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44521 in an AC_DEFUN. Needed so that the autoconf snippets can use
44524 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44526 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44527 Initialize pkgdata_DATA.
44528 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44531 2006-08-06 Eric Blake <ebb9@byu.net>
44533 * lib/error.h: Fold in some upstream changes from glibc.
44534 * lib/error.c: Likewise.
44536 2006-08-04 Bruno Haible <bruno@clisp.org>
44538 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44539 Make the mostlyclean-local rule depend on mostlyclean-generic.
44540 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44542 2006-07-31 Bruno Haible <bruno@clisp.org>
44544 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44545 <stdlib.h>, <string.h>.
44547 2006-07-30 Bruno Haible <bruno@clisp.org>
44549 * modules/readlink (License): Change to LGPL.
44551 2006-07-30 Bruno Haible <bruno@clisp.org>
44553 * modules/javaversion (Makefile.am): Distribute javaversion.java and
44554 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44555 set PKGDATADIR to point to it.
44557 2006-07-30 Bruno Haible <bruno@clisp.org>
44559 * modules/csharpexec (configure.ac): Comment out macro invocation.
44560 * modules/javaexec (configure.ac): Likewise.
44561 * modules/javacomp-script (configure.ac): Likewise.
44563 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44565 2006-07-30 Bruno Haible <bruno@clisp.org>
44567 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44570 2006-07-30 Bruno Haible <bruno@clisp.org>
44572 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44574 2006-07-30 Bruno Haible <bruno@clisp.org>
44576 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44577 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44580 2006-07-29 Bruno Haible <bruno@clisp.org>
44582 Make it possible for gnulib-tool to work with locally modified or
44583 augmented gnulib repositories.
44584 * gnulib-tool (func_usage): Document --local-dir option.
44585 (local_gnulib_dir): New variable.
44586 Handle --local-dir option.
44587 (func_lookup_file): New function.
44588 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44589 (func_get_description, func_get_filelist, func_get_description,
44590 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44591 func_get_automake_snippet, func_get_include_directive,
44592 func_get_license, func_get_maintainer): Use func_lookup_file.
44593 (func_import, func_create_testdir): Use func_lookup_file.
44595 2006-07-29 Bruno Haible <bruno@clisp.org>
44597 * modules/setenv (Depends-on): Add unistd.
44599 2006-07-29 Bruno Haible <bruno@clisp.org>
44601 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44603 2006-07-29 Bruno Haible <bruno@clisp.org>
44605 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44607 2006-07-29 Bruno Haible <bruno@clisp.org>
44609 * gnulib-tool (import, update): If there is no Makefile.am, look at
44610 aclocal.m4, instead of bailing out.
44612 2006-07-29 Bruno Haible <bruno@clisp.org>
44614 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44615 Categorize the options by when they are useful.
44617 2006-07-29 Bruno Haible <bruno@clisp.org>
44619 * gnulib-tool (func_usage): Document option --no-libtool.
44620 Handle option --no-libtool.
44621 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44622 for changed semantics of $libtool variable.
44623 (func_import): Likewise. If libtool is not used, show this through
44624 an option --no-libtool.
44625 (func_create_testdir): Update.
44627 2006-07-29 Bruno Haible <bruno@clisp.org>
44629 * gnulib-tool (func_import): Extend error message about missing
44632 2006-07-29 Bruno Haible <bruno@clisp.org>
44634 * gnulib-tool (func_import): Don't create the $docbase directory if
44635 there is no file to store there.
44637 2006-07-29 Bruno Haible <bruno@clisp.org>
44639 * gnulib-tool (autoconf_minversion): If a --dir option is given and
44640 relevant, look for configure.ac there, not in the current directory.
44641 Also use a simple search for AC_PREREQ, not "autoconf --trace".
44643 2006-07-29 Bruno Haible <bruno@clisp.org>
44645 * gnulib-tool (SORT): New variable.
44646 (func_usage): Undocument --assume-autoconf option.
44647 Remove --assume-autoconf option handling.
44648 (autoconf_minversion): Determine from the contents of configure.ac.
44649 (func_import): Remove autoconf_minversion handling.
44650 Suggested by Eric Blake.
44652 2006-07-29 Bruno Haible <bruno@clisp.org>
44654 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44656 2006-07-29 Bruno Haible <bruno@clisp.org>
44658 * config/srclist.txt (*setenv.[ch]): Remove rules.
44660 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44662 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44664 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44666 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44669 2006-07-28 Simon Josefsson <jas@extundo.com>
44671 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44672 * modules/inet_pton (Depends-on): Likewise.
44674 2006-07-28 Simon Josefsson <jas@extundo.com>
44676 * m4/netinet_in_h.m4: New file.
44678 2006-07-28 Simon Josefsson <jas@extundo.com>
44680 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44683 2006-07-28 Simon Josefsson <jas@extundo.com>
44685 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44688 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
44690 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44691 setgid on directories only if they set these bits.
44692 * lib/modechange.h: Remove obsolete comment about masks.
44694 2006-07-28 Eric Blake <ebb9@byu.net>
44696 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44699 2006-07-28 Bruno Haible <bruno@clisp.org>
44701 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44703 2006-07-28 Bruno Haible <bruno@clisp.org>
44705 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44707 2006-07-28 Bruno Haible <bruno@clisp.org>
44709 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44710 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44712 Avoids link error on FreeBSD 4.x.
44713 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44715 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44717 * lib/mbswidth.c (iswcntrl): Likewise.
44719 2006-07-27 Bruno Haible <bruno@clisp.org>
44721 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44724 2006-07-27 Bruno Haible <bruno@clisp.org>
44726 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44727 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44730 2006-07-26 Eric Blake <ebb9@byu.net>
44732 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44734 2006-07-26 Eric Blake <ebb9@byu.net>
44736 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44737 like mingw that lack mkstemp.
44738 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44739 avoid compilation warning on mingw.
44741 2006-07-26 Bruno Haible <bruno@clisp.org>
44743 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44744 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44745 INT_FAST*_MIN, INTPTR_MIN.
44747 2006-07-25 Bruno Haible <bruno@clisp.org>
44749 * modules/version-etc (Depends-on): Add stdarg.
44751 2006-07-25 Bruno Haible <bruno@clisp.org>
44753 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44756 2006-07-25 Bruno Haible <bruno@clisp.org>
44758 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44759 defined in <stdarg.h> or config.h.
44761 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44763 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44764 (gl_STDIO_SAFER): Remove.
44766 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44768 * MODULES.html.sh (File stream based Input/Output):
44769 Add fopen-safer, tmpfile-safer; remove stdio-safer.
44770 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44771 * modules/fopen-safer, modules/tmpfile-safer: New files.
44772 * modules/stdio-safer: Remove.
44774 2006-07-24 Bruno Haible <bruno@clisp.org>
44776 * modules/tmpdir: New file.
44777 * MODULES.html.sh (File system functions): Add it.
44779 2006-07-24 Bruno Haible <bruno@clisp.org>
44781 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44782 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44784 2006-07-24 Bruno Haible <bruno@clisp.org>
44786 * modules/clean-temp: New file.
44788 2006-07-24 Bruno Haible <bruno@clisp.org>
44790 * m4/tmpdir.m4: New file, from GNU gettext.
44792 2006-07-24 Bruno Haible <bruno@clisp.org>
44794 * lib/tmpdir.h: New file, from GNU gettext.
44795 * lib/tmpdir.c: New file, from GNU gettext.
44797 2006-07-24 Bruno Haible <bruno@clisp.org>
44799 * lib/clean-temp.h: New file, from GNU gettext.
44800 * lib/clean-temp.c: New file, from GNU gettext.
44802 2006-07-23 Eric Blake <ebb9@byu.net>
44804 * modules/stdio-safer (Files): Add tmpfile-safer.c.
44805 (Depends-on): Add binary-io.
44807 2006-07-23 Eric Blake <ebb9@byu.net>
44809 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44811 2006-07-23 Eric Blake <ebb9@byu.net>
44813 * lib/tmpfile-safer.c: New file.
44814 * lib/stdio-safer.h (fopen_safer): Add prototype.
44815 * lib/stdio--.h (tmpfile): Make safer.
44817 2006-07-23 Bruno Haible <bruno@clisp.org>
44819 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44820 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44821 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44822 gl_linked_remove_at): Use it.
44824 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44825 and Simon Josefsson <jas@extundo.com>
44827 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44829 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44831 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44833 * modules/close-stream: New file.
44834 * modules/closeout (Description): Make it clear that it exits
44835 with a diagnostic on error.
44836 (Depends-on): Add close-stream. Remove fpending, stdbool.
44837 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44839 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44841 * m4/close-stream.m4: New file.
44843 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44845 * lib/close-stream.c, lib/close-stream.h: New files.
44847 2006-07-22 Bruno Haible <bruno@clisp.org>
44849 Merge from GNU gettext 0.15.
44851 2006-05-01 Bruno Haible <bruno@clisp.org>
44853 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44855 2006-07-22 Bruno Haible <bruno@clisp.org>
44857 * modules/javaversion: New file.
44858 * MODULES.html.sh (Java): Add javaversion.
44860 2006-03-12 Bruno Haible <bruno@clisp.org>
44862 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44864 2005-12-04 Bruno Haible <bruno@clisp.org>
44866 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44869 2006-06-21 Bruno Haible <bruno@clisp.org>
44871 Avoid warnings from recent versions of mcs.
44872 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44873 -o, -L, -r any more. Use options documented since mcs-1.0
44874 instead. Similarly for -g.
44876 2005-12-04 Bruno Haible <bruno@clisp.org>
44878 * build-aux/csharpcomp.sh.in: Suffix for resources is
44879 .resources, not .resource.
44881 2005-07-09 Bruno Haible <bruno@clisp.org>
44883 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44885 Reported by Mark Junker <mjscod@gmx.de>.
44887 2006-07-22 Bruno Haible <bruno@clisp.org>
44889 * modules/gettext: Upgrade to gettext-0.15.
44890 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44892 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44894 2006-07-22 Bruno Haible <bruno@clisp.org>
44896 Merge from GNU gettext 0.15.
44898 2006-03-25 Bruno Haible <bruno@clisp.org>
44900 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44902 2006-07-21 Bruno Haible <bruno@clisp.org>
44904 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44907 2006-05-09 Bruno Haible <bruno@clisp.org>
44909 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44910 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44911 for the conftestver execution.
44913 2006-05-01 Bruno Haible <bruno@clisp.org>
44915 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44916 optional target-version argument. Verify that the compiler
44917 groks source of the specified source-version, or add -source
44918 option as necessary. Verify that the compiler produces
44919 bytecode in the specified target-version, or add -target and
44920 -source options as necessary. Make the result of the test
44921 available as variable CONF_JAVAC. Also log error output in
44924 2006-03-11 Bruno Haible <bruno@clisp.org>
44926 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44928 2006-05-09 Bruno Haible <bruno@clisp.org>
44930 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44931 CLASSPATH_SEPARATOR to a semicolon.
44933 2006-03-12 Bruno Haible <bruno@clisp.org>
44935 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44936 available as variable CONF_JAVA, for subsequent autoconf
44937 tests. Also log error output in config.log.
44939 2006-07-19 Bruno Haible <bruno@clisp.org>
44941 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44942 that getline works on glibc2 systems. Needed to avoid trouble
44944 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44946 2005-12-04 Bruno Haible <bruno@clisp.org>
44948 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44949 launcher (untested).
44951 2005-12-04 Bruno Haible <bruno@clisp.org>
44953 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44955 2006-07-22 Bruno Haible <bruno@clisp.org>
44957 * gettext.m4: Update from GNU gettext-0.15.
44958 * nls.m4: Likewise.
44960 * inttypes-pri.m4: Likewise.
44961 * inttypes-h.m4: Renamed from inttypes.m4.
44962 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44964 2006-07-22 Bruno Haible <bruno@clisp.org>
44966 Merge from GNU gettext 0.15.
44968 2005-07-05 Bruno Haible <bruno@clisp.org>
44970 * printf-args.c (printf_fetchargs): Work around broken
44971 definition of wint_t on mingw.
44973 2005-02-12 Bruno Haible <bruno@clisp.org>
44975 * xallocsa.h: Add extern "C" for C++.
44977 2006-05-17 Bruno Haible <bruno@clisp.org>
44979 Cygwin portability.
44980 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44982 2006-04-30 Bruno Haible <bruno@clisp.org>
44984 * progreloc.c: Include <mach-o/dyld.h> if available.
44985 (find_executable): Use _NSGetExecutablePath when possible.
44987 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
44989 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44992 2005-12-29 Bruno Haible <bruno@clisp.org>
44994 * progreloc.c (set_program_name_and_installdir): Fix
44997 2005-12-04 Bruno Haible <bruno@clisp.org>
44999 Cygwin portability.
45000 * progreloc.c: Include <windows.h> also on Cygwin.
45001 (find_executable): Add support for Cygwin.
45002 (set_program_name_and_installdir): Handle also platforms with
45005 2006-07-11 Bruno Haible <bruno@clisp.org>
45007 * javacomp.c: Fix a comment.
45008 Reported by Jim Meyering.
45010 2006-04-30 Bruno Haible <bruno@clisp.org>
45012 * javacomp.h (compile_java_class): Add source_version,
45013 target_version arguments.
45014 * javacomp.c: Rewritten to choose only a compiler that
45015 respects the specified source_version and target_version.
45017 2006-06-27 Bruno Haible <bruno@clisp.org>
45019 Assume correct S_ISDIR macro.
45020 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45022 2006-07-22 Bruno Haible <bruno@clisp.org>
45024 * javaversion.h: New file, from GNU gettext.
45025 * javaversion.c: New file, from GNU gettext.
45026 * javaversion.java: New file, from GNU gettext.
45027 * javaversion.class: New file, from GNU gettext.
45029 2006-05-17 Bruno Haible <bruno@clisp.org>
45031 Cygwin portability.
45032 * javaexec.c (execute_java_class): Test for jview program
45035 2006-04-09 Bruno Haible <bruno@clisp.org>
45037 * fatal-signal.c: Don't include string.h.
45038 (at_fatal_signal): Use a copying loop instead of memcpy.
45040 2005-12-04 Bruno Haible <bruno@clisp.org>
45042 * csharpexec.c: Add support for 'clix' launcher (untested).
45043 (execute_csharp_using_sscli): New function.
45044 (execute_csharp_program): Call it.
45046 2006-06-21 Bruno Haible <bruno@clisp.org>
45048 Avoid warnings from recent versions of mcs.
45049 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45050 -o, -L, -r any more. Use options documented since mcs-1.0
45051 instead. Similarly for -g.
45053 2005-07-09 Bruno Haible <bruno@clisp.org>
45055 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45057 Reported by Mark Junker <mjscod@gmx.de>.
45059 2006-06-17 Bruno Haible <bruno@clisp.org>
45061 * config.charset: Update for NetBSD 3.0.
45063 2006-05-17 Bruno Haible <bruno@clisp.org>
45065 Cygwin portability.
45066 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45068 2006-05-16 Bruno Haible <bruno@clisp.org>
45070 * localcharset.c [CYGWIN]: Include <windows.h>.
45071 (get_charset_aliases): For Cygwin, return the same CPxxx
45072 aliases list as under WIN32.
45073 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45074 the environment variables. Fall back to GetACP().
45076 2006-04-05 Bruno Haible <bruno@clisp.org>
45078 * config.charset: Update Juan Manuel Guerrero's address.
45080 2005-02-12 Bruno Haible <bruno@clisp.org>
45082 * allocsa.h: Add extern "C" for C++.
45084 2005-02-10 Bruno Haible <bruno@clisp.org>
45086 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45087 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45089 2006-07-22 Bruno Haible <bruno@clisp.org>
45091 * gettext.h: Update to GNU gettext-0.15.
45093 2006-07-22 Bruno Haible <bruno@clisp.org>
45095 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45096 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45097 lib-prefix.m4, longdouble.m4, ssize_t.m4.
45099 2006-07-21 Eric Blake <ebb9@byu.net>
45101 * modules/stdlib-safer: New file.
45102 * MODULES.html.sh (File stream based Input/Output): Add
45105 2006-07-21 Eric Blake <ebb9@byu.net>
45107 * lib/stdlib-safer.h: New file from coreutils, required by
45110 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
45112 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45114 2006-07-20 Bruno Haible <bruno@clisp.org>
45116 * gnulib-tool: Recognize new option --assume-autoconf.
45117 (autoconf_minversion): New variable.
45118 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45120 2006-07-20 Bruno Haible <bruno@clisp.org>
45122 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45124 2006-07-19 Derek R. Price <derek@ximbiot.com>
45126 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45127 Reindent and repaginate.
45129 2006-07-19 Derek Price <derek@ximbiot.com>
45131 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
45134 2006-07-17 Bruno Haible <bruno@clisp.org>
45136 * modules/list: New file.
45137 * modules/array-list: New file.
45138 * modules/carray-list, modules/carray-list-tests: New files.
45139 * modules/linked-list, modules/linked-list-tests: New files.
45140 * modules/avltree-list, modules/avltree-list-tests: New files.
45141 * modules/rbtree-list, modules/rbtree-list-tests: New files.
45142 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45143 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45144 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45145 * modules/oset: New file.
45146 * modules/array-oset: New file.
45147 * modules/avltree-oset, modules/avltree-oset-tests: New files.
45148 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45149 * tests/test-carray_list.c: New file.
45150 * tests/test-linked_list.c: New file.
45151 * tests/test-avltree_list.c: New file.
45152 * tests/test-rbtree_list.c: New file.
45153 * tests/test-linkedhash_list.c: New file.
45154 * tests/test-avltreehash_list.c: New file.
45155 * tests/test-rbtreehash_list.c: New file.
45156 * tests/test-avltree_oset.c: New file.
45157 * tests/test-rbtree_oset.c: New file.
45158 * MODULES.html.sh (Container data structures): New section.
45160 2006-07-17 Bruno Haible <bruno@clisp.org>
45162 * m4/gl_list.m4: New file.
45164 2006-07-17 Bruno Haible <bruno@clisp.org>
45166 * lib/gl_list.h: New file.
45167 * lib/gl_list.c: New file.
45168 * lib/gl_array_list.h: New file.
45169 * lib/gl_array_list.c: New file.
45170 * lib/gl_carray_list.h: New file.
45171 * lib/gl_carray_list.c: New file.
45172 * lib/gl_linked_list.h: New file.
45173 * lib/gl_linked_list.c: New file.
45174 * lib/gl_anylinked_list1.h: New file.
45175 * lib/gl_anylinked_list2.h: New file.
45176 * lib/gl_avltree_list.h: New file.
45177 * lib/gl_avltree_list.c: New file.
45178 * lib/gl_anyavltree_list1.h: New file.
45179 * lib/gl_anyavltree_list2.h: New file.
45180 * lib/gl_rbtree_list.h: New file.
45181 * lib/gl_rbtree_list.c: New file.
45182 * lib/gl_anyrbtree_list1.h: New file.
45183 * lib/gl_anyrbtree_list2.h: New file.
45184 * lib/gl_anytree_list1.h: New file.
45185 * lib/gl_anytree_list2.h: New file.
45186 * lib/gl_linkedhash_list.h: New file.
45187 * lib/gl_linkedhash_list.c: New file.
45188 * lib/gl_anyhash_list1.h: New file.
45189 * lib/gl_anyhash_list2.h: New file.
45190 * lib/gl_avltreehash_list.h: New file.
45191 * lib/gl_avltreehash_list.c: New file.
45192 * lib/gl_rbtreehash_list.h: New file.
45193 * lib/gl_rbtreehash_list.c: New file.
45194 * lib/gl_anytreehash_list1.h: New file.
45195 * lib/gl_anytreehash_list2.h: New file.
45197 * lib/gl_oset.h: New file.
45198 * lib/gl_oset.c: New file.
45199 * lib/gl_array_oset.h: New file.
45200 * lib/gl_array_oset.c: New file.
45201 * lib/gl_avltree_oset.h: New file.
45202 * lib/gl_avltree_oset.c: New file.
45203 * lib/gl_rbtree_oset.h: New file.
45204 * lib/gl_rbtree_oset.c: New file.
45205 * lib/gl_anytree_oset.h: New file.
45207 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45209 * m4/mkancesdirs.m4: New file.
45210 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45211 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45212 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45215 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45217 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45218 * lib/mkancesdirs.h: New files.
45219 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45220 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45221 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
45222 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45223 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
45224 callers changed. Revamp internals significantly, by not
45225 attempting to create directories that are temporarily more
45226 permissive than the final results. Do not attempt to use
45227 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45228 This removes some race conditions, fixes some bugs, and simplifies
45229 things. Use new dirchownmod function to do owner and mode changes.
45230 * lib/mkdir-p.h: Likewise.
45231 * lib/modechange.c (octal_to_mode): New function.
45232 (struct mode_change): New member mentioned.
45233 (make_node_op_equals): New arg mentioned. All callers changed.
45234 (mode_compile): Keep track of which mode bits the user has explicitly
45236 (mode_adjust): New arg DIR, so that we implement the X op correctly.
45237 New arg PMODE_BITS, to keep track of which mode bits the user
45238 mentioned; it treats S_ISUID and S_ISGID speciall.
45239 All callers changed.
45240 * lib/modechange.h: Likewise.
45242 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45244 * MODULES.html.sh: Add mkancestors.
45245 * modules/mkancesdirs: New module.
45246 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45247 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45248 The chdir-safer and afs files are now orphans; I'll remove them
45249 unless someone speaks up.
45250 Add lib/dirchownmod.c, lib/dirchownmod.h.
45251 (Depends-on): Remove alloca, chown, save-cwd, dirname.
45252 Add lchown, mkancesdirs.
45253 (Maintainer): Add self.
45255 2006-07-15 Karl Berry <karl@gnu.org>
45257 * gnulib-tool: help message wording/arrangement.
45259 2006-07-14 Simon Josefsson <jas@extundo.com>
45261 * doc/gnulib.texi (Libtool and Windows): New section.
45263 2006-07-12 Simon Josefsson <jas@extundo.com>
45265 * modules/gendocs (License): Fix license, approved by Karl.
45267 2006-07-12 Eric Blake <ebb9@byu.net>
45269 * MODULES.html.sh: Add gendocs.
45271 2006-07-11 Eric Blake <ebb9@byu.net>
45273 * modules/fdl: New module, to install doc/fdl.texi.
45274 * MODULES.html.sh: Add new section for documentation modules.
45275 * gnulib-tool: Avoid space-tab.
45276 (--doc-base): New option, to manage files from doc.
45278 2006-07-11 Eric Blake <ebb9@byu.net>
45280 * m4/absolute-header.m4: Fix comments to match recent change.
45282 2006-07-11 Eric Blake <ebb9@byu.net>
45284 * gnulib-tool: List --doc-base before --tests-base.
45286 2006-07-11 Derek R. Price <derek@ximbiot.com>
45288 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45290 2006-07-11 Bruno Haible <bruno@clisp.org>
45292 * README: Mention where to put documentation.
45294 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45296 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45298 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
45300 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45303 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
45305 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45306 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
45307 "no/such/file/stdint.h" when there is no such file, so that
45308 the resulting C code can be parsed by dodgy compilers.
45309 Problems reported by Bob Proulx.
45311 2006-07-10 Derek R. Price <derek@ximbiot.com>
45313 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45314 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
45315 macros into the GNU _D_EXACT_NAMLEN.
45316 * lib/savedir.c: Likewise.
45317 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45319 2006-07-10 Derek R. Price <derek@ximbiot.com>
45320 and Paul Eggert <eggert@cs.ucla.edu>
45322 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45324 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
45325 macros into the GNU _D_EXACT_NAMLEN.
45327 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45329 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45330 around the absolute name, to work around a problem with the HP-UX
45331 11.23 native C compiler, reported by Bob Proulx.
45333 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45335 * doc/maintain.texi, make-stds.texi: Sync from
45336 <http://savannah.gnu.org/projects/gnustandards>.
45338 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45340 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45342 2006-07-09 Jim Meyering <jim@meyering.net>
45344 * m4/glob.m4: Remove a doubled word in a comment.
45346 2006-07-09 Jim Meyering <jim@meyering.net>
45348 * lib/argp-pv.c: Remove a doubled word in a comment.
45349 * lib/check-version.c (check_version): Likewise.
45350 * lib/javacomp.c (compile_java_class): Likewise.
45352 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
45354 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45355 for the benefit of people using Autoconf 2.60. If you want to
45356 support older Autoconf versions you can copy m4/onceonly_2_57.m4
45357 (or m4/onceonly.m4, if pre-2.57) manually.
45359 2006-07-08 Jim Meyering <jim@meyering.net>
45361 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45363 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45364 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45367 2006-07-08 Jim Meyering <jim@meyering.net>
45369 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45371 2006-07-07 Simon Josefsson <jas@extundo.com>
45373 * tests/test-crc.c: Change expected crc value, the test vector
45374 were probably computed using the old broken crc.c?
45376 2006-07-06 Simon Josefsson <jas@extundo.com>
45378 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45379 now the canonical place for the M4 file).
45381 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45382 from the sys_socket dependency now.
45384 * modules/inet_pton (Files): Ditto.
45386 * modules/inet_ntop (Files): Ditto.
45388 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45390 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45391 not gl_PREREQ_GETUSERSHELL.
45393 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45395 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45396 with only one argument, for Autoconf 2.60.
45397 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45398 expand to nothing, so add a shell command to avoid syntax error.
45399 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45401 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45403 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45405 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45407 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45408 no longer needed. Check for isblank decl.
45409 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45410 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45413 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45415 * lib/getloadavg.c: Use __VMS, not VMS.
45416 * lib/getopt.c: Likewise.
45417 * lib/getpagesize.h: Likewise.
45418 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45419 and probably does not work.
45421 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45423 * lib/.cppi-disable: Add wcwidth.
45424 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
45425 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45426 (ISGRAPH): Remove. All uses changed to isgraph.
45427 (FOLD) [!defined _LIBC]: Remove special case.
45428 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45429 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45431 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45434 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45436 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45437 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45438 brackets. Other minor changes to suppress some compiler
45441 2006-07-06 Derek R. Price <derek@ximbiot.com>
45442 and Paul Eggert <eggert@cs.ucla.edu>
45444 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45445 of invoking obsolescent AC_HEADER_DIRENT macro.
45446 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45447 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45448 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45449 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45450 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45451 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45452 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45453 * m4/readdir.m4: Remove; no longer needed.
45455 2006-07-06 Derek R. Price <derek@ximbiot.com>
45456 and Paul Eggert <eggert@cs.ucla.edu>
45458 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45459 Don't worry about this obsolete case any more.
45460 (HAVE_DIR): Remove. All uses removed; we now assume you can read
45462 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45463 worry about this obsolete case any more.
45464 * lib/fts.c: Likewise.
45465 * lib/getcwd.c: Likewise.
45466 * lib/glob.h: Likewise.
45467 * lib/savedir.c: Likewise.
45469 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45471 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45472 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45473 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45476 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45477 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45478 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45480 * m4/getdate.m4 (gl_GETDATE): Likewise.
45481 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45482 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45483 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45484 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45485 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45486 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45487 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45490 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45492 * lib/memcasecmp.c: Include <limits.h>.
45493 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45494 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45495 Don't assume isdigit succeeds only on '0' through '9'.
45497 2006-07-05 Eric Blake <ebb9@byu.net>
45499 * modules/getaddrinfo (Depends-on): Add snprintf.
45501 2006-07-05 Eric Blake <ebb9@byu.net>
45503 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45504 to avoid 'header present but could not be compiled' on cygwin.
45506 2006-07-05 Eric Blake <ebb9@byu.net>
45508 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45509 missing from netdb.h.
45510 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45512 2006-07-05 Derek R. Price <derek@ximbiot.com>
45514 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45516 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45517 * m4/getdate.m4 (gl_GETDATE): Likewise.
45518 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45519 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45520 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45521 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45522 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45524 2006-07-05 Derek R. Price <derek@ximbiot.com>
45526 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45527 All uses of is_space replaced by isspace.
45528 * lib/exit.h: Don't talk about STDC_HEADERS.
45529 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
45530 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45531 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
45532 replaced by isprint etc.
45533 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45534 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45535 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45536 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45537 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45538 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45540 2006-07-05 Bruno Haible <bruno@clisp.org>
45542 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45543 the function exists, before testing against AIX.
45544 Reported by Martin Lambers <marlam@marlam.de>.
45546 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45548 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45549 From Mark D. Baushke.
45551 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45553 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45554 to the absolute name, not just one, to bypass Sun C 5.8's
45555 "warning: #include of /usr/include/... may be non-portable".
45557 2006-07-04 Eric Blake <ebb9@byu.net>
45559 * modules/dirname-tests: New test module.
45560 * tests/test-dirname.c: New file, replacing dirname.c
45561 TEST_DIRNAME section that was recently deleted.
45563 2006-07-04 Bruno Haible <bruno@clisp.org>
45565 Assume ANSI C header files and <ctype.h> functions.
45566 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45567 (mbsnwidth): Use isprint, iscntrl instead.
45569 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45571 Merge from coreutils.
45572 * MODULES.html.sh: Add xstrtold.
45573 * modules/xstrtold: New file.
45574 * modules/cycle-check (Files): Add lib/same-inode.h.
45575 * modules/dirname (Files): Add m4/double-slash-root.m4.
45576 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45577 * modules/mkdir-p (Files): Add lib/same-inode.h.
45578 * modules/same (Files): Add lib/same-inode.h.
45580 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45582 * m4/absolute-header.m4: Renamed from full-header-path.m4.
45583 This is to keep the terminology clean; POSIX talks about
45584 "absolute pathnames", not "full pathnames", but the GNU
45585 Coding Standards say to use "path" for something else;
45586 so use "absolute" to keep both sides happy.
45587 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45588 Set gl_absolute_header, not gl_full_header_path.
45589 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45590 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45593 Merge from coreutils.
45595 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45597 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45598 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45599 want to require the building of c-strtod.o.
45600 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45601 needs -lm directly.
45602 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45604 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45606 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45607 --as-needed option if available. Problem reported by Albert Chin in
45608 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45609 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45610 cc merely issues a bunch of annoying warnings for --as-needed
45611 (this problem was reported by Bob Proulx). Also, try linking with
45612 -lm to detect a bug in binutils 2.16 (this problem was reported
45613 by Ralf Wildenhues).
45615 2006-06-18 Jim Meyering <jim@meyering.net>
45617 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45618 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45620 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45621 also check for glibc-2.4's abort-inducing bug.
45623 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45624 Low-probability clean-up should be to use rmdir to get rid of
45625 the just-created directory, not unlink.
45627 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45628 configure fail, and request a bug report to inform us about it.
45629 Add a comment that, barring reports to the contrary, in 2007 we'll
45630 assume ftruncate is universally available.
45632 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45634 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45636 2006-03-12 Jim Meyering <jim@meyering.net>
45638 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45639 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45640 * m4/same.m4 (gl_SAME): Likewise.
45641 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45643 2006-03-11 Eric Blake <ebb9@byu.net>
45645 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45646 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45647 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45648 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45650 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45652 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45653 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
45654 reported by Mark D. Baushke, one in
45655 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45657 Merge from coreutils.
45659 * lib/.cppi-disable: Add stdint_.h.
45660 * lib/.cvsignore: Add stdint.h.
45662 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45664 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45665 both double and long double versions.
45666 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
45667 * lib/xstrtold.c: New file.
45668 * lib/xstrtod.h (xstrtold): New decl.
45670 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
45672 * lib/filemode.c (setst): Remove.
45673 (strmode): Rewrite to avoid setst. This makes the code shorter,
45674 (arguably) clearer, and the generated code is a bit smaller on my
45675 Debian GNU/Linux stable x86 host.
45677 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45679 * lib/filemode.c: Include "filemode.h" first, to test the interface.
45680 Assume that filemode.h includes sys/types.h and sys/stat.h.
45681 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45682 (ftypelet): Reorder to put common cases first, for efficiency.
45683 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
45685 (strmode): Renamed from mode_string, and now stores 12 bytes instead
45686 of 10, for compatibility with FreeBSD. All callers changed.
45687 (filemodestring): Now stores 12 bytes instead of 10, and sets file
45688 types that can't be deduced solely from st_mode. First arg is now a
45690 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45691 (strmode): Renamed from mode_string.
45692 (filemodestring): New decl.
45693 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45694 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45696 (S_ISPORT, S_ISWHT): New macros, if not already defined.
45698 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
45700 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45701 fsusage.h now does that. Include fsusage.h first, to test interface.
45702 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
45703 at most one method (the old code could have generated decls that
45704 didn't conform to C89, not that this was ever exercised).
45705 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45707 2006-03-19 Jim Meyering <jim@meyering.net>
45709 Work even in a chroot where d_ino values for entries in "/"
45710 don't match the stat.st_ino values for the same names.
45711 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45712 number, iterate through all entries again, using lstat instead.
45713 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45714 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45716 * lib/getcwd.c (__getcwd): Clarify a comment.
45717 Use memcpy in place of a call to strcpy.
45719 2006-03-12 Jim Meyering <jim@meyering.net>
45721 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45722 matches that of the current directory (which we're about to chdir ".."
45723 out of), then save the dev-ino of the parent, instead.
45725 * lib/same-inode.h (SAME_INODE): New file/macro.
45726 * lib/chdir-safer.c (SAME_INODE): Remove definition.
45727 Include "same-inode.h", instead.
45728 * lib/same.c: Likewise.
45729 * lib/cycle-check.h: Include "same-inode.h".
45730 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45731 * lib/cycle-check.c (SAME_INODE): Remove definition.
45732 * lib/root-dev-ino.h: Include "same-inode.h".
45734 2006-03-11 Eric Blake <ebb9@byu.net>
45736 * lib/same.c (same_name): s/base_name/last_component/
45737 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45738 * lib/filenamecat.c (file_name_concat): Likewise.
45740 2006-03-11 Eric Blake <ebb9@byu.net>,
45741 Paul Eggert <eggert@cs.ucla.edu>
45743 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45744 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45746 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45747 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45748 (last_component): New method.
45749 * lib/dirname.c (dir_len): Determine when drive letters need a
45750 subsequent slash. Preserve // when it is special.
45751 (dir_name): Don't append dot when drive letter is absolute.
45752 [TEST_DIRNAME]: Move into a full-blown gnulib test.
45753 * lib/basename.c (base_name): New semantics - malloc the result.
45754 Preserve // when it is special. Preserve relative files that look
45755 like drive letters.
45756 (base_len): Preserve // when it is special.
45757 (last_component): New method, similar to old base_name semantics.
45758 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45759 base_name. Strip redundant slashes from ///.
45761 2006-07-03 Jim Meyering <jim@meyering.net>
45763 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45764 macro is used before the first cycle_check call.
45766 2006-07-03 Eric Blake <ebb9@byu.net>
45768 * modules/dirname (Depends-on): Add xstrndup.
45770 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45772 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45773 test cases, so that config.log is a bit easier to follow.
45775 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45777 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45778 both are 64 bits, since this seems to be the tradition, and this
45779 prevents gcc -Wformat from warning about usages with PRIuMAX. If
45780 we ever run into a host that prefers long long to long in this
45781 case, we'll need another configure-time test. Problem reported by
45784 2006-07-02 Eric Blake <ebb9@byu.net>
45786 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45788 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45790 * modules/inttypes (Depends-on): No longer depends on stdint.
45791 * modules/stdint (Description): Say more about assumptions.
45792 Say that the fast types might differ. Say macros are used.
45793 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
45794 (Makefile.am): Revise list of substituted symbols to match
45796 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45797 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45798 * tests/test-stdint.c (verify_same_types)
45799 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45800 the code conforms to C99/C89.
45801 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45802 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45804 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45806 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45807 but fix a bug, by requiring at least 64 bits.
45808 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45809 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45810 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
45811 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45813 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45814 changes. Make 2.59 a prerequisite. Check and substitute for
45815 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
45816 inttypes.h. Do not use special include files; just use the
45817 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
45818 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
45819 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45820 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45821 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45822 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45823 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45824 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45825 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45826 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45827 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45828 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45829 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45830 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45831 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45832 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45833 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45834 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45835 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45836 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45837 WINT_MAX. Check for C99 conformance more strictly, by detecting
45838 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
45839 not check for things that C99 does not require, e.g., int8_t. If
45840 a test isn't needed unless <stdint.h> isn't working, and is
45841 unlikely to be needed for any other reason, then don't do it
45842 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
45843 size_t, since we assume C89 freestanding at least. Do not check
45844 for sig_atomic_t, wchar_t, or wint_t, since the code now does
45845 the right thing even if the types are not defined. Instead use:
45846 (gl_STDINT_TYPE_PROPERTIES): New macro.
45847 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
45848 testing whether <sys/types.h> clashes, as Autoconf does this for
45849 us now. All uses removed.
45850 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45851 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45852 (gl_CHECK_TYPE_SAME):
45853 Remove; no longer needed.
45854 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45855 exists, since we'll return 0 anyway in that case.
45856 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45858 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45860 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45861 possible collision with system files.
45862 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45863 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45864 WCHAR_MIN and WCHAR_MAX in this case.
45865 (<stddef.h>): Do not include; no longer needed.
45866 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45867 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45868 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45869 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45870 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45871 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45872 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45873 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45874 !defined(__c99))]: Include in this case too, since it's harmless
45876 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45877 dangerous to do so.
45878 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45879 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45880 (_STDINT_MIN, _STDINT_MAX): New macros.
45881 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45882 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45883 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45884 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45885 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45886 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45887 macros, not typedefs; this simplifies things quite a bit.
45888 Use long int for all types narrower than int64_t.
45889 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45890 Define in terms of long long int or int64_t or long int,
45891 not int64_t or int32_t. This saves some compile-time testing.
45892 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45893 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45894 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45895 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45896 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45897 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45898 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45899 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45900 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45901 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45902 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45903 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45904 undef any previous version and define our own version, for
45905 simplicity and consistency with the new macros for types.
45906 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45907 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45908 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45909 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
45910 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45911 @WINT_T_SUFFIX@ to keep things simple here.
45912 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45913 Simplify by assuming typical 8/16/32/64 host, since we're
45914 already doing that elsewhere anyway.
45915 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45916 and assume long long int is 64 bits if available. This
45917 speeds up 'configure'.
45919 2006-07-01 Eric Blake <ebb9@byu.net>
45921 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45922 Reported by Andreas Buening.
45924 2006-07-01 Eric Blake <ebb9@byu.net>
45926 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45928 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45930 * lib/getaddrinfo.c: fixed typo
45932 2006-06-29 Jim Meyering <jim@meyering.net>
45934 * modules/strftime (Maintainer): Add my name, since with the
45935 FPRINTFTIME changes strftime.c has forked from glibc.
45937 2006-06-29 Eric Blake <ebb9@byu.net>
45939 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45941 2006-06-29 Eric Blake <ebb9@byu.net>
45943 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45945 2006-06-29 Eric Blake <ebb9@byu.net>
45947 * lib/stat_.h: New file.
45949 2006-06-29 Eric Blake <ebb9@byu.net>
45951 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45952 unused static function.
45954 2006-06-29 Eric Blake <ebb9@byu.net>
45956 * doc/functions.texi (Function Portability): Document missing lstat
45959 2006-06-29 Eric Blake <ebb9@byu.net>
45961 * MODULES.html.sh: Add sys_stat.
45962 * modules/sys_stat: New module.
45963 * modules/mkstemp (Depends-on): Add sys_stat.
45965 2006-06-29 Derek R. Price <derek@ximbiot.com>
45967 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45969 2006-06-29 Derek R. Price <derek@ximbiot.com>
45971 * m4/c-bs-a.m4: Removed.
45973 2006-06-29 Derek R. Price <derek@ximbiot.com>
45975 * lib/strftime.c: Assume strftime() exists.
45977 2006-06-29 Derek Price <derek@ximbiot.com>
45979 * modules/c-bs-a: Removed - \a is C89.
45980 * MODULES.html.sh: Remove c-bs-a.
45982 2006-06-29 Bruno Haible <bruno@clisp.org>
45984 * modules/wcwidth (License): Change to LGPL.
45986 2006-06-28 Simon Josefsson <jas@extundo.com>
45988 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
45991 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45994 2006-06-28 Simon Josefsson <jas@extundo.com>
45996 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45998 2006-06-28 Simon Josefsson <jas@extundo.com>
46000 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46001 functions there. It will succeed on Windows XP, but on Windows
46002 2000 and (presumably) earlier, it will fail, and use the internal
46004 (use_win32_p): New function.
46005 (getaddrinfo): Use strtoul on servname, to support numeric ports.
46006 Support AI_NUMERICSERV to disable getservbyname.
46007 (getnameinfo): New function, only supports
46008 NI_NUMERICHOST|NI_NUMERICSERV for now.
46010 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46011 only have some of them. Add AI_NUMERICSERV. Add prototype for
46014 2006-06-28 Eric Blake <ebb9@byu.net>
46016 * modules/wcwidth: New file.
46017 * modules/mbchar (Depends-on): Add wcwidth.
46018 * modules/mbswidth (Depends-on): Add wcwidth.
46019 * MODULES.html.sh: Add wcwidth.
46021 2006-06-28 Eric Blake <ebb9@byu.net>
46023 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46024 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46026 2006-06-28 Eric Blake <ebb9@byu.net>
46028 * lib/xvasprintf.h: Fix comments.
46030 2006-06-28 Eric Blake <ebb9@byu.net>
46032 * lib/mbchar.h (wcwidth): Include wcwidth.h.
46033 * lib/mbswidth.c (wcwidth): Move from here...
46034 * lib/wcwidth.h: ...to this new file.
46036 2006-06-28 Derek R. Price <derek@ximbiot.com>
46038 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46040 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46042 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46044 2006-06-28 Derek R. Price <derek@ximbiot.com>
46046 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
46047 Autoconf 2.60 says this stuff was obsolete.
46049 2006-06-28 Bruno Haible <bruno@clisp.org>
46051 * modules/wcwidth (Files): Add m4/wchar_t.m4.
46053 2006-06-28 Bruno Haible <bruno@clisp.org>
46055 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46058 2006-06-28 Bruno Haible <bruno@clisp.org>
46060 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46061 declaration for wcwidth.
46062 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46064 2006-06-28 Bruno Haible <bruno@clisp.org>
46066 * lib/mkdtemp.c [MINGW]: Include <io.h>.
46067 (mkdir): Define using _mkdir.
46069 2006-06-28 Bruno Haible <bruno@clisp.org>
46071 * lib/getaddrinfo.h: Fix POSIX URL.
46072 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46074 (use_win32_p): Make static.
46075 (getaddrinfo): Reject service name if it is empty or does not consist
46076 solely of decimal digits, or if its value is > 65535.
46077 (getnameinfo): Remove useless casts.
46079 2006-06-27 Simon Josefsson <jas@extundo.com>
46081 * modules/sys_select: New file, suggested by Bruno Haible, Paul
46082 Eggert and Martin Lambers.
46084 2006-06-27 Simon Josefsson <jas@extundo.com>
46086 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46087 Eggert and Martin Lambers.
46089 2006-06-27 Bruno Haible <bruno@clisp.org>
46091 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46092 result to 0, not to empty.
46093 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46095 2006-06-27 Bruno Haible <bruno@clisp.org>
46097 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46099 2006-06-26 Simon Josefsson <jas@extundo.com>
46101 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46104 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
46106 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46107 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
46108 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46110 2006-06-26 Mark D. Baushke <mdb@gnu.org>
46112 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46114 2006-06-26 Bruno Haible <bruno@clisp.org>
46116 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46118 2006-06-26 Bruno Haible <bruno@clisp.org>
46120 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46122 2006-06-26 Bruno Haible <bruno@clisp.org>
46124 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46125 SGI C compiler in pre-C99 mode.
46126 Suggested by Mark D. Baushke and Larry Jones.
46128 2006-06-26 Bruno Haible <bruno@clisp.org>
46130 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46132 Reported by Mark D. Baushke and Larry Jones.
46134 2006-06-26 Bruno Haible <bruno@clisp.org>
46136 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46138 Suggested by Mark D. Baushke and Larry Jones.
46140 2006-06-23 Simon Josefsson <jas@extundo.com>
46141 Bruno Haible <bruno@clisp.org>
46143 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46144 Emit mostlyclean-local rule.
46145 (func_emit_tests_Makefile_am): Likewise.
46146 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46148 2006-06-23 Mark D. Baushke <mdb@gnu.org>
46150 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46152 2006-06-23 Bruno Haible <bruno@clisp.org>
46154 * tests/test-stdint.c: Update to match ISO C 99 Technical
46157 2006-06-23 Bruno Haible <bruno@clisp.org>
46159 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46161 2006-06-23 Bruno Haible <bruno@clisp.org>
46163 * lib/stdint_.h: Treat IRIX like OpenBSD.
46165 2006-06-23 Bruno Haible <bruno@clisp.org>
46167 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46168 ISO C 99 Technical Corrigendum 1.
46170 2006-06-22 Simon Josefsson <jas@extundo.com>
46172 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46175 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
46177 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46178 needed. Some compiler complained about some of them. Problem reported
46180 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46182 2006-06-21 Simon Josefsson <jas@extundo.com>
46184 * tests/test-getaddrinfo.c: New file.
46186 * modules/getaddrinfo-tests: New file.
46188 * MODULES.html.sh: Add inet_pton.
46190 * modules/inet_pton: New file.
46192 2006-06-21 Simon Josefsson <jas@extundo.com>
46194 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
46195 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
46196 of using the (limited) gnulib implementation on Windows XP.
46198 * m4/inet_pton.m4: New file.
46200 2006-06-21 Simon Josefsson <jas@extundo.com>
46202 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46205 * lib/socket_.h: Don't define WINVER.
46207 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46208 slightly modified to work in gnulib.
46210 2006-06-21 Simon Josefsson <jas@extundo.com>
46212 * doc/gnulib.texi (Windows sockets): Add.
46214 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
46216 * lib/read-file.c (fread_file): Start with buffer allocation of
46217 0 bytes rather than 1 byte; this simplifies the code.
46218 Don't invoke feof; it's not needed. Refactor to avoid duplicate
46219 code to free buffer and save/restore errno.
46220 (internal_read_file): Remove unused local.
46222 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
46224 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46225 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46226 Problem reported by Denis Excoffier in
46227 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46229 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46231 * modules/sys_socket, modules/socklen: Include sys/types since
46232 FreeBSD 4.x's sys/socket.h needs it.
46234 2006-06-19 Simon Josefsson <jas@extundo.com>
46236 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46238 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
46240 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46242 2006-06-19 Bruno Haible <bruno@clisp.org>
46244 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46245 and FULL_PATH_INTTYPES_H in angle brackets.
46246 Reported by Mark D. Baushke <mdb@gnu.org>.
46248 2006-06-17 Eric Blake <ebb9@byu.net>
46250 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46253 2006-06-17 Bruno Haible <bruno@clisp.org>
46255 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46258 2006-06-17 Bruno Haible <bruno@clisp.org>
46260 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46261 whether errno is declared. Assume <errno.h> declares errno.
46263 2006-06-17 Bruno Haible <bruno@clisp.org>
46265 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46267 2006-06-17 Bruno Haible <bruno@clisp.org>
46269 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46270 problem on Solaris 2.5.1.
46272 2006-06-16 Eric Blake <ebb9@byu.net>
46274 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46275 * lib/unicodeio.c [!defined errno]: Likewise.
46276 * lib/strtol.c [!defined errno]: Likewise.
46277 * lib/strtod.c [!defined errno]: Likewise.
46279 2006-06-15 Eric Blake <ebb9@byu.net>
46281 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46283 2006-06-15 Eric Blake <ebb9@byu.net>
46285 * config/srclist.txt (ssize_t.m4): Lose sync.
46287 2006-06-15 Bruno Haible <bruno@clisp.org>
46289 * modules/stdint (Files): Include m4/full-header-path.m4,
46290 m4/size_max.m4, m4/wchar_t.m4.
46291 (Makefile.am): Many more substitutions.
46292 * modules/stdint-tests: New file.
46293 * tests/test-stdint.c: New file.
46295 2006-06-15 Bruno Haible <bruno@clisp.org>
46297 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46298 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46299 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46300 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46301 gl_CHECK_TYPE_SAME): New macros.
46303 2006-06-15 Bruno Haible <bruno@clisp.org>
46305 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46307 2006-06-15 Bruno Haible <bruno@clisp.org>
46309 * lib/stdint_.h: Rewritten to be fully auto-configured.
46310 Fixes bug on HP-UX/IA64.
46312 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
46314 * lib/getdate.y (__attribute__): Don't define if already defined.
46315 Problem reported by Larry Jones.
46316 * lib/utimens.c (__attribute__): Likewise.
46318 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
46320 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46321 reported by Andreas Schwab.
46323 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46324 Bruno Haible <bruno@clisp.org>
46326 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46327 check for the declaration of strnlen and a run test that exposes the
46328 AIX 5.1 strnlen bug. In the failure case, #define strndup to
46331 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46332 Bruno Haible <bruno@clisp.org>
46334 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46336 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46338 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46339 compile test, for Tru64 4.0D.
46341 2006-05-28 Karl Berry <karl@gnu.org>
46343 * config/srclist.txt (printf-args.c): lose sync.
46345 2006-05-26 Martin Lambers <marlam@marlam.de>
46347 * lib/getpass.c: Updates the test for the native W32 API, and adds
46348 missing includes, thus fixing compilation warnings.
46350 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
46352 * lib/exclude.c (exclude_fnmatch): New function.
46353 (excluded_file_name): Call exclude_fnmatch.
46354 * lib/exclude.h (excluded_file_name): New prototype
46356 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
46358 * lib/tempname.c (small_open, large_open): New macros.
46359 (__open, __open64) [!_LIBC]: Remove.
46360 (__gen_tempname): Use small_open and large_open instead of __open
46361 and __open64. This fixes a portability bug on HP-UX 11.11i
46362 reported by Simon Wing-Tang in
46363 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46365 2006-05-24 Bruno Haible <bruno@clisp.org>
46367 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46368 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46369 Reported by Thorsten Maerz <torte@netztorte.de> via
46370 Aaron Stone <aaron@serendipity.cx>.
46372 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
46374 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46375 gl_ rather than jm_. Link, don't run, so that cross-compiles are
46376 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
46377 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46378 not really conditional on the cache.
46379 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46381 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
46383 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46384 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46385 (my_usleep): Don't mishandle maximum value.
46387 2006-05-19 Jim Meyering <jim@meyering.net>
46389 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
46391 2006-05-17 Bruno Haible <bruno@clisp.org>
46393 Cygwin portability.
46394 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46396 2006-05-17 Bruno Haible <bruno@clisp.org>
46398 * lib/stdint_.h: Fix recognition of Cygwin.
46400 2006-05-15 Bruno Haible <bruno@clisp.org>
46402 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46403 on libtool patch by Ralf Wildenhues.
46405 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
46407 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46408 test for C99 conformance; (bool) 0.5 is an integer constant
46409 expression, but (bool) -0.5 is not. Problem reported by Fedor
46410 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46412 2006-05-11 Simon Josefsson <jas@extundo.com>
46414 * m4/xvasprintf.m4: Fix obvious typo.
46416 2006-05-11 Jim Meyering <jim@meyering.net>
46418 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
46421 2006-05-10 Simon Josefsson <jas@extundo.com>
46423 * lib/md4.c: Typo fix, update copyright years.
46424 (K1, K2): Don't use L because it turn computations into 64-bit on
46427 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
46429 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46430 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46431 unwanted sign propagation, e.g., on hosts with 64-bit int.
46432 There still are some problems with reeelly weird theoretical hosts
46433 (e.g., 33-bit int) but it's not worth worrying about now.
46434 * lib/sha1.c (rol): Likewise.
46435 (K1, K2, K3, K4): Remove unnecessary L suffix.
46437 2006-05-10 Bruno Haible <bruno@clisp.org>
46439 * lib/des.c: Cast to avoid warnings.
46441 2006-05-09 Bruno Haible <bruno@clisp.org>
46443 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46444 (Depends-on): Depend also on xsize, stdarg.
46445 (configure.ac): Add gl_XVASPRINTF.
46447 2006-05-09 Bruno Haible <bruno@clisp.org>
46449 * m4/xvasprintf.m4: New file.
46451 2006-05-09 Bruno Haible <bruno@clisp.org>
46453 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46454 (EOVERFLOW): Define fallback value.
46455 (xstrcat): New function.
46456 (xvasprintf): Recognize the special case of a string concatenation.
46458 2006-05-08 Eric Blake <ebb9@byu.net>
46460 * gnulib-tool (func_version): Base copyright year on CVS date.
46461 (func_emit_copyright_notice): New function.
46462 (func_emit_lib_Makefile_am): Use it.
46463 (func_emit_tests_Makefile_am): Likewise.
46464 (func_import): Likewise.
46466 2006-05-08 Bruno Haible <bruno@clisp.org>
46468 * modules/stdarg: New file.
46469 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46471 2006-05-08 Bruno Haible <bruno@clisp.org>
46473 * m4/stdarg.m4: New file, from GNU gettext.
46475 2006-05-08 Bruno Haible <bruno@clisp.org>
46477 * config/srclist.txt (build-aux/config.rpath): different from latest
46480 2006-05-08 Bruno Haible <bruno@clisp.org>
46482 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46484 2006-05-05 Jim Meyering <jim@meyering.net>
46486 * m4/warning.m4: New file, derived from bison's file by the same name.
46488 2006-05-03 Bruno Haible <bruno@clisp.org>
46490 * lib/stdint_.h: Shorter URL.
46491 * lib/inttypes.h: Likewise.
46493 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46495 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46497 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46499 * lib/verify.h: Document the internals better. Most of this change
46500 was written by Bruno Haible.
46502 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46504 * doc/verify.texi: New file, partly based on a proposal by
46507 2006-05-02 Bruno Haible <bruno@clisp.org>
46509 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46511 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46513 2006-04-29 Bruno Haible <bruno@clisp.org>
46515 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46516 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46518 2006-04-29 Bruno Haible <bruno@clisp.org>
46520 * gnulib-tool: Make --update option actually work.
46522 2006-04-29 Bruno Haible <bruno@clisp.org>
46524 * doc/gcd.texi: New file.
46525 * doc/gnulib.texi: Include it.
46527 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
46529 * lib/getdate.y (get_date): When adding relative date, start with the
46530 initial time, not with the result of the first mktime call.
46532 2006-04-25 Bruno Haible <bruno@clisp.org>
46534 * gnulib-tool (func_import): Output the include directives in three
46535 blocks, sorted separately.
46536 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46538 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46540 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46541 to define main with arguments, for C++. Reported by Eric Blake.
46542 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46543 Prefer 'int main ()' to 'int main (void)', for C++.
46544 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46545 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46546 for 'main', for C99 and C++.
46548 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46550 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46551 Don't assume that exit status -1 is valid.
46552 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46553 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46554 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46555 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46556 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46557 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46558 not AC_TRY_RUN. Use return, not exit. Don't assume that
46559 functions can be used without declaring them, or that you can
46560 exit with status -1.
46561 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46563 2006-04-24 Karl Berry <karl@gnu.org>
46565 * config/srclist.txt (longdouble.m4): sync lost.
46567 2006-04-24 Eric Blake <ebb9@byu.net>
46569 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46571 2006-04-24 Bruno Haible <bruno@clisp.org>
46573 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46574 poll() implementation in AIX.
46575 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46577 2006-04-24 Bruno Haible <bruno@clisp.org>
46579 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46580 assigned exactly once.
46582 2006-04-23 Claudio Fontana <claudio@gnu.org>
46583 Bruno Haible <bruno@clisp.org>
46585 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46586 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46589 2006-04-23 Bruno Haible <bruno@clisp.org>
46591 * modules/copy-file: Depend on unistd.
46592 * modules/execute: Likewise.
46593 * modules/fatal-signal: Likewise.
46594 * modules/findprog: Likewise.
46595 * modules/mkdtemp : Likewise.
46596 * modules/pipe: Likewise.
46597 * modules/wait-process: Likewise.
46599 2006-04-23 Bruno Haible <bruno@clisp.org>
46601 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46602 condition was already detected.
46603 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46605 2006-04-23 Bruno Haible <bruno@clisp.org>
46607 * lib/copy-file.c: Include <unistd.h> unconditionally.
46608 * lib/execute.c: Likewise.
46609 * lib/fatal-signal.c: Likewise.
46610 * lib/findprog.c: Likewise.
46611 * lib/mkdtemp.c: Likewise.
46612 * lib/pipe.h: Likewise.
46613 * lib/pipe.c: Likewise.
46614 * lib/wait-process.h: Likewise.
46616 2006-04-23 Bruno Haible <bruno@clisp.org>
46618 * gnulib-tool (func_usage): Fix --import description. Document
46620 (func_import): Create temporary file in a temporary directory, if
46621 --dry-run is specified. Silence errors from 'grep' when there are no
46622 m4 files in $m4dir.
46623 (func_create_testdir): Silence errors from 'grep' when there are no
46624 m4 files in $m4dir.
46625 Reported by Karl Berry <karl@freefriends.org>.
46627 2006-04-20 Bruno Haible <bruno@clisp.org>
46629 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46630 one argument, so that the code will be portable to Autoconf 2.60.
46631 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46632 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46633 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46635 2006-04-19 Derek Price <derek@ximbiot.com>
46636 Eric Blake <ebb9@byu.net>
46638 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46639 rather than "/full/path.h". Update comment to match. Shorten &
46640 generalize m4_translit call via AS_TR_CPP.
46642 2006-04-19 Derek Price <derek@ximbiot.com>
46643 Eric Blake <ebb9@byu.net>
46645 * lib/inttypes.h: Correct grammar in comment.
46647 2006-04-18 Derek Price <derek@ximbiot.com>
46648 Paul Eggert <eggert@cs.ucla.edu>
46650 * modules/inttypes: New file.
46651 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46653 2006-04-18 Derek Price <derek@ximbiot.com>
46654 Paul Eggert <eggert@cs.ucla.edu>
46656 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46659 2006-04-18 Derek Price <derek@ximbiot.com>
46660 Paul Eggert <eggert@cs.ucla.edu>
46662 * lib/inttypes.h: New file.
46663 * lib/strtoimax.c: Assume <inttypes.h>.
46665 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
46667 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46668 isn't mounted. Problem reported by Kir Kolyshkin.
46670 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
46672 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46673 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
46675 * lib/regex.h (RE_DUP_MAX): Update comment to match current
46678 2006-04-12 Eric Blake <ebb9@byu.net>
46680 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46681 is now done automatically by the corresponding Autoconf macro.
46683 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
46685 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46688 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46690 Merge regex changes from libc, removing some of our
46691 POSIX-conformance changes that were rejected and redoing them in a
46692 less-intrusive way.
46694 * lib/regcomp.c (re_compile_internal, init_dfa):
46695 Length arg is now size_t, not Idx. All uses changed.
46696 (peek_token): Forward decl now says internal_function.
46697 (__re_error_msgid, __re_error_msgid_idx):
46698 Now static rather than extern with attribute_hidden.
46699 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46700 For some reason libc prefers K&R style defns for external functions.
46701 (regerror) [!defined _LIBC]: Likewise.
46702 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46703 (seek_collating_symbol_entry, lookup_collation_sequence_value):
46704 (build_range_exp, build_collating_symbol):
46705 Use K&R-style defn.
46706 (re_compile_fastmap): Use '\0' to memset, not 0.
46707 (utf8_sb_map): Make the calculations more obvious.
46708 (init_dfa, parse_bracket_exp, build_charclass_op):
46709 Call calloc and cast result, as glibc does.
46710 (init_word_char, fetch_token, peek_token, peek_token_bracket):
46711 (build_range_exp, build_collating_symbol):
46712 Now internal functions.
46714 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46716 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
46717 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46718 Don't depend on VMS; depend on __VMS instead, for POSIX
46719 namespace cleanness.
46720 (regoff_t): Define to ssize_t, not long int.
46722 Remove the REG_ macros named below. Instead, make the old names
46723 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46725 (REG_BACKSLASH_ESCAPE_IN_LISTS):
46726 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46727 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46728 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46729 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46730 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46731 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46732 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46733 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46734 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46735 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46736 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46737 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46738 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46739 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46740 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46741 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46743 Remove. All uses replaced by the old RE_* names.
46744 (RE_BACKSLASH_ESCAPE_IN_LISTS):
46745 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46746 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46747 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46748 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46749 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46750 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46751 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46752 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46753 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46754 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46755 Don't bother having these macros be independent of each others'
46756 values, since they no longer exist in the POSIX name space.
46758 Rename the following member names back to their old names,
46759 unless !__USE_GNU_REGEX. All uses changed back.
46760 (buffer): Renamed from re_buffer.
46761 (allocated): Renamed from re_allocated.
46762 (used): Renamed from re_used.
46763 (syntax): Renamed from re_syntax.
46764 (fastmap): Renamed from re_fastmap.
46765 (translate): Renamed from re_translate.
46766 (can_be_null): Renamed from re_can_be_null.
46767 (regs_allocated): Renamed from re_regs_allocated.
46768 (fastmap_accurate): Renamed from re_fastmap_accurate.
46769 (no_sub): Renamed from re_no_sub.
46770 (not_bol): Renamed from re_not_bol.
46771 (not_eol): Renamed from re_not_eol.
46772 (newline_anchor): Renamed from re_newline_anchor.
46773 (num_regs): Renamed from rm_num_regs.
46774 (start): Renamed from rm_start.
46775 (end): Renamed from rm_end.
46777 (free_state): Move up a bit.
46779 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46780 #define to be empty.
46781 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46782 when that is what is intended.
46783 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46784 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46786 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46787 All uses changed back to re_malloc, etc. It's now the caller's
46788 responsibility to check for overflow; all callers changed.
46789 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46790 (re_x2nrealloc): Remove.
46791 (free_state): Remove decl.
46793 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46794 (re_set_registers, re_exec):
46795 Use K&R-style defn.
46797 2006-01-31 Roland McGrath <roland@redhat.com>
46799 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46800 Reported by Mike Frysinger <vapier@gentoo.org>.
46802 2006-01-15 Andreas Jaeger <aj@suse.de>
46805 * lib/regex_internal.c (re_string_reconstruct): Adjust for
46806 build_wcs_upper_buffer change.
46807 (build_wcs_upper_buffer): Change return type.
46809 2005-12-10 Ulrich Drepper <drepper@redhat.com>
46811 * lib/regex_internal.h: Include <stdint.h> if available.
46813 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
46815 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46817 2005-10-14 Ulrich Drepper <drepper@redhat.com>
46819 * lib/regcomp.c: Adjust for changed secondary hash function.
46821 2005-09-30 Ulrich Drepper <drepper@redhat.com>
46823 * lib/regex.h: Pretty printing.
46824 Clean up namespace a bit.
46826 2005-09-30 Jakub Jelinek <jakub@redhat.com>
46828 * lib/regexec.c (update_cur_sifted_state, check_arrival,
46829 check_arrival_add_next_nodes): Avoid using uninitialized variable.
46831 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46832 Ulrich Drepper <drepper@redhat.com>
46835 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
46837 (bitset_word_t): Renamed from bitset_word. All uses changed.
46839 2005-09-22 Ulrich Drepper <drepper@redhat.com>
46842 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46843 * lib/regcomp.c: Remove unnecessary uses of
46844 unsigned RE_TRANSLATE_TYPE.
46845 * lib/regex_internal.h: Likewise.
46846 * lib/regex_internal.c: Likewise.
46847 * lib/regexec.c: Likewise.
46848 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46850 2005-09-07 Ulrich Drepper <drepper@redhat.com>
46852 * lib/regexec.c (find_recover_state): Remove unnecessary
46854 (transit_state_bkref): Make DFA a const pointer.
46855 (get_subexp): Likewise.
46856 (check_arrival): Likewise.
46857 (update_cur_sifted_state): Likewise.
46858 (re_search_internal): Likewise.
46859 (prune_impossible_nodes): Likewise.
46860 (acquire_init_state_context): Likewise.
46861 (proceed_next_node): Likewise.
46862 (set_regs): Likewise.
46863 (free_fail_stack_return): Likewise.
46864 (check_arrival_expand_ecl): Mark DFA parameter as const.
46865 (check_arrival_expand_ecl_sub): Likewise.
46866 (check_subexp_limits): Likewise.
46867 (sub_epsilon_src_nodes): Likewise.
46868 (add_epsilon_src_nodes): Likewise.
46869 (merge_state_array): Likewise.
46870 (update_regs): Likewise.
46871 (build_trtable): Likewise.
46872 (sift_states_backward): Mark MCTX parameter as const.
46873 (build_sifted_states): Likewise.
46874 (update_cur_sifted_state): Likewise.
46875 (sift_states_mkref): Likewise.
46876 (check_arrival_expand_ecl): Mark eclosure as const.
46877 (check_dst_limits_calc_pos_1): Likewise.
46878 * lib/regex_internal.h (re_match_context_t): Make dfa a const
46881 2005-09-06 Ulrich Drepper <drepper@redhat.com>
46883 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46884 (transit_state_sb): Likewise.
46885 (transit_state_mb): Likewise.
46886 (sift_states_iter_mb): Likewise.
46887 (check_arrival_add_next_nodes): Likewise.
46888 (check_node_accept_bytes): Change first parameter to pointer-to-const.
46889 [_LIBC] (re_search_2_stub): Use mempcpy.
46891 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46892 mbrtowc for very simple UTF-8 case.
46894 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46895 a pointer-to-const.
46896 (re_acquire_state_context): Likewise.
46897 * lib/regex_internal.h: Adjust prototypes.
46899 * lib/regex.c: Prevent using C++ compilers.
46901 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46902 (re_acquire_state_context): Likewise.
46904 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46906 * modules/regex (Depends-on): Add ssize_t.
46908 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46910 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46913 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46915 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46917 2006-03-29 Mark D. Baushke <mdb@gnu.org>
46918 Bruno Haible <bruno@clisp.org>
46920 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46921 <sys/types.h> and <inttypes.h>.
46923 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46925 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46926 `__error_t_defined', so argp.h will not typedef the former.
46928 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
46930 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46931 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
46932 glibc names. Even if glibc is changed to conform to POSIX, the
46933 traditional names will be available anyway, since regex depends on
46934 the extensions module. Also, fix a longstanding typo in the
46935 implementation of Spencer ERE test #75 from grep 2.3. Problems
46936 reported by Emanuele Giaquinta. Also, change sense of cached
46937 variable, so that the message makes sense.
46939 2006-03-24 Simon Josefsson <jas@extundo.com>
46941 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46942 including some doc fixes.
46943 (base64_encode_alloc): Fix +1 bug on allocation failures.
46945 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46947 * lib/base64.c (base64_encode): Do not read past end of array with
46948 unsanitized input on systems with CHAR_BIT > 8.
46950 2006-03-24 Eric Blake <ebb9@byu.net>
46952 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46954 2006-03-22 Karl Berry <karl@gnu.org>
46956 * config/srclist.txt (*setenv.[ch]): get from coreutils.
46957 * config/srclistvars.sh (COREUTILS): new var.
46959 2006-03-17 Jim Meyering <jim@meyering.net>
46961 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46962 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46964 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46966 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46967 no longer needs it. Instead, check that regoff_t is as least
46968 as wide as ptrdiff_t.
46970 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46971 so that our regex.h stays compatible with the installed regex.
46972 This is helpful for installers who configure --without-included-regex.
46973 Problem reported by Emanuele Giaquinta.
46975 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46977 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46978 Typedef to long int, not to off_, as POSIX will likely change
46981 2006-03-15 Eric Blake <ebb9@byu.net>
46983 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46985 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
46987 * lib/argp-help.c (validate_uparams): Fix typo
46988 * lib/argp-parse.c (argp_default_options): Consistently begin help
46989 messages with a lowercase letter.
46991 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
46993 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
46994 overrun buffers and shouldn't be used (much as gets shouldn't be
46996 * lib/time_r.c (asctime_r, ctime_r): Likewise.
46998 2006-03-08 Simon Josefsson <jas@extundo.com>
47000 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47001 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47003 2006-03-08 Simon Josefsson <jas@extundo.com>
47005 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47006 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47008 2006-03-08 Simon Josefsson <jas@extundo.com>
47010 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47011 signal that configure disabled the device.
47013 2006-03-08 Simon Josefsson <jas@extundo.com>
47015 * build-aux/maint.mk: Fix refresh-po, to handle no translated
47018 2006-03-07 Simon Josefsson <jas@extundo.com>
47020 * modules/getopt (Depends-on): Add unistd.
47022 * modules/unistd: New file.
47024 2006-03-07 Simon Josefsson <jas@extundo.com>
47026 * modules/gc-random: New file.
47028 2006-03-07 Simon Josefsson <jas@extundo.com>
47030 * m4/unistd_h.m4: New file.
47032 2006-03-07 Simon Josefsson <jas@extundo.com>
47034 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47035 test to be side-effect free by storing the result in the cache
47036 variable gl_cv_lib_readline, and moving the assignment of
47037 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47038 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47040 2006-03-07 Simon Josefsson <jas@extundo.com>
47042 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
47043 error on missing devices (the functions will return an error).
47045 * m4/gc.m4: Move random stuff to gc-random.m4
47047 2006-03-07 Simon Josefsson <jas@extundo.com>
47049 * lib/unistd_.h: New file.
47051 2006-03-07 Simon Josefsson <jas@extundo.com>
47053 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47055 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47057 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47058 Problem reported by Juan Manuel Guerrero.
47060 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47062 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47064 * lib/getlogin_r.c: Likewise.
47065 * lib/getlogin_r.h: Likewise.
47066 * lib/glob.c: Likewise.
47067 * lib/pagealign_alloc.c: Likewise.
47068 * lib/unistd_.h: Remove; no longer needed.
47070 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47072 * MODULES.html.sh (Support for systems lacking POSIX:2001):
47074 * modules/c-stack (Depends-on): Add unistd.
47075 * modules/getlogin_r: Likewise.
47076 * modules/glob: Likewise.
47077 * modules/pagealign_alloc: Likewise.
47078 * modules/unistd (Files): Remove lib/unistd_.h.
47079 (EXTRA_DIST): Remove.
47080 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47082 (MOSTLYCLEANFILES): Remove unistd.h-t.
47084 2006-03-03 Simon Josefsson <jas@extundo.com>
47086 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47088 2006-03-03 Simon Josefsson <jas@extundo.com>
47090 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47093 2006-03-03 Simon Josefsson <jas@extundo.com>
47095 * build-aux/maint.mk: Add indent target.
47097 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47099 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47100 our replacement poll.h in any case, to avoid a differing
47101 declaration from a system header. Seen on AIX.
47103 2006-03-01 Simon Josefsson <jas@extundo.com>
47105 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47108 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
47110 * modules/gettime (Depends-on): Add extensions module.
47111 * modules/nanosleep (Depends-on): Likewise.
47112 * modules/settime (Depends-on): Likewise.
47114 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
47116 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47117 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47119 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47120 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47122 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47123 not "==". Reported by Ralf Wildenhues.
47125 2006-03-01 Karl Berry <karl@gnu.org>
47127 * doc/Copyright/request-*: new files, synced from gnuorg.
47129 2006-03-01 Karl Berry <karl@gnu.org>
47131 * config/srclist.txt (Copyright/*): new entries.
47133 2006-02-28 Simon Josefsson <jas@extundo.com>
47135 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47137 2006-02-27 Simon Josefsson <jas@extundo.com>
47139 * lib/base64.h: Indent #define's. From Jim Meyering
47140 <jim@meyering.net>.
47142 2006-02-27 Jim Meyering <jim@meyering.net>
47144 Revert the change of 2006-02-24, so these files can continue
47145 to be sync'd from gettext.
47146 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47149 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
47151 * modules/intprops: New file.
47152 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47154 * modules/getloadavg (Files): Remove lib/intprops.h.
47155 (Depends-on): Add intprops.
47156 * modules/human: Likewise.
47157 * modules/inttostr: Likewise.
47158 * modules/openat: Likewise.
47159 * modules/sig2str: Likewise.
47160 * modules/userspec: Likewise.
47161 * modules/utimecmp: Likewise.
47162 * modules/xnanosleep: Likewise.
47163 * modules/xstrtol: Likewise.
47165 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
47167 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47168 * modules/lock-tests (TESTS): Use $(EXEEXT).
47169 * modules/tls-tests: Likewise.
47170 * modules/argp-tests: Likewise.
47171 (check_PROGRAMS): New var, replacing...
47172 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47174 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47176 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47179 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
47181 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47183 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47185 Sync from coreutils.
47186 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47189 2006-02-22 Jim Meyering <jim@meyering.net>
47191 Sync from coreutils.
47192 * m4/chdir-safer.m4: New file.
47194 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
47196 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47197 AT_FDCWD exceeds INT_MAX.
47198 * lib/openat.h (AT_FDCWD): Likewise.
47200 2006-02-17 Eric Blake <address@hidden>
47202 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47204 2006-02-16 Simon Josefsson <jas@extundo.com>
47206 * modules/getaddrinfo (Depends-on): Add sys_socket.
47208 2006-02-15 Simon Josefsson <jas@extundo.com>
47210 * build-aux/maint.mk: Add dsyntax-check rule.
47212 2006-02-15 Eric Blake <ebb9@byu.net>
47214 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47215 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47216 'present but cannot compile' warnings on cygwin.
47217 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
47218 use ws2tcpip.h if sys/socket.h works.
47219 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47220 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47222 2006-02-14 Simon Josefsson <jas@extundo.com>
47224 * modules/maintainer-makefile (Files): Rename.
47226 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47227 and (the local) Makefile.cfg to maint-cfg.mk.
47229 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47232 * modules/maintainer-makefile: New module.
47234 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47235 severaly stripped to make it possible to build it up from scratch
47236 with reliable tests.
47238 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47239 fixes to permit overriding the default actions when configure and
47240 makefile are not available.
47242 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
47244 Sync from coreutils.
47245 * modules/lstat (Depends-on): Don't depend on xalloc.
47246 (License): Change from GPL to LGPL, since this is now simply a
47247 replacement for a libc function.
47249 2006-02-14 Jim Meyering <jim@meyering.net>
47251 Sync from coreutils.
47253 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47254 failure on deficient systems, and simplify gnulib lgpl dependencies.
47255 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47256 xmalloc/lstat combination. Based on a patch from Bruno Haible.
47258 * lib/xalloc-die.c: Remove unused definition of N_.
47260 2006-02-14 Jim Meyering <jim@meyering.net>
47262 Sync from coreutils.
47263 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47264 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47265 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47266 double-quote uses of that variable, to accommodate the rare case in
47267 which getmntent is available in none of the libraries checked. This
47268 happens at least on FreeBSD 5.0.
47270 2006-02-13 Simon Josefsson <jas@extundo.com>
47272 * gnulib-tool (Usage): Fix --import, from
47273 karl@freefriends.org (Karl Berry).
47275 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
47277 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47279 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
47281 * lib/argp-namefrob.h: Restore changes accidentally lost during the
47282 "autoupdate" on 2005-12-12.
47284 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
47286 * modules/closeout (Depends-on): Remove atexit.
47288 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
47290 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47291 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47293 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
47295 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47296 __EXTENSIONS__ if this causes compilation to fail. Problem
47297 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47298 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47300 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
47302 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47303 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47304 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47307 2006-01-26 Simon Josefsson <jas@extundo.com>
47309 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47310 prototype is visible on mingw32.
47312 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47315 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47318 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
47320 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
47321 attempt to open for write; this always fails, at least on POSIX
47322 hosts. This reinstates the 2006-01-09 change, which was
47323 inadvertently removed.
47325 2006-01-26 Bruno Haible <bruno@clisp.org>
47327 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47328 Reported by Paul Eggert.
47330 2006-01-26 Bruno Haible <bruno@clisp.org>
47331 Paul Eggert <eggert@cs.ucla.edu>
47333 * lib/stdbool_.h (_Bool)
47334 [(! (defined __cplusplus || defined __BEOS__)
47335 && !defined __GNUC__
47336 && !(defined __HP_cc || defined __xlc__
47337 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47338 || defined __sgi))]:
47339 #define to signed char in these cases too; this simplifies
47340 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47341 etc., separately) and makes it more conservative.
47343 2006-01-25 Simon Josefsson <jas@extundo.com>
47345 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47346 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
47347 ws2tcpip.h with WINVER=0x0501. All for mingw32.
47349 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
47351 * lib/argp-namefrob.h: Bugfix. Remove stray #
47353 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
47355 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47356 so that we test the test.
47357 Check for yet another HP-UX cc bug involving *bool |= bool.
47359 2006-01-25 Karl Berry <karl@gnu.org>
47361 * config/srclist.txt (vasnprintf.c): sync lost.
47363 2006-01-25 Jim Meyering <jim@meyering.net>
47365 Sync from the stable (b5) branch of coreutils:
47367 * lib/fts.c (fts_children): Don't let close() clobber errno from
47370 * lib/fts.c (fts_stat): When following a symlink-to-directory,
47371 don't necessarily interpret stat-fails+lstat-succeeds as indicating
47372 a dangling symlink. That can also happen at least for ELOOP.
47373 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47374 FYI, this bug predates the inclusion of fts.c in coreutils.
47376 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47377 in their own block, so pre-c99 compilers don't object.
47379 Avoid the double-free (first in fts_read, second in fts_close) that
47380 would occur when an `active' directory is made inaccessible (e.g.,
47381 via chmod a-x) during a traversal.
47382 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47383 before returning. Reproduce this failure by
47384 mkdir -p a/b; cd a; chmod a-x . b
47385 Reported by Stavros Passas.
47387 2006-01-25 Jim Meyering <jim@meyering.net>
47389 * lib/fileblocks.c: Remove more useless parentheses.
47390 * lib/readutmp.h: Likewise.
47392 2006-01-25 Bruno Haible <bruno@clisp.org>
47394 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47396 Reported by Paul Eggert.
47398 2006-01-25 Bruno Haible <bruno@clisp.org>
47400 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47401 rid of a trap command. For Solaris sh.
47402 Reported by Mark D. Baushke <mdb@gnu.org>.
47404 2006-01-24 Simon Josefsson <jas@extundo.com>
47406 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47409 2006-01-24 Karl Berry <karl@gnu.org>
47411 * config/srclist.txt (argp-namefrob.h): sync lost.
47413 2006-01-24 Jim Meyering <jim@meyering.net>
47415 * modules/openat (Files): Add lib/intprops.h.
47416 From Mark D. Baushke.
47418 2006-01-24 Jim Meyering <jim@meyering.net>
47420 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47421 Reported by Mark D. Baushke.
47423 2006-01-24 Jim Meyering <jim@meyering.net>
47425 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47427 2006-01-24 Bruno Haible <bruno@clisp.org>
47429 * modules/strnlen (Maintainer): Change from glibc to all.
47431 2006-01-24 Bruno Haible <bruno@clisp.org>
47433 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47434 Patch by Paul Eggert.
47436 2006-01-24 Bruno Haible <bruno@clisp.org>
47438 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47440 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
47443 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47444 'signed char' to avoid problems with the built-in _Bool type.
47445 Reported by Paul Eggert on 2005-11-26.
47447 2006-01-24 Bruno Haible <bruno@clisp.org>
47449 * gnulib-tool (func_import): Avoid constructing complicated sed
47450 expressions inside backquote.
47451 Report and solution by Mark D. Baushke <mdb@gnu.org>.
47453 2006-01-23 Ulrich Drepper <drepper@redhat.com>
47455 These changes imported from libc.
47456 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47457 test and two separate function calls.
47458 * lib/strndup.c (__strndup): Add libc_hidden_def.
47460 2006-01-23 Simon Josefsson <jas@extundo.com>
47462 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47463 Remove the test_*_SOURCES variable: automake infers it by default.
47464 * modules/tls-tests: Likewise.
47466 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47468 Work around porting bugs reported by Dieter in
47469 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47470 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47471 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47472 Include "getopt.h" first, to check interface.
47473 (getenv): Declare only if defined HAVE_DECL_GETENV &&
47475 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47476 (__strndup): Revert to K&R-style function dfns, the glibc style.
47477 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47478 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47479 Include strnlen.h first, to get prototype properly.
47480 (strnlen): Renamed from __strnlen.
47483 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47485 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47487 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47489 * config/srclist.txt: Adjust to reflect glibc reorganization.
47490 This affects only comments.
47492 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47494 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47495 Reported by Bruce Korb <bkorb@gnu.org>.
47497 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
47499 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47500 to pacify gcc -Wswitch-default.
47502 2006-01-22 Bruno Haible <bruno@clisp.org>
47504 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47505 temporary buffer for sprintf, take into account the precision also
47506 for 'd', 'i', 'u', 'o', 'x', 'X'.
47508 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47510 * modules/argp-tests: New module
47511 * tests/test-argp.c: New file
47512 * tests/test-argp-2.sh: New file
47514 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47516 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47517 (__argp_base_name): Removed
47518 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47520 (__argp_base_name): Provide macro definition or extern declaration
47521 depending on the configuration
47523 2006-01-20 Simon Josefsson <jas@extundo.com>
47525 * modules/inet_ntop (Depends-on): Depend on sys_socket.
47527 2006-01-20 Simon Josefsson <jas@extundo.com>
47529 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47531 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
47533 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47534 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47535 Suggested by Bruno Haible.
47537 2006-01-20 Karl Berry <karl@gnu.org>
47539 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47540 until changes propagate, I guess.
47542 2006-01-19 Simon Josefsson <jas@extundo.com>
47544 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47546 2006-01-19 Simon Josefsson <jas@extundo.com>
47548 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47550 2006-01-19 Simon Josefsson <jas@extundo.com>
47552 * gnulib-tool: Set check_PROGRAMS.
47554 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47555 modules/des-tests, modules/gc-arcfour-tests,
47556 modules/gc-arctwo-tests, modules/gc-des-tests,
47557 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47558 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47559 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47560 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47561 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47562 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47563 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47566 2006-01-18 Simon Josefsson <jas@extundo.com>
47568 * modules/socklen (Depends-on): Depend on sys_socket.
47570 2006-01-18 Simon Josefsson <jas@extundo.com>
47572 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47573 modules/des-tests, modules/gc-arcfour-tests,
47574 modules/gc-arctwo-tests, modules/gc-des-tests,
47575 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47576 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47577 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47578 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47579 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47580 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47581 $(EXEEXT) to automake TESTS variable, for mingw32.
47583 2006-01-17 Simon Josefsson <jas@extundo.com>
47585 * modules/socklen (Include): Need sys/socket.h.
47587 2006-01-17 Bruno Haible <bruno@clisp.org>
47589 * modules/ssize_t (Include): Add <sys/types.h>.
47591 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
47593 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47594 it's not portable and it doesn't work with cross-compiles.
47595 Problem reported by Bruno Haible. Fix missing-$ typo in
47596 'test "gl_cv_ignore_unused_libraries" ...' that prevented
47597 -zignore from being used with Sun's C compiler.
47599 2006-01-12 Simon Josefsson <jas@extundo.com>
47601 * lib/base64.c: Fix warning, reported by Bruno Haible
47602 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47604 2006-01-12 Bruno Haible <bruno@clisp.org>
47606 * modules/ldd: New file.
47607 * build-aux/ldd.sh.in: New file.
47608 * MODULES.html.sh (Support for building libraries and executables): Add
47611 2006-01-12 Bruno Haible <bruno@clisp.org>
47613 * m4/ldd.m4: New file.
47615 2006-01-12 Bruno Haible <bruno@clisp.org>
47617 * gnulib-tool (func_import, func_create_testdir): Don't go into an
47618 endless loop while replacing $auxdir with build-aux.
47620 2006-01-11 Simon Josefsson <jas@extundo.com>
47622 * lib/stdint_.h (SIZE_MAX): Add missing (.
47624 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
47626 Sync from coreutils.
47627 * lib/md5.c: Fix commentary typos.
47628 (alignof, UNALIGNED_P): No need for a GCC-specific version.
47629 * lib/md5.h (__attribute__): Remove; unused.
47630 * lib/sha1.c: Fix commentary to match md5 better.
47631 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47632 so that we don't need to worry about alignment. All uses changed.
47633 This merges the 2005-10-28 md5 change into sha1.
47635 2006-01-11 Jim Meyering <jim@meyering.net>
47637 Sync from coreutils.
47638 * lib/md5.c (OP): Fix spacing.
47640 2006-01-11 Bruno Haible <bruno@clisp.org>
47642 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47643 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47644 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47646 2006-01-11 Bruno Haible <bruno@clisp.org>
47648 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47649 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47650 the "early" section as well.
47652 2006-01-11 Bruno Haible <bruno@clisp.org>
47654 Avoid "ar: no archive members specified" error on MacOS X.
47655 * gnulib-tool (func_modules_add_dummy): New function.
47656 (func_import, func_create_testdir): Invoke it.
47658 2006-01-11 Bruno Haible <bruno@clisp.org>
47660 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47661 with $auxdir in AC_CONFIG_FILES statements.
47663 2006-01-11 Bruno Haible <bruno@clisp.org>
47665 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47666 Initialize also noinst_HEADERS to empty.
47668 2006-01-11 Bruno Haible <bruno@clisp.org>
47670 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47672 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47675 2006-01-11 Bruno Haible <bruno@clisp.org>
47677 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47678 overridable by the user.
47679 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47681 2006-01-10 Simon Josefsson <jas@extundo.com>
47683 * modules/sys_socket: New file.
47685 2006-01-10 Simon Josefsson <jas@extundo.com>
47687 * m4/sys_socket_h.m4: New file.
47689 2006-01-10 Simon Josefsson <jas@extundo.com>
47691 * lib/socket_.h: New file.
47693 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47695 * modules/readutmp (Maintainer): Add myself.
47697 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47699 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47700 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
47701 People who are still concerned with buggy memcmp implementations
47702 can invoke gl_FUNC_MEMCMP themselves.
47704 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47706 * lib/regex_internal.h (BITSET_WORD_BITS):
47707 Work around a bug in 64-bit PGC (before version 6.1-2), where the
47708 preprocessor mishandles large unsigned values as if they were signed.
47709 Problem reported by Claudio Fontana in
47710 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47712 2006-01-10 Jim Meyering <jim@meyering.net>
47714 Avoid the double-free (first in fts_read, second in fts_close) that
47715 would occur when an `active' directory is made inaccessible (e.g.,
47716 via chmod a-x) during a traversal.
47717 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47718 before returning. Reproduce this failure by
47719 mkdir -p a/b; cd a; chmod a-x . b
47720 Reported by Stavros Passas.
47722 Sync from coreutils.
47723 * lib/sha1.c: Tweak grammar in a comment.
47725 2006-01-10 Jim Meyering <jim@meyering.net>
47727 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47728 Patch by Joerg Sonnenberger.
47730 2006-01-10 Bruno Haible <bruno@clisp.org>
47732 * modules/readutmp: Depend on module free.
47733 * modules/strtok_r: Depend on module restrict.
47735 2006-01-10 Bruno Haible <bruno@clisp.org>
47737 * modules/gettext (configure.ac): Add an invocation of
47738 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47740 2006-01-10 Bruno Haible <bruno@clisp.org>
47742 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47743 Reported by Werner Lemberg <wl@gnu.org>.
47745 2006-01-10 Bruno Haible <bruno@clisp.org>
47747 * lib/localcharset.c: Update from GNU gettext.
47749 2006-01-10 Bruno Haible <bruno@clisp.org>
47751 * lib/argp.h (__const): Remove macro. Use const instead.
47752 * lib/argp-fmtstream.h (__const): Likewise.
47753 * lib/glob_.h (__const): Remove macro.
47754 * lib/glob-libc.h: Use const instead of __const.
47756 2006-01-10 Bruno Haible <bruno@clisp.org>
47758 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47760 Needed to avoid an automake error regarding the 'gettext' module.
47762 2006-01-09 Simon Josefsson <jas@extundo.com>
47764 * modules/inet_ntop (Depends-on): Add restrict.
47766 2006-01-09 Simon Josefsson <jas@extundo.com>
47768 * modules/gc-rijndael-tests (License): Put under LGPL.
47770 * modules/gc-des-tests (License): Likewise.
47772 * modules/gc-arcfour-tests (License): Likewise.
47774 * modules/gc-arctwo-tests (License): Likewise.
47776 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47778 * modules/gc-hmac-sha1-tests (Files): Likewise.
47780 * modules/gc-hmac-md5-tests (License): Likewise.
47782 * modules/gc-sha1-tests (License): Likewise.
47784 * modules/gc-md5-tests (License): Likewise.
47786 * modules/gc-md4-tests (License): Likewise.
47788 * modules/gc-md2-tests (License): Likewise.
47790 * modules/gc-tests (License): Likewise.
47792 * modules/des-tests (License): Likewise.
47794 * modules/md4-tests (License): Likewise.
47796 * modules/md2-tests (License): Likewise.
47798 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47800 Sync from coreutils:
47802 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47803 * modules/lib-ignore: New file.
47804 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47805 chdir-safer.m4, lchmod.m4.
47806 * modules/openat: Add mkdirat.c, openat-priv.h.
47808 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47810 Sync from coreutils.
47811 * m4/lib-ignore.m4: New file.
47812 * m4/lchmod.m4: New file.
47814 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47816 Sync from coreutils.
47817 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47818 for write access: POSIX says that must fail.
47819 * lib/fts.c (diropen): Likewise.
47820 * lib/save-cwd.c (save_cwd): Likewise.
47821 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47822 well, for minor improvements on hosts that lack O_DIRECTORY.
47823 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47824 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47825 Fall back on chown if open failed with EACCES.
47827 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47828 Report an error at compile-time if only a 1-second nominal clock
47829 resolution is found.
47831 * lib/lchmod.h: New file.
47832 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47833 (make_dir_parents): Use lchown rather than chown, and
47834 lchmod rather than chmod.
47836 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47837 dummies too. Problem with "none" reported by Bob Proulx. Problem with
47838 "proc" reported by n0dalus.
47840 * lib/mountlist.c: Include <limits.h>.
47841 (dev_from_mount_options)
47842 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47843 New function. It no longer assumes "dev=" has the System V meaning
47844 on Linux (since it doesn't). It also parses "dev=" more carefully.
47845 (read_file_system_list)
47846 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47847 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47850 * lib/posixtm.h (PDS_PRE_2000): New macro.
47851 * lib/posixtm.c (year): Arg is now syntax_bits rather than
47852 allow_century. All usages changed. Reject dates outside the range
47853 1969-1999 if PDS_PRE_2000 is used.
47855 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47857 Sync from coreutils.
47858 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47859 (Time of day items): Mention the possibility of leap seconds.
47860 Problem reported by Dr. David Alan Gilbert.
47862 2006-01-09 Jim Meyering <jim@meyering.net>
47864 Sync from coreutils.
47866 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47868 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47870 * lib/modechange.c (mode_compile): Reject an invalid mode string
47871 that starts with an octal digit. From Andreas Gruenbacher.
47873 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47874 and dup to open_safer and dup_safer, respectively.
47875 (openat_permissive): Fix typo in comment.
47877 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47878 "gettext.h"; either no longer needed or are guaranteed by openat.h.
47879 (_): Remove; no longer needed.
47880 (openat): Renamed from rpl_openat; no need for rpl_openat
47881 since openat.h renames openat for us.
47882 Replace most of the body with a call to openat_permissive,
47883 to avoid duplicate code.
47884 Port to (probably hypothetical) environments were mode_t is
47886 (openat_permissive): Require mode arg, so that we can check
47887 types better. Put it just after flags. Change cwd failure
47888 indicator from pointer-to-bool to pointer-to-errno-value.
47889 All callers changed.
47890 Invoke openat_save_fail and/or openat_restore_fail if
47891 cwd_errno is null, so that openat can call us.
47892 (openat_permissive, fdopendir, fstatat, unlinkat):
47893 Simplify errno handling to avoid some duplicate code,
47894 as it's OK to set errno on success.
47895 * lib/openat.h: Revamp code so that function macros depend on
47896 __OPENAT_PREFIX only, not also on AT_FDCWD.
47897 (openat_ro): Remove. Caller changed to use openat_permissive.
47898 (openat_permissive): Now a macro, if not a function.
47899 (openat_restore_fail, openat_save_fail): Now always functions,
47900 since mkdirat needs them even if __OPENAT_PREFIX is defined.
47902 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47904 * lib/mkdirat.c: Include openat-priv.h.
47905 Remove definitions of macros defined therein.
47906 * lib/openat.c: Likewise.
47908 * lib/mkdirat.c (mkdirat): New file and function.
47909 * lib/openat.h (mkdirat): Declare.
47911 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47913 * lib/openat.h (openat_permissive): Declare.
47914 (openat_ro): Define.
47916 * lib/openat.c (EXPECTED_ERRNO): New macro.
47917 (openat_permissive): New function -- used in remove.c rewrite.
47918 (all functions): Set errno just before returning, only if there
47919 was an actual failure.
47920 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47922 Emulate openat-family functions using Linux's procfs, if possible.
47923 Idea and some code based on Ulrich Drepper's glibc changes.
47925 * lib/openat.c: (BUILD_PROC_NAME): New macro.
47926 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47927 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47928 before falling back on save_cwd and restore_cwd.
47929 (fdopendir, fstatat, unlinkat): Likewise.
47931 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47932 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47934 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47935 as second argument to va_arg. Otherwise, some versions of gcc
47936 warn that `if this code is reached, the program will abort'.
47938 2006-01-09 Jim Meyering <jim@meyering.net>
47940 Sync from coreutils.
47941 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47942 Require openat-priv.h.
47944 2006-01-09 Bruno Haible <bruno@clisp.org>
47946 * modules/strnlen (Include): Use strnlen.h.
47948 2006-01-09 Bruno Haible <bruno@clisp.org>
47950 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47952 2006-01-09 Bruno Haible <bruno@clisp.org>
47954 * lib/sysexit_.h (EX_OK): New macro.
47955 Suggested by Martin Lambers <marlam@marlam.de>.
47957 2006-01-09 Bruno Haible <bruno@clisp.org>
47959 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47960 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47962 2006-01-09 Bruno Haible <bruno@clisp.org>
47964 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47967 2006-01-09 Bruno Haible <bruno@clisp.org>
47969 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47970 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47971 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47972 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47974 2006-01-09 Bruno Haible <bruno@clisp.org>
47976 * build-aux/javacomp.sh.in: New file, moved from lib/.
47977 * modules/javacomp-script (Files): Update.
47978 (configure.ac): Add AC_CONFIG_FILES invocation.
47979 (EXTRA_DIST): Remove variable.
47981 * build-aux/javaexec.sh.in: New file, moved from lib/.
47982 * modules/javaexec (Files): Update.
47983 (configure.ac): Add AC_CONFIG_FILES invocation.
47984 (EXTRA_DIST): Remove javaexec.sh.in.
47986 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47987 * modules/csharpcomp-script (Files): Update.
47988 (configure.ac): Add AC_CONFIG_FILES invocation.
47989 (EXTRA_DIST): Remove variable.
47991 * build-aux/csharpexec.sh.in: New file, moved from lib/.
47992 * modules/csharpexec (Files): Update.
47993 (configure.ac): Add AC_CONFIG_FILES invocation.
47994 (EXTRA_DIST): Remove csharpexec.sh.in.
47996 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47998 Sync from coreutils.
48000 Add POSIX ACL support
48001 * lib/acl.h (copy_acl, set_acl): Add declarations.
48002 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48003 systems other than Linux.
48004 (chmod_or_fchmod): New function: use fchmod when possible,
48005 and chmod otherwise.
48006 (file_has_acl): Add a POSIX ACL implementation, with a
48007 Linux-specific subcase.
48008 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48009 S_ISVTX from one file to another. Fall back to fchmod/chmod when
48010 acls are unsupported.
48011 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48012 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
48015 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
48017 Sync from coreutils.
48018 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48020 2006-01-07 Bruno Haible <bruno@clisp.org>
48022 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48025 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
48027 * lib/strftime.c (tzname): Don't declare if it is already #defined.
48028 Problem reported for Mingw by Mark Junker.
48030 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
48032 * README: Gnulib normally doesn't generate a tarball.
48034 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
48036 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48037 long int, not int, for nanosecond counts, so that people who are
48038 used to POSIX struct timespec won't be surprised. Reported by Jim
48041 2005-12-28 Bruno Haible <bruno@clisp.org>
48043 * build-aux/config.rpath: Update from GNU gettext.
48045 2005-12-16 Jim Meyering <jim@meyering.net>
48047 * modules/fprintftime: New module.
48048 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48050 2005-12-16 Jim Meyering <jim@meyering.net>
48052 * m4/fprintftime.m4: New file.
48054 2005-12-16 Jim Meyering <jim@meyering.net>
48056 * lib/fprintftime.c, lib/fprintftime.h: New files.
48058 2005-12-15 Simon Josefsson <jas@extundo.com>
48060 * modules/socklen (configure.ac): Fix M4 macro name, to align with
48063 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
48065 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48066 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48068 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
48070 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48071 * lib/argp-help.c (fill_in_uparams): Check if the constructed
48072 struct uparams is valid. Fall back to the default values if it is
48075 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48077 * modules/argp (Files): Add argp-pin.c
48078 (Depends-on): dirname
48079 (lib_SOURCES): Add argp-pin.c
48081 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48083 * m4/argp.m4: Check if program_invocation_name and
48084 program_invocation_short_name are declared and define appropriate
48085 macros if they are not.
48087 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48089 * lib/argp-help.c (__argp_base_name): New function
48090 (__argp_short_program_name): Rewrite using __argp_base_name
48091 * lib/argp-namefrob.h: Define program_invocation_name and
48092 program_invocation_short_name if requested
48093 (__argp_base_name): Add prototype
48094 * lib/argp-parse.c (argp_def): Use gettext wrappers
48095 (argp_default_parser): Use __argp_base_name
48096 * lib/argp-pin.c: New file. Defines program_invocation_name and
48097 program_invocation_short_name on systems that lack them.
48099 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
48101 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48102 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48103 porting problem reported by Georg Schwarz in
48104 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48106 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
48108 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48109 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48110 porting problem reported by Georg Schwarz in
48111 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48113 2005-12-05 Bruno Haible <bruno@clisp.org>
48115 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48116 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48117 Reported by Mark Junker <mjscod@gmx.de>.
48119 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
48121 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48122 Use implementation from Albert Chin, with some
48123 comments/corrections by Stepan Kasal and myself.
48125 2005-12-02 Bruno Haible <bruno@clisp.org>
48127 * gnulib-tool (func_import): Accept GPLed build tool modules when
48129 * modules/csharpcomp-script: New file.
48130 * modules/csharpcomp: Depend on it.
48131 * modules/javacomp-script: New file.
48132 * modules/javacomp: Depend on it.
48133 Suggested by Simon Josefsson.
48135 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
48137 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48138 statement, to work around an HP-UX 10.20 compiler bug reported by
48141 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
48143 * modules/savedir (Depends-on): Add openat.
48145 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
48147 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48148 (uintmax_t) [defined uintmax_t]: Do not declare.
48149 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48150 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48151 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
48152 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48153 sake of portability to weird hosts that C allows (though we don't
48154 know of any practical examples).
48156 * lib/savedir.h (fdsavedir): New decl.
48157 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48158 contains most of the former guts of savedir.
48159 (savedir): Use savedirstream.
48160 Include "openat.h".
48162 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
48164 * modules/obstack (Files): Add m4/ulonglong.m4.
48165 Problem reported by Davide Angelocola.
48167 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
48169 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48170 coreutils no longer futzes with rounding modes.
48172 2005-11-14 Jim Meyering <jim@meyering.net>
48174 * lib/mkstemp-safer.c: Include <config.h>, required for possible
48175 replacement of mkstemp.
48177 2005-11-10 Simon Josefsson <jas@extundo.com>
48179 * lib/readline.c: Remove EOL.
48181 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48183 * modules/gethrxtime (Depends-on): Add gettime.
48185 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48187 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48188 or gettimeofday; no longer needed.
48190 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48192 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48194 (gethrxtime) [! (HAVE_NANOUPTIME
48195 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48196 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48197 our own approximation.
48199 2005-11-08 Eric Blake <ebb9@byu.net>
48201 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48203 2005-11-08 Eric Blake <ebb9@byu.net>
48205 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48207 2005-11-04 Bruno Haible <bruno@clisp.org>
48209 * gnulib-tool: Implement --update mode.
48211 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
48213 Fix porting problem reported by Theodoros V. Kalamatianos.
48214 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48215 Don't assume that futimes failing means we must fail.
48217 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
48219 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48220 variables to suggest the intended function of the PATH_MAX check.
48222 2005-10-30 Kean Johnston <jkj@sco.com>
48224 Trivial changes to support SCO systems.
48225 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48227 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48228 where __ptr is null when no I/O is pending.
48230 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
48232 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48233 leave errno alone. Problem reported by Dmitry V. Levin.
48235 2005-10-28 Simon Josefsson <jas@extundo.com>
48237 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48240 * tests/test-gc-md2.c, tests/test-md2.c: New files.
48242 * modules/md2, modules/md2-tests: New files.
48244 2005-10-28 Simon Josefsson <jas@extundo.com>
48246 * m4/inet_ntop.m4: More tests.
48248 * m4/gc-md2.m4, md2.m4: New file.
48250 2005-10-28 Simon Josefsson <jas@extundo.com>
48252 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48253 "restrict" keywords, as per POSIX. Protect the function
48254 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48255 Don't use K&R prototypes. Check the sprintf return values.
48256 Re-define EAFNOSUPPORT if not present. Indent.
48258 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48259 suggested by Bruno Haible <bruno@clisp.org>.
48261 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48263 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
48265 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48268 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
48270 * lib/md2.h, lib/md2.c: New files.
48272 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
48274 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48275 errno alone. Problem reported by Frederic Jolliton.
48277 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
48279 * modules/verify (License): Change from GPL to LGPL. This is a
48280 tiny module and there are apparently near-equivalents that are
48281 under the BSD license.
48283 2005-10-24 Simon Josefsson <jas@extundo.com>
48285 * modules/sha1: Relicense to LGPL.
48287 2005-10-24 Simon Josefsson <jas@extundo.com>
48289 * lib/md4.h: Shrink buffer size, now that we changed the type.
48291 2005-10-23 Simon Josefsson <jas@extundo.com>
48293 * gnulib-tool (func_import): Fix --tests-base.
48295 2005-10-22 Simon Josefsson <jas@extundo.com>
48297 * modules/arcfour (Depends-on): Need stdint.
48299 2005-10-22 Simon Josefsson <jas@extundo.com>
48301 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48302 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
48304 2005-10-22 Simon Josefsson <jas@extundo.com>
48306 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48307 suggested by Bruno Haible <bruno@clisp.org>.
48309 2005-10-22 Simon Josefsson <jas@extundo.com>
48311 * lib/crc.h: Include stddef.h, for size_t.
48313 2005-10-22 Simon Josefsson <jas@extundo.com>
48315 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48316 arcfour_context struct (simplify test vector testing in GNU
48319 2005-10-21 Simon Josefsson <jas@extundo.com>
48321 * modules/des, modules/des-tests: New files.
48323 * modules/gc-des, modules/gc-des-tests: New files.
48325 * tests/test-des.c, tests/test-gc-des.c: New file.
48327 2005-10-21 Simon Josefsson <jas@extundo.com>
48329 * modules/arctwo, modules/arctwo-tests: New files.
48331 * tests/test-arctwo.c: New file.
48333 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48335 * tests/test-gc-arctwo.c: New file.
48337 2005-10-21 Simon Josefsson <jas@extundo.com>
48339 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48340 Bruno Haible <bruno@clisp.org>.
48342 * m4/gc-des.m4: New file.
48344 2005-10-21 Simon Josefsson <jas@extundo.com>
48346 * m4/arctwo.m4: New file.
48348 * m4/gc-arctwo.m4: New file.
48350 2005-10-21 Simon Josefsson <jas@extundo.com>
48352 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48355 2005-10-21 Simon Josefsson <jas@extundo.com>
48357 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48360 * lib/hmac-sha1.c (hmac_sha1): Likewise.
48362 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48363 Bruno Haible <bruno@clisp.org>.
48365 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48368 2005-10-21 Simon Josefsson <jas@extundo.com>
48370 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48372 2005-10-21 Simon Josefsson <jas@extundo.com>
48374 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48376 2005-10-21 Simon Josefsson <jas@extundo.com>
48378 * lib/des.h, lib/des.c: New files.
48380 * lib/gc-gnulib.c: Support DES.c
48382 2005-10-21 Simon Josefsson <jas@extundo.com>
48384 * lib/arctwo.h, lib/arctwo.c: New files.
48386 * lib/gc-gnulib.c: Support ARCTWO.
48388 2005-10-21 Simon Josefsson <jas@extundo.com>
48390 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48391 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48393 2005-10-21 Simon Josefsson <jas@extundo.com>
48395 * gnulib-tool (func_import, func_create_testdir): Define automake
48396 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48397 Makefile.am snippet),
48398 suggested by Bruno Haible <bruno@clisp.org>.
48400 * modules/gc (Makefile.am): Use it.
48402 2005-10-21 Bruno Haible <bruno@clisp.org>
48404 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48407 2005-10-19 Simon Josefsson <jas@extundo.com>
48409 * tests/test-gc-rijndael.c: New file.
48411 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48413 2005-10-19 Simon Josefsson <jas@extundo.com>
48415 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48418 2005-10-19 Simon Josefsson <jas@extundo.com>
48420 * tests/test-gc-arcfour.c: New file.
48422 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48424 2005-10-19 Simon Josefsson <jas@extundo.com>
48426 * modules/gc-md4, modules/gc-md4-tests: New file.
48428 * tests/test-gc-md4.c: New file.
48430 2005-10-19 Simon Josefsson <jas@extundo.com>
48432 * m4/gc-md4.m4: New file.
48434 2005-10-19 Simon Josefsson <jas@extundo.com>
48436 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48437 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48440 2005-10-19 Simon Josefsson <jas@extundo.com>
48442 * m4/gc-arcfour.m4: New file.
48444 * m4/gc-rijndael.m4: New file.
48446 2005-10-19 Simon Josefsson <jas@extundo.com>
48448 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48450 2005-10-19 Simon Josefsson <jas@extundo.com>
48452 * lib/gc-gnulib.c: Support ARCFOUR.
48454 2005-10-19 Simon Josefsson <jas@extundo.com>
48456 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48459 * lib/gc.h: Add ECB enum type.
48461 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48463 2005-10-18 Simon Josefsson <jas@extundo.com>
48465 * tests/test-md5.c: New file.
48467 * modules/md5-tests: New file.
48469 2005-10-18 Simon Josefsson <jas@extundo.com>
48471 * tests/test-md4.c: New file.
48473 * modules/md4, modules/md4-tests: New files.
48475 2005-10-18 Simon Josefsson <jas@extundo.com>
48477 * m4/md4.m4: New file.
48479 2005-10-18 Simon Josefsson <jas@extundo.com>
48481 * lib/md4.h, lib/md4.c: New files, based on md5.?.
48483 2005-10-17 Stepan Kasal <kasal@ucw.cz>
48485 * gnulib-tool (func_create_testdir): Omit the second check whether
48486 BUILT_SOURCES in nonempty.
48488 2005-10-17 Simon Josefsson <jas@extundo.com>
48490 * tests/test-rijndael.c: New file.
48492 2005-10-17 Simon Josefsson <jas@extundo.com>
48494 * modules/sha1: Depend on stdint instead of md5.
48496 * modules/md5: Depend on stdint, remove uint32_t.
48498 2005-10-17 Simon Josefsson <jas@extundo.com>
48500 * modules/gc-sha1-tests: New file.
48502 * tests/test-gc-sha1.c: New file.
48504 2005-10-17 Simon Josefsson <jas@extundo.com>
48506 * m4/md5.m4: Remove call to uint32_t.m4.
48508 2005-10-17 Simon Josefsson <jas@extundo.com>
48510 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48512 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48515 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
48517 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
48519 2005-10-17 Simon Josefsson <jas@extundo.com>
48521 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48523 2005-10-17 Simon Josefsson <jas@extundo.com>
48525 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48527 2005-10-17 Simon Josefsson <jas@extundo.com>
48529 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48531 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48533 2005-10-17 Bruno Haible <bruno@clisp.org>
48535 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48536 that it can also be used in a test.
48538 2005-10-16 Bruno Haible <bruno@clisp.org>
48540 * gnulib-tool (func_emit_tests_Makefile_am): Also define
48541 TESTS_ENVIRONMENT, so that individual tests can augment it.
48543 * gnulib-tool (func_create_testdir): Use an intermediate target for
48544 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48545 macros, like $(ALLOCA_H), which cannot be passed through the command
48548 2005-10-15 Simon Josefsson <jas@extundo.com>
48550 * modules/rijndael-tests: New file.
48552 * modules/rijndael: New file.
48554 2005-10-15 Simon Josefsson <jas@extundo.com>
48556 * m4/rijndael.m4: New file.
48558 2005-10-15 Simon Josefsson <jas@extundo.com>
48560 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48562 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48564 2005-10-14 Simon Josefsson <jas@extundo.com>
48566 * tests/test-arcfour.c: New file.
48568 * modules/arcfour, modules/arcfour-tests: New files.
48570 2005-10-14 Simon Josefsson <jas@extundo.com>
48572 * m4/arcfour.m4: New file.
48574 2005-10-14 Simon Josefsson <jas@extundo.com>
48576 * lib/arcfour.h, lib/arcfour.c: New files.
48578 2005-10-14 Roland McGrath <roland@redhat.com>
48580 Import from libc. [BZ #1331]
48581 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48583 Reported by Matej Vela <vela@debian.org>.
48585 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48587 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48588 include <wchar.h>; no longer needed.
48590 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48592 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48594 2005-10-14 Jakub Jelinek <jakub@redhat.com>
48595 and Ulrich Drepper <drepper@redhat.com>
48598 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48599 instead of inline stream orientation test and two separate
48600 function calls. Pay no attention to USE_IN_LIBIO.
48602 2005-10-13 Simon Josefsson <jas@extundo.com>
48604 * modules/gc-hmac-md5-tests: New file.
48606 * tests/test-gc-hmac-sha1.c: New file.
48608 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48610 * modules/gc-hmac-md5-tests: New file.
48612 * tests/test-gc-md5.c: New file.
48614 * modules/gc-md5-tests: New file.
48616 2005-10-13 Simon Josefsson <jas@extundo.com>
48618 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48619 Move memory allocation outside of loop.
48621 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
48623 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48624 intermediate directory is in a read-only file system. Problem
48625 reported by Eric Blake.
48627 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
48629 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48631 2005-10-12 Simon Josefsson <jas@extundo.com>
48633 * tests/test-hmac-sha1.c: New file.
48635 * modules/hmac-sha1-tests: New file.
48637 * modules/hmac-sha1: New file.
48639 2005-10-12 Simon Josefsson <jas@extundo.com>
48641 * modules/gc-sha1: New file.
48643 2005-10-12 Simon Josefsson <jas@extundo.com>
48645 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48647 * tests/test-gc-pbkdf2-sha1.c: New file.
48649 2005-10-12 Simon Josefsson <jas@extundo.com>
48651 * modules/gc-md5, modules/gc-hmac-md5: New files.
48653 * modules/gc (Files): Remove md5, memxor and hmac files.
48655 2005-10-12 Simon Josefsson <jas@extundo.com>
48657 * m4/gc-pbkdf2-sha1.m4: New file.
48659 * m4/gc-hmac-sha1.m4: New file.
48661 * m4/gc-sha1: New file.
48663 * m4/hmac-sha1.m4: New file.
48665 2005-10-12 Simon Josefsson <jas@extundo.com>
48667 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48669 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48671 2005-10-12 Simon Josefsson <jas@extundo.com>
48673 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48674 suggested by Bruno Haible <bruno@clisp.org>.
48676 2005-10-12 Simon Josefsson <jas@extundo.com>
48678 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48680 2005-10-12 Simon Josefsson <jas@extundo.com>
48682 * lib/gc-pbkdf2-sha1.c: New file.
48684 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48686 2005-10-12 Simon Josefsson <jas@extundo.com>
48688 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48690 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48692 2005-10-12 Simon Josefsson <jas@extundo.com>
48694 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48695 GC_USE_HMAC_MD5, respectively.
48697 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48698 (gc_md5): Fix typo.
48700 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48702 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48704 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48706 2005-10-12 Bruno Haible <bruno@clisp.org>
48708 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48709 Reported by Stepan Kasal <kasal@ucw.cz>.
48711 2005-10-11 Simon Josefsson <jas@extundo.com>
48713 * tests/test-crc.c: New file.
48715 * modules/crc, modules/crc-tests: New files.
48717 2005-10-11 Simon Josefsson <jas@extundo.com>
48719 * m4/crc.m4: New file.
48721 2005-10-11 Simon Josefsson <jas@extundo.com>
48723 * lib/gc.h: Add gc_hash and gc_hash_buffer.
48725 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
48727 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48729 2005-10-11 Simon Josefsson <jas@extundo.com>
48731 * lib/crc.h, lib/crc.c: New files.
48733 * lib/gc.h (gc_hash_buffer): Add doc.
48735 2005-10-11 Bruno Haible <bruno@clisp.org>
48737 * modules/c-strcasestr: New file.
48738 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48740 2005-10-11 Bruno Haible <bruno@clisp.org>
48742 * modules/c-strcase: New file.
48743 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48745 2005-10-11 Bruno Haible <bruno@clisp.org>
48747 * lib/strcasecmp.c: Include limits.h.
48748 (strcasecmp): Avoid integer overflow on exotic platforms.
48749 * lib/strncasecmp.c: Include limits.h.
48750 (strncasecmp): Avoid integer overflow on exotic platforms.
48751 Reported by Paul Eggert.
48753 2005-10-11 Bruno Haible <bruno@clisp.org>
48755 * lib/c-strcasestr.h: New file, from GNU gettext.
48756 * lib/c-strcasestr.c: New file, from GNU gettext.
48758 2005-10-11 Bruno Haible <bruno@clisp.org>
48760 * lib/c-strcase.h: New file, from GNU gettext.
48761 * lib/c-strcasecmp.c: New file, from GNU gettext.
48762 * lib/c-strncasecmp.c: New file, from GNU gettext.
48764 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
48766 * modules/mempcpy (License): GPL -> LGPL.
48767 * modules/strchrnul (License): Likewise.
48768 * modules/sysexits (License): Likewise.
48770 2005-10-08 Simon Josefsson <jas@extundo.com>
48772 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48774 2005-10-07 Simon Josefsson <jas@extundo.com>
48776 * m4/memxor.m4: Remove gl_C_RESTRICT call.
48778 2005-10-06 Simon Josefsson <jas@extundo.com>
48780 * tests/test-hmac-md5.c: New file.
48782 * modules/hmac-md5-tests: New file.
48784 * modules/hmac-md5: New file.
48786 2005-10-06 Simon Josefsson <jas@extundo.com>
48788 * m4/hmac-md5.m4: New file.
48790 * m4/memxor.m4: Require gl_C_RESTRICT.
48792 2005-10-06 Simon Josefsson <jas@extundo.com>
48794 * lib/memxor.c (memxor): Avoid casts and warnings.
48796 2005-10-06 Simon Josefsson <jas@extundo.com>
48798 * lib/hmac-md5.c: New file.
48800 * lib/hmac.h: New file.
48802 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
48804 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48805 promotes to int, not unsigned int, to catch the AIX 5.3
48808 2005-10-05 Simon Josefsson <jas@extundo.com>
48810 * modules/memxor: New file.
48812 * modules/iconv (Files): Move config.rpath to havelib, it is used
48815 * modules/havelib (Files): Add config.rpath.
48817 2005-10-05 Simon Josefsson <jas@extundo.com>
48819 * m4/memxor.m4: New file.
48821 2005-10-05 Simon Josefsson <jas@extundo.com>
48823 * lib/memxor.c (memxor): Fix compiler error.
48825 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48826 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48828 * lib/memxor.h, lib/memxor.c: New files.
48830 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48831 we assume all systems have it, suggested by Jim Meyering
48832 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
48833 any systems lack sys/socket.h; mingw32 is known to lack it, but we
48834 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
48837 2005-10-05 Simon Josefsson <jas@extundo.com>
48839 * config/srclist.txt: Add glibc bug 1423 for md5.h.
48841 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
48843 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48844 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48845 needed, since the source code now assumes these .h files.
48847 2005-10-05 Derek Price <derek@ximbiot.com>
48849 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48851 2005-10-05 Bruno Haible <bruno@clisp.org>
48853 * modules/stdint (License): Change to LGPL.
48855 2005-10-04 Simon Josefsson <jas@extundo.com>
48857 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48858 D. Baushke" <mdb@gnu.org>.
48860 2005-10-04 Bruno Haible <bruno@clisp.org>
48862 * lib/verify.h (verify_true): Provide alternative definition for C++.
48864 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
48866 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
48867 (SSIZE_MAX): New macro, if not already defined.
48868 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48871 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48873 Sync from coreutils.
48874 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48875 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48876 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
48877 ULLONG_MAX doesn't work with 2.7.2.1.
48879 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48881 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48884 * modules/exclude (Depends-on): Depend on verify.
48885 * modules/strtoimax (Depends-on): Likewise.
48886 * modules/utimecmp (Depends-on): Likewise.
48888 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48890 * lib/exclude.c: Include verify.h.
48891 (verify): Remove. All callers changed to use verify.h's version.
48892 * lib/strtoimax.c: Likewise.
48893 * lib/utimecmp.c: Likewis.e
48895 Sync from coreutils.
48896 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48897 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48898 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48899 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
48900 bother returning ENOSYS if settimeofday or stime fails; just let
48901 them return whatever errno they want to return.
48902 * lib/utimens.c: Include unistd.h, for dup2.
48903 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48904 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48906 2005-10-02 Jim Meyering <jim@meyering.net>
48908 Sync from coreutils.
48909 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48910 from glibc-2.2.5 that fails for read-only files.
48912 2005-10-02 Jim Meyering <jim@meyering.net>
48914 Sync from coreutils.
48915 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48916 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48917 `#if HAVE_CONFIG_H'.
48918 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48919 Remove AT_FDCWD test.
48920 Do not consume the fd unless successful.
48921 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48922 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48923 block, so that we don't even try to compile it if settimeofday is
48924 available. This works around a compilation failure on OSF1 V5.1,
48925 due to stime requiring a `long int*' while tv_sec is `int'.
48927 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
48929 Sync from coreutils.
48930 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48931 against `yes', rather than just testing for nonempty.
48933 2005-10-01 Simon Josefsson <jas@extundo.com>
48935 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48938 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48939 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
48940 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
48941 freeaddrinfo and gai_strerror are declared by the POSIX headers.
48942 Check if struct addrinfo is declared.
48944 2005-10-01 Simon Josefsson <jas@extundo.com>
48946 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48947 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
48948 AI_* and EAI_* definitions. Protect function declarations.
48950 2005-10-01 Jim Meyering <jim@meyering.net>
48952 Sync from coreutils.
48954 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48955 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
48956 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48957 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48958 in the inet and nsl libraries. Required on Solaris 5.7.
48960 2005-10-01 Jim Meyering <jim@meyering.net>
48962 Sync from coreutils.
48963 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48964 in the inet and nsl libraries. Required on Solaris 5.7.
48966 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
48968 * lib/getdelim.c (getdelim): Remove unused variables.
48970 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
48972 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48973 so that the code works even with ancient cpp. Portability problem
48974 with GCC 2.7.2.1 reported by Thomas M.Ott.
48976 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
48978 * modules/regex (Depends-on): Add strcase.
48980 * modules/gethostname (Licence): Change from GPL to LGPL, since
48981 gethostname.c is a trivial implementation of a standard library
48983 * modules/poll (License): Change from GPL to LGPL, since it's
48984 derived from LGPL code.
48986 2005-09-27 Jim Meyering <jim@meyering.net>
48988 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48991 * lib/intprops.h (signed_type_or_expr__): Define.
48992 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48993 for unsigned types.
48995 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
48997 * lib/verify.h (verify_expr): Remove, replacing with:
48998 (verify_true): New macro that returns true instead of void.
48999 (verify_type__): Remove.
49000 (verify): Use verify_true rather than verify_type__.
49002 2005-09-26 Bruno Haible <bruno@clisp.org>
49004 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49006 (lib_SOURCES): Remove mbchar.c.
49007 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49008 (Files): Add m4/mbrtowc.m4.
49009 * modules/mbiter: Likewise.
49010 * modules/mbuiter: Likewise.
49012 2005-09-26 Bruno Haible <bruno@clisp.org>
49014 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49015 compile mbchar.c if they are not both present.
49016 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49017 * m4/mbiter.m4 (gl_MBITER): Likewise.
49018 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49019 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49020 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49022 2005-09-25 Jim Meyering <jim@meyering.net>
49024 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49025 also uses socklen_t.
49027 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
49029 * lib/utimens.c (ENOSYS): Define if not already defined.
49030 (futimens): Support having a null PATH if the file descriptor
49033 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49035 (__attribute): Define to empty unless GCC 3.1 or later.
49036 This works around a core dump on OpenBSD 3.4, which has GCC
49037 2.95.3, which dumps core when given __attribute__(()). It also
49038 simplifies other tests, since we really don't want to bother with
49039 worrying about which ancient version of GCC supported what.
49040 Original problem reported by Yoann Vandoorselaere, with part of
49041 the fix suggested by Derek Price.
49043 2005-09-24 Jim Meyering <jim@meyering.net>
49045 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49046 so we can once again use a positive bitfield width of 1 -- now we
49047 don't have to explain why we were using a bitfield width of 2.
49049 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
49051 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49052 and similarly for the other external symbols. Problem reported
49055 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49056 bug reported by Jim Meyering.
49058 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49059 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49060 not needed, since socklen is a prerequisite module.
49062 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
49064 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49065 Problem reported by Eric Blake.
49066 (getaddrinfo): Initialize se so that it's not garbage.
49067 Redo internal storage allocation so that it doesn't make unportable
49068 assumptions about alignment.
49071 * lib/utimens.c (futimens): Use futimesat if available.
49072 Prefer it to futimes since it doesn't have the futimes bug.
49074 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49075 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49076 Instead, declare a function that returns a pointer to an array,
49077 and use verify_type__ to declare the size of the array.
49078 Problem and germ of a solution reported by Bruno Haible.
49079 (verify_type__): Use 2, not 1, for bitfield size, to avoid
49080 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
49082 2005-09-23 Jim Meyering <jim@meyering.net>
49084 Sync from coreutils.
49085 Correct build failure (socklen_t not defined) on at least
49086 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49087 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49089 2005-09-23 Jim Meyering <jim@meyering.net>
49091 * modules/getaddrinfo (Depends-on): Add socklen.
49093 2005-09-23 Bruno Haible <bruno@clisp.org>
49095 * tests/test-verify.c: New file.
49097 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49099 Sync from coreutils.
49101 * modules/argmatch (Depends-on): Add verify.
49102 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49104 * modules/save-cwd (Depends-on): Likewise.
49106 * modules/openat (Files): Add lib/openat-die.c.
49107 (Depends-on): Remove error, exitfail.
49110 * modules/verify: New file.
49111 * MODULES.html.sh (Diagnostics <assert.h>): New section,
49112 with "verify" module.
49114 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49116 Sync from coreutils.
49118 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49119 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49120 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49121 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49122 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49123 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49124 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49125 Don't bother checking for string.h, stdlib.h, unistd.h.
49126 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49127 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49129 * m4/jm-macros.m4 (gl_MACROS): Likewise.
49130 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49132 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49133 (gl_GETDATE): Use it.
49135 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49137 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49139 Sync from coreutils.
49141 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49143 * lib/argmatch.h: Include verify.h
49144 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49145 (ARGMATCH_ASSERT): Remove; unused.
49146 * lib/canonicalize.c: Assume STDC_HEADERS.
49147 * lib/exclude.c: Include "strcase.h".
49148 * lib/regex_internal.h [!defined _LIBC]: Likewise.
49149 * lib/getusershell.c: Include stdio--.h rather than stdio.h
49151 (getusershell): Call fopen, not fopen_safer.
49152 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49153 Do not include unistd-safer.h.
49154 (save_cwd): Don't call fd_safer; no longer needed
49155 now that we include fcntl--.h.
49157 * lib/getdate.y (relative_time): New type.
49158 (RELATIVE_TIME_0): New constant.
49159 (parser_control): Use relative_time instead of doing it ourselves.
49160 (%union): Add new relative_time rel member.
49161 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49163 (relunit, relunit_snumber): Now of type rel.
49164 (zone, rel, relunit, get_date): Adjust to above changes.
49166 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49167 Do not include unistd-safer.h.
49168 (getloadavg): Don't call fd_safer; no longer needed
49169 now that we include fcntl--.h.
49171 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49172 (make_dir_parents): Treat ENOSYS like EEXIST.
49174 Improve quality of diagnostics on restore_cwd failure.
49175 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
49176 (make_dir_parents): Last arg is now int * (for errno), not bool *.
49177 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49178 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49179 each time through the loop. Do not diagnose restore_cwd failure;
49180 that is the caller's job (and perhaps the caller does not care).
49182 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49183 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49184 If the file already exists but is not a directory, don't bother
49185 to try to make its parents.
49186 Close potential file descriptor leak if we can't chdir("/") (!).
49187 Don't always return true if chdir($PWD) fails; return true only
49188 if the requested action was done successfully (except for the
49190 Don't log final directory unless we actually made it.
49191 Refactor to avoid duplicate code to fix up permissions.
49192 Don't attempt to fix up parent permissions if chdir($PWD) fails.
49194 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49195 to make it a bit faster and (I hope) clearer.
49196 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49197 Fix bug in formats like %2N.
49199 * lib/verify.h: New file.
49201 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49203 Sync from coreutils.
49204 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49206 2005-09-22 Jim Meyering <jim@meyering.net>
49208 Sync from coreutils.
49210 * m4/lstat.m4 (gl_FUNC_LSTAT):
49211 Use AC_LIBSOURCES to require lstat.c and lstat.h.
49212 Remove obsolete comment.
49213 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49214 * m4/xstrtod.m4: Likewise.
49216 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49218 2005-09-22 Jim Meyering <jim@meyering.net>
49220 Sync from coreutils.
49222 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49224 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49225 the .tm_year member, since otherwise gcc-4.0 would now warn about
49226 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49228 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49229 order to avoid an unsuppressible warning from gcc on 64-bit systems.
49231 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49232 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49233 when run in a time zone for which daylight savings time is in effect
49234 for the starting date.
49236 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49237 stop us from restricting permissions of just-created absolute-named
49239 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49240 to restore initial working directory.
49241 * lib/mkdir-p.c (make_dir_parents): New parameter:
49242 different_working_dir, to tell caller if/when we change the working
49243 directory and are unable to return to the initial one.
49244 * lib/mkdir-p.h (make_dir_parents): Update prototype.
49245 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49246 `return false'. This fixes a bug introduced on 2004-07-30.
49248 * lib/openat.c (fdopendir): Be sure to close the supplied
49249 file descriptor before returning. This makes our replacement
49250 implementation a little closer to Solaris's, where fdopendir
49251 ties the file descriptor to the returned DIR* pointer.
49252 * lib/openat.c (unlinkat): New function.
49253 * lib/openat.h (unlinkat): Add prototype.
49254 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49255 (openat_restore_fail): Rename from openat_restore_die.
49256 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49258 Provide an alternative to exiting immediately upon save_cwd or
49259 restore_cwd failure. Now, an application can arrange e.g.,
49260 to perform a longjump in that case.
49261 * lib/openat.c: Include dirname.h.
49262 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49263 (rpl_openat, fdopendir, fstatat): Call openat_save_die
49264 and openat_restore_die rather than calling error directly.
49265 Don't include "error.h" or "exitfail.h"; they're no longer needed.
49267 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49268 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49271 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49272 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49273 int utc, int nanoseconds);
49275 date should not have to allocate a megabyte of virtual memory to
49276 handle a format argument like +%1048575T. When implemented with
49277 strftime, it must allocate such a buffer, use strftime to fill it
49278 in, print it, then free it.
49279 With fprintftime, it simply prints everything and exits.
49280 With no need for memory allocation, that's one fewer way to fail.
49281 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49282 optional field width, not before, so we accept %9:z, not %:9z.
49283 (my_strftime): Be sure to use L_('x') for literals.
49285 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49286 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49287 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49288 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49289 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49290 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49291 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49292 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49293 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49294 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49295 * lib/xgethostname.c, lib/xreadlink.c:
49296 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49298 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49299 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49300 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49301 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49302 and don't include <sys/file.h>).
49304 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
49306 Sync from coreutils.
49308 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49309 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49310 [!LDAV_DONE]: Avoid unused variable warning.
49312 2005-09-21 Bruno Haible <bruno@clisp.org>
49314 * lib/unicodeio.h (unicode_to_mb): New declaration.
49316 2005-09-20 Derek Price <derek@ximbiot.com>
49318 * lib/getaddrinfo.c: Don't include <netdb.h> included from
49321 2005-09-20 Bruno Haible <bruno@clisp.org>
49323 * gnulib-tool: Remove trailing slashes from the values specified for
49324 --source-base, --m4-base, --tests-base, --aux-dir.
49325 Suggested by Simon Josefsson <jas@extundo.com>.
49327 2005-09-20 Bruno Haible <bruno@clisp.org>
49329 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49330 func_modules_to_filelist, func_import, func_create_testdir): Make all
49331 sorting results locale-independent, so that gnulib-cache.m4 doesn't
49332 change when gnulib-tool is invoked in a different locale.
49334 2005-09-19 Simon Josefsson <jas@extundo.com>
49336 * m4/socklen.m4: Fix typo.
49338 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49340 Use a consistent style for including <config.h>.
49341 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49342 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49343 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49344 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49345 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49346 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49347 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49348 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49349 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49350 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49351 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49352 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49353 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49354 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49355 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49356 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49357 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49358 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49359 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49360 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49361 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49362 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49363 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49364 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49365 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49366 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49367 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49368 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49369 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49370 lib/xstrtoumax.c, lib/yesno.c:
49371 Standardize inclusion of config.h.
49372 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49373 lib/inttostr.h: Removed inclusion of config.h from header files.
49374 * lib/inttostr.c: Adjusted in-tree users.
49375 * lib/timespec.h: Remove superfluous warning to include config.h.
49376 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49377 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49378 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49379 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49380 config.h with HAVE_CONFIG_H.
49382 2005-09-19 Jim Meyering <jim@meyering.net>
49384 * modules/pathmax (License): Change to LGPL.
49386 2005-09-19 Derek Price <derek@ximbiot.com>
49388 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49390 2005-09-19 Bruno Haible <bruno@clisp.org>
49392 * gnulib-tool (import): Provide default for --tests-base.
49394 2005-09-19 Bruno Haible <bruno@clisp.org>
49396 * doc/quote.texi: New file, extracted from gnulib.texi.
49397 * doc/ctime.texi: New file, extracted from gnulib.texi.
49398 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49399 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49400 * doc/gnulib.texi: Include them.
49402 2005-09-18 Bruno Haible <bruno@clisp.org>
49405 * gnulib-tool (func_readlink): New function.
49406 (func_ln_if_changed): Use it.
49408 2005-09-18 Bruno Haible <bruno@clisp.org>
49410 * gnulib-tool: Support --with-tests also with --import.
49411 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49412 (func_import): Use variables $testsbase and $inctests. Emit a
49413 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49414 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49415 SUBDIRS += $testsdir.
49416 (func_create_testdir): Update.
49418 2005-09-18 Bruno Haible <bruno@clisp.org>
49420 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49421 instead of $dry_run.
49422 (func_cp_if_changed, func_mv_if_changed): Remove functions.
49423 (func_ln_if_changed): Don't handle dry-run here.
49424 (func_import): In dry-run mode, detect more precisely which actions
49425 would be performed, and don't use "...ing" verbs.
49427 2005-09-18 Bruno Haible <bruno@clisp.org>
49429 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49430 (func_import): Use join on two temporary files instead of three nested
49431 loops, in order to determine which files are new or old.
49433 2005-09-18 Bruno Haible <bruno@clisp.org>
49435 * gnulib-tool (func_import): Comment out code that spits out the
49436 new files with --dry-run.
49438 2005-09-18 Bruno Haible <bruno@clisp.org>
49440 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49442 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49444 * lib/stat-time.h: New file.
49445 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49446 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
49447 in a different way.
49448 (timespec_cmp): New function.
49449 * lib/utimecmp.c: Include stat-time.h.
49450 (SYSCALL_RESOLUTION): Depend on whether various struct stat
49451 members exist, not on the obsolescent ST_MTIM_NSEC.
49452 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49454 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49456 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49458 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49460 * MODULES.html.sh (File system functions): Add stat-time.
49461 * modules/stat-time: New file.
49462 * modules/timespec (Files): Remove m4/st_mtim.m4; this
49463 is now done in a different way, by the stat-time module.
49464 * modules/utimecmp (Depends-on): Add stat-time.
49466 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
49468 * m4/st_mtim.m4: Remove. Superseded by...
49469 * m4/stat-time.m4: New file.
49470 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49471 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49473 2005-09-15 Derek Price <derek@ximbiot.com>
49475 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49477 2005-09-15 Derek Price <derek@ximbiot.com>
49479 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49480 * lib/regex_internal.c: Ditto, using this...
49481 (__GNUC_PREREQ): ...new macro.
49482 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49484 (__GNUC_PREREQ): ...this new macro.
49486 * lib/strstr.h: Include string.h. Define strstr as a macro here.
49488 2005-09-15 Derek Price <derek@ximbiot.com>
49489 Paul Eggert <eggert@cs.ucla.edu>
49491 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49492 changes, consolidating in...
49493 * lib/regex_internal.h: ...this file.
49495 2005-09-13 Jim Meyering <jim@meyering.net>
49497 * lib/canon-host.c: Filter through gnu indent and reword comments
49499 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49501 2005-09-13 Derek Price <derek@ximbiot.com>
49503 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49505 Reported by Jim Meyering <jim@meyering.net>.
49507 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
49509 * lib/base64.c: Typo.
49510 (base64_encode): Put b64str in initialized data section.
49512 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
49514 Merge glibc and coreutils changes into gnulib, plus a few
49516 * lib/md5.c: Use #error rather than a string.
49517 (CYCLIC): New macro, from glibc source. Use it instead of rol.
49518 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49519 (__attribute__): Define to empty for non recent-GCC.
49520 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49521 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49522 Renamed from their non-__ counterparts, with new macros replacing
49523 them if not _LIBC. Add __THROW attribute.
49525 (struct md5_ctx): Align buffer if using GCC.
49526 * lib/sha1.h (struct sha1_ctx): Likewise.
49527 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
49528 The old name was backwards.
49529 (NOTSWAP): Remove; not used.
49530 (rol): New macro, moved here from md5.h.
49531 (sha1_process_block): Remove a FIXME that doesn't make sense.
49533 2005-09-12 Derek Price <derek@ximbiot.com>
49535 Return usable errors from canon-host.
49536 * lib/canon-host.h: New file.
49537 * lib/canon-host.c (canon_host): Wrap...
49538 (canon_host_r): ...this new function, which now relies exclusively on
49540 (ch_strerror): New function.
49541 (last_cherror): New global.
49542 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49544 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
49546 (freeaddrinfo): Free ai->ai_canonname when set.
49548 2005-09-12 Derek Price <derek@ximbiot.com>
49550 Make canon-host require getaddrinfo.
49551 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49552 AC_LIBSOURCE canon-host.h. Call...
49553 (gl_PREREQ_CANON_HOST): ...this new function, which requires
49555 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49557 2005-09-12 Derek Price <derek@ximbiot.com>
49559 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
49561 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
49563 2005-09-12 Derek Price <derek@ximbiot.com>
49565 * lib/gai_strerror.c: Include config.h when available. Include
49566 getaddrinfo.h before other headers to test interface.
49567 Reported by Larry Jones <lawrence.jones@ugs.com>.
49569 2005-09-12 Derek Price <derek@ximbiot.com>
49570 Paul Eggert <eggert@cs.ucla.edu>
49572 * modules/glob (Files): Add glob-libc.h.
49574 2005-09-12 Derek Price <derek@ximbiot.com>
49575 Paul Eggert <eggert@cs.ucla.edu>
49577 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49578 glob_.h, glob-libc.h.
49579 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49581 2005-09-12 Derek Price <derek@ximbiot.com>
49582 Paul Eggert <eggert@cs.ucla.edu>
49584 * lib/glob-libc.h: Renamed from glob_.h. The new version is
49585 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49586 protecting things that should be done only in gnulib contexts.
49587 * lib/glob_.h: New file, containing only the glob things needed for
49589 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
49590 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49591 (glob, globfree, glob_pattern_p): Now defined simply in terms of
49592 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49593 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49594 and to respect the namespace rules better.
49596 2005-09-08 Simon Josefsson <jas@extundo.com>
49598 * modules/socklen: New file.
49600 2005-09-08 Simon Josefsson <jas@extundo.com>
49602 * m4/socklen.m4: New file.
49604 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49606 * modules/utimens (Files): Add m4/utimbuf.m4, since
49607 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49608 Reported by Sergey Poznyakoff.
49610 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49612 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49613 definitions, since that's the preferred style in glibc.
49614 Fix a minor spacing issue, and update copyright notice to match
49617 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49619 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49621 2005-09-06 Simon Josefsson <jas@extundo.com>
49623 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49624 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
49626 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49628 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49631 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49633 * config/srclist.txt: Add glibc bug 1302.
49635 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
49637 Change bitset word type from unsigned int to unsigned long int,
49638 as this has better performance on typical 64-bit hosts.
49639 Port bitset code to hosts with unusual word sizes.
49640 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49641 (build_collating_symbol):
49642 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49643 argument is a bitset. This is merely a style issue, but it makes
49644 it clearer that an entire array is expected.
49645 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49646 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49647 Port to the case where bitset_word is not the same as unsigned int.
49648 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49649 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49651 * lib/regexec.c (check_dst_limits_calc_pos_1,
49652 check_subexp_matching_top):
49653 (build_trtable, group_nodes_into_DFAstates):
49655 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49656 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49657 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49658 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49659 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49660 * lib/regcomp.c (optimize_subexps, lower_subexp):
49661 Work even if bitset_word has holes in its bitwise representation.
49662 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49663 * lib/regexec.c (check_dst_limits_calc_pos_1,
49664 check_subexp_matching_top):
49666 * lib/regex_internal.c (re_string_reconstruct):
49667 Don't assume UCHAR_MAX == 255.
49668 * lib/regex_internal.h (bitset_set_all): Likewise.
49669 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49671 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
49672 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49674 (BITSET_WORD_MAX): New macro.
49675 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49676 (bitset_set_all, bitset_copy): Now inline functions, not macros.
49677 (bitset_empty, bitset_copy):
49678 Prefer sizeof (bitset) to multiplying it out ourselves.
49679 (bitset_not_merge): Remove; unused.
49680 (bitset_contain): Return bool, not unsigned int with one bit on.
49681 All callers changed.
49682 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49683 alignment than re_node_set; do this by defining a new internal
49684 type struct dests_alloc and using it to allocate memory.
49686 2005-09-05 Bruno Haible <bruno@clisp.org>
49688 * gnulib-tool (func_import): Fix comparison in handling of symbolic
49691 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
49693 * modules/size_max (Makefile.am): Add size_max.h
49695 2005-09-04 Derek Price <derek@ximbiot.com>
49697 * gnulib-tool (func_import): Fix reversed $symbolic logic.
49699 2005-09-03 Simon Josefsson <jas@extundo.com>
49701 * gnulib-tool: Fix typo.
49703 2005-09-03 Simon Josefsson <jas@extundo.com>
49705 * config/srclist.txt: Add glibc bug 1293.
49707 2005-09-03 Derek Price <derek@ximbiot.com>
49709 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49710 From Larry Jones <lawrence.jones@ugs.com>.
49712 2005-09-02 Simon Josefsson <jas@extundo.com>
49714 * modules/socklen: New file.
49716 2005-09-02 Simon Josefsson <jas@extundo.com>
49718 * modules/havelib: New module.
49720 * modules/gettext, modules/iconv, modules/lock, modules/readline:
49723 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49725 Check for arithmetic overflow when calculating sizes, to prevent
49726 some buffer-overflow issues. These patches are conservative, in the
49727 sense that when I couldn't determine whether an overflow was possible,
49728 I inserted a run-time check.
49729 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49731 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49732 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49733 (re_xnrealloc, re_x2nrealloc): New inline functions.
49734 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49735 parse_bracket_exp):
49736 (build_equiv_class, build_charclass): Check for arithmetic overflow
49737 in size expression calculations.
49738 * lib/regex_internal.c (re_string_realloc_buffers):
49739 (build_wcs_upper_buffer, re_node_set_add_intersect):
49740 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49741 (re_dfa_add_node, register_state): Likewise.
49742 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49743 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49744 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49745 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49747 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49749 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49750 m4/ulonglong.m4. Problem reported by Martin Lambers.
49752 2005-09-02 Bruno Haible <bruno@clisp.org>
49754 Support for lib vs. lib64 distinction on biarch platforms.
49755 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49756 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49757 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49759 2005-09-02 Bruno Haible <bruno@clisp.org>
49761 * gnulib-tool (import): In the other first-use case, provide defaults
49764 2005-09-02 Bruno Haible <bruno@clisp.org>
49766 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49767 patches not yet found in the latest gettext release.
49769 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49771 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49772 to avoid a collision with bits/local_lim.h in glibc.
49773 All uses changed. Problem reported by Dmitry V. Levin in
49774 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49776 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49777 bugs in int versus size_t comparisons.
49778 (re_string_context_at): Fix bug where the code assumed that
49781 Use bool where appropriate.
49782 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49783 All callers changed.
49784 (calc_eclosure_iter): Likewise, for ROOT arg.
49785 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49786 (build_charclass_op): Likewise, for NON_MATCH arg.
49787 * lib/regex_internal.c (re_string_allocate, re_string_construct):
49788 (re_string_construct_common): Likewise, for ICASE arg.
49789 * lib/regexec.c (re_search_2_stub, re_search_stub):
49790 Likewise, for RET_LEN arg.
49791 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49792 (set_regs): Likewise, for FL_BACKTRACK arg.
49793 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49794 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49795 (calc_eclosure_iter, parse_bracket_exp):
49796 Use bool for internal variables that are booleans.
49797 * lib/regexec.c (re_search_internal, check_matching,
49798 proceed_next_node):
49799 (set_regs, build_sifted_states, sift_states_bkref):
49800 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49801 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49802 (find_collation_sequence_value):
49804 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49805 (re_node_set_compare):
49806 Return bool, not int. All callers changed.
49807 * lib/regexec.c (check_halt_node_context, check_dst_limits):
49808 (build_trtable, check_node_accept): Likewise.
49809 * lib/regex_internal.h: Include stdbool.h.
49811 Fix bugs uncovered when converting to bool.
49812 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49813 failure instead of charging ahead blindly.
49814 * lib/regex_internal.c (register_state): Likewise.
49815 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49816 for freeing internal storage.
49817 (group_nodes_into_DFA_states): Use unsigned int, not int, for
49818 bitset pieces used as boolean, to avoid undefined behavior
49819 on hosts that do int overflow checking.
49821 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49823 * config/srclist.txt: Add glibc bugs 1285-1287.
49825 2005-09-01 Jim Meyering <jim@meyering.net>
49827 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49828 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49829 Require gl_STAT_MACROS, too.
49831 2005-09-01 Bruno Haible <bruno@clisp.org>
49833 * gnulib-tool (import): In the first-use case, provide defaults.
49835 2005-09-01 Bruno Haible <bruno@clisp.org>
49837 * gnulib-tool (func_import): Remove the .tmp files.
49839 2005-09-01 Bruno Haible <bruno@clisp.org>
49841 * gnulib-tool (func_import): Fix handling of symbolic links.
49843 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49845 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49846 old glibc regex code mishandles strings longer than 2**31 bytes.
49847 This patch fixes this when the regex code is used in gnulib
49848 (i.e., outside glibc).
49850 This patch should not affect the use of the regex code inside
49851 glibc. No doubt this problem also needs to be handled for glibc
49852 as well, but the result will be an incompatible change to the
49853 glibc ABI, and the old ABI will have to be supported too. That
49854 can be the the subject for another patch.
49856 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49857 governing whether the rest of this patch is active. By default,
49858 the macro is disabled and the patch has no effect.
49859 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49860 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49861 (struct re_pattern_buffer, re_search, re_search_2, re_match):
49862 (re_match_2, re_set_registers): Use the new types.
49863 * lib/regex_internal.h (Idx, re_hashval_t): New types.
49864 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49866 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49867 (re_string_context_at, bin_tree_t, re_dfastate_t):
49868 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49869 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49870 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49871 (re_string_char_size_at, re_string_wchar_at):
49872 (re_string_elem_size_at):
49873 Use the new types and macros to port to 64-bit hosts.
49874 Use unsigned types for internal values, so that the code
49875 mostly works even for arrays larger than SSIZE_MAX.
49876 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49877 (search_duplicated_node, calc_eclosure_iter, fetch_number):
49878 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49879 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49880 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49881 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49882 (calc_inveclosure, parse_dup_op, build_range_exp):
49883 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49884 (fetch_number, create_token_tree, mark_opt_subexp):
49886 * lib/regex_internal.c (re_string_construct_common,
49887 create_ci_newstate):
49888 (create_cd_newstate, re_string_allocate, re_string_construct):
49889 (re_string_realloc_buffers, build_wcs_upper_buffer):
49890 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49891 (re_string_reconstruct, re_string_peek_byte_case):
49892 (re_string_fetch_byte_case, re_string_context_at):
49893 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49894 (re_node_set_init_copy, re_node_set_add_intersect):
49895 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49896 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49897 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49898 (re_acquire_state, re_acquire_state_context, register_state):
49900 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49901 search_cur_bkref_entry):
49902 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49903 (re_search_internal, re_search_2_stub, re_search_stub)
49904 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49905 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49906 (update_cur_sifted_state, check_dst_limits):
49907 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49908 (check_subexp_limits, sift_states_bkref, merge_state_array):
49909 (check_subexp_matching_top, get_subexp, get_subexp_sub):
49910 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49911 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49912 (expand_bkref_cache, check_node_accept_bytes):
49913 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49914 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49915 (acquire_init_state_context, check_halt_node_context):
49916 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49917 (sift_states_backward, clean_state_log_if_needed):
49918 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49919 (find_recover_state, transit_state_sb, transit_state_mb):
49920 (transit_state_bkref, build_trtable, match_ctx_clean):
49922 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49923 to work around an assumption that REG_MISSING is negative.
49925 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49926 (seek_collating_symbol_entry) [defined _LIBC]:
49927 (lookup_collation_sequence_value) [defined _LIBC]:
49928 (build_range_exp, build_collating_symbol) [defined _LIBC]:
49929 Use prototypes rather than old-style function definitions.
49930 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49931 (transit_state_sb) [0]:
49932 (find_collation_sequence_value) [defined _LIBC]: Likewise.
49934 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49937 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49938 (optimize_subexps, lower_subexp):
49939 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49940 since the signed shift might overflow. Use 1u<<31 instead.
49941 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49943 * lib/regexec.c (check_dst_limits_calc_pos_1,
49944 check_subexp_matching_top): Likewise.
49946 * lib/regcomp.c (optimize_subexps, lower_subexp):
49947 Use CHAR_BIT rather than 8, for clarity.
49948 * lib/regexec.c (check_dst_limits_calc_pos_1):
49949 (check_subexp_matching_top): Likewise.
49950 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49951 have to worry about portability issues when shifting it left.
49952 Remove no-longer-needed test for table_size > 0.
49953 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49954 in a word, as the resulting behavior is undefined.
49955 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49956 in one case, a <= should have been an <, and in another case the
49957 whole test was missing.
49958 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
49959 the standard name CHAR_BIT.
49960 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49961 this is not true on one's complement and signed-magnitude hosts.
49963 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49965 (struct re_dfa_t): Remove unused member states_alloc.
49966 * lib/regcomp.c (init_dfa): Don't initialize unused members.
49968 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49970 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49971 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
49972 and large-file glibc and in 32-bit large-file Solaris.
49974 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49976 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49977 lengths fit in regoff_t; this isn't true if regoff_t is the same
49979 * lib/regex.c (re_search_internal): 5th arg is LAST_START
49980 (= START + RANGE) instead of RANGE. This avoids overflow
49981 problems when regoff_t is the same width as size_t.
49982 All callers changed.
49983 (re_search_2_stub): Check for overflow when adding the
49984 sizes of the two strings.
49985 (re_search_stub): Check for overflow when adding START
49986 to RANGE; if it occurs, substitute the extreme value.
49988 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49990 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49992 2005-08-31 Jim Meyering <jim@meyering.net>
49994 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49995 a pointer-to-const.
49996 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49997 (register_state): Likewise.
49998 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49999 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50000 (group_nodes_into_DFAstates): Likewise.
50002 2005-08-31 Jim Meyering <jim@meyering.net>
50004 * check-module: Add a FIXME comment.
50006 2005-08-31 Eric Blake <ebb9@byu.net>
50008 * modules/unistd-safer (Files): Add unistd--.h.
50009 * modules/stdio-safer (Files): Add stdio--.h.
50011 2005-08-31 Derek Price <derek@ximbiot.com>
50013 * lib/getdelim.c (getdelim): Return EOF on EOF.
50014 Reported by Larry Jones <lawrence.jones@ugs.com>.
50016 2005-08-31 Bruno Haible <bruno@clisp.org>
50018 Avoid unnecessary diffs in the generated lib/Makefile.am.
50019 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50020 the generated files.
50021 (func_import): Don't set cmd.
50023 2005-08-31 Bruno Haible <bruno@clisp.org>
50025 * lib/strstr.c: Include <stddef.h>, for NULL.
50026 * lib/strcasestr.c: Likewise.
50027 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50029 2005-08-31 Bruno Haible <bruno@clisp.org>
50031 * gnulib-tool: New option --macro-prefix.
50032 (func_import): Use macro_prefix.
50033 (import): Handle option --macro-prefix.
50035 2005-08-31 Bruno Haible <bruno@clisp.org>
50037 * gnulib-tool (import): Rename most ac_* variables to cached_*.
50038 Also use new variables cached_lgpl, cached_libtool.
50040 2005-08-31 Bruno Haible <bruno@clisp.org>
50042 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50043 always instantiating them.
50045 2005-08-31 Bruno Haible <bruno@clisp.org>
50047 * gnulib-tool (func_import): Read the previous cached settings
50048 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50049 earlier added by gnulib but are now dropped. Warn when a gnulib file
50050 overwrites a non-gnulib file.
50052 2005-08-31 Bruno Haible <bruno@clisp.org>
50054 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50055 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50056 projects that don't keep autogenerated files in CVS. Put into
50057 actioncmd only the specified modules, not the transitive closure.
50059 2005-08-31 Bruno Haible <bruno@clisp.org>
50061 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50062 Create directories that shall be filled.
50063 (import): Don't look for gl_* macros in configure.ac. Recurse across
50064 all directories containing a gnulib-cache.m4 files, if meaningful.
50066 2005-08-31 Bruno Haible <bruno@clisp.org>
50068 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50069 (import): Set seen_libtool when we see gl_LIBTOOL.
50071 2005-08-31 Bruno Haible <bruno@clisp.org>
50073 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50074 declaration macro definitions from generated gnulib.m4.
50076 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
50078 * lib/iconvme.h: Add prototype for iconv_alloc.
50080 2005-08-29 Simon Josefsson <jas@extundo.com>
50082 * lib/iconvme.c: Fix errno.
50084 2005-08-29 Bruno Haible <bruno@clisp.org>
50086 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50087 that it works when the directory contains spaces.
50089 2005-08-29 Bruno Haible <bruno@clisp.org>
50091 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50093 2005-08-29 Bruno Haible <bruno@clisp.org>
50095 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50098 2005-08-29 Bruno Haible <bruno@clisp.org>
50099 and Stepan Kasal <kasal@ucw.cz>
50101 * check-module: If more parameters are given, check each of them
50102 separately; add more exceptions, as noted by Jim Meyering.
50103 (check_module): New procedure.
50104 (%exempt_header): Now contains all exceptions.
50106 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
50108 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50110 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
50112 * lib/iconvme.c: Split iconv_string into iconv_alloc.
50114 2005-08-28 Bruno Haible <bruno@clisp.org>
50116 * m4/gnulib-tool.m4: New file.
50118 2005-08-27 Jim Meyering <jim@meyering.net>
50120 * modules/unistd-safer (Files): Add pipe-safer.c.
50121 * modules/fcntl-safer (Files): Add creat-safer.c.
50123 2005-08-27 Jim Meyering <jim@meyering.net>
50125 * m4/stdlib-safer.m4: New file. From coreutils.
50126 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50127 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50128 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50129 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50130 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50132 2005-08-27 Jim Meyering <jim@meyering.net>
50134 * lib/fopen-safer.c: Merge minor changes from coreutils.
50135 * lib/dup-safer.c: Likewise.
50136 * lib/fd-safer.c: Likewise.
50138 Merge from coreutils.
50139 * lib/stdio--.h: New file.
50140 * lib/stdlib--.h: New file.
50141 * lib/mkstemp-safer.c: New file.
50143 GNU tar needs these.
50144 * lib/pipe-safer.c: New file.
50145 * lib/creat-safer.c: New file.
50146 * lib/fcntl--.h (creat): Define to creat_safer.
50147 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50148 * lib/unistd--.h (pipe): Define to pipe_safer.
50149 * lib/unistd-safer.h: Declare pipe_safer.
50151 2005-08-26 Simon Josefsson <jas@extundo.com>
50153 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50154 Haible <bruno@clisp.org>.
50156 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
50158 * lib/regex_internal.h: Remove all references to
50159 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50161 (bitset_not, bitset_merge, bitset_not_merge):
50162 (bitset_mask, re_string_allocate, re_string_construct):
50163 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50164 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50165 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50166 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50167 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50168 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50169 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50170 (re_acquire_state_context):
50171 Remove unnecessary forward decls.
50172 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50173 Put __attribute at function definition,
50174 now that the function decl has been removed.
50175 * lib/regex_internal.c (re_string_peek_byte_case):
50176 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50179 2005-08-25 Stepan Kasal <kasal@ucw.cz>
50181 * m4/regex.m4: Add AC_PREREQ(2.50).
50182 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50184 2005-08-25 Simon Josefsson <jas@extundo.com>
50186 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50189 2005-08-25 Simon Josefsson <jas@extundo.com>
50191 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
50192 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
50193 GLIBC specific code.
50195 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50197 Make regex safe for g++. This fixes one real bug (an "err"
50198 that should have been "*err"). g++ problem reported by
50200 * lib/regex_internal.h (re_calloc): New macro, consistent with
50201 re_malloc etc. All callers of calloc changed to use re_calloc.
50202 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50203 not int. All callers changed.
50204 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50205 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50206 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50207 (find_recover_state): Change "err" to "*err"; this fixes what
50208 appears to be a real bug.
50209 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50212 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50214 * modules/regex (Depends-on): Add malloc, since the code
50215 assumes that !malloc(0) means failure.
50217 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50219 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50221 alloca modernization/simplification for regex.
50222 * lib/regex.c: Remove portability cruft for alloca. This no longer
50223 needs to be at the start of the file, and can be moved into
50224 regex_internal.h and simplified.
50225 * lib/regex_internal.h: Include <alloca.h>.
50226 (__libc_use_alloca) [!defined _LIBC]: New macro.
50227 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50228 now works outside glibc.
50230 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50232 * config/srclist.txt: Add glibc bugs 1241, 1245.
50234 2005-08-25 Jim Meyering <jim@meyering.net>
50236 * lib/open-safer.c: Include <config.h>.
50237 Otherwise, we'd lose LARGEFILE support in any file using
50240 2005-08-25 Bruno Haible <bruno@clisp.org>
50242 * m4/minmax.m4: Require autoconf 2.52.
50243 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50244 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50245 alternatives of translit over the alphabet.
50246 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50248 2005-08-24 Simon Josefsson <jas@extundo.com>
50250 * tests/test-getpass.c: New file.
50252 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50254 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50255 for GNU regex features.
50257 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50259 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50260 * lib/regex.h (regerror): Likewise.
50262 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50263 requires this. (The code never needed it.)
50265 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50266 All uses of recently-renamed identifiers changed to use the new,
50267 POSIX-compliant names. The code will build and run just fine
50268 without these changes, but it's better to eat our own dog food
50269 and use the standard-conforming names.
50271 * lib/regex.h: Fix a multitude of POSIX name space violations.
50272 These changes have an effect only for programs that define
50273 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50274 do not change anything for programs compiled in the normal way.
50275 Also, there is no effect on the ABI.
50277 (_REGEX_SOURCE): New macro.
50278 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50279 defined and _GNU_SOURCE is not; this fixes a name space violation.
50281 Rename the following macros to obey POSIX requirements.
50282 The old names are still visible as macros if _REGEX_SOURCE is defined.
50283 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50284 RE_BACKSLASH_ESCAPE_IN_LISTS.
50285 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50286 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50287 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50288 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50289 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50290 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50291 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50292 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50293 (REG_INTERVALS): renamed from RE_INTERVALS.
50294 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50295 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50296 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50297 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50298 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50299 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50300 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50301 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50302 RE_UNMATCHED_RIGHT_PAREN_ORD.
50303 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50304 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50305 (REG_DEBUG): renamed from RE_DEBUG.
50306 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50307 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
50308 unusual, since we can't clash with the POSIX REG_ICASE.
50309 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50310 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50311 (REG_NO_SUB): renamed from RE_NO_SUB.
50312 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50313 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50314 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50315 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50316 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50317 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50318 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50319 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50320 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50321 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50322 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50323 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50324 RE_SYNTAX_POSIX_MINIMAL_BASIC.
50325 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50326 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50327 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50328 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
50329 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50330 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50331 (REG_FIXED): Renamed from REGS_FIXED.
50332 (REG_NREGS): Renamed from RE_NREGS.
50334 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50335 of other REG_* macros, since POSIX says the user is allowed to
50336 #undef these macros selectively.
50338 (reg_errcode_t): Update comment stating what other tables need
50341 Rename the following enum values to obey POSIX requirements.
50342 The old names are still visible as macros.
50343 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
50344 is not defined, since GNU is supposed to be a superset of POSIX as
50345 much as possible, and since we want reg_errcode_t to be a signed
50346 type for implementation consistency.
50347 (_REG_NOERROR): Renamed from REG_NOERROR.
50348 (_REG_NOMATCH): Renamed from REG_NOMATCH.
50349 (_REG_BADPAT): Renamed from REG_BADPAT.
50350 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50351 (_REG_ECTYPE): Renamed from REG_ECTYPE.
50352 (_REG_EESCAPE): Renamed from REG_EESCAPE.
50353 (_REG_ESUBREG): Renamed from REG_ESUBREG.
50354 (_REG_EBRACK): Renamed from REG_EBRACK.
50355 (_REG_EPAREN): Renamed from REG_EPAREN.
50356 (_REG_EBRACE): Renamed from REG_EBRACE.
50357 (_REG_BADBR): Renamed from REG_BADBR.
50358 (_REG_ERANGE): Renamed from REG_ERANGE.
50359 (_REG_ESPACE): Renamed from REG_ESPACE.
50360 (_REG_BADRPT): Renamed from REG_BADRPT.
50361 (_REG_EEND): Renamed from REG_EEND.
50362 (_REG_ESIZE): Renamed from REG_ESIZE.
50363 (_REG_ERPAREN): Renamed from REG_ERPAREN.
50364 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50365 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50366 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50367 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50369 (_REG_RE_NAME, _REG_RM_NAME): New macros.
50370 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
50371 changed. But support the old name if the new one is not defined
50372 and if _REGEX_SOURCE.
50374 Change the following member names in struct re_pattern_buffer.
50375 The old names are still supported if !_REGEX_SOURCE.
50376 The new names are always supported, regardless of _REGEX_SOURCE.
50377 (re_buffer): Renamed from buffer.
50378 (re_allocated): Renamed from allocated.
50379 (re_used): Renamed from used.
50380 (re_syntax): Renamed from syntax.
50381 (re_fastmap): Renamed from fastmap.
50382 (re_translate): Renamed from translate.
50383 (re_can_be_null): Renamed from can_be_null.
50384 (re_regs_allocated): Renamed from regs_allocated.
50385 (re_fastmap_accurate): Renamed from fastmap_accurate.
50386 (re_no_sub): Renamed from no_sub.
50387 (re_not_bol): Renamed from not_bol.
50388 (re_not_eol): Renamed from not_eol.
50389 (re_newline_anchor): Renamed from newline_anchor.
50391 Change the following member names in struct re_registers.
50392 The old names are still supported if !_REGEX_SOURCE.
50393 The new names are always supported, regardless of _REGEX_SOURCE.
50394 (rm_num_regs): Renamed from num_regs.
50395 (rm_start): Renamed from start.
50396 (rm_end): Renamed from end.
50398 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50399 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50400 Prepend __ to parameter names.
50402 Undo yesterday's changes.
50404 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50406 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50407 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
50410 2005-08-24 Jim Meyering <jim@meyering.net>
50412 Sync from coreutils.
50413 * m4/fcntl-safer.m4: New file.
50415 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50416 and object files for this module.
50418 2005-08-24 Jim Meyering <jim@meyering.net>
50420 Sync from coreutils.
50421 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50423 2005-08-24 Jim Meyering <jim@meyering.net>
50425 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50426 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50428 2005-08-24 Jim Meyering <jim@meyering.net>
50430 * modules/fcntl-safer: New module.
50431 * modules/fts (Depends-on): Add fcntl-safer.
50432 * MODULES.html.sh (File descriptor based Input/Output):
50435 2005-08-24 Bruno Haible <bruno@clisp.org>
50437 Support for unit test modules.
50438 * modules/README: Mention tests modules.
50439 * modules/TEMPLATE-TESTS: New file.
50440 * gnulib-tool: New options --extract-tests-module, --with-tests and
50441 --tests-base (unused for the moment).
50442 (testsbase, inctests): New variables.
50443 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50444 (func_verify_module): Exclude TEMPLATE-TESTS.
50445 (func_verify_nontests_module, func_verify_tests_module): New functions.
50446 (func_get_dependencies): Add implicit dependency for tests modules.
50447 (func_get_tests_module): New function.
50448 (func_modules_transitive_closure): When --with-tests was specified,
50449 include the unit tests as well, unless explicitly avoided.
50450 (func_emit_lib_Makefile_am): Ignore the tests modules here.
50451 (func_emit_tests_Makefile_am): New function.
50452 (func_create_testdir): When --with-tests was specified, emit a
50454 * MODULES.html.sh (Future developments): Update.
50456 2005-08-24 Bruno Haible <bruno@clisp.org>
50458 * modules/tls-tests: New file.
50459 * tests/test-tls.c: New file, from GNU gettext.
50461 2005-08-24 Bruno Haible <bruno@clisp.org>
50463 * modules/lock-tests: New file.
50464 * tests/test-lock.c: New file, from GNU gettext.
50466 2005-08-24 Bruno Haible <bruno@clisp.org>
50468 * lib/lock.h: Add multiple inclusion guard.
50469 * lib/tls.h: Add multiple inclusion guard.
50471 2005-08-24 Bruno Haible <bruno@clisp.org>
50473 * gnulib-tool: Add support for the --aux-dir option to
50474 --create-testdir, --create-megatestdir, --test, --megatest.
50475 (func_create_testdir, func_create_megatestdir): Optionally emit a
50476 AC_CONFIG_AUX_DIR directive.
50477 (create-testdir, create-megatestdir, test, megatest): Provide a
50478 default value for $auxdir.
50480 2005-08-24 Bruno Haible <bruno@clisp.org>
50482 * gnulib-tool (import): Use compound statement instead of subshell
50485 2005-08-24 Bruno Haible <bruno@clisp.org>
50487 * gnulib-tool (import): Change --aux-dir default to "build-aux".
50489 2005-08-24 Bruno Haible <bruno@clisp.org>
50491 * gnulib-tool (func_version): Update.
50493 2005-08-24 Bruno Haible <bruno@clisp.org>
50495 * gnulib-tool (func_import, func_create_testdir,
50496 func_create_megatestdir): Quote all autoconf macro arguments.
50498 2005-08-24 Bruno Haible <bruno@clisp.org>
50500 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50501 option --force, because --force causes the aclocal.m4 of each
50502 subdirectory to be newer than the corresponding config.h.in.
50504 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50506 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50507 All contents moved to gl_REGEX.
50508 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50509 assume that it does.
50511 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50513 * lib/regex.h (REG_NOSYS)
50514 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50515 Define, since POSIX requires it as of 2001.
50517 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50518 New private symbol, used to keep the enum signed in all cases.
50519 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50521 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50523 * lib/regex_internal.c (re_string_skip_chars, register_state):
50525 Remove forward decls; no longer needed now that we use prototypes.
50526 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50527 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50528 (clean_state_log_if_needed): Likewise.
50530 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50532 * config/srclist.txt: Add glibc bugs 1231-1233.
50534 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50536 Fix problems reported by Sam Steingold in
50537 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50538 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50539 assumed that reg_errcode_t is a signed type, which is not
50540 necessarily true if _XOPEN_SOURCE is not defined.
50541 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50542 since some compilers warn about it otherwise.
50544 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50546 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50547 (init_word_char, create_initial_state, duplicate_node_closure):
50548 (fetch_token, peek_token_bracket, build_range_exp):
50549 (build_collating_symbol): Remove forward decls; no longer needed
50550 now that we use prototypes.
50553 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50554 (re_compile_fastmap_iter, regcomp, regerror, regfree):
50555 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50556 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50557 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50558 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50559 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50560 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50561 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50562 (build_range_exp, build_collating_symbol, parse_bracket_exp):
50563 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50564 (build_charclass, build_charclass_op, fetch_number, create_tree):
50565 (create_token_tree, mark_opt_subexp, duplicate_tree):
50566 Use prototypes rather than old-style definitions.
50568 * lib/regex_internal.c:
50569 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50570 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50571 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50572 (re_string_reconstruct, re_string_peek_byte_case):
50573 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50574 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50575 (re_node_set_init_copy, re_node_set_add_intersect):
50576 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50577 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50578 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50579 (re_acquire_state, re_acquire_state_context, register_state):
50580 (create_ci_newstate, create_cd_newstate, free_state):
50582 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50584 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50585 (re_search_internal, prune_impossible_nodes):
50586 (acquire_init_state_context, check_matching, static):
50587 (check_halt_node_context, check_halt_state_context, proceed_next_node):
50588 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50589 (update_regs, sift_states_backward, build_sifted_states):
50590 (clean_state_log_if_needed, merge_state_array):
50591 (update_cur_sifted_state, add_epsilon_src_nodes):
50592 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50593 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50594 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50595 (find_recover_state, check_subexp_matching_top, transit_state_mb):
50596 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50597 (check_arrival, check_arrival_add_next_nodes):
50598 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50599 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50600 (check_node_accept_bytes, check_node_accept, extend_buffers):
50601 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50602 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50606 * lib/regex_internal.h:
50607 (re_string_allocate, re_string_construct, re_string_reconstruct):
50608 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50609 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50610 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50611 (re_string_context_at, re_string_peek_byte_case):
50612 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50613 is defined, since we now use prototypes always.
50615 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
50616 C89 or better. All uses removed.
50618 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50620 * config/srclist.txt: Add glibc bugs 1220-1227.
50622 2005-08-20 Jim Meyering <jim@meyering.net>
50624 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50625 of unused local, dfa.
50627 2005-08-20 Bruno Haible <bruno@clisp.org>
50629 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50631 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50633 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50634 (re_node_set_insert_last, re_dfa_add_node):
50635 Rename local variables to avoid GCC shadowing warnings.
50637 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50639 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50640 [defined lint]: Suppress bogus uninitialized-variable warnings.
50642 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50643 and let the caller return REG_ESPACE if out of space. This
50644 removes an uninitialied-variable warning with GCC 4.0.1, and also
50645 avoids taking the address of a local variable. All callers
50648 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50650 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50651 $LIBCSRC/posix/regexec.c.
50652 Add glibc bug 1217 for regcomp.c.
50654 2005-08-19 Jim Meyering <jim@meyering.net>
50656 * lib/regexec.c (proceed_next_node): Redo local variables to
50657 avoid GCC shadowing warnings.
50659 2005-08-18 Bruno Haible <bruno@clisp.org>
50661 * lib/strstr.c (strstr): Fix return value in multibyte case.
50662 * lib/strcasestr.c (strcasestr): Likewise.
50664 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
50666 * lib/regex.h: Remove useless space-before-tab. From coreutils.
50668 2005-08-17 Jim Meyering <jim@meyering.net>
50670 Make the %s format (seconds since the epoch) work for a negative
50671 number and when used with a zero-padded field width, e.g. %015s.
50673 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50674 label so that it precedes the code to set `digits'. Otherwise,
50675 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
50676 print `00-22'. Now, it prints `-0022', as it should.
50678 2005-08-17 Bruno Haible <bruno@clisp.org>
50680 * modules/strstr (Files): Add m4/mbrtowc.m4.
50681 (Depends-on): Add mbuiter.
50683 2005-08-17 Bruno Haible <bruno@clisp.org>
50685 * modules/strcasestr: New file.
50686 * MODULES.html.sh (String handling, based on ANSI C 89): Add
50689 2005-08-17 Bruno Haible <bruno@clisp.org>
50691 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50693 2005-08-17 Bruno Haible <bruno@clisp.org>
50695 * modules/mbuiter: New file.
50696 * MODULES.html.sh (Extended multibyte and wide character utilities):
50699 2005-08-17 Bruno Haible <bruno@clisp.org>
50701 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50702 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50704 2005-08-17 Bruno Haible <bruno@clisp.org>
50706 * m4/strcasestr.m4: New file.
50708 2005-08-17 Bruno Haible <bruno@clisp.org>
50710 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50711 * lib/strstr.c: Completely rewritten, with multibyte locale support.
50713 2005-08-17 Bruno Haible <bruno@clisp.org>
50715 * lib/strcasestr.h: New file.
50716 * lib/strcasestr.c: New file.
50718 2005-08-17 Bruno Haible <bruno@clisp.org>
50720 * lib/strcasecmp.c: Use mbuiter.h.
50722 2005-08-17 Bruno Haible <bruno@clisp.org>
50724 * lib/mbuiter.h: New file.
50726 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
50728 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50729 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
50730 and gl_GETOPT are both invoked via different paths (as happens
50731 with GNU tar CVS because it uses both argp and getopt), the former
50734 2005-08-16 Bruno Haible <bruno@clisp.org>
50736 * modules/tls: New file.
50737 * MODULES.html.sh (Multithreading): Add tls.
50739 2005-08-16 Bruno Haible <bruno@clisp.org>
50741 * modules/strnlen1: New file.
50742 * MODULES.html.sh (String handling): Add strnlen1.
50744 2005-08-16 Bruno Haible <bruno@clisp.org>
50746 * modules/strcase (Files): Add m4/mbrtowc.m4.
50747 (Depends-on): Add strnlen1, mbchar.
50749 2005-08-16 Bruno Haible <bruno@clisp.org>
50751 * modules/mbiter: New file.
50752 * MODULES.html.sh (Extended multibyte and wide character utilities):
50755 2005-08-16 Bruno Haible <bruno@clisp.org>
50757 * modules/mbfile: New file.
50758 * MODULES.html.sh (Extended multibyte and wide character utilities):
50761 2005-08-16 Bruno Haible <bruno@clisp.org>
50763 * modules/mbchar: New file.
50764 * MODULES.html.sh (Extended multibyte and wide character utilities):
50767 2005-08-16 Bruno Haible <bruno@clisp.org>
50769 * m4/tls.m4: New file, from GNU gettext.
50771 2005-08-16 Bruno Haible <bruno@clisp.org>
50773 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50775 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50777 2005-08-16 Bruno Haible <bruno@clisp.org>
50779 * m4/mbiter.m4: New file.
50781 2005-08-16 Bruno Haible <bruno@clisp.org>
50783 * m4/mbfile.m4: New file.
50785 2005-08-16 Bruno Haible <bruno@clisp.org>
50787 * m4/mbchar.m4: New file.
50789 2005-08-16 Bruno Haible <bruno@clisp.org>
50791 * lib/tls.h: New file, from GNU gettext.
50792 * lib/tls.c: New file, from GNU gettext.
50794 2005-08-16 Bruno Haible <bruno@clisp.org>
50796 * lib/strnlen1.h: New file.
50797 * lib/strnlen1.c: New file.
50799 2005-08-16 Bruno Haible <bruno@clisp.org>
50801 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50802 (mbi_init): Update.
50803 (mbi_avail, mbi_advance): Let the iteration end before the terminating
50804 NUL byte, not after it.
50806 2005-08-16 Bruno Haible <bruno@clisp.org>
50808 * lib/strcase.h (strcasecmp): Add note in comments.
50809 * lib/strncasecmp.c: Use code from strcasecmp.c.
50810 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50811 (strcasecmp): Work correctly in multibyte locales.
50813 2005-08-16 Bruno Haible <bruno@clisp.org>
50815 * lib/mbiter.h: New file.
50817 2005-08-16 Bruno Haible <bruno@clisp.org>
50819 * lib/mbfile.h: New file.
50821 2005-08-16 Bruno Haible <bruno@clisp.org>
50823 * lib/mbchar.h: New file.
50824 * lib/mbchar.c: New file.
50826 2005-08-16 Bruno Haible <bruno@clisp.org>
50828 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50829 the valid ones. Makes the comparison operations transitive:
50830 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50831 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50833 2005-08-15 Simon Josefsson <jas@extundo.com>
50835 * modules/ssize_t (License): Change to 'unlimited'.
50837 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50839 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
50841 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50842 Add comments for each pending glibc patch.
50844 2005-08-15 Bruno Haible <bruno@clisp.org>
50846 * lib/regex.h (__restrict_arr): Don't define to __restrict if
50847 __cplusplus is defined.
50849 2005-08-14 Jim Meyering <jim@meyering.net>
50851 Sync from coreutils.
50853 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50854 Use the hash-table-based cycle-detection code not just when
50855 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50856 Reported by James Youngman in
50857 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50858 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50859 FTS_TIGHT_CYCLE_CHECK.
50860 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50861 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50863 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50864 * lib/fts.c (fd_safer): Remove decl.
50865 Include fcntl--.h rather than unistd-safer.h
50866 (fts_safe_changedir): Don't call fd_safer; no longer needed
50867 now that we include fcntl--.h.
50869 2005-08-12 Simon Josefsson <jas@extundo.com>
50871 * modules/getndelim2: Use ssize_t module.
50872 * modules/getnline: Likewise.
50873 * modules/safe-read: Likewise.
50874 * modules/xreadlink: Likewise.
50876 * modules/ssize_t: New file.
50878 2005-08-12 Simon Josefsson <jas@extundo.com>
50880 * m4/readline.m4: Look for termcap, curses or ncurses if required.
50882 2005-08-12 Simon Josefsson <jas@extundo.com>
50884 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50887 2005-08-12 Simon Josefsson <jas@extundo.com>
50889 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50890 readline, getdelim and check_version.
50891 (Support for systems lacking ISO C 99: Sizes of integer types):
50894 2005-08-12 Bruno Haible <bruno@clisp.org>
50896 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50898 2005-08-11 Simon Josefsson <jas@extundo.com>
50900 * modules/readline: New file.
50902 * modules/strnlen (Files): Add strnlen.h.
50904 2005-08-11 Simon Josefsson <jas@extundo.com>
50906 * m4/readline.m4: New file.
50908 2005-08-11 Simon Josefsson <jas@extundo.com>
50910 * lib/readline.h, readline.c: New file.
50912 2005-08-11 Simon Josefsson <jas@extundo.com>
50914 * doc/gnulib.texi (Initial import, Finishing touches): Mention
50917 2005-08-11 Bruno Haible <bruno@clisp.org>
50919 * lib/strnlen.h (strnlen): Change parameter name to match comment.
50921 2005-08-10 Stepan Kasal <kasal@ucw.cz>
50923 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50925 2005-08-10 Simon Josefsson <jas@extundo.com>
50927 * tests/test-iconvme.c: New file.
50929 2005-08-10 Simon Josefsson <jas@extundo.com>
50931 * m4/strnlen.m4: New file.
50933 * m4/strndup.m4: Don't check for strnlen declaration, done in
50936 2005-08-10 Simon Josefsson <jas@extundo.com>
50938 * lib/strndup.c: Use strnlen.h.
50940 * lib/strnlen.h: New file.
50942 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
50946 2005-08-02 Simon Josefsson <jas@extundo.com>
50948 * modules/readline: New file.
50950 2005-08-02 Simon Josefsson <jas@extundo.com>
50952 * modules/getdelim: New file.
50954 * modules/getline: Rewrite, don't use getndelim2.
50956 2005-08-02 Simon Josefsson <jas@extundo.com>
50958 * m4/getline.m4: Separate out getdelim stuff into separate module.
50960 * m4/getdelim.m4: New file.
50962 2005-08-02 Simon Josefsson <jas@extundo.com>
50964 * lib/getline.h, getline.c: Rewrite.
50966 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50968 2005-07-31 Bruno Haible <bruno@clisp.org>
50970 * lib/lock.h (gl_lock_initializer): New macro.
50971 (gl_lock_define_initialized): Use it.
50972 (gl_rwlock_initializer): New macro.
50973 (gl_rwlock_define_initialized): Use it.
50974 (gl_recursive_lock_initializer): New macro.
50975 (gl_recursive_lock_define_initialized): Use it.
50977 2005-07-30 Karl Berry <karl@gnu.org>
50979 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50980 Report from Ben Pfaff, regarding getopt.
50982 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
50984 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50986 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50987 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
50988 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50989 (gl_GETOPT): Use the new macros. Most of the implementation
50990 is moved to the new macros. This is for programs like Emacs
50991 that don't want all the functionality of gl_GETOPT.
50993 2005-07-26 Bruno Haible <bruno@clisp.org>
50995 * m4/lock.m4: Update from GNU gettext.
50997 2005-07-26 Bruno Haible <bruno@clisp.org>
50999 * lib/lock.h: Update from GNU gettext.
51000 * lib/lock.c: Update from GNU gettext.
51002 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
51004 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51005 obsolescent AC_TRY_RUN. Include the default includes files, for
51008 2005-07-24 Bruno Haible <bruno@clisp.org>
51010 * modules/visibility: New file.
51011 * MODULES.html.sh (Misc): Add visibility.
51013 2005-07-24 Bruno Haible <bruno@clisp.org>
51015 * m4/visibility.m4: New file.
51017 2005-07-24 Bruno Haible <bruno@clisp.org>
51019 * doc/visibility.texi: New file.
51021 2005-07-22 Bruno Haible <bruno@clisp.org>
51023 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51024 $(ALLOCA_H), redundant through BUILT_SOURCES.
51025 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51026 redundant through BUILT_SOURCES.
51027 * modules/byteswap (Makefile.am): Remove explicit dependency on
51028 $(BYTESWAP_H), redundant through BUILT_SOURCES.
51029 * modules/fnmatch (Makefile.am): Remove explicit dependency on
51030 $(FNMATCH_H), redundant through BUILT_SOURCES.
51031 * modules/getopt (Makefile.am): Remove explicit dependency on
51032 $(GETOPT_H), redundant through BUILT_SOURCES.
51033 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51034 redundant through BUILT_SOURCES.
51035 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51036 redundant through BUILT_SOURCES.
51037 * modules/stdbool (Makefile.am): Remove explicit dependency on
51038 $(STDBOOL_H), redundant through BUILT_SOURCES.
51039 * modules/stdint (Makefile.am): Remove explicit dependency on
51040 $(STDINT_H), redundant through BUILT_SOURCES.
51041 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51042 Remove explicit dependency on $(SYSEXITS_H).
51043 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51045 2005-07-18 Simon Josefsson <jas@extundo.com>
51047 * lib/check-version.c (check_version): Accept identical versions too.
51049 2005-07-18 Bruno Haible <bruno@clisp.org>
51051 * modules/lock: New file.
51052 * MODULES.html.sh (Multithreading): New section.
51054 2005-07-18 Bruno Haible <bruno@clisp.org>
51056 * m4/lock.m4: New file, from GNU gettext.
51058 2005-07-18 Bruno Haible <bruno@clisp.org>
51060 * lib/lock.h: New file, from GNU gettext.
51061 * lib/lock.c: New file, from GNU gettext.
51063 2005-07-18 Bruno Haible <bruno@clisp.org>
51065 * lib/lock.h (gl_once_t): New type.
51066 (gl_once_define, gl_once): New macros.
51067 * lib/lock.c (fresh_once): New variable.
51068 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51071 2005-07-16 Simon Josefsson <jas@extundo.com>
51073 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51074 workaround, suggested by Bruno.
51076 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
51078 * modules/xalloc (Depends-on): Add xalloc-die.
51079 * modules/xvasprintf (Depends-on): Add xalloc-die.
51081 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
51083 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51084 with a minor change.
51086 2005-07-15 Bruno Haible <bruno@clisp.org>
51088 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51089 When using lib/poll.c, define poll as rpl_poll.
51091 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
51093 * modules/argp (Depends-on): Remove unlocked-io.
51095 2005-07-14 Derek Price <derek@ximbiot.com>
51097 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
51098 for glob symlink bug.
51100 2005-07-14 Bruno Haible <bruno@clisp.org>
51102 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51103 Instead, test for *_unlocked function declarations directly.
51105 2005-07-11 Simon Josefsson <jas@extundo.com>
51107 * modules/size_max: New file.
51109 * modules/xsize: Depend on size_max module for size_max.m4.
51111 2005-07-11 Simon Josefsson <jas@extundo.com>
51113 * lib/size_max.h: New file.
51115 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
51117 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51118 copyright symbol and the year.
51119 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51120 (version_etc_va): Use parameterized copyright notice.
51121 Reword to conform to the current GNU coding standards.
51123 2005-07-11 Karl Berry <karl@gnu.org>
51125 * doc/gnulib.texi (Quoting): new node.
51126 (Initial import): more info, from Patrice.
51128 2005-07-11 Bruno Haible <bruno@clisp.org>
51130 * gnulib-tool (func_usage): Document option --avoid.
51131 (Command line options): Handle --avoid.
51132 (func_acceptable): New function.
51133 (func_modules_transitive_closure): Use it.
51135 2005-07-11 Bruno Haible <bruno@clisp.org>
51137 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51138 Reported by Jim Meyering.
51140 2005-07-10 Bruno Haible <bruno@clisp.org>
51142 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51143 Needed when size_t is smaller than 'unsigned int'.
51144 Reported by Paul Eggert.
51146 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
51148 * modules/argp (Depends-on): Add unlocked-io
51150 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
51152 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51155 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
51157 * config/srclist.txt: Comment out regcomp.c, since we have a porting
51160 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
51161 and Paul Eggert <eggert@cs.ucla.edu>
51163 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51164 in wint_t, not wchar_t. Remove now-unnecessary cast.
51166 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51168 * modules/regex (Files): Add lib/regex_internal.c,
51169 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51170 (Depends-on): Add extensions.
51171 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51173 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51175 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51177 * m4/same.m4 (gl_SAME): Likewise.
51178 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51180 * m4/regex.m4: Adjust to new libc regex implementation.
51181 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51182 all the .c and .h parts of (the new) regex.
51183 Quote the m4 stuff better.
51184 Check for RE_ICASE bug of old gnulib.
51185 Check for REG_STARTEND of recent libc.
51186 Rename local variables from jm_* to gl_*.
51187 Quote operand of "test -f".
51188 Say "recent enough" version of libc, not "version 2".
51189 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51190 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
51191 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51192 Remove check for btowc, isascii.
51193 Require AM_LANGINFO_CODESET.
51195 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51197 * lib/regex.c, regex.h: Sync from libc.
51198 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51200 New files, synced from libc, except that regex_internal.h
51201 currently has a small porting fix.
51203 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51205 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51206 regex_internal.c, regexec.c.
51207 Add regex_internal.h too, but as a comment, since the libc version
51208 is currently broken in gnulib mode.
51210 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
51212 Support programs like Emacs that use gnulib but not gettext.
51213 * MODULES.html.sh (Internationalization functions): Add gettext-h.
51214 * modules/gettext-h: New file.
51215 * modules/gettext (Files): Remove lib/gettext.h.
51216 (Depends-on): Add gettext-h.
51217 (Makefile.am): Remove lib_SOURCES.
51218 * modules/argmatch, modules/c-stack, modules/closeout:
51219 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51220 * modules/execute, modules/file-type, modules/getaddrinfo:
51221 * modules/getopt, modules/human, modules/javacomp:
51222 * modules/javaexec, modules/mkdir-p, modules/obstack:
51223 * modules/openat, modules/pagealign_alloc, modules/pipe:
51224 * modules/quotearg, modules/regex, modules/rpmatch:
51225 * modules/unicodeio, modules/userspec, modules/version-etc:
51226 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51228 Depend on gettext-h, not gettext.
51230 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
51232 * gnulib-tool (func_import): Add support for 'public domain' license.
51233 * modules/alloca, modules/atexit, modules/memmove:
51234 Now public domain, not GPL.
51235 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51236 * modules/realloc, modules/strerror, modules/strtod:
51239 2005-07-05 Bruno Haible <bruno@clisp.org>
51241 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51242 autoconf CVS. Needed for mingw.
51244 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51246 Remove the dependency of the strftime module on the tzset module.
51247 * modules/strftime (Depends-on): Remove dependency on tzset.
51249 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51251 Remove the dependency of the strftime module on the tzset module.
51252 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51253 gl_FUNC_TZSET_CLOBBER.
51255 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51257 Remove the dependency of the strftime module on the tzset module.
51258 * lib/strftime.c (my_strftime)
51259 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51260 Copy the input structure, to work around some of the bug with
51261 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
51262 Solaris releases, you should also use the tzset module, but we won't
51263 require it as a dependency any more since we don't want LGPLed code
51264 to depend on GPLed code.
51266 2005-07-02 Jim Meyering <jim@meyering.net>
51268 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51269 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51270 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51271 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51273 2005-07-02 Jim Meyering <jim@meyering.net>
51275 * lib/backupfile.c (backup_args): Change a `0' to NULL.
51277 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
51279 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51280 declares only 'struct timespec;' (!).
51282 2005-07-01 Jim Meyering <jim@meyering.net>
51284 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51285 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51286 * lib/save-cwd.c, tempname.c:
51287 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51288 and don't include <sys/file.h>).
51290 2005-06-29 Jim Meyering <jim@meyering.net>
51292 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51293 type name. Use the variable name instead.
51294 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51297 2005-06-28 Simon Josefsson <jas@extundo.com>
51299 * modules/check-version (Files): Add check-version.m4.
51301 2005-06-28 Simon Josefsson <jas@extundo.com>
51303 * m4/check-version.m4: New file, suggested by Jim Meyering
51304 <jim@meyering.net>.
51306 2005-06-28 Simon Josefsson <jas@extundo.com>
51308 * lib/check-version.h, lib/check-version.c: New files.
51310 2005-06-28 Simon Josefsson <jas@extundo.com>
51312 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
51313 collision with global variable. Better indentation. Don't
51314 increment buffer pointer beyond buffer end. Based on comments
51315 from Paul Eggert <eggert@cs.ucla.edu>.
51317 * lib/base64.h: Indent.
51319 2005-06-28 Simon Josefsson <jas@extundo.com>
51321 * doc/gnulib.texi (Library version handling): New section.
51323 2005-06-28 Jim Meyering <jim@meyering.net>
51325 * check-module (find_included_lib_files): Hard-code another
51326 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51327 but modules/fts-lgpl (correctly) does not list those files.
51329 * modules/canonicalize (Files): Add lib/pathmax.h.
51331 2005-06-25 Simon Josefsson <jas@extundo.com>
51333 * modules/check-version: New file.
51335 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
51337 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51338 initializer of struct addrinfo, as an indication that we don't
51339 care how many members the structure has.
51341 2005-06-24 Derek Price <derek@ximbiot.com>
51342 and Bruno Haible <bruno@clisp.org>
51344 Remove stat module & update lstat.
51345 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51346 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51347 * m4/stat.m4: Remove this file.
51349 2005-06-24 Derek Price <derek@ximbiot.com>
51350 and Bruno Haible <bruno@clisp.org>
51352 Remove stat module & update lstat.
51353 * lib/stat.c: Remove this file...
51354 (slash_aware_lstat): ...moving this content and its support...
51355 * lib/lstat.c (rpl_lstat): ...into here.
51356 * lib/lstat.h: New file.
51358 2005-06-24 Derek Price <derek@ximbiot.com>
51359 and Bruno Haible <bruno@clisp.org>
51361 Remove stat module & update lstat.
51362 * config/srclist.txt (libc sources): Remove stat.
51364 2005-06-24 Derek Price <derek@ximbiot.com>
51365 and Bruno Haible <bruno@clisp.org>
51367 Remove stat module & update lstat.
51368 * MODULES.html.sh (stat): Remove.
51369 * MODULES.html: Regenerated.
51370 * modules/lstat (Description): Correct function name.
51371 (Files): Add "lstat.h".
51372 (Depends-on): Remove stat, add xalloc, stat-macros.
51373 * modules/stat: Remove this file.
51374 (Include): Add "lstat.h", remove <sys/stat.h>.
51376 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
51378 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
51379 (ranged_convert): Don't save conversion in a temporary struct.
51380 This causes a warning with GCC 4.0.0, and anyway in the typical
51381 case it's not worth the extra 100 bytes or so of code.
51382 (ranged_convert, __mktime_internal): When calling a function via a
51383 pointer P, use P () rather than (*P) (), as we now assume C89 or
51386 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
51388 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51389 "who -r" failed to give output. Problem reported by Tim Waugh.
51391 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51392 (xcalloc): Use it to avoid needless tests.
51393 Problem reported by Jim Meyering.
51395 2005-06-20 Derek Price <derek@ximbiot.com>
51397 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51398 unnecessary for Autoconfs > 2.59c.
51400 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51402 * lib/argp.h (__option_is_short): Check upper limit of
51403 __key. Isprint() requires its argument to have the value
51404 of an unsigned char or EOF.
51406 2005-06-16 Jim Meyering <jim@meyering.net>
51408 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51409 when either N or S is zero.
51411 2005-06-16 Derek Price <derek@ximbiot.com>
51413 * m4/bison.m4: Declare YACC & YFLAGS precious.
51415 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
51417 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51418 multibyte string or pattern, fall back on unibyte matching.
51419 Problem reported by James Youngman.
51421 2005-06-08 Bruno Haible <bruno@clisp.org>
51423 * modules/csharpcomp: New file.
51424 * MODULES.html.sh (C#): Add csharpcomp.
51426 2005-06-08 Bruno Haible <bruno@clisp.org>
51428 * m4/csharpcomp.m4: New file, from GNU gettext.
51430 2005-06-08 Bruno Haible <bruno@clisp.org>
51432 * lib/csharpcomp.h: New file, from GNU gettext.
51433 * lib/csharpcomp.c: New file, from GNU gettext.
51434 * lib/csharpcomp.sh.in: New file, from GNU gettext.
51436 2005-06-08 Bruno Haible <bruno@clisp.org>
51438 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51441 2005-06-07 Derek Price <derek@ximbiot.com>
51444 * lib/glob_.h: Indent nested #ifdef.
51446 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51448 Sync from coreutils.
51449 Use "file name" when talking about file names, instead of "filename"
51450 or "path", as per the GNU coding standards.
51451 * lib/mkdir-p.c: Renamed from makepath.c.
51452 (make_dir_parents): Renamed from make_path. All callers changed.
51453 * lib/mkdir-p.h: Likewise. All includers changed.
51454 * lib/filenamecat.c: Renamed from path-concat.c.
51455 (file_name_concat): Renamed from path_concat. All callers changed.
51456 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51457 * lib/filenamecat.h: Likewise. All includers changed.
51458 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51459 in comments or local variable names.
51460 * lib/basename.c: Likewise.
51461 * lib/canonicalize.c, canonicalize.h: Likewise.
51462 * lib/dirname.c, dirname.h: Likewise.
51463 * lib/euidaccess.c: Likewise.
51464 * lib/exclude.c: Likewise
51465 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51466 * lib/fsusage.c, fsuage.h: Likewise.
51467 * lib/fts.c, fts_.h: Likewise.
51468 * lib/getcwd.c: Likewise.
51469 * lib/getloadavg.c: Likewise.
51470 * lib/mkstemp.c: Likewise.
51471 * lib/mountlist.c, mountlist.h: Likewise.
51472 * lib/openat.c, openat.h: Likewise.
51473 * lib/readlink-stub.c: Likewise.
51474 * lib/readutmp.c, readutmp.h: Likewise.
51475 * lib/rename.c: Likewise.
51476 * lib/rmdir.c: Likewise.
51477 * lib/same.c: Likewise.
51478 * lib/savedir.c: Likewise.
51479 * lib/stripslash.c: Likewise.
51480 * lib/tempname.c: Likewise.
51481 * lib/xreadlink.c: Likewise.
51482 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51484 * lib/exclude.h: Likewise.
51486 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51487 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51488 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51489 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51490 * lib/pathmax.h: Include <limits.h> unconditionally, since other
51491 files have been getting away with it for years (MORE/BSD 4.3
51493 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51494 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51496 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51497 Define to 256, not 255, as per modern POSIX.
51499 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51501 Sync from coreutils.
51502 Use "file name" when talking about file names, instead of "filename"
51503 or "path", as per the GNU coding standards.
51504 * MODULES.html.sh: mkdir-p renamed from makepath.
51505 filenamecat renamed from path-concat.
51506 * modules/filenamecat: Renamed from modules/path-concat.
51507 (Files): filenamecat.h and filenamecat.c renamed from
51508 path-concat.h and path-concat.c.
51509 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51510 (Include): filenamecat.h, not path-concat.h.
51511 * modules/mkdir-p: Renamed from modules/makepath.
51512 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51514 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51515 (Include): mkdir-p.h, not makepath.h.
51517 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51519 Sync from coreutils.
51520 * m4/mkdir-p.m4: Renamed from makepath.m4.
51521 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
51522 Rename files from makepath.c to mkdir-p.c, and from
51523 makepath.h to mkdir-p.h.
51524 * m4/filenamecat.m4: Renamed from path-concat.m4.
51525 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
51526 Rename files from path-concat.c to filenamecat.c,
51527 and from path-concat.h to filenamecat.h.
51528 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51529 "file name" in local variables or comments.
51530 * m4/rename.m4: Likewise.
51532 2005-06-01 Bruno Haible <bruno@clisp.org>
51534 * modules/csharpexec: New file.
51535 * MODULES.html.sh (C#): New section.
51537 2005-06-01 Bruno Haible <bruno@clisp.org>
51539 * m4/csharp.m4: New file, from GNU gettext.
51540 * m4/csharpexec.m4: New file, from GNU gettext.
51542 2005-06-01 Bruno Haible <bruno@clisp.org>
51544 * lib/csharpexec.h: New file, from GNU gettext.
51545 * lib/csharpexec.c: New file, from GNU gettext.
51546 * lib/csharpexec.sh.in: New file, from GNU gettext.
51548 2005-05-31 Derek Price <derek@ximbiot.com>
51549 Paul Eggert <eggert@cs.ucla.edu>
51552 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51554 2005-05-31 Derek Price <derek@ximbiot.com>
51555 Paul Eggert <eggert@cs.ucla.edu>
51558 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51560 2005-05-29 Derek Price <derek@ximbiot.com>
51562 * config/srclist.txt (glob_.h, glob.c): Add these files.
51564 2005-05-29 Derek Price <derek@ximbiot.com>
51566 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51567 * modules/glob: New file.
51568 * modules/getlogin_r: Add link to POSIX spec in description.
51570 2005-05-29 Derek Price <derek@ximbiot.com>
51571 Paul Eggert <eggert@cs.ucla.edu>
51573 * m4/glob.m4: New file.
51575 2005-05-29 Derek Price <derek@ximbiot.com>
51576 Paul Eggert <eggert@cs.ucla.edu>
51578 * lib/glob_.h, lib/glob.c: New files.
51580 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51582 * modules/fts (Files): Remove m4/inttypes-pri.m4.
51583 * modules/fts-lgpl (Depends-on): Remove gettext.
51585 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51587 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51588 and don't require gt_INTTYPES_PRI.
51590 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51592 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51594 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51595 the configuration hassle isn't worth it.
51596 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51597 (LONGEST_MODIFIER, PRIuMAX): Remove.
51599 2005-05-27 Bruno Haible <bruno@clisp.org>
51601 * lib/getlogin_r.h: Remove second include of <stddef.h>.
51603 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
51605 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51606 _POSIX_PTHREAD_SEMANTICS for Solaris.
51608 2005-05-25 Derek Price <derek@ximbiot.com>
51610 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51612 2005-05-25 Derek Price <derek@ximbiot.com>
51613 Paul Eggert <eggert@cs.ucla.edu>
51615 * modules/getlogin_r, m4/getlogin_r.m4: New files.
51616 * lib/getlogin_r.c, getlogin_r.h: New files.
51618 2005-05-25 Bruno Haible <bruno@clisp.org>
51619 Derek Price <derek@ximbiot.com>
51621 * lib/getlogin_r.h: Simplify API documentation.
51623 2005-05-23 Derek Price <derek@ximbiot.com>
51625 * modules/minmax (Files): Add m4/minmax.m4.
51626 (configure.ac): Add gl_MINMAX.
51628 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
51630 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51631 so that unistd-safer.h (GPL'ed code) need not be included.
51633 2005-05-22 Bruno Haible <bruno@clisp.org>
51635 * m4/minmax.m4: New file.
51636 Based on a patch by Derek Price <derek@ximbiot.com>.
51638 2005-05-22 Bruno Haible <bruno@clisp.org>
51640 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51641 (INT64_MIN): Fix definition.
51642 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51644 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51645 NEED_SIGNED_INT_TYPES.
51647 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51648 HAVE_SYSTEM_INTTYPES.
51650 2005-05-22 Bruno Haible <bruno@clisp.org>
51652 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51653 Also include <sys/param.h> if it defines MIN, MAX.
51654 Based on a patch by Derek Price <derek@ximbiot.com>.
51656 2005-05-21 Jim Meyering <jim@meyering.net>
51658 * modules/fts (Files): Add m4/inttypes-pri.m4.
51659 (Depends-on): Add lstat and remove gettext. Alphabetize.
51661 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51664 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51665 (setup_dir, free_dir): New functions.
51666 (enter_dir, leave_dir): Define trivial
51667 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
51668 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
51669 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51670 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51671 Move to fts-cycle.c.
51672 (fts_open): Use setup_dir.
51673 (fts_close): Use free_dir.
51674 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51675 This adds a label and some gotos, but the alternatives were messier.
51676 Check for memory allocation failure when entering a dir.
51677 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51678 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51679 (FTS): New member fts_cycle, that is a union that contains the
51680 old active_dir_ht and cycle_state. All uses changed to mention
51681 fts_cycle.ht and fts_cycle.state.
51682 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51683 fts.c, with the following changes:
51684 (setup_dir, free_dir): New functions.
51685 (enter_dir): Now returns bool. Return true if successful, false
51686 if memory exhausted. All callers changed.
51687 Do not bother partly cleaning up on
51688 memory allocation failure; that is free_dir's job.
51689 However, free ad if hash_insert fails, to avoid memory leak.
51690 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51691 fts->fts_options to see which union member to use.
51693 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51695 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51696 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51698 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51700 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51702 2005-05-20 Jim Meyering <jim@meyering.net>
51704 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51705 Now a macro, to pacify GCC.
51707 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51709 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51712 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51714 * lib/chown.c (rpl_chown): Return -1 on failure.
51716 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51718 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51719 Don't check for stddef.h.
51720 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51721 don't use its results.
51722 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51723 since we include them unconditionally. Don't require
51724 AM_STDBOOL_H, since stdbool is a prerequisite.
51725 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51726 since we assume C89 or better.
51727 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51728 as we don't use their results.
51729 Don't check for fchdir, memmove, memset, strrchr, as we use
51730 them unconditionally.
51731 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51732 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51734 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51736 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51737 Include <stddef.h> unconditionally, since we assume C89 now.
51738 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51739 * lib/fts.c: Include fts_.h first, to check interface.
51740 Do not include intprops.h; no longer needed.
51741 Include cycle-check.h and hash.h, since fts_.h no longer does.
51742 Remove unnecessary casts of closedir to void.
51743 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51744 decide whether to decrement nlinks.
51745 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51746 (FTS): Use struct hash_table * instead of Hash_table, so that
51747 we no longer need to include hash.h here.
51749 2005-05-18 Jim Meyering <jim@meyering.net>
51751 * modules/dirfd (License): Change to LGPL. Most of the code
51752 is already in the public domain.
51754 2005-05-18 Jim Meyering <jim@meyering.net>
51756 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51757 Reported by Yoann Vandoorselaere.
51759 2005-05-17 Jim Meyering <jim@meyering.net>
51761 * m4/fts.m4: New file, from coreutils.
51763 2005-05-17 Jim Meyering <jim@meyering.net>
51765 * lib/fts.c, lib/fts_.h: New files, from coreutils.
51767 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51769 Sync from coreutils.
51770 * m4/unlinkdir.m4: New file.
51772 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51774 Sync from coreutils.
51775 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51776 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51777 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51778 White space changes only.
51779 * lib/makepath.c (make_path): Port to hosts where leading "//" is
51781 * lib/yesno.c: Include getline.h, not ctype.h.
51782 (yesno): Don't remove leading white space; POSIX doesn't allow it.
51783 Use getline to remove arbitrary restriction on response length.
51785 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51787 * config/srclist-update: Spell out "Street" in FSF postal
51788 mail address; this is the style the FSF seems to prefer.
51790 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51791 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51792 this updates FSF postal mail address.
51794 Sync from coreutils.
51795 * modules/unlinkdir: New file.
51796 * modules/yesno (Depends-on): Add getline.
51797 * MODULES.html.sh (File system functions): Add unlinkdir.
51799 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51801 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51803 Change the initial comment to refer to GPL, not LGPL.
51804 gnulib-tool will change it to LGPL as needed.
51806 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51807 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51808 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51809 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51810 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51811 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51812 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51813 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51814 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51815 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51816 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51817 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51818 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51819 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51820 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51821 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51822 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51823 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51824 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51825 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51826 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51827 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51828 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51829 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51830 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51831 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51832 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51833 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51834 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51835 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51836 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51837 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51838 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51839 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51840 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51841 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51842 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51843 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51844 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51845 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51846 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51847 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51848 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51849 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51850 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51851 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51852 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51853 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51854 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51855 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51856 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51857 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51858 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51859 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51860 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51861 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51862 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51863 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51864 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51865 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51866 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51867 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51868 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51869 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51870 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51871 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51872 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51873 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51874 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51875 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51876 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51877 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51878 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51879 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51880 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51881 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51882 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51883 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51884 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51885 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51886 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51887 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51888 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51889 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51890 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51891 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51892 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51893 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51894 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51895 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51896 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51897 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51898 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51899 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51900 lib/yesno.c, lib/yesno.h:
51901 Update FSF postal mail address.
51903 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51905 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51906 tests/test-memmem.c, tests/test-stpncpy.c:
51907 Update FSF postal mail address.
51909 2005-05-13 Bruno Haible <bruno@clisp.org>
51911 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51912 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51913 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51914 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51915 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51916 Add support for 64-bit integers in the MSVC compiler.
51918 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51920 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51922 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
51924 * gnulib-tool (func_import): Sort and uniquify recommended includes.
51926 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
51928 * doc/getdate.texi (General date syntax): Don't say that date
51929 date --iso-8601=ns generates acceptable dates; it doesn't yet.
51930 Problem reported by Nic Ferrier.
51932 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51934 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51935 specified in ai_socktype. Fix invalid ai_protocol
51936 check. ai_protocol is usually set to 0 or depending on
51937 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
51938 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
51939 ai_socktype / ai_protocol in the returned addrinfo structure.
51941 2005-05-10 Simon Josefsson <jas@extundo.com>
51943 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51944 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51946 2005-05-10 Karl Berry <karl@gnu.org>
51948 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51949 (from http://www.gnu.org/licenses).
51950 * doc/COPYING.LIB: also rename to COPYING.LESSER.
51951 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51954 2005-05-10 Karl Berry <karl@gnu.org>
51956 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51957 (COPYING.DOC): remove.
51959 * config/srclist-update: new FSF address.
51961 2005-05-10 Derek Price <derek@ximbiot.com>
51963 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51966 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51967 Bruno Haible <bruno@clisp.org>
51969 * modules/inet_ntop: New file.
51970 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51973 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51974 Bruno Haible <bruno@clisp.org>
51976 * m4/inet_ntop.m4: New file.
51978 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51979 Bruno Haible <bruno@clisp.org>
51981 * lib/inet_ntop.h: New file.
51982 * lib/inet_ntop.c: New file, from glibc with modifications.
51984 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
51986 * modules/time_r (License): Change to LGPL.
51987 * modules/extensions (License): Change to LGPL. Actually,
51988 the license is more permissive than that, but currently gnulib-tool
51989 doesn't know how to handle more-permissive licenses.
51991 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51992 Problem reported by Dave Love.
51994 2005-05-08 Jim Meyering <jim@meyering.net>
51996 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51999 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
52001 * modules/argmatch (Depends-on): Add stdbool.
52002 * modules/backupfile (Depends-on): Likewise.
52003 * modules/chdir-long (Depends-on): Likewise.
52004 * modules/closeout (Depends-on): Likewise.
52005 * modules/cycle-check (Depends-on): Likewise.
52006 * modules/dirname (Depends-on): Likewise.
52007 * modules/fnmatch (Depends-on): Likewise.
52008 * modules/fsusage (Depends-on): Likewise.
52009 * modules/fwriteerror (Depends-on): Likewise.
52010 * modules/getcwd (Depends-on): Likewise.
52011 * modules/getloadavg (Depends-on): Likewise.
52012 * modules/hard-locale (Depends-on): Likewise.
52013 * modules/makepath (Depends-on): Likewise.
52014 * modules/mountlist (Depends-on): Likewise.
52015 * modules/nanosleep (Depends-on): Likewise.
52016 * modules/posixtm (Depends-on): Likewise.
52017 * modules/quotearg (Depends-on): Likewise.
52018 * modules/readtokens (Depends-on): Likewise.
52019 * modules/readtokens0 (Depends-on): Likewise.
52020 * modules/readutmp (Depends-on): Likewise.
52021 * modules/save-cwd (Depends-on): Likewise.
52022 * modules/strftime (Depends-on): Likewise.
52023 * modules/userspec (Depends-on): Likewise.
52024 * modules/utimecmp (Depends-on): Likewise.
52025 * modules/xgetcwd (Depends-on): Likewise.
52026 * modules/xnanosleep (Depends-on): Likewise.
52027 * modules/xstrtod (Depends-on): Likewise.
52028 * modules/yesno (Depends-on): Likewise.
52030 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
52032 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52035 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52037 Merge from coreutils. Among other things,
52038 add bulletproofing for cases where stdin, stdout, or stderr are closed.
52039 * lib/fd-safer.c: New file.
52040 * lib/fcntl-safer.h, open-safer.c: Remove.
52041 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52042 * lib/dup-safer.c: Include unistd-safer.h first.
52043 Don't include errno.h.
52044 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52045 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52046 * lib/file-type.c: Rely on file-type.h change.
52047 * lib/getloadavg.c: Include unistd-safer.h.
52048 (getloadavg): Use safer open.
52049 * lib/getusershell.c: Include "stdio-safer.h".
52050 (getusershell): Use safer fopen.
52051 * lib/long-options.c (long_options): Use NULL rather than 0.
52052 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52054 * lib/modechange.c: Likewise.
52055 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52056 (MODE_DONE): New constant.
52057 (struct mode_change): Remove 'next' member.
52058 (make_node_op_equals): New function; like the old one of the
52059 same name, except it allocates an array.
52060 (mode_compile, mode_create_from_ref): Use it.
52061 (mode_compile): Allocate result as an array, not a linked list.
52062 Parse octal string ourself, so that we catch mistakes like "+0".
52063 (mode_adjust): Arg is an array, not a linked list.
52064 * lib/modechange.c: Include stat-macros.h, xalloc.h.
52065 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52066 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52067 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52068 Remove. This is now stat-macros.h's job.
52069 (talloc): Remove. All callers replaced by xalloc, so that
52070 our invokers don't have to worry about reporting memory failures.
52071 (make_node_op_equals): Remove.
52072 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52074 (struct mode_change): Moved here from modechange.h.
52075 (mode_append_entry): Remove.
52076 (mode_compile): Remove MASKED_OPS arg, since it encouraged
52077 apps to have incorrect behavior. Use simpler algorithm for head
52078 and tail. Don't futz with umask; that's now the job of mode_adjust.
52079 Detect more invalid usages rather than having somewhat-random behavior.
52080 Don't insert an "a=" action, as that leads to incorrect behavior.
52081 (mode_compile, mode_create_from_ref): Return NULL on error instead
52082 of an enum, since now there's only one way to have an error. All
52084 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52085 at the correct time. Simplify calculation of "+u" and its ilk.
52086 Don't mishandle "+X".
52087 (mode_free): Remove "register" and localize decls.
52088 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52089 (struct mode_change): Move to modechange.c; callers don't
52090 need to see this stuff.
52091 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52092 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52093 (mode_change, mode_adjust): Reflect the new signatures noted above.
52094 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52095 that might redefine system include files.
52096 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52097 (my_usleep): Use NULL rather than (void *) 0.
52098 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52099 Use siginterrupt to specify that system calls should be interrupted.
52100 (rpl_nanosleep): Move initialization of suspended closer to call of
52102 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
52103 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
52104 (desirable_utmp_entry): New function.
52105 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52106 using x2nrealloc, to simplify logic.
52107 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52108 size calculation. Do not assume utmp file is a regular file.
52109 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52110 (READ_UTMP_CHECK_PIDS): New constant.
52111 * lib/save-cwd.c: Include unistd-safer.h.
52112 (save_cwd): Use fd_safer.
52113 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52114 [!_LIBC] Include "stat-macros.h" instead.
52115 * lib/unistd-safer.h (fd_safer): New decl.
52117 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52119 * modules/getloadavg (Depends-on): Add unistd-safer.
52120 * modules/getusershell (Depends-on): Add stdio-safer.
52121 * modules/lstat (Depends-on): Remove xalloc.
52122 * modules/mkstemp (Depends-on): Add stat-macros.
52123 * modules/modechange (Depends-on): Remove xstrtol.
52124 Add stat-macros, xalloc.
52125 * modules/save-cwd (Depends-on): Add unistd-safer.
52126 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52127 * modules/unistd-safer (Files): Add lib/fd-safer.c
52128 (Makefile.am): Remove lib_SOURCES.
52130 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52131 Remove fcntl-safer; unistd-safer supersedes it.
52133 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52135 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52137 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52138 (gl_PREREQ_CHOWN): Remove.
52139 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52140 it. Don't require AC_HEADER_STAT.
52141 (gl_PREREQ_LSTAT): Remove.
52142 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52143 Don't require AC_HEADER_STAT.
52144 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52145 (gl_PREREQ_RMDIR): Remove.
52146 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52147 mention stat-macros.h or AC_HEADER_STAT, since we'll make
52148 the stat-macros module a prerequisite.
52149 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52150 * m4/filemode.m4 (gl_FILEMODE): Likewise.
52151 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52152 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52153 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52155 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52156 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
52158 * m4/fcntl-safer.m4: Remove.
52159 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52160 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52161 Invoke gl_PREREQ_FD_SAFER.
52162 (gl_PREREQ_FD_SAFER): New macro.
52163 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52164 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52165 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52166 Remove duplicate call to AC_LIBOBJ(readutmp).
52167 (gl_PREREQ_READUTMP): Remove. All uses inlined.
52169 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52170 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
52172 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52174 * MODULES.html.sh (Misc): Add byteswap.
52176 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52178 * modules/getcwd (Depends-on): Add extensions.
52179 * modules/openat (Depends-on): Likewise.
52181 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52183 * modules/byteswap: New file.
52185 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52187 * m4/byteswap.m4: New file.
52189 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52191 * lib/byteswap_.h: New file.
52193 2005-04-25 Karl Berry <karl@gnu.org>
52195 * m4/gettext.m4: Update from GNU gettext 0.14.4.
52197 2005-04-25 Albert Chin <china@thewrittenword.com>
52199 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52202 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
52204 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52205 (func_ln_if_changed) Remove forcibly for no error message
52206 in case file does not exist.
52208 2005-04-19 Simon Josefsson <jas@extundo.com>
52210 * gnulib-tool (Options): Make --symlink mean --symbolic.
52212 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
52214 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
52216 2005-04-16 Simon Josefsson <jas@extundo.com>
52218 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52220 2005-04-15 Simon Josefsson <jas@extundo.com>
52222 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52224 2005-04-15 Simon Josefsson <jas@extundo.com>
52226 * gnulib-tool: Rename --symlink to --symbolic.
52228 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
52230 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52231 symbolic links to files instead of copying/moving. Add --aux-dir,
52232 specifying directory relative --dir where auxiliary build tools
52235 2005-04-14 Bruno Haible <bruno@clisp.org>
52237 * modules/allocsa (License): Change to LGPL.
52238 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52240 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
52242 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52243 that "UTC +1 second" continues to work. Problem reported
52244 by Dmitry V. Levin.
52245 (relunit_snumber): New rule.
52248 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
52250 * lib/getdate.y (universal_time_zone_table): New constant.
52251 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52252 universal_time_zone_table.
52253 (lookup_zone): Prefer universal_time_zone_table to
52254 local_time_zone_table, so that "GMT" time stamps are allowed in
52255 London during the summer. Problem reported by Ian Abbott.
52257 2005-04-12 Jim Meyering <jim@meyering.net>
52259 * lib/human.c (humblock): Set *options even when returning due to
52260 xstrtoumax conversion failure. Thanks to a used-uninitialized
52261 warning from gcc-4.
52263 2005-04-09 Jim Meyering <jim@meyering.net>
52265 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52266 -Wuninitialized: initialize tm0.tm_year.
52268 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
52270 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52271 count, since there's no maximum. All uses changed.
52272 Add member dsts_seen.
52273 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52275 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52276 Use pc_rels_seen to decide whther a date is absolute.
52278 * lib/getdate.y (number): Don't overwrite year.
52279 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52282 2005-04-02 Simon Josefsson <jas@extundo.com>
52284 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52285 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52287 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
52289 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52290 where no absolute path name can be longer than PATH_MAX.
52292 2005-03-27 Jim Meyering <jim@meyering.net>
52294 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52296 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
52298 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52299 "one's complement" -> "ones' complement" in comment, as per Knuth.
52300 "value of type" -> "type or expression" in comment.
52301 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52303 2005-03-26 Jim Meyering <jim@meyering.net>
52306 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52307 Correct typos: s/or/of/.
52309 2005-03-26 Jim Meyering <jim@meyering.net>
52311 * modules/check-include-files: Move to ../ and rename to...
52312 * check-module: ...this.
52314 2005-03-25 Jim Meyering <jim@meyering.net>
52316 * modules/xvasprintf (Files): Add xalloc.h.
52318 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
52320 * modules/gettext (Files): config/config.rpath ->
52321 build-aux/config.rpath
52322 * modules/iconv (Files): Likewise.
52323 Problem reported by Oskar Liljeblad.
52325 2005-03-23 Jim Meyering <jim@meyering.net>
52327 * modules/check-include-files: New script to check for
52328 missing dependencies, multiple includes, etc.
52330 * modules/c-strtold (Depends-on): Add xalloc.
52331 * modules/c-strtod (Depends-on): Add xalloc.
52332 * modules/hash (Depends-on): Add xalloc.
52333 (Files): Remove lib/xalloc.h.
52335 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52336 * modules/userspec (Files): Add lib/inttostr.h.
52338 2005-03-23 Jim Meyering <jim@meyering.net>
52340 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52342 2005-03-22 Jim Meyering <jim@meyering.net>
52344 * modules/stat-macros: New module.
52345 * modules/canonicalize, modules/euidaccess, modules/file-type,
52346 * modules/filemode, modules/lchown, modules/makepath,
52347 * modules/rmdir, modules/stat: Depend on new stat-macros module
52348 rather than listing lib/stat-macros.h manually.
52349 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52351 2005-03-22 Jim Meyering <jim@meyering.net>
52353 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52355 2005-03-22 Bruno Haible <bruno@clisp.org>
52357 * config/srclist.txt: Replace target directory 'config' with
52359 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52360 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52363 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
52365 * modules/chdir-long (Depends-on): Add mempcpy.
52367 * modules/acl, modules/backupfile, modules/c-strtod,
52368 modules/c-strtold, modules/canon-host, modules/canonicalize,
52369 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52370 modules/exclude, modules/exitfail, modules/file-type,
52371 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52372 modules/getdate, modules/getline, modules/getpagesize,
52373 modules/getpass, modules/getugroups, modules/group-member,
52374 modules/hard-locale, modules/hash, modules/human, modules/idcache,
52375 modules/inttostr, modules/long-options, modules/makepath,
52376 modules/md5, modules/memcasecmp, modules/memcoll,
52377 modules/modechange, modules/mountlist, modules/path-concat,
52378 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52379 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52380 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52381 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52382 modules/strftime, modules/strndup, modules/strverscmp,
52383 modules/timespec, modules/unlocked-io, modules/userspec,
52384 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52386 Remove lib_SOURCES line from Makefile.am section, as this is now
52387 done automatically by the corresponding Autoconf macro.
52389 2005-03-21 Jim Meyering <jim@meyering.net>
52391 Changes imported from coreutils.
52393 * lib/cycle-check.c: Don't include xalloc.h.
52395 * lib/path-concat.c: Don't include assert.h.
52396 (path_concat): Remove assertion that would have triggered
52397 for ABASE starting with more than one slash.
52398 Reported by Andreas Schwab.
52400 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52401 properly when ABASE is an absolute file name.
52402 Correct the description of this function.
52403 Include <assert.h>.
52404 Add an assertion and a test driver.
52405 This fixes a bug introduced on 2004-07-02.
52406 Andreas Schwab reported the resulting failure of cp --parents:
52407 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52409 2005-03-21 Jim Meyering <jim@meyering.net>
52411 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52412 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52414 2005-03-21 Jim Meyering <jim@meyering.net>
52415 and Paul Eggert <eggert@cs.ucla.edu>
52417 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52418 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52419 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52420 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52421 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52422 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52423 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52424 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52425 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52426 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52427 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52428 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52429 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52430 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52431 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52432 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52433 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52436 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
52438 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52439 (which shouldn't happen), generate nothing instead of returning 0
52440 immediately, so that nstrftime (NULL, ...) doesn't return 0.
52442 2005-03-16 Bruno Haible <bruno@clisp.org>
52444 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52445 HAVE_LONGLONG_64BIT.
52447 2005-03-16 Bruno Haible <bruno@clisp.org>
52449 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52450 HAVE_LONGLONG_64BIT.
52452 2005-03-16 Bruno Haible <bruno@clisp.org>
52454 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52455 HAVE_LONGLONG_64BIT.
52457 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52459 * lib/strftime.c (my_strftime): Prepend space to format so that we can
52460 reliably distinguish strftime failure from empty output on POSIX
52463 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52465 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52466 (iconv_string): Don't guess a size-zero buffer, as that might cause
52467 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
52468 result would be 'too large', where 'too large' is (heuristically)
52469 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52470 overflow concerns. This will prevent some unwanted malloc failures
52471 when the inputs are very large.
52473 2005-03-15 Karl Berry <karl@gnu.org>
52475 * config/srclist.txt (config.rpath): from gettext.
52476 * config/config.rpath: update.
52478 2005-03-15 Bruno Haible <bruno@clisp.org>
52480 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52483 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52486 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52489 2005-03-14 Simon Josefsson <jas@extundo.com>
52491 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52494 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
52496 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52497 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52499 * lib/strtol.c: Likewise.
52501 2005-03-14 Jim Meyering <jim@meyering.net>
52503 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52504 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52505 to be nonzero so that we (and caller) can detect the difference
52506 between a valid zero-length expansion and an error return, even
52507 when the underlying strftime fails before writing anything into
52510 2005-03-14 Bruno Haible <bruno@clisp.org>
52512 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52513 Update from GNU gettext 0.14.3.
52515 2005-03-10 Jim Meyering <jim@meyering.net>
52517 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52519 2005-03-10 Jim Meyering <jim@meyering.net>
52521 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52522 so that this module works on systems without fchdir.
52524 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
52526 Factor int-properties macros into a single file, except for
52527 glibc-related files.
52528 * lib/intprops.h: New file.
52529 * lib/getloadavg.c: Include it instead of limits.h.
52530 (INT_STRLEN_BOUND): Remove.
52531 * lib/human.c: Include intprops.h.
52532 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52533 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52535 * lib/inttostr.h: Include intprops.h instead of limits.h.
52536 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52537 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52538 for consistency with intprops.h.
52539 (time_t_is_integer, twos_complement_arithmetic): Use them.
52540 * lib/sig2str.h: Include <signal.h>, intprops.h.
52541 (INT_STRLEN_BOUND): Remove.
52542 * lib/strftime.c (TYPE_SIGNED): Remove.
52543 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52544 * lib/strtol.c: Adjust comments to match intprops.h.
52545 * lib/userspec.c: Include intprops.h.
52546 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52547 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52548 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52549 instead of rolling our own expressions.
52550 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52552 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
52554 (my_strftime): Do not mishandle years close to INT_MAX, by doing
52555 the right thing even if adding 1900 would overflow. Similarly
52556 for tm_mon + 1 and tm_yday + 1.
52557 Make %Y always equivalent to %C%y, and similarly for %G and %g.
52558 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52559 (DO_SIGNED_NUMBER): New macro.
52560 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52562 2005-03-07 Bruno Haible <bruno@clisp.org>
52564 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52566 2005-03-07 Bruno Haible <bruno@clisp.org>
52568 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52570 2005-03-04 Derek R. Price <derek@ximbiot.com>
52572 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52573 (func_import): Only replace files via --import when they have actually
52576 2005-03-03 Derek R. Price <derek@ximbiot.com>
52578 * m4/mmap-anon.m4: New file.
52579 * m4/pagealign_alloc.m4: New file.
52581 2005-03-03 Derek R. Price <derek@ximbiot.com>
52582 Bruno Haible <bruno@clisp.org>
52584 * modules/pagealign_alloc: New file.
52585 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52587 2005-03-03 Derek R. Price <derek@ximbiot.com>
52588 Bruno Haible <bruno@clisp.org>
52590 * lib/pagealign_alloc.h: New file.
52591 * lib/pagealign_alloc.c: New file.
52593 2005-03-03 Bruno Haible <bruno@clisp.org>
52595 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52596 Use an all-permissive copyright notice, recommended by RMS.
52598 2005-03-02 Bruno Haible <bruno@clisp.org>
52600 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52601 of AIX, the replacement has to be done only after <string.h> is
52602 included, therefore not in config.h. stpncpy.h does the replacement,
52603 and stpncpy.c uses it.
52605 2005-03-02 Bruno Haible <bruno@clisp.org>
52607 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52610 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52612 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52613 The workaround isn't strictly needed for POSIX conformance, and
52614 it's too much of a pain to configure and maintain. We'll ask
52615 people to fix their kernels instead.
52616 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52617 (NANOSLEEP_BUG_WORKAROUND): Remove.
52618 (xnanosleep): Remove the workaround.
52620 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52622 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52623 Reported by Derek Price.
52624 (Include): Add "timespec.h".
52626 * modules/xnanosleep (Depends-on): Remove gethrxtime.
52628 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52630 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52631 to detect nanosleep bug.
52633 2005-03-01 Bruno Haible <bruno@clisp.org>
52635 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52637 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
52639 * modules/gethrxtime: New file.
52640 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52641 (Depends-on): Add gethrxtime.
52642 (configure.ac): Add gl_XNANOSLEEP.
52643 (Makefile.am): Remove lib_SOURCES line.
52645 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52647 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52648 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52650 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52652 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52653 * lib/timespec.h (gettime): Return void, since it always
52654 succeeds now. All uses changed.
52655 * lib/gettime.c (gettime) Likewise.
52656 [HAVE_NANOTIME]: Prefer nanotime.
52657 Assume gettimeofday succeeds, as POSIX requires.
52658 Assime time () succeeds, since other code already does.
52659 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52660 (timespec_subtract): Remove.
52661 (NANOSLEEP_BUG_WORKAROUND): New constant.
52662 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52663 things considerably. Use it only on GNU/Linux hosts, since the
52664 workaround shouldn't be needed elsewhere.
52666 2005-02-24 Bruno Haible <bruno@clisp.org>
52668 * modules/gettext (Files): Add m4/glibc2.m4.
52670 2005-02-24 Bruno Haible <bruno@clisp.org>
52672 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52673 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52675 Update from GNU gettext 0.14.2.
52676 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52678 2005-02-24 Bruno Haible <bruno@clisp.org>
52680 * lib/localcharset.c: Update from GNU gettext 0.14.2.
52681 * lib/config.charset: Update from GNU gettext 0.14.2.
52683 2005-02-24 Bruno Haible <bruno@clisp.org>
52685 * lib/gettext.h: Update from GNU gettext 0.14.2.
52687 2005-02-23 Simon Josefsson <jas@extundo.com>
52689 * m4/iconvme.m4: New file.
52691 2005-02-23 Jim Meyering <jim@meyering.net>
52693 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52695 Thanks to Bruno Haible for catching it.
52697 2005-02-22 Simon Josefsson <jas@extundo.com>
52699 * modules/iconvme: New file.
52701 * MODULES.html.sh: Add iconvme.
52703 2005-02-22 Simon Josefsson <jas@extundo.com>
52705 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52707 2005-02-22 Simon Josefsson <jas@extundo.com>
52709 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52711 2005-02-22 Jim Meyering <jim@meyering.net>
52713 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52716 2005-02-20 Neil Conway <neilc@samurai.com>
52718 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52719 returned by OSX/Darwin if the specified buffer is not large
52720 enough for the hostname.
52722 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52724 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52725 pass it to _help, otherwise the latter coredumps trying to
52726 dereference state.root_argp.
52728 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52730 * modules/chdir-long (Depends-on): Add memrchr.
52731 * modules/memrchr (Files): Add lib/memrchr.h.
52732 (Include): "memrchr.h".
52734 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52736 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52738 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52740 * lib/memrchr.h: New file.
52741 * lib/chdir-long.c: Include it.
52742 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52743 Don't bother including stddef.h.
52745 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
52747 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52749 Include <sys/types.h>, for dev_t.
52750 (ME_DUMMY, ME_REMOTE): Move from here....
52751 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52752 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
52754 Include mountlist.h first, to test the interface.
52756 2005-01-29 Bruno Haible <bruno@clisp.org>
52758 * lib/progname.c (program_name): Initialize.
52759 Needed when linking statically on MacOS X.
52761 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52763 Sync from coreutils.
52764 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52765 (Depends-on): Add c-strtod.
52766 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52768 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52770 Sync from coreutils.
52771 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52773 Remove files that are specific to coreutils.
52774 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52776 2005-01-28 Bruno Haible <bruno@clisp.org>
52778 * modules/javacomp: New file.
52779 * MODULES.html.sh (Java): Add javacomp.
52781 2005-01-28 Bruno Haible <bruno@clisp.org>
52783 * m4/javacomp.m4: New file, from GNU gettext.
52785 2005-01-28 Bruno Haible <bruno@clisp.org>
52787 * lib/javacomp.sh.in: New file, from GNU gettext.
52788 * lib/javacomp.h: New file, from GNU gettext.
52789 * lib/javacomp.c: New file, from GNU gettext.
52791 2005-01-26 Simon Josefsson <jas@extundo.com>
52793 * lib/gai_strerror.c: Use GPL in header.
52795 2005-01-26 Bruno Haible <bruno@clisp.org>
52797 * modules/javaexec: New file.
52798 * MODULES.html.sh (Java): Add javaexec.
52800 2005-01-26 Bruno Haible <bruno@clisp.org>
52802 * m4/javaexec.m4: New file, from GNU gettext.
52804 2005-01-26 Bruno Haible <bruno@clisp.org>
52806 * lib/javaexec.sh.in: New file, from GNU gettext.
52807 * lib/javaexec.h: New file, from GNU gettext.
52808 * lib/javaexec.c: New file, from GNU gettext.
52810 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52812 * modules/lchown (Depends-on): Remove lchown.h
52814 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52816 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52817 must be defined if the header file was not found, in order
52818 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52820 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52822 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52823 initializers for struct pentry_state.
52824 (__argp_error): Check return value of __asprintf
52825 (__argp_failure): Translate error message
52827 * lib/argp-parse.c: Removed braces around the expansion of N_()
52829 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
52831 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52832 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52833 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52834 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52835 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52836 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52837 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52838 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52839 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52840 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52841 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52842 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52843 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52844 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52845 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52846 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52847 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52848 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52849 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52850 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52851 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52852 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52853 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52854 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52855 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52856 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52857 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52858 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52859 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52860 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52861 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52862 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52863 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52864 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52865 xstrtol.m4, xstrtoumax.m4, yesno.m4:
52866 Use an all-permissive copyright notice, recommended by RMS.
52868 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
52870 * modules/chdir-long (Depends-on): Remove mempcpy.
52872 2005-01-21 Jim Meyering <jim@meyering.net>
52874 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52875 same value as for Solaris 9.
52877 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52878 component length. This included changing the parameter to be
52879 of type `char *' rather than `char const *'.
52880 * lib/chdir-long.h (chdir_long): Update prototype.
52882 * lib/openat.c (fdopendir, fstatat): New functions.
52883 * lib/openat.h: Include headers required for use of DIR and struct
52885 [AT_SYMLINK_NOFOLLOW]: Define.
52886 (fdopendir, fstatat): Add prototypes.
52888 2005-01-21 Bruno Haible <bruno@clisp.org>
52890 * modules/classpath: New file.
52891 * MODULES.html.sh (Java): Add classpath.
52893 2005-01-21 Bruno Haible <bruno@clisp.org>
52895 * lib/classpath.h: New file, from GNU gettext.
52896 * lib/classpath.c: New file, from GNU gettext.
52898 2005-01-20 Simon Josefsson <jas@extundo.com>
52900 * modules/version-etc-fsf: New file.
52902 2005-01-20 Simon Josefsson <jas@extundo.com>
52904 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52905 * lib/version-etc.c: Remove version_etc_copyright.
52906 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52907 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52909 2005-01-20 Simon Josefsson <jas@extundo.com>
52911 * lib/base64.h (isbase64): Add.
52913 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52914 using a unsigned prototype, don't inline.
52915 (base64_decode): Use it.
52917 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52919 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52922 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52924 * lib/save-cwd.c (save_cwd): Remove code to support the case
52925 where fchdir is missing or flaky.
52927 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52929 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52931 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
52933 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52934 AC_LIBSOURCES now does this.
52935 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52936 with new ullong_max module.
52938 2005-01-19 Bruno Haible <bruno@clisp.org>
52940 * modules/sh-quote: New file.
52941 * MODULES.html.sh (Executing programs): Add sh-quote.
52943 2005-01-19 Bruno Haible <bruno@clisp.org>
52945 * lib/sh-quote.h: New file, from GNU gettext.
52946 * lib/sh-quote.c: New file, from GNU gettext.
52948 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52950 Merge from coreutils.
52951 * m4/ullong_max.m4: New file.
52952 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52953 (gl_MACROS): Assume localeconv exists.
52955 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52957 Merge changes from coreutils, as described below in several
52958 changelogs dated today.
52960 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52961 (O_DIRECTORY): Remove; not needed here, since "." must be
52962 a directory. All uses removed.
52963 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
52964 universal on Suns, and we also need to test for IRIX.
52965 Revamp code to use 'if' rather than '#if'.
52966 Avoid unnecessary comparison of cwd->desc to 0.
52968 * lib/utimens.c (futimens): Robustify the previous patch, by checking
52969 for known valid error numbers rather than observed invalid ones.
52971 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52973 * modules/ullong_max: New file.
52975 * modules/chdir-long, modules/openat: New files.
52976 * modules/save-cwd (Depends-on): Depend on chdir-long.
52977 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52979 2005-01-18 Jim Meyering <jim@meyering.net>
52981 Merge from coreutils.
52982 * m4/chdir-long.m4, m4/openat.m4: New files.
52983 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52984 save-cwd.h. Add AC_LIBOBJ for save-cwd.
52985 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52986 is sane and DOES follow symlinks. Besides, testing 20 different
52987 systems found no broken chown implementations.
52988 Prompted by a change in rsync's copy of this macro.
52989 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52991 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52993 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52994 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52995 NULL-means-set-to-current-time semantics.
52996 Remove temporary file immediately, rather than waiting
52997 for configure's at-exit trap code to do it.
52999 2005-01-18 Jim Meyering <jim@meyering.net>
53001 * lib/version-etc.c (version_etc_copyright): Update copyright date.
53003 * lib/utimens.c (futimens): Account for the fact that futimes
53004 can also fail with errno == ENOSYS or errno == ENOENT.
53005 Patch from Dmitry V. Levin.
53007 Change the name of the robust chdir function from chdir to chdir_long.
53008 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53009 (restore_cwd): Use chdir_long, not chdir.
53010 * lib/chdir-long.c: Renamed from chdir.c.
53011 * lib/chdir-long.h: Renamed from chdir.h.
53012 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53015 2005-01-18 Bruno Haible <bruno@clisp.org>
53017 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53018 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53019 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53020 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53021 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53022 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53023 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53024 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53025 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53026 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53027 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53028 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53029 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53030 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53031 Use an all-permissive copyright notice, recommended by RMS.
53033 2005-01-18 Bob Proulx <bob@proulx.com>
53035 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53036 simplify offsetof() macro construct to avoid compile failure with
53037 native HP-UX 11.0 ANSI C compiler.
53039 2005-01-17 Bruno Haible <bruno@clisp.org>
53041 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53042 redundant because stpncpy.m4 takes care of it.
53044 2005-01-17 Bruno Haible <bruno@clisp.org>
53046 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53048 2005-01-17 Bruno Haible <bruno@clisp.org>
53050 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53053 2005-01-17 Bruno Haible <bruno@clisp.org>
53055 * lib/fwriteerror.h (fwriteerror): Change specification to include
53057 * lib/fwriteerror.c: Include <stdbool.h>.
53058 (fwriteerror): At the end, close the file stream. Record whether
53059 stdout was already closed.
53061 2005-01-17 Bruno Haible <bruno@clisp.org>
53063 * lib/execute.c (environ): Declare if needed.
53064 * lib/pipe.c (environ): Likewise.
53065 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53067 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53069 * modules/argp: Depend on vsnprintf
53071 2005-01-10 Jim Meyering <jim@meyering.net>
53073 * modules/closeout (Depends-on): Add atexit.
53075 2005-01-06 Bruno Haible <bruno@clisp.org>
53077 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53079 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
53081 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53082 definitions to be after all include files, to avoid collisions.
53083 Problem reported by Bob Proulx.
53085 2005-01-04 Jim Meyering <jim@meyering.net>
53087 Changes imported from coreutils.
53088 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53089 as the mkstemp template, use a temporary directory and an
53090 8.3-friendly template to avoid trouble on systems like DJGPP.
53091 Reported by Juan M. Guerrero via Stepan Kasal.
53092 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53093 close. Remove the temporary directory right away, rather than waiting
53094 for configure's at-exit trap code to do it.
53095 Suggestion from Stepan Kasal.
53097 2005-01-01 Simon Josefsson <jas@extundo.com>
53099 * gnulib-tool: Print #include directives when --import'ing.
53101 2004-12-28 Simon Josefsson <jas@extundo.com>
53103 * tests/test-base64.c: Include required header files. Remove
53106 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
53108 * modules/error (Depends-on): Remove gettext.
53110 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
53112 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53113 not needed. This removes a dependency on the gettext module.
53114 [defined _LIBC]: Do not include <libintl.h>; not needed.
53116 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
53118 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53119 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53121 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
53123 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53126 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53128 * modules/getdate (Depends-on): Remove alloca-opt.
53130 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53132 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53134 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53136 * lib/argp-parse.c: Include <stddef.h>.
53137 (alignof, alignto): New macros.
53138 (parser_init): Don't assume that void * is aligned sufficiently
53141 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53142 need to extend the stack.
53143 (YYINITDEPTH): New macro, so that the initial stack isn't overly
53146 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53148 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53150 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
53152 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53153 (2004-10-24) change. Apparently this was a false alarm.
53155 * modules/getdate: Depend on alloca-opt, not alloca.
53157 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
53159 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53160 Remove now-obsolete comment about AIX.
53161 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53162 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53163 (YYMAXDEPTH): New macro.
53165 2004-12-18 Simon Josefsson <jas@extundo.com>
53167 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53169 2004-12-18 Bruno Haible <bruno@clisp.org>
53171 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53173 2004-12-18 Bruno Haible <bruno@clisp.org>
53175 * lib/fatal-signal.c (fatal_signals): Make non-const.
53176 (init_fatal_signals): New function.
53177 (uninstall_handlers, install_handlers): Ignore signals that were set to
53179 (at_fatal_signal): Call init_fatal_signals.
53180 (init_fatal_signal_set): Likewise. Ignore signals that were set to
53182 Reported by Paul Eggert.
53184 2004-12-18 Bruno Haible <bruno@clisp.org>
53186 * doc/alloca.texi: New file.
53187 * doc/alloca-opt.texi: New file.
53189 2004-12-17 Jim Meyering <jim@meyering.net>
53191 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53192 Otherwise, install-sh could exit with improper exit status when
53193 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
53195 2004-12-16 Simon Josefsson <jas@extundo.com>
53197 * tests/test-base64.c: Add license.
53199 2004-12-15 Stepan Kasal <address@hidden>
53201 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53203 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
53205 * modules/getcwd (Files): Add m4/d-ino.m4.
53206 Suggested by Mark D. Baushke.
53208 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
53210 * lib/getdate.y (textint): New member "negative".
53211 (time_zone_hhmm): New function.
53212 Expect 14 shift-reduce conflicts, not 13.
53213 (o_colon_minutes): New rule.
53214 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53215 (yylex): Set the "negative" member of signed numbers.
53217 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
53219 * doc/getdate.texi (Time of day items, Time zone items):
53220 Describe new formats +00:00, UTC+00:00.
53222 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
53224 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53225 spurious "-l"s. Problem reported by Stepan Kasal.
53227 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
53229 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53230 in Autoconf 2.59. Problem reported by Mark D. Baushke.
53232 2004-12-04 Simon Josefsson <jas@extundo.com>
53234 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53235 Vandoorselaere <yoann@prelude-ids.org>.
53237 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53239 Changes imported from coreutils.
53240 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53242 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53244 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53246 Changes imported from coreutils.
53247 * lib/hard-locale.c: Assume <locale.h> exists.
53248 Include "strdup.h".
53249 (GLIBC_VERSION): New macro.
53250 (hard_locale): Assume setlocale exists.
53251 Rewrite to avoid #ifdef.
53252 Use strdup rather than malloc + strcpy.
53253 * lib/human.c: Assume <locale.h> exists.
53254 (human_readable): Assume localeconv exists.
53256 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53258 * modules/hard-locale (Depends-on): Add strdup.
53260 2004-12-01 Jakub Jelinek <jakub@redhat.com>
53262 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53263 convert T2, not T. (Imported from libc.)
53265 2004-11-30 Simon Josefsson <jas@extundo.com>
53267 * modules/restrict (License): Change to LGPL.
53269 2004-11-30 Simon Josefsson <jas@extundo.com>
53271 * m4/restrict.m4: Add copyright and copying conditions.
53273 2004-11-30 Simon Josefsson <jas@extundo.com>
53275 * m4/base64.m4: New file.
53277 2004-11-30 Simon Josefsson <jas@extundo.com>
53279 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53282 * tests/test-base64.c: New file.
53284 * modules/base64: New file.
53286 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
53288 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53289 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53291 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53293 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
53295 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53296 (__getcwd.c): Don't restore errno; glibc doesn't.
53297 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53298 first, falling back to our code only if its results look suspicious.
53299 Ensure that the resulting buffer is only as large as necessary.
53301 * lib/readutmp.c: Include readutmp.h first.
53302 Include <errno.h>, since readutmp.h no longer does that.
53303 * lib/readutmp.h: Don't include <errno.h>,
53304 <sys/param.h>, <time.h>; not needed to establish interface.
53305 (errno): Remove decl.
53306 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53307 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53308 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53310 2004-11-28 Simon Josefsson <jas@extundo.com>
53312 * lib/base64.h, base64.c: New file.
53314 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
53316 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53318 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
53320 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53321 (Depends-on): Remove pathmax, same. Add mempcpy.
53322 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53323 (Makefile.am): Append getcwd.h to lib_SOURCES.
53324 (Include): Add getcwd.h.
53325 (Maintainer): Change from Jim Meyering to "all, glibc",
53326 since getdate now uses intended-for-glibc code.
53327 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53328 (Depends-on): Depend on getcwd. Do not depend on pathmax.
53330 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
53332 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53333 HP's ANSI C compiler.
53334 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53335 Declaring int functions causes warnings on some modern systems and
53336 shouldn't be needed to compile on ancient ones.
53337 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53340 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53341 with the following changes.
53342 (__set_errno): Parenthesize properly.
53343 Include <stdbool.h>.
53344 (MIN, MAX, MATCHING_INO): New macros.
53345 (__getcwd): Define with prototype, not K&R form.
53346 Use heuristics to allocate default buffer on stack if possible.
53347 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53348 behavior, and to avoid the PATH_MAX limit when computing
53350 Use MATCHING_INO to compare inode number to file.
53351 Check for arithmetic overflow in size calculations.
53352 Fix bug in reallocation of dot array that caused getcwd to fail
53353 on directories nested deeper than 75.
53354 Be more careful about saving errno on error.
53355 Do not use realloc; use only free+malloc, as this is a bit
53356 more flexible and avoids a needless copy operation.
53357 Do not inspect st_dev and st_ino for symbolic links; POSIX
53358 doesn't specify the latter.
53359 Check for closedir errors.
53360 Avoid needless casts.
53361 Use "#ifdef weak_alias" around weak_alias, to be like other
53363 The following changes to getcwd.c have effect only when used in
53364 gnulib; they have no effect inside glibc proper.
53365 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53366 as alloca isn't used.
53367 (alloca, __alloca): Likewise.
53368 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53369 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53370 unconditionally, as gnulib assumes C89 or better.
53371 Do not include <sys/param.h>.
53372 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53373 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53375 (NULL) [!defined NULL]: Remove; we assume C89 or better.
53376 Include <dirent.h> in a way that is compatible with modern Autoconf.
53377 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53378 New macros, if not already defined.
53379 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53380 Use "_LIBC", not "defined _LIBC", for consistency.
53381 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53383 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53384 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
53385 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53386 credit only to Jim Meyering and adjust the copyright dates.
53387 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53388 <stdlib.h>, <unistd.h>, "pathmax.h".
53389 Instead, include "xgetcwd.h" (first) and "getcwd.h".
53390 (INITIAL_BUFFER_SIZE): Remove.
53391 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53393 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
53395 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53396 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
53397 Use the _ONCE methods, for efficiency.
53398 Check for fcntl.h. In test program, include <errno.h>
53399 and <fcntl.h> if available. Remove old K&R cruft from
53400 test program. Check for common errors in GNU/Linux,
53401 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
53402 don't do AC_LIBOBJ, as that's getcwd.m4's job.
53403 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53404 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
53406 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
53407 accommodate new getcwd.c.
53408 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53409 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53410 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53411 that's all we need now.
53413 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53415 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53416 argp-parse.c depends on getopt internals, that means we should
53417 always use our getopt, to be on the safe side.
53418 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53419 order not to spoil the result of an eventual previous invocation
53420 of gl_GETOPT_SUBSTITUTE.
53422 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53424 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53425 redefinition warnings. To avoid them, include the defines
53426 in `#if !defined __need_getopt ... #endif'. The only place
53427 where __getopt_argv_const is used is in definitions
53428 of getopt_long and getopt_long_only below, which are as well
53429 protected by `#ifndef __need_getopt'.
53430 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53431 __need_getopt after including <stdio.h> and <unistd.h> These
53432 headers might have defined it.
53434 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53436 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53438 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53440 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53441 (futimens): New function, which uses futimes if available.
53442 (futimens, utimens): Support timespec==NULL, with same semantics
53443 as utime and utimens.
53444 * lib/utimens.h (futimens): New decl.
53446 2004-11-23 Jim Meyering <jim@meyering.net>
53448 * lib/getopt_.h: Remove trailing blanks.
53450 2004-11-23 Jim Meyering <jim@meyering.net>
53452 * lib/__fpending.c: Add comment.
53454 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
53456 * modules/canonicalize (Depends-on): Add xreadlink.
53457 Problem reported by James Youngman.
53459 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
53461 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53463 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53464 optopt): Use them instead of invoking ## directly; otherwise, the
53465 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53467 2004-11-19 Bruno Haible <bruno@clisp.org>
53469 * lib/strtok_r.c: Move comments from here...
53470 * lib/strtok_r.h: ... to here.
53472 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53474 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53475 implementations that mishandle size_t overflow.
53477 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53479 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53480 might fail. Problem reported by Yoann Vandoorselaere.
53481 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53482 implementations that mishandle size_t overflow.
53484 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53486 * modules/canon-host (Depends-on): Add strdup.
53488 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53490 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53492 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53494 * lib/canon-host.c: Include "strdup.h".
53495 (canon_host): Use getaddrinfo if available, so that IPv6 works.
53496 Use strdup instead of malloc/strcpy to duplicate strings.
53498 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53499 (human_space_before_unit): New constant.
53500 * lib/human.c (human_readable): Support it.
53502 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53503 (xgetcwd): Set errno correctly when failing.
53504 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53505 the failure is actually due to a PATH_MAX problem.
53507 Further getopt changes to make it more likely that glibc will
53508 buy the changes back.
53509 * lib/getopt.c (POSIXLY_CORRECT): New constant.
53510 (getopt): Use it, so to preserve glibc semantic
53511 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53512 when compiling for libc.
53513 * lib/getopt_.h (__getopt_argv_const): Bring it back.
53514 (getopt_long, getopt_long_only): Use it.
53516 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53517 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
53518 (getopt): Argv is now char * const *, as per standard.
53519 (_getopt_internal_r, _getopt_internal): Argv is now char **,
53520 not char *__getopt_argv_const *.
53521 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53522 _getopt_long_only_r): Likewise.
53523 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53524 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53525 _getopt_long_r, _getopt_long_only_r): Likewise.
53526 * lib/getopt_.h (__getopt_argv_const): Remove.
53527 (getopt): Argv is now char * const *, as per standard.
53529 * lib/getdate.y (tORDINAL): New token.
53530 (day, relunit): Allow it for relative times.
53531 (relative_time_table): Use tORDINAL for ordinals.
53533 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53535 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53536 Document that "second" isn't allowed as an ordinal number.
53538 2004-11-16 Jim Meyering <jim@meyering.net>
53540 * modules/closeout (Depends-on): Add fpending.
53542 2004-11-15 Jim Meyering <jim@meyering.net>
53544 * lib/closeout.c: Include "__fpending.h" once again.
53545 Include <stdbool.h>.
53546 (close_stdout): Don't fail just because stdout was closed initially,
53547 since some programs don't write to stdout in the normal course of
53548 operation (other than --version and --help), and we don't want this
53549 function to make e.g. `touch file >&-' fail.
53550 But do fail if it was closed and someone has tried to write to it.
53551 E.g., `printf foo >&-' must fail.
53553 2004-11-13 Jim Meyering <jim@meyering.net>
53555 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53557 2004-11-12 Simon Josefsson <jas@extundo.com>
53559 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53560 small doc fix is still pending.
53562 2004-11-11 Simon Josefsson <jas@extundo.com>
53564 * modules/strtok_r: New file.
53566 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53569 2004-11-11 Simon Josefsson <jas@extundo.com>
53571 * m4/strtok_r.m4: New file.
53573 * m4/getopt.m4: Replace opterr.
53575 2004-11-11 Simon Josefsson <jas@extundo.com>
53577 * lib/strtok_r.h, strtok_r.c: New file.
53579 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53581 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53582 of replacing opterr, getopt, etc. This should handle the
53583 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53585 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53587 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53588 we can stop lying to compilers about the constness of argv when we
53589 are compiled outside glibc.
53590 (getopt, getopt_long, getopt_long_only): Use it.
53591 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53592 _getopt_internal, getopt): Likewise.
53593 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53594 _getopt_long_only_r): Likewise.
53595 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53596 _getopt_long_r, _getopt_long_only_r): Likewise.
53598 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53599 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53600 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53601 the other external symbols.
53602 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53603 declaration, since the above renaming now works around collisions.
53605 2004-11-11 Jim Meyering <jim@meyering.net>
53607 * lib/linebreak.c: Remove trailing blanks.
53608 * lib/alloca_.h: Likewise.
53609 * lib/acosl.c: Likewise.
53610 * lib/euidaccess.c: Likewise.
53611 * lib/allocsa.h: Likewise.
53613 2004-11-10 Simon Josefsson <jas@extundo.com>
53615 * m4/getaddrinfo.m4: New file.
53617 2004-11-10 Simon Josefsson <jas@extundo.com>
53619 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53621 2004-11-10 Simon Josefsson <jas@extundo.com>
53623 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53626 * modules/getaddrinfo: New file.
53628 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53630 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53632 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53634 * lib/mktime.c (SHR): New macro, which is a portable
53635 substitute for >> that should work even on Crays.
53636 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53637 Problem reported by Mark D. Baushke in
53638 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53639 * lib/getdate.y (SHR): Likewise.
53641 * lib/strftime.c (SHR): Likewise.
53643 * lib/quotearg.c (struct quoting_options): Use unsigned int for
53644 quote_these_too, so that right shifts are well defined. All uses
53647 2004-11-10 Jim Meyering <jim@meyering.net>
53649 Ensure that no close failure goes unreported.
53650 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
53651 return early when it seems there's nothing to flush.
53652 Don't include __fpending.h.
53654 2004-11-10 Jim Meyering <jim@meyering.net>
53656 * modules/closeout (Depends-on): Remove fpending.
53658 2004-11-10 Jim Meyering <jim@meyering.net>
53660 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53662 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53664 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
53666 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53667 and AC_REQUIRE when possible, to avoid duplicate checks.
53668 Check for <wchar.h>.
53670 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53672 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53674 2004-11-09 Bruno Haible <bruno@clisp.org>
53676 * m4/sockpfaf.m4: New file.
53678 2004-11-05 Bruno Haible <bruno@clisp.org>
53680 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53681 Reported by Mark D. Baushke <mdb@cvshome.org>.
53683 2004-11-04 Bruno Haible <bruno@clisp.org>
53685 2004-09-11 Bruno Haible <bruno@clisp.org>
53686 * allocsa.valgrind: New file.
53687 2004-02-06 Bruno Haible <bruno@clisp.org>
53688 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53689 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53690 Reported by Christopher Seip <chris.seip@hp.com>.
53692 2004-11-04 Bruno Haible <bruno@clisp.org>
53694 * modules/allocsa (Files): Add lib/allocsa.valgrind.
53695 (Makefile.am): Distribute it.
53697 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
53699 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53700 with errno == ERANGE if the buffer is too small.
53701 Problem reported by Mark D. Baushke.
53703 2004-11-03 Albert Chin <china@thewrittenword.com>
53704 Paul Eggert <eggert@cs.ucla.edu>
53706 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53707 equivalent, substitute $ac_type for equivalent type rather than
53708 blindly using uint32_t *always* which won't work if uint32_t is not
53709 available. Define _UINT32_T to work around typedef of uint32_t if
53710 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53713 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53715 * m4/jm-macros.m4: Sync from coreutils.
53716 (gl_MACROS): Check for mbrlen, for pathchk.
53717 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53719 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53721 * lib/xreadlink.c (MAXSIZE): New macro.
53722 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
53723 size does not exceed MAXSIZE. Avoid cast.
53724 As suggested by Mark D. Baushke in
53725 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53726 if readlink fails with buffer size just under MAXSIZE, try again
53729 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53731 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53733 2004-11-02 Derek R. Price <derek@ximbiot.com>
53734 and Paul Eggert <eggert@cs.ucla.edu>
53736 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53737 (get_date): Overparenthesize to avoid GCC warning.
53739 2004-11-02 Bruno Haible <bruno@clisp.org>
53741 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53744 2004-11-02 Bruno Haible <bruno@clisp.org>
53746 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53747 function returns void.
53749 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53751 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53752 fflush_unlocked, flockfile, funlockfile, funlockfile,
53753 fputs_unlocked, putc_unlocked.
53755 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53757 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53758 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53761 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53763 * modules/getdate (Files): Add doc/getdate.texi.
53764 (Depends-on): Add setenv, xalloc.
53766 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53768 * lib/getdate.y: Add support for TZ="foo" within a date string.
53769 Fix some bugs near time_t boundaries. Reject dates with
53770 out-of-range components, e.g., "Sept 31".
53771 Include <stdlib.h>, "setenv.h", "xalloc.h".
53772 (ISDIGIT_LOCALE): Remove; unused.
53773 Note that the TZ and time functions used here are not reentrant.
53774 (mktime_ok, get_tz): New functions.
53775 (TZBUFSIZE): New constant.
53776 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
53777 This requires that we sometimes generate our own TZ="XXX..." setting.
53779 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53781 * doc/getdate.texi: New file, from coreutils with modifications for
53782 the new TZ parsing.
53784 2004-10-27 Derek R. Price <derek@ximbiot.com>
53786 * lib/mktime.c (not_equal_tm): Remove redundant check.
53788 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53790 * modules/regex (lib_SOURCES): Add regex.c.
53791 Reported by James Youngman in
53792 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53794 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53796 * lib/getdate.y: Use Bison 1.875 features, and some minor
53797 code cleanups. This change does not affect semantics.
53798 Don't include <stdlib.h>; no longer needed.
53799 Don't include unlocked-io.h; only the "#if TEST" code uses
53800 stdio, and performance isn't crucial there.
53801 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53802 Bison 1.875 features as described below.
53803 All uses of "PC." replaced by "pc->".
53804 (YYSTYPE): Add a forward declaration.
53805 (yylex, yyerror): Use full prototypes in forward decls.
53806 Use "%pure-parser" rather than obsolescent "%pure_parser".
53807 Use %parse-param and %lex-param instead of obsolescent
53808 YYPARSE_PARAM and YYLEX_PARAM.
53809 (meridian_table, month_and_day_table, time_units_table,
53810 relative_time_table, time_zone_table, military_table,
53811 lookup_zone, lookup_word, get_date):
53812 Use NULL instead of 0 where appropriate.
53813 (to_hour): Avoid abort (), to avoid a dependency on
53815 (yyerror, yylex): Now accepts parser_control * arg.
53816 (main) [TEST]: Use '\0' rather than 0 for char.
53818 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53820 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53822 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53824 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53825 It's now the caller's responsibility to handle the case where
53826 !HAVE_GETPAGESIZE && !defined getpagesize.
53828 * lib/mktime.c (leapyear): Arg is long int, not int.
53830 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
53832 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53834 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
53836 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53837 missing. Problem reported by James Youngman.
53839 2004-10-16 Simon Josefsson <jas@extundo.com>
53841 * gnulib-tool: Fix comments. Fix parse problem.
53842 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53844 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
53846 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53847 implementation of getopt_long. Problem reported by Alexander Taler in:
53848 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53850 2004-10-15 Bruno Haible <bruno@clisp.org>
53852 * gnulib-tool: Untabify. Initialize supplied_libname.
53853 (func_usage): More homogenous output.
53854 (func_modules_transitive_closure, func_modules_to_filelist,
53855 func_emit_lib_Makefile_am): New functions.
53856 (func_import): New function, extracted from big case statement. Use
53857 func_get_license, func_modules_transitive_closure,
53858 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53859 opt_lgpl. Don't use test -a, as it's not portable.
53860 (func_create_testdir): Use func_modules_transitive_closure,
53861 func_modules_to_filelist, func_emit_lib_Makefile_am.
53863 2004-10-15 Bruno Haible <bruno@clisp.org>
53865 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53867 2004-10-15 Bruno Haible <bruno@clisp.org>
53869 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53870 the portions belonging to each module.
53871 Suggested by Derek Robert Price <derek@ximbiot.com>.
53873 2004-10-12 Simon Josefsson <jas@extundo.com>
53875 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53876 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53879 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53881 * modules/vsnprintf: New file.
53883 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53885 * m4/vsnprintf.m4: New file.
53887 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53889 * lib/vsnprintf.h: New file.
53890 * lib/vsnprintf.c: New file.
53892 2004-10-11 Bruno Haible <bruno@clisp.org>
53894 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53897 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
53899 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53901 2004-10-07 Bruno Haible <bruno@clisp.org>
53903 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53904 fits into the provided buffer.
53906 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
53908 * lib/diacrit.c, diacrit.h: Add GPL notice.
53910 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53912 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53913 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53914 This avoids a potential constant-folding bug.
53916 2004-10-05 Bruno Haible <bruno@clisp.org>
53918 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53919 for the declaration of strsep.
53921 2004-10-05 Bruno Haible <bruno@clisp.org>
53923 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53925 2004-10-04 Simon Josefsson <jas@extundo.com>
53927 * modules/memmem: New file.
53928 * tests/test-memmem.c: New file.
53929 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53931 2004-10-04 Simon Josefsson <jas@extundo.com>
53933 * m4/memmem.m4: New file.
53935 2004-10-04 Simon Josefsson <jas@extundo.com>
53937 * lib/memmem.h: New file.
53938 * lib/memmem.c: New file, taken from glibc.
53940 2004-10-04 Simon Josefsson <jas@extundo.com>
53942 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53943 '#ifdef USE_UNLOCKED_IO'.
53945 2004-10-04 Simon Josefsson <jas@extundo.com>
53947 * config/srclist.txt: Add memmem from glibc.
53949 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53951 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53953 * modules/argmatch, modules/argp, modules/closeout, modules/error,
53954 modules/exclude, modules/getdate, modules/getline,
53955 modules/getndelim2, modules/getpass, modules/getpass-gnu,
53956 modules/getusershell, modules/linebuffer, modules/md5,
53957 modules/mountlist, modules/posixtm, modules/readtokens,
53958 modules/readutmp, modules/regex, modules/sha1,
53959 modules/version-etc, modules/yesno:
53960 Remove dependency on unlocked-io.
53962 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53964 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
53966 * m4/unlocked-io.m4: Add copyright notice.
53967 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53969 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53971 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
53972 * lib/xmalloc.c (xmemdup): Likewise.
53973 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53974 XFREE): Remove these long-obsolescent macros.
53975 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53976 * lib/xstrdup.c: Remove.
53978 * lib/regex.c (re_comp): Cast gettext return value to char *,
53979 Problem reported by Martin Neitzel via Mark D. Baushke.
53981 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53983 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53984 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53985 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53986 regex.c, sha1.c, version-etc.c, yesno.c:
53987 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53988 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53989 the includer's responsibility.
53991 Sync from coreutils.
53993 * lib/modechange.c (mode_compile): Don't decrement a pointer that
53994 points to the start of a string, as the C Standard says the
53995 resulting behavior is undefined.
53997 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53998 simple -> simple_backups, numbered_existing ->
53999 numbered_existing_backups, numbered -> numbered_backups
54000 to avoid shadowing problems. All uses changed.
54001 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54002 * lib/backupfile.c (check_extension, numbered_backup):
54003 Rename locals to avoid shadowing 'basename'.
54004 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54007 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54008 * lib/.cvsignore: Add getopt.h.
54010 2004-10-04 Bruno Haible <bruno@clisp.org>
54012 * modules/README: New file.
54013 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54016 2004-10-02 Jim Meyering <jim@meyering.net>
54018 * lib/dirfd.h, getpagesize.h: Add copyright notice.
54020 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54022 * modules/strsep: New file.
54024 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54026 * m4/strsep.m4: New file.
54028 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54030 * lib/strsep.h: New file.
54031 * lib/strsep.c: New file.
54033 2004-10-01 Simon Josefsson <jas@extundo.com>
54035 * lib/snprintf.c (snprintf): Handle size==0.
54037 2004-10-01 Simon Josefsson <jas@extundo.com>
54038 Bruno Haible <bruno@clisp.org>
54040 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54041 (snprintf): Declare 'args'.
54043 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
54045 * lib/snprintf.c: Remove comments as to why each header is needed.
54047 2004-10-01 Bruno Haible <bruno@clisp.org>
54049 * MODULES.html.sh: Add strsep.
54051 2004-09-30 Simon Josefsson <jas@extundo.com>
54053 * modules/snprintf: New file.
54055 2004-09-30 Simon Josefsson <jas@extundo.com>
54057 * m4/snprintf.m4: New file.
54059 2004-09-30 Simon Josefsson <jas@extundo.com>
54061 * lib/snprintf.h, lib/snprintf.c: New files.
54063 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
54065 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54066 (hol_entry_help): Never translate an empty string.
54067 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54068 * lib/argp.h (OPTION_NO_TRANS): New option.
54070 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54072 * modules/argp (Maintainer): Replace Simon Josefsson
54073 by Sergey Poznyakoff.
54075 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54077 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54078 changes merged back into glibc.
54080 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54082 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54084 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
54086 * lib/xvasprintf.c: Include xalloc.h.
54087 (xvasprintf): Use xalloc_die, not xmalloc_die.
54089 2004-09-29 Bruno Haible <bruno@clisp.org>
54091 * modules/alloca-opt: New file, derived from modules/alloca.
54092 * modules/allocsa: Depend on alloca-opt instead of alloca.
54093 * modules/setenv: Likewise.
54094 * modules/vasnprintf: Likewise.
54095 * MODULES.html.sh: Add alloca-opt.
54097 2004-09-28 Simon Josefsson <jas@extundo.com>
54099 * gnulib-tool: New parameter --lgpl, to asseert that modules are
54100 LGPL, and to replace license template from GPL to LGPL.
54102 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
54104 * modules/dummy: Change license to LGPL.
54106 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
54108 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54110 2004-09-24 Simon Josefsson <jas@extundo.com>
54112 * modules/minmax (License): Change from GPL to LGPL.
54114 2004-09-23 Simon Josefsson <jas@extundo.com>
54116 * gnulib-tool (--import): Typo.
54118 2004-09-23 Simon Josefsson <jas@extundo.com>
54120 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54122 2004-09-22 Bruno Haible <bruno@clisp.org>
54124 * modules/*: Add 'License' field.
54125 * gnulib-tool: Accept --extract-license option.
54126 (func_get_license): New function.
54128 2004-09-21 Bruno Haible <bruno@clisp.org>
54130 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54131 Reported by Simon Josefsson.
54133 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
54135 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54136 gl_AC_TYPE_LONG_LONG.
54138 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
54140 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54142 2004-09-18 Simon Josefsson <jas@extundo.com>
54143 and Paul Eggert <eggert@cs.ucla.edu>
54145 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54146 calls with autoreconf. Define GL_LIB.
54148 2004-09-14 Karl Berry <karl@gnu.org>
54150 * config/srclist.txt: unsync setenv.c, sigh.
54152 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
54154 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54155 Problem reported by Bruno Haible in:
54156 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54158 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
54160 * config/srclist.txt: Comment out argp-pvh.c.
54162 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
54164 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54165 in case some system header has #define'd it. Problem reported by
54166 Soeren D. Schulze in
54167 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54169 2004-09-09 Karl Berry <karl@gnu.org>
54171 * regex.[ch]: delete from the root. These were supposed to be
54172 synced with emacs cvs, but this has not happened for about
54173 a year, and anyway nothing else uses emacs regex.[ch].
54174 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54175 lib/regex[.ch] is untouched.
54177 2004-09-09 Bruno Haible <bruno@clisp.org>
54179 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54181 2004-09-09 Bruno Haible <bruno@clisp.org>
54183 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54185 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54187 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
54189 * modules/xvasprintf: New file.
54190 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54192 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
54194 * lib/xvasprintf.h: New file.
54195 * lib/xvasprintf.c: New file.
54196 * lib/xasprintf.c: New file.
54198 2004-09-08 Bruno Haible <bruno@clisp.org>
54200 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54202 2004-09-08 Bruno Haible <bruno@clisp.org>
54204 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54205 length is > INT_MAX.
54206 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54209 2004-09-08 Bruno Haible <bruno@clisp.org>
54211 * lib/stdint_.h: New file, taken from GNU clisp.
54213 2004-09-08 Bruno Haible <bruno@clisp.org>
54214 Oskar Liljeblad <oskar@osk.mine.nu>
54216 * modules/stdint: New file.
54217 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54219 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54221 Import from coreutils.
54222 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54223 strings on unbounded length. alloca's performance benefits aren't
54224 that important here.
54225 (V_STRDUP): Remove.
54226 (parse_with_separator): New function, with most of the internals
54227 of the old parse_user_spec. Allow user to omit both user and group,
54228 for compatibility with FreeBSD.
54229 Clone only the user name, not the entire spec.
54230 Do not set *uid, *gid unless entirely successful.
54231 Avoid memory leak in some failing cases.
54232 Fix regression for USER.GROUP reported by Dmitry V. Levin in
54233 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54234 (parse_user_spec): Rewrite to use parse_with_separator.
54236 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54238 * modules/userspec: Don't depend on alloca.
54240 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54242 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54244 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
54246 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54247 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54248 utimecmp, utimens, xnanosleep. Rename sha to sha1.
54250 2004-08-16 Simon Josefsson <jas@extundo.com>
54252 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54253 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54254 Add --dry-run for --import.
54255 Let user provided command line parameters override configure.ac
54258 2004-08-12 Simon Josefsson <jas@extundo.com>
54260 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54261 as discussed with Paul Eggert in threads rooted at
54262 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54264 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54265 Before, the test was empty, and relied on ELIDE_CODE in source
54267 (gl_PREREQ_GETOPT): New macro.
54268 (gl_GETOPT): Use them.
54270 2004-08-12 Simon Josefsson <jas@extundo.com>
54272 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54273 * lib/getopt_.h: Renamed from getopt.h.
54275 2004-08-12 Simon Josefsson <jas@extundo.com>
54277 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54278 Change default library name from libfoo to libgnu.
54279 Now, if you have a configure.ac that says:
54282 gl_MODULES(error getopt etcetera)
54284 you can import all you need by running:
54285 ../gnulib/gnulib-tool --import
54287 * modules/getopt (Files): Rename getopt.h to getopt_.h.
54288 (Makefile.am): Rewrite, use logic from argz.
54289 (Include): Use <getopt.h> instead of "getopt.h".
54291 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54293 * modules/argp (Files): Add m4/unlocked-io.m4.
54294 (Depends-on): Add extensions.
54296 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54298 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54299 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54300 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54301 Check for program_invocation_name, program_invocation_short_name,
54302 flockfile, funlockfile, features.h, _getopt_long_only_r.
54304 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54306 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54307 its complicated substitute.
54308 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54309 and program_invocation_name.
54310 (__argp_basename) [!_LIBC]: Remove; the only use was
54311 replaced by its body.
54312 (__argp_short_program_name): Change condition from
54313 !defined __argp_short_program_name to
54314 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54315 to match argp-namefrob.h.
54316 (__argp_failure): Don't assume strerror_r returns char *.
54317 * lib/argp-parse.c (N_): Define unconditionally.
54318 (argp_default_options): Fill out initializers with 0 to avoid
54321 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54323 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54326 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54328 Merge from coreutils.
54330 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54332 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54333 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54335 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54337 Merge from coreutils.
54339 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54340 wmemchr or wmemcpy. Problem reported by Robert Dahlem
54341 for Reliant Unix 5.43.
54343 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54344 (union fooround): Use uintmax_t, not long int.
54345 The rest is a merge from libc:
54346 [defined _LIBC]: Include <shlib-compat.h>.
54347 (_obstack) [defined _LIBC]: Remove after 2.3.4.
54349 * lib/settime.c (settime): Recode to avoid warning with
54352 * lib/strverscmp.c: Convert to UTF-8.
54354 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54356 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54359 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54361 * modules/xalloc-die: New file.
54362 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54364 * modules/md5 (Files): Add m4/uint32_t.m4.
54365 * modules/sha1: Renamed from modules/sha.
54367 Rename lib/sha.h to lib/sha1.h.
54368 Rename lib/sha.c to lib/sha1.c.
54369 Rename m4/sha.m4 to m4/sha1.m4.
54370 (lib_SOURCES): Likewise.
54371 (configure.ac): Rename gl_SHA to gl_SHA1.
54372 (Include): sha.h -> sha1.h.
54374 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54376 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54377 * m4/sha1.m4: Renamed from sha.m4.
54378 (gl_SHA1): Renamed from gl_SHA. All uses changed.
54380 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54382 * lib/obstack.h (obstack_empty_p):
54383 Don't assume that chunk->contents is suitably aligned.
54384 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54385 Likewise. Problem reported by Benno in
54386 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54388 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54389 readable. This could be improved further but it'd take some work.
54391 2004-08-08 Simon Josefsson <jas@extundo.com>
54393 * modules/xgethostname (Depends-on): Remove exit and error (not
54396 * modules/getpass-gnu: Add getpass.h.
54397 (Depends-on): Add stdbool.
54398 * modules/getpass: Add getpass.h.
54400 2004-08-08 Simon Josefsson <jas@extundo.com>
54402 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54403 Check getpass declaration.
54405 2004-08-08 Simon Josefsson <jas@extundo.com>
54407 * lib/xgethostname.c: Don't include error.h (not used).
54409 * lib/getpass.h: Add.
54410 * lib/getpass.c: Include getpass.h first.
54412 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
54414 * lib/xalloc-die.c: New file.
54415 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54417 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54418 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54420 (_, N_, xalloc_die): Move to xalloc-die.c.
54421 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54422 so that we needn't mess with xalloc_msg_memory_exhausted.
54424 * lib/sha1.h: Renamed from sha.h.
54425 (SHA1_H): Renamed from _SHA_H.
54426 (sha1_ctx): Renamed from sha_ctx.
54427 (sha1_init_ctx): Renamed from sha_init_ctx.
54428 (sha1_process_block): Renamed from sha_process_block.
54429 (sha1_process_bytes): Renamed from sha_process_bytes.
54430 (sha1_finish_ctx): Renamed from sha_finish_ctx.
54431 (sha1_read_ctx): Renamed from sha_read_ctx.
54432 (sha1_stream): Renamed from sha_stream.
54433 (sha1_buffer): Renamed from sha_buffer.
54434 * lib/sha1.c: Likewise; renamed from sha.c.
54435 Do not include <sys/types.h>.
54436 Include <stddef.h> rather than <stdlib.h>.
54438 2004-08-08 Bruno Haible <bruno@clisp.org>
54440 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54441 FILESYSTEM_PREFIX_LEN.
54442 * lib/progreloc.c: Likewise.
54443 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54445 2004-08-06 Simon Josefsson <jas@extundo.com>
54447 * modules/progname (Depends-on): Don't depend on stdbool.
54449 2004-08-06 Simon Josefsson <jas@extundo.com>
54451 * modules/getsubopt: New file.
54452 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54455 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54457 More merge from coreutils.
54459 * m4/utimens.m4, m4/utimecmp.m4: New files.
54460 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54461 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54462 prereq.m4, sha.m4: Import changes from coreutils.
54464 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54466 More merge from coreutils.
54467 * modules/raise, modules/readtokens0, modules/utimens:
54468 * modules/utimecmp, module/xnanosleep: New files.
54469 * modules/strftime: Add lib/strftime.h.
54470 Change include from <time.h> to "strftime.h".
54471 * modules/yesno: Add lib/yesno.h.
54472 * modules/backupfile: Remove lib/addext.c.
54473 * modules/euidaccess: Add stat-macros.h.
54474 * modules/canonicalize, modules/euidaccess,
54475 modules/filemode, modules/lchown, modules/makepath,
54476 modules/rmdir, modules/stat: Likewise.
54478 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54481 * lib/argp-help.c (make_hol, hol_append): Don't assume that
54482 SIZE_MAX is a valid preprocessor constant.
54483 (__argp_basename): Change from "#ifndef _LIBC"
54484 to "#ifndef __argp_short_program_name", so that
54485 we don't compile these functions for tar.
54487 More merges from coreutils.
54488 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54489 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54490 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54491 * lib/addext.c: Remove; no longer needed.
54492 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54493 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54494 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54495 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54496 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54497 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54498 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54499 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54500 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54501 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54502 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54503 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54504 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54505 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54506 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54507 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54508 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54509 Import changes from coreutils.
54511 2004-08-05 Simon Josefsson <jas@extundo.com>
54513 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54515 2004-08-05 Simon Josefsson <jas@extundo.com>
54517 * m4/getsubopt.m4: New file.
54519 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54521 Merge from coreutils.
54523 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54524 * m4/getcwd-path-max.m4: New files.
54526 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54527 FILESYSTEM_PREFIX_LEN ->
54528 FILE_SYSTEM_PREFIX_LEN.
54529 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54530 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54531 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54532 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54534 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54535 prerequisite modules now handle the DOS stuff.
54536 Don't check for unistd.h.
54538 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54540 Merge from coreutils.
54542 * lib/.gdb-history: Remove; this doesn't belong here.
54544 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54545 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54546 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54547 * lib/getcwd.c: New files.
54549 * lib/dirname.h: Include <stdbool.h>.
54550 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54551 for consistency with POSIX terminology. All uses changed.
54552 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54553 (strip_trailing_slashes): Use bool for booleans.
54554 * lib/stripslash.c (strip_trailing_slashes): Likewise.
54556 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54557 sometimes returns a positive errno value even when it succeeds.
54558 (print_errno_message) [!LIBC]: Fall back on strerror if
54559 __strerror_r fails.
54561 * lib/path-concat.c (mempcpy): Don't define if a system header defines
54562 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54563 (longest_relative_suffix): New function.
54564 (path_concat): Use it. Assume first argument is not NULL.
54565 Port to DOS. Omit redundant separators.
54566 Report an error instead of returning NULL.
54567 Use mempcpy instead of memcpy.
54568 (xpath_concat): Remove: not declared or used.
54570 * lib/same.h: Include <stdbool.h>
54571 (same_name): Return bool, not int.
54572 * lib/same.c (same_name): Likewise.
54573 (errno): Don't declare; we assume C89 or better now.
54575 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54576 if not already defined.
54578 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54579 * lib/dup-safer.c (errno): Likewise.
54581 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54583 Merge from coreutils.
54584 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54585 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54586 * modules/path-concat: Don't depend on strdup.
54588 2004-08-03 Simon Josefsson <jas@extundo.com>
54590 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54591 * lib/progname.h: Don't include stdbool.h.
54593 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54595 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54596 * MODULES.html.sh (func_all_modules): Remove fatal.
54598 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54600 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54602 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54604 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54607 2004-08-02 Simon Josefsson <jas@extundo.com>
54609 * lib/getsubopt.h: New file, with comments from Bruno Haible.
54610 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54611 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54613 2004-08-01 Simon Josefsson <jas@extundo.com>
54615 * lib/xgetdomainname.c: Include stdlib.h, for free().
54617 2004-07-19 Bruno Haible <bruno@clisp.org>
54619 * MODULES.html.sh (func_all_modules): Add dummy.
54621 2004-07-16 Simon Josefsson <jas@extundo.com>
54623 * modules/dummy: New file.
54625 2004-07-16 Simon Josefsson <jas@extundo.com>
54627 * lib/dummy.c: New file.
54629 2004-07-16 Bruno Haible <bruno@clisp.org>
54631 * lib/backupfile.h: Add extern "C" for C++.
54632 * lib/closeout.h: Likewise.
54633 * lib/copy-file.h: Likewise.
54634 * lib/findprog.h: Likewise.
54635 * lib/full-write.h: Likewise.
54636 * lib/pathname.h: Likewise.
54637 * lib/progname.h: Likewise.
54638 * lib/stpcpy.h: Likewise.
54639 * lib/stpncpy.h: Likewise.
54640 * lib/strcase.h: Likewise.
54641 * lib/strstr.h: Likewise.
54642 * lib/xalloc.h: Likewise.
54644 * lib/mbswidth.h: Add extern "C" for C++.
54645 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54647 2004-07-13 Robert Millan <robertmh@gnu.org>
54649 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54651 2004-07-09 Simon Josefsson <jas@extundo.com>
54653 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
54654 failed without this.)
54656 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54658 * modules/chown (Files): Add lib/fchown-stub.c, since
54659 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54661 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54663 * lib/fchown-stub.c: New file.
54665 2004-06-24 Jim Meyering <jim@meyering.net>
54667 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54669 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54671 * modules/argz: Omit "#include".
54673 * MODULES.html.sh (func_all_modules): Add calloc, to match
54674 2004-06-01 addition of calloc module.
54676 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54678 * m4/argz.m4: New file, which is autoupdated from libtool.
54680 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54682 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54685 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54687 * config/srclist-update: Don't insist on "USA." before the
54688 close-comment, as libtool omits the period and puts the */ on a
54690 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54691 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54693 2004-06-22 Gary V. Vaughan <gary@gnu.org>
54695 * modules/argz: New file.
54696 * MODULES.html.sh (func_all_modules): Add argz.
54698 2004-06-12 Jim Meyering <jim@meyering.net>
54699 and Paul Eggert <eggert@cs.ucla.edu>
54701 * modules/hash (Files): Add lib/xalloc.h.
54702 * modules/pipe (Depends-on): Add wait-process.
54703 * modules/stat (Depends-on): Add xalloc.
54704 * modules/userspec (Files): Add lib/userspec.h.
54707 Upgrade from gettext-0.13.
54708 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54709 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54710 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54712 2004-06-10 Jim Meyering <jim@meyering.net>
54714 * lib/calloc.c: New file.
54716 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
54718 * lib/getdate.y (yylex): Allow space between sign and number.
54719 Problem reported by Dan Jacobson.
54721 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54723 Merge from coreutils CVS.
54725 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54726 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54727 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54728 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54729 xstrtol.m4: Fix copyright date and/or serial number.
54731 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54732 See if we need an fchown replacement.
54733 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54734 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54735 and use the replacement function if we detect either defect.
54737 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54740 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54741 and Jim Meyering <jim@meyering.net>
54743 Merge from coreutils CVS.
54745 * lib/stat-macros.h: New file, with contents from file-type.h
54746 and coreutils' system.h.
54747 * lib/file-type.c: Include "stat-macros.h".
54748 * lib/file-type.h (file_type): Move all macro definitions to new file,
54751 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54752 Wrap old code with this conditional.
54753 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54754 function that does not dereference symlinks.
54755 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54757 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54758 dependency problems.
54759 (xreadlink): Accept new arg SIZE, for efficiency.
54760 All decls and uses changed.
54761 * lib/xreadlink.h: Include <stddef.h>, for size_t.
54763 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54764 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54766 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54769 2004-06-01 Jim Meyering <jim@meyering.net>
54771 * m4/calloc.m4: New file.
54773 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
54775 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54776 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
54777 Also, fix a typo in a diagnostic.
54779 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54781 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54782 or AC_FUNC_REALLOC.
54784 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54786 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54787 macros to be defined.
54788 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54789 the allocator returns NULL because the requested size is zero.
54791 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
54793 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54794 var. Add comment explaining why libc still defines it. This
54795 merges the following patch from glibc:
54796 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54798 2004-05-20 Andreas Schwab <schwab@suse.de>
54800 * m4/free.m4: Replace free if it not known to work, not the other
54803 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
54805 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
54806 present in glibc since revision 1.1 of this file.
54807 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54808 obstack_alignment_mask, obstack_alloc, obstack_base,
54809 obstack_blank, obstack_blank_fast, obstack_chunk_size,
54810 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54811 obstack_grow0, obstack_init, obstack_int_grow,
54812 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54813 obstack_next_free, obstack_object_size, obstack_ptr_grow,
54814 obstack_ptr_grow_fast, obstack_room): Remove declarations of
54815 nonexistent functions.
54817 2004-05-18 Karl Berry <karl@gnu.org>
54819 * config/srclist.txt: break link for vasnprintf.c.
54821 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54823 Port obstack to the AS/400, where pointers are 16 bytes wide and
54824 you cannot cast an integer to a valid pointer. This patch is
54825 currently waiting to be integrated into glibc; see
54826 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54828 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54829 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54830 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54831 (struct obstack): temp member is now a union of a pointer and
54832 an integer, instead of an integer. All integer uses changed.
54833 This does not affect the physical layout of struct obstack,
54834 except on hosts (like the AS/400) where the size or alignment of
54835 void * is greater than that of ptrdiff_t.
54836 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54837 __STDC__)]: Store temporary in pointer member of union, not
54839 * lib/obstack.c: Include <stddef.h>, for offsetof.
54840 (struct fooalign): Remove; it doesn't need a name.
54841 (union fooround): Change double to long double, and add void *.
54842 (DEFAULT_ALIGNMENT): Use offsetof to compute.
54843 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54844 not a macro. Hence the values are always int; so remove all
54845 casts-to-int in uses.
54847 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54849 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54850 we can get this patch merged into glibc.
54852 2004-05-17 Derek R. Price <derek@ximbiot.com>
54853 Paul Eggert <eggert@cs.ucla.edu>
54855 * m4/argp: Depend on alloca.
54857 2004-05-17 Derek R. Price <derek@ximbiot.com>
54858 Paul Eggert <eggert@cs.ucla.edu>
54860 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54863 2004-05-17 Bruno Haible <bruno@clisp.org>
54865 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54866 precision that consists of a '.' followed by an empty digit string.
54867 Patch by Tor Lillqvist <tml@iki.fi>.
54869 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54871 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54872 for backward compatibility with older code. We need our own
54873 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
54874 it under some other name, and our alloca.h will define it.
54876 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54877 Derek Price <derek@ximbiot.com>
54879 * lib/alloca.c: Include <alloca.h>, to get our interface.
54880 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54881 include <alloca.h> first. Use C89 prototype for alloca; this
54882 requires including <stddef.h> for size_t. Use extern "C" if C++.
54883 Use #elif for simplicity, since we can assume C89 now.
54884 Don't try to source the system alloca.h since it will not be found
54885 and to prevent recursively including its replacement.
54886 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54887 * lib/regex.c: Likewise.
54889 2004-05-16 Derek Price <derek@ximbiot.com>
54890 Paul Eggert <eggert@cs.ucla.edu>
54892 getline cleanup. This changes the getndelim2 API: both order of
54893 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54896 * lib/getline.c: Don't include stddef.h or stdio.h, since our
54897 interface does that.
54898 (getline): Always use getdelim, so that we don't have two
54899 copies of this code.
54900 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54902 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54903 (GETNDELIM2_MAXIMUM): New macro.
54904 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
54905 instead of the old practice of delim2==0. All callers changed.
54906 Return -1 on overflow, instead of returning junk.
54907 Do not set *linesize unless allocation succeeds.
54908 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54909 that we include sys/types.h.
54910 * lib/getnline.h: Likewise.
54911 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54912 (getndelim2): Reorder arguments.
54913 * lib/getnline.c (getnline, getndelim):
54914 Don't discard the NMAX argument.
54915 (getnline): Invoke getndelim, to avoid code duplication.
54916 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54917 of (size_t) -1 by callers of the getnline family.
54919 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54921 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54922 Check for gettimeofday.
54923 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54924 Check for settimeofday, stime.
54926 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54928 * lib/nanosleep.c (suspended): Change its type from int to
54929 sig_atomic_t volatile.
54930 (first_call): Make it private to rpl_nanosleep, and have it
54931 be zero initially as that's a bit faster.
54932 (my_usleep): Round up fractional times instead of truncating them,
54933 as this is the usual meaning for 'sleep'.
54935 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54937 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54938 (ENOSYS): Define if not defined.
54939 (settime): Fall back on stime if it exists and settimeofday fails.
54940 But don't bother with fallbacks if a method fails with errno == EPERM.
54942 2004-05-11 Jim Meyering <jim@meyering.net>
54944 Prior to this change, the save_cwd caller required read access to the
54945 current directory on most systems (ones with the fchdir function).
54947 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54948 fails, try write-only, and finally, resort to using xgetcwd.
54950 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
54952 * lib/obstack.c, obstack.h: Import changes from libc.
54954 2004-04-28 Bruno Haible <bruno@clisp.org>
54956 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54957 also implicitly appends .exe to executables.
54958 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54959 accepts Windows pathnames.
54960 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54961 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54962 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54963 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54964 Reported by Derek Robert Price <derek@ximbiot.com>.
54966 2004-04-21 Karl Berry <karl@gnu.org>
54968 * config/srclist.txt (localcharset.c): break sync.
54970 2004-04-20 Paul Eggert <eggert@twinsun.com>
54972 * m4/host-os.m4: Add a copyright notice.
54974 2004-04-20 Jim Meyering <jim@meyering.net>
54976 Change UTILS_ to gl_ in AC_DEFINE'd names.
54977 Change utils_- and jm_-prefixed variables, too.
54978 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54979 UTILS_FUNC_MKDIR_TRAILING_SLASH.
54980 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54982 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54983 Don't emit trailing blanks.
54984 Also rename jm_-prefixed variables to have gl_ prefix.
54986 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54987 Also rename jm_-prefixed variables to have gl_ prefix.
54989 * m4/jm-macros.m4: Reflect the renamings.
54990 * m4/prereq.m4: Likewise.
54992 2004-04-20 Jim Meyering <jim@meyering.net>
54994 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54997 2004-04-20 Jim Meyering <jim@meyering.net>
54998 Bruno Haible <bruno@clisp.org>
55000 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55001 memory when realloc fails.
55003 2004-04-19 Jim Meyering <jim@meyering.net>
55005 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55006 now that readutmp.c may call `free (0)'.
55008 2004-04-19 Bruno Haible <bruno@clisp.org>
55010 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55011 * m4/inttypes_h.m4: Likewise.
55012 * m4/stdint_h.m4: Likewise.
55013 * m4/intmax_t.m4: Likewise.
55014 * m4/uintmax_t.m4: Likewise.
55016 2004-04-18 Jim Meyering <jim@meyering.net>
55018 * m4/prereq.m4: Don't forbid jm_ prefix.
55020 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55021 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55022 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55023 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55024 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55025 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55026 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55027 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55028 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55029 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55030 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55031 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55032 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55033 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55034 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55035 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55036 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55037 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55038 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55040 2004-04-18 Jim Meyering <jim@meyering.net>
55042 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55043 failure, don't leak memory and do call END_UTMP_ENT.
55045 2004-04-16 Jim Meyering <jim@meyering.net>
55047 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
55048 coreutils' stat program.
55049 (gl_PREREQ): Don't require jm_PREREQ_STAT.
55051 2004-04-11 Paul Eggert <eggert@twinsun.com>
55053 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55055 (CHAR_BIT): Remove, since we assume C89.
55056 Include <stdint.h> if available, as per current Autoconf CVS advice.
55058 2004-03-31 Jim Meyering <jim@meyering.net>
55060 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55061 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55062 * m4/xalloc.m4: Likewise.
55064 2004-03-30 Paul Eggert <eggert@twinsun.com>
55066 Merge from coreutils.
55068 * m4/inttostr.m4: New file.
55069 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55070 Require AM_STDBOOL_H and gl_TIMESPEC instead.
55071 Require gl_CLOCK_TIME.
55072 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55074 2004-03-30 Paul Eggert <eggert@twinsun.com>
55076 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55077 not bool, to be more consistent with Unix conventions.
55078 Suggested by Bruno Haible.
55080 Merge from coreutils.
55082 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55083 * lib/umaxtostr.c: New files.
55085 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55086 the usual <time.h> dance.
55087 (get_date): Change signature to support fractional time stamps.
55088 All callers changed.
55089 * lib/getdate.y: Include "getdate.h" first, as we can now
55090 assume C89 and don't need to worry about 'const'.
55091 Similarly, include "unlocked-io.h" near start, not in middle.
55092 Include <limits.h>.
55093 (textint.value): Use long int rather than int.
55094 (textint.digits): Use size_t rather than int.
55095 (BILLION, LOG10_BILLION): New constants.
55096 (parser_control): New member rel_ns. Members day_ordinal,
55097 time_zone, month, day, hour, minutes, rel_year, rel_month,
55098 rel_day, rel_hour, rel_minutes, rel_seconds
55099 are now long int, not int. Member seconds is now struct timespec,
55100 not int. New member timespec_seen. Members dates_seen, days_seen,
55101 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55103 (%union.intval): Now long int, not int.
55104 New member timespec.
55105 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55106 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55107 (spec): Now is a timespec or an item list.
55108 (timespec, items): New nonterminals.
55109 (time, rel, relunit, number, get_date):
55110 Add support for fractional seconds.
55111 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55112 (gmtime, localtime, mktime): Remove decls; not needed with C89.
55113 (to_hour): First arg is now long int, not int.
55114 (to_year): Returns long int, not int.
55115 Don't treat year -70 like 70.
55116 (tm_diff): Returns long int, not int.
55117 (lookup_word): Use bool instead of int when appropriate.
55118 (yylex): Use size_t for count, not int.
55119 Detect overflow when parsing large integer constants.
55120 Add support for fractions.
55121 (get_date): Make pointers 'const' if possible.
55122 Use more-portable code to detect integer overflow.
55123 (main) [TEST]: Adjust to above changes. Test for localtime failure.
55124 Don't use ctime; it's not reliable if the year has >4 digits.
55126 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55127 This is for compatibility with BSD.
55129 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55130 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55131 From coreutils' system.h.
55133 * lib/userspec.c: Don't include "posixver.h".
55134 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55135 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55136 compatible extension. Simplify code by removing a boolean int
55137 that was always nonzero if a string was nonnull.
55139 2004-03-30 Jim Meyering <jim@meyering.net>
55141 Merge from coreutils.
55143 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55144 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55145 on some systems one must include <grp.h> before it.
55146 Reported by Christian Krackowizer.
55148 2004-03-30 Jim Meyering <jim@meyering.net>
55150 Merge from coreutils.
55152 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55154 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55155 an empty input stream.
55157 * lib/readtokens.c: Include <stdbool.h>.
55158 (readtoken): Use `size_t' rather than int/long.
55159 All callers adjusted.
55160 Use `bool' rather than `int' where appropriate.
55161 Use memset rather than an explicit loop.
55162 Use x2nrealloc rather than xrealloc.
55163 Allow the use of `\0' as a delimiter.
55164 (readtokens): Likewise.
55165 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55167 2004-03-30 Jim Meyering <jim@meyering.net>
55169 * m4/realloc.m4: Remove file, since now it does no more than
55170 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55171 the `configure.ac' section of module/realloc.
55172 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55174 2004-03-30 Bruno Haible <bruno@clisp.org>
55176 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55179 2004-03-29 Paul Eggert <eggert@twinsun.com>
55181 Merge changes to getloadavg.c from coreutils and Emacs.
55183 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55184 Define to an expression, not to the empty string.
55185 Include cloexec.h and xalloc.h.
55186 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55187 Use set_cloexec_flag rather than rolling our own.
55188 * lib/cloexec.c, lib/cloexec.h: New files.
55190 2004-03-29 Paul Eggert <eggert@twinsun.com>
55192 * m4/cloexec.m4: New file.
55194 2004-03-18 Paul Eggert <eggert@twinsun.com>
55196 * lib/getopt.h: Sync with libc CVS.
55198 2004-03-18 Paul Eggert <eggert@twinsun.com>
55199 Bruno Haible <bruno@clisp.org>
55201 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55204 2004-03-18 Paul Eggert <eggert@twinsun.com>
55205 Bruno Haible <bruno@clisp.org>
55207 * lib/mbswidth.h: Include <wchar.h> only if
55208 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55210 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55212 2004-03-09 Paul Eggert <eggert@twinsun.com>
55214 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55215 Sync with libc CVS.
55216 * lib/getopt_int.h: New file, also synced from libc.
55218 2004-03-09 Paul Eggert <eggert@twinsun.com>
55220 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55221 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
55222 Bring back getopt.c, getopt.h, getopt1.c.
55224 2004-03-07 Paul Eggert <eggert@twinsun.com>
55226 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55227 All uses changed. Check for sa_sigaction member; this fixes
55228 a bug first reported by Jason Andrade in
55229 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55231 2004-03-07 Paul Eggert <eggert@twinsun.com>
55233 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
55234 '#if' expressions. Unlike the code it replaces, it does not
55235 depend on (defined _SC_PAGESIZE). However, it does depend on
55236 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55237 first reported by Jason Andrade in
55238 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55240 2004-02-25 Simon Josefsson <jas@extundo.com>
55242 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55244 2004-02-25 Simon Josefsson <jas@extundo.com>
55246 * lib/strdup.h: New file.
55247 * lib/strdup.c: Include it.
55248 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55249 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55251 2004-02-23 Karl Berry <karl@gnu.org>
55253 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55254 (from fencepost.gnu.org:/gd/gnuorg).
55256 2004-02-23 Karl Berry <karl@gnu.org>
55258 * config/srclistvars.sh (GNUORG) [karl]: redefine.
55259 * config/srclist.txt: add maintain/standards documents.
55261 2004-02-18 Bruno Haible <bruno@clisp.org>
55263 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55264 Reported by Derek Robert Price <derek@ximbiot.com>.
55266 2004-02-16 Karl Berry <karl@gnu.org>
55268 * config/mkinstalldirs, install-sh: update from automake.
55270 2004-02-06 Karl Berry <karl@gnu.org>
55272 * m4/po.m4: update from gettext 0.14.1.
55274 2004-02-06 Karl Berry <karl@gnu.org>
55276 * lib/config.charset: update from gettext 0.14.1.
55278 2004-02-05 Paul Eggert <eggert@twinsun.com>
55280 Add comments and code, prompted by suggestions from Bruno Haible
55282 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
55283 describing the enum quoting_style values.
55284 * lib/quotearg.c (quotearg_alloc): New function.
55285 (quotearg_buffer_restyled): Treat lone { and } as special.
55286 Treat = as special. Work around bug with older shells
55287 that "see" a '\' that is really the 2nd byte of a multibyte char.
55288 Quote empty string with shell_quoting_style.
55290 2004-02-03 Bruno Haible <bruno@clisp.org>
55292 * m4/pipe.m4: New file, from GNU gettext.
55294 2004-02-03 Bruno Haible <bruno@clisp.org>
55296 * lib/pipe.h: New file, from GNU gettext.
55297 * lib/pipe.c: New file, from GNU gettext.
55299 2004-01-27 Bruno Haible <bruno@clisp.org>
55301 * m4/execute.m4: New file, from GNU gettext.
55303 2004-01-27 Bruno Haible <bruno@clisp.org>
55305 * lib/execute.h: New file, from GNU gettext.
55306 * lib/execute.c: New file, from GNU gettext.
55307 * lib/w32spawn.h: New file, from GNU gettext.
55309 2004-01-24 Paul Eggert <eggert@twinsun.com>
55311 Merge from diffutils.
55313 * lib/file-type.c (file_type): Add typed memory objects.
55314 * lib/file-type.h (S_TYPEISTMO): New macro.
55316 * lib/c-stack.h (c_stack_action): Remove argv argument.
55317 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
55318 (die): Don't calculate message unless segv_action returns.
55319 (get_stack_location, min_address_from_argv, max_address_from_argv,
55320 volatile stack_base, volatile_stack_size): Remove.
55321 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55322 that every segmentation violation is a stack overflow. (Ouch!)
55323 See Debian bug 136249 (still outstanding) for more info about why
55324 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55326 2004-01-24 Paul Eggert <eggert@twinsun.com>
55328 Exit-status fix from coreutils.
55330 Use exit_failure consistently in place of EXIT_FAILURE,
55331 so that program exit statuses are consistent on failure.
55333 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55334 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55335 * lib/argmatch.h: Comment fix to match the above.
55336 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55337 Now a macro referring to exit_failure, instead of a separate
55338 variable. Include "exitfail.h" to get it.
55339 * lib/xstrtol.h: Include "exitfail.h".
55340 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55342 * lib/long-options.c (parse_long_options): Use prototype
55343 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
55346 2004-01-21 Jim Meyering <jim@meyering.net>
55348 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55349 so as not to conflict with a different-sized __mktime_internal
55350 function in GNU libc.
55351 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55352 Problem building statically-linked `ls' reported by Michael Brunnbauer.
55354 2004-01-20 Karl Berry <karl@gnu.org>
55356 * config/config.guess: update from config.
55358 * config/srclistvars.sh: GNUWWWLICENSES for karl.
55360 2004-01-20 Bruno Haible <bruno@clisp.org>
55362 Safer stack allocation.
55363 * lib/setenv.c: Include allocsa.h.
55364 (alloca): Remove fallback definition.
55365 (freea): Remove macro.
55366 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55369 2004-01-20 Bruno Haible <bruno@clisp.org>
55371 * m4/eealloc.m4: New file, from GNU gettext.
55373 2004-01-20 Bruno Haible <bruno@clisp.org>
55375 * m4/allocsa.m4: New file, from GNU gettext.
55377 2004-01-20 Bruno Haible <bruno@clisp.org>
55379 * lib/xallocsa.h: New file, from GNU gettext.
55380 * lib/xallocsa.c: New file, from GNU gettext.
55382 2004-01-20 Bruno Haible <bruno@clisp.org>
55384 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55386 2004-01-20 Bruno Haible <bruno@clisp.org>
55388 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55389 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55392 2004-01-20 Bruno Haible <bruno@clisp.org>
55394 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55397 2004-01-20 Bruno Haible <bruno@clisp.org>
55399 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55401 2004-01-20 Bruno Haible <bruno@clisp.org>
55403 * lib/eealloc.h: New file.
55405 2004-01-20 Bruno Haible <bruno@clisp.org>
55407 * lib/binary-io.h: Avoid warnings on Cygwin.
55409 2004-01-20 Bruno Haible <bruno@clisp.org>
55411 * lib/allocsa.h: New file, from GNU gettext.
55412 * lib/allocsa.c: New file, from GNU gettext.
55414 2004-01-18 Karl Berry <karl@gnu.org>
55416 * doc/gpl.texi, doc/lgpl.texi: new files.
55418 2004-01-18 Karl Berry <karl@gnu.org>
55420 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55421 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55423 2004-01-15 Paul Eggert <eggert@twinsun.com>
55425 Merge from coreutils.
55427 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55428 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55429 (gl_DEFAULT_POSIX2_VERSION): Move
55430 the documentation from 'configure' into 'config.hin',
55431 so that 'configure --help' isn't burdened by it and
55432 we don't have to worry about its formatting there.
55433 Reword the documentation so that it's more succinct
55434 and can be run together into a single paragraph.
55435 * m4/same.m4 (gl_SAME): Check for pathconf.
55437 2004-01-15 Paul Eggert <eggert@twinsun.com>
55439 Merge from coreutils.
55441 * lib/posixver.c: Include posixver.h.
55443 * lib/same.c: Include <stdbool.h>, <limits.h>.
55444 (_POSIX_NAME_MAX): Define if not defined.
55446 (same_name): If file names are silently truncated, report
55447 that the file names are the same if they are the same after
55448 the silent truncation.
55450 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55451 conversion function.
55452 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
55453 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
55456 2004-01-15 Jim Meyering <jim@meyering.net>
55458 Merge from coreutils.
55460 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55461 if no library is required.
55462 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55463 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55464 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55465 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55466 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55467 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55468 value, $ac_cv_search_crypt, if it's "none required".
55469 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55470 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55471 not gl_FUNC_GETLOADAVG.
55472 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55473 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55475 2004-01-15 Jim Meyering <jim@meyering.net>
55477 Merge from coreutils.
55479 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
55480 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
55481 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55483 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55484 optional configure-time default.
55486 * lib/version-etc.c (version_etc_copyright): Update copyright date.
55488 * lib/xreadlink.c (xreadlink): Correct outdated comment.
55490 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
55492 Merge from coreutils.
55494 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55495 value, $ac_cv_search_nanosleep, if it's "none required".
55497 2004-01-14 Paul Eggert <eggert@twinsun.com>
55499 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55500 with like-named macro in fnmatch.c.
55501 (EXT): Use an internal constant instead.
55503 Merge fnmatch patches from glibc.
55504 * lib/fnmatch.c (mbsinit): Remove define.
55505 Add libc_hidden_ver (__fnmatch, fnmatch).
55506 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55507 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55509 2004-01-14 Karl Berry <karl@gnu.org>
55511 * config/install-sh: update from automake.
55513 2004-01-13 Karl Berry <karl@gnu.org>
55515 * config/install-sh: update from automake.
55517 2004-01-09 Karl Berry <karl@gnu.org>
55519 * config/install-sh: update from automake.
55521 2004-01-05 Karl Berry <karl@gnu.org>
55523 * config/config.{sub,guess}: update from config.
55525 2003-12-31 Karl Berry <karl@gnu.org>
55527 * config/depcomp: update from automake.
55529 2003-12-14 Karl Berry <karl@gnu.org>
55531 * lib/config.charset: update from gettext-runtime.
55533 2003-12-03 Paul Eggert <eggert@twinsun.com>
55535 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55536 Bug reported by Alfred M. Szmidt.
55538 2003-12-03 Bruno Haible <bruno@clisp.org>
55540 * m4/gettext.m4: Upgrade from gettext-0.13.
55541 * m4/po.m4: Upgrade from gettext-0.13.
55542 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55543 * m4/intmax.m4: New file, from gettext-0.13.
55544 * m4/printf-posix.m4: New file, from gettext-0.13.
55546 2003-11-29 Karl Berry <karl@gnu.org>
55548 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55550 2003-11-25 Paul Eggert <eggert@twinsun.com>
55551 Bruno Haible <bruno@clisp.org>
55553 * lib/printf-parse.h: Don't include sys/types.h.
55554 (ARG_NONE): New macro.
55555 (char_directive): Change type of *arg_index fields to size_t.
55556 * lib/printf-parse.c: Don't include sys/types.h.
55557 (SSIZE_MAX): Remove macro.
55558 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55559 Remove unnecessary overflow check.
55560 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55563 2003-11-25 Bruno Haible <bruno@clisp.org>
55565 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55567 2003-11-25 Bruno Haible <bruno@clisp.org>
55569 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55572 2003-11-24 Paul Eggert <eggert@twinsun.com>
55574 * modules/alloca: Remove dependency on xalloc.
55576 2003-11-24 Paul Eggert <eggert@twinsun.com>
55578 * lib/alloca.c: Remove dependency on xalloc module.
55579 (xalloc_die): Remove.
55580 (memory_full) [!defined emacs]: New macro.
55581 [!defined emacs]: Don't include xalloc.h.
55582 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55583 address arithmetic overflows. Change datatypes a bit to avoid
55586 2003-11-22 Jim Meyering <jim@meyering.net>
55588 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55591 2003-11-21 Karl Berry <karl@gnu.org>
55593 * config/config.{sub,guess}: update from config.
55595 2003-11-18 Karl Berry <karl@gnu.org>
55597 * config/config.{sub,guess}: update from config.
55599 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55601 2003-11-17 Paul Eggert <eggert@twinsun.com>
55603 * README: Mention that S+T cannot overflow if S is the size of
55604 an existing object and T is sufficiently small.
55606 2003-11-17 Jim Meyering <jim@meyering.net>
55608 On systems without utime and without a utimes function capable of
55609 dealing with a NULL struct utimbuf* argument, this utime replacement
55610 could -- in unusual circumstances -- leak a file descriptor.
55611 * lib/utime.c: Include <unistd.h> and <errno.h>.
55612 (utime_null): Be sure to close `fd' and to preserve errno.
55613 Reported by Geoff Collyer via Arnold Robbins.
55615 2003-11-17 Bruno Haible <bruno@clisp.org>
55617 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55618 (Depends-on): Add xsize.
55620 2003-11-17 Bruno Haible <bruno@clisp.org>
55622 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55624 2003-11-17 Bruno Haible <bruno@clisp.org>
55626 * lib/vasnprintf.c (alloca): Remove fallback definition.
55627 (freea): Remove definition.
55628 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55629 Reported by Paul Eggert.
55631 2003-11-16 Paul Eggert <eggert@twinsun.com>
55632 Bruno Haible <bruno@clisp.org>
55634 Protect against address arithmetic overflow.
55635 * lib/printf-args.h: Include stddef.h.
55636 (arguments): Change type of field 'count' to size_t.
55637 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55638 'unsigned int' where appropriate.
55639 * lib/printf-parse.h: Include sys/types.h.
55640 (char_directive): Change type of *arg_index fields to ssize_t.
55641 (char_directives): Change type of fields 'count', max_*_length to
55643 * lib/printf-parse.c: Include sys/types.h and xsize.h.
55644 (SSIZE_MAX): Define fallback value.
55645 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55646 instead of 'int' where appropriate. Check a_allocated, d_allocated
55647 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55648 * lib/vasnprintf.c: Include xsize.h.
55649 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55650 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55651 overflow. Avoid wraparound when converting a width or precision from
55654 2003-11-16 Bruno Haible <bruno@clisp.org>
55656 Update from GNU gettext.
55657 * lib/printf-parse.c: Generalize to it can be compiled for wide
55659 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55660 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55661 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55662 SNPRINTF): New macros.
55663 Don't include <alloca.h> if the file is used inside libintl.
55664 (local_wcslen): New function, for Solaris 2.5.1.
55665 (VASNPRINTF): Use it instead of wcslen.
55667 2003-11-16 Bruno Haible <bruno@clisp.org>
55669 * lib/xsize.h (xmax): New function.
55670 (xsum, xsum3, xsum4): Declare as "pure" functions.
55672 2003-11-12 Paul Eggert <eggert@twinsun.com>
55674 * modules/xalloc (Files): Undo latest change, since xalloc.h
55675 no longer needs SIZE_MAX or PTRDIFF_MAX.
55677 2003-11-12 Paul Eggert <eggert@twinsun.com>
55679 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55682 2003-11-12 Paul Eggert <eggert@twinsun.com>
55684 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55685 "return", to pacify some unknown compiler. Problem reported
55686 by Joerg Schilling.
55688 2003-11-12 Paul Eggert <eggert@twinsun.com>
55690 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55691 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55692 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
55693 heuristic is just as accurate as far as we know, and it removes a
55694 dependency on size_max.m4 and ptrdiff_max.m4.
55696 2003-11-11 Bruno Haible <bruno@clisp.org>
55698 * modules/xsize (Files): Add m4/size_max.m4.
55699 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55701 2003-11-11 Bruno Haible <bruno@clisp.org>
55703 * m4/size_max.m4: New file.
55704 * m4/ptrdiff_max.m4: New file.
55705 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55706 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55707 (gl_XALLOC): Invoke it.
55709 2003-11-11 Bruno Haible <bruno@clisp.org>
55711 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55712 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55715 2003-11-10 Paul Eggert <eggert@twinsun.com>
55717 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55718 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55719 rejected some allocations of exactly SIZE_MAX - 2 bytes.
55721 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55722 not (size_t) -1, since it's defined here.
55724 2003-11-09 Karl Berry <karl@gnu.org>
55726 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55728 2003-11-06 Paul Eggert <eggert@twinsun.com>
55730 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55731 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55732 Reject sizes of exactly SIZE_MAX bytes.
55733 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55734 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55736 2003-11-05 Bruno Haible <bruno@clisp.org>
55738 * lib/xsize.h: Include limits.h, to avoid a possible collision with
55739 SIZE_MAX defined in <limits.h> on Solaris.
55741 2003-11-04 Jim Meyering <jim@meyering.net>
55743 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55744 variable names, rather than @VAR@.
55745 * modules/poll: Likewise.
55747 2003-11-04 Bruno Haible <bruno@clisp.org>
55749 * modules/xsize: New file.
55750 * modules/linebreak: Depend on xsize.
55751 * MODULES.html.sh (func_all_modules): Add xsize.
55753 2003-11-04 Bruno Haible <bruno@clisp.org>
55755 * m4/xsize.m4: New file.
55757 2003-11-04 Bruno Haible <bruno@clisp.org>
55759 * lib/xsize.h: New file.
55760 * lib/linebreak.c: Include xsize.h.
55761 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55762 argument for overflow.
55763 Suggested by Paul Eggert.
55765 2003-11-03 Karl Berry <karl@gnu.org>
55767 * config/config.{guess,sub}: update from config.
55769 2003-11-03 Jim Meyering <jim@meyering.net>
55771 * modules/userspec (lib_SOURCES): Add userspec.h.
55772 (Include): Add "userspec.h".
55773 Improve description.
55775 2003-11-03 Jim Meyering <jim@meyering.net>
55777 * lib/userspec.c: Include "userspec.h".
55778 * lib/userspec.h: New file.
55780 2003-11-03 Bruno Haible <bruno@clisp.org>
55782 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55784 2003-11-03 Bruno Haible <bruno@clisp.org>
55786 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55787 available, to avoid (extremely rare) race condition.
55788 Suggested by Paul Eggert.
55790 2003-11-02 Karl Berry <karl@gnu.org>
55792 * config/srclist.txt (vasprintf.c): sync broken, sigh.
55794 2003-10-31 Paul Eggert <eggert@twinsun.com>
55796 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55797 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55798 (read_filesystem_list): Set and use me_type_malloced.
55799 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55800 whatever the type happens to be), for brevity and consistency.
55801 Check for size calculation overflow on Alphas running OSF/1.
55803 2003-10-31 Jim Meyering <jim@meyering.net>
55805 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55807 * lib/linebuffer.c: Include <string.h> for declaration of memset.
55809 2003-10-30 Paul Eggert <eggert@twinsun.com>
55810 Bruno Haible <bruno@clisp.org>
55812 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55813 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55815 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
55817 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55818 netbsd*-gnu*. Suggested by Robert Millan.
55820 2003-10-29 Paul Eggert <eggert@twinsun.com>
55822 * modules/group-member: Depend on stdbool.
55824 2003-10-29 Paul Eggert <eggert@twinsun.com>
55826 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55828 2003-10-29 Paul Eggert <eggert@twinsun.com>
55830 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
55831 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
55832 after the 'gnu' in these cases. This fixes some bugs in the
55833 previous change, and is based on suggestions by Robert Millan.
55835 2003-10-29 Paul Eggert <eggert@twinsun.com>
55837 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55838 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
55840 * lib/quotearg.c (quotearg_n_options): Use it.
55841 * lib/group-member.c: Include <stdbool.h>.
55842 (free_group_info): Arg is now const *; don't free arg.
55843 (get_group_info): Now returns bool and accepts struct group_info *,
55844 rather than returning a malloc'ed struct group_info *.
55845 All uses changed. Check for overflow in internal size calculation.
55847 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55848 rather than xmalloc/xrealloc.
55849 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55850 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
55851 conformance bug: the old code used a pointer after freeing the
55852 storage that it addressed.
55853 * lib/hash.c (hash_initialize): Simplify the code by using
55854 xalloc_oversized rather than doing it by hand.
55855 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55856 the buffer preserved. Use free and xmalloc instead.
55857 * lib/quotearg.c (quotearg_n_options): Likewise.
55858 Use a simpler test for size overflow. Don't use xalloc_oversized
55859 because unsigned int might be wider than size_t (!); this suggests
55860 that we should switch from unsigned int to size_t for slot numbers.
55862 2003-10-28 Paul Eggert <eggert@twinsun.com>
55864 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55865 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
55866 NetBSD kernels. Requested by Richard Stallman.
55868 2003-10-27 Paul Eggert <eggert@twinsun.com>
55870 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55871 to allocate the returned structure. Do not allocate a subarray,
55872 as x2nrealloc will do that.
55873 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55874 instead of xnrealloc.
55875 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55877 2003-10-27 Bruno Haible <bruno@clisp.org>
55879 * lib/stdbool_.h: Better support for BeOS.
55881 2003-10-26 Paul Eggert <eggert@twinsun.com>
55883 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55886 2003-10-26 Paul Eggert <eggert@twinsun.com>
55888 * lib/xalloc.h (xalloc_oversized): New static inline function, for
55889 callers that want to do their own size-overflow checking. Include
55890 <stdbool.h>, since xalloc_oversized returns bool.
55891 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
55892 to use xalloc_oversized.
55894 Add two functions x2realloc, x2nrealloc, for programs that grow
55895 arrays dynamically by doubling their sizes.
55896 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55897 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55900 Port to C99 semantics for 'inline' of external functions.
55901 Bug reported by Bruno Haible.
55902 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55903 with the old contents of xnmalloc.
55904 (xnmalloc, xmalloc): Use it.
55905 (xnrealloc_inline): New static inline function,
55906 with the old contents of xnrealloc.
55907 (xnrealloc, xrealloc): Use it.
55909 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55912 2003-10-26 Karl Berry <karl@gnu.org>
55914 * config/srclist.txt (COPYING.DOC): no longer available from
55915 /gd/gnuorg; don't know where the ultimate source is.
55917 2003-10-25 Paul Eggert <eggert@twinsun.com>
55919 Fix several address-calculation bugs in the hash modules,
55920 plus some minor code cleanup.
55922 * lib/hash.h: Include <stdbool.h>, for bool.
55923 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55924 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55925 hash_get_n_entries, hash_get_max_bucket_length,
55926 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55927 hash_rehash): Use size_t rather than unsigned.
55928 * lib/hash.c (struct hash_table, hash_get_n_buckets,
55929 hash_get_n_buckets_used, hash_get_n_entries,
55930 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55931 hash_get_entries, hash_do_for_each, hash_string, is_prime,
55932 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55934 (SIZE_MAX): Define if not defined.
55935 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55936 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55938 Use const * when possible.
55939 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55940 (check_tuning): Fix bug: if tuning parameters were very close to
55941 0 or 1, rounding errors could have caused subscript violations.
55942 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55943 (hash_initialize): Add 'fail:' label
55944 to free table and return NULL, and use it to simplify code.
55945 Use calloc rather than clearing the storage ourself.
55946 (hash_initialize, hash_rehash): Check for arithmetic overflow in
55947 buffer size calculations.
55948 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55949 Include <stddef.h>, for size_t.
55950 * lib/hash-pjw.c (hash_pjw): Likewise.
55951 Switch to method described by Bruno Haible.
55952 Include <limits.h>, for CHAR_BIT.
55953 (SIZE_BITS): New macro.
55955 2003-10-23 Paul Eggert <eggert@twinsun.com>
55957 * m4/getline.m4 (AM_FUNC_GETLINE):
55958 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55959 hosts. Problem reported by Derek Robert Price in
55960 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55961 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55962 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55964 2003-10-21 Paul Eggert <eggert@twinsun.com>
55966 * lib/getndelim2.c (getndelim2): When size calculation overflows,
55967 ceiling the allocation at NMAX bytes rather than silently
55968 discarding input bytes before NMAX is reached. This makes
55969 a difference only if NMAX exceeds SIZE_MAX / 2.
55971 * lib/obstack.c: Merge from glibc.
55972 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55973 Add libc_hidden_def (_obstack_newchunk).
55974 (_obstack_free) [! defined _LIBC]: Remove.
55975 [defined _LIBC]: Make a strong alias from obstack_free, rather than
55976 a clone of the function body.
55977 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55978 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55980 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55982 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55985 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55986 (obstack_ptr_grow_fast, obstack_int_grow_fast):
55987 Don't use lvalue casts, as GCC plans to remove support for them
55988 in GCC 3.5. Reported by Joseph S. Myers. This bug
55989 was also present in the non-GCC version, indicating that this
55990 code had always been buggy and had never been widely used.
55991 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55992 Use the fast variant of each macro, rather than copying the
55993 definiens of the fast variant; that way, we'll be more likely to
55994 catch future bugs in the fast variants.
55996 2003-10-20 Bruno Haible <bruno@clisp.org>
55998 * modules/wait-process: New file.
55999 * MODULES.html.sh (func_all_modules): Add wait-process.
56001 2003-10-20 Bruno Haible <bruno@clisp.org>
56003 * m4/wait-process.m4: New file.
56005 2003-10-20 Bruno Haible <bruno@clisp.org>
56007 * lib/wait-process.h: New file, from GNU gettext.
56008 * lib/wait-process.c: New file, from GNU gettext.
56010 2003-10-19 Jim Meyering <jim@meyering.net>
56012 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56015 2003-10-18 Karl Berry <karl@gnu.org>
56017 * config/config.guess: update from config.
56019 2003-10-16 Paul Eggert <eggert@twinsun.com>
56021 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56022 (getgroups): First arg is int, not size_t.
56023 Don't let 'free' mangle errno.
56025 2003-10-16 Paul Eggert <eggert@twinsun.com>
56027 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56029 2003-10-16 Karl Berry <karl@gnu.org>
56031 * config/config.{guess,sub}: update from config.
56033 2003-10-16 Jim Meyering <jim@meyering.net>
56035 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56038 2003-10-15 Paul Eggert <eggert@twinsun.com>
56040 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56041 (SIZE_MAX): Remove.
56042 (new_exclude, add_exclude_file): Initial size no longer needs to
56044 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56045 our own address arithmetic overflow checking.
56047 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56048 (fnmatch): Do not alloca more than 2000 wide characters;
56049 instead, use malloc for large buffers.
56050 Check for address arithmetic overflow, and return -1
56051 with errno set to ENOMEM in that case.
56052 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56053 (NEW_PATTERN): Do not alloca more than 8000 bytes;
56054 instead, return -1. Check for address arithmetic overflow.
56056 2003-10-14 Paul Eggert <eggert@twinsun.com>
56058 Handle invalid suffixes and overflow independently, so that
56059 callers can treat them independently as needed. Fix some bugs in
56060 suffix handling, e.g., "100k@" was not diagnosed as an invalid
56061 suffix for a human-readable blocksize. The major caller-visible
56062 change is the addition of a new
56063 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56064 that both overflow and suffix chars were found.
56066 * lib/human.c (humblock): Don't check separately for invalid suffix
56067 char; that is xstrtoumax's job (now that its bug is fixed).
56068 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56069 INTMAX_MAX]: New macros.
56070 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56071 TYPE_MAXIMUM): New macros.
56072 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56073 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56074 if overflow occurs, as it's what __strtol does and it's more useful
56076 (__xstrtol): If __strtol reports some error other than ERANGE,
56077 reflect it to the caller as LONGINT_INVALID. If it reports
56078 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56079 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56080 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56082 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
56083 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56084 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56085 [defined UINTMAX_MAX]: New macros.
56087 2003-10-14 Bruno Haible <bruno@clisp.org>
56089 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56091 2003-10-14 Bruno Haible <bruno@clisp.org>
56093 * m4/sig_atomic_t: New file, from GNU gettext.
56094 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56096 2003-10-14 Bruno Haible <bruno@clisp.org>
56098 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56099 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56100 Also use volatile where needed.
56102 2003-10-12 Paul Eggert <eggert@twinsun.com>
56104 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
56105 Change maintainer from Bruno Haible to 'all'.
56107 2003-10-12 Paul Eggert <eggert@twinsun.com>
56109 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56111 2003-10-12 Paul Eggert <eggert@twinsun.com>
56113 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56114 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56115 and define in terms of the other primitives.
56116 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56117 (SIZE_MAX): Define if not already defined.
56118 (array_size_overflow): New function.
56119 (xalloc_die): Abort instead of exiting if 'error' returns.
56120 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56121 (xmalloc, xrealloc): Use them.
56122 (xcalloc): Check for address arithmetic overflow.
56123 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56124 a bit faster than strcpy.
56126 2003-10-10 Simon Josefsson <jas@extundo.com>
56128 * modules/argp (Depends-on): Add restrict and strcase.
56130 2003-10-10 Simon Josefsson <jas@extundo.com>
56132 * m4/argp.m4: Add AC_C_INLINE.
56134 2003-10-08 Paul Eggert <eggert@twinsun.com>
56136 Merge getpass from libc, plus a few fixes.
56138 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56139 Include <stdbool.h>.
56140 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56141 __fsetlocking to empty.
56142 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56143 do include <bits/libc-lock.h>.
56144 Do not include <fcntl.h>; not needed.
56145 [_LIBC]: Include <wchar.h>.
56146 (NOTCANCEL_MODE): New macro.
56147 (flockfile, funlockfile) [_LIBC]: New macros.
56148 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56149 [!_LIBC]: New macros.
56150 (call_fclose): New function.
56151 (getpass): Use it. Save tty stream separately; this simplifies the
56152 code and makes it more reliable if stdin happens to equal stdout.
56153 Invoke __fsetlocking on tty.
56154 Handle thread cancellation if needed.
56155 Namespace cleanup (use __tcgetattr, __getline).
56156 Use bool for Booleans.
56157 [USE_IN_LIBIO]: Handle wide streams.
56158 [!_LIBC]: Unconditionally do the fseek, since we don't know what
56159 stream might go where.
56161 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56162 doesn't have to include <stdio.h> before us.
56163 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56164 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56165 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56166 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56167 if not declared, so that we can use getpass.c code from libc without
56169 (flockfile, ftrylockfile, funlockfile): New macros.
56171 2003-10-08 Paul Eggert <eggert@twinsun.com>
56173 * modules/getpass: Depend on stdbool.
56175 2003-10-08 Paul Eggert <eggert@twinsun.com>
56177 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56179 2003-10-07 Karl Berry <karl@gnu.org>
56181 * config/config.{guess,sub}: update from config.
56183 2003-10-06 Jim Meyering <jim@meyering.net>
56184 Bruno Haible <bruno@clisp.org>
56186 This lets translators provide better translations for the
56187 "Written by ..." part of --version output.
56188 * lib/version-etc.h: Include stdarg.h.
56189 (version_etc_copyright): Declare as readonly.
56190 (version_etc): Make this function variadic with a NULL-terminated list
56191 of author name strings.
56192 (version_etc_va): New declaration.
56193 * lib/version-etc.c: Include stdarg.h, stdlib.h.
56194 (version_etc_copyright): Declare as readonly.
56195 (version_etc_va): New function. Provide a different translatable string
56196 for each possible number of authors < 10. Abbreviate when there are 10
56198 (version_etc): Make this function variadic. Call version_etc_va.
56199 Suggestion from Gary V. Vaughan.
56201 * lib/long-options.h (parse_long_options): Change prototype: the
56202 authors string is moved to the end and becomes variadic.
56203 * lib/long-options.c: Include stdarg.h.
56204 (parse_long_options): Make this function variadic, too.
56205 Call version_etc_va, not version_etc.
56207 2003-10-06 Bruno Haible <bruno@clisp.org>
56209 * modules/version-etc-2: Remove file.
56210 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56212 2003-10-06 Bruno Haible <bruno@clisp.org>
56214 * modules/fatal-signal: New file.
56215 * MODULES.html.sh (func_all_modules): Add fatal-signal.
56217 2003-10-06 Bruno Haible <bruno@clisp.org>
56219 * m4/fatal-signal.m4: New file.
56220 * m4/signalblocking.m4: New file, from GNU gettext.
56222 2003-10-06 Bruno Haible <bruno@clisp.org>
56224 * lib/version-etc-2.h: Remove file.
56225 * lib/version-etc-2.c: Remove file.
56227 2003-10-06 Bruno Haible <bruno@clisp.org>
56229 * lib/fatal-signal.h: New file, from GNU gettext.
56230 * lib/fatal-signal.c: New file, from GNU gettext.
56232 2003-10-05 Paul Eggert <eggert@twinsun.com>
56234 * README: Rework advice for preventing empty .o files.
56235 Don't recommend ELIDE constructs. Recommend <stddef.h>,
56238 2003-10-04 Karl Berry <karl@gnu.org>
56240 * lib/argp*: update from libc.
56242 2003-10-04 Karl Berry <karl@gnu.org>
56244 * config/config.{guess,sub}: update from config.
56246 2003-10-02 Bruno Haible <bruno@clisp.org>
56248 * modules/lchown (Include): Add lchown.h.
56249 * modules/time_r (Include): Use "..." syntax.
56250 * modules/xgetdomainname (Include): Add xgetdomainname.h.
56252 2003-10-01 Simon Josefsson <jas@extundo.com>
56254 * MODULES.html.sh (func_all_modules): Move gethostname from section
56255 'based on' to section 'lacking' POSIX:2001.
56257 2003-10-01 Larry Jones <lawrence.jones@eds.com>
56259 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56260 to output mode on the same stream.
56262 2003-09-29 Paul Eggert <eggert@twinsun.com>
56264 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56265 Fix arg typo in previous patch.
56267 2003-09-28 Jim Meyering <jim@meyering.net>
56269 * lib/error.c: Correct cpp indentation.
56271 2003-09-27 Paul Eggert <eggert@twinsun.com>
56273 * modules/free: New file.
56275 2003-09-27 Paul Eggert <eggert@twinsun.com>
56277 * m4/free.m4: New file.
56279 2003-09-27 Paul Eggert <eggert@twinsun.com>
56281 * lib/minmax.h (MIN, MAX)
56282 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56283 Omit the special code that used __typeof__, since we worry that
56284 it could be more trouble than it's worth. See:
56285 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56286 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56288 * lib/free.c: New file.
56290 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
56292 Trivial fixes to Makefile.am parts of module listings.
56293 * modules/strstr: Append strstr.h to lib_SOURCES.
56294 * modules/strcase: Likewise, for strcase.h.
56296 2003-09-27 Karl Berry <karl@gnu.org>
56298 * config/mkinstalldirs: update from automake.
56300 2003-09-26 Paul Eggert <eggert@twinsun.com>
56302 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56303 (error_tail): Do not loop, reallocating temporary buffer, since
56304 the output cannot contain more wide characters than the input
56305 contains bytes, the size must be big enough already. This avoids
56306 one potential size overflow calculation. Check for size overflow
56307 when calculating temporary buffer size. Free temporary buffer
56308 when done, if it was allocated with malloc; this plugs a memory
56309 leak. Remove casts from void * to pointers, that are no longer
56310 needed now that we're assuming C89 or better.
56312 Merge error changes from glibc.
56314 * lib/error.c, error.h: Update copyright notice header to match glibc.
56315 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56316 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56317 Disable cancellation while printing error.
56318 * lib/error.h: Prepend __ to parameter names.
56320 2003-09-26 Jim Meyering <jim@meyering.net>
56322 * lib/error.c (error_tail): Move some declarations
56323 into inner scope where the local variables are used.
56325 2003-09-26 Bruno Haible <bruno@clisp.org>
56327 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56329 Don't define stpncpy through config.h; it's now done through stpncpy.h.
56331 2003-09-26 Bruno Haible <bruno@clisp.org>
56333 * lib/stpncpy.h (gnu_stpncpy): New declaration.
56334 (stpncpy): Define as alias for gnu_stpncpy.
56335 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56337 2003-09-25 Simon Josefsson <jas@extundo.com>
56339 * lib/xgetdomainname.h: New file.
56340 * lib/xgetdomainname.c: New file.
56342 2003-09-25 Simon Josefsson <jas@extundo.com>
56343 Bruno Haible <bruno@clisp.org>
56345 * modules/getdomainname: New file.
56346 * modules/xgetdomainname: New file.
56347 * MODULES.html.sh (func_all_modules): Add getdomainname,
56350 2003-09-25 Simon Josefsson <jas@extundo.com>
56351 Bruno Haible <bruno@clisp.org>
56353 * m4/getdomainname.m4: New file.
56355 2003-09-25 Simon Josefsson <jas@extundo.com>
56356 Bruno Haible <bruno@clisp.org>
56358 * lib/getdomainname.h: New file.
56359 * lib/getdomainname.c: New file.
56361 2003-09-25 Karl Berry <karl@gnu.org>
56363 * lib/argp-fmtstream.c, argp-help.c: update from libc.
56365 2003-09-25 Karl Berry <karl@gnu.org>
56367 * config/install-sh: update from automake.
56369 2003-09-25 Bruno Haible <bruno@clisp.org>
56371 * modules/version-etc-2: New file, from modules/version-etc with
56373 * MODULES.html.sh (func_all_modules): Add version-etc-2.
56375 2003-09-25 Bruno Haible <bruno@clisp.org>
56377 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56378 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56380 2003-09-24 Simon Josefsson <jas@extundo.com>
56382 * modules/xgethostname: Add xgethostname.h.
56384 2003-09-24 Paul Eggert <eggert@twinsun.com>
56386 * lib/linebuffer.c (freebuffer): Don't free the argument, just
56387 the buffer associated with the argument. Bug reported by
56390 2003-09-24 Paul Eggert <eggert@twinsun.com>
56392 * README: Document assumptions that 'int' is at least 32 bits
56393 wide, that integer arithmetic is 2's complement without overflow,
56394 that there are no holes in integer values, that adding sizes of
56395 two nonoverlapping objects can't overflow, and that all-bits-zero
56396 yields scalar zero. Fix spelling and capitalization typos.
56398 2003-09-19 Karl Berry <karl@gnu.org>
56400 * lib/argp.h: update from libc.
56402 2003-09-17 Paul Eggert <eggert@twinsun.com>
56404 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56405 to avoid spurious warnings like "AC_RUN_IFELSE was called before
56406 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56408 2003-09-17 Paul Eggert <eggert@twinsun.com>
56410 * gnulib-tool: Use "test -h", not "test -L", for portability
56411 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
56412 (tags_regexp): Remove, since \| doesn't conform to POSIX.
56413 (sed_extract_prog): Issue s commands one-by-one, rather than
56414 using \| in one s command.
56416 2003-09-16 Paul Eggert <eggert@twinsun.com>
56418 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56419 input error, instead of returning NULL the next time we are called
56420 (and therefore losing track of errno).
56422 2003-09-16 Bruno Haible <bruno@clisp.org>
56424 * gnulib-tool (func_create_testdir): Warn about duplicated
56427 2003-09-15 Paul Eggert <eggert@twinsun.com>
56429 * modules/argmatch, modules/fatal, modules/obstack,
56430 modules/xalloc, modules/xgethostname: Sort dependencies by
56431 importance, not alphabetically.
56433 2003-09-15 Paul Eggert <eggert@twinsun.com>
56435 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56436 fails, so that the caller gets the proper errno.
56438 * lib/readutmp.c (read_utmp): Likewise.
56439 Check for fstat error. Close stream and free storage
56442 2003-09-14 Karl Berry <karl@gnu.org>
56444 * config/srclist.txt (strdup.c): disable for c89 changes.
56446 2003-09-14 Jim Meyering <jim@meyering.net>
56448 * lib/getloadavg.c: Correct cpp indentation.
56449 * lib/strdup.c: Likewise.
56450 * lib/vasnprintf.c: Likewise.
56452 2003-09-14 Bruno Haible <bruno@clisp.org>
56454 * modules/fwriteerror: New file.
56455 * MODULES.html.sh (func_all_modules): Add fwriteerror.
56457 2003-09-14 Bruno Haible <bruno@clisp.org>
56459 * lib/fwriteerror.h: New file.
56460 * lib/fwriteerror.c: New file.
56462 2003-09-12 Paul Eggert <eggert@twinsun.com>
56464 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56465 modules/xgethostname, modules/xalloc: Depend on exit.
56467 2003-09-12 Paul Eggert <eggert@twinsun.com>
56469 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56471 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56472 and AC_MINIX, too, so that their extensions are available.
56474 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
56475 This macro has been superseded by gl_BACKUPFILE.
56477 More patches to assume C89 or better.
56479 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56481 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56483 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56484 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56485 Include <string.h>, <stdlib.h> unconditionally.
56486 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56487 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56488 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56489 headers or for string.h.
56490 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56493 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56495 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56496 * m4/userspec.m4 (gl_USERSPEC): Likewise.
56497 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56498 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56499 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56500 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56502 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56503 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56504 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56506 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56507 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56508 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56511 2003-09-12 Paul Eggert <eggert@twinsun.com>
56513 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56514 * lib/obstack.c [!defined _LIBC]: Likewise.
56515 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56516 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56517 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56519 More changes to assume C89 or better.
56521 * lib/error.c (error_tail): Assume vprintf.
56523 * lib/argmatch.c (getenv): Remove decl.
56524 * lib/progreloc.c (get_full_program_name): Define via prototype.
56525 * lib/setenv.c (clearenv): Likewise.
56526 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56528 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56529 (malloc, memcpy): Remove decls.
56530 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56531 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56532 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56533 (memcpy): Remove macro.
56534 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56535 (__P): Remove. All uses removed.
56536 (PTR): Remove. All uses changed to void *.
56537 (CHAR_BIT, NULL): Remove.
56538 (spaces, zeros, memset_space, memset_zero)
56539 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56541 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56542 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56543 Define with prototype.
56544 Remove now-unnecessary prototype decl.
56545 (extra_args_spec): Assume ANSI C. All uses changed.
56546 (extra_args_spec_iso): Remove.
56547 (my_strftime, emacs_strftimeu): Define via prototype.
56548 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56550 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56551 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56552 (strtoul, strtol): Remove decls.
56553 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56555 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56556 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
56557 (LOCALE_PARAM_PROTO): New macro.
56558 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56559 (INTERNAL (strtol), strtol): Define with a prototype.
56560 (PARAMS): Remove. All uses removed.
56561 * lib/tempname.c: Include <string.h> unconditionally.
56562 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56563 * lib/xgethostname.c (main): Define with a prototype.
56564 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56565 Include <stdlib.h> unconditionally.
56566 (calloc, malloc, realloc, free): Remove decls.
56567 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56568 Include <stdlib.h> unconditionally. Sort include file names.
56570 (xstrtod): Define with a prototype.
56571 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56572 (strtol, strtoul): Remove decls.
56574 2003-09-11 Paul Eggert <eggert@twinsun.com>
56576 More patches to assume C89 or better.
56577 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56578 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56579 string.h, memchr, STDC_HEADERS.
56581 2003-09-11 Paul Eggert <eggert@twinsun.com>
56583 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56584 Include <stdlib.h>, <string.h> unconditionally.
56585 Remove now-unnecessary cast to char *.
56586 * lib/strnlen.c: Include <string.h> unconditionally.
56587 * lib/yesno.c (yesno): Define with a prototype.
56589 2003-09-11 Bruno Haible <bruno@clisp.org>
56591 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56593 2003-09-10 Jim Meyering <jim@meyering.net>
56595 * lib/error.c: Correct indentation of cpp directives.
56597 2003-09-10 Bruno Haible <bruno@clisp.org>
56599 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56600 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56601 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56602 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56603 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56604 <stdlib.h> and <string.h> checks.
56605 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56606 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56608 2003-09-10 Bruno Haible <bruno@clisp.org>
56610 * lib/strcspn.c: Include <string.h> unconditionally.
56611 * lib/strpbrk.c: Include <string.h> unconditionally.
56612 * lib/strstr.c: Include <string.h> unconditionally.
56613 * lib/unicodeio.c: Include <string.h> unconditionally.
56614 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56615 * lib/unsetenv.c: Likewise.
56616 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56617 * lib/yesno.c: Include <stdlib.h> unconditionally.
56618 (rpmatch): Add prototype.
56620 2003-09-09 Paul Eggert <eggert@twinsun.com>
56622 More patches to assume C89 or better.
56623 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56624 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56625 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56627 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56629 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56631 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56633 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56634 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56635 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56637 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56638 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56640 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56642 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56643 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56644 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56645 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56646 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56647 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56649 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56650 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56651 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56652 C headers, or for string.h.
56653 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56654 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56655 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56656 headers, memory.h, stdlib.h, string.h, strings.h.
56657 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56658 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56659 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56661 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56662 headers, memory.h, string.h.
56663 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56664 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56666 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56668 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56669 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56670 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56671 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56672 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56674 2003-09-09 Paul Eggert <eggert@twinsun.com>
56678 * lib/acosl.c (main): Use a prototype.
56679 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56682 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56684 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56685 (getopt, etopt_long, getopt_long_only, _getopt_internal)
56686 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56688 * lib/getopt.c (const): Remove macro.
56689 Include <string.h> unconditionally.
56690 (my_index): Remove; all uses changed to strchr.
56691 (strlen): Remove decl.
56692 (exchange): Remove forward decl; no longer needed.
56693 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56694 Define with prototype.
56695 * lib/getopt1.c (const): Remove macro.
56696 (getopt_long, getopt_long_only, main): Define with prototype.
56698 * lib/getugroups.c: Include <string.h> unconditionally.
56700 * lib/getusershell.c: Include <stdlib.h> unconditionally.
56701 (getusershell, setusershell, endusershell, readname, main):
56702 Define with prototypes.
56704 * lib/group-member.c: Include group-member.h first.
56705 Include <stdlib.h> unconditionally.
56707 * lib/hard-locale.c: Include hard-locale.h first.
56708 Include <stdlib.h>, <string.h> unconditionally.
56710 * lib/hash.c (free, malloc): Remove decls.
56711 Include <stdlib.h> unconditionally.
56713 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56714 (getenv): Do not declare.
56716 * lib/idcache.c: Include <string.h> unconditionally.
56718 * lib/long-options.c: Include long-options.h first, to test interface.
56719 Include <stdlib.h> unconditionally.
56721 * lib/makepath.c: Include makepath.h first, to test interface.
56722 Include <stdlib.h> and <string.h> unconditionally.
56724 * lib/linebuffer.c: Include <stdlib.h>.
56725 (free): Remove decl.
56727 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56728 stddef.h. rpl_malloc returns void *, not char *.
56729 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
56732 * lib/md5.h: Include <limits.h> unconditionally.
56733 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56734 (__P): Remove; all uses removed.
56735 * lib/md5.c: Include "md5.h" first.
56736 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56737 md5_buffer, md5_process_bytes, md5_process_block):
56738 Define with prototypes.
56739 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
56740 * lib/sha.c: Include "sha.h" first.
56741 Include <stdlib.h>, <string.h> unconditionally.
56743 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56744 * lib/memcmp.c (__ptr_t): Likewise.
56745 * lib/memrchr.c (__ptr_t): Likewise.
56746 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56747 Include <string.h> unconditionally.
56748 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56749 * lib/memchr.c: Include <stdlib.h> unconditionally.
56750 * lib/memchr.c (LONG_MAX): Remove.
56751 * lib/memrchr.c (LONG_MAX): Likewise.
56752 * lib/memchr.c (__memchr): Define via a prototype.
56753 * lib/memrchr.c (__memrchr): Likewise.
56754 * lib/memcmp.c (__P): Remove, and remove all uses.
56755 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56756 Remove forward decls; no longer needed.
56757 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56758 Use types required by C89 in prototype.
56760 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56761 * lib/savedir.c: Likewise.
56762 * lib/mkdir.c (free): Remove decl.
56763 * lib/rmdir.c (rmdir): Define with a prototype.
56764 * lib/savedir.c: Include savedir.h first, to test interface.
56766 * lib/mktime.c (STDC_HEADERS): Remove.
56767 Include <stdlib.h>, <string.h> unconditionally.
56769 * lib/modechange.c: Include <stdlib.h> unconditionally.
56770 (malloc): Remove decl.
56772 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56773 (free): Remove decl.
56775 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56776 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56777 (This type really should be intptr_t, but that's a C99ism.)
56778 (_obstack_memcpy): Remove: all uses changed to memcpy.
56779 Include <string.h> unconditionally.
56780 (struct obstack): Assume __STDC__ for types of members
56781 chunkfun, freefun, extra_arg.
56782 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56783 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56784 obstack_begin, obstack_specify_allocation,
56785 obstack_specify_allocation_with_arg, obstack_chunkfun,
56786 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56787 Remove unprototyped decls and the macros that use them.
56788 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
56789 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56790 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56791 (defined __STDC__ && __STDC__)]:
56792 Remove nonprototyped code.
56793 Include <stdlib.h> unconditionally.
56794 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56795 _obstack_allocated_p, _obstack_free, obstack_free,
56796 _obstack_memory_used, print_and_abort):
56797 Define using prototypes.
56798 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56799 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56800 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56801 obstack_next_free, obstack_object_size, obstack_room) [0]:
56802 Remove unused, unprototyped code.
56804 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56806 * lib/physmem.c (physmem_total, physmem_available, main): Define
56809 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56810 (main): Define with a prototype.
56812 * lib/posixver.c (getenv): Remove decl.
56814 * lib/putenv.c (malloc): Returns void *, not char *.
56815 Include <string.h> unconditionally.
56816 (strchr, memcpy, NULL): Do not define.
56818 * lib/readtokens.c: Include readtokens.h first, to test interface.
56819 Include <stdlib.h>, <string.h> unconditionally.
56820 (init_tokenbuffer): Define with a prototype.
56822 * lib/regex.c (PARAMS): Remove. All uses removed.
56823 All uses of _RE_ARGS removed, too.
56824 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56826 (bzero): Assume memset exists.
56827 (memcmp, memcpy, NULL): Remove.
56828 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56829 char, or assignments to local vars of type signed char.
56830 (init_syntax_once, PREFIX(extract_number_and_incr),
56831 PREFIX(print_partial_compiled_pattern),
56832 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56833 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56834 PREFIX(regex_grow_registers), PREFIX(regex_compile),
56835 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56836 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56837 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56838 wcs_compile_range, byte_compile_range, truncate_wchar,
56839 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56840 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56841 count_mbs_length, wcs_re_match_2_internal,
56842 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56843 PREFIX(alt_match_null_string_p),
56844 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56845 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56846 regfree, PREFIX(extract_number)): Define with prototype. Remove
56847 now-unnecessary declaration, if any.
56848 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56850 Remove now-unnecessary casts among pointer types.
56851 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
56853 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56854 (free): Remove decl.
56856 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56858 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56859 (free): Remove decl.
56861 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56862 * lib/xgetcwd.c: Likewise.
56864 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56865 (free): Remove decl.
56867 * lib/strchrnul.c (strchrnul): Define with a prototype.
56868 Fix bug: c_in was not converted to char before searching.
56870 The following changes are not K&R related:
56872 * lib/group-member.h: Include <sys/types.h>, so that this file is
56874 * lib/makepath.h: Likewise.
56876 * lib/getusershell.c (readname, default_index, line_size, readname):
56877 Use size_t, not int, for sizes.
56878 (readname): If the size overflows, report an error instead of
56881 2003-09-09 Paul Eggert <eggert@twinsun.com>
56883 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56886 2003-09-09 Paul Eggert <eggert@twinsun.com>
56888 * README: New section: portability guidelines.
56890 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56892 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56895 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56897 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56899 2003-09-08 Paul Eggert <eggert@twinsun.com>
56901 Assume C89 or better; remove K&R cruft.
56902 A few of these changes were first proposed by Derek Robert Price
56903 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56905 * lib/addext.c: Include <string.h> unconditionally.
56906 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56907 Don't declare getenv or malloc.
56909 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56910 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56912 (find_stack_direction, alloca): Use prototypes.
56914 * lib/atexit.c (atexit): Define using a prototype.
56916 * lib/basename.c, dirname.c, stripslash.c:
56917 Include <string.h> unconditionally.
56919 * lib/bcopy.c: Include <stddef.h>.
56920 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56922 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56924 * lib/error.h (error, error_at_line, error_print_progname)
56925 [! (defined (__STDC__) && __STDC__)]: Remove decls.
56926 * lib/error.c: Include error.h first, to check interface.
56927 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56928 (VA_START): Remove; all uses changeed to va_start.
56929 (exit, strerror): Remove decls.
56930 (error_print_progname): Prototype uncondionally.
56931 Don't include <errno.h>; no longer needed.
56932 (private_strerror): Remove.
56933 (error_tail): Always define.
56934 (error, error_at_line): Assume C89 or better; always use prototypes.
56935 * lib/fatal.c: Include "fatal.h" first, to test interface.
56936 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56937 (VA_START): Remove; all uses changed to va_start.
56938 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56940 (exit): Remove decl.
56941 (fatal): Prototype unconditionally. Assume va_start works.
56942 Abort at end, to pacify gcc.
56944 * lib/euidaccess.c (main): Define with a prototype.
56946 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56948 * lib/exitfail.c: Include <stdlib.h> unconditionally.
56950 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
56952 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56953 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56954 (getenv): Remove decl.
56955 (fnmatch): Define using a prototype.
56956 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56957 (FCT): Define using a prototype.
56959 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56961 * lib/gethostname.c: Include <stddef.h>.
56962 (gethostname): Define with prototype. Length is size_t, not int.
56964 2003-09-08 Paul Eggert <eggert@twinsun.com>
56966 Assume C89 or better; remove K&R cruft.
56967 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56968 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56969 string.h, getenv, malloc.
56970 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56972 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56973 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56974 do not check for strerror.
56975 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56976 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56977 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56978 do not check for doprnt or vprintf.
56979 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
56980 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56982 2003-09-08 Paul Eggert <eggert@twinsun.com>
56984 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56985 getversion.c should have been removed then, but was accidentally
56988 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56989 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56991 2003-09-08 Karl Berry <karl@gnu.org>
56993 * config/config.sub, config.guess, srclistvars.sh: update from savannah
56994 config, forget about prep.
56996 * config/depcomp, missing: update from automake.
56998 2003-09-07 Paul Eggert <eggert@twinsun.com>
57000 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
57001 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57003 2003-09-07 Paul Eggert <eggert@twinsun.com>
57005 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57006 copy_tm_result. Bug reported by Simon Josefsson in
57007 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57009 2003-09-06 Paul Eggert <eggert@twinsun.com>
57011 * m4/time_r.m4: New file.
57012 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57013 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57014 is. Check for timegm declaration.
57015 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57016 Do not check for gmtime_r.
57017 Replace mktime if __mktime_internal does not exist and if mktime
57018 hasn't been replaced already.
57020 2003-09-06 Paul Eggert <eggert@twinsun.com>
57022 * lib/time_r.c, lib/time_r.h: New files.
57024 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57026 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
57027 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57029 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57031 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57032 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57033 Include <time_r.h>.
57035 * lib/timegm.c: Switch to glibc implementation, with the following
57037 [defined HAVE_CONFIG_H]: Include <config.h>.
57038 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57039 (__mktime_internal) [!defined _LIBC]: New decl.
57040 (__gmtime_r) [!defined _LIBC]: New macro and function.
57041 (timegm): Use a prototype, since gnulib assumes C89.
57042 Do not bother declaring tmp to be const, as it's not really usefu.
57043 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57044 (timegm): Declare only if HAVE_DECL_TIMEGM.
57046 2003-09-06 Paul Eggert <eggert@twinsun.com>
57048 * MODULES.html.sh (func_all_modules): Add time_r.
57049 * modules/time_r: New file.
57050 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57051 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
57053 2003-09-03 Paul Eggert <eggert@twinsun.com>
57055 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57056 Bug reported by Lute Kamstra in
57057 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57059 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57060 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
57061 course with correspondingly smaller numbers for tomorrow and
57062 yesterday. From Tadayoshi Funaba. Originally installed into
57063 sh-utils on 1999-08-07, but the patch got lost (I guess during the
57066 2003-08-31 Simon Josefsson <jas@extundo.com>
57068 * modules/timegm: New file.
57069 * MODULES.html.sh (func_all_modules): Add timegm.
57071 2003-08-31 Simon Josefsson <jas@extundo.com>
57073 * m4/timegm.m4: New file.
57075 2003-08-31 Simon Josefsson <jas@extundo.com>
57077 * lib/timegm.h: New file.
57078 * lib/timegm.c: New file. Based on
57079 wget-1.8.2/src/http.c:mktime_from_utc.
57081 2003-08-31 Karl Berry <karl@gnu.org>
57083 * lib/argp.h: update from libc.
57085 2003-08-28 Bruno Haible <bruno@clisp.org>
57087 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57088 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57089 followed by '#define fnmatch fnmatch_posix' gives an error.
57091 2003-08-28 Bruno Haible <bruno@clisp.org>
57093 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57094 warning on QNX, which defines O_BINARY to 000000.
57096 2003-08-27 Jim Meyering <jim@meyering.net>
57098 * m4/mkstemp.m4: Require that the system mkstemp be able to create
57099 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
57100 would fail after 32. Reported by Danny Levinson. Details here:
57101 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57103 2003-08-24 Bruno Haible <bruno@clisp.org>
57105 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57106 MSVC7 <stdio.h> is included later.
57108 2003-08-22 Simon Josefsson <jas@extundo.com>
57110 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57112 2003-08-20 Karl Berry <karl@gnu.org>
57114 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57116 2003-08-20 Bruno Haible <bruno@clisp.org>
57118 * modules/progname: New file.
57119 * MODULES.html.sh (func_all_modules): Add progname.
57121 2003-08-20 Bruno Haible <bruno@clisp.org>
57123 * lib/progname.h: New file, from GNU gettext.
57124 * lib/progname.c: New file, from GNU gettext.
57125 * lib/progreloc.c: New file, from GNU gettext.
57127 2003-08-19 Jim Meyering <jim@meyering.net>
57129 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57130 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57132 2003-08-19 Bruno Haible <bruno@clisp.org>
57134 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57137 2003-08-19 Bruno Haible <bruno@clisp.org>
57139 * lib/xstrdup.c: Assume <string.h> exists.
57141 2003-08-18 Paul Eggert <eggert@twinsun.com>
57143 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
57146 2003-08-18 Jim Meyering <jim@meyering.net>
57148 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57149 * m4/lib-ld.m4: Likewise.
57151 2003-08-18 Jim Meyering <jim@meyering.net>
57153 * lib/setenv.h: Indent nested cpp directive.
57154 * lib/vasnprintf.c: Remove trailing blanks.
57156 2003-08-17 Simon Josefsson <jas@extundo.com>
57158 * modules/xstrndup: New file.
57159 * MODULES.html.sh (func_all_modules): Add xstrndup.
57161 2003-08-17 Simon Josefsson <jas@extundo.com>
57163 * modules/argp: Fix autoconf macro name. Add more dependencies.
57165 2003-08-17 Simon Josefsson <jas@extundo.com>
57167 * m4/xstrndup.m4: New file.
57169 2003-08-17 Simon Josefsson <jas@extundo.com>
57171 * m4/argp.m4: New file.
57173 2003-08-17 Simon Josefsson <jas@extundo.com>
57174 Bruno Haible <bruno@clisp.org>
57176 * lib/xstrndup.h: New file.
57177 * lib/xstrndup.c: New file.
57179 2003-08-17 Bruno Haible <bruno@clisp.org>
57181 * modules/strndup (Files, Include): Add lib/strndup.h.
57183 2003-08-17 Bruno Haible <bruno@clisp.org>
57185 * modules/euidaccess (Files): Add lib/euidaccess.h.
57187 2003-08-17 Bruno Haible <bruno@clisp.org>
57189 * lib/strndup.h: New file.
57191 2003-08-17 Bruno Haible <bruno@clisp.org>
57193 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57194 like AC_GNU_SOURCE.
57195 * modules/extensions (configure.ac): Comment out the invocation of
57196 gl_USE_SYSTEM_EXTENSIONS.
57198 2003-08-16 Paul Eggert <eggert@twinsun.com>
57200 Merges from coreutils, etc.
57201 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57202 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
57203 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57205 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57206 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57208 2003-08-16 Paul Eggert <eggert@twinsun.com>
57210 Document merge from coreutils.
57211 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57212 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57213 * modules/utime: Add m4/utimes-null.m4.
57215 2003-08-16 Paul Eggert <eggert@twinsun.com>
57217 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57218 space, undoing this 2003-08-12 change:
57219 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57221 2003-08-16 Paul Eggert <eggert@twinsun.com>
57223 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57224 strtoul.c from libc, undoing this 2003-08-12 change:
57225 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57227 2003-08-16 Jim Meyering <jim@meyering.net>
57229 Merges from coreutils.
57230 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57231 prefix. Adjust cache variables similarly. Create 500 rather than
57232 just 300 files, to exercise bug on Darwin6.5, too.
57233 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57235 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57236 AM_SYS_POSIX_TERMIOS.
57237 Reported by mkc@mathdogs.com.
57238 Also change use of $am_cv_sys_posix_termios
57239 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
57240 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57241 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57242 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57243 in /proc/mounts until it finds one with matching device number. This
57244 is unnecessary when the FILE argument *is* a mount point. No stat call
57245 is necessary in that case. So, disable the statvfs-testing code on
57246 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
57247 as RedHat bug# 84846.
57248 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57249 to 1MB, so as not to render systems with no stack size limit (e.g.,
57250 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
57251 Include <unistd.h>. On some systems,
57252 it is required for the definition of _SC_PAGESIZE.
57254 2003-08-16 Jim Meyering <jim@meyering.net>
57256 Merge from coreutils.
57257 * lib/xstrtoimax.c: #else #if -> #elif.
57258 * lib/xstrtoumax.c: Likewise.
57260 2003-08-16 Jim Meyering <jim@meyering.net>
57262 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57263 * m4/utimes.m4: Removed.
57264 * m4/utimes-null.m4: Renamed from utimes.m4.
57266 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57267 to 1MB, so as not to render systems with no stack size limit (e.g.,
57268 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
57269 Include <unistd.h>. On some systems,
57270 it is required for the definition of _SC_PAGESIZE.
57272 2003-08-16 Jim Meyering <jim@meyering.net>
57273 and Paul Eggert <eggert@cs.ucla.edu>
57275 Merges from coreutils, etc.
57277 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57278 using the latest version from cvs. This avoids problems with #line
57279 directives using a vendor (Sun) compiler.
57280 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57281 Don't set GETGROUPS_LIB here; now it's
57282 done via getgroups.m4's wrapper function.
57283 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57284 rather than just in sh-util/configure.in, so that the
57285 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57287 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57288 AC_FUNC_GETLOADAVG where to find getloadavg.c.
57289 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57290 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57291 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57292 Remove code that is now done by the newly-required macros.
57293 Append $(EXEEXT) to DF_PROG.
57294 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57295 Do not invoke or require the following here,
57296 since prereq.m4 or some gnulib .m4 now does this for us:
57297 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57298 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57299 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57300 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57301 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57302 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57303 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57305 Do not replace the following functions, as this is now the job
57306 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57307 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57308 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57309 atexit getpass, strdup, getpagesize.
57311 Do not check for the following functions, as this is now the job
57312 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57313 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
57315 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57316 Check for sys/sysctl.h.
57317 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57318 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
57319 of checking for ssize_t ourselves.
57321 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57322 Require every macro that gnulib/modules/* suggests for us.
57323 (jm_PREREQ_ADDEXT): New macro.
57324 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57325 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57327 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57328 (gl_PHYSMEM): Use it.
57329 Also check for `table' function.
57330 Check for new headers and functions.
57331 Add check for sys/sysmp.h.
57332 With suggestions from Kaveh Ghazi.
57333 Ignore headers that are present but cannot be compiled. This
57334 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57337 2003-08-15 Paul Eggert <eggert@twinsun.com>
57339 Document merge from coreutils.
57340 * modules/userspec: Depend on posixver.
57341 * modules/strftime: Depend on tzset.
57343 2003-08-15 Paul Eggert <eggert@twinsun.com>
57345 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57346 rather than tab, after '#' in shell-script copyright notices.
57347 Suggested by Bruno Haible.
57349 2003-08-15 Paul Eggert <eggert@twinsun.com>
57351 * config/srclist-update: Use three spaces, rather than tab, after '#'
57352 in shell-script copyright notices. Suggested by Bruno Haible.
57353 Remove unnecessary parenthesization in regular expression.
57355 2003-08-15 Jim Meyering <jim@meyering.net>
57357 Merge from coreutils.
57358 * lib/xgethostname.c: Include <stdlib.h>.
57359 (xghostname): Don't exit for anything other than memory-related
57360 failure; just return NULL.
57361 * lib/userspec.c: Include "posixver.h".
57362 (parse_user_spec): Accept `.' as a separator only
57363 in pre-POSIX-200112 mode.
57364 * lib/strtoimax.c: Use #elif rather than #else #if.
57365 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57366 Remove function, now that we can rely on a working tzset function.
57367 [!_LIBC]: Ensure that the required autoconf test has been run.
57368 [!defined _NL_CURRENT && HAVE_STRFTIME]:
57369 Use underlying_strftime for %r.
57370 * lib/sha.c: Merge in some clean-up and optimization changes from
57372 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57373 Ensure that it is a multiple of 64.
57374 Rearrange loop exit tests so as to avoid performing an
57375 additional fread after encountering an error or EOF.
57376 * lib/realloc.c: Update copyright date.
57378 2003-08-15 Jim Meyering <jim@meyering.net>
57379 and Paul Eggert <eggert@twinsun.com>
57381 Merge from coreutils.
57382 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57383 member but strut utmpx does not. Needed for AIX 4.3.3.
57384 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57386 2003-08-15 Jim Meyering <jim@meyering.net>
57387 and Paul Eggert <eggert@cs.ucla.edu>
57389 Merges from coreutils, etc.
57390 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57391 Require gl_FUNC_TZSET_CLOBBER.
57392 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57393 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57396 2003-08-14 Paul Eggert <eggert@twinsun.com>
57398 Help the merge from coreutils.
57399 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57400 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57401 * m4/tzset.m4: Use it too.
57403 2003-08-14 Paul Eggert <eggert@twinsun.com>
57405 * modules/tzset: New file.
57407 2003-08-14 Jim Meyering <jim@meyering.net>
57409 Merges from coreutils.
57410 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57411 variable names, rather than @FNMATCH_H@.
57412 * modules/alloca: Likewise for $(ALLOCA_H).
57414 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57415 the three copies of the literal target, `fnmatch.h'.
57416 * modules/alloca (alloca.h): Likewise.
57418 2003-08-14 Jim Meyering <jim@meyering.net>
57420 Merge from coreutils.
57421 * m4/tzset.m4: New file.
57422 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57423 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57424 otherwise, AIX 5.1 systems would end up using the latter.
57425 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57426 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
57427 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57428 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
57430 2003-08-14 Jim Meyering <jim@meyering.net>
57432 Merge from coreutils.
57433 * lib/obstack.h: Whitespace changes.
57434 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57435 and xcalloc return values.
57436 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57437 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
57438 hang on OSF/1 5.1 for DIR on both local and remote file systems.
57439 Reported by (and fix confirmed by) Nelson H. F. Beebe.
57440 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57442 Use mntctl's return value to drive the entry-processing loop, since
57443 we can't rely on the value of the vmt_length member in the last
57444 entry. On some systems doing so could result in exhausting
57445 virtual memory. Based in part on a patch from Mike Jetzer.
57447 2003-08-14 Jim Meyering <jim@meyering.net>
57448 and Paul Eggert <eggert@twinsun.com>
57450 Merges from coreutils, plus other fixes.
57451 * lib/physmem.c: Merge in portability changes from gcc/libiberty
57452 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
57453 for credits and details. Thanks to Kaveh Ghazi for helping
57454 to keep these files in sync.
57455 (ARRAY_SIZE): Define it.
57456 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57457 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57458 (memcasecmp): Don't assume size_t fits in unsigned int.
57459 Remove casts and duplicate code.
57460 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57461 (memcpy): Remove definition.
57462 Merge in some clean-up and optimization changes from glibc.
57463 [BLOCKSIZE]: Move definition to top of file.
57464 Ensure that it is a multiple of 64.
57465 Rearrange loop exit tests so as to avoid performing an
57466 additional fread after encountering an error or EOF.
57467 * lib/md5.h (md5_uintptr): Define.
57468 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57469 return to the initial working directory. Preserve errno
57471 * lib/idcache.c: Include "xalloc.h".
57472 (xmalloc, xrealloc): Remove decls.
57473 (getuser): Remove casts no longer required in C89.
57474 * lib/human.c: Include stdio.h, for sprintf.
57475 * lib/group-member.c: Include "xalloc.h".
57476 (xmalloc, xrealloc): Remove decls.
57477 (get_group_info): Remove casts no longer required in C89.
57478 * lib/getusershell.c (readname): Remove casts no longer required in
57480 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57481 * lib/getline.c: Whitespace fix, from coreutils.
57483 2003-08-13 Paul Eggert <eggert@twinsun.com>
57485 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57488 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57489 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57490 Undo previous (whitespace-only) change.
57492 2003-08-13 Paul Eggert <eggert@twinsun.com>
57494 * lib/exclude.c: Include <ctype.h>
57495 (IN_CTYPE_DOMAIN): New macro.
57496 (is_space): New fn.
57497 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57500 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57501 Undo previous (whitespace-only) change.
57503 2003-08-13 Paul Eggert <eggert@twinsun.com>
57505 * config/srclist-update: Change update back to the old behavior,
57506 leaving whitespace alone. Use one 'sed' command rather than a
57508 (fixlicense): Now a variable, not a function.
57509 (remove_trailing_blanks): Remove.
57510 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57511 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57512 Undo previous (whitespace-only) change.
57514 2003-08-12 Paul Eggert <eggert@twinsun.com>
57516 Merge from coreutils.
57517 * modules/euidaccess: Add lib_SOURCES, include for new
57520 2003-08-12 Paul Eggert <eggert@twinsun.com>
57522 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57523 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57524 Normalize leading white space and remove trailing white space.
57526 Merge from coreutils
57527 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57529 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57530 0.12.1. These files are now being upgraded automatically by
57531 ../config/srclist-update.
57533 2003-08-12 Paul Eggert <eggert@twinsun.com>
57535 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57536 Normalize leading white space and remove trailing white space.
57537 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57538 notice, as per ../config/srclist-update.
57540 Merge from coreutils.
57541 * lib/euidaccess.h: New file.
57542 * lib/euidaccess.c: Include it.
57543 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57544 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
57545 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57547 2003-08-12 Paul Eggert <eggert@twinsun.com>
57549 * config/srclist-update: Add copyright notice.
57550 (remove_id_lines, remove_trailing_blanks): New constants.
57551 (fixfile): Use them to normalize spacing a bit in copied files.
57552 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57553 Normalize leading white space and remove trailing white space.
57555 * config/texinfo.tex: Sync with texinfo.
57557 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57558 strtoul.c from libc, to merge coreutils whitespace changes.
57560 * config/srclist.txt: Get the following m4 files from gettext:
57561 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57562 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57563 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57566 2003-08-12 Karl Berry <karl@gnu.org>
57568 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57571 2003-08-11 Paul Eggert <eggert@twinsun.com>
57573 * modules/gnu-source, m4/gnu-source.m4:
57574 Remove; we're assuming Autoconf 2.54 or later now.
57575 Suggested by Bruno Haible.
57576 * MODULES.html.sh (func_all_modules): Remove gnu-source.
57578 2003-08-11 Bruno Haible <bruno@clisp.org>
57580 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57582 2003-08-11 Bruno Haible <bruno@clisp.org>
57584 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57585 (vasnprintf): Use it instead of wcslen.
57587 2003-08-11 Bruno Haible <bruno@clisp.org>
57589 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57590 value to ensure that _Bool promotes to int. Use #define for _Bool when
57591 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57593 2003-08-10 Karl Berry <karl@gnu.org>
57595 * lib/regex.h: update from libc (whitespace fix).
57597 2003-08-09 Paul Eggert <eggert@twinsun.com>
57599 Merge some files from coreutils. These changes were
57600 originally made by Jim Meyering.
57601 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57602 many older Unixes require this.
57603 * lib/alloca.c (alloca): Remove cast to argument of free;
57604 no longer needed in C89.
57605 * lib/alloca_.h, regex.h: Fix white space to match
57606 what GNU indent does.
57608 2003-08-09 Paul Eggert <eggert@twinsun.com>
57610 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57611 apparently Emacs's Unicode mode got confused before my 2003-08-05
57614 2003-08-08 Paul Eggert <eggert@twinsun.com>
57616 * m4/extensions.m4: New file.
57617 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57618 Require gl_USE_SYSTEM_EXTENSIONS.
57619 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57620 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57622 2003-08-08 Paul Eggert <eggert@twinsun.com>
57624 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57625 * modules/extensions, modules/gnu-source: New files.
57626 * modules/timespec, modules/unlocked-io: Depend on extensions.
57628 2003-08-07 Paul Eggert <eggert@twinsun.com>
57630 * modules/restrict: New file.
57631 * MODULES.html.sh (func_all_modules): Add restrict.
57632 * modules/regex: Depend on restrict.
57634 2003-08-07 Paul Eggert <eggert@twinsun.com>
57636 * m4/restrict.m4: New file.
57637 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57639 2003-08-07 Bruno Haible <bruno@clisp.org>
57641 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57642 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57644 2003-08-07 Bruno Haible <bruno@clisp.org>
57646 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57647 makes the module 'getndelim2' compatible with the module 'getline'.
57649 2003-08-05 Paul Eggert <eggert@twinsun.com>
57651 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57652 byte with "\201" to avoid glitches when editing that source file
57653 with multi-gnome-terminal.
57655 2003-08-05 Paul Eggert <eggert@twinsun.com>
57657 * lib/bumpalloc.h: Remove.
57659 2003-08-05 Paul Eggert <eggert@twinsun.com>
57661 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57662 * modules/bumpalloc: Remove.
57664 2003-08-04 Paul Eggert <eggert@twinsun.com>
57666 * lib/getloadavg.c: Change copyright notice and spacing to conform to
57669 Merge from coreutils.
57670 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57672 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57673 from Karl Berry, implemented by Jim Meyering.
57674 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57675 from Dmitry V. Levin.
57676 Remove anachronistic cast of xrealloc.
57677 * lib/fnmatch_.h (__const): Remove. Use 'const'.
57678 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57679 type. Otherwise, it wouldn't compile with at least /bin/cc on
57680 ymp-cray-unicos9.0.2.X.
57681 Combine two mostly-identical uses of alloca into one.
57682 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57684 2003-08-04 Dave Love <d.love@dl.ac.uk>
57688 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
57689 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
57690 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57691 obsolete NLIST_NAME_UNION.
57692 [__GNU__]: Undef BSD and FSCALE.
57693 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57695 2003-08-03 Paul Eggert <eggert@twinsun.com>
57697 * lib/stdbool_.h (_Bool): Make it signed char, instead of
57698 an enum type, so that it's guaranteed to promote to int. See:
57699 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57701 2003-08-03 Karl Berry <karl@gnu.org>
57703 * config/depcomp: update from automake.
57705 2003-07-31 Paul Eggert <eggert@twinsun.com>
57707 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
57708 (strerror): Don't assume that a printable int fits in 14 bytes.
57710 2003-07-31 Bruno Haible <bruno@clisp.org>
57712 * modules/getpass-gnu: New file.
57713 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57715 2003-07-31 Bruno Haible <bruno@clisp.org>
57717 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57719 2003-07-24 Karl Berry <karl@gnu.org>
57721 * config/missing: update from automake.
57723 2003-07-24 Derek Robert Price <derek@ximbiot.com>
57724 Bruno Haible <bruno@clisp.org>
57726 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57727 * lib/getline.c (getline, getdelim): Likewise.
57728 Remove _GNU_SOURCE define; now it's defined in config.h through
57731 2003-07-23 Karl Berry <karl@gnu.org>
57733 * config/config.sub: update from prep.
57735 2003-07-22 Paul Eggert <eggert@twinsun.com>
57737 * modules/xalloc (Depends-on): Add exitfail.
57738 * modules/xmemcoll: Likewise.
57740 2003-07-22 Paul Eggert <eggert@twinsun.com>
57742 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57743 over-parenthesization in macros.
57745 Sync with coreutils.
57747 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57750 Use `exit_failure' for xalloc and xmemcoll instead of their own
57751 private exit-failure variables.
57752 * lib/xalloc.h (xalloc_exit_failure): Remove.
57753 * lib/xmalloc.c: Likewise. Include exitfail.h.
57754 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57755 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57756 * lib/xmemcoll.c: Likewise. Include exitfail.h.
57757 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57759 2003-07-20 Jim Meyering <jim@meyering.net>
57761 * modules/closeout (Depends-on): Add exitfail.
57762 Suggestion from Bruno Haible.
57764 2003-07-19 Karl Berry <karl@gnu.org>
57766 * config/config.sub: update from prep.
57768 2003-07-18 Paul Eggert <eggert@twinsun.com>
57770 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57772 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
57773 to test that it can stand by itself. Include "exitfail.h".
57774 Clients should set exit_failure instead.
57775 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
57777 2003-07-18 Bruno Haible <bruno@clisp.org>
57779 * modules/getndelim2: New file.
57780 * modules/getline: Share files with module getndelim2.
57781 * modules/getnline: Depend on getndelim2 instead of sharing files with
57782 it. Add getnline.c to lib_SOURCES.
57783 * MODULES.html.sh (func_all_modules): Add getndelim2.
57785 2003-07-18 Bruno Haible <bruno@clisp.org>
57787 * m4/getndelim2.m4: New file.
57788 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57789 invoke gl_PREREQ_GETNDELIM2.
57790 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57791 gl_PREREQ_GETNDELIM2.
57792 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57795 2003-07-18 Bruno Haible <bruno@clisp.org>
57797 * lib/getndelim2.h: New file.
57798 * lib/getndelim2.c: Make into a module of its own. Include config.h,
57800 (getndelim2): Make non-static. Change return type to ssize_t.
57801 * lib/getline.h: Change argument names.
57802 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57803 * lib/getnline.c: Include getndelim2.h.
57805 2003-07-18 Andreas Schwab <schwab@suse.de>
57807 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57809 2003-07-17 Karl Berry <karl@gnu.org>
57811 * config/config.sub: update from prep.
57813 2003-07-17 Bruno Haible <bruno@clisp.org>
57815 * modules/getnline: New file.
57816 * modules/getline: Add lib/getndelim2.c to source file list.
57817 * MODULES.html.sh (func_all_modules): Add getnline.
57819 2003-07-17 Bruno Haible <bruno@clisp.org>
57821 * m4/getnline.m4: New file.
57823 2003-07-17 Bruno Haible <bruno@clisp.org>
57825 * m4/Makefile.am.in: Remove file.
57826 * m4/Makefile.am: Remove file.
57827 * m4/Makefile.in: Remove file.
57829 2003-07-17 Bruno Haible <bruno@clisp.org>
57831 * lib/getnline.h: New file.
57832 * lib/getnline.c: New file.
57833 * lib/getndelim2.c: New file, extracted from getline.c.
57834 (getndelim2): Renamed from getdelim2, with added nmax argument.
57835 * lib/getline.c: Include getndelim2.c.
57836 (getdelim2): Moved out to getndelim2.c.
57837 (getline, getdelim): Update.
57839 2003-07-17 Bruno Haible <bruno@clisp.org>
57841 * lib/Makefile.am: Remove file.
57842 * lib/Makefile.in: Remove file.
57844 2003-07-17 Bruno Haible <bruno@clisp.org>
57846 * configure.in: Remove file.
57847 * Makefile.in: Remove file.
57849 2003-07-17 Bruno Haible <bruno@clisp.org>
57851 * MODULES.html.sh: Put the </BODY> right before </HTML>.
57853 2003-07-16 Karl Berry <karl@gnu.org>
57855 * config/srclist-update: was running fixlicense twice, which caused
57856 texinfo.tex to be nullified for some reason. Simplify,
57857 $gplsrc is no longer needed as far as I can see?
57859 2003-07-16 Jim Meyering <jim@meyering.net>
57861 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
57863 2003-07-15 Paul Eggert <eggert@twinsun.com>
57865 * config/srclist.txt: Get the following files from gettext-runtime/intl
57866 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57867 ref-del.sin. From Bruno Haible.
57868 * config/srclist-update (fixfile): Change grep pattern again, since the
57869 previous fix didn't work (there was another trailing $). Use
57870 '[$]' to escape the $s.
57872 2003-07-15 Karl Berry <karl@gnu.org>
57874 * lib/vasnprintf.c: update from gettext.
57876 2003-07-15 Karl Berry <karl@gnu.org>
57878 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57879 gets expanded when surrounded by '$'.
57881 2003-07-15 Jim Meyering <jim@meyering.net>
57883 * modules/save-cwd: Don't depend on error. From Derek Price.
57885 2003-07-15 Jim Meyering <jim@meyering.net>
57887 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57889 2003-07-14 Simon Josefsson <jas@extundo.com>
57891 * modules/mempcpy: New file.
57892 * MODULES.html.sh (func_all_modules): Add mempcpy.
57894 2003-07-14 Simon Josefsson <jas@extundo.com>
57896 * m4/mempcpy.m4: New file.
57898 2003-07-14 Simon Josefsson <jas@extundo.com>
57900 * lib/mempcpy.h: New file.
57901 * lib/mempcpy.c: New file.
57903 2003-07-14 Paul Eggert <eggert@twinsun.com>
57905 * modules/getdate, modules/posixtm: Depend on mktime.
57907 2003-07-14 Paul Eggert <eggert@twinsun.com>
57909 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57910 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57911 unicodeio.c, unicodeio.h, unlocked-io.h:
57912 Switch from LGPL to GPL.
57914 2003-07-14 Paul Eggert <eggert@twinsun.com>
57916 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57917 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57918 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57919 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57920 vasprintf.c, vasprintf.h: Regenerate. These files are now being
57921 updated automatically by ../config/srclist-update. This changes
57922 their license from LPGL to GPL.
57924 2003-07-14 Paul Eggert <eggert@twinsun.com>
57926 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
57927 assumed to refer to the root of the most recent stable gettext version.
57928 * config/srclistvars.sh: Add defaults for eggert.
57929 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57930 Match "This program" as well as "The program". This is needed
57933 2003-07-14 Jim Meyering <jim@meyering.net>
57935 Don't emit diagnostics. Let callers do that.
57936 * lib/save-cwd.c: Don't include "error.h".
57937 (save_cwd): Don't call error. Ensure that errno is valid
57938 when returning nonzero.
57940 * lib/save-cwd.h (restore_cwd): Update prototype.
57941 * lib/save-cwd.c (restore_cwd): Remove two parameters.
57942 Simplify. Don't call error upon failure. Let callers do that.
57943 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57944 when auditing is enabled. But don't bother updating the #if.
57946 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
57948 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57949 it breaks C++ compilation.
57950 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57952 2003-07-10 Simon Josefsson <jas@extundo.com>
57954 * modules/strchrnul (Makefile.am): Add strchrnul.h.
57956 2003-07-10 Jim Meyering <jim@meyering.net>
57958 * m4/clock_time.m4: Remove trailing blank.
57959 * m4/intmax_t.m4: Likewise.
57961 2003-07-10 Jim Meyering <jim@meyering.net>
57963 * lib/vasnprintf.c: Remove trailing blanks.
57964 Make cpp indentation consistent.
57966 2003-07-09 Paul Eggert <eggert@twinsun.com>
57968 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57969 posixver.c, strftime.c, strnlen.c, strverscmp.c:
57970 Switch from LGPL to GPL.
57972 2003-07-09 Paul Eggert <eggert@twinsun.com>
57974 * config/srclist.txt: Sort sublists. Add
57975 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57976 that differ from gnulib for one reason or another; we'd like this list
57977 to be smaller but for now let's document what we have.
57979 2003-07-08 Paul Eggert <eggert@twinsun.com>
57981 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57982 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
57983 and sweeter "eval x=$x".
57984 * config/srclist.txt: Get lib/argp* from glibc.
57986 2003-07-07 Paul Eggert <eggert@twinsun.com>
57988 * lib/mktime.c: Fix some boundary cases and remove need for floating
57991 Issue a compile-time diagnostic if time_t is floating point, or if
57992 two's complement arithmetic is not in effect, or if arithmetic
57993 right shift does not propagate the sign. These assumptions were
57994 all in the original code but they weren't checked.
57996 (TIME_T_MIDPOINT, verify): New macros.
57997 (__isleap): Remove; it has integer overflow problems.
57998 (leapyear): New function, without those problems.
57999 (ydhms_tm_diff): Remove; splitting into two parts.
58000 (ydhms_diff): New function, containing the arithmetic part of
58001 the old ydhms_tm_diff function. Issue a compile-time
58002 diagnostic if we are not using C99 integer division.
58003 Avoid casts when possible.
58004 (guess_time_tm): New function, containing the checking part of
58005 the old ydhms_tm_diff function. Return the new value, rather than
58006 the difference between it and the old. Accept a new argument T
58007 so that *T specifies the old value. Check for overflow in the result.
58009 (__mktime_internal): Use a time_t offset, not a long int offset.
58010 This undoes the 2003-06-04 change, which is no longer needed now
58011 that we have better overflow checking.
58012 (localtime_offset): Likewise.
58014 (__mktime_internal): Avoid harmful overflow on hosts where time_t
58015 and long are 64-bit but int is only 32-bit.
58016 (ydhms_diff): Use long int to store year1 and yday1.
58017 Issue a compile-time diagnostic if long int is not wide enough.
58019 (__mktime_internal): Use long int to store adjusted year and yday.
58020 Use plain C rather than preprocessor commands, if that doesn't
58022 Check for overflow (and try to repair) after each probe
58023 rather than checking only at the very end. This avoids some bugs
58024 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58025 does not equal GMT offset at maximum time).
58026 Use integer to check for overflow rather than floating point; this
58027 is more portable to non-IEEE hosts, and is a tad faster.
58028 When we detect that we are oscillating between two values,
58029 don't check whether tm_isdst has the requested value, since
58030 we already know the answer. When tm_isdst has the wrong value,
58031 use a different heuristic to find the right one, based on the
58032 extreme values actually observed in practice in tz2003a,
58033 rather than the (overly optimistic) "previous 3 calendar quarters".
58035 (not_equal_tm, print_tm, check_result): Use "const T" rather than
58036 "T const" to accommodate glibc style.
58037 (check_result): Use less-confusing report format. "long" -> "long int.
58039 Don't loop if the iteration overflows time_t.
58040 Allow a negative step in the iteration.
58042 2003-07-06 Karl Berry <karl@gnu.org>
58044 * config/depcomp: update from automake.
58045 * config/config.sub: update from prep.
58047 2003-07-03 Karl Berry <karl@gnu.org>
58049 * config/config.guess: update from prep.
58051 2003-07-01 Paul Eggert <eggert@twinsun.com>
58053 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58054 xreadlink.c now includes it unconditionally.
58056 2003-07-01 Paul Eggert <eggert@twinsun.com>
58058 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58059 having it depend on HAVE_SYS_TYPES_H.
58061 2003-07-01 Bruno Haible <bruno@clisp.org>
58063 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58064 <sys/types.h> should be sufficient.
58065 Reported by Paul Eggert.
58067 2003-06-26 Karl Berry <karl@gnu.org>
58069 * config/depcomp: update from automake.
58071 2003-06-26 Bruno Haible <bruno@clisp.org>
58073 * modules/human: Depend on module stdbool.
58075 2003-06-25 Bruno Haible <bruno@clisp.org>
58077 * modules/readlink: New file.
58078 * modules/xreadlink: Depend on it.
58079 * MODULES.html.sh (func_all_modules): Add readlink.
58081 2003-06-25 Bruno Haible <bruno@clisp.org>
58083 * m4/readlink.m4: New file.
58085 2003-06-25 Bruno Haible <bruno@clisp.org>
58087 * lib/readlink.c: New file.
58089 2003-06-22 Karl Berry <karl@gnu.org>
58091 * config/srclist.txt: update mkinstalldirs from automake.
58092 * config/mkinstalldirs: update.
58094 2003-06-22 Bruno Haible <bruno@clisp.org>
58096 Portability to mingw32.
58097 * m4/ssize_t.m4: New file, from GNU gettext.
58098 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58099 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58101 2003-06-22 Bruno Haible <bruno@clisp.org>
58103 * modules/safe-read: Add m4/ssize_t.m4.
58104 * modules/xreadlink: Add m4/ssize_t.m4.
58106 2003-06-20 Bruno Haible <bruno@clisp.org>
58108 Assume C89, so PARAMS isn't needed.
58109 * lib/unicodeio.h (PARAMS): Remove.
58110 * lib/unicodeio.c: Don't use PARAMS.
58112 2003-06-18 Karl Berry <karl@gnu.org>
58114 * config/config.{guess,sub}: update from prep.
58116 2003-06-18 Jim Meyering <jim@meyering.net>
58118 Merge changes from coreutils.
58119 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58120 Remove explicit declarations of xmalloc and realloc.
58122 (read_utmp): Remove anachronistic cast of xmalloc.
58124 2003-06-17 Paul Eggert <eggert@twinsun.com>
58126 Assume C89, so PARAMS isn't needed.
58127 * lib/backupfile.h (PARAMS): Remove. All uses removed.
58128 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58129 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58130 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58131 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58132 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58133 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58134 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58135 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58136 lib/xstrtod.h, lib/xstrtol.h: Likewise.
58137 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58138 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58139 no longer needed. Anyway, config.h should always be included before any
58142 2003-06-11 Simon Josefsson <jas@extundo.com>
58144 * modules/sysexits: New file.
58145 * MODULES.html.sh (func_all_modules): Add sysexits.
58147 2003-06-11 Simon Josefsson <jas@extundo.com>
58149 * lib/sysexit_.h: New file.
58151 2003-06-11 Derek Price <derek@ximbiot.com>
58153 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58156 2003-06-11 Bruno Haible <bruno@clisp.org>
58158 * m4/sysexits.m4: New file.
58160 2003-06-10 Simon Josefsson <jas@extundo.com>
58162 * lib/argp.h: New file, from glibc.
58163 * lib/argp-ba.c: New file, from glibc.
58164 * lib/argp-eexst.c: New file, from glibc.
58165 * lib/argp-fmtstream.c: New file, from glibc.
58166 * lib/argp-fmtstream.h: New file, from glibc.
58167 * lib/argp-fs-xinl.c: New file, from glibc.
58168 * lib/argp-help.c: New file, from glibc.
58169 * lib/argp-namefrob.h: New file, from glibc.
58170 * lib/argp-parse.c: New file, from glibc.
58171 * lib/argp-pv.c: New file, from glibc.
58172 * lib/argp-pvh.c: New file, from glibc.
58173 * lib/argp-xinl.c: New file, from glibc.
58175 2003-06-10 Simon Josefsson <jas@extundo.com>
58177 * modules/strchrnul: New file.
58179 2003-06-10 Simon Josefsson <jas@extundo.com>
58181 * modules/argp: New file.
58183 2003-06-10 Simon Josefsson <jas@extundo.com>
58185 * m4/strchrnul.m4: New file.
58187 2003-06-10 Simon Josefsson <jas@extundo.com>
58189 * lib/strchrnul.h: New file.
58190 * lib/strchrnul.c: New file.
58192 2003-06-10 Bruno Haible <bruno@clisp.org>
58194 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58196 2003-06-07 Karl Berry <karl@gnu.org>
58198 * config/config.{guess,sub}: update from prep.
58200 2003-06-07 Jim Meyering <jim@meyering.net>
58202 * modules/strtod: Use $(...) notation, not @...@ for
58203 AC_REPLACE'd variables.
58204 * modules/localcharset: Likewise.
58206 2003-06-07 Jim Meyering <jim@meyering.net>
58208 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58209 in place of my name in the copyright comment.
58210 Remove definition and uses of __P.
58213 * lib/stat.c: Don't declare xmalloc explicitly.
58214 Instead, include "xalloc.h".
58215 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58216 xrealloc, and xcalloc return values.
58217 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58219 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58221 2003-06-07 Bruno Haible <bruno@clisp.org>
58223 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58224 avoid AC_CONFIG_LINKS.
58225 * modules/fnmatch (Makefile.am): Use explicit creation rule for
58226 fnmatch.h, to avoid AC_CONFIG_LINKS.
58227 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58229 2003-06-07 Bruno Haible <bruno@clisp.org>
58231 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58232 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58233 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58235 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58236 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58239 2003-06-06 Jim Meyering <jim@meyering.net>
58241 Merge from coreutils.
58242 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58243 Consolidate declarations and initializations of *_base* locals.
58245 Merge from coreutils.
58246 This avoids a core dump on systems without GNU putenv,
58247 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58248 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58249 (unsetenv): New static function, from GNU libc.
58250 (rpl_putenv): Use it.
58252 * lib/modechange.c: Remove trailing blanks.
58254 Merge from coreutils.
58255 * lib/fsusage.c: Remove declaration of statfs.
58256 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58258 * lib/posixtm.c: Include <stdbool.h> unconditionally.
58260 2003-06-06 Jim Meyering <jim@meyering.net>
58262 * lib/stdbool_.h: Renamed from stdbool.h.in.
58264 2003-06-06 Jim Meyering <jim@meyering.net>
58265 Bruno Haible <bruno@clisp.org>
58267 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58268 Adjust Makefile.am snippet not to redirect directly to target.
58269 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58271 2003-06-05 Paul Eggert <eggert@twinsun.com>
58273 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58274 mismatch, look in future quarters as well as past. This fixes a
58275 bug when processing fall-backwards gaps immediately after a long
58276 period of daylight-saving time.
58278 * lib/mktime.c: Assume freestanding C89 or better.
58279 (HAVE_LIMITS_H): Remove. Assume it's 1.
58280 (__P): Remove; not used.
58281 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58282 (mktime, not_equal_tm, print_tm, check_result,
58283 main): Use prototypes. Use const * where appropriate.
58284 (main): Fix typo in testing code that uncovered by above changes.
58285 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58287 2003-06-04 Paul Eggert <eggert@twinsun.com>
58289 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
58290 locale.h, localeconv. This merges changes from coreutils.
58292 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58293 It can be removed after the next Autoconf is released.
58294 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58297 2003-06-04 Paul Eggert <eggert@twinsun.com>
58299 * lib/mktime.c: Fix Debian bug 177940
58300 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58301 (localtime_offset): Now long int, not time_t, because we want it
58302 to be guaranteed to be signed. All uses changed.
58303 (__mktime_internal): If overflow would occur when adding offset,
58306 Merge 'human' changes from coreutils. Rewrite to support
58307 locale-specific notations like thousands separators.
58308 * lib/human.c: Simplify authorship notice.
58309 Include human.h immediately after config.h.
58310 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58311 <limits.h>: Do not include, since human.h does.
58312 (SIZE_MAX, UINTMAX_MAX): New macros.
58313 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58314 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58315 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58316 (power_letter): Renamed from suffixes.
58317 (generate_suffix_backwards): Remove.
58318 (adjust_value): Now takes int style (because of human.h changes)
58319 and long double value (for greater precision on some platforms).
58320 (group_number): New function.
58321 (human_readable): Use it. Use integer options, not enum.
58322 Put the options before the sizes in the arg list.
58323 Support all the new options.
58324 The old human_readable function has been removed;
58325 use inttostr.h instead.
58326 (human_readable, default_block_size, humblock):
58327 Use uintmax_t, not int, for block sizes.
58328 (human_readable_inexact, block_size_types): Remove.
58329 (block_size_opts): New constant.
58330 (human_options): Renamed from human_block_size, with new signature
58331 that allows block sizes up to UINTMAX_MAX. All callers changed.
58332 * lib/human.h: Add copyright and authorship notice.
58333 Include <limits.h> and <stdbool.h> unconditionally.
58334 (PARAMS): Remove. All uses removed.
58335 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58336 (enum human_inexact_style): Remove tag; now a nameless enum.
58337 (human_floor, human_ceiling, human_round_to_even): Now have
58338 values 2, 0, 1 rather than -1, 1, 0.
58339 (human_group_digits, human_suppress_point_zero, human_autoscale,
58340 human_base_1024, human_SI, human_B): New constants.
58341 (human_readable_inexact, human_block_size): Remove.
58342 (human_readable): Size args are now uintmax_t, not int.
58343 (human_options): New decl.
58345 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58346 unnecessary now that we assume C89 or better. This change
58347 imported from coreutils.
58349 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58350 arbitrarily. This is the same patch as 2003-05-28, but it got lost
58351 in the 2003-05-30 sync from glibc.
58353 .h files should stand alone, but we shouldn't include <sys/types.h>
58354 if we can get away with just <stddef.h>.
58356 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58357 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58358 rather than <sys/types.h>, as we merely need size_t.
58359 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58361 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58362 Include <stdio.h>, to get FILE.
58363 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58364 memcasecmp.h has included <stddef.h> and all we need is size_t.
58365 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58366 our interface, instead of including <sys/types.h>
58368 2003-06-04 Paul Eggert <eggert@twinsun.com>
58370 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58371 now, as glibc mktime is buggy on non-glibc systems.
58373 2003-06-03 Karl Berry <karl@gnu.org>
58375 * config/config.sub: update from prep.
58377 2003-06-02 Paul Eggert <eggert@twinsun.com>
58380 Fix some minor time-related bugs with POSIX time arguments.
58381 Some valid time stamps were being rejected (notably -1, and
58382 time stamps before 1900 on 64-bit hosts). And some invalid
58383 time stamps were being accepted, e.g. September 31.
58385 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58386 that we can return (time_t) -1 successfully.
58387 * lib/posixtm.c: Likewise.
58388 [HAVE_STDBOOL_H]: Include <stdbool.h>.
58389 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58390 (t): Remove static var.
58391 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58392 of static var. All uses changed.
58393 (year): Do not reject years before 1900; they can occur with
58395 (posix_time_parse): Do not check for out-of-range components;
58396 that is now the caller's responsibility, since our checks were
58397 only approximations.
58398 (posixtime): Use mktime to check for out-of-range components,
58399 since it knows them exactly.
58400 If mktime returns (time_t) -1, check whether an error actually occurred
58401 by invoking localtime on -1.
58402 (main) [TEST_POSIXTIME]: Check for input data errors, and report
58403 posixtime failures better.
58404 Improve the test data (in comments only).
58406 2003-06-02 Karl Berry <karl@gnu.org>
58408 * config/mkinstalldirs (version): new variable.
58409 (--version): new option.
58410 (usage): improve message.
58412 2003-05-30 Karl Berry <karl@gnu.org>
58414 * lib/mktime.c: update from libc.
58416 2003-05-30 Bruno Haible <bruno@clisp.org>
58418 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58419 * config/config.rpath: Upgrade to gettext-0.12.1.
58421 2003-05-30 Bruno Haible <bruno@clisp.org>
58423 * m4/gettext.m4: Upgrade to gettext-0.12.1.
58424 * m4/nls.m4: New file, from gettext-0.12.1.
58425 * m4/po.m4: New file, from gettext-0.12.1.
58426 * m4/progtest.m4: Upgrade to gettext-0.12.1.
58428 2003-05-30 Bruno Haible <bruno@clisp.org>
58430 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58431 * lib/localcharset.h: Likewise.
58432 * lib/localcharset.c: Likewise.
58434 2003-05-29 Karl Berry <karl@gnu.org>
58436 * config/config.rpath: update from gettext.
58438 2003-05-28 Paul Eggert <eggert@twinsun.com>
58440 Assume the headers required for C89 freestanding compilers.
58441 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58442 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58443 * m4/human.m4 (gl_HUMAN): Likewise.
58444 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58445 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58446 * m4/userspec.m4 (gl_USERSPEC): Likewise.
58447 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58448 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58449 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58451 2003-05-28 Paul Eggert <eggert@twinsun.com>
58453 Assume the headers required for C89 freestanding compilers.
58454 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58455 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58456 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58457 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58458 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58459 define, since <limits.h> is guaranteed to do that.
58460 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58461 * lib/exclude.c: Include <stdbool.h> unconditionally.
58462 * lib/tempname.c: Include <stddef.h> unconditionally.
58463 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58464 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58465 <stddef.h> does that.
58466 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58467 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58468 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58470 * lib/xstrtol.c: Likewise.
58471 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58472 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58474 * lib/addext.c (addext): Use assignment rather than cast, to avoid
58475 warnings on some platforms.
58477 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58480 2003-05-26 Jim Meyering <jim@meyering.net>
58482 Merge in a change from coreutils:
58483 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58484 that is guaranteed to be `no'. Use `no_such_member' to indicate
58485 that condition, rather than `-1' which is slightly misleading.
58486 Change the name of the cache variable to have the gl_ prefix.
58487 Prompted by a patch from Richard Dawe for DJGPP.
58489 2003-05-24 Karl Berry <karl@gnu.org>
58491 * config/config.guess: update from prep.
58493 2003-05-22 Karl Berry <karl@gnu.org>
58495 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58497 2003-05-20 Karl Berry <karl@gnu.org>
58499 * config/config.guess: update from prep.
58501 2003-05-18 Karl Berry <karl@gnu.org>
58503 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58504 might actually be set by the user.
58506 * config/depcomp, install-sh, mdate-sh: update from automake.
58508 2003-05-17 Bruno Haible <bruno@clisp.org>
58510 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58511 invalid expansion for AC_EGREP_CPP.
58512 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58513 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58514 Suggested by Akim Demaille <akim@epita.fr> in
58515 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58517 2003-05-12 Jim Meyering <jim@meyering.net>
58519 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58520 the space-padded-by-default conversion specifiers, %e, %k, %l.
58522 2003-05-12 Bruno Haible <bruno@clisp.org>
58524 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58525 the string is longer than 4 KB.
58527 2003-05-11 Karl Berry <karl@gnu.org>
58529 * config/config.{guess,sub}: update from prep.
58531 2003-05-09 Bruno Haible <bruno@clisp.org>
58533 * modules/error: Add m4/strerror_r.m4 to file list.
58535 2003-05-03 Bruno Haible <bruno@clisp.org>
58537 Upgrade to Unicode-4.0.
58538 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58539 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58540 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58541 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58542 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58543 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58544 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58545 Change width of U+E0100..U+E01EF from 1 to 0.
58547 2003-04-25 Jim Meyering <jim@meyering.net>
58549 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58550 of type size_t, not int.
58552 2003-04-25 Bruno Haible <bruno@clisp.org>
58554 * lib/copy-file.c: Include <stddef.h>, for size_t.
58556 2003-04-21 Paul Eggert <eggert@twinsun.com>
58558 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58559 code which expansion is under static control. Patch imported from
58560 Akim Demaille's patch to Bison; see
58561 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58563 2003-04-14 Bruno Haible <bruno@clisp.org>
58565 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58567 2003-04-11 Jim Meyering <jim@meyering.net>
58569 Merge changes from Coreutils.
58571 2003-03-22 Jim Meyering <jim@meyering.net>
58573 * lib/strftime.c (widen): Cast alloca return value to proper type.
58575 2003-01-19 Ulrich Drepper <drepper@redhat.com>
58578 * lib/strftime.c (my_strftime): Handle very large width
58579 specifications for numeric values correctly. Improve checks for
58582 2003-01-19 Jim Meyering <jim@meyering.net>
58584 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58586 (nl_get_alt_digit) [! defined my_strftime]: Define.
58587 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58588 _nl_get_alt_digit and _nl_get_walt_digit.
58590 * lib/strftime.c (my_strftime): Merge in locale-related changes from
58591 libc. These changes have no effect outside of _LIBC.
58593 2003-04-10 Bruno Haible <bruno@clisp.org>
58595 * modules/findprog: New file.
58596 * MODULES.html.sh (func_all_modules): Add it.
58598 2003-04-10 Bruno Haible <bruno@clisp.org>
58600 * m4/findprog.m4: New file.
58601 * m4/eaccess.m4: New file.
58603 2003-04-10 Bruno Haible <bruno@clisp.org>
58605 * lib/findprog.h: New file, from GNU gettext.
58606 * lib/findprog.c: New file, from GNU gettext.
58608 2003-04-05 Jim Meyering <jim@meyering.net>
58610 Merge changes from Coreutils.
58612 * lib/exclude.h (PARAMS): Remove definition and uses.
58613 * lib/exclude.c: Remove uses of `PARAMS'.
58615 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58616 Add test-cases for DOS filenames. Declare program_name.
58617 (main): Set up program_name. Patch by Rich Dawe.
58619 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58621 Use mntctl's return value to drive the entry-processing loop, since
58622 we can't rely on the value of the vmt_length member in the last
58623 entry. On some systems doing so could result in exhausting
58624 virtual memory. Based in part on a patch from Mike Jetzer.
58626 2003-04-04 Bruno Haible <bruno@clisp.org>
58628 * modules/linebreak: New file.
58629 * MODULES.html.sh (func_all_modules): Add it.
58631 2003-04-04 Bruno Haible <bruno@clisp.org>
58633 * m4/linebreak.m4: New file.
58635 2003-04-04 Bruno Haible <bruno@clisp.org>
58637 * lib/linebreak.h: New file, from GNU gettext.
58638 * lib/linebreak.c: New file, from GNU gettext with slight
58640 * lib/lbrkprop.h: New file, from GNU gettext.
58642 2003-04-03 Bruno Haible <bruno@clisp.org>
58644 * modules/utf8-ucs4: New file.
58645 * modules/utf16-ucs4: New file.
58646 * modules/ucs4-utf8: New file.
58647 * modules/ucs4-utf16: New file.
58648 * MODULES.html.sh (func_all_modules): Add them.
58650 2003-04-03 Bruno Haible <bruno@clisp.org>
58652 * m4/utf-ucs4.m4: New file.
58653 * m4/ucs4-utf.m4: New file.
58655 2003-04-03 Bruno Haible <bruno@clisp.org>
58657 * lib/utf8-ucs4.h: New file, from GNU gettext.
58658 * lib/utf16-ucs4.h: New file, from GNU gettext.
58659 * lib/ucs4-utf8.h: New file, from GNU gettext.
58660 * lib/ucs4-utf16.h: New file, from GNU gettext.
58662 2003-04-02 Bruno Haible <bruno@clisp.org>
58664 * modules/binary-io: New file.
58665 * MODULES.html.sh (func_all_modules): Add it.
58667 2003-04-02 Bruno Haible <bruno@clisp.org>
58669 * lib/binary-io.h: New file, from GNU gettext.
58671 2003-04-01 Bruno Haible <bruno@clisp.org>
58673 * modules/pathname: New file.
58674 * MODULES.html.sh (func_all_modules): Add it.
58676 2003-04-01 Bruno Haible <bruno@clisp.org>
58678 * lib/pathname.h: New file, from GNU gettext.
58679 * lib/concatpath.c: New file, from GNU gettext.
58681 2003-03-30 Bruno Haible <bruno@clisp.org>
58683 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58685 2003-03-30 Bruno Haible <bruno@clisp.org>
58687 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58688 function chown() doesn't exist.
58690 2003-03-28 Bruno Haible <bruno@clisp.org>
58692 * modules/copy-file: New file.
58693 * MODULES.html.sh (func_all_modules): Add it.
58695 2003-03-28 Bruno Haible <bruno@clisp.org>
58697 * m4/copy-file.m4: New file.
58699 2003-03-28 Bruno Haible <bruno@clisp.org>
58701 * lib/copy-file.h: New file, from GNU gettext.
58702 * lib/copy-file.c: New file, from GNU gettext.
58704 2003-03-18 Jim Meyering <jim@meyering.net>
58706 * lib/quote.c (quote_n): Fix typo in comment.
58708 2003-03-18 Bruno Haible <bruno@clisp.org>
58710 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58712 * m4/onceonly_2_57.m4: Likewise.
58714 2003-03-17 Bruno Haible <bruno@clisp.org>
58716 * m4/onceonly.m4: Require autoconf 2.54 or newer.
58717 (m4_quote): Remove macro.
58718 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58720 2003-03-14 Jim Meyering <jim@meyering.net>
58722 Merge changes from Coreutils.
58723 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58724 to be const, in order to avoid warnings.
58725 (obstack_room): Likewise.
58726 (obstack_empty_p): Likewise.
58728 2003-03-14 Bruno Haible <bruno@clisp.org>
58730 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58731 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58733 2003-03-13 Paul Eggert <eggert@twinsun.com>
58735 Merge changes from Bison.
58736 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58737 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58738 when compiling Bison 1.875's `bitset bset = obstack_alloc
58739 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
58740 * lib/hash.c: Include <stdbool.h> unconditionally.
58742 2003-03-13 Paul Eggert <eggert@twinsun.com>
58744 * m4/onceonly.m4 (m4_quote): New macro.
58745 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58746 Quote AC_FOREACH variable-expansions properly.
58748 2003-03-13 Paul Eggert <eggert@twinsun.com>
58750 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58752 2003-03-09 Paul Eggert <eggert@twinsun.com>
58754 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58755 Reported by Bruce Becker; see:
58756 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58758 2003-03-03 Paul Eggert <eggert@twinsun.com>
58759 Bruno Haible <bruno@clisp.org>
58761 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58762 Reported by John Hughes, see
58763 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58765 2003-02-20 Bruno Haible <bruno@clisp.org>
58767 * MODULES.html.sh (func_all_modules): Add poll.
58769 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58771 * modules/poll: New file.
58773 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58775 * lib/poll_.h: New file.
58776 * lib/poll.c: New file.
58778 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58780 * m4/poll.m4: New file.
58782 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58784 * modules/mathl: New file.
58786 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58788 * lib/mathl.h: New file.
58789 * lib/acosl.c: New file.
58790 * lib/asinl.c: New file.
58791 * lib/atanl.c: New file.
58792 * lib/ceill.c: New file.
58793 * lib/cosl.c: New file.
58794 * lib/expl.c: New file.
58795 * lib/floorl.c: New file.
58796 * lib/frexpl.c: New file.
58797 * lib/ldexpl.c: New file.
58798 * lib/logl.c: New file.
58799 * lib/sincosl.c: New file.
58800 * lib/sinl.c: New file.
58801 * lib/sqrtl.c: New file.
58802 * lib/tanl.c: New file.
58803 * lib/trigl.c: New file.
58804 * lib/trigl.h: New file.
58806 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58808 * m4/mathl.m4: New file.
58810 2003-02-18 Bruno Haible <bruno@clisp.org>
58812 * MODULES.html.sh (func_all_modules): Add mathl.
58814 2003-02-17 Bruno Haible <bruno@clisp.org>
58816 * modules/mkdtemp: New module.
58817 * MODULES.html.sh (func_all_modules): Add it.
58819 2003-02-17 Bruno Haible <bruno@clisp.org>
58821 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58823 2003-02-17 Bruno Haible <bruno@clisp.org>
58825 * lib/mkdtemp.h: New file, from GNU gettext.
58826 * lib/mkdtemp.c: New file, from GNU gettext.
58828 2003-02-02 Jim Meyering <jim@meyering.net>
58830 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58833 2003-01-31 Bruno Haible <bruno@clisp.org>
58835 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58837 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58839 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58841 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58844 2003-01-31 Bruno Haible <bruno@clisp.org>
58846 * lib/rename.c: #undef rename before defining rpl_rename.
58847 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58849 2003-01-30 Bruno Haible <bruno@clisp.org>
58851 * modules/vasnprintf, modules/vasprintf: New modules.
58852 * MODULES.html.sh (func_all_modules): Add them.
58854 2003-01-30 Bruno Haible <bruno@clisp.org>
58856 * m4/signed.m4: New file, from GNU gettext.
58857 * m4/longdouble.m4: New file, from GNU gettext.
58858 * m4/wchar_t.m4: New file, from GNU gettext.
58859 * m4/wint_t.m4: New file, from GNU gettext.
58860 * m4/vasnprintf.m4: New file.
58861 * m4/vasprintf.m4: New file.
58863 2003-01-30 Bruno Haible <bruno@clisp.org>
58865 * lib/printf-args.h: New file, from GNU gettext.
58866 * lib/printf-args.c: New file, from GNU gettext.
58867 * lib/printf-parse.h: New file, from GNU gettext.
58868 * lib/printf-parse.c: New file, from GNU gettext.
58869 * lib/vasnprintf.h: New file, from GNU gettext.
58870 * lib/vasnprintf.c: New file, from GNU gettext.
58871 * lib/asnprintf.c: New file, from GNU gettext.
58872 * lib/vasprintf.h: New file, from GNU gettext with modifications.
58873 * lib/vasprintf.c: New file, from GNU gettext.
58874 * lib/asprintf.c: New file, from GNU gettext.
58876 2003-01-29 Bruno Haible <bruno@clisp.org>
58878 * modules/stpncpy: New module.
58879 * MODULES.html.sh (func_all_modules): Add it.
58881 2003-01-29 Bruno Haible <bruno@clisp.org>
58883 * m4/stpncpy.m4: New file.
58885 2003-01-29 Bruno Haible <bruno@clisp.org>
58887 * lib/stpncpy.h: New file, from GNU gettext with modifications.
58888 * lib/stpncpy.c: New file, from GNU gettext with modifications.
58890 2003-01-28 Bruno Haible <bruno@clisp.org>
58892 * modules/c-ctype: New module.
58893 * MODULES.html.sh (func_all_modules): Add it.
58895 2003-01-28 Bruno Haible <bruno@clisp.org>
58897 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58899 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58902 2003-01-27 Bruno Haible <bruno@clisp.org>
58904 * modules/xsetenv: New module.
58905 * MODULES.html.sh (func_all_modules): Add it.
58907 2003-01-27 Bruno Haible <bruno@clisp.org>
58909 * lib/xsetenv.h: New file, from GNU gettext.
58910 * lib/xsetenv.c: New file, from GNU gettext.
58912 2003-01-23 Jim Meyering <jim@meyering.net>
58914 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58915 from working on systems without dirfd (at least Irix and OSF1/Tru64).
58917 2003-01-23 Bruno Haible <bruno@clisp.org>
58919 * modules/minmax: New module.
58920 * MODULES.html.sh (func_all_modules): Add it.
58922 2003-01-23 Bruno Haible <bruno@clisp.org>
58924 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58927 2003-01-22 Bruno Haible <bruno@clisp.org>
58929 * modules/exit: New module.
58930 * MODULES.html.sh (func_all_modules): Add it.
58932 2003-01-22 Bruno Haible <bruno@clisp.org>
58934 * lib/exit.h: New file, from GNU gettext.
58936 2003-01-19 Bruno Haible <bruno@clisp.org>
58938 * gnulib-tool: Recognize option --extract-maintainer.
58939 (func_get_maintainer): New function.
58940 * modules/*: Add Maintainer entry.
58942 2003-01-16 Jim Meyering <jim@meyering.net>
58944 * m4/regex.m4: The `regex' struct is both input and output.
58945 Initialize it before each use. Patch by Tim Waugh.
58947 2003-01-16 Bruno Haible <bruno@clisp.org>
58949 * MODULES.html.sh: Add a table of contents. Add the module name as
58950 leftmost column. Add hyperlinks.
58952 2003-01-15 Bruno Haible <bruno@clisp.org>
58954 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58956 2003-01-15 Bruno Haible <bruno@clisp.org>
58958 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58959 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58962 2003-01-15 Bruno Haible <bruno@clisp.org>
58964 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58966 2003-01-15 Bruno Haible <bruno@clisp.org>
58968 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58969 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58971 2003-01-14 Jim Meyering <jim@meyering.net>
58973 * lib/same.c (same_name): Tweak a comment.
58975 2003-01-14 Bruno Haible <bruno@clisp.org>
58977 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58978 when a string comparison is sufficient.
58980 2003-01-14 Bruno Haible <bruno@clisp.org>
58982 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58985 2003-01-14 Bruno Haible <bruno@clisp.org>
58987 * lib/hash-pjw.c: Add comment about low quality of this function.
58989 2003-01-13 Bruno Haible <bruno@clisp.org>
58991 * modules/stpcpy: Distribute lib/stpcpy.h.
58992 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58994 2003-01-13 Bruno Haible <bruno@clisp.org>
58996 * modules/*: Add a description.
58997 * modules/strpbrk: Fix Makefile.am snippet.
58998 * modules/strtoimax: Fix dependencies.
58999 * modules/strtoumax: Likewise.
59001 2003-01-13 Bruno Haible <bruno@clisp.org>
59003 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59004 * modules/alloca (Makefile.am): All object files depend on alloca.h.
59005 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59007 2003-01-13 Bruno Haible <bruno@clisp.org>
59009 * gnulib-tool (func_create_testdir): Store config/* files in the main
59011 * config.rpath: Move to ...
59012 * config/config.rpath: ... here.
59013 * modules/gettext: Contains config/config.rpath, not config.rpath.
59014 * modules/iconv: Likewise.
59016 2003-01-12 Paul Eggert <eggert@twinsun.com>
59018 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59019 to avoid collisions with libcurses and libreadline.
59021 * m4/getstr.m4: Remove.
59022 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59024 2003-01-12 Paul Eggert <eggert@twinsun.com>
59026 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59027 to avoid collisions with libcurses and libreadline.
59029 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59030 * lib/getstr.h, getstr.c: Remove.
59031 * lib/getline.c: Include "getline.h", to check interface.
59032 Move body of old getstr.c here: this defines MIN_CHUNK and
59033 declares getdelim2, which is renamed from getstr.
59034 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59036 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59038 * lib/linebuffer.h: Likewise.
59039 (readline): Remove backward-compatibility macro.
59041 2003-01-12 Paul Eggert <eggert@twinsun.com>
59043 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59044 to avoid collisions with libcurses and libreadline.
59046 * MODULES.html.sh: Remove getstr.
59047 * modules/getline: Depend on unlocked-io, not getstr.
59049 2003-01-12 Jim Meyering <jim@meyering.net>
59051 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
59053 2003-01-10 Bruno Haible <bruno@clisp.org>
59055 * modules/alloca: Change Makefile.am requirements. Simplify Include
59056 requirements. Add lib/alloca_.h to file list.
59058 2003-01-10 Bruno Haible <bruno@clisp.org>
59060 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59062 2003-01-10 Bruno Haible <bruno@clisp.org>
59064 * lib/alloca_.h: New file.
59065 * lib/getdate.y: Unconditionally include alloca.h.
59066 * lib/makepath.c: Likewise.
59067 * lib/setenv.c: Likewise.
59068 * lib/userspec.c: Likewise.
59070 2003-01-09 Karl Berry <karl@gnu.org>
59072 * MODULES.html.sh: include `dirname $0` in PATH, to find
59075 2003-01-09 Bruno Haible <bruno@clisp.org>
59077 * modules/stdbool: Change configure.ac, Makefile.am requirements.
59078 Simplify Include requirements. Add lib/stdbool.h.in to file list.
59080 2003-01-09 Bruno Haible <bruno@clisp.org>
59082 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59084 2003-01-09 Bruno Haible <bruno@clisp.org>
59086 * lib/stdbool.h.in: New file.
59088 2003-01-09 Bruno Haible <bruno@clisp.org>
59090 * gnulib-tool (func_all_modules): Ignore files ending in ~.
59091 * MODULES.html.sh: Likewise.
59093 2003-01-08 Jim Meyering <jim@meyering.net>
59095 * lib/full-write.c: Undefine and define-away `const' after inclusion
59096 of errno.h, not before. Suggestion from Bruno Haible.
59098 2003-01-08 Bruno Haible <bruno@clisp.org>
59100 * modules/full-read: Depend on full-write.
59102 2003-01-08 Bruno Haible <bruno@clisp.org>
59104 * lib/safe-read.c: Include specification header first, to ensure its
59106 * lib/full-write.c: Likewise.
59108 2003-01-07 Jim Meyering <jim@meyering.net>
59110 * lib/full-write.c: Rework so that it may serve to define full_read,
59112 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59114 2003-01-07 Bruno Haible <bruno@clisp.org>
59116 * lib/strtoimax.c: Include <stdint.h> as an alternative to
59118 * lib/xstrtol.h: Likewise.
59119 * lib/xstrtoimax.c: Likewise.
59120 * lib/xstrtoumax.c: Likewise.
59121 * lib/human.h: Likewise.
59123 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59124 on systems that have <inttypes.h> but not <stdint.h>.
59126 2003-01-07 Bruno Haible <bruno@clisp.org>
59128 * MODULES.html.sh: Add copyright notice.
59129 (missed_files): Omit CVS directory entries.
59130 (func_module): Make it work with sed-3.02.
59131 * MODULES.txt: Remove file.
59133 2003-01-06 Jim Meyering <jim@meyering.net>
59135 * lib/version-etc.c: Update year in translatable copyright string.
59137 2003-01-03 Karl Berry <karl@gnu.org>
59139 * config/config.{guess,sub}: update from prep.
59141 2003-01-02 Karl Berry <karl@gnu.org>
59143 * doc/COPYING.DOC: belatedly updated to 1.2.
59145 2003-01-01 Karl Berry <karl@gnu.org>
59147 * gnulib-tool (func_verify_module): report module name $module in
59148 error message, not $1.
59149 * gnulib-tool (create-testdir): don't complain if destdir couldn't
59150 be created, only if it doesn't exist.
59151 * gnulib-tool (last_checkin_date): don't expand the $Date here.
59153 2002-12-31 Paul Eggert <eggert@twinsun.com>
59155 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59157 2002-12-31 Paul Eggert <eggert@twinsun.com>
59159 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59160 memcmp if strcoll doesn't work.
59162 2002-12-31 Bruno Haible <bruno@clisp.org>
59164 * lib/utime.c (utime_null): No need to call ftruncate if the file was
59167 2002-12-31 Bruno Haible <bruno@clisp.org>
59169 * lib/memcoll.c (STRCOLL): New macro.
59172 2002-12-31 Bruno Haible <bruno@clisp.org>
59174 * lib/localcharset.h: New file.
59175 * lib/localcharset.c: Include it.
59176 * lib/unicodeio.c: Likewise.
59178 2002-12-31 Bruno Haible <bruno@clisp.org>
59180 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59181 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59183 2002-12-31 Bruno Haible <bruno@clisp.org>
59185 * lib/getline.h: Include <stddef.h>, for size_t.
59187 * lib/unicodeio.h: Include <stddef.h>, for size_t.
59188 * lib/unicodeio.c: Don't include <stddef.h>.
59190 2002-12-31 Bruno Haible <bruno@clisp.org>
59192 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59195 2002-12-24 Karl Berry <karl@gnu.org>
59197 * config/config.guess: update from prep.
59199 2002-12-24 Bruno Haible <bruno@clisp.org>
59201 General infrasructure.
59202 * m4/README: Rewritten.
59203 * m4/onceonly.m4: New file.
59204 * m4/onceonly_2_57.m4: New file.
59207 * m4/atexit.m4: New file.
59210 * m4/strtod.m4: New file.
59213 * m4/strtol.m4: New file.
59216 * m4/strtoul.m4: New file.
59219 * m4/memchr.m4: New file.
59222 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59223 (jm_FUNC_MEMCMP): Invoke it.
59226 * m4/memcpy.m4: New file.
59229 * m4/memmove.m4: New file.
59232 * m4/memset.m4: New file.
59235 * m4/strcspn.m4: New file.
59238 * m4/strpbrk.m4: New file.
59241 * m4/strstr.m4: New file.
59244 * m4/strerror.m4: New file.
59247 * m4/mktime.m4: Renamed from jm-mktime.m4.
59248 (gl_PREREQ_MKTIME): New macro.
59249 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59252 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59253 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59254 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59257 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59258 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59259 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59262 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59263 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59264 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59266 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59269 * m4/xalloc.m4: New file.
59272 * m4/alloca.m4: New file.
59275 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59276 (jm_FUNC_PUTENV): Invoke it.
59279 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59280 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59281 when invoked twice.
59282 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59286 * m4/memrchr.m4: New file.
59289 * m4/stpcpy.m4: New file.
59292 * m4/strcase.m4: New file.
59295 * m4/strdup.m4: New file.
59298 * m4/strnlen.m4: New file.
59301 * m4/strndup.m4: New file.
59304 * m4/xstrtod.m4: New file.
59307 * m4/xstrtol.m4: New file.
59310 * m4/getdate.m4: New file.
59312 Module unlocked-io.
59313 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59314 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59315 * m4/jm-glibc-io.m4n: Remove file.
59317 Module long-options.
59318 * m4/long-options.m4: New file.
59321 * m4/md5.m4: New file.
59324 * m4/sha.m4: New file.
59327 * m4/getstr.m4: New file.
59330 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59331 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59332 <sys/types.h>, for size_t. Use the function name gnu_getline, not
59333 simply getline. Infoke gl_PREREQ_GETLINE.
59336 * m4/obstack.m4: New file.
59339 * m4/hash.m4: New file.
59342 * m4/readtokens.m4: New file.
59345 * m4/strverscmp.m4: New file.
59348 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59352 * m4/strtoll.m4: New file.
59355 * m4/strtoull.m4: New file.
59358 * m4/strtoimax.m4: New file.
59361 * m4/strtoumax.m4: New file.
59364 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59365 jm_AC_PREREQ_XSTRTOIMAX.
59366 Moved the strtol prerequisites to strtol.m4.
59367 Moved the strtoll prerequisites to strtoll.m4.
59368 Moved the strtoimax prerequisites to strtoimax.m4.
59371 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59372 jm_AC_PREREQ_XSTRTOUMAX.
59373 Moved the strtoul prerequisites to strtoul.m4.
59374 Moved the strtoull prerequisites to strtoull.m4.
59375 Moved the strtoumax prerequisites to strtoumax.m4.
59378 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59379 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59382 * m4/dup2.m4: New file.
59385 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59386 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59389 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59390 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59392 Module gettimeofday.
59393 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59394 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59395 gl_PREREQ_GETTIMEOFDAY.
59398 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59399 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59402 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59403 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59404 jm_AC_TYPE_UINTMAX_T.
59405 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59408 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59409 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59412 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59413 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59416 * m4/timespec.m4 (gl_TIMESPEC): New macro.
59417 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59418 * m4/st_mtim.m4: Indentation.
59421 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59422 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59423 gl_PREREQ_NANOSLEEP.
59426 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59427 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59428 (gl_REGEX): New macro.
59431 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59432 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59435 * m4/rmdir.m4: New file.
59438 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59439 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59440 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59443 * m4/dirname.m4: New file.
59446 * m4/getopt.m4: New file.
59448 Module unistd-safer.
59449 * m4/unistd-safer.m4: New file.
59452 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59454 (gl_PREREQ_FNMATCH_EXTRA): New macro.
59455 (gl_FUNC_FNMATCH_POSIX): New macro.
59456 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59457 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59461 * m4/exclude.m4: New file.
59464 * m4/human.m4: New file.
59470 * m4/backupfile.m4: New file.
59471 * m4/d-ino.m4: Indentation.
59474 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59475 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59476 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59479 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59483 * m4/euidaccess.m4: New file.
59486 * m4/file-type.m4: New file.
59489 * m4/fileblocks.m4: New file.
59492 * m4/filemode.m4: New file.
59495 * m4/isdir.m4: New file.
59498 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59499 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59502 * m4/makepath.m4: New file.
59505 * m4/modechange.m4: New file.
59508 * m4/mountlist.m4: New file.
59509 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59512 Module path-concat.
59513 * m4/path-concat.m4: New file.
59516 * m4/pathmax.m4: New file.
59519 * m4/same.m4: New file.
59522 * m4/save-cwd.m4: New file.
59525 * m4/savedir.m4: New file.
59528 * m4/xgetcwd.m4: New file.
59529 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59532 * m4/xreadlink.m4: New file.
59535 * m4/safe-read.m4: New file.
59538 * m4/safe-write.m4: New file.
59541 * m4/closeout.m4: New file.
59543 Module stdio-safer.
59544 * m4/stdio-safer.m4: New file.
59547 * m4/getpass.m4: New file.
59550 * m4/getugroups.m4: New file.
59552 Module group-member.
59553 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59554 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59557 * m4/idcache.m4: New file.
59560 * m4/userspec.m4: New file.
59563 * m4/clock_time.m4: New file.
59564 * m4/gettime.m4: New file.
59567 * m4/settime.m4: New file.
59570 * m4/posixtm.m4: New file.
59572 Module gethostname.
59573 * m4/gethostname.m4: New file.
59576 * m4/canon-host.m4: New file.
59579 * m4/codeset.m4: New file, from gettext-0.11.5.
59580 * m4/gettext.m4: New file, from gettext-0.11.5.
59581 * m4/glibc21.m4: New file, from gettext-0.11.5.
59582 * m4/iconv.m4: New file, from gettext-0.11.5.
59583 * m4/intdiv0.m4: New file, from gettext-0.11.5.
59584 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59585 * m4/inttypes.m4: New file, from gettext-0.11.5.
59586 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59587 * m4/isc-posix.m4: New file, from gettext-0.11.5.
59588 * m4/lcmessage.m4: New file, from gettext-0.11.5.
59589 * m4/lib-ld.m4: New file, from gettext-0.11.5.
59590 * m4/lib-link.m4: New file, from gettext-0.11.5.
59591 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59592 * m4/progtest.m4: New file, from gettext-0.11.5.
59593 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59594 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59595 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59597 Module localcharset.
59598 * m4/localcharset.m4: New file.
59600 Module hard-locale.
59601 * m4/hard-locale.m4: New file.
59604 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59606 * m4/mbrtowc.m4: Add comment.
59609 * m4/memcasecmp.m4: New file.
59612 * m4/memcoll.m4: New file.
59615 * m4/unicodeio.m4: New file.
59618 * m4/rpmatch.m4: New file.
59621 * m4/yesno.m4: New file.
59624 * m4/exitfail.m4: New file.
59627 * m4/c-stack.m4 (gl_C_STACK): New macro.
59628 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59631 * m4/error.m4 (gl_ERROR): New macro.
59632 (jm_PREREQ_ERROR): Use onceonly macros.
59635 * m4/fatal.m4: New file.
59638 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59639 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59641 Module getpagesize.
59642 * m4/getpagesize.m4: New file.
59644 Module getusershell.
59645 * m4/getusershell.m4: New file.
59648 * m4/physmem.m4: New file.
59651 * m4/posixver.m4: New file.
59654 * m4/quotearg.m4: New file.
59657 * m4/quote.m4: New file.
59660 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59663 * m4/sig2str.m4: New file.
59666 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59668 * m4/intmax_t.m4: New file.
59669 * m4/d-type.m4: Indentation.
59670 * m4/jm-macros.m4: Update.
59671 * m4/prereq.m4 (jm_PREREQ): Update.
59672 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59673 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59674 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59675 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59676 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59677 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59678 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59679 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59680 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59681 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59682 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59683 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59684 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59685 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59686 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59687 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59688 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59689 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59690 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59692 2002-12-24 Bruno Haible <bruno@clisp.org>
59694 * MODULES.txt: Update according to m4/ changes.
59697 * config.rpath: New file, from gettext-0.11.5.
59699 * modules/*: New module descriptions.
59700 * gnulib-tool: New file.
59701 * MODULES.html.sh: New file.
59703 2002-12-21 Karl Berry <karl@gnu.org>
59705 * doc/fdl.texi: update to version 1.2.
59707 2002-12-19 Karl Berry <karl@gnu.org>
59709 * config/config.guess: update from prep.
59711 2002-12-18 Bruno Haible <bruno@clisp.org>
59713 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59714 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59716 2002-12-17 Bruno Haible <bruno@clisp.org>
59718 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59719 stdlib.h, string.h.
59721 2002-12-17 Bruno Haible <bruno@clisp.org>
59723 * lib/canon-host.c (strdup): Remove unused declaration.
59725 * lib/fsusage.c: Include full_read.h.
59726 (get_fs_usage): Use full_read instead of safe_read.
59728 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59730 2002-12-12 Karl Berry <karl@gnu.org>
59732 * config/config.guess: update from prep.
59734 2002-12-11 Bruno Haible <bruno@clisp.org>
59736 * m4/setenv.m4: New file, from gettext-0.11.5.
59738 2002-12-11 Bruno Haible <bruno@clisp.org>
59740 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59742 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59745 2002-12-11 Bruno Haible <bruno@clisp.org>
59747 * setenv.c (alloca): Fall back to malloc.
59748 (freea): New macro.
59749 (setenv): Use freea() to free memory allocated with alloca().
59751 2002-11-13 Bruno Haible <bruno@clisp.org>
59753 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59754 function declarations.
59755 * unsetenv.c (unsetenv): Likewise.
59757 2002-03-04 Bruno Haible <bruno@clisp.org>
59759 Portability to AIX 4.3.3.
59760 * unsetenv.c: New file, extracted from setenv.c.
59761 * setenv.c: Move the unsetenv() function to unsetenv.c.
59763 2001-12-20 Bruno Haible <bruno@clisp.org>
59765 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59766 use malloc instead. For SunOS 4.
59768 2001-12-11 Bruno Haible <bruno@clisp.org>
59770 * setenv.c: Declare alloca.
59771 (compar_fn_t): New typedef.
59772 (KNOWN_VALUE, STORE_VALUE): Use it.
59774 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59777 2002-12-10 Paul Eggert <eggert@twinsun.com>
59779 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59780 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59781 Choose values that are less likely to collide with system fnmatch
59783 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59784 defined (e.g., a pure POSIX system).
59785 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59786 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59788 2002-12-06 Paul Eggert <eggert@twinsun.com>
59790 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59791 a pain in practice to deal with generated m4 files. This change
59792 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59794 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59795 and jm-glibc-io.m4, as they are no longer a special case.
59796 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59797 kludge and the auto-generation stuff. Check only whether the
59798 functions are declared, not whether they exist, since older hosts
59799 that don't declare the functions can't use the optimization anyway.
59801 2002-12-06 Jim Meyering <jim@meyering.net>
59803 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59805 Merge in changes from libc's misc/error.c, in preparation
59806 for the merge of gnulib's changes back into libc.
59808 * lib/error.c (_): Define only if not already defined.
59809 Move definition to follow all #include directives.
59810 Include unlocked-io.h only if !_LIBC.
59811 [_LIBC]: Include <libio/libioP.h>.
59812 [USE_IN_LIBIO]: Include <libio/iolibio.h>
59813 (fflush): Tweak definition to use INTUSE.
59816 2002-12-05 Paul Eggert <eggert@twinsun.com>
59818 * lib/alloca.c [defined emacs]: Include "lisp.h".
59819 (xalloc_die) [defined emacs]: New macro.
59820 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59821 [! defined emacs]: Include <xalloc.h>.
59822 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59823 (pointer): Typedef to POINTER_TYPE *.
59824 (malloc): Remove decl; we now always use xmalloc.
59825 (alloca): Use old-style definition, since Emacs needs this.
59826 Check for arithmetic overflow when computing combined size.
59828 2002-12-04 Paul Eggert <eggert@twinsun.com>
59830 Do not generate unlocked-io.h automatically, since it's easier to
59831 maintain it by hand.
59833 * lib/unlocked-io.h: New file, from GNU diffutils,
59834 but with proper copyright notice and attribution.
59835 * lib/gen-uio: Remove.
59836 * lib/Makefile.am: Add copyright notice.
59837 (libfetish_a_SOURCES): Add unlocked-io.h.
59838 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59839 (DISTCLEANFILES, io_functions): Remove macros.
59840 (EXTRA_DIST): Remove gen_uio.
59841 (unlocked-io.h): Remove rule.
59843 2002-12-04 Jim Meyering <jim@meyering.net>
59845 Reflect the fact that stat.c and lstat.c are no longer generated.
59846 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59847 (DISTCLEANFILES): Likewise.
59848 (EXTRA_DIST): Likewise.
59849 (all_local): Don't depend on stat.c or lstat.c.
59850 (stat.c, lstat.c): Remove rules.
59851 (EXTRA_DIST): Remove xstat.in.
59853 * lib/xstat.in: Remove file. Contents moved into stat.c.
59854 * lib/stat.c: New file. Contents mostly from xstat.in.
59855 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59856 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59858 * lib/safe-read.c: Rework so that it may serve to define safe_write,
59860 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59862 2002-12-03 Jim Meyering <jim@meyering.net>
59864 * lib/safe-read.c, safe-write.c: Change variable names and comments,
59865 but not semantics, to minimize the differences between these two files.
59866 (safe_read): Change comment to mention SAFE_READ_ERROR.
59868 * lib/safe-read.c (IS_EINTR): Define.
59869 (safe_read): Use IS_EINTR in place of in-function cpp directives.
59871 2002-12-02 Jim Meyering <jim@meyering.net>
59873 * lib/safe-read.c (EINTR): Define.
59874 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59875 (INT_MAX): Provide fallback.
59876 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59878 * lib/safe-read.h (SAFE_READ_ERROR): Define.
59880 2002-12-02 Bruno Haible <bruno@clisp.org>
59882 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59883 Define, taken from safe-read.c.
59884 (INT_MAX): Provide fallback.
59885 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59886 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59888 * lib/safe-read.c (EINTR): Remove definition.
59889 (safe_read): Don't use EINTR if it is absent.
59891 2002-12-01 Jim Meyering <jim@meyering.net>
59893 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59895 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59897 2002-11-27 Paul Eggert <eggert@twinsun.com>
59899 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59900 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59901 with `if (! (value < limit)) abort ();', for readability.
59903 2002-11-26 Karl Berry <karl@gnu.org>
59905 * lib/strdup.c: copy from libc again, with jim's ok.
59906 * lib/.cppi-disable: re-add strdup.c
59908 2002-11-25 Karl Berry <karl@gnu.org>
59910 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59911 instead of "strtol.c".
59913 2002-11-25 Karl Berry <karl@gnu.org>
59915 * config/install-sh: update from automake for variable quoting, $0 in
59918 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59919 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59922 2002-11-25 Jim Meyering <jim@meyering.net>
59924 * lib/mktime.c: Sync from libc, now that it has the latest fix.
59926 2002-11-24 Karl Berry <karl@gnu.org>
59928 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59929 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59931 2002-11-24 Jim Meyering <jim@meyering.net>
59933 Update from coreutils:
59935 * lib/mktime.c: Merge in changes from libc.
59937 Avoid a link-time failure on some Linux systems.
59938 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59940 (__mon_yday): Declare with the STATIC attribute.
59941 (__mktime_internal): Likewise.
59942 Based on a report from Greg Schafer.
59944 2002-11-23 Jim Meyering <jim@meyering.net>
59946 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59947 Use `unsigned', not `int', as type of index.
59949 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59951 * lib/fsusage.c: Remove unneeded parentheses around operands of
59954 2002-11-22 Paul Eggert <eggert@twinsun.com>
59956 * lib/quotearg.h: Allow multiple inclusion by surrounding with
59957 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
59958 so that we can be included first.
59959 (PARAMS): Remove; we now assume C89 or later. All uses removed.
59960 * lib/quotearg.c: Include quotearg.h immediately after config.h.
59961 No need to include stddef.h or sys/types.h any more.
59962 Surround local include files with "", not "<>".
59963 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59964 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59965 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59966 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59967 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59968 (ISPRINT): Remove; no longer needed now that we assume C89.
59970 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59973 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59974 quotearg_char): Use SIZE_MAX rather than
59975 (size_t) -1 when we are talking about "infinity".
59977 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59979 2002-11-22 Paul Eggert <eggert@twinsun.com>
59981 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59982 hint that one should use `if (! x) abort ();' rather than `assert
59983 (x);', and anyway it's one less thing to worry about configuring.
59984 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59985 hash_rehash, hash_insert): Use abort rather than assert.
59987 2002-11-22 Bruno Haible <bruno@clisp.org>
59989 * lib/safe-read.h: Assume C89. Add comments.
59990 (safe_read): Change return type to size_t.
59991 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59992 byte counts > SSIZE_MAX correctly.
59993 * lib/safe-write.h: New file.
59994 * lib/safe-write.c: New file.
59995 * lib/full-read.h: New file.
59996 * lib/full-read.c: New file.
59997 * lib/full-write.h: Assume C89. Add comments.
59998 * lib/full-write.c: Include safe-write.h.
59999 (full_write): Rewritten to use safe_write.
60000 Suggested by Jim Meyering and Paul Eggert.
60002 2002-11-21 Jim Meyering <jim@meyering.net>
60004 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60006 Merge in changes from the coreutils.
60008 2002-09-25 Paul Eggert <eggert@twinsun.com>
60009 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60011 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60012 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60013 int. Work more efficiently if X is the same width as uintmax_t.
60014 Do not compare X to -1, to avoid bogus compiler warning.
60015 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60016 Don't assume that f_frsize and f_bsize are the same type.
60018 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60019 warning on FreeBSD.
60021 * lib/makepath.c (make_path): Restore umask *before* creating the final
60023 (make_path): Minor reformatting.
60025 * lib/xmalloc.c: Adjust to work with new autoconf macros,
60026 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60027 HAVE_MALLOC/HAVE_REALLOC.
60029 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60030 dummy ones. At least on GNU/Linux systems, `auto' means something
60032 From Michael Stone.
60034 2002-11-21 Bruno Haible <bruno@clisp.org>
60036 Remove case insensitive option matching.
60037 * lib/argmatch.h (argcasematch): Remove declaration.
60038 (ARGCASEMATCH): Remove macro.
60039 (__xargmatch_internal): Remove case_sensitive argument.
60040 (XARGMATCH): Update.
60041 (XARGCASEMATCH): Remove macro.
60042 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60043 case_sensitive argument.
60044 (argcasematch): Remove function.
60045 (__xargmatch_internal): Remove case_sensitive argument.
60046 (main): Use XARGMATCH instead of XARGCASEMATCH.
60048 * lib/xmalloc.c: Change compile-time error message. Add comment about
60049 required autoconf version.
60051 2002-11-20 Paul Eggert <eggert@twinsun.com>
60053 Merge argmatch cleanups from Bison. Assume C89.
60055 * lib/argmatch.c: Include config.h here, not in argmatch.h.
60056 Include stdlib.h, for EXIT_FAILURE.
60057 Always include <string.h>, since we assume C89.
60058 (EXIT_FAILURE): Remove pre-C89 bug workaround.
60059 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60060 Include <stddef.h> instead, since it's all we need for size_t.
60061 (PARAMS): Remove. All uses removed.
60062 (ARRAY_CARDINALITY): Do not bother to #undef.
60063 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60064 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60065 Remove unnecessary parentheses.
60066 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60067 Insert necessary parentheses.
60068 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60069 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60071 2002-11-19 Bruno Haible <bruno@clisp.org>
60073 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60074 * lib/mbswidth.h: Include <stddef.h>, for size_t.
60076 * lib/mbswidth.h (PARAMS): Remove macro.
60077 (mbswidth, mbsnwidth): Use ANSI C function declarations.
60078 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60080 * lib/gcd.h (PARAMS): Remove macro.
60081 (gcd): Use ANSI C function declarations.
60082 * lib/gcd.c (gcd): Likewise.
60084 2002-11-15 Bruno Haible <bruno@clisp.org>
60086 * lib/strcspn.c: Include <stddef.h>.
60087 (strcspn): Use ANSI C function declaration. Change return type to
60089 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60090 (strpbrk): Use NULL.
60091 * lib/strpbrk.h (PARAMS): Remove macro.
60092 (strpbrk): Use ANSI C function declaration.
60093 * lib/strstr.c: Don't include <sys/types.h>.
60094 * lib/strstr.h (PARAMS): Remove macro.
60095 (strstr): Use ANSI C function declarations.
60097 2002-11-14 Karl Berry <karl@gnu.org>
60099 * config/mkinstalldirs: `do' on separate line, instead of
60102 2002-11-06 Bruno Haible <bruno@clisp.org>
60104 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60105 * lib/gcd.c (gcd): Likewise.
60107 2002-11-05 Bruno Haible <bruno@clisp.org>
60109 * lib/gcd.h: New file, from gettext-0.11.5.
60110 * lib/gcd.c: New file, from gettext-0.11.5.
60112 2002-11-05 Bruno Haible <bruno@clisp.org>
60114 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60115 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60116 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60117 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60119 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60121 * lib/makepath.c: Include gettext.h instead of <locale.h> and
60124 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60125 * lib/human.c: Include gettext.h instead of <libintl.h>.
60126 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60127 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60128 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60129 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60130 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60131 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60132 (textdomain): Remove definition.
60133 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60135 * lib/long-options.c: Remove include of <libintl.h> and definition of
60137 * lib/same.c: Remove include of <libintl.h> and definition of _.
60139 2002-11-04 Owen Taylor <otaylor@redhat.com>
60141 * lib/config.charset: A few additions for Solaris.
60143 2002-11-04 Bruno Haible <haible@clisp.cons.org>
60145 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60146 * lib/localcharset.c (locale_charset): Declare as extern "C".
60148 2002-11-04 Bruno Haible <haible@clisp.cons.org>
60150 * lib/config.charset: msdos in uk_UA uses CP1125.
60152 2002-11-04 Bruno Haible <bruno@clisp.org>
60154 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60155 * lib/strcase.h: New file, from GNU gettext-0.11.5.
60156 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60157 * lib/strstr.h: New file, from GNU gettext-0.11.5.
60158 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60160 2002-11-04 Bruno Haible <bruno@clisp.org>
60162 * lib/localcharset.c (locale_charset): Don't return an empty string.
60164 2002-11-04 Bruno Haible <bruno@clisp.org>
60166 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60169 2002-11-04 Bruno Haible <bruno@clisp.org>
60171 * lib/config.charset: Update for newest glibc. Add canonical names
60172 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60174 2002-11-04 Bruno Haible <bruno@clisp.org>
60176 * lib/config.charset: Add support for NetBSD.
60178 2002-11-04 Bruno Haible <bruno@clisp.org>
60180 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60182 2002-11-01 Bruno Haible <bruno@clisp.org>
60184 * configure.in: Add AC_CONFIG_AUX_DIR call.
60185 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60187 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60189 2002-09-28 Karl Berry <karl@gnu.org>
60191 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60192 installed automake until the next release, since changes have been
60195 2002-09-25 Karl Berry <karl@gnu.org>
60197 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60198 * lib/getopt*: copy from libc/posix.
60199 * lib/gettext.h: copy from gettext.
60200 * lib/.cppi-disable: add strdup.c, gettext.h.
60202 2002-09-25 Karl Berry <karl@gnu.org>
60204 * config/srclist.txt: enable gettext.h check.
60205 * config/config.{guess,sub}: update from prep.
60206 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60207 from automake 1.6.3.
60210 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
60212 * regex.c (PATFETCH): Remove the translating fetch.
60213 (PATFETCH_RAW): Rename to PATFETCH.
60214 (set_image_of_range): New fun.
60215 (SET_RANGE_TABLE_WORK_AREA): Use it.
60216 (regex_compile): Don't translate the pattern chars so eagerly.
60217 Only do it when inserting an `exactn' bytecode or when handling
60219 (mutually_exclusive_p): Avoid empty statement.
60221 2002-07-06 Jim Meyering <meyering@lucent.com>
60223 * m4/README: Don't mention Makefile.am.in.
60224 Outline how I've tested changes to .m4 files. Yep, it's a pain.
60226 2002-07-01 Jim Meyering <meyering@lucent.com>
60228 * lib/c-stack.c: Include sys/time.h.
60229 From Volker Borchert.
60231 2002-06-26 Paul Eggert <eggert@twinsun.com>
60233 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60235 2002-06-26 Paul Eggert <eggert@twinsun.com>
60237 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60238 New macro. Use it uniformly instead of
60239 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60240 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60241 reported by Vin Shelton.
60243 2002-06-22 Paul Eggert <eggert@twinsun.com>
60245 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60246 Do not assume SA_SIGINFO behavior.
60247 Bug reported by Jim Meyering on NetBSD 1.5.2.
60249 2002-06-22 Jim Meyering <meyering@lucent.com>
60251 * m4/c-stack.m4: New file, from diffutils-2.8.2.
60252 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60254 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60255 now that configure.ac uses AC_GNU_SOURCE.
60256 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60257 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60259 Update to latest tools. Suggestions from Paul Eggert.
60260 * m4/stdbool.m4: New file, from diffutils-2.8.2.
60261 * m4/gnu-source.m4: Update from diffutils-2.8.2.
60262 * m4/fnmatch.m4: Likewise.
60263 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60264 to AC_HEADER_STDBOOL
60266 2002-06-22 Jim Meyering <meyering@lucent.com>
60268 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60269 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60271 2002-06-22 Jim Meyering <meyering@lucent.com>
60273 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60275 * lib/exitfail.c, exitfail.h: Likewise.
60276 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60278 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60280 (EXTRA_DIST): Add fnmatch_loop.c.
60281 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60283 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60284 * lib/fnmatch.c: Update from diffutils-2.8.2.
60285 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
60286 * lib/fnmatch.h: Remove file.
60288 2002-06-21 Jim Meyering <meyering@lucent.com>
60290 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60291 * m4/mbrtowc.m4: Likewise.
60293 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60294 * m4/mbswidth.m4: Reflect name change:
60295 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60296 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60298 * m4/lib-link.m4: Update from gettext-0.11.2.
60299 * m4/gettext.m4: Likewise.
60301 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60302 From Alfred M. Szmidt.
60304 2002-06-18 Paul Eggert <eggert@twinsun.com>
60306 * lib/file-type.h: Report an error if neither S_ISREG nor
60307 S_IFREG is defined, instead of using a test specific to glibc
60308 2.2. This should be safe, since POSIX requires S_ISREG and
60309 Unix Version 7 had S_IFREG. We don't need to check for
60310 <sys/types.h> since we don't use any symbols that it defines.
60312 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
60314 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60315 $@-t, so that each temporary file name is unique and valid in the first
60316 8 characters, for operation under DOS.
60318 2002-06-15 Paul Eggert <eggert@twinsun.com>
60320 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60322 2002-06-15 Jim Meyering <meyering@lucent.com>
60324 Work even with DJGPP 2.03, which lacks support for symlinks.
60326 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60328 * lib/lchown.c (S_ISLNK): Likewise.
60330 2002-06-15 Jim Meyering <meyering@lucent.com>
60332 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60333 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60334 have been included before this file.
60336 2002-06-14 Jim Meyering <meyering@lucent.com>
60338 * lib/file-type.h: Use the version from diffutils-2.8.2.
60339 * lib/file-type.c: Likewise.
60341 2002-06-07 Jim Meyering <meyering@lucent.com>
60343 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60344 They're needed at least for NetBSD 1.5.2.
60345 ($statxfs_includes): Include those same headers.
60346 ($statxfs_includes): Include sys/vfs.h if available.
60347 ($statxfs_includes): Likewise for sys/statvfs.h.
60348 Check for the following members in both structs statfs and statvfs:
60349 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60351 2002-06-01 Jim Meyering <meyering@lucent.com>
60353 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60354 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60356 2002-05-28 Jim Meyering <meyering@lucent.com>
60358 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60359 Reported by Volker Borchert.
60361 2002-05-27 Jim Meyering <meyering@lucent.com>
60363 Fix a problem seen only on nonconforming systems whereby ls.c's
60364 use of localtime, and then of gettimeofday would cause trouble:
60365 the localtime call used to initialize rpl_gettimeofday's save
60366 mechanism would clobber ls's current local time information so
60367 that in any long listing the first file would always be listed
60368 with date 1970-01-01. Analysis by Volker Borchert.
60370 * lib/gettimeofday.c (localtime): Undefine.
60371 (rpl_localtime): New function.
60373 2002-05-27 Jim Meyering <meyering@lucent.com>
60375 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60378 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60379 use the replacement function; it wouldn't resolve at link time.
60380 Reported by Volker Borchert.
60382 2002-05-22 Jim Meyering <meyering@lucent.com>
60384 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60386 * lib/file-type.h: New file.
60387 * lib/file-type.c (file_type): New file/function. Extracted from
60390 2002-04-30 Jim Meyering <meyering@lucent.com>
60392 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60394 2002-04-29 Paul Eggert <eggert@twinsun.com>
60396 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60398 2002-04-29 Paul Eggert <eggert@twinsun.com>
60400 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60401 Do not check for alloca.h (no longer used) or stdbool.h (was never
60402 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
60404 2002-04-29 Paul Eggert <eggert@twinsun.com>
60406 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60408 2002-04-29 Jim Meyering <meyering@lucent.com>
60410 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60411 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60412 Use AC_FUNC_STRNLEN here instead.
60414 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60415 With autoconf-2.53a, it's part of AC_PROG_CC.
60417 2002-04-28 Paul Eggert <eggert@twinsun.com>
60419 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60420 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60422 2002-04-28 Paul Eggert <eggert@twinsun.com>
60424 * lib/sig2str.h, lib/sig2str.c: New files.
60425 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60427 2002-04-28 Paul Eggert <eggert@twinsun.com>
60429 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60430 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
60431 of 127, since 64 is the largest conceivable number for ancient
60433 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60435 2002-04-28 Jim Meyering <meyering@lucent.com>
60437 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60439 2002-04-24 Jim Meyering <meyering@lucent.com>
60441 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60442 (jm_PREREQ): Use it.
60444 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60445 mach/mach.h fcntl.h.
60446 Check for this function: setlocale.
60448 2002-04-24 Jim Meyering <meyering@lucent.com>
60450 * lib/gettext.h: New file, from Gettext.
60451 * lib/Makefile.am (INCLUDES): Remove -I../intl.
60452 (libfetish_a_SOURCES): Add gettext.h.
60454 2002-04-16 Jim Meyering <meyering@lucent.com>
60456 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60457 ut_pid, ut_id, ut_exit.
60459 2002-04-16 Jim Meyering <meyering@lucent.com>
60461 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60462 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60463 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60465 2002-04-12 Jim Meyering <meyering@lucent.com>
60467 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60468 now-bogus check for f_type in sys/mount.h. Instead, just test for the
60469 existence of the getmntinfo function. Needed for Darwin 5.3.
60471 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60472 This is necessary at least on Darwin 5.3.
60474 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60475 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
60476 strnlen.o in the library, and that makes some versions of ranlib
60479 2002-04-12 Jim Meyering <meyering@lucent.com>
60481 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60483 2002-04-09 Jim Meyering <meyering@lucent.com>
60485 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60486 to be more precise. Rather than saying we're checking whether the
60487 function `works', say what we're testing.
60488 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60489 Reported by Bruno Haible.
60491 2002-03-10 Jim Meyering <meyering@lucent.com>
60493 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60494 Suggestion from Santiago Vila.
60496 2002-03-08 Jim Meyering <meyering@lucent.com>
60498 * lib/rename.c: Mention that this wrapper is needed also on
60499 mips-dec-ultrix4.4 systems.
60501 2002-03-02 Jim Meyering <meyering@lucent.com>
60503 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60504 not HAVE_CLOCK_SETTIME.
60506 2002-02-27 Paul Eggert <eggert@twinsun.com>
60508 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60509 Check for clock_settime.
60511 2002-02-27 Paul Eggert <eggert@twinsun.com>
60513 * lib/nanosleep.h: Rename to....
60514 * lib/timespec.h: New name for nanosleep.h. All uses changed.
60516 * lib/gettime.c: New file.
60517 * lib/settime.c: New file.
60518 * lib/stime.c: Remove.
60520 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60521 timespec.h. Remove nanosleep.h.
60523 2002-02-25 Paul Eggert <eggert@twinsun.com>
60525 * m4/acl.m4: New file.
60526 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60527 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60529 2002-02-25 Paul Eggert <eggert@twinsun.com>
60531 * lib/acl.c, lib/acl.h: New files.
60532 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60534 2002-02-24 Jim Meyering <meyering@lucent.com>
60536 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60537 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60538 cause trouble. Reported by Nelson Beebe.
60540 2002-02-23 Paul Eggert <eggert@twinsun.com>
60542 * lib/path-concat.c (xpath_concat): Reorder code to pacify
60543 compilers that don't know that xalloc_die never returns.
60545 2002-02-20 Jim Meyering <meyering@lucent.com>
60547 * lib/getdate.c: Regenerate using bison-1.33.
60549 2002-02-17 Jim Meyering <meyering@lucent.com>
60551 * config/config.guess (main): Don't use `head -1'; it's no longer
60552 portable. Use `sed 1q' instead.
60554 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
60556 * m4/codeset.m4: Upgrade to gettext-0.11.
60557 * m4/gettext.m4: Upgrade to gettext-0.11.
60558 * m4/glibc21.m4: Upgrade to gettext-0.11.
60559 * m4/iconv.m4: Upgrade to gettext-0.11.
60560 * m4/isc-posix.m4: Upgrade to gettext-0.11.
60561 * m4/lcmessage.m4: Upgrade to gettext-0.11.
60562 * m4/lib-ld.m4: New file, from gettext-0.11.
60563 * m4/lib-link.m4: New file, from gettext-0.11.
60564 * m4/lib-prefix.m4: New file, from gettext-0.11.
60565 * m4/progtest.m4: Upgrade to gettext-0.11.
60567 2002-02-15 Paul Eggert <eggert@twinsun.com>
60569 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60570 (jm_PREREQ): Use it.
60572 2002-02-15 Paul Eggert <eggert@twinsun.com>
60574 * lib/posixver.c, lib/posixver.h: New files.
60575 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60577 2002-02-02 Paul Eggert <eggert@twinsun.com>
60578 Bruno Haible <bruno@clisp.org>
60580 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60581 (fwrite_success_callback): New declaration.
60582 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60583 print_unicode_char. Call failure callback instead of error.
60584 (fwrite_success_callback): New function.
60585 (exit_failure_callback): New function.
60586 (fallback_failure_callback): New function.
60587 (print_unicode_char): Call unicode_to_mb.
60589 2002-01-26 Jim Meyering <meyering@lucent.com>
60591 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60592 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60594 2002-01-26 Jim Meyering <meyering@lucent.com>
60596 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60598 2002-01-22 Paul Eggert <eggert@twinsun.com>
60600 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60602 2002-01-22 Jim Meyering <meyering@lucent.com>
60604 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60605 Otherwise, some versions of automake would omit the rule that makes
60606 Makefile from Makefile.in.
60608 2002-01-21 Paul Eggert <eggert@twinsun.com>
60610 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60611 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60612 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60613 (memcoll): Set errno to zero if there is no error.
60615 * lib/quotearg.c (quotearg_buffer_restyled):
60616 Fix bug with quoting buffers containing NUL when backslashing escapes.
60617 This bug was exposed by the other changes in this patch.
60618 (quotearg_n_options): New arg ARGSIZE.
60619 All callers changed.
60620 (quoting_options_from_style): New function.
60621 (quotearg_n_style): Use it.
60622 (quotearg_n_style_mem): New function.
60624 * lib/quotearg.h (quotearg_n_style_mem): New function.
60626 2002-01-19 Jim Meyering <meyering@lucent.com>
60628 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60629 Remove useless quotes: DF_PROG="df".
60630 * m4/strnlen.m4: New file.
60632 2002-01-16 Paul Eggert <eggert@twinsun.com>
60634 * lib/backupfile.c (ISDIGIT): Comment fix.
60635 * lib/getdate.y (ISDIGIT): Likewise.
60636 * lib/posixtm.c (ISDIGIT, year): Likewise.
60637 * lib/strverscmp.c (ISDIGIT): Likewise.
60638 * lib/userspec.c (ISDIGIT): Likewise.
60640 2002-01-16 Jim Meyering <meyering@lucent.com>
60642 * lib/getdate.y: Add three semicolons, each just before a closing
60643 brace. Bison (as of version 1.31) no longer papers over that mistake.
60645 2002-01-05 Jim Meyering <meyering@lucent.com>
60647 * lib/version-etc.c (version_etc_copyright): Update copyright year.
60649 2001-12-19 Paul Eggert <eggert@twinsun.com>
60651 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60652 not silently exit merely because the output buffer happens to
60653 have nothing pending.
60655 2001-12-18 Paul Eggert <eggert@twinsun.com>
60657 See the big note in ../ChangeLog.
60658 * lib/human.c (suffixes): Prefer K to k for 1024.
60659 (generate_suffix_backwards): New function.
60660 (human_readable_inexact): Use it.
60661 * lib/xstrtol.c (__xstrtol): If there is no number but there
60662 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
60663 Accept 'K' as well as 'k'.
60665 2001-12-15 Jim Meyering <meyering@lucent.com>
60667 * lib/regex.h (__restrict_arr): Update from libc.
60669 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60670 as `remote' if the name starts with `//'. Suggested by Michael Stone.
60673 2001-12-14 Jim Meyering <meyering@lucent.com>
60675 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60676 Suggestion from Bruno Haible.
60678 2001-12-10 Jim Meyering <meyering@lucent.com>
60680 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60681 xrealloc, Instead, include "xalloc.h".
60682 (initbuffer): Don't cast xmalloc return value to char*.
60683 (readline): Reword comment.
60684 Don't cast xrealloc return value to char*
60685 Return NULL, not 0.
60687 2001-12-09 Jim Meyering <meyering@lucent.com>
60689 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60690 about `signed and unsigned type in conditional expression'.
60691 * lib/posixtm.c (posix_time_parse): Likewise.
60693 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60695 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60696 to avoid a pedantic warning.
60698 * lib/getstr.c: Don't include assert.h.
60699 (getstr): Remove warning-evoking assertions.
60700 Return -1 if offset parameter is out of bounds.
60701 Change the type of a local from int to size_t.
60703 * lib/strftime.c (my_strftime_localtime_r): Include this function
60704 definition in the `#if ! HAVE_TM_GMTOFF' block.
60706 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60707 Include xalloc.h instead.
60709 2001-12-02 Jim Meyering <meyering@lucent.com>
60711 * lib/tempname.c: Don't declare getenv, thus reverting the change of
60712 2001-11-18. It's no longer necessary, now that stdlib.h is always
60715 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60716 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
60718 2001-11-30 Akim Demaille <akim@epita.fr>
60720 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60721 before being defined.
60723 2001-11-27 Paul Eggert <eggert@twinsun.com>
60725 * lib/quotearg.h (quotearg_n, quotearg_n_style):
60726 First arg is int, not unsigned.
60727 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60728 (SIZE_MAX, UINT_MAX): New macros.
60729 (quotearg_n_options): Abort if N is negative.
60730 Avoid overflow check on hosts where size_t is 64 bits and int
60731 is 32 bits, as overflow is impossible there.
60732 Fix off-by-one typo that caused unnecessary reallocation.
60734 2001-11-27 Jim Meyering <meyering@lucent.com>
60736 * lib/tempname.c: Merge with version from libc.
60737 * lib/regex.c: Likewise.
60739 * lib/tempname.c: Include stdlib.h unconditionally. On some old
60740 systems for which STDC_HEADERS is 0, it was not included, resulting in
60741 a warning about an integer-to-pointer conversion problem with getenv.
60742 Reported by Volker Borchert.
60744 2001-11-26 Jim Meyering <meyering@lucent.com>
60746 * lib/gtod.h: Remove file.
60747 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60748 * lib/gettimeofday.c: Don't include gtod.h.
60749 (GTOD_init): Remove function.
60750 (rpl_gettimeofday): Do its job here instead, rather than aborting.
60751 Suggestion from Volker Borchert.
60753 2001-11-23 Jim Meyering <meyering@lucent.com>
60755 * lib/hash.h (struct hash_table): Don't define here. Merely declare
60757 * lib/hash.c (struct hash_table): Define it here instead.
60759 2001-11-22 Jim Meyering <meyering@lucent.com>
60761 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60763 2001-11-20 Jim Meyering <meyering@lucent.com>
60765 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60766 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60768 2001-11-19 Jim Meyering <meyering@lucent.com>
60770 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60771 directory. Use "conftestXXXXXX" as the template.
60772 Suggestion from Paul Eggert.
60774 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60775 immediately, so the test doesn't mistakenly hit the max-open-files
60778 2001-11-18 Paul Eggert <eggert@twinsun.com>
60780 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60781 (TEMPORARIES): New macro.
60782 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
60783 removes an artificial limitation (e.g. HP-UX 10.20, where
60786 2001-11-18 Jim Meyering <meyering@lucent.com>
60788 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60790 2001-11-18 Jim Meyering <meyering@lucent.com>
60792 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60795 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60796 files will be created before anything else.
60798 2001-11-17 Paul Eggert <eggert@twinsun.com>
60800 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60801 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60803 2001-11-17 Jim Meyering <meyering@lucent.com>
60805 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60806 Prompted by a report from Bob Proulx.
60808 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60809 Instead, require UTILS_FUNC_MKSTEMP.
60811 2001-11-17 Jim Meyering <meyering@lucent.com>
60813 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60814 Now, that's done as part of AC_FUNC_STRTOD.
60816 2001-11-17 Jim Meyering <meyering@lucent.com>
60818 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60819 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60820 rather than group writable. Patch by Juan F. Codagnone.
60822 * lib/readtokens.c: Remove explicit declarations of xmalloc and
60823 xrealloc, Instead, include "xalloc.h".
60825 * lib/mountlist.c: Include unlocked-io.h after all system headers.
60826 Remove explicit declarations of xmalloc, xrealloc,
60827 and xstrdup. Instead, include "xalloc.h".
60829 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60831 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60833 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60835 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60836 Reported by Padraig Brady.
60838 * lib/mkstemp.c: #undef mkstemp.
60840 (rpl_mkstemp): Rename from mkstemp.
60843 2001-11-16 Jim Meyering <meyering@lucent.com>
60845 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60846 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60847 determine the amount of total physical memory, use pstat_getstatic.
60848 HPUX-11 doesn't define _SC_PHYS_PAGES.
60849 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60850 If sysconf couldn't be used to determine the amount of available
60851 physical memory, use both pstat_getstatic and pstat_getdynamic.
60852 Based on a patch from Bob Proulx.
60854 2001-11-10 Jim Meyering <meyering@lucent.com>
60856 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60857 (jm_PREREQ): Use it.
60859 2001-11-09 Jim Meyering <meyering@lucent.com>
60861 * m4/jm-macros.m4: Require autoconf-2.52f.
60862 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60863 Use these AC_-prefixed names, not the AM_-prefixed ones.
60865 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
60867 2001-11-05 Jim Meyering <meyering@lucent.com>
60869 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60871 2001-11-04 Jim Meyering <meyering@lucent.com>
60873 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60876 2001-11-03 Jim Meyering <meyering@lucent.com>
60878 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60881 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60882 know the name of the variable in the macro definition.
60884 2001-11-03 Jim Meyering <meyering@lucent.com>
60886 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60887 in argmatch_to_argument call.
60889 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60892 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60893 e.g., a fault due to an attempt to free a NULL pointer.
60895 2001-11-01 Jim Meyering <meyering@lucent.com>
60897 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60898 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60900 2001-11-01 Jim Meyering <meyering@lucent.com>
60902 * lib/dirfd.c, lib/dirfd.h: New files.
60903 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60905 * lib/hash.c (hash_print) [TESTING]: Clean up.
60907 2001-10-22 Paul Eggert <eggert@twinsun.com>
60909 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60910 to avoid a warning if -Wall.
60912 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
60915 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60916 (per RMS's instructions, this is now the canonical source)
60917 * lgpl/, gpl/: New directories.
60919 2001-10-21 Paul Eggert <eggert@twinsun.com>
60921 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60923 2001-10-21 Jim Meyering <meyering@lucent.com>
60925 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
60926 this code would end up calling gettext even in packages built
60927 with --disable-nls.
60928 * lib/getopt.c (_): Likewise.
60929 * lib/regex.c (_): Likewise.
60931 2001-10-20 Paul Eggert <eggert@twinsun.com>
60933 * m4/error.m4 (jm_PREREQ_ERROR):
60934 Do not invoke AC_CHECK_FUNCS with strerror_r, as
60935 AC_FUNC_STRERROR_R does that.
60936 Check for strerror declaration.
60938 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60939 are supposed to have them these days.
60940 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60941 Merge changes from latest Autoconf CVS.
60942 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60943 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60944 POSIX decided to standardize on the int flavor of strerror_r.
60946 2001-10-20 Paul Eggert <eggert@twinsun.com>
60948 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60949 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60950 Use strerror_r that is only a macro, even if it is not a function.
60951 (strerror): Check for HAVE_DECL_STRERROR before declaring.
60952 (private_strerror): Use prototypes, not old-style function definition.
60953 (print_errno_message): New function.
60954 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60955 char*-flavored one.
60956 (error_tail, error, error_at_line): Use it.
60958 2001-10-11 Jim Meyering <meyering@lucent.com>
60960 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60961 and quote_n (1, ... to avoid clobbering a buffer.
60963 2001-10-05 Jim Meyering <meyering@lucent.com>
60965 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60967 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60968 * lib/hash-pjw.h: New file.
60970 2001-09-30 Jim Meyering <meyering@lucent.com>
60972 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60973 `struct fsstat' has the `f_fstypename' member.
60974 Use that to define FS_TYPE, which is now used to make
60975 the getfsstat link test tighter.
60977 2001-09-30 Jim Meyering <meyering@lucent.com>
60979 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60980 Include <sys/ucred.h>, for Apple Darwin.
60981 Include sys/mount.h and sys/fs_types.h only if available.
60983 (read_filesystem_list): Use FS_TYPE.
60985 2001-09-29 Paul Eggert <eggert@twinsun.com>
60987 * lib/exclude.c (excluded_filename): 0 -> false, since it's
60990 2001-09-29 Jim Meyering <meyering@lucent.com>
60992 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60993 [one-argument getmntent function]): Include stdio.h before mntent.h.
60994 SunOS 4.1.x needs it for the declaration of `FILE'.
60995 Patch by Volker Borchert.
60997 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60998 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60999 sys/fs_types.h, and make the link-test for getfsstat guard #include
61000 directives with appropriate #if HAVE_*_H tests so that we can
61001 detect getfsstat on Apple Darwin1.3.7 systems.
61002 Reported by Nelson Beebe.
61003 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61005 2001-09-28 Paul Eggert <eggert@twinsun.com>
61007 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61008 #defines strtoimax. Also treat the other strto* functions
61011 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61012 Check for strtoul and strtoumax,
61013 as those declarations are made even in the signed case.
61014 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61015 Likewise, for strtol and strtoimax.
61017 2001-09-28 Paul Eggert <eggert@twinsun.com>
61019 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61020 #defines strtoimax. Also treat the other strto* functions
61023 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61024 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61025 (strtoimax, strtoumax): Do not declare if already defined as a macro.
61027 2001-09-26 Jim Meyering <meyering@lucent.com>
61029 Most macros in unlocked-io.h had the wrong number of arguments.
61030 * lib/gen-uio: New script.
61031 (USE_UNLOCKED_IO): Define to 1 if not already defined.
61032 * lib/unlocked-io.hin: Remove file.
61033 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61034 rather than trying to embed it here.
61035 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
61036 Reported by Padraig Brady.
61038 2001-09-25 Volker Borchert <bt@teknon.de>
61040 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61043 2001-09-24 Jim Meyering <meyering@lucent.com>
61045 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61047 2001-09-23 Jim Meyering <meyering@lucent.com>
61049 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61050 instead of the mere test for existence of mntent.h. The latter
61051 would get a false-positive on AIX 3.4 systems.
61052 In the outer getmntent if-block, don't die if neither of the getmntent
61053 tests succeeds. Instead, just fall through and continue with the
61056 2001-09-23 Jim Meyering <meyering@lucent.com>
61058 * lib/mountlist.c: Remove useless parentheses in #if directives.
61059 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61060 the deprecated MOUNTED symbol is no longer defined in mntent.h.
61062 2001-09-22 Jim Meyering <meyering@lucent.com>
61064 * m4/gettext.m4: New file. From gettext.
61065 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61066 * m4/progtest.m4: Likewise
61067 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61068 * m4/glibc21.m4: Likewise.
61070 * m4/libintl.m4: Remove. No longer used.
61072 2001-09-22 Jim Meyering <meyering@lucent.com>
61074 * lib/localcharset.c: Update from latest gettext.
61075 * lib/config.charset: Likewise.
61077 2001-09-20 Jim Meyering <meyering@lucent.com>
61079 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61081 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61084 2001-09-20 Jim Meyering <meyering@lucent.com>
61086 * lib/xstrtol.c (strtoimax): Guard declaration with
61087 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61088 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61089 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61090 (strtoumax): Likewise, for completeness (it wasn't necessary).
61092 2001-09-17 Paul Eggert <eggert@twinsun.com>
61094 * lib/strtoimax.c (HAVE_LONG_LONG):
61095 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61096 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61097 to work around bug in IBM C compiler.
61099 2001-09-17 Jim Meyering <meyering@lucent.com>
61101 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61102 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61103 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61104 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61105 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61106 whenever the right hand side need not be expanded by the shell.
61108 2001-09-16 Paul Eggert <eggert@twinsun.com>
61110 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61111 library. It's not correct, as some older glibcs are buggy.
61112 fnmatch wasn't fixed until glibc 2.2.
61114 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61115 special shell magic here.
61117 2001-09-16 Jim Meyering <meyering@lucent.com>
61119 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61120 * m4/jm-macros.m4: Require it.
61122 2001-09-16 Jim Meyering <meyering@lucent.com>
61124 * lib/mkdir.c: New file.
61126 2001-09-15 Jim Meyering <meyering@lucent.com>
61128 * m4/jm-macros.m4: Check for help2man.
61130 2001-09-11 Jim Meyering <meyering@lucent.com>
61132 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61133 The body, by Paul Eggert, was moved here from configure.in.
61134 * m4/jm-macros.m4: Require UTILS_HOST_OS.
61136 2001-09-04 Paul Eggert <eggert@twinsun.com>
61138 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61139 (jm_PREREQ): Use it.
61141 2001-09-04 Paul Eggert <eggert@twinsun.com>
61143 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
61144 Use ssize_t, not int, to store result of readlink.
61145 Check for ssize_t overflow as well as size_t overflow,
61146 as POSIX says the result of readlink is implementation-defined
61147 when ssize_t overflows.
61148 Remove unnecessary cast to char*.
61149 Use free+malloc instead of realloc, as the storage doesn't need
61150 to be preserved and it's clearer and can be more efficient that way.
61151 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61152 * lib/xreadlink.h (xreadlink): Update prototype.
61154 2001-09-04 Paul Eggert <eggert@twinsun.com>
61156 * lib/xgetcwd.c: Revert some of the previous change; intead,
61157 fix the HAVE_GETCWD_NULL code to behave more like the
61158 !HAVE_GETCWD_NULL code used to.
61160 Include "xalloc.h".
61161 (xgetcwd): Do not return NULL when memory is exhausted; instead,
61164 2001-09-03 Paul Eggert <eggert@twinsun.com>
61166 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61167 sys/param.h, as pathmax.h includes them.
61169 2001-09-03 Paul Eggert <eggert@twinsun.com>
61171 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61172 (jm_PREREQ_XGETCWD): New macro.
61174 * m4/getcwd.m4: New file.
61176 2001-09-03 Paul Eggert <eggert@twinsun.com>
61178 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61179 like the HAVE_GETCWD_NULL code.
61180 Include pathmax.h if not HAVE_GETCWD.
61181 Do not include xalloc.h.
61182 (INITIAL_BUFFER_SIZE): New symbol.
61183 Do not use xmalloc / xrealloc, since the caller is responsible for
61184 handling errors. Preserve errno around `free' during failure.
61185 Do not overrun buffer when using getwd.
61187 2001-09-03 Paul Eggert <eggert@twinsun.com>
61189 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61190 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61193 2001-09-03 Paul Eggert <eggert@twinsun.com>
61195 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61196 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
61197 spotted by Jim Meyering.
61199 2001-09-03 Jim Meyering <meyering@lucent.com>
61201 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61204 2001-09-02 Jim Meyering <meyering@lucent.com>
61206 * lib/error.c: Update from GNU libc.
61208 2001-09-01 Jim Meyering <meyering@lucent.com>
61210 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61213 2001-09-01 Jim Meyering <meyering@lucent.com>
61215 * lib/xreadlink.c: New file.
61216 * lib/xreadlink.h: New file.
61217 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61220 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61221 doesn't conflict with sparc Solaris 7's definition in
61222 /usr/include/sys/int_types.h.
61224 * lib/exclude.c: Use `""', not `<>' to #include non-system header
61226 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61227 and strncasecmp as r-values. Unixware didn't have declarations.
61229 2001-08-31 Paul Eggert <eggert@twinsun.com>
61231 * lib/xstrtol.h: Add copyright notice.
61232 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61233 LONGINT_INVALID_SUFFIX_CHAR.
61235 2001-08-31 Paul Eggert <eggert@twinsun.com>
61237 * lib/xstrtol.c (strtoimax): New decl.
61239 2001-08-31 Paul Eggert <eggert@twinsun.com>
61241 * lib/xgetcwd.c: Don't include pathmax.h.
61242 Include stdlib.h and unistd.h if available.
61244 (xmalloc, xstrdup, free): Remove decls.
61245 (xgetcwd): Don't assume sizes fit in unsigned.
61246 Check for overflow when computing sizes.
61247 Simplify reallocation code.
61249 2001-08-31 Paul Eggert <eggert@twinsun.com>
61251 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61252 a directory's st_size can have an arbitrary value, so the old
61253 usage could waste an arbitrary amount of memory. All uses
61255 * lib/savedir.h: Update prototype.
61257 2001-08-31 Paul Eggert <eggert@twinsun.com>
61259 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61261 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61264 Also, make the following further changes to make this file's
61265 configuration more similar to that of strtol.c:
61266 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
61267 (strtoumax, uintmax_t, strtoull, strtol): Remove.
61268 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61269 (strtoimax): Renamed from strtoumax. All uses of unsigned values
61270 changed to signed values.
61272 And make the following changes as well:
61273 Fix copyright notice, as 1999 was missing.
61274 (verify): New macro.
61275 (strtoimax): Check sizes at compile-time, not run-time.
61276 Prefer strtol to strtoll if both work.
61277 (main): Remove; it was not that useful and was a pain to maintain.
61279 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61281 2001-08-31 Jim Meyering <meyering@lucent.com>
61283 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61284 Use an initial, malloc'd, buffer of length 128 rather than
61285 a statically allocated one of length 1024.
61287 2001-08-30 Paul Eggert <eggert@twinsun.com>
61289 Simplify code, partly by assuming autoconf 2.52 semantics.
61291 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61293 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61294 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61296 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61297 Move AC_REQUIRE to next-to-top level, to avoid confusion.
61298 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61299 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61300 jm_AC_HEADER_INTTYPES_H.
61301 * m4/jm-macros.m4 (jm_MACROS): Likewise.
61303 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61305 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61306 Quote first arg of AC_DEFUN.
61307 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61308 since they are needed to parse the include file even if we need
61309 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
61310 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61311 but with opposite signedness.
61313 2001-08-30 Paul Eggert <eggert@twinsun.com>
61315 Merge 'exclude' changes from tar 1.13.22.
61316 This fixes one or two unlikely storage allocation overflow bugs,
61317 but doesn't change user-visible behavior otherwise.
61319 2001-08-30 Paul Eggert <eggert@twinsun.com>
61321 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61322 (jm_PREREQ_EXCLUDE): New macro.
61324 2001-08-30 Paul Eggert <eggert@twinsun.com>
61326 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61329 2001-08-30 Paul Eggert <eggert@twinsun.com>
61331 * lib/hash.c: Remove '2001' from copyright notice.
61333 2001-08-30 Paul Eggert <eggert@twinsun.com>
61335 * lib/full-write.h: New file.
61336 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61337 * lib/full-write.c: Correct credits, as cccp.c no longer
61338 exists and anyway it was so heavily changed from the old cccp
61339 code as to be unrecognizable. Include full-write.h.
61340 (full_write) Return size_t, with short writes meaning failure.
61341 All callers changed. This fixes a bug with large buffers
61343 * lib/utime.c: Include full-write.h.
61345 2001-08-30 Paul Eggert <eggert@twinsun.com>
61347 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61348 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61349 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61350 Include if available.
61351 (<xalloc.h>): Include
61352 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61353 (verify): New macro. Use it to verify that EXCLUDE macros do not
61354 collide with FNM macros.
61355 (struct patopts): New struct.
61356 (struct exclude): Use it, as exclude patterns now come with options.
61357 (new_exclude): Support above changes.
61358 (new_exclude, add_exclude_file):
61359 Initial size must now be a power of two to simplify overflow checking.
61360 (free_exclude, fnmatch_no_wildcards): New function.
61361 (excluded_filename): No longer requires options arg, as the options
61362 are determined by add_exclude. Now returns bool, not int.
61363 (excluded_filename, add_exclude):
61364 Add support for the fancy new exclusion options.
61365 (add_exclude, add_exclude_file): Now takes int options arg.
61366 Check for arithmetic overflow when computing sizes.
61367 (add_exclude_file): xrealloc might modify errno, so don't
61368 realloc until after errno might be used.
61370 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61372 (free_exclude): New decl.
61373 (add_exclude, add_exclude_file): Now takes int options arg.
61374 (excluded_filename): No longer requires options arg, as the options
61375 are determined by add_exclude. Now returns bool, not int.
61377 2001-08-30 Paul Eggert <eggert@twinsun.com>
61379 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61381 2001-08-27 Jim Meyering <meyering@lucent.com>
61383 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61385 * lib/version-etc.c (N_): Remove definition.
61386 Revert most of last change.
61387 Instead, simply don't mark the `Copyright...' string for translation.
61388 Based on advice from Paul Eggert.
61390 * lib/strtoxmax.c: Tweak comment.
61392 2001-08-26 Jim Meyering <meyering@lucent.com>
61394 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61396 * m4/xstrtoimax.m4: New file.
61397 * m4/xstrtoumax.m4: Add comments explaining why we
61398 AC_REPLACE_FUNCS(strtol).
61400 2001-08-26 Jim Meyering <meyering@lucent.com>
61402 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61403 of copyright with `%s' so translators don't get an untranslated
61405 (COPYRIGHT_YEAR): Define.
61406 (version_etc): Use fprintf rather than fputs.
61407 Suggestion from Ulrich Drepper.
61409 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61411 * lib/strtoll.c: New file, from GNU libc.
61412 * lib/xstrtoimax.c: New file.
61414 * lib/xstrtol.h: Add xstrtoimax.
61415 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
61416 * lib/strtoimax.c: New file. Likewise, but first define
61419 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61421 * lib/strtoxmax.c: ... then renamed to this.
61423 2001-08-18 Paul Eggert <eggert@twinsun.com>
61425 * m4/inttypes.m4: Add AC_PREREQ(2.13).
61426 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61427 (jm_AC_TYPE_INTMAX_T): New macro.
61428 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61430 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61432 * m4/longlong.m4: Renamed from ulonglong.m4.
61433 * m4/inttypes.m4: Renamed from inttypes_h.m4.
61434 * m4/uintmax_t.m4: Removed.
61436 2001-08-13 Paul Eggert <eggert@twinsun.com>
61438 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61439 Port to Solaris 8, where 'sed' requires a space after the 'r'
61440 command, and where sh dislikes "$/". Clean up the spacing a bit.
61441 Redirect output to $tmp just once.
61443 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
61445 * lib/addext.c (<errno.h>): Include.
61446 (errno): Declare if not defined.
61447 (addext): Work correctly when pathconf returns -1 and leaves
61448 errno alone because there is no limit. Also, work even if
61449 pathconf returns a value greater than SIZE_MAX.
61451 2001-08-12 Jim Meyering <meyering@lucent.com>
61453 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61454 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61455 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61456 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61457 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61458 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61459 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61460 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61461 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61462 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61463 utime.m4, utimes.m4, xstrtoumax.m4:
61464 Quote the first argument in each use of AC_DEFUN.
61466 2001-08-12 Jim Meyering <meyering@lucent.com>
61468 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61469 Simply `return getcwd (NULL, 0);'.
61470 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61471 Use 1300 as initial value for length, not PATH_MAX.
61473 * lib/pathmax.h: Clean up cpp syntax.
61475 2001-08-12 Jim Meyering <meyering@lucent.com>
61477 * lib/gettimeofday.c: New file.
61478 * lib/gtod.h: New file.
61479 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61481 2001-08-05 Jim Meyering <meyering@lucent.com>
61483 * m4/jm-macros.m4: Require autoconf-2.52.
61485 2001-08-04 Jim Meyering <meyering@lucent.com>
61487 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61488 stmt, to get in sync with glibc.
61490 2001-08-03 Paul Eggert <eggert@twinsun.com>
61492 The following changes are from gettext 0.10.39 as maintained by
61495 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61496 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61497 with inverted sense. All uses changed.
61499 * lib/mbswidth.c: Don't include <limits.h>.
61500 Include <stdlib.h> and <string.h> unconditionally.
61501 (iswcntrl, mbsinit, ISCNTRL): New macros.
61502 (mbsnwidth): Use K&R style function declarations.
61503 Don't bother checking for MB_LEN_MAX == 1, since the compiler
61504 can optimize it when MB_CUR_MAX == 1.
61505 The width of control characters is zero, not 1.
61507 2001-08-03 Paul Eggert <eggert@twinsun.com>
61509 The following changes are from gettext 0.10.39 as maintained by
61510 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61512 * m4/codeset.m4: Upgrade to serial AM1.
61513 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61514 all uses changed. Quote first arg of AC_DEFUN.
61515 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61517 * m4/iconv.m4: Upgrade to serial AM2.
61518 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61519 Add --with-libconv-prefix.
61520 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
61521 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61522 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61523 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61524 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61526 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61527 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61528 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61529 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61530 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61531 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61532 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61533 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61534 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61536 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61539 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61540 not the default value.
61542 2001-06-25 Bruno Haible <haible@clisp.cons.org>
61543 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61544 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
61545 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61546 Also check for iswcntrl, used for wcwidth fallback.
61547 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61550 2001-08-03 Jim Meyering <meyering@lucent.com>
61552 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61553 as it was in the original. Reported by Paul Eggert.
61555 2001-07-16 Jim Meyering <meyering@lucent.com>
61557 * m4/gettimeofday.m4: New file.
61558 Prompted by a report from Bernhard Baehr.
61560 2001-07-15 Jim Meyering <meyering@lucent.com>
61562 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61563 stuff. Now it's in ../Makefile.cfg.
61565 2001-07-15 Jim Meyering <meyering@lucent.com>
61567 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61568 (BUILT_SOURCES): Add unlocked-io.h.
61569 (io_functions): Define.
61570 (unlocked-io.h): New rule.
61571 (DISTCLEANFILES): Add unlocked-io.h.
61572 (all-local): Depend on unlocked-io.h, to ensure it is created.
61574 * lib/unlocked-io.hin: New file
61576 * lib/regex.c: Update from glibc.
61578 2001-07-05 Jim Meyering <meyering@lucent.com>
61580 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61582 (libfetish_a_SOURCES): Put all .h files here instead.
61583 Remove a thus-exposed (better checks in automake) duplicate and
61584 two unnecessary .h files.
61586 2001-07-04 Jim Meyering <meyering@lucent.com>
61588 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
61589 that generates jm-glibc-io.m4 so that it doesn't trigger any make
61592 2001-07-02 Jim Meyering <meyering@lucent.com>
61594 The following changes were prompted by suggestions from Bruno Haible.
61596 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61598 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61599 definition of EXTRA_DIST.
61600 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61601 ensure that the generated file is created/updated whenever the list
61602 of $(unlocked_functions) is changed.
61603 (jm-glibc-io.m4): New rule.
61604 (unlocked-io.h): New rule -- currently unused.
61606 2001-06-24 Jim Meyering <meyering@lucent.com>
61608 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61609 unmatched right bracket, rather than kludging it with an extra,
61610 falsely-matching quote in a comment. Patch by Akim Demaille.
61612 2001-06-11 Jim Meyering <meyering@lucent.com>
61614 * lib/regex.c: Update from GNU libc.
61616 2001-05-27 Jim Meyering <meyering@lucent.com>
61618 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61619 Check for ut_type in struct utmp.
61621 2001-05-27 Jim Meyering <meyering@lucent.com>
61623 * lib/readutmp.h (UT_TYPE): Define.
61625 2001-05-24 Jim Meyering <meyering@lucent.com>
61627 * lib/argmatch.c: Include "quote.h".
61628 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
61629 quote function. Reported by Göran Uddeborg.
61631 2001-05-22 Jim Meyering <meyering@lucent.com>
61633 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61634 now that we use the package-supplied version unconditionally.
61635 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61637 2001-05-21 Jim Meyering <meyering@lucent.com>
61639 * m4/regex.m4: Change a couple backticks to single quotes to avoid
61640 shell syntax errors.
61642 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61644 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61646 2001-05-20 Paul Eggert <eggert@twinsun.com>
61648 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61649 Don't bother to check library strftime, since
61650 we'll be using our own my_strftime function anyway.
61651 Define my_strftime instead of strftime.
61653 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
61655 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61656 which is not yet declared.
61658 2001-05-15 Jim Meyering <meyering@lucent.com>
61660 * m4/regex.m4: Use proper quoting so brackets appear in the test
61662 Reported by, and with help from, Bruno Haible.
61664 2001-05-13 Jim Meyering <meyering@lucent.com>
61666 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61669 2001-05-11 Paul Eggert <eggert@twinsun.com>
61671 dirname code cleanup. base_name now behaves more compatibly
61672 with POSIX basename when given file names that have trailing
61673 slashes, and similarly for dir_name. Add new primitives
61674 base_len and dir_len. Put the directory-name-related decls
61677 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61678 * lib/backupfile.c (base_name): Likewise.
61679 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61680 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61681 * lib/makepath.c (strip_trailing_slashes): Likewise.
61682 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61683 ISSLASH): Likewise.
61684 * lib/rename.c (strip_trailing_slashes): Likewise.
61685 * lib/same.c (base_name): Likewise.
61686 * lib/stripslash.c (ISSLASH): Likewise.
61688 * lib/addext.c: Include <dirname.h> after size_t is defined.
61689 * lib/backupfile.c: Likewise.
61691 * lib/addext.c (addext): Use base_len to trim redundant
61692 trailing slashes instead of doing it ourselves.
61693 But do not trim the last slash if it is not redundant.
61695 * lib/backupfile.c (find_backup_file_name,
61696 max_backup_version): Use base_len instead of rolling it ourselves.
61697 Handle the case of "" and (on DOS) "C:" correctly.
61699 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61700 needed. Include <string.h>, <dirname.h>.
61701 (base_name): Allow file names ending in slashes, other than names
61702 that are all slashes. In this case, return the basename followed
61703 by the slashes. This is more general, and can be used in places
61704 where the original base_name purposely had an assertion failure.
61705 (base_len): New function.
61707 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61708 Do not include <assert.h>; no longer needed.
61710 (memrchr): Remove decl.
61711 (dir_name_r): Remove.
61712 (dir_len): Renamed from dirlen. All callers changed.
61713 Rewrite in terms of base_name, for simplicity and consistency.
61714 (dir_name): Never return NULL. All callers changed.
61715 Do not include <stdlib.h> in test program; no longer needed.
61716 return 0; is fine for test program.
61718 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61720 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61722 * lib/path-concat.c (path_concat): Use base_len to compute
61723 base length, not strlen; this means we cannot rely on memcpy
61726 * lib/same.c (STREQ): Remove.
61727 (same_name): Handle the case where the basename ends in trailing '/'.
61729 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61730 a slash was stripped. Do not strip the last slash after a
61731 file system prefix.
61733 2001-05-11 Paul Eggert <eggert@twinsun.com>
61735 * lib/Makefile.am (libfetish_a_SOURCES):
61736 Add strftime.c, since we now compile it on all hosts.
61738 * lib/strftime.c (my_strftime):
61739 Define to nstrftime if emacs, but only if my_strftime is not defined.
61740 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61741 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61742 Add one more extra argument: a nanoseconds value.
61745 (my_strftime function): Add %N format.
61746 (emacs_strftimeu): Renamed from emacs_strftime,
61747 with extra ut argument.
61749 2001-05-09 Paul Eggert <eggert@twinsun.com>
61751 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61753 2001-04-21 Jim Meyering <meyering@lucent.com>
61755 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61758 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61760 * m4/ftruncate.m4: Check for chsize.
61761 Link with ftruncate.o unconditionally if ftruncate is missing.
61762 This was required when cross-compiling to i586-mingw32msvc.
61764 2001-04-08 Jim Meyering <meyering@lucent.com>
61766 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61767 recomputed; that's necessary when the offset spans a DST transition.
61768 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
61770 2001-04-02 Jim Meyering <meyering@lucent.com>
61772 * lib/regex.h, regex.c: Update from GNU libc.
61774 2001-03-24 Jim Meyering <meyering@lucent.com>
61776 * m4/jm-macros.m4: Require autoconf-2.49d.
61778 2001-03-20 Bruno Haible <haible@clisp.cons.org>
61780 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61782 2001-03-19 Paul Eggert <eggert@twinsun.com>
61784 * lib/version-etc.c (version_etc_copyright): Update to 2001.
61786 2001-03-17 Jim Meyering <meyering@lucent.com>
61788 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61789 now that the version in autoconf is equivalent.
61790 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61792 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61793 Suggestion from Akim Demaille.
61795 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61796 (jm_PREREQ_TEMPNAME): New function.
61798 2001-03-16 Paul Eggert <eggert@twinsun.com>
61800 * lib/tempname.c (uint64_t): Define to uintmax_t if
61801 not defined, and if UINT64_MAX is not defined.
61802 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61803 Reported by John David Anglin.
61805 2001-03-15 Bruno Haible <haible@clisp.cons.org>
61807 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61808 resolve alias if codeset is empty.
61809 * lib/config.charset (BeOS): Use wildcard syntax.
61811 2001-03-13 Jim Meyering <meyering@lucent.com>
61813 * lib/path-concat.c (path_concat)
61814 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61815 concatenating e.g., `C:' and `foo'.
61818 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61820 * lib/localcharset.c (locale_charset): Don't use
61821 setlocale(LC_CTYPE,NULL). Don't return NULL.
61822 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61824 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61826 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61827 support for DOS/DJGPP.
61829 2001-03-01 Paul Eggert <eggert@twinsun.com>
61831 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61832 lacks mkstemp. Compile our own tempname.c if we compile our own
61833 mkstemp.c, as mkstemp relies on tempname.
61835 2001-03-01 Jim Meyering <meyering@lucent.com>
61837 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61838 AH_VERBATIM really does output its argument verbatim.
61840 2001-02-28 Paul Eggert <eggert@twinsun.com>
61842 * lib/Makefile.am (libfetish_a_SOURCES):
61843 Add dup-safer.c, fopen-safer.c.
61844 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61846 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61847 * lib/unistd-safer.h: New files.
61849 2001-02-25 Paul Eggert <eggert@twinsun.com>
61851 The mkstemp replacement is taken from glibc 2.2.2, with some
61852 portability fixes for use outside glibc, as follows:
61854 * lib/tempname.c (struct_stat64): New macro.
61855 (direxists, __gen_tempname): Use it.
61856 This avoids a portability problem with Solaris 8.
61858 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61859 (<stddef.h>, <stdint.h>, <string.h>):
61860 Include only if STDC_HEADERS || _LIBC.
61861 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61862 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61863 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61864 (__set_errno): Define this macro if <errno.h> doesn't.
61865 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61866 Define these macros if <stdio.h> doesn't.
61867 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61868 Define these macros if <sys/stat.h>
61869 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61870 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61871 __xstat64): Define if not _LIBC.
61872 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61873 (__gen_tempname): Invoke gettimeofday only if
61874 HAVE_GETTIMEOFDAY || _LIBC;
61875 otherwise, fall back on plain "time".
61876 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61878 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61880 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61882 2001-02-18 Paul Eggert <eggert@twinsun.com>
61884 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61886 2001-02-17 Paul Eggert <eggert@twinsun.com>
61888 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61889 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61890 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61891 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61893 2001-02-17 Paul Eggert <eggert@twinsun.com>
61895 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61896 Remove workaround macros for hosts that have mbrtowc but not
61897 mbstate_t, as we now insist on proper declarations for both
61898 before using mbrtowc.
61900 2001-02-17 Jim Meyering <meyering@lucent.com>
61902 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61903 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61904 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61907 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61908 rather than AC_CACHE_VAL.
61910 2001-02-17 Jim Meyering <meyering@lucent.com>
61912 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
61913 around included file name.
61915 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61917 * lib/strftime.c: Update from GNU libc (the only changes were to
61920 2001-02-17 Jim Meyering <meyering@lucent.com>
61922 * lib/regex.c: Update from libc.
61924 2001-02-17 Bruno Haible <haible@clisp.cons.org>
61926 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61929 2001-02-16 Paul Eggert <eggert@twinsun.com>
61931 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61932 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
61933 Reported by Mark Hounschell via Paul Eggert.
61935 2001-02-07 Jim Meyering <meyering@lucent.com>
61937 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61939 2001-02-05 Jim Meyering <meyering@lucent.com>
61941 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61942 it includes the patch required for `large file' support with at least
61943 HP-UX's 10.20 /bin/cc.
61945 2001-02-03 Jim Meyering <meyering@lucent.com>
61947 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61948 AS_IF, now that it works once again (mysteriously).
61949 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61951 2001-01-30 Jim Meyering <meyering@lucent.com>
61953 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61954 * m4/chown.m4: Rename conftestchown to conftest.chown.
61955 * m4/rename.m4: s/conftestdir/conftest.d1/ and
61956 s/conftestdir2/conftest.d2/.
61957 * m4/utimes.m4: s/conftestdata/conftest.data/
61958 Inspired by Pavel Roskin's change in autoconf.
61960 2001-01-30 Bruno Haible <haible@clisp.cons.org>
61962 * lib/config.charset: Update for FreeBSD 4.2.
61964 2001-01-27 Jim Meyering <meyering@lucent.com>
61966 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61968 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61970 2001-01-26 Jim Meyering <meyering@lucent.com>
61972 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61973 quotearg.c includes it.
61975 2001-01-26 Jim Meyering <meyering@lucent.com>
61977 * lib/quotearg.c: Include stddef.h.
61978 * lib/quote.c: Include stddef.h.
61979 Reported by Axel Kittenberger.
61981 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61982 line in double quotes so that it evokes a better diagnostic.
61983 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61984 Reported by Axel Kittenberger.
61986 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
61988 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61989 as if it was a `charset'.
61991 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61993 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61996 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61998 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61999 to avoid a warning. Add back 'const' to inptr.
62001 2001-01-20 Jim Meyering <meyering@lucent.com>
62003 Be sure that headers are checked before used in code compiled
62004 for the type checks.
62005 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62006 In place of that, invoke jm_CHECK_ALL_TYPES.
62007 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62008 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62009 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62010 The check for ssize_t was mistakenly run before the test for unistd.h.
62012 The configure-time check for stdbool.h was missing.
62013 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62014 (jm_PREREQ_HASH): New function.
62016 2001-01-17 Jim Meyering <meyering@lucent.com>
62018 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62019 for autoconf-2.49c.
62020 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62022 2001-01-16 Jim Meyering <meyering@lucent.com>
62024 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62027 2001-01-14 Jim Meyering <meyering@lucent.com>
62029 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62030 foo and bar. Create conftestdir/ in the script, not in the C code.
62031 Remove directories in the script, not in the C code.
62032 Remove conftestdir{,2} before trying to create the directory.
62033 Make the entire configure script fail if the mkdir fails.
62035 2001-01-14 Jim Meyering <meyering@lucent.com>
62037 * lib/rename.c: New file. From Volker Borchert.
62038 Include stdlib.h, string.h or strings.h, and xalloc.h.
62039 Use strip_trailing_slashes rather than open-coding it.
62041 2001-01-03 Paul Eggert <eggert@twinsun.com>
62043 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62045 2001-01-03 Jim Meyering <meyering@lucent.com>
62047 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62048 of local `inptr' to avoid warning with some system declarations of
62051 2001-01-02 Volker Borchert <bt@teknon.de>
62053 * m4/rename.m4: New file.
62054 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62056 2001-01-01 Jim Meyering <meyering@lucent.com>
62058 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62059 even on systems with utmpx.h. It's necessary for the declaration of
62060 utmp's ut_user member. Reported by Andreas Jaeger.
62062 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62063 available. They are required for the declarations of getgrgid and
62065 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62066 Reported by Andreas Jaeger.
62068 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
62070 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62071 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62072 so `make install' also works in VPATH builds.
62074 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
62076 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62077 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62078 can be used in subdirectories.
62080 2000-12-29 Paul Eggert <eggert@twinsun.com>
62082 * lib/modechange.c: Do not assume that mode_t uses the
62083 traditional octal encoding. E.g. "chmod 1 FOO" should set
62084 the other-execute bit of FOO even if S_IXOTH != 1.
62086 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62087 WOTH, XOTH, ALLM): New macros.
62088 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62089 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62091 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62092 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62094 No need to use uintmax_t; unsigned long is long enough.
62095 Don't bother to get suffix since we don't use it.
62097 2000-12-26 Jim Meyering <meyering@lucent.com>
62099 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62100 better with autoheader.
62102 2000-12-24 Jim Meyering <meyering@lucent.com>
62104 * lib/hash.c (is_prime): Return explicit boolean values.
62105 (hash_get_first): Return NULL to appease Irix5.6's 89.
62106 Reported by Nelson Beebe.
62108 2000-12-19 Bruno Haible <haible@clisp.cons.org>
62110 * lib/localcharset.c (locale_charset): Add support for Win32.
62112 2000-12-18 Paul Eggert <eggert@twinsun.com>
62114 * lib/physmem.h, lib/physmem.c: New files.
62116 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62117 (noinst_HEADERS): Add physmem.h.
62119 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62120 't' for compatibility with Solaris 8 sort.
62122 2000-12-18 Bruno Haible <haible@clisp.cons.org>
62124 * lib/config.charset: Add support for BeOS.
62126 2000-12-17 Jim Meyering <meyering@lucent.com>
62128 * m4/dos.m4 (jm_AC_DOS): New file and macro.
62129 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62131 2000-12-16 Jim Meyering <meyering@lucent.com>
62133 This bug had a serious impact on chown: `chown N:M FILE' (for integer
62134 N and M) would have treated it like `chown N:N FILE'.
62136 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62138 2000-12-16 Jim Meyering <meyering@lucent.com>
62140 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62141 SHELLS_FILE to a file name that's useful on djgpp systems.
62143 (ADDITIONAL_DEFAULT_SHELLS): Define.
62144 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62145 Based mostly on a patch from Prashant TR.
62147 2000-12-16 Bruno Haible <haible@clisp.cons.org>
62149 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62150 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62151 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62153 2000-12-08 Andreas Schwab <schwab@suse.de>
62155 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62156 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62158 2000-12-07 Jim Meyering <meyering@lucent.com>
62160 * lib/stripslash.c (ISSLASH): Define.
62161 (strip_trailing_slashes): Use ISSLASH rather than comparing against
62165 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62166 (dir_name_r): Declare this function as static.
62167 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62168 manifest itself on a name containing a mix of slashes and
62170 Make this function work with names starting with a DOS-style
62171 drive letter and colon prefix.
62172 (dir_name): Append `.' if necessary.
62173 Based mostly on patches from Prashant TR and Eli Zaretskii.
62175 * lib/dirname.h (dir_name_r): Remove prototype.
62177 2000-12-06 Paul Eggert <eggert@twinsun.com>
62179 * m4/off_t-format.m4: Remove this file.
62180 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62182 2000-12-06 Jim Meyering <meyering@lucent.com>
62184 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62185 replacement strtoull, we may well need the replacement strtoul, too.
62186 Check for declarations of strtoul and strtoull.
62187 Check for strtol. Mainly as a cue to cause automake to include
62188 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62189 Check for limits.h -- strtol.c needs it.
62191 2000-12-05 Jim Meyering <meyering@lucent.com>
62193 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62195 2000-12-04 Jim Meyering <meyering@lucent.com>
62197 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62198 Also include memory.h, stdlib.h, unistd.h if appropriate.
62199 Reported by Andreas Jaeger (conflicting declaration of malloc).
62201 2000-12-02 Jim Meyering <meyering@lucent.com>
62203 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62204 * m4/jm-macros.m4 (jm_MACROS): require it.
62206 2000-12-02 Jim Meyering <meyering@lucent.com>
62208 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62210 2000-12-01 Paul Eggert <eggert@twinsun.com>
62212 * lib/memrchr.c: Include <config.h> before any system include file.
62214 2000-11-30 Jim Meyering <meyering@lucent.com>
62216 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62218 2000-11-30 Jim Meyering <meyering@lucent.com>
62220 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62222 2000-11-29 Paul Eggert <eggert@twinsun.com>
62224 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62226 2000-11-26 Jim Meyering <meyering@lucent.com>
62228 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
62230 2000-11-22 Paul Eggert <eggert@twinsun.com>
62232 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62233 size of (size_t) -1; it's not portable.
62235 2000-11-17 Jim Meyering <meyering@lucent.com>
62237 * lib/strstr.c: Update from GNU libc.
62239 2000-11-17 Akim Demaille <akim@epita.fr>
62241 * lib/obstack.h: Formatting changes.
62242 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62243 prevent type checking.
62244 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62245 cast the value to (void *): assigning a `foo *' to a `void *'
62247 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62249 2000-11-16 Jim Meyering <meyering@lucent.com>
62251 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62253 2000-11-11 Jim Meyering <meyering@lucent.com>
62255 * lib/error.c: Add a couple #includes, merging from GNU libc version.
62257 2000-11-10 Jim Meyering <meyering@lucent.com>
62259 * lib/obstack.h: Update from GNU libc.
62260 * lib/obstack.c: Likewise.
62262 2000-11-08 Bruno Haible <haible@clisp.cons.org>
62264 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62266 2000-11-06 Paul Eggert <eggert@twinsun.com>
62268 * lib/getusershell.c (setusershell): Use rewind rather than
62269 fseek/fseeko, to avoid configuration hassles with fseeko.
62270 Don't bother opening SHELLS_FILE if shellstream is NULL;
62271 it's not necessary.
62273 2000-11-05 Jim Meyering <meyering@lucent.com>
62275 * lib/makepath.h (make_dir): Declare.
62276 * lib/makepath.c (make_dir): Remove `static' attribute.
62279 2000-11-04 Jim Meyering <meyering@lucent.com>
62281 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62283 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
62285 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
62286 last one in a bucket, advance to the next bucket.
62288 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
62290 * lib/fnmatch.c: Do not comment out all the code if we are using
62291 the GNU C library, because in some cases we are replacing buggy
62292 code in the GNU C library itself.
62294 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
62296 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62297 (regex_compile): Catch bogus \(\1\).
62299 2000-10-30 Paul Eggert <eggert@twinsun.com>
62301 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62302 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62303 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62305 2000-10-30 Paul Eggert <eggert@twinsun.com>
62307 * lib/error.h, getline.h, modechange.h:
62308 Remove "2000" from Copyright line, as the file hasn't been
62309 changed this year other than in the copyright notice.
62311 * lib/xalloc.h: Add "2000" to Copyright line, as this file
62312 was changed this year.
62314 2000-10-29 Jim Meyering <meyering@lucent.com>
62316 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62318 * m4/ls-mntd-fs.m4: Likewise
62320 2000-10-29 Jim Meyering <meyering@lucent.com>
62322 * lib/xstat.in: Fix grammar in comment.
62324 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
62326 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62327 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62328 doesn't define __restrict_arr.
62330 2000-10-28 Jim Meyering <meyering@lucent.com>
62332 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62333 (jm_PREREQ_MEMCHR): New function.
62335 2000-10-28 Jim Meyering <meyering@lucent.com>
62337 * lib/memchr.c: Update from libc.
62338 Adjust for portability:
62339 [HAVE_STDLIB_H]: Include stdlib.h.
62340 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62341 Undef __memchr, too.
62342 [!weak_alias]: Define __memchr to memchr.
62344 * lib/regex.c: Update from libc.
62345 * lib/regex.h: Likewise.
62346 * lib/getopt1.c: Likewise.
62347 * lib/memcmp.c: Likewise.
62349 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62350 Avoid using fseek, when possible -- it's broken by design.
62351 Patch by Ulrich Drepper.
62353 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
62355 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62356 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62357 Giving in to popular pressure to shut up the compiler with casts.
62359 2000-10-26 Jim Meyering <meyering@lucent.com>
62361 * lib/strftime.c: Update from libc.
62363 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
62365 * regex.c: More `unsigned char' -> `re_char' changes.
62366 Also change several `int' into `re_wchar_t'.
62367 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62368 (PUSH_FAILURE_POINTER): Don't cast any more.
62369 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62370 We want GCC to complain, since this piece of code makes
62371 re_match non-reentrant, which *should* be fixed.
62372 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62373 (EXTEND_BUFFER): Use RETALLOC.
62374 (SET_LIST_BIT): Don't cast.
62375 (re_wchar_t): New type.
62376 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62377 that those two functions will always properly return.
62378 (IMMEDIATE_QUIT_CHECK): Cast to void.
62379 (analyse_first): Use recursion rather than an explicit stack.
62380 (re_compile_fastmap): Can't fail anymore.
62381 (re_search_2): Don't check re_compile_fastmap for failure.
62382 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62383 Now also sets the new value (passed in a new argument).
62384 (re_match_2_internal): Use it.
62385 Also, use a new var `reg' of type size_t when looping through regs
62386 rather than reuse the inappropriate `mcnt'.
62388 2000-10-25 Jim Meyering <meyering@lucent.com>
62390 * lib/obstack.c: Update from libc.
62392 2000-10-24 Kenichi Handa <handa@etl.go.jp>
62394 * regex.c (regex_compile): Change the way of handling a range from
62395 a char less than 256 to a char not less than 256.
62397 2000-10-24 Andrew Innes <andrewi@gnu.org>
62399 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62401 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62402 so that re_search functions only quit when callers expect them to.
62404 2000-10-23 Jim Meyering <meyering@lucent.com>
62406 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62407 wrong. That set_locale call must not have any side effects.
62410 2000-10-22 Jim Meyering <meyering@lucent.com>
62412 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62413 [CYCLIC]: Remove now-unused definition.
62415 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62416 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62417 Suggestion from Ulrich Drepper.
62419 2000-10-21 Jim Meyering <meyering@lucent.com>
62421 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62422 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62423 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62425 2000-10-21 Jim Meyering <meyering@lucent.com>
62427 * lib/dirname.c (memrchr): Declare if necessary.
62428 (dir_name): Remove the restriction that there be no
62429 trailing slashes. Now, this code skips past them, effectively
62431 [TEST_DIRNAME] (main): New unit tests.
62433 * lib/memrchr.c: New file from GNU libc.
62434 Undef __memrchr, too.
62435 [!weak_alias]: Define __memrchr to memrchr.
62436 Guard weak_alias use with `#ifdef weak_alias'.
62438 2000-10-21 Jim Meyering <meyering@lucent.com>
62440 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62441 (dir_name): Use dir_name_r.
62442 * lib/dirname.h (dir_name_r): Declare it.
62444 2000-10-17 Jim Meyering <meyering@lucent.com>
62446 * lib/quote.h (PARAMS): Define and use.
62447 Reported by Akim Demaille.
62449 * lib/getopt.c: Update from libc.
62451 2000-10-16 Jim Meyering <meyering@lucent.com>
62453 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62457 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
62459 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62461 2000-09-25 Jim Meyering <meyering@lucent.com>
62463 * lib/md5.h (rol): Define (from GnuPG).
62465 * lib/sha.c: Give credit (GnuPG) where due.
62466 (M): Use rol rather than open-coding it.
62467 Add a FIXME comment.
62469 2000-09-21 Jim Meyering <meyering@lucent.com>
62471 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62472 Reported by Michael Stone.
62474 2000-09-20 Jim Meyering <meyering@lucent.com>
62476 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62477 (noinst_HEADERS): Add sha.h.
62478 Based on code from Scott G. Miller and from GnuPG.
62480 2000-09-18 Jim Meyering <meyering@lucent.com>
62482 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62483 LIBS. Otherwise, everyone ends up linking with -lelf for some
62485 Reported by Mike Stone.
62487 2000-09-15 Jim Meyering <meyering@lucent.com>
62489 * lib/regex.c: Update from libc.
62491 2000-09-10 Jim Meyering <meyering@lucent.com>
62493 * lib/getopt.c (_getopt_internal): Update from glibc.
62495 2000-09-09 Jim Meyering <meyering@lucent.com>
62497 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62498 think it should be used as a general replacement for isascii.
62499 * lib/fnmatch.c: Likewise.
62500 * lib/mbswidth.c: Likewise
62501 * lib/regex.c: Likewise.
62504 * lib/userspec.c: Include sys/param.h and limits.h.
62506 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62507 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62508 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62509 UID, GID. Check range.
62511 2000-09-06 Jim Meyering <meyering@lucent.com>
62513 * lib/getopt.c (_getopt_internal): Update from glibc.
62515 2000-08-30 Jim Meyering <meyering@lucent.com>
62517 * lib/strftime.c: Merge in changes from GNU libc.
62519 2000-08-26 Jim Meyering <meyering@lucent.com>
62521 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62522 * m4/fpending.m4: New file.
62524 2000-08-26 Jim Meyering <meyering@lucent.com>
62526 * lib/closeout.c: Include "__fpending.h".
62527 (close_stdout_status): Return right away if there's nothing to flush.
62529 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62530 * lib/__fpending.c: New file.
62531 * lib/__fpending.h: New file.
62533 2000-08-20 Jim Meyering <meyering@lucent.com>
62535 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62536 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
62537 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
62539 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
62541 Improve fileutils installation on systems where running
62542 programs (like install) can't be unlinked.
62543 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62544 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62546 2000-08-07 Paul Eggert <eggert@twinsun.com>
62548 Standardize on "memory exhausted" instead of "Memory exhausted"
62549 or "virtual memory exhausted".
62550 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62551 "virtual memory exhausted".
62552 * lib/same.c (same_name): Invoke xalloc_die instead of printing
62554 * lib/userspec.c (parse_user_spec): Likewise.
62555 * lib/bumpalloc.h: comment fix
62556 * lib/same.c, userspec.c: Include xalloc.h.
62558 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62559 not char *const and pointing to a constant array.
62560 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62561 (xrealloc): Comment fix.
62563 * lib/userspec.c (parse_user_spec):
62564 Don't translate a message until just before returning,
62565 to avoid unnecessary translation.
62567 2000-08-07 Jim Meyering <meyering@lucent.com>
62569 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62570 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62571 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62572 getgroups.c, gethostname.c, getopt.h, group-member.c,
62573 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62574 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62575 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62576 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62577 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62578 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62579 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62580 yesno.c: Back out Copyright date changes for each file with no change
62581 this year. This eases coordination with other programs using the same
62582 source code modules. From Paul Eggert.
62584 2000-08-06 Paul Eggert <eggert@twinsun.com>
62586 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62587 not char, for compatibility with glibc 2.1.3 strftime.c.
62589 2000-08-03 Greg McGary <greg@mcgary.org>
62591 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62592 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62593 (EXTEND_BUFFER): Use them.
62595 2000-08-01 Jim Meyering <meyering@lucent.com>
62597 * lib/dirname.c (ISSLASH): Define.
62598 (BACKSLASH_IS_PATH_SEPARATOR): Define.
62599 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62600 both `\' and `/' may be use as path separators.
62601 Based on a patch from Prashant TR.
62603 2000-07-31 Paul Eggert <eggert@twinsun.com>
62605 * lib/quotearg.c (quotearg_n_options): Don't make the initial
62606 slot vector a constant, since it might get modified.
62608 2000-07-31 Jim Meyering <meyering@lucent.com>
62610 * lib/xmalloc.c: Use `virtual memory exhausted', not
62611 `Memory exhausted'.
62612 * lib/obstack.c (print_and_abort): Likewise.
62614 2000-07-30 Paul Eggert <eggert@twinsun.com>
62616 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62617 buffer, so that the caller can always quote one small
62618 component of a "memory exhausted" message in slot 0.
62619 From a suggestion by Jim Meyering.
62621 2000-07-30 Jim Meyering <meyering@lucent.com>
62623 * lib/makepath.c (make_path): Quote the other instance, too.
62625 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62626 (STATIC_BUF_SIZE): Define.
62627 (quotearg_n_options): Use only statically allocated storage when
62628 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62629 than STATIC_BUF_SIZE.
62631 2000-07-29 Jim Meyering <meyering@lucent.com>
62633 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62634 * lib/dirname.c (dir_name): Likewise.
62636 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62639 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62640 (dir_name): Assert that there are no trailing slashes.
62642 2000-07-29 Bruno Haible <haible@clisp.cons.org>
62644 * lib/mbswidth.h (mbswidth): Add a flags argument.
62645 (mbswidth): New declaration.
62646 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62647 * lib/mbswidth.c (mbswidth): Add a flags argument.
62648 (mbsnwidth): New function.
62650 2000-07-24 Jim Meyering <meyering@lucent.com>
62652 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
62654 2000-07-23 Paul Eggert <eggert@twinsun.com>
62656 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62658 2000-07-23 Paul Eggert <eggert@twinsun.com>
62660 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62661 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62662 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62663 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62664 invoke multibyte primitives.
62666 2000-07-23 Paul Eggert <eggert@twinsun.com>
62669 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62670 so that mbstate_t is always defined.
62672 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62673 be 1 in at least one GCC installation, and this configuration
62674 error is likely to be common. Ignoring MB_LEN_MAX hurts
62675 performance on hosts that have mbrtowc but have only unibyte
62676 locales, but I assume these hosts are rare.
62678 2000-07-23 Paul Eggert <eggert@twinsun.com>
62680 * lib/mbswidth.c (_XOPEN_SOURCE):
62681 Don't define; this causes problems on Solaris 7.
62682 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62684 2000-07-23 Jim Meyering <meyering@lucent.com>
62686 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62687 too: getgrgid, getpwuid, getuid.
62689 2000-07-23 Jim Meyering <meyering@lucent.com>
62691 * lib/basename.c (base_name): Add an assertion.
62693 2000-07-23 Bruno Haible <haible@clisp.cons.org>
62695 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62696 shadow its mbsinit function.
62698 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62700 * lib/mbswidth.h: New file.
62701 * lib/mbswidth.c: New file.
62702 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62703 (noinst_HEADERS): Add mbswidth.h.
62705 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62707 * lib/config.charset: Add support for FreeBSD. Improve support for
62710 2000-07-16 Bruno Haible <haible@clisp.cons.org>
62712 * m4/mbswidth.m4: New file.
62713 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62715 2000-07-15 Jim Meyering <meyering@lucent.com>
62717 * lib/makepath.c: Include quote.h.
62718 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62719 corresponding argument in a `quote (...)' call.
62720 Give better diagnostics.
62722 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62723 (noinst_HEADERS): Add quote.h.
62725 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
62726 from tar's src/misc.c.
62727 * lib/quote.h: New file. Prototypes for same.
62729 2000-07-14 Paul Eggert <eggert@twinsun.com>
62731 From a suggestion by Bruno Haible.
62732 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62733 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62734 to decide whether to define the BeOS workaround macro;
62735 this adjusts to the change to AC_MBSTATE_T.
62737 2000-07-14 Jim Meyering <meyering@lucent.com>
62739 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62740 jm_AC_TYPE_UINTMAX_T.
62742 2000-07-13 Paul Eggert <eggert@twinsun.com>
62744 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62746 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62747 quotearg_buffer_restyled): Add support for
62748 clocale_quoting_style. Undo previous change to
62749 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62750 and "{RIGHT QUOTATION MARK}" msgids.
62752 2000-07-10 Paul Eggert <eggert@twinsun.com>
62754 From a suggestion by Bruno Haible.
62755 * m4/mbstate_t.m4 (AC_MBSTATE_T):
62756 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
62757 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62758 and mbstate_t, to a single-part test that simply defines mbstate_t.
62759 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62760 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62762 2000-07-10 Jim Meyering <meyering@lucent.com>
62764 * m4/strerror_r.m4: Mirror the correction made in autoconf.
62766 * m4/gnu-source.m4: Output to confdefs.h directly.
62767 Suggestion from Akim Demaille.
62769 2000-07-09 Paul Eggert <eggert@twinsun.com>
62771 The old behavior of quoting `like this' doesn't look good with
62772 newer, ISO-style fonts. See:
62773 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62775 Instead, quote "like this" by default. Let the translator
62776 tailor the locale-specific quoting behavior by providing
62777 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62779 * lib/quotearg.c (N_): New macro.
62780 (gettext_default): New function.
62781 (quotearg_buffer_restyled): Use
62782 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62783 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62785 2000-07-09 Jim Meyering <meyering@lucent.com>
62787 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62788 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
62790 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62791 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62793 2000-07-09 Jim Meyering <meyering@lucent.com>
62795 * lib/Most files: Update copyright dates to include 2000.
62797 2000-07-08 Jim Meyering <meyering@lucent.com>
62799 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62801 (xgethostname): Remove now-unnecessary #ifdef.
62802 Move declaration of `err' into loop where it's used.
62804 2000-07-05 Paul Eggert <eggert@twinsun.com>
62805 and Bruno Haible <haible@clisp.cons.org>
62807 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62808 only if the test for an object-type mbstate_t fails. This
62809 prevents us from mistakenly reporting that mbstate_t is a
62810 system object type after we "#define mbstate_t int" to work
62813 2000-07-05 Paul Eggert <eggert@twinsun.com>
62814 and Bruno Haible <haible@clisp.cons.org>
62816 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62818 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62820 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62822 Include <ctype.h> for use of isalpha.
62824 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62826 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62827 by allocating a larger buffer. Test the gethostname return value for
62828 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
62829 returns an error and ENAMETOOLONG isn't defined.
62831 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62833 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62836 2000-07-04 Jim Meyering <meyering@lucent.com>
62838 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62839 of the deprecated AC_CHECKING.
62841 2000-07-04 Jim Meyering <meyering@lucent.com>
62843 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62844 Reported by Bruno Haible.
62846 2000-07-04 Jim Meyering <meyering@lucent.com>
62848 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62849 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
62852 2000-07-03 Paul Eggert <eggert@twinsun.com>
62854 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62855 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62857 2000-07-03 Paul Eggert <eggert@twinsun.com>
62858 and Bruno Haible <haible@clisp.cons.org>
62860 * lib/quotearg.c (mbrtowc):
62861 Assign to *pwc, and return 1 only if result is nonzero.
62862 (iswprint): Use ISPRINT when substituting our own mbrtowc.
62864 2000-07-03 Jim Meyering <meyering@lucent.com>
62866 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62868 2000-07-03 Jim Meyering <meyering@lucent.com>
62870 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62871 This is necessary to get a definition of e.g., UTMP_FILE on
62875 2000-07-02 Jim Meyering <meyering@lucent.com>
62877 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62879 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62880 AC_LIBOBJ(function_name).
62881 * m4/chown.m4: Likewise.
62882 * m4/fnmatch.m4: Likewise.
62883 * m4/ftruncate.m4: Likewise.
62884 * m4/getgroups.m4: Likewise.
62885 * m4/getline.m4: Likewise.
62886 * m4/group-member.m4: Likewise.
62887 * m4/jm-macros.m4: Likewise.
62888 * m4/lstat.m4: Likewise.
62889 * m4/malloc.m4: Likewise.
62890 * m4/memcmp.m4: Likewise.
62891 * m4/nanosleep.m4: Likewise.
62892 * m4/putenv.m4: Likewise.
62893 * m4/realloc.m4: Likewise.
62894 * m4/regex.m4: Likewise.
62895 * m4/stat.m4: Likewise.
62896 * m4/strftime.m4: Likewise.
62898 2000-07-02 Jim Meyering <meyering@lucent.com>
62900 * lib/quotearg.c (mbstate_t): Don't define here.
62902 2000-07-02 Jim Meyering <meyering@lucent.com>
62904 * lib/nanosleep.c (SIGCONT): Define if not already defined.
62906 2000-07-01 Jim Meyering <meyering@lucent.com>
62908 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62910 2000-07-01 Jim Meyering <meyering@lucent.com>
62912 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62915 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62917 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62918 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62920 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62922 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62923 per change in ../m4/ls-mntd-fs.m4.
62924 (read_filesystem_list): Ignore symbolic links.
62926 2000-06-29 Jim Meyering <meyering@lucent.com>
62928 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62929 for declaration of strcmp.
62931 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62933 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62934 Avoid warning by casting result to `char *' to remove `const'.
62936 2000-06-28 Jim Meyering <meyering@lucent.com>
62938 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
62939 included by quotearg.c, for which we perform this test. From
62942 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62944 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62945 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62946 <utmpx.h> exists, put readutmp.o into LIBOBJS.
62948 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62950 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62952 2000-06-26 Paul Eggert <eggert@twinsun.com>
62954 savedir now sets errno on failure and invokes xmalloc to get memory.
62955 Fix a couple of other minor bugs while we're at it.
62957 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62958 (NAMLEN): Remove macro.
62959 (malloc, realloc): Remove decls.
62960 (stpcpy): Likewise.
62961 ("xalloc.h"): Include.
62962 (NAME_SIZE_DEFAULT): New macro.
62963 (savedir): Use xmalloc / xrealloc to allocate memory.
62964 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62965 Skip "" directory entries.
62966 Use strlen to calculate directory entry length, since the old method
62967 is rarely used these days and isn't worth supporting.
62968 Don't use a pointer after freeing it.
62969 Check for integer overflow when calculating allocation size.
62970 Use memcpy to copy entries, instead of stpcpy.
62971 Set errno properly when returning NULL.
62972 Check for readdir error.
62974 2000-06-26 Jim Meyering <meyering@lucent.com>
62976 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62978 2000-06-25 Jim Meyering <meyering@lucent.com>
62980 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62981 Linux header bug when _XOPEN_SOURCE is defined to 500.
62983 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62985 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62988 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62990 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62992 Don't include <stdlib.h>. Don't declare malloc, realloc.
62994 2000-06-24 Jim Meyering <meyering@lucent.com>
62996 * m4/strerror_r.m4: Revive this file -- to try out an experimental
62997 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62998 for which strerror does return char*, but which lacks a conveniently
62999 accessible declaration of the function. If the compile-test says
63000 strerror_r doesn't work, then resort to a `run'-test that works on
63001 BeOS and segfaults on DEC Unix.
63003 2000-06-24 Jim Meyering <meyering@lucent.com>
63005 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63007 2000-06-23 Paul Eggert <eggert@twinsun.com>
63009 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63010 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
63012 2000-06-23 Paul Eggert <eggert@twinsun.com>
63014 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63015 (mbrtowc, mbstate_t): Define substitutes if
63016 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63017 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63018 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63020 2000-06-23 Jim Meyering <meyering@lucent.com>
63022 * m4/afs.m4: Add missing AC_MSG_RESULT.
63023 Reported by Bruno Haible.
63025 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63026 Suggestion from Bruno Haible.
63028 2000-06-23 Jim Meyering <meyering@lucent.com>
63030 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
63032 2000-06-21 Jim Meyering <meyering@lucent.com>
63034 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63036 2000-06-21 Jim Meyering <meyering@lucent.com>
63038 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63039 (noinst_HEADERS): Add getstr.h.
63041 * lib/getline.c (getstr): Move into a separate file.
63042 * lib/getstr.c (getstr): New file, extracted from getline.c, with
63043 the following changes: new parameter, delim2; both delim[12]
63044 parameters have type `int', not `char'. The latter would lose
63045 with 8-bit delimiters.
63046 * lib/getstr.h: New file.
63048 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63050 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63051 than 1024, return a memory chunk of least possible size, instead
63052 of size PATH_MAX + 2. In the loop, increment the size proportionally.
63053 Use free/xmalloc instead of xrealloc to avoid copying for very long
63056 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63058 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63061 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63063 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63064 address, not strdup. Include <stdlib.h> and don't declare free().
63066 2000-06-19 Jim Meyering <meyering@lucent.com>
63068 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63070 2000-06-18 Jim Meyering <meyering@lucent.com>
63072 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63074 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63075 `checking whether...' message to be consistent with that of the
63078 2000-06-18 Jim Meyering <meyering@lucent.com>
63080 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63081 Besides, these days every porting target provides a mkdir function.
63083 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63084 needed. (this snippet comes from src/system.h).
63086 2000-06-16 Bruno Haible <haible@clisp.cons.org>
63088 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63090 2000-06-15 Paul Eggert <eggert@twinsun.com>
63092 * lib/human.c (adjust_value): New function.
63093 (human_readable_inexact): Apply rounding style even when
63094 printing approximate values.
63096 2000-06-14 Paul Eggert <eggert@twinsun.com>
63098 * lib/human.c (human_readable_inexact): Allow an input block
63099 size that is not a multiple of the output block size, and vice versa.
63100 Reported by Piergiorgio Sartor.
63102 2000-06-14 Paul Eggert <eggert@twinsun.com>
63104 * lib/getdate.y (get_date): Apply relative times after time
63105 zone indicator, not before. Reported by Todd A. Jacobs.
63107 2000-06-13 Jim Meyering <meyering@lucent.com>
63109 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63111 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63113 2000-06-12 Paul Eggert <eggert@twinsun.com>
63115 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63117 2000-06-12 Jim Meyering <meyering@lucent.com>
63119 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63120 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63122 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63123 the optional argument, `lib'.
63125 2000-06-08 Jim Meyering <meyering@lucent.com>
63127 * m4/largefile.m4: Remove file (now that it's part of autoconf).
63129 2000-06-04 Paul Eggert <eggert@twinsun.com>
63131 Rewrite largefile configuration so that we don't need to run
63132 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
63133 AC_CANONICAL_HOST in configure.in -- jmm]
63135 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63136 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63137 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63138 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63139 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63141 Instead of inspecting the output of getconf, try to compile the
63142 test program without and with the macro definition.
63143 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63144 for getconf. Instead, check for the needed flags by compiling
63147 2000-06-04 Paul Eggert <eggert@twinsun.com>
63149 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63151 2000-06-04 Jim Meyering <meyering@lucent.com>
63153 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63154 SunOS 4.1.4 for which gid_t is an unsigned type.
63156 2000-06-03 Jim Meyering <meyering@lucent.com>
63158 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63159 now that autoconf requires that.
63161 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63162 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63163 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63165 2000-06-03 Jim Meyering <meyering@lucent.com>
63167 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63169 2000-06-03 Bruno Haible <haible@clisp.cons.org>
63171 * m4/glibc21.m4: New file.
63172 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63174 2000-06-03 Bruno Haible <haible@clisp.cons.org>
63176 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63177 newer, don't install charset.alias.
63178 * lib/config.charset: Change the Linux/glibc rules so they become empty
63179 on glibc-2.1 or newer.
63181 2000-06-02 Jim Meyering <meyering@lucent.com>
63183 * lib/mountlist.c: Back out last change. Instead, do this...
63184 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63185 me_dummy member using the same `ignore'-testing code.
63186 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63190 2000-05-29 Jim Meyering <meyering@lucent.com>
63192 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63193 mounts with the `ignore' attribute. Based on a patch from
63196 2000-05-28 Jim Meyering <meyering@lucent.com>
63198 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63199 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63200 * m4/stat.m4: Likewise.
63201 * m4/lstat.m4: Likewise.
63202 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63204 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63205 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63207 2000-05-26 Jim Meyering <meyering@lucent.com>
63209 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63211 2000-05-24 Jim Meyering <meyering@lucent.com>
63213 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63214 autoconf requires that.
63215 * m4/lib-check.m4: Likewise.
63216 * m4/jm-macros.m4: Likewise.
63217 * m4/strftime.m4: Likewise.
63219 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63220 AC_CHECK_DECLS, now that autoconf requires that.
63222 2000-05-22 Jim Meyering <meyering@lucent.com>
63224 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63225 * m4/lstat.m4: Likewise.
63227 2000-05-22 Jim Meyering <meyering@lucent.com>
63229 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63231 2000-05-20 Jim Meyering <meyering@lucent.com>
63233 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63234 (jm_PREREQ): Use it.
63236 2000-05-18 Jim Meyering <meyering@lucent.com>
63238 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63239 back, too, since it may have been modified by allocate_entry.
63240 (hash_delete): Rewrite to use neither the assignment operator
63241 nor the comma operator in an if-expression.
63243 2000-05-15 Paul Eggert <eggert@twinsun.com>
63246 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63247 Remove; no longer needed.
63248 "quotearg.h": Add include.
63249 (file_name): Do not bother to explicitly initialize to NULL; it's less
63250 efficient on some hosts.
63251 (close_stdout_status): Remove test as to whether stdout was already
63252 closed; it breaks for the case "echo x | sort >&-".
63253 Quote file name colons.
63254 Do not assume that _("write error") lacks format strings.
63256 2000-05-15 Jim Meyering <meyering@lucent.com>
63258 * lib/version-etc.c (version_etc_copyright): Update the copyright
63259 string used in all --version output.
63261 2000-05-14 Jim Meyering <meyering@lucent.com>
63263 * lib/closeout.c (close_stdout_set_file_name): New function.
63264 (close_stdout_status): Use new file-scoped global.
63265 Return right away if fstat says the stdout file descriptor is invalid.
63266 * lib/closeout.h (close_stdout_set_file_name): Declare.
63268 2000-05-10 Jim Meyering <meyering@lucent.com>
63270 * lib/closeout.c [default_exit_status]: New file-scoped variable.
63271 (close_stdout_set_status): New function.
63272 * lib/closeout.h (close_stdout_set_status): Declare.
63274 2000-05-09 Jim Meyering <meyering@lucent.com>
63276 * m4/gettext.m4: Rename this...
63277 * m4/libintl.m4: ...to this.
63279 2000-05-08 Jim Meyering <meyering@lucent.com>
63281 * lib/long-options.c: Don't include closeout.h.
63282 (parse_long_options): Don't call close_stdout for --version.
63284 2000-05-06 Paul Eggert <eggert@twinsun.com>
63286 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63287 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63288 2.1.3 bug. This avoids a clash when files like regex.c define
63291 2000-05-06 Jim Meyering <meyering@lucent.com>
63293 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63294 (AC_REPLACE_FUNCS): Add strnlen.
63296 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63297 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63299 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63300 AC_SEARCH_LIBS call for nanosleep.
63301 (LIB_NANOSLEEP): Set and AC_SUBST.
63303 2000-05-06 Jim Meyering <meyering@lucent.com>
63305 * lib/strnlen.c: Undefine __strnlen and strnlen.
63306 [!weak_alias]: Define __strnlen to strnlen.
63308 * lib/atexit.c: New file, from libiberty.
63310 2000-05-06 Jim Meyering <meyering@lucent.com>
63312 * lib/closeout.c (close_stdout_status): Also check for errors on the
63315 2000-05-05 Jim Meyering <meyering@lucent.com>
63317 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63318 AC_SEARCH_LIBS call for clock_gettime.
63319 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63321 * m4/search-libs.m4: Update from autoconf.
63323 su doesn't work on Solaris 2.6.
63324 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63325 <shadow.h>. Reported by Dragos Harabor.
63327 2000-05-05 Bruno Haible <haible@clisp.cons.org>
63329 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63330 memcpy instead of xmalloc, xrealloc, path_concat.
63331 (locale_charset): Treat empty environment variables as absent.
63332 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63334 2000-05-04 Jim Meyering <meyering@lucent.com>
63336 * lib/getopt.c: Update from glibc.
63337 * lib/obstack.c: Likewise.
63338 * lib/obstack.h: Likewise.
63339 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
63342 * lib/regex.h: Likewise.
63343 * lib/strndup.c: Likewise.
63344 * lib/strnlen.c: New file, from glibc.
63346 2000-05-03 Jim Meyering <meyering@lucent.com>
63348 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63350 2000-05-02 Paul Eggert <eggert@twinsun.com>
63352 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63353 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
63354 compile-time test, rather than inspecting host and OS, to
63355 decide whether to define _LARGEFILE_SOURCE.
63357 2000-05-01 Jim Meyering <meyering@lucent.com>
63359 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63361 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63362 Based on a patch from Bruno Haible.
63364 2000-05-01 Jim Meyering <meyering@lucent.com>
63366 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63368 2000-04-29 Jim Meyering <meyering@lucent.com>
63370 * lib/path-concat.c: Declare strdup only if it's not defined.
63371 * lib/canon-host.c: Likewise.
63373 2000-04-28 Jim Meyering <meyering@lucent.com>
63375 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63376 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
63377 is included first, then limits.h is included by locale.h by libintl.h.
63378 From John David Anglin.
63380 2000-04-25 Jim Meyering <meyering@lucent.com>
63382 * lib/makepath.c (S_IRWXUGO): Define.
63383 (make_path): Always perform explicit chmod if MODE specifies any
63384 of the `special' permission bits. Prompted by a bug report against
63385 install from Mate Wierdl and Joost van Baal.
63387 2000-04-18 Jim Meyering <meyering@lucent.com>
63389 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63390 (jm_PREREQ): Use it.
63392 2000-04-18 Jim Meyering <meyering@lucent.com>
63394 * lib/README: New file.
63396 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63397 getpagesize. For BeOS. Based on a patch from Bruno Haible.
63399 2000-04-17 Jim Meyering <meyering@lucent.com>
63402 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63403 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
63404 Suggestion from Akim Demaille.
63406 2000-04-17 Jim Meyering <meyering@lucent.com>
63408 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63409 the definition of it to rpl_strftime also defined-away the system's
63412 2000-04-15 Jim Meyering <meyering@lucent.com>
63414 Use `C' to denote so-called `contiguous' files, the same way
63416 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63417 (ftypelet): Use S_ISCTG.
63418 From Michael Deutschmann.
63420 2000-04-14 Jim Meyering <meyering@lucent.com>
63422 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63423 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
63426 2000-04-14 Jim Meyering <meyering@lucent.com>
63428 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63430 2000-04-13 Jim Meyering <meyering@lucent.com>
63432 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63433 AH_VERBATIM to insert required #ifndef into config.h.in.
63434 Suggestion from Akim Demaille.
63436 2000-04-12 Jim Meyering <meyering@lucent.com>
63438 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63439 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
63440 Christian Krackowizer.
63442 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63443 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63444 (AC_SYS_LARGEFILE): Require.
63445 (AM_C_PROTOTYPES): Require.
63447 2000-04-08 Jim Meyering <meyering@lucent.com>
63449 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63450 names don't conflict. Reported by Eli Zaretskii.
63452 2000-04-07 Jim Meyering <meyering@lucent.com>
63454 * lib/putenv.c: Move inclusion of errno.h so it follows that of
63455 sys/types.h, to work around system header problems on AIX 3.2.5.
63458 2000-04-07 Bruno Haible <haible@clisp.cons.org>
63460 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63461 bug. Deal with the different error behavior of Irix iconv.
63463 2000-04-05 Paul Eggert <eggert@twinsun.com>
63465 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63466 IRIX if the installer said otherwise.
63468 2000-04-05 Jim Meyering <meyering@lucent.com>
63470 Portability tweaks required for ultrix4.3.
63471 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63472 (jm_CHECK_DECLS): Add getutent to the list of functions.
63473 (_jm_DECL_HEADERS): Add utmpx.h.
63474 From John David Anglin.
63476 * m4/strftime.m4: Back out the 2000-04-02 change.
63477 Instead of that change, simply undefine putenv in the test program.
63479 2000-04-05 Jim Meyering <meyering@lucent.com>
63481 Portability tweaks required for ultrix4.3.
63482 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63484 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63485 * lib/canon-host.c: Declare strdup.
63486 * lib/path-concat.c: Likewise.
63487 From John David Anglin.
63489 2000-04-04 Jim Meyering <meyering@lucent.com>
63491 Be more DOS 8.3-friendly.
63492 * lib/ref-add.sin: Renamed from ref-add.sed.in.
63493 * lib/ref-del.sin: Renamed from ref-del.sed.in.
63494 * lib/Makefile.am: Reflect renaming.
63495 Reported by Eli Zaretskii.
63497 Use a temporary file name that won't clash with `charset.alias'
63498 in the DOS 8.3 name space.
63499 * lib/Makefile.am (charset_tmp): Define.
63500 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63501 (uninstall-local): Likewise.
63502 Reported by Eli Zaretskii.
63504 2000-04-03 Jim Meyering <meyering@lucent.com>
63506 * m4/gettext.m4: Fix typo in comment.
63508 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63509 textutils/configure.in). Suggestion from Paul Eggert.
63510 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
63512 2000-04-02 Paul Eggert <eggert@twinsun.com>
63514 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63515 variable in the shell rather than using putenv, which isn't
63516 portable. This avoids the configure-time inter-test dependency
63517 on the potentially-renamed putenv function.
63519 2000-03-30 Paul Eggert <eggert@twinsun.com>
63521 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63522 before checking struct stat.st_blksize, so that
63523 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63525 2000-03-29 Paul Eggert <eggert@twinsun.com>
63527 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63528 since strftime.c uses HAVE_STRFTIME to decide whether to use
63529 the underlying strftime.
63531 2000-03-29 Paul Eggert <eggert@twinsun.com>
63533 * lib/time/strftime.c (my_strftime): Make sure we call the system
63534 strftime, not ourselves, when invoking the underlying strftime.
63536 2000-03-24 Jim Meyering <meyering@lucent.com>
63538 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63539 (charset_alias): Define.
63540 (install-exec-local): Factor out common code.
63541 (uninstall-local): Split lines longer than 80.
63542 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63543 (SUFFIXES): Define.
63544 (.sed.in.sed): New rule. Don't redirect directly to $@.
63545 (CLEANFILES): Add ref-add.sed and ref-del.sed.
63547 2000-03-19 Bruno Haible <haible@clisp.cons.org>
63549 * lib/config.charset: Output a line containing "Packages using this
63551 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63552 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63553 ref-del.sed): New rules.
63555 2000-03-17 Jim Meyering <meyering@lucent.com>
63557 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63558 Otherwise, include <strings.h>
63560 2000-03-17 Bruno Haible <haible@clisp.cons.org>
63562 * lib/unicodeio.c (utf8_wctomb): New function.
63563 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63564 format instead of in UCS-4 with platform dependent endianness.
63566 2000-03-10 Jim Meyering <meyering@lucent.com>
63568 * m4/lib-check.m4: Look for getspnam in -lgen, too.
63569 From Marco Franzen.
63571 2000-03-07 Paul Eggert <eggert@twinsun.com>
63573 * lib/savedir.c (savedir): Work even if directory size is
63574 negative; this can happen with some screwy NFS configurations.
63576 2000-03-06 Jim Meyering <meyering@lucent.com>
63578 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63579 if it's NULL (because we ran out of memory). From Bruno Haible.
63581 2000-03-05 Jim Meyering <meyering@lucent.com>
63583 * lib/localcharset.c ("path-concat.h"): Include.
63584 (get_charset_aliases): Use path_concat instead of ANSI string
63587 * lib/unicodeio.h (PARAMS): Define.
63588 Use it to guard prototype.
63590 2000-03-04 Jim Meyering <meyering@lucent.com>
63592 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63593 for lib/localcharset.c.
63595 2000-03-04 Jim Meyering <meyering@lucent.com>
63597 * lib/Makefile.am (install-exec-local): Create $(libdir) before
63598 installing into it.
63599 (uninstall-local): Uncomment this rule so `make distcheck' works
63602 * lib/unicodeio.c (<errno.h>): Include it.
63603 (errno): Declare if not defined.
63605 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63607 * lib/config.charset: New version, incorporating remarks from a linux
63608 i18n mailing list. From Bruno Haible.
63610 2000-03-04 Bruno Haible <haible@clisp.cons.org>
63612 * m4/codeset.m4: New file.
63613 * m4/iconv.m4: New file.
63614 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63616 2000-03-03 Jim Meyering <meyering@lucent.com>
63618 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63620 2000-03-02 Jim Meyering <meyering@lucent.com>
63622 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63623 the messages come out on separate lines.
63625 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63626 rather than jm_CHECK_DECLARATIONS.
63627 * m4/decl.m4: Remove now-unused file.
63629 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63632 2000-03-02 Jim Meyering <meyering@lucent.com>
63634 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63636 2000-03-01 Jim Meyering <meyering@lucent.com>
63638 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63639 * lib/unicodeio.c: Likewise.
63641 2000-03-01 Bruno Haible <haible@clisp.cons.org>
63643 * lib/config.charset: New file.
63644 * lib/localcharset.c: New file.
63645 * lib/unicodeio.h, lib/unicodeio.c: New files.
63646 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63647 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63648 (noinst_HEADERS): Add unicodeio.h.
63649 (all-local, install-exec-local, charset.alias): New targets.
63651 2000-02-28 Paul Eggert <eggert@twinsun.com>
63653 * lib/quotearg.c (ALERT_CHAR): New macro.
63654 (quotearg_buffer_restyled): Use it.
63656 2000-02-27 Jim Meyering <meyering@lucent.com>
63658 * m4/check-decl.m4: Add getenv to the list.
63660 2000-02-27 Jim Meyering <meyering@lucent.com>
63662 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63663 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63665 * lib/backupfile.c: Guard inclusion of stdlib.h with
63666 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63667 Declare malloc if needed.
63669 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63670 `#ifndef HAVE_DECL..'
63671 now that autoconf always defines the HAVE_DECL_ symbols.
63672 * lib/human.c: Likewise.
63673 * lib/same.c: Likewise.
63674 * lib/strtoumax.c: Likewise.
63676 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63677 declaration check was not run.
63678 * lib/hash.c: Likewise.
63679 * lib/human.c: Likewise.
63680 * lib/same.c: Likewise.
63681 * lib/strtoumax.c: Likewise.
63683 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63684 `.', then first look up the entire `.'-containing string as a login
63687 2000-02-23 Jim Meyering <meyering@lucent.com>
63689 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63690 in place of my hack.
63692 2000-02-18 Paul Eggert <eggert@twinsun.com>
63694 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63695 (textint): New typedef.
63696 (parser_control): Member year changed from int to textint.
63698 (YYSTYPE): Removed; replaced by %union with int and textint members.
63699 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63700 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63701 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63702 (tSNUMBER, tUNUMBER): Now of type <textintval>.
63703 (date, number, to_year): Use width of number in digits, not its value,
63704 to determine whether it's a 2-digit year, or a 2-digit time.
63705 (yylex): Store number of digits of numeric tokens.
63706 Reported by John Kendall.
63708 (parser_control): Changed from struct parser_control to typedef (for
63709 consistency). All uses changed.
63711 (tID): Removed; not used.
63712 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63714 2000-02-14 Paul Eggert <eggert@twinsun.com>
63716 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63717 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63719 2000-02-12 Jim Meyering <meyering@lucent.com>
63721 * lib/userspec.c (ISDIGIT): Define it.
63722 (isdigit): Remove definition.
63723 (is_number): Use ISDIGIT, not isdigit.
63724 <libintl.h>: Include.
63725 (_ and N_): Define.
63726 (parse_user_spec): Mark translatable strings.
63728 2000-02-10 Jim Meyering <meyering@lucent.com>
63730 With these changes, nanosleep.[ch] are finally enough like the other
63731 lib/* replacement files to compile on a few more losing systems.
63733 * lib/nanosleep.h: Don't include config.h.
63734 Remove prototype from declaration of nanosleep.
63735 (PARAMS): Remove now-unneeded definition.
63736 * lib/nanosleep.c: #undef nanosleep.
63737 (rpl_nanosleep): Rename from nanosleep.
63739 2000-02-10 Jim Meyering <meyering@lucent.com>
63741 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63742 gnu_nanosleep to rpl_nanosleep.
63744 2000-02-09 Jim Meyering <meyering@lucent.com>
63746 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63747 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
63749 2000-02-08 Akim Demaille <akim@epita.fr>
63751 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63752 `[' and `]' and remove uses of `changequote'.
63753 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63754 (AC_SYS_LARGEFILE): Likewise.
63755 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63756 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63758 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63759 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63760 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63761 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63763 2000-02-05 Jim Meyering <meyering@lucent.com>
63765 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63766 Remove explicit use of AC_HEADER_TIME. It is required by
63767 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
63768 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63769 in autoconf whereby the expansion of the latter ended up preceding
63770 the expansion of its prerequisite, AC_HEADER_TIME.
63771 Reported by Volker Borchert.
63773 2000-02-03 Jim Meyering <meyering@lucent.com>
63775 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63777 2000-02-03 Jim Meyering <meyering@lucent.com>
63779 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63780 rather than with `#if HAVE_UTMPNAME'.
63782 2000-02-02 Jim Meyering <meyering@lucent.com>
63784 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63785 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63786 Reported by Eli Zaretskii.
63788 2000-02-01 Jim Meyering <meyering@lucent.com>
63790 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
63792 2000-01-31 Jim Meyering <meyering@lucent.com>
63794 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63795 functions. Add the time.h and sys/time.h headers along with the
63796 AC_REQUIRE'ment of AC_HEADER_TIME.
63798 2000-01-31 Jim Meyering <meyering@lucent.com>
63800 * lib/nanosleep.h (nanosleep): Guard declaration with
63801 `#if ! HAVE_DECL_NANOSLEEP'.
63802 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63803 the declaration in that vendor's sys/timers.h.
63804 Reported by Christian Krackowizer.
63806 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63807 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63808 (ISPRINT): Likewise.
63809 Reported by Tom Tromey.
63811 2000-01-30 Jim Meyering <meyering@lucent.com>
63813 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63815 * m4/prereq.m4 (utmp_includes): Define.
63816 Check for ut_user and ut_name members in both struct utmpx
63819 2000-01-30 Jim Meyering <meyering@lucent.com>
63821 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63822 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
63823 header files where only utmpx.ut_user is declared.
63825 * lib/readutmp.h (UT_USER): Define.
63827 2000-01-29 Jim Meyering <meyering@lucent.com>
63829 * m4/lib-check.m4: New file containing library-related checks from
63830 fileutils and sh-utils (textutils had none).
63832 2000-01-28 Jim Meyering <meyering@lucent.com>
63834 * m4/perl.m4: Change format of warning message to look more like that
63835 from the missing script. Suggestion from François Pinard.
63837 2000-01-25 Jim Meyering <meyering@lucent.com>
63839 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63840 well as time.h in the compile check.
63841 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63842 Fix typo in cross-compiling case: s/yes/no/.
63844 2000-01-23 Jim Meyering <meyering@lucent.com>
63846 * m4/jm-macros.m4: Move df-related tests here from
63847 fileutils/configure.in
63849 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63850 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63852 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
63853 s/space/ac_fsusage_space/.
63854 (jm_FILE_SYSTEM_USAGE): Take two parameters.
63856 * m4/ftruncate.m4: New file (derived from part of
63857 fileutils/configure.in).
63858 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63859 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63861 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63862 AC_SUBST these here, rather than just in sh-util/configure.in, so
63863 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63865 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63866 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63867 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63868 (AC_SUBST(POW_LIBM)): Likewise.
63869 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63871 2000-01-23 Jim Meyering <meyering@lucent.com>
63873 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63876 2000-01-22 Jim Meyering <meyering@lucent.com>
63878 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63880 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63882 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63884 (AC_CHECK_HEADERS): Likewise for sh-utils.
63885 (AC_CHECK_HEADERS): Likewise for textutils.
63886 Merge the three lists of headers.
63888 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
63889 from fileutils' configure.in.
63891 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63892 code. Moved tests into their own function (_jm_DECL_HEADERS) in
63895 * m4/check-decl.m4: Use #if rather than #ifdef.
63896 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63897 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63898 (_jm_DECL_HEADERS): Define new function.
63899 (jm_CHECK_DECLARATIONS): Require it.
63901 2000-01-22 Jim Meyering <meyering@lucent.com>
63903 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63904 [! HAVE_DECL_STRTOULL]: Declare strtoull.
63905 Required for some AIX systems. Reported by Christian Krackowizer.
63906 [TESTING] (main): New function.
63908 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
63909 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63912 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63915 * lib/strverscmp.c (ISDIGIT): Define.
63916 (strverscmp): Use ISDIGIT, not isdigit.
63918 2000-01-19 Jim Meyering <meyering@lucent.com>
63920 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63921 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
63922 defines `struct timespec' in <sys/time.h>
63924 * m4/c-bs-a.m4: Remove uses of changequote altogether.
63925 Thanks to Akim for explaining.
63927 2000-01-17 Paul Eggert <eggert@twinsun.com>
63929 * lib/nanosleep.c (nanosleep):
63930 Don't use SA_INTERRUPT to decide whether to call sigaction, as
63931 POSIX.1 doesn't require SA_INTERRUPT and some systems
63932 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
63933 it's been part of POSIX.1 since day 1 (in 1988).
63935 2000-01-17 Jim Meyering <meyering@lucent.com>
63937 * lib/interlock: Remove unused file. Reported by François Pinard.
63939 2000-01-16 Paul Eggert <eggert@twinsun.com>
63941 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63942 alert, backslash, formfeed, and vertical tab unnecessarily in
63943 shell quoting style.
63945 2000-01-16 Jim Meyering <meyering@lucent.com>
63947 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63948 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63949 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63950 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63952 2000-01-16 Jim Meyering <meyering@lucent.com>
63954 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63955 because the latter didn't work.
63957 2000-01-15 Jim Meyering <meyering@lucent.com>
63959 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63960 (AC_REPLACE_FUNCS): Add memcpy and memset.
63961 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63963 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63965 2000-01-12 Jim Meyering <meyering@lucent.com>
63967 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63968 (jm_PREREQ): Use it.
63969 (jm_PREREQ_READUTMP): New macro.
63970 (jm_PREREQ): Use it.
63972 2000-01-11 Paul Eggert <eggert@twinsun.com>
63974 Quote multibyte characters correctly.
63975 * m4/c-bs-a.m4: New file.
63976 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63977 (jm_PREREQ): Use it.
63979 2000-01-11 Paul Eggert <eggert@twinsun.com>
63981 * m4/uintmax_t.m4: Port to autoconf 2.13.
63983 2000-01-08 Jim Meyering <meyering@ascend.com>
63985 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63986 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63988 2000-01-04 Jim Meyering <meyering@ascend.com>
63990 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63991 jm_STRUCT_DIRENT_D_TYPE.
63992 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63993 jm_STRUCT_DIRENT_D_INO.
63994 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63996 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63998 * m4/utime.m4: Likewise.
64000 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64001 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64003 2000-01-03 Paul Eggert <eggert@twinsun.com>
64005 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64006 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64008 2000-01-02 Jim Meyering <meyering@ascend.com>
64010 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
64011 remember if this is necessary.
64013 1999-12-26 Jim Meyering <meyering@ascend.com>
64015 * m4/jm-macros.m4: Use it here.
64016 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64018 1999-12-23 Jim Meyering <meyering@ascend.com>
64020 * m4/jm-macros.m4: Check for clock_gettime (moved from
64021 fileutils/configure.in)
64022 Check for gettimeofday.
64024 1999-12-20 Jim Meyering <meyering@ascend.com>
64026 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64027 autoconf-2.14a-1999-12-20.
64029 1999-12-19 Jim Meyering <meyering@ascend.com>
64031 * m4/lstat-slash.m4: New file.
64032 * m4/jm-macros.m4: Use the new macro:
64033 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64035 1999-12-07 Jim Meyering <meyering@ascend.com>
64037 * m4/perl.m4: Require that File::Compare be available, too.
64038 Too many systems seem to lack it.
64040 * m4/strftime.m4: Add checks for most of the cpp macros tested in
64041 GNU's strftime.c. Prompted by a patch from Paul Eggert.
64043 1999-11-18 Paul Eggert <eggert@twinsun.com>
64045 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64046 problem with the QNX 4.25 shell, which doesn't propagate exit
64047 status of failed commands inside shell assignments.
64049 1999-11-17 Jim Meyering <meyering@ascend.com>
64051 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64053 1999-11-07 Jim Meyering <meyering@ascend.com>
64055 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64057 1999-11-06 Jim Meyering <meyering@ascend.com>
64059 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64060 * m4/jm-macros.m4 (jm_MACROS): Use it here.
64062 1999-11-05 Jim Meyering <meyering@ascend.com>
64064 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64065 configure.in of textutils, fileutils, and sh-utils into this one
64066 (shared between those packages) file.
64067 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64068 AC_STRUCT_ST_BLKSIZE.
64070 1999-11-03 Jim Meyering <meyering@ascend.com>
64072 * m4/ssize_t.m4: Remove file. No longer needed since the new version
64073 of AC_CHECK_TYPE checks includes unistd.h.
64074 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64075 Suggestion from Akim Demaille.
64077 1999-10-30 Jim Meyering <meyering@ascend.com>
64079 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
64081 * m4/ls-mntd-fs.m4: Likewise.
64082 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
64083 * m4/jm-winsz1.m4: Likewise.
64085 * m4/const.m4: Remove file, since the fix made it into the experimental
64086 version of autoconf.
64087 * m4/mktime.m4: Likewise.
64089 * m4/check-type.m4: Remove file, now that the latest version of
64090 AC_CHECK_TYPE takes a third arg to specify additional #includes.
64092 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64093 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64096 1999-10-04 Jim Meyering <meyering@ascend.com>
64098 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64100 1999-09-22 Paul Eggert <eggert@twinsun.com>
64102 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64103 2.95.1 bug with HP-UX 10.20.
64105 1999-09-17 Jim Meyering <meyering@ascend.com>
64107 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64108 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64109 due to missing strdup (against sh-utils-2.0).
64111 1999-08-29 Jim Meyering <meyering@ascend.com>
64113 * m4/jm-macros.m4: Require jm_BISON.
64114 * m4/bison.m4: New file.
64116 1999-08-17 Paul Eggert <eggert@twinsun.com>
64118 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64119 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64121 1999-08-05 Jim Meyering <meyering@ascend.com>
64123 * m4/getline.m4: Rename test file from conftestdata to conftest.data
64124 to avoid conflicts with `conftest' on 8+3 filesystems.
64125 Suggestion from Eli Zaretskii.
64127 1999-08-04 Jim Meyering <meyering@ascend.com>
64129 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64130 fileutils and sh-utils (textutils's getline test was inadequate).
64131 (AM_FUNC_GETLINE): Run this test.
64132 (AC_CHECK_FUNCS): Check for getdelim.
64133 Reported by Bob Proulx.
64135 1999-08-02 Jim Meyering <meyering@ascend.com>
64137 * m4/jm-macros.m4: Add a comment.
64139 1999-08-01 Paul Eggert <eggert@twinsun.com>
64141 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64142 <inttypes.h> defines strtoumax as a macro (and not as a
64145 1999-08-01 Paul Eggert <eggert@twinsun.com>
64147 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64148 that we can shift, multiply and divide unsigned long long
64149 values; Ultrix cc can't do it.
64151 1999-08-01 Paul Eggert <eggert@twinsun.com>
64153 * m4/mktime.m4: New file, which is a preview of what should appear
64154 in the next public autoconf release.
64156 1999-08-01 Paul Eggert <eggert@twinsun.com>
64158 * m4/lfs.m4: Remove this file.
64159 * m4/largefile.m4: New file. It contains the old contents of
64160 lfs.m4, except that all names with prefix AC_LFS have been
64161 changed to use the prefix AC_SYS_LARGEFILE instead, to be
64162 compatible with future autoconf versions. Also, some minor m4
64163 quoting problems have been fixed.
64165 1999-08-01 Paul Eggert <eggert@twinsun.com>
64167 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64168 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64169 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64170 and simplify the shell code.
64172 1999-08-01 Jim Meyering <meyering@ascend.com>
64174 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64177 1999-07-20 Jim Meyering <meyering@ascend.com>
64179 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64181 1999-07-15 Jim Meyering <meyering@ascend.com>
64183 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64185 1999-05-22 Jim Meyering <meyering@ascend.com>
64187 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64189 1999-05-20 Jim Meyering <meyering@ascend.com>
64191 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64192 Add a colon after each `then' in case $4 is empty.
64194 1999-05-16 Jim Meyering <meyering@ascend.com>
64196 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64198 1999-05-10 Jim Meyering <meyering@ascend.com>
64200 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64202 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64205 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
64207 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64209 1999-05-04 Paul Eggert <eggert@twinsun.com>
64211 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64212 not CPPFLAGS, so that linking works correctly in IRIX.
64214 1999-04-30 Paul Eggert <eggert@twinsun.com>
64216 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64218 1999-04-20 Paul Eggert <eggert@twinsun.com>
64220 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64221 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64222 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64223 jm_AC_TYPE_UNSIGNED_LONG_LONG.
64224 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64226 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
64228 1999-04-20 Jim Meyering <meyering@ascend.com>
64230 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64231 AC_REPLACE xstroull if necessary. From Paul Eggert.
64232 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64234 1999-04-18 Jim Meyering <meyering@ascend.com>
64236 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64237 * m4/jm-macros.m4: Use it.
64239 1999-04-06 Jim Meyering <meyering@ascend.com>
64241 * m4/strftime.m4: Remove test for %f.
64243 1999-03-29 Jim Meyering <meyering@ascend.com>
64245 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64246 superset of the AC_TYPE_* checks in the textutils, fileutils,
64247 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
64250 1999-03-28 Jim Meyering <meyering@ascend.com>
64252 * m4/jm-macros.m4: Define GNU_PACKAGE here.
64253 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64254 replaced e.g., in the *.sh files of the sh-utils.
64256 1999-03-20 Jim Meyering <meyering@ascend.com>
64258 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64259 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64260 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
64262 1999-03-19 Jim Meyering <meyering@ascend.com>
64264 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64266 1999-03-12 Jim Meyering <meyering@ascend.com>
64268 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64270 1999-03-07 Jim Meyering <meyering@ascend.com>
64272 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64275 1999-02-17 Jim Meyering <meyering@ascend.com>
64277 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64278 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
64280 1999-02-07 Jim Meyering <meyering@ascend.com>
64282 * m4/group-member.m4: New file -- extracted from sh-utils'
64285 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
64286 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64288 1999-02-06 Jim Meyering <meyering@ascend.com>
64290 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64291 * m4/fnmatch.m4: Likewise.
64292 * m4/getgroups.m4: Likewise.
64293 * m4/lstat.m4: Likewise.
64294 * m4/malloc.m4: Likewise.
64295 * m4/putenv.m4: Likewise.
64296 * m4/realloc.m4: Likewise.
64297 * m4/regex.m4: Likewise.
64298 * m4/stat.m4: Likewise.
64299 * m4/strftime.m4: Likewise.
64300 Suggestion from Alain Magloire.
64302 * m4/chown.m4: Use `.$ac_objext', not `.o'.
64303 * m4/fnmatch.m4: Likewise.
64304 * m4/getgroups.m4: Likewise.
64305 * m4/getline.m4: Likewise.
64306 * m4/lstat.m4: Likewise.
64307 * m4/malloc.m4: Likewise.
64308 * m4/memcmp.m4: Likewise.
64309 * m4/putenv.m4: Likewise.
64310 * m4/realloc.m4: Likewise.
64311 * m4/regex.m4: Likewise.
64312 * m4/stat.m4: Likewise.
64313 * m4/strftime.m4: Likewise.
64314 Suggestion from Alain Magloire.
64316 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64319 * m4/regex.m4: Add a run-time Test for proper operation of
64320 re_compile_pattern.
64322 1999-01-31 Jim Meyering <meyering@ascend.com>
64324 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64326 1999-01-30 Jim Meyering <meyering@ascend.com>
64328 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64330 * m4/jm-mktime.m4: Make this a wrapper around the official
64331 AM_FUNC_MKTIME rather than my private copy, now that the official one
64333 * m4/mktime.m4: Remove file.
64335 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64336 * m4/uptime.m4: Likewise.
64337 * m4/uintmax_t.m4: Likewise.
64339 1999-01-28 Jim Meyering <meyering@ascend.com>
64341 * m4/jm-macros.m4: Use jm_AFS.
64342 * m4/afs.m4: New file (from fileutils' configure.in).
64344 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64345 * m4/chown.m4: Likewise.
64346 * m4/d-ino.m4: Likewise.
64347 * m4/d-type.m4: Likewise.
64348 * m4/fnmatch.m4: Likewise.
64349 * m4/getgroups.m4: Likewise.
64350 * m4/gettext.m4: Likewise.
64351 * m4/jm-mktime.m4: Likewise.
64352 * m4/jm-winsz2.m4: Likewise.
64353 * m4/lcmessage.m4: Likewise.
64354 * m4/ls-mntd-fs.m4: Likewise.
64355 * m4/malloc.m4: Likewise.
64356 * m4/memcmp.m4: Likewise.
64357 * m4/putenv.m4: Likewise.
64358 * m4/realloc.m4: Likewise.
64359 * m4/st_mtim.m4: Likewise.
64360 * m4/strftime.m4: Likewise.
64362 1999-01-16 Jim Meyering <meyering@ascend.com>
64364 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64365 (ARGMATCH_DIE_DECL): Define.
64367 1999-01-12 Jim Meyering <meyering@ascend.com>
64369 * m4/Makefile.am.in: Rewrite to avoid using fmt.
64370 Reported by Lars Hecking.
64372 1999-01-10 Jim Meyering <meyering@ascend.com>
64374 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64376 * m4/inttypes_h.m4: Likewise.
64377 * m4/lstat.m4: Likewise.
64378 * m4/malloc.m4: Likewise.
64379 * m4/readdir.m4: Likewise.
64380 * m4/realloc.m4: Likewise.
64381 * m4/st_dm_mode.m4: Likewise.
64382 * m4/stat.m4: Likewise.
64383 * m4/utimbuf.m4: Likewise.
64384 * m4/utimes.m4: Likewise.
64386 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64387 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
64388 comments in config.h.in are meaningful.
64390 * m4/jm-macros.m4: Require autoconf-2.13 here.
64392 * m4/regex.m4: By default, don't use the included regex.c on systems
64393 with glibc 2. Suggestion from Uli Drepper.
64395 1999-01-02 Jim Meyering <meyering@ascend.com>
64397 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64399 1998-12-18 Jim Meyering <meyering@ascend.com>
64401 * m4/Makefile.am.in (Makefile.am): Simplify rule.
64402 Based on a suggestion from Lars Hecking.
64404 1998-11-16 Paul Eggert <eggert@twinsun.com>
64406 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64408 1998-11-16 Jim Meyering <meyering@ascend.com>
64410 * m4/lfs.m4: Double-quote the `uname...` expression.
64412 1998-11-14 Jim Meyering <meyering@ascend.com>
64414 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
64415 * m4/stat.m4: Likewise.
64417 1998-11-03 Jim Meyering <meyering@ascend.com>
64419 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64420 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64422 1998-10-18 Jim Meyering <meyering@ascend.com>
64424 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64426 1998-10-17 Jim Meyering <meyering@ascend.com>
64428 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64429 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64430 calls for those previously hard-coded headers. Instead, take a new
64432 (jm_CHECK_DECLARATIONS): Reflect interface change.
64433 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64434 (jm_CHECK_DECL_LOCALTIME_R): New macro.
64436 * m4/mktime.m4: Test for spring-forward gap before long-running test.
64438 1998-10-14 Jim Meyering <meyering@ascend.com>
64440 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64441 instead of "TZ=America/Vancouver". From Paul Eggert.
64443 1998-10-11 Jim Meyering <meyering@ascend.com>
64445 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64446 This adds a test for a recently added compatibility fix for mktime.c.
64447 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64449 1998-09-27 Jim Meyering <meyering@ascend.com>
64451 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64453 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
64454 ../configure.in, including a change from Gordon Matzigkeit to allow
64455 cross-compiling for the Hurd.
64457 * m4/glibc.m4: New file/macro to test for the GNU C Library
64458 versions 1 and 2. From Gordon Matzigkeit.
64461 1998-09-21 Jim Meyering <meyering@ascend.com>
64463 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
64465 1998-08-18 Paul Eggert <eggert@twinsun.com>
64467 Port nanosecond-resolution times to UnixWare 2.1.2 and
64468 pedantic Solaris 2.6.
64470 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64472 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64473 Generate name of ns member, instead of just 1 or undef.
64474 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64476 1998-08-15 Jim Meyering <meyering@ascend.com>
64478 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64479 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
64480 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64481 instead of jm_TYPE_SSIZE_T.
64483 1998-08-12 Jim Meyering <meyering@ascend.com>
64485 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
64487 1998-08-02 Jim Meyering <meyering@ascend.com>
64489 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64490 in acconfig.h manually.
64492 1998-07-31 Paul Eggert <eggert@twinsun.com>
64494 * m4/st_mtim.m4: New file.
64496 1998-07-28 Jim Meyering <meyering@ascend.com>
64498 * m4/utimes.m4: Undef stat.
64500 1998-07-25 Jim Meyering <meyering@ascend.com>
64502 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64503 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64505 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
64507 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64508 uid and gid actually remain unchanged.
64510 1998-07-07 Jim Meyering <meyering@ascend.com>
64512 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64514 1998-07-04 Jim Meyering <meyering@ascend.com>
64516 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
64517 to prove that this macro can be used in packages without regex.c.
64519 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
64521 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64524 1998-07-03 Jim Meyering <meyering@ascend.com>
64526 * m4/gettext.m4: Add -lintl if it's found to be necessary.
64528 * m4/gettext.m4: New file -- from gettext-0.10.35.
64529 * m4/lcmessage.m4: Likewise.
64530 * m4/progtest.m4: Likewise.
64532 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64533 * m4/jm-macros.m4: Require the new macro.
64535 1998-06-29 Jim Meyering <meyering@ascend.com>
64537 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
64538 for the definition of NGROUPS (used in a system header included
64541 1998-06-28 Jim Meyering <meyering@ascend.com>
64543 * m4/ls-mntd-fs.m4: New file.
64544 * m4/fstypename.m4: New file.
64546 * m4/jm-macros.m4: Require the new macro.
64547 * m4/jm-glibc-io.m4: New file.
64549 1998-05-19 Jim Meyering <meyering@ascend.com>
64551 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64552 * m4/lchown.m4: New file.
64554 * m4/Makefile.am.in: New file.
64555 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64557 1998-05-14 Jim Meyering <meyering@ascend.com>
64559 * m4/Makefile.am (EXTRA_DIST): Add them.
64560 * m4/jm-macros.m4: New file.
64561 * m4/utimbuf.m4: New file.
64563 1998-05-12 Jim Meyering <meyering@ascend.com>
64565 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64567 1998-05-11 Jim Meyering <meyering@ascend.com>
64569 * m4/isc-posix.m4: New file.
64571 1998-05-10 Jim Meyering <meyering@ascend.com>
64573 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64575 1998-05-09 Jim Meyering <meyering@ascend.com>
64577 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64578 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64581 * m4/ssize_t.m4: New file.
64582 * m4/mktime.m4: Remove file -- the new automake has this now.
64584 1998-04-26 Jim Meyering <meyering@ascend.com>
64586 * m4/assert.m4: New file.
64587 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64589 1998-04-05 Jim Meyering <meyering@ascend.com>
64591 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64592 (jm_PREREQ): Use it here.
64594 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
64596 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64599 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
64601 * m4/prereq.m4: New file.
64602 * m4/error.m4: New file.
64603 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64605 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
64607 * m4/getline.m4: Don't set am_cv_func_working_getline before the
64608 cache-check for the same variable -- that defeated the purpose of
64609 the test; the test program was never run. This was a problem only
64610 on systems with losing getline functions -- HP-UX 10.20 is one.
64611 Reported by Bjorn Helgaas.
64613 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
64615 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64617 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
64619 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64621 * m4/const.m4: New file. Use an initializer in this declaration
64622 typedef int charset[2]; const charset x;
64623 Reported by Bob Glickstein.
64625 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
64627 * m4/chown.m4: Fix reversed types on -1 args to chown.
64630 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
64632 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64633 Add lseek and memchr.
64635 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64636 T.E.Dickey <dickey@clark.net> said that some older preprocessors
64637 have a 20-character limit on names.
64639 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
64641 * m4/inttypes_h.m4: New file.
64642 * m4/uintmax_t.m4: New file.
64643 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64652 Copyright (C) 1997-2010 Free Software Foundation, Inc.
64654 Copying and distribution of this file, with or without
64655 modification, are permitted provided the copyright notice
64656 and this notice are preserved.