1 2010-03-28 Bruno Haible <bruno@clisp.org>
3 gnulib-tool: Add support for special categories of tests.
4 * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5 --with-privileged-tests, --with-unportable-tests, --with-all-tests.
6 (func_usage): Document them.
7 (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
8 inc_unportable_tests, inc_all_tests): New variables.
9 (func_acceptable): Consider these variables.
10 (func_modules_transitive_closure): Make it work when the 'Status' field
11 consists of multiple words.
12 (func_import): Store and restore the values of inc_cxx_tests,
13 inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
14 inc_all_tests in gnulib-comp.m4.
15 (func_create_testdir): Set inc_all_tests to true.
16 * doc/gnulib.texi (Extra tests modules): New section.
17 Suggested by Jim Meyering.
19 2010-03-28 Bruno Haible <bruno@clisp.org>
21 ansi-c++-opt: Allow turning off the C++ build by default.
22 * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
23 gl_CXX_CHOICE_DEFAULT_NO is defined.
24 Requested by Eric Blake.
26 2010-03-28 Bruno Haible <bruno@clisp.org>
28 unistd: Avoid #define replacements in C++ mode.
29 * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30 getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31 setsockopt, shutdown, select): In C++, attach a warning to the function
32 if possible, rather than #defining the symbol to a dysfunctional alias.
33 Reported by John W. Eaton <jwe@gnu.org>.
35 2010-03-28 Bruno Haible <bruno@clisp.org>
37 Fix link errors on mingw.
38 * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
39 * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
41 * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
44 2010-03-28 Bruno Haible <bruno@clisp.org>
45 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47 lib-ignore: Determine different options for different compilers.
48 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
49 depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
51 (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
52 * NEWS: Mention the change.
54 2010-03-27 Bruno Haible <bruno@clisp.org>
56 Remove unused GNULIB_XYZ macro definitions.
57 * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
58 * modules/fseek (configure.ac): Likewise.
59 * modules/ioctl (configure.ac): Likewise.
60 * modules/open (configure.ac): Likewise.
61 * modules/stdlib-safer (configure.ac): Likewise.
63 2010-03-27 Bruno Haible <bruno@clisp.org>
65 Add a remark about certain modules.
66 * modules/malloc (Comment): New section.
67 * modules/realloc (Comment): Likewise.
68 * modules/sigpipe (Comment): Likewise.
70 2010-03-27 Bruno Haible <bruno@clisp.org>
72 Resolve conflict between the two kinds of module indicators.
73 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
74 GNULIB_TEST_XYZ instead of GNULIB_XYZ.
75 * modules/canonicalize (configure.ac): Invoke
76 gl_MODULE_INDICATOR_FOR_TESTS.
77 * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
79 * tests/test-dirent-c++.cc: Likewise.
80 * tests/test-dirent-safer.c: Likewise.
81 * tests/test-dup2.c: Likewise.
82 * tests/test-fchdir.c: Likewise.
83 * tests/test-fcntl-h-c++.cc: Likewise.
84 * tests/test-getopt.c: Likewise.
85 * tests/test-getopt.h: Likewise.
86 * tests/test-langinfo-c++.cc: Likewise.
87 * tests/test-locale-c++.cc: Likewise.
88 * tests/test-math-c++.cc: Likewise.
89 * tests/test-pty-c++.cc: Likewise.
90 * tests/test-search-c++.cc: Likewise.
91 * tests/test-signal-c++.cc: Likewise.
92 * tests/test-spawn-c++.cc: Likewise.
93 * tests/test-stdio-c++.cc: Likewise.
94 * tests/test-stdlib-c++.cc: Likewise.
95 * tests/test-string-c++.cc: Likewise.
96 * tests/test-sys_ioctl-c++.cc: Likewise.
97 * tests/test-sys_select-c++.cc: Likewise.
98 * tests/test-sys_socket-c++.cc: Likewise.
99 * tests/test-sys_stat-c++.cc: Likewise.
100 * tests/test-sys_time-c++.cc: Likewise.
101 * tests/test-time-c++.cc: Likewise.
102 * tests/test-unistd-c++.cc: Likewise.
103 * tests/test-wchar-c++.cc: Likewise.
104 * tests/uninorm/test-u8-nfc.c: Likewise.
105 * tests/uninorm/test-u8-nfd.c: Likewise.
106 * tests/uninorm/test-u8-nfkc.c: Likewise.
107 * tests/uninorm/test-u8-nfkd.c: Likewise.
108 * tests/uninorm/test-u16-nfc.c: Likewise.
109 * tests/uninorm/test-u16-nfd.c: Likewise.
110 * tests/uninorm/test-u16-nfkc.c: Likewise.
111 * tests/uninorm/test-u16-nfkd.c: Likewise.
112 * tests/uninorm/test-u32-nfc.c: Likewise.
113 * tests/uninorm/test-u32-nfc-big.c: Likewise.
114 * tests/uninorm/test-u32-nfd.c: Likewise.
115 * tests/uninorm/test-u32-nfd-big.c: Likewise.
116 * tests/uninorm/test-u32-nfkc.c: Likewise.
117 * tests/uninorm/test-u32-nfkc-big.c: Likewise.
118 * tests/uninorm/test-u32-nfkd.c: Likewise.
119 * tests/uninorm/test-u32-nfkd-big.c: Likewise.
120 * tests/uninorm/test-u32-normalize-big.c: Likewise.
122 2010-03-27 Bruno Haible <bruno@clisp.org>
124 Distinguish two kinds of module indicators.
125 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
127 (gl_MODULE_INDICATOR): New macro.
128 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
129 gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
130 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
131 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
132 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
133 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
134 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
135 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
136 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
137 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
138 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
139 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
140 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
141 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
142 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
143 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
144 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
145 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
146 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
147 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
148 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
149 * modules/cloexec (configure.ac): Likewise.
150 * modules/getopt-gnu (configure.ac): Likewise.
151 * modules/uninorm/u8-normalize (configure.ac): Likewise.
152 * modules/uninorm/u16-normalize (configure.ac): Likewise.
153 * modules/uninorm/u32-normalize (configure.ac): Likewise.
154 * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
156 2010-03-27 Bruno Haible <bruno@clisp.org>
158 New module description field 'Comment'.
159 * gnulib-tool: New option --extract-comment.
160 (func_usage): Document it.
161 (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
162 (func_get_comment): New function.
163 * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
165 2010-03-27 Bruno Haible <bruno@clisp.org>
167 Addendum to 2010-02-07 commit.
168 * gnulib-tool (func_usage): Document --extract-applicability option.
170 2010-03-27 Bruno Haible <bruno@clisp.org>
172 Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
173 * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
174 GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
175 rather than link errors.
177 2010-03-27 Bruno Haible <bruno@clisp.org>
179 Avoid side effects from tests-related modules on the compilation of lib.
180 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
181 (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
182 * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
183 parameter. Emit into AM_CPPFLAGS a definition of the designated C
185 (func_import): Define a witness macro. Assign it a value that depends
186 on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
187 tests-related modules.
188 (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
189 Reported by Jim Meyering.
191 2010-03-27 Bruno Haible <bruno@clisp.org>
193 Factorize common .m4 code.
194 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
195 * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
196 * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
197 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
198 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
199 * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
200 * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
201 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
202 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
203 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
204 * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
205 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
206 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
207 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
208 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
209 * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
210 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
211 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
212 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
213 * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
214 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
215 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
216 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
217 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
218 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
219 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
220 * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
221 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
222 * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
223 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
224 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
225 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
227 2010-03-27 Bruno Haible <bruno@clisp.org>
229 Fix a compilation error on Cygwin with g++ >= 4.3.
230 * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
231 if it is undefined or if we alias it to chmod.
232 (lstat): Don't warn about the use of this function if it is undefined
233 or if we alias it to stat.
234 Reported by Simon Josefsson.
236 2010-03-27 Bruno Haible <bruno@clisp.org>
238 * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
239 * modules/getlogin (configure.ac): Update.
241 * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
242 * modules/getlogin_r (configure.ac): Update.
244 * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
245 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
246 * modules/inet_ntop (configure.ac): Update.
248 * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
249 * modules/inet_pton (configure.ac): Update.
251 * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
252 * modules/mbslen (configure.ac): Update.
254 * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
255 (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
256 * modules/forkpty (configure.ac): Update.
257 * modules/openpty (configure.ac): Update.
259 2010-03-26 Simon Josefsson <simon@josefsson.org>
261 * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
262 no *.texi files. Reported by Eric Blake <eblake@redhat.com>.
264 2010-03-25 Eric Blake <eblake@redhat.com>
266 maint: use pragma consistently across replacement headers
267 * lib/ctype.in.h (system_header): Hoist for consistent placement.
268 * lib/dirent.in.h (system_header): Likewise.
269 * lib/errno.in.h (system_header): Likewise.
270 * lib/float.in.h (system_header): Likewise.
271 * lib/getopt.in.h (system_header): Likewise.
272 * lib/iconv.in.h (system_header): Likewise.
273 * lib/inttypes.in.h (system_header): Likewise.
274 * lib/langinfo.in.h (system_header): Likewise.
275 * lib/locale.in.h (system_header): Likewise.
276 * lib/math.in.h (system_header): Likewise.
277 * lib/netdb.in.h (system_header): Likewise.
278 * lib/netinet_in.in.h (system_header): Likewise.
279 * lib/pty.in.h (system_header): Likewise.
280 * lib/sched.in.h (system_header): Likewise.
281 * lib/se-selinux.in.h (system_header): Likewise.
282 * lib/search.in.h (system_header): Likewise.
283 * lib/spawn.in.h (system_header): Likewise.
284 * lib/stdarg.in.h (system_header): Likewise.
285 * lib/stdint.in.h (system_header): Likewise.
286 * lib/string.in.h (system_header): Likewise.
287 * lib/strings.in.h (system_header): Likewise.
288 * lib/sys_file.in.h (system_header): Likewise.
289 * lib/sys_ioctl.in.h (system_header): Likewise.
290 * lib/sys_socket.in.h (system_header): Likewise.
291 * lib/sys_times.in.h (system_header): Likewise.
292 * lib/sys_utsname.in.h (system_header): Likewise.
293 * lib/sys_wait.in.h (system_header): Likewise.
294 * lib/sysexits.in.h (system_header): Likewise.
295 * lib/unistd.in.h (system_header): Likewise.
296 * lib/wctype.in.h (system_header): Likewise.
298 arpa/inet: fix mingw compilation warning
299 * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
300 Reported by Matthew Bolte.
302 2010-03-25 Bruno Haible <bruno@clisp.org>
304 Avoid collision between gnulib wrapper and libintl wrapper.
305 * lib/printf.c (printf): Don't define if a printf wrapper is already
306 defined in intl/printf.c.
307 Reported by Michel Boaventura <michel@michelboaventura.com>.
309 2010-03-25 Bruno Haible <bruno@clisp.org>
312 * lib/readutmp.h (getutent): Provide ANSI C prototype.
314 2010-03-25 Bruno Haible <bruno@clisp.org>
316 Minor formatting changes.
317 * lib/acosl.c: Insert space before function argument list.
318 * lib/argz.c: Likewise.
319 * lib/asinl.c: Likewise.
320 * lib/expl.c: Likewise.
321 * lib/gen-uni-tables.c: Likewise.
322 * lib/gettext.h: Likewise.
323 * lib/glthread/lock.h: Likewise.
324 * lib/tanl.c: Likewise.
325 * lib/uniname/uniname.c: Likewise.
326 * tests/test-idpriv-drop.c: Likewise.
327 * tests/test-idpriv-droptemp.c: Likewise.
328 * tests/test-lock.c: Likewise.
329 * tests/test-tls.c: Likewise.
330 * lib/argp-help.c: Insert space before function-like macro argument
332 * lib/memcmp.c: Likewise.
333 * tests/test-base64.c: Likewise.
334 * lib/localename.c: Insert space before sizeof's argument list.
335 * lib/safe-alloc.h: Likewise.
336 * lib/file-set.h: Insert space before macro argument list.
337 * tests/test-argp.c: Likewise.
338 * lib/argp-namefrob.h: Insert space before function parameter list.
339 * lib/getaddrinfo.c: Likewise.
340 * lib/netdb.in.h: Likewise.
341 * lib/parse-duration.h: Likewise.
342 * lib/parse-duration.c: Likewise.
343 * lib/poll.c: Likewise.
344 * lib/select.c: Likewise.
345 * lib/trim.h: Likewise.
346 * tests/test-usleep.c: Likewise.
347 * lib/ldexpl.c: Insert space before function parameter list and before
348 function argument list.
349 * lib/logl.c: Likewise.
350 * lib/sqrtl.c: Likewise.
351 * lib/trim.c: Likewise.
352 * lib/cosl.c: Use GNU style indentation. Insert space before function
354 * lib/sinl.c: Likewise.
355 * lib/tsearch.c: Insert space after 'for'.
356 Reported by Jim Meyering.
358 2010-03-23 Pádraig Brady <P@draigBrady.com> (tiny change)
360 * maint.mk (sc_Wundef_boolean): Check for the presence of the
361 config header before grepping, as it's not present before
362 autoreconf/configure are run. Reported by Simon Josefsson.
364 2010-03-23 Bruno Haible <bruno@clisp.org>
366 pt_chown: Make it work with automake < 1.11.
367 * modules/pt_chown (Makefile.am): Define pkglibexecdir.
368 Reported by Simon Josefsson.
370 2010-03-23 Bruno Haible <bruno@clisp.org>
372 pt_chown: Don't depend on GPLed modules.
373 * lib/pt_chown.c: Don't include idpriv.h.
374 (main): Don't drop privileges.
375 * modules/pt_chown (Depends-on): Remove idpriv-drop.
376 Reported by Simon Josefsson.
378 2010-03-24 Simon Josefsson <simon@josefsson.org>
380 * top/maint.mk (sc_texinfo_acronym): Add rule, based on
381 suggestions from karl@freefriends.org (Karl Berry).
383 2010-03-22 Eric Blake <eblake@redhat.com>
385 gethostname: further tweaks
386 * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
387 are overriding gethostname.
388 Suggested by Bruno Haible.
390 2010-03-21 Bruno Haible <bruno@clisp.org>
393 * lib/forkpty.c (rpl_forkpty): Fix comment.
394 * lib/openpty.c (rpl_openpty): Likewise.
395 Reported by Eric Blake.
397 2010-03-22 Eric Blake <eblake@redhat.com>
399 gethostname: fix build on mingw
400 * lib/unistd.in.h (includes): Work around fact that mingw
401 <winsock2.h> re-includes <unistd.h>, by avoiding any
402 redeclarations if we are being included by <winsock2.h>.
403 Reported by Matthias Bolte.
405 2010-03-21 Bruno Haible <bruno@clisp.org>
407 forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
408 * lib/forkpty.c (forkpty): New replacement function, from glibc with
410 * lib/pty.in.h (forkpty): Update declaration. Add comments.
411 * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
412 provide the replacement.
413 * modules/forkpty (Depends-on): Add openpty, login_tty.
414 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
415 * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
416 * doc/glibc-functions/forkpty.texi: More supported platforms.
417 * config/srclist.txt: Add forkpty.c (commented).
419 2010-03-21 Bruno Haible <bruno@clisp.org>
421 * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
422 (Makefile.am): Verify that PTY_LIB is defined.
424 * modules/openpty-tests: Use the common TEMPLATE-TESTS.
426 2010-03-21 Bruno Haible <bruno@clisp.org>
428 Tests for module 'login_tty'.
429 * modules/login_tty-tests: New file.
430 * tests/test-login_tty.c: New file.
432 New module 'login_tty'.
433 * lib/login_tty.c: New file.
434 * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
435 * modules/login_tty: New file.
436 * doc/glibc-functions/login_tty.texi: Mention the new module.
438 2010-03-21 Bruno Haible <bruno@clisp.org>
440 login_tty: Documentation.
441 * doc/glibc-functions/login_tty.texi: New file.
442 * doc/gnulib.texi (Glibc <utmp.h>): Include it.
444 2010-03-21 Bruno Haible <bruno@clisp.org>
446 pty: Consistent macro naming.
447 * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
448 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
449 * modules/pty (configure.ac): Update.
451 2010-03-21 Bruno Haible <bruno@clisp.org>
453 Tests for openpty: Make stricter.
454 * tests/test-openpty.c (main): Add test of canonical processing and
456 * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
458 openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
459 * lib/openpty.c (openpty): New replacement function.
460 * lib/pty.in.h: Include <termios.h>.
461 (openpty): Update declaration. Add comments.
462 * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
463 is not declared, arrange to provide the replacement. Check for _getpty
465 * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
466 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
467 * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
468 * modules/pty-tests (test_pty_c___LDADD): New variable.
469 * doc/glibc-functions/openpty.texi: More supported platforms.
471 2010-03-21 Bruno Haible <bruno@clisp.org>
474 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
476 * doc/posix-functions/setenv.texi: Update platforms list.
478 2010-03-21 Bruno Haible <bruno@clisp.org>
480 New module 'unlockpt'.
481 * lib/unlockpt.c: New file, from glibc with modifications.
482 * m4/unlockpt.m4: New file.
483 * modules/unlockpt: New file.
484 * lib/stdlib.in.h (unlockpt): New declaration.
485 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
486 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
487 * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
489 * doc/posix-functions/unlockpt.texi: Mention the new module.
490 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
491 * config/srclist.txt: Add unlockpt.c (commented).
493 2010-03-21 Jim Meyering <meyering@redhat.com>
495 maint.mk: prohibit inclusion of "intprops.h" without use
496 * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
498 2010-03-21 Bruno Haible <bruno@clisp.org>
500 New module 'grantpt'.
501 * lib/grantpt.c: New file, from glibc with modifications.
502 * m4/grantpt.m4: New file.
503 * modules/grantpt: New file.
504 * lib/stdlib.in.h (grantpt): New declaration.
505 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
506 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
507 * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
509 * doc/posix-functions/grantpt.texi: Mention the new module.
510 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
511 * config/srclist.txt: Add grantpt.c (commented).
513 2010-03-21 Bruno Haible <bruno@clisp.org>
515 New module 'pt_chown'.
516 * lib/pt_chown.c: New file, from glibc with modifications.
517 * lib/pty-private.h: New file, from glibc with modifications.
518 * modules/pt_chown: New file.
519 * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
521 2010-03-21 Bruno Haible <bruno@clisp.org>
523 Tests for module 'ptsname'.
524 * modules/ptsname-tests: New file.
525 * tests/test-ptsname.c: New file.
527 New module 'ptsname'.
528 * lib/ptsname.c: New file, from glibc with modifications.
529 * m4/ptsname.m4: New file.
530 * modules/ptsname: New file.
531 * lib/stdlib.in.h (ptsname): New declaration.
532 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
533 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
534 * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
536 * doc/posix-functions/ptsname.texi: Mention the new module.
537 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
538 * config/srclist.txt: Add ptsname.c (commented).
540 2010-03-21 Bruno Haible <bruno@clisp.org>
542 Tests for module 'ttyname_r'.
543 * modules/ttyname_r-tests: New file.
544 * tests/test-ttyname_r.c: New file.
546 New module 'ttyname_r'.
547 * lib/ttyname_r.c: New file.
548 * m4/ttyname_r.m4: New file.
549 * modules/ttyname_r: New file.
550 * lib/unistd.in.h (ttyname_r): New declaration.
551 * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
552 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
553 * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
555 * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
556 * doc/posix-functions/ttyname_r.texi: Mention the new module.
558 2010-03-20 Bruno Haible <bruno@clisp.org>
560 signal: Undefine macro definitions in C++ mode.
561 * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
562 sigfillset): Undefine macro definitions from the system header in C++
564 Reported by John W. Eaton <jwe@gnu.org>.
566 2010-03-20 Bruno Haible <bruno@clisp.org>
568 Ensure no #include statements inside extern "C" { ... }.
569 * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
570 contain #include statements.
571 * lib/time.in.h: Likewise.
573 2010-03-20 Bruno Haible <bruno@clisp.org>
575 Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
576 * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
577 (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
578 Reported by John W. Eaton <jwe@gnu.org>.
580 2010-03-20 Bruno Haible <bruno@clisp.org>
582 * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
583 Reported by Jim Meyering.
585 2010-03-20 Bruno Haible <bruno@clisp.org>
587 pipe: Set errno upon failure.
588 * lib/pipe.h: Specify that when -1 is returned, errno is set.
589 * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
590 errno value in error message.
592 2010-03-20 Bruno Haible <bruno@clisp.org>
593 Jim Meyering <meyering@redhat.com>
595 lchown: Avoid "unused variable" warning.
596 * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
598 2010-03-20 Bruno Haible <bruno@clisp.org>
600 Work around unlink() bug on MacOS X 10.5.6.
601 * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
602 attempting to unlink a parent directory.
603 * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
604 MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
605 activate for the replacement function.
606 * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
608 2010-03-20 Bruno Haible <bruno@clisp.org>
610 Fix link errors on Solaris 8.
611 * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
612 * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
614 2010-03-19 Jim Meyering <meyering@redhat.com>
616 regcomp.c: make non-_LIBC implementation of build_range_exp consistent
617 The _LIBC implementation of build_range_exp correctly honors the
618 RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
619 However, the non-_LIBC implementation would ignore that syntax-bit
620 flag and return REG_ERANGE unconditionally.
621 This change makes it honor that flag.
622 * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
623 Make two pointer parameters "const".
624 Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
625 (parse_bracket_exp): Update caller.
627 regex.m4: correct the reversed range endpoint ([b-a]) test
628 * m4/regex.m4: When requiring that [b-a] evoke failure,
629 use RE_NO_EMPTY_RANGES. This makes this entire configure-time
630 test pass once again for x86-based systems.
632 2010-03-19 Bruno Haible <bruno@clisp.org>
634 scandir: Fix link error on Solaris 8.
635 * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
638 2010-03-19 Bruno Haible <bruno@clisp.org>
640 getusershell: Fix documentation.
641 * doc/glibc-functions/endusershell.texi: Refer to the getusershell
643 * doc/glibc-functions/setusershell.texi: Likewise.
645 getusershell: Provide declaration, missing on Solaris 9.
646 * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
647 also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
648 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
649 check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
650 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
651 HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
652 * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
654 * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
656 2010-03-19 Bruno Haible <bruno@clisp.org>
658 wctype: Provide iswblank function.
659 * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
661 * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
662 * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
663 * tests/test-wctype.c (main): Re-enable the iswblank tests.
664 * doc/posix-functions/iswblank.texi: Update.
666 2010-03-19 Bruno Haible <bruno@clisp.org>
668 Tests of module 'pty' in C++ mode.
669 * modules/pty-tests: New file.
670 * tests/test-pty-c++.cc: New file.
671 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
673 2010-03-19 Eric Blake <eblake@redhat.com>
675 logb: fix documentation
676 * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
679 forkpty, openpty: prefer glibc's const-safe prototype
680 * lib/forkpty.c (rpl_forkpty): New file.
681 * lib/openpty.c (rpl_openpty): Likewise.
682 * modules/forkpty (Files): Distribute it.
683 * modules/openpty (Files): Likewise.
684 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses. Move decl
686 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here. Request
687 replacement for for non-const BSD signature.
688 * modules/pty (Makefile.am): Substitute witnesses.
689 * lib/pty.in.h (forkpty, openpty): Declare replacements.
690 * tests/test-forkpty.c: Update signature check.
691 * tests/test-openpty.c: Likewise.
692 * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
693 * doc/glibc-functions/openpty.texi (openpty): Likewise.
695 forkpty, openpty: split functions into new modules
696 * modules/pty (Makefile.am): Substitute new witnesses.
697 (Libraries): Move library detection...
698 * modules/forkpty: ...into new module.
699 * modules/openpty: Another new module.
700 * modules/pty-tests: Rename and split...
701 * modules/forkpty-tests: ...to this...
702 * modules/openpty-tests: ...and this.
703 * tests/test-pty.c: Rename and split...
704 * tests/test-forkpty.c: ...to this...
705 * tests/test-openpty.c: ...and this.
706 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
707 (gl_PTY): Split library searching...
708 * m4/pty.m4 (gl_PTY_LIB): ...into new file.
709 (gl_FORKPTY, gl_OPENPTY): New macros.
710 * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
711 * NEWS: Mention the split.
712 * MODULES.html.sh (Misc): Document the modules.
713 * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
714 * doc/glibc-functions/openpty.texi (openpty): Likewise.
716 pty: improve replacement header
717 * lib/pty.in.h: New file.
718 * modules/pty (Files): Ship it.
719 (Makefile.am): Always build replacement.
720 * m4/pty.m4: Rename...
721 * m4/pty_h.m4: ...to this.
722 (gl_PTY): Modernize setting of witness macros; update check of
723 forkpty to take proper advantage of cache.
724 (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
726 getopt: avoid compiler warning
727 * lib/getopt.c (attribute_hidden): Remove unused macro.
729 2010-03-18 Bruno Haible <bruno@clisp.org>
731 Fix link errors on Solaris 8.
732 * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
733 * modules/search-tests (test_search_c___LDADD): Likewise.
734 * modules/signal-tests (test_signal_c___LDADD): Likewise.
735 * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
736 * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
737 * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
738 * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
739 * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
740 * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
742 2010-03-18 Bruno Haible <bruno@clisp.org>
744 Fix bug introduced on 2010-03-14.
745 * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
746 (gl_SPAWN_H): Require it.
747 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
748 Reported by Simon Josefsson.
750 2010-03-18 Bruno Haible <bruno@clisp.org>
752 Fix typo introduced on 2009-12-31.
753 * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
754 posix_spawn_file_actions_adddup2.
756 2010-03-17 Bert Wesarg <bert.wesarg@googlemail.com> (tiny change)
757 and Eric Blake <eblake@redhat.com>
759 test-vc-list-files-git: make more robust
760 * tests/test-vc-list-files-git.sh: Unset problematic environment
761 variables. Chain commands together.
763 2010-03-17 Ludovic Courtès <ludo@gnu.org> (tiny change)
765 * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
766 `AC_CHECK_DECL' invocation.
768 2010-03-15 Sergey Poznyakoff <gray@gnu.org.ua>
770 * lib/inttostr.c (inttostr): Make sure the invocation of verify
771 appears before executable statements. Suggested by Petr Sumbera
772 <Petr.Sumbera@Sun.COM>.
774 2010-03-14 Bruno Haible <bruno@clisp.org>
776 * tests/test-flock.c (test_exclusive): Comment out a test that causes
777 portability problems. Instead use a simpler test.
778 (main): Check that invalid arguments are rejected only on Linux.
780 2010-03-14 Bruno Haible <bruno@clisp.org>
782 Fix bug introduced on 2009-12-31.
783 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
784 gl_PREREQ_SYS_H_WINSOCK2 always.
785 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
786 SYS_SOCKET_H variable.
787 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
789 * m4/ctype.m4 (gl_CTYPE_H): Update comments.
790 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
791 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
792 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
793 * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
795 2010-03-14 Bruno Haible <bruno@clisp.org>
797 Fix values returned by sinl, cosl.
798 * lib/trigl.h: Add specification comments.
799 * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
800 that combines the values from the precomputed table with the values of
801 the Chebyshev polynomials.
803 2010-03-14 Bruno Haible <bruno@clisp.org>
805 Fix compilation error when modules 'posix_spawn[p]' are not used.
806 * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
807 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
809 2010-03-14 Bruno Haible <bruno@clisp.org>
811 Fix compilation error on mingw when module 'time_r' is not used.
812 * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
814 * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
815 * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
816 * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
817 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
819 2010-03-14 Bruno Haible <bruno@clisp.org>
821 Fix compilation error with Sun C.
822 * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
823 Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
824 instead of GCC specific ULONG_LONG_MAX.
825 * lib/xstrtoll.c: Likewise.
826 * lib/xstrtoull.c: Likewise.
828 2010-03-13 Bruno Haible <bruno@clisp.org>
830 Allow the user to disable C++ code and tests.
831 * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
832 (gl_PROG_ANSI_CXX): Require it.
834 2010-03-13 Bruno Haible <bruno@clisp.org>
836 * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
839 2010-03-13 Bruno Haible <bruno@clisp.org>
841 Test that gnulib does not break the standard C++ headers.
842 * tests/test-locale-c++2.cc: New file.
843 * modules/locale-tests (Files): Add it.
844 (Makefile.am): Compile it for test-locale-c++.
845 * tests/test-math-c++2.cc: New file.
846 * modules/math-tests (Files): Add it.
847 (Makefile.am): Compile it for test-math-c++.
848 * tests/test-signal-c++2.cc: New file.
849 * modules/signal-tests (Files): Add it.
850 (Makefile.am): Compile it for test-signal-c++.
851 * tests/test-stdio-c++2.cc: New file.
852 * modules/stdio-tests (Files): Add it.
853 (Makefile.am): Compile it for test-stdio-c++.
854 * tests/test-stdlib-c++2.cc: New file.
855 * modules/stdlib-tests (Files): Add it.
856 (Makefile.am): Compile it for test-stdlib-c++.
857 * tests/test-string-c++2.cc: New file.
858 * modules/string-tests (Files): Add it.
859 (Makefile.am): Compile it for test-string-c++.
860 * tests/test-time-c++2.cc: New file.
861 * modules/time-tests (Files): Add it.
862 (Makefile.am): Compile it for test-time-c++.
863 Reported by John W. Eaton <jwe@gnu.org>.
865 2010-03-13 Bruno Haible <bruno@clisp.org>
867 * gnulib-tool (func_usage): Clarify which options are available for
868 --create-testdir and --create-megatestdir.
870 2010-03-13 Bruno Haible <bruno@clisp.org>
872 Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
873 * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
874 * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
875 * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
876 strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
878 Reported by Jim Meyering.
880 2010-03-12 Simon Josefsson <simon@josefsson.org>
882 * gnulib-tool (func_import): Explain origin of code.
884 2010-03-12 Bruno Haible <bruno@clisp.org>
886 Fix problem with automake's definition of CXXLINK.
887 * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
888 Reported by Simon Josefsson and Ludovic Courtès.
890 2010-03-12 Bruno Haible <bruno@clisp.org>
892 * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
895 2010-03-11 Bruno Haible <bruno@clisp.org>
897 Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
898 * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
899 whether the system provides one variant or multiple variants of the
901 * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
903 (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
904 _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
905 Reported by Jim Meyering.
907 2010-03-09 Simon Josefsson <simon@josefsson.org>
909 * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
911 2010-03-08 Bruno Haible <bruno@clisp.org>
913 gnulib-tool: Add support for --libtool in --create-testdir.
914 * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
915 (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
917 2010-03-08 Eric Blake <eblake@redhat.com>
919 gnulib-tool.texi: mention possibility of git submodule
920 * doc/gnulib-tool.texi (VCS Issues): Add details about using git
922 * doc/.gitignore: Ignore another generated file.
924 2010-03-08 Karl Berry <karl@gnu.org>
926 * doc/gnulib-tool.texi (VCS Issues): Mention third option
927 of committing gnulib files while skipping others.
929 2010-03-07 Bruno Haible <bruno@clisp.org>
931 Tests of module 'wctype' in C++ mode.
932 * tests/test-wctype-c++.cc: New file.
933 * modules/wctype-tests (Files): Add it and tests/signature.h.
934 (Depends-on): Add ansi-c++-opt.
935 (Makefile.am): Arrange to compile and run test-wctype-c++.
937 Tests of module 'wchar' in C++ mode.
938 * tests/test-wchar-c++.cc: New file.
939 * modules/wchar-tests (Files): Add it and tests/signature.h.
940 (Depends-on): Add ansi-c++-opt.
941 (Makefile.am): Arrange to compile and run test-wchar-c++.
942 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
945 Tests of module 'unistd' in C++ mode.
946 * tests/test-unistd-c++.cc: New file.
947 * modules/unistd-tests (Files): Add it and tests/signature.h.
948 (Depends-on): Add ansi-c++-opt.
949 (Makefile.am): Arrange to compile and run test-unistd-c++.
950 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
953 Tests of module 'time' in C++ mode.
954 * tests/test-time-c++.cc: New file.
955 * modules/time-tests (Files): Add it and tests/signature.h.
956 (Depends-on): Add ansi-c++-opt.
957 (Makefile.am): Arrange to compile and run test-time-c++.
958 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
960 Tests of module 'sys_time' in C++ mode.
961 * tests/test-sys_time-c++.cc: New file.
962 * modules/sys_time-tests (Files): Add it and tests/signature.h.
963 (Depends-on): Add ansi-c++-opt.
964 (Makefile.am): Arrange to compile and run test-sys_time-c++.
965 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
968 Tests of module 'sys_stat' in C++ mode.
969 * tests/test-sys_stat-c++.cc: New file.
970 * modules/sys_stat-tests (Files): Add it and tests/signature.h.
971 (Depends-on): Add ansi-c++-opt.
972 (Makefile.am): Arrange to compile and run test-sys_stat-c++.
973 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
976 Tests of module 'sys_socket' in C++ mode.
977 * tests/test-sys_socket-c++.cc: New file.
978 * modules/sys_socket-tests (Files): Add it and tests/signature.h.
979 (Depends-on): Add ansi-c++-opt.
980 (Makefile.am): Arrange to compile and run test-sys_socket-c++.
981 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
984 Tests of module 'sys_select' in C++ mode.
985 * tests/test-sys_select-c++.cc: New file.
986 * modules/sys_select-tests (Files): Add it and tests/signature.h.
987 (Depends-on): Add ansi-c++-opt.
988 (Makefile.am): Arrange to compile and run test-sys_select-c++.
989 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
992 Tests of module 'sys_ioctl' in C++ mode.
993 * tests/test-sys_ioctl-c++.cc: New file.
994 * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
995 (Depends-on): Add ansi-c++-opt.
996 (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
997 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1000 Tests of module 'string' in C++ mode.
1001 * tests/test-string-c++.cc: New file.
1002 * modules/string-tests (Files): Add it and tests/signature.h.
1003 (Depends-on): Add ansi-c++-opt.
1004 (Makefile.am): Arrange to compile and run test-string-c++.
1005 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1006 gl_MODULE_INDICATOR.
1008 Tests of module 'stdlib' in C++ mode.
1009 * tests/test-stdlib-c++.cc: New file.
1010 * modules/stdlib-tests (Files): Add it and tests/signature.h.
1011 (Depends-on): Add ansi-c++-opt.
1012 (Makefile.am): Arrange to compile and run test-stdlib-c++.
1013 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1014 gl_MODULE_INDICATOR.
1016 Tests of module 'stdio' in C++ mode.
1017 * tests/test-stdio-c++.cc: New file.
1018 * modules/stdio-tests (Files): Add it and tests/signature.h.
1019 (Depends-on): Add ansi-c++-opt.
1020 (Makefile.am): Arrange to compile and run test-stdio-c++.
1021 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1022 gl_MODULE_INDICATOR.
1024 Tests of module 'spawn' in C++ mode.
1025 * tests/test-spawn-c++.cc: New file.
1026 * modules/spawn-tests (Files): Add it and tests/signature.h.
1027 (Depends-on): Add ansi-c++-opt.
1028 (Makefile.am): Arrange to compile and run test-spawn-c++.
1029 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1030 gl_MODULE_INDICATOR.
1032 Tests of module 'signal' in C++ mode.
1033 * tests/test-signal-c++.cc: New file.
1034 * modules/signal-tests (Files): Add it and tests/signature.h.
1035 (Depends-on): Add ansi-c++-opt.
1036 (Makefile.am): Arrange to compile and run test-signal-c++.
1037 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1038 gl_MODULE_INDICATOR.
1040 Tests of module 'search' in C++ mode.
1041 * tests/test-search-c++.cc: New file.
1042 * modules/search-tests (Files): Add it and tests/signature.h.
1043 (Depends-on): Add ansi-c++-opt.
1044 (Makefile.am): Arrange to compile and run test-search-c++.
1045 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1046 gl_MODULE_INDICATOR.
1048 Tests of module 'math' in C++ mode.
1049 * tests/test-math-c++.cc: New file.
1050 * modules/math-tests (Files): Add it and tests/signature.h.
1051 (Depends-on): Add ansi-c++-opt.
1052 (Makefile.am): Arrange to compile and run test-math-c++.
1053 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1055 Tests of module 'locale' in C++ mode.
1056 * tests/test-locale-c++.cc: New file.
1057 * modules/locale-tests (Files): Add it and tests/signature.h.
1058 (Depends-on): Add ansi-c++-opt.
1059 (Makefile.am): Arrange to compile and run test-locale-c++.
1060 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1061 gl_MODULE_INDICATOR.
1063 Tests of module 'langinfo' in C++ mode.
1064 * tests/test-langinfo-c++.cc: New file.
1065 * modules/langinfo-tests (Files): Add it and tests/signature.h.
1066 (Depends-on): Add ansi-c++-opt.
1067 (Makefile.am): Arrange to compile and run test-langinfo-c++.
1068 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1069 gl_MODULE_INDICATOR.
1071 Tests of module 'iconv-h' in C++ mode.
1072 * tests/test-iconv-h-c++.cc: New file.
1073 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1074 (Depends-on): Add ansi-c++-opt.
1075 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1077 Tests of module 'glob' in C++ mode.
1078 * tests/test-glob-c++.cc: New file.
1079 * modules/glob-tests (Files): Add it.
1080 (Depends-on): Add ansi-c++-opt.
1081 (Makefile.am): Arrange to compile and run test-glob-c++.
1083 Tests of module 'fcntl-h' in C++ mode.
1084 * tests/test-fcntl-h-c++.cc: New file.
1085 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1086 (Depends-on): Add ansi-c++-opt.
1087 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1088 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1089 gl_MODULE_INDICATOR.
1091 Tests of module 'dirent' in C++ mode.
1092 * tests/test-dirent-c++.cc: New file.
1093 * modules/dirent-tests (Files): Add it and tests/signature.h.
1094 (Depends-on): Add ansi-c++-opt.
1095 (Makefile.am): Arrange to compile and run test-dirent-c++.
1096 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1097 gl_MODULE_INDICATOR.
1099 New module 'ansi-c++-opt'.
1100 * modules/ansi-c++-opt: New file.
1101 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1103 Document C++ namespace mode.
1104 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1106 wctype: Avoid #define replacements in C++ mode.
1107 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1108 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1109 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1110 In C++, define a namespaced alias symbol.
1111 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1112 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1113 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1116 wchar: Avoid #define replacements in C++ mode.
1117 * lib/wchar.in.h: Include c++defs.h.
1118 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1119 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1121 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1122 * modules/wchar (Depends-on): Add c++defs.
1123 (Makefile.am): Update wchar.h rule.
1125 unistd: Avoid #define replacements in C++ mode.
1126 * lib/unistd.in.h: Include c++defs.h.
1127 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1128 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1129 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1130 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1131 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1132 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1135 * modules/unistd (Depends-on): Add c++defs.
1136 (Makefile.am): Update unistd.h rule.
1138 time: Avoid #define replacements in C++ mode.
1139 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1140 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1141 define a namespaced alias symbol.
1142 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1143 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1144 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1145 * modules/time (Depends-on): Add c++defs, warn-on-use.
1146 (Makefile.am): Update time.h rule.
1147 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1148 * modules/nanosleep (configure.ac): Likewise.
1149 * modules/strptime (configure.ac): Likewise.
1150 * modules/timegm (configure.ac): Likewise.
1152 sys_time: Avoid #define replacements in C++ mode.
1153 * lib/sys_time.in.h: Include c++defs.h.
1154 (gettimeofday): In C++, define a namespaced alias symbol.
1155 * modules/sys_time (Depends-on): Add c++defs.
1156 (Makefile.am): Update sys/time.h rule.
1158 sys_stat: Avoid #define replacements in C++ mode.
1159 * lib/sys_stat.in.h: Include c++defs.h.
1160 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1161 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1162 namespaced alias symbol.
1163 In C++, define a namespaced alias symbol.
1164 * modules/sys_stat (Depends-on): Add c++defs.
1165 (Makefile.am): Update sys/stat.h rule.
1167 sys_socket: Avoid #define replacements in C++ mode.
1168 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1169 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1170 definitions also when the system has a <sys/socket.h>.
1171 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1172 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1173 In C++, define a namespaced alias symbol.
1174 * modules/sys_socket (Depends-on): Add c++defs.
1175 (Makefile.am): Update sys/socket.h rule.
1177 sys_select: Avoid #define replacements in C++ mode.
1178 * lib/sys_select.in.h: Include c++defs.h. Enable the function
1179 definitions also when the system has a <sys/select.h>.
1180 (select): In C++, define a namespaced alias symbol.
1181 * modules/sys_select (Depends-on): Add c++defs.
1182 (Makefile.am): Update sys/select.h rule.
1184 sys_ioctl: Avoid #define replacements in C++ mode.
1185 * lib/sys_ioctl.in.h: Include c++defs.h.
1186 (ioctl): In C++, define a namespaced alias symbol.
1187 * modules/sys_ioctl (Depends-on): Add c++defs.
1188 (Makefile.am): Update sys/ioctl.h rule.
1190 string: Avoid #define replacements in C++ mode.
1191 * lib/string.in.h: Include c++defs.h.
1192 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1193 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1194 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1195 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1196 strsignal, strverscmp): In C++, define a namespaced alias symbol.
1197 * modules/string (Depends-on): Add c++defs.
1198 (Makefile.am): Update string.h rule.
1200 stdlib: Avoid #define replacements in C++ mode.
1201 * lib/stdlib.in.h: Include c++defs.h.
1202 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1203 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1204 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1205 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1207 * modules/stdlib (Depends-on): Add c++defs.
1208 (Makefile.am): Update stdlib.h rule.
1210 stdio: Avoid #define replacements in C++ mode.
1211 * lib/stdio.in.h: Include c++defs.h.
1212 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1213 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1214 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1215 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1216 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1217 namespaced alias symbol.
1218 * modules/stdio (Depends-on): Add c++defs.
1219 (Makefile.am): Update stdio.h rule.
1221 spawn: Avoid #define replacements in C++ mode.
1222 * lib/spawn.in.h: Include c++defs.h.
1223 (posix_spawn, posix_spawnp, posix_spawnattr_init,
1224 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1225 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1226 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1227 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1228 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1229 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1230 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1231 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1232 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1233 In C++, define a namespaced alias symbol.
1234 * modules/spawn (Depends-on): Add c++defs.
1235 (Makefile.am): Update spawn.h rule.
1237 signal: Avoid #define replacements in C++ mode.
1238 * lib/signal.in.h: Include c++defs.h.
1239 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1240 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1241 namespaced alias symbol.
1242 * modules/signal (Depends-on): Add c++defs.
1243 (Makefile.am): Update signal.h rule.
1245 search: Avoid #define replacements in C++ mode.
1246 * lib/search.in.h: Include c++defs.h.
1247 (_gl_search_compar_fn, _gl_search_action_fn): New types.
1248 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1250 * modules/search (Depends-on): Add c++defs.
1251 (Makefile.am): Update search.h rule.
1253 math: Avoid #define replacements in C++ mode.
1254 * lib/math.in.h: Include c++defs.h.
1255 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1256 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1257 trunc, truncl): In C++, define a namespaced alias symbol.
1258 * modules/math (Depends-on): Add c++defs.
1259 (Makefile.am): Update math.h rule.
1261 locale: Avoid #define replacements in C++ mode.
1262 * lib/locale.in.h: Include c++defs.h.
1263 (duplocale): In C++, define a namespaced alias symbol.
1264 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1265 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1266 * modules/locale (Depends-on): Add c++defs.
1267 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1269 langinfo: Avoid #define replacements in C++ mode.
1270 * lib/langinfo.in.h: Include c++defs.h.
1271 (nl_langinfo): In C++, define a namespaced alias symbol.
1272 * modules/langinfo (Depends-on): Add c++defs.
1273 (Makefile.am): Update langinfo.h rule.
1275 iconv-h: Avoid #define replacements in C++ mode.
1276 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1277 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1279 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1280 whenever iconv is present.
1281 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1282 (Makefile.am): Update iconv.h rule.
1284 glob: Avoid #define replacements in C++ mode.
1285 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1286 (_gl_glob_errfunc_fn): New type.
1287 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1289 * modules/glob (Depends-on): Add c++defs, warn-on-use.
1290 (Makefile.am): Update glob.h rule.
1292 fcntl-h: Avoid #define replacements in C++ mode.
1293 * lib/fcntl.in.h: Include c++defs.h.
1294 (fcntl, open, openat): In C++, define a namespaced alias symbol.
1295 * modules/fcntl-h (Depends-on): Add c++defs.
1296 (Makefile.am): Update fcntl.h rule.
1298 dirent: Avoid #define replacements in C++ mode.
1299 * lib/dirent.in.h: Include c++defs.h.
1300 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1301 namespaced alias symbol.
1302 (dirfd): Update declaration.
1303 * modules/dirent (Depends-on): Add c++defs.
1304 (Makefile.am): Update dirent.h rule.
1306 ctype: Make it usable in C++ code.
1307 * lib/ctype.in.h: Include c++defs.h.
1308 (isblank): Declare as extern "C".
1309 * modules/ctype (Depends-on): Add c++defs.
1310 (Makefile.am): Update ctype.h rule.
1312 New module 'c++defs'.
1313 * modules/c++defs: New file.
1314 * build-aux/c++defs.h: New file.
1315 Reported by John W. Eaton <jwe@gnu.org>.
1317 2010-03-07 Bruno Haible <bruno@clisp.org>
1319 logb: Provide missing declaration for Cygwin.
1320 * lib/math.in.h (logb): New declaration.
1321 * m4/logb.m4: New file.
1322 * modules/logb (Files): Add m4/logb.m4.
1323 (Depends-on): Add math.
1324 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1325 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1326 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1327 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1328 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1330 2010-03-07 Bruno Haible <bruno@clisp.org>
1332 Fix test-cond link error.
1333 * tests/test-cond.c: Include <stdio.h>.
1335 2010-03-07 Bruno Haible <bruno@clisp.org>
1337 Fix test-dirent-safer link error.
1338 * modules/dirent-safer-tests (Makefile.am): Define
1339 test_dirent_safer_LDADD.
1341 2010-03-07 Bruno Haible <bruno@clisp.org>
1343 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1344 among default module list.
1346 2010-03-07 Bruno Haible <bruno@clisp.org>
1348 Fix link error on platforms with GNU libiconv.
1349 * modules/unistr/u8-strcoll-tests (Makefile): Define
1350 test_u8_strcoll_LDADD.
1351 * modules/unistr/u16-strcoll-tests (Makefile): Define
1352 test_u16_strcoll_LDADD.
1353 * modules/unistr/u32-strcoll-tests (Makefile): Define
1354 test_u32_strcoll_LDADD.
1356 2010-03-07 Bruno Haible <bruno@clisp.org>
1358 Use POSIX declarations for socket functions.
1359 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1360 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1361 rpl_sendto): Change declaration to match POSIX.
1362 * lib/connect.c (rpl_connect): Likewise.
1363 * lib/accept.c (rpl_accept): Likewise.
1364 * lib/bind.c (rpl_bind): Likewise.
1365 * lib/getpeername.c (rpl_getpeername): Likewise.
1366 * lib/getsockname.c (rpl_getsockname): Likewise.
1367 * lib/recv.c (rpl_recv): Likewise.
1368 * lib/send.c (rpl_send): Likewise.
1369 * lib/recvfrom.c (rpl_recvfrom): Likewise.
1370 * lib/sendto.c (rpl_sendto): Likewise.
1372 2010-03-06 Bruno Haible <bruno@clisp.org>
1374 Clarify access, euidaccess, faccessat.
1375 * doc/posix-functions/faccessat.texi: Mention security problem under
1376 "Other problems", not "Portability problems".
1377 * doc/posix-functions/access.texi: Likewise. Mention a related security
1379 * doc/glibc-functions/euidaccess.texi: Mention security problems.
1380 * lib/euidaccess.c: Add comments about platforms.
1381 * lib/unistd.in.h (access, euidaccess): Add warnings.
1383 2010-03-07 Bruno Haible <bruno@clisp.org>
1385 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1386 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1387 (POSIX_SPAWN_SETSCHEDULER): Likewise.
1388 (POSIX_SPAWN_USEVFORK): Define in a way that works when
1389 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1390 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1391 declare when POSIX_SPAWN_SETSCHEDULER is zero.
1392 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1393 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1394 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1395 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1396 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1397 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1398 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1399 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1400 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1401 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1402 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1403 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1404 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1406 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1407 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1408 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1410 * tests/test-spawn.c (main): Make it work when
1411 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1413 2010-03-07 Bruno Haible <bruno@clisp.org>
1415 Fix incorrect Makefile.am generation in German locale.
1416 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1417 Execute sed command with character range in C locale.
1419 2010-03-06 Bruno Haible <bruno@clisp.org>
1421 Tests for module 'iconv-h'.
1422 * modules/iconv-h-tests: New file.
1423 * tests/test-iconv-h.c: New file.
1425 New module 'iconv-h'.
1426 * modules/iconv-h: New file.
1427 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1428 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1429 (configure.ac): Remove gl_ICONV_H.
1430 (Makefile.am): Remove rule for iconv.h.
1432 2010-03-06 Bruno Haible <bruno@clisp.org>
1434 More consistent naming of *.m4 files.
1435 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1436 * modules/wctype (Files): Update.
1438 More consistent naming of *.m4 files.
1439 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1440 * modules/wchar (Files): Update.
1442 2010-03-06 Jim Meyering <meyering@redhat.com>
1444 euidaccess: relax license to LGPLv2+
1445 * modules/euidaccess (License): Relax to LGPLv2+.
1447 2010-03-06 Bruno Haible <bruno@clisp.org>
1449 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1450 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1451 (Makefile.am): Augment lib_SOURCES instead.
1453 2010-03-04 Jim Meyering <meyering@redhat.com>
1455 utime: remove obsolete module
1456 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1457 unnecessary for years, and has been marked as obsolete for 10 months.
1458 * modules/utime: Remove file.
1459 * lib/utime.c: Remove file.
1460 * m4/utime.m4: Remove file.
1461 * m4/utimes-null.m4: Remove file.
1462 * doc/posix-functions/utime.texi (utime): Remove reference to
1463 the module. Move the sole "fixed by gnulib" item into the
1464 "problems not fixed by Gnulib" list.
1465 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1467 2010-03-05 Simon Josefsson <simon@josefsson.org>
1469 * modules/exit (License): Relax license to LGPLv2+.
1470 (Status): Mark as obsolete.
1471 * NEWS: Mention deprecated 'exit' module.
1472 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1473 of now obsolete 'exit'.
1475 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1477 fts-lgpl: remove unused module
1478 * modules/fts-lgpl: Remove.
1479 * MODULES.html.sh (func_all_modules): Adjust.
1480 * check-module (find_included_lib_files): Adjust.
1481 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1483 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
1485 copy-acl: enhance Solaris ACL error handling
1486 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1487 * lib/set-mode-acl.c (qset_acl): Likewise.
1489 2010-03-02 Bruno Haible <bruno@clisp.org>
1491 spawn: Don't override the system defined values on FreeBSD 8.
1492 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1493 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1494 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1495 if HAVE_POSIX_SPAWN is 1.
1496 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1498 2010-03-01 Bruno Haible <bruno@clisp.org>
1500 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1503 2010-02-25 Bruno Haible <bruno@clisp.org>
1505 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1506 * gnulib-tool: Define 'echo' as a function only before the ksh alias
1507 setting, not afterwards.
1508 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1510 2010-02-24 Eric Blake <eblake@redhat.com>
1512 bootstrap, git-version-gen: use timestamp
1513 * build-aux/git-version-gen (scriptversion): Force UTC.
1514 * build-aux/bootstrap (scriptversion): New variable.
1516 bootstrap: allow older git
1517 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1518 older than 1.6.4. Requested by the libvirt project.
1520 2010-02-23 Eric Blake <eblake@redhat.com>
1522 warn-on-use: work with old autoconf
1523 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1524 AS_VAR semantics of autoconf 2.60.
1525 Reported by Bruno Haible.
1527 bootstrap: improve some comments
1528 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
1529 clarification comments.
1531 gettimeofday: provide correct function
1532 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1533 when replacement is declared, otherwise provide gettimeofday.
1534 Reported by Michael Goffioul.
1536 2010-02-23 Jim Meyering <meyering@redhat.com>
1538 lib-ignore: relax license to "unlimited", not LGPLv2+
1539 * modules/lib-ignore (License): Relax to "unlimited".
1541 2010-02-23 Jim Meyering <meyering@redhat.com>
1543 lib-ignore: relax license to LGPLv2+
1544 * modules/lib-ignore (License): Relax to LGPLv2+.
1546 2010-02-22 Eric Blake <eblake@redhat.com>
1548 lseek: avoid bash 3.2 broken pipe bug
1549 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1550 warning from bash 3.2.
1551 Reported by Ben Pfaff, with analysis from Bruno Haible.
1553 bootstrap: support non-FSF copyright holder
1554 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1555 bootstrap.conf override of COPYRIGHT_HOLDER.
1556 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1558 bootstrap: interoperate with gettext 0.14.1
1559 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1561 bootstrap: allow for alternate submodule location
1562 * build-aux/bootstrap (gnulib_path): New variable; use instead of
1563 hardcoding submodule location.
1564 (gnulib_mk): Allow direct use of Makefile.am.
1566 bootstrap: use GNULIB_SRCDIR to reduce disk usage
1567 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1568 rather than reconfiguring where the submodule points.
1570 gettimeofday: restore support for platforms that lack function
1571 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1572 replacement if function is missing.
1573 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1574 * modules/sys_time (Makefile.am): Substitute it.
1575 * lib/sys_time.in.h (gettimeofday): Check it.
1576 Reported by Michael Goffioul.
1578 2010-02-21 Bruno Haible <bruno@clisp.org>
1580 * lib/stdio.in.h (obstack_printf): Fix typo.
1582 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
1584 vc-list-files: use bzr ls's -R option
1585 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1586 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1588 2010-02-21 Jim Meyering <meyering@redhat.com>
1590 init.sh: fix EXEEXT shims to work also for names like test-prog
1591 * tests/init.sh: Re-exec a better shell, when needed.
1592 If the current shell lacks support for posix $(...), an init.sh-using
1593 test will now try to find a shell that supports that. If EXEEXT is
1594 nonempty, we also require support for hyphen-in-alias-name and shell
1595 substitutions like ${var#glob}. Failure to find such a shell results
1598 2010-02-21 Bruno Haible <bruno@clisp.org>
1600 Really work around around "broken pipe" error message from bash 3.2.
1601 * gnulib-tool (func_reset_sigpipe): Remove function.
1602 (echo): In bash 3.2, define to a function that uses printf.
1603 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1605 2010-02-20 Bruno Haible <bruno@clisp.org>
1607 Restore support for automake 1.9.6 with autoconf 2.61.
1608 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1609 Reported by James Youngman <jay@gnu.org>.
1611 2010-02-20 Bruno Haible <bruno@clisp.org>
1613 Improve *printf warning condition.
1614 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1615 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1616 and the function is overridden due to SIGPIPE emulation.
1618 2010-02-20 Bruno Haible <bruno@clisp.org>
1620 * lib/stdio.in.h: Tweak comments.
1622 2010-02-19 Bruno Haible <bruno@clisp.org>
1624 Make it easier to find modules. New gnulib-tool option '--find'.
1625 * gnulib-tool: New option --find.
1626 (func_usage): Document it.
1627 (func_sanitize_modulelist): New function, extracted from
1629 (func_all_modules): Invoke it.
1630 * doc/gnulib-tool.texi (Which modules?): New node.
1632 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
1634 * lib/sys_select.in.h: Provide select replacement even if
1635 sys/select.h exists on a system, for Interix.
1637 2010-02-18 Jim Meyering <meyering@redhat.com>
1639 init.sh: don't use $(...) just yet
1640 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1641 to accommodate e.g., Solaris' /bin/sh.
1643 2010-02-17 Bruno Haible <bruno@clisp.org>
1645 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1646 Reported by Ludovic Courtès <ludo@gnu.org>.
1648 2010-02-16 Simon Josefsson <simon@josefsson.org>
1650 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1651 linking with -lintl.
1653 2010-02-17 Simon Josefsson <simon@josefsson.org>
1655 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1656 if not provided by the system's netdb.h. Reported by
1657 ludo@gnu.org (Ludovic Courtès).
1659 2010-02-15 Jim Meyering <meyering@redhat.com>
1661 init.sh: improve portability and efficiency
1662 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1663 "dummy" in a for loop.
1664 Use '!', not '^' to select the complement of a character set used
1665 in a "case" statement.
1666 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1667 Suggestions from Eric Blake.
1669 init.sh: automatically accommodate programs with the .exe suffix
1670 Automatically arrange for an invocation of "prog" to execute the
1671 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
1672 may use the simpler "prog", yet still work when built on a system
1673 that requires specifying the added suffix.
1674 Do this by constructing a function named "prog" that invokes
1675 "prog.exe" for each .exe file in selected directories.
1676 * tests/init.sh (find_exe_basenames_): New function.
1677 (create_exe_shim_functions_): New function.
1678 (path_prepend_): Use it.
1680 maint.mk: mark syntax-check sc_*.m rules as .PHONY
1681 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1682 "make -t syntax-check" doesn't create a ton of sc_*.m files.
1684 2010-02-14 Jim Meyering <meyering@redhat.com>
1686 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1687 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1688 (sc_prohibit_hash_pjw_without_use): New rule.
1690 maint.mk: allow the default upload destination dir to be overridden
1691 * top/maint.mk (upload_dest_dir_): Define with a default that
1692 preserves the status quo.
1693 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1694 Reported by Peter Simons.
1696 maint.mk: prohibit inclusion of "hash.h" without_use
1697 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1699 2010-02-10 Jim Meyering <meyering@redhat.com>
1701 maint.mk: prohibit inclusion of "ignore-value.h" without_use
1702 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1704 2010-02-09 Eric Blake <ebb9@byu.net>
1705 and Bruno Haible <bruno@clisp.org>
1707 obstack-printf-posix: ensure declaration
1708 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1709 extracted from gl_FUNC_OBSTACK_PRINTF.
1710 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1711 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1713 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1714 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1717 2010-02-08 Bruno Haible <bruno@clisp.org>
1719 gnulib-tool: Fix typo in 2010-02-07 commit.
1720 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1721 Reported by Eric Blake.
1723 2010-02-07 Bruno Haible <bruno@clisp.org>
1725 gnulib-tool: Fix up caching patches.
1726 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1727 option --no-cache. Use associative arrays when supported by the shell.
1728 (sed_comments): New variable.
1729 (modcache): Renamed from do_cache.
1730 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1731 abbreviate unnecessarily.
1732 (have_associative): New variable.
1733 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1734 way also for ksh and zsh.
1735 (func_init_sed_convert_to_cache_statements): New function, extracted
1736 from func_cache_lookup_module. Add support for associative arrays.
1737 Don't set the c_MODULE_cached variable here. Ignore all lines before
1738 the first field header. Remove only the final newline, not all trailing
1739 newlines. Support empty fields correctly. Limit the use of 'eval' to
1741 (func_get_description, func_get_status, func_get_notice,
1742 func_get_applicability, func_get_filelist, func_get_dependencies,
1743 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1744 func_get_automake_snippet, func_get_include_directive,
1745 func_get_link_directive, func_get_license, func_get_maintainer):
1746 Update documentation. List the unoptimized code first. Add support for
1747 associative arrays. Limit the use of 'eval' to assignments.
1748 (func_get_applicability): Undo stylistic pessimisations.
1749 (func_get_automake_snippet, func_get_include_directive): Reduce code
1751 (func_modules_transitive_closure, func_modules_add_dummy,
1752 func_modules_notice, func_modules_to_filelist, func_add_file,
1753 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1754 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1755 func_create_testdir, func_create_megatestdir): Update documentation.
1757 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1759 * gnulib-tool (func_cache_lookup_module): Store the module name
1760 belonging to the cache variable; error out if two different
1761 module names map to the same cache variable name.
1763 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1765 gnulib-tool: Make caching optional.
1766 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1767 Update matching short versions of --no-changelog.
1768 (func_usage): Update.
1769 (sed_extract_cache_prog): Renamed from ...
1770 (sed_extract_prog): ... this; revert to old extraction script.
1771 (func_get_description, func_get_status)
1772 (func_get_notice, func_get_applicability, func_get_filelist)
1773 (func_get_dependencies, func_get_autoconf_early_snippet)
1774 (func_get_autoconf_snippet, func_get_automake_snippet)
1775 (func_get_include_directive, func_get_link_directive)
1776 (func_get_license, func_get_maintainer): If $do_cache is false,
1777 use old, non-caching extraction scripts.
1778 Suggestion by Bruno Haible.
1780 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1782 gnulib-tool: cache module metainformation.
1783 * gnulib-tool (sed_extract_prog): Match newline before each
1784 header, and rewrite header to a shell variable suffix.
1785 (func_cache_var, func_cache_lookup_module): New functions,
1786 to turn a module name into a cache variable prefix, and to
1787 look up and cache module metainformation.
1788 (func_get_description, func_get_status)
1789 (func_get_notice, func_get_applicability, func_get_filelist)
1790 (func_get_dependencies, func_get_autoconf_early_snippet)
1791 (func_get_autoconf_snippet, func_get_automake_snippet)
1792 (func_get_include_directive, func_get_link_directive)
1793 (func_get_license, func_get_maintainer): Use
1794 func_cache_lookup_module.
1796 2010-02-07 Bruno Haible <bruno@clisp.org>
1798 fnctl: Fix missing dependency.
1799 * modules/fcntl (Depends-on): Add getdtablesize.
1800 Reported by John W. Eaton <jwe@gnu.org>.
1802 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1804 Argp: fix recognition of short alias options.
1806 * lib/argp-parse.c (convert_options): Fix improper use of
1807 `|' between character values.
1808 * tests/test-argp.c (group1_option): New alias option
1810 (group1_parser): Special handling for 'r'.
1811 (test15): New test case.
1812 (test_fun): Add test15.
1813 * tests/test-argp-2.sh: Update expected --help and --usage
1816 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1818 * tests/test-argp.c: Fix indentation.
1820 2010-02-04 Eric Blake <ebb9@byu.net>
1822 gettimeofday: expose type of second argument
1823 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1824 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1825 * tests/test-gettimeofday.c: Use it to silence warning.
1826 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1829 2010-02-03 Jim Meyering <meyering@redhat.com>
1831 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1832 * lib/regcomp.c (TYPE_SIGNED): Define.
1833 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1835 regcomp.c: avoid a new -Wshadow warning
1836 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1838 2010-02-01 Jim Meyering <meyering@redhat.com>
1840 removing useless parentheses in cpp #define directives
1841 For motivation, see commit c0221df4, "define STREQ(a,b)
1842 consistently, removing useless parentheses"
1843 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1844 * lib/mountlist.c (MNT_IGNORE): Likewise.
1845 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1847 2010-02-01 Eric Blake <ebb9@byu.net>
1849 sys_time: use link-warning
1850 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1851 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1852 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1853 * modules/sys_time (Depends-on): Add warn-on-use.
1854 (Makefile.am): Always build replacement.
1855 (configure.ac): Update substitutions.
1856 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1857 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1858 bother with SYS_TIME_H.
1859 * modules/gettimeofday (configure.ac): Declare indicator.
1860 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1863 closein-tests: silence compiler warning
1864 * tests/test-closein.c (main): Ignore fread result.
1865 * modules/closein-tests (Depends-on): Add ignore-value.
1867 tests: silence warning about system return
1868 * tests/test-areadlink-with-size.c (main): Ignore system result.
1869 * tests/test-areadlink.c (main): Likewise.
1870 * tests/test-areadlinkat-with-size.c (main): Likewise.
1871 * tests/test-areadlinkat.c (main): Likewise.
1872 * tests/test-canonicalize-lgpl.c (main): Likewise.
1873 * tests/test-canonicalize.c (main): Likewise.
1874 * tests/test-chown.c (main): Likewise.
1875 * tests/test-fchownat.c (main): Likewise.
1876 * tests/test-fdutimensat.c (main): Likewise.
1877 * tests/test-fstatat.c (main): Likewise.
1878 * tests/test-futimens.c (main): Likewise.
1879 * tests/test-lchown.c (main): Likewise.
1880 * tests/test-link.c (main): Likewise.
1881 * tests/test-linkat.c (main): Likewise.
1882 * tests/test-lstat.c (main): Likewise.
1883 * tests/test-mkdir.c (main): Likewise.
1884 * tests/test-mkdirat.c (main): Likewise.
1885 * tests/test-mkfifo.c (main): Likewise.
1886 * tests/test-mkfifoat.c (main): Likewise.
1887 * tests/test-mknod.c (main): Likewise.
1888 * tests/test-readlink.c (main): Likewise.
1889 * tests/test-remove.c (main): Likewise.
1890 * tests/test-rename.c (main): Likewise.
1891 * tests/test-renameat.c (main): Likewise.
1892 * tests/test-rmdir.c (main): Likewise.
1893 * tests/test-symlink.c (main): Likewise.
1894 * tests/test-symlinkat.c (main): Likewise.
1895 * tests/test-unlink.c (main): Likewise.
1896 * tests/test-unlinkat.c (main): Likewise.
1897 * tests/test-utimens.c (main): Likewise.
1898 * tests/test-utimensat.c (main): Likewise.
1899 * modules/areadlink-tests (Depends-on): Add ignore-value.
1900 * modules/areadlink-with-size-tests (Depends-on): Likewise.
1901 * modules/areadlinkat-tests (Depends-on): Likewise.
1902 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1903 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1904 * modules/canonicalize-tests (Depends-on): Likewise.
1905 * modules/chown-tests (Depends-on): Likewise.
1906 * modules/fdutimensat-tests (Depends-on): Likewise.
1907 * modules/futimens-tests (Depends-on): Likewise.
1908 * modules/lchown-tests (Depends-on): Likewise.
1909 * modules/link-tests (Depends-on): Likewise.
1910 * modules/linkat-tests (Depends-on): Likewise.
1911 * modules/lstat-tests (Depends-on): Likewise.
1912 * modules/mkdir-tests (Depends-on): Likewise.
1913 * modules/mkfifo-tests (Depends-on): Likewise.
1914 * modules/mkfifoat-tests (Depends-on): Likewise.
1915 * modules/mknod-tests (Depends-on): Likewise.
1916 * modules/openat-tests (Depends-on): Likewise.
1917 * modules/readlink-tests (Depends-on): Likewise.
1918 * modules/remove-tests (Depends-on): Likewise.
1919 * modules/rename-tests (Depends-on): Likewise.
1920 * modules/renameat-tests (Depends-on): Likewise.
1921 * modules/rmdir-tests (Depends-on): Likewise.
1922 * modules/symlink-tests (Depends-on): Likewise.
1923 * modules/symlinkat-tests (Depends-on): Likewise.
1924 * modules/unlink-tests (Depends-on): Likewise.
1925 * modules/utimens-tests (Depends-on): Likewise.
1926 * modules/utimensat-tests (Depends-on): Likewise.
1928 2010-01-31 Bruno Haible <bruno@clisp.org>
1930 Perform the same test for many <math.h> functions.
1931 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1932 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1933 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1935 * modules/acos (configure.ac): Likewise.
1936 * modules/asin (configure.ac): Likewise.
1937 * modules/atan (configure.ac): Likewise.
1938 * modules/atan2 (configure.ac): Likewise.
1939 * modules/cbrt (configure.ac): Likewise.
1940 * modules/copysign (configure.ac): Likewise.
1941 * modules/cos (configure.ac): Likewise.
1942 * modules/cosh (configure.ac): Likewise.
1943 * modules/erf (configure.ac): Likewise.
1944 * modules/erfc (configure.ac): Likewise.
1945 * modules/exp (configure.ac): Likewise.
1946 * modules/fmod (configure.ac): Likewise.
1947 * modules/hypot (configure.ac): Likewise.
1948 * modules/j0 (configure.ac): Likewise.
1949 * modules/j1 (configure.ac): Likewise.
1950 * modules/jn (configure.ac): Likewise.
1951 * modules/lgamma (configure.ac): Likewise.
1952 * modules/log (configure.ac): Likewise.
1953 * modules/log10 (configure.ac): Likewise.
1954 * modules/log1p (configure.ac): Likewise.
1955 * modules/pow (configure.ac): Likewise.
1956 * modules/remainder (configure.ac): Likewise.
1957 * modules/sin (configure.ac): Likewise.
1958 * modules/sinh (configure.ac): Likewise.
1959 * modules/tan (configure.ac): Likewise.
1960 * modules/tanh (configure.ac): Likewise.
1961 * modules/y0 (configure.ac): Likewise.
1962 * modules/y1 (configure.ac): Likewise.
1963 * modules/yn (configure.ac): Likewise.
1964 Suggested by Paolo Bonzini.
1966 2010-01-31 Bruno Haible <bruno@clisp.org>
1968 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1970 2010-01-31 Bruno Haible <bruno@clisp.org>
1972 Work around getdelim() bug on FreeBSD 8.0.
1973 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1974 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1976 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1978 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1979 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1980 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1982 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1984 2010-01-31 Bruno Haible <bruno@clisp.org>
1986 Work around getline() bug on FreeBSD 8.0.
1987 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1988 and a non-zero size.
1989 * tests/test-getline.c (main): Likewise.
1990 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1991 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1993 2010-01-28 Eric Blake <ebb9@byu.net>
1995 regex: fix build failure
1996 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1999 2010-01-28 Jim Meyering <meyering@redhat.com>
2001 regex: do not ignore memory allocation failure
2002 * lib/regex_internal.c (create_cd_newstate): Detect
2003 re_node_set_init_copy failure. Extracted from glibc commit
2004 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2006 regex: sync more white-space changes from libc
2007 * lib/regex_internal.c: White-space only changes.
2008 * lib/regexec.c: Likewise.
2010 regex: add many uses of __attribute_warn_unused_result__
2011 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2012 * lib/regexec.c: Likewise.
2013 Extracted from a messy glibc commit.
2015 regcomp.c: spelling and merge-artifact from glibc
2016 * lib/regcomp.c: Merge remainder of glibc's
2017 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2019 regcomp.c: sync white-space changes from glibc
2020 * lib/regcomp.c: Merge to accommodate white space
2021 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2023 regcomp.c: do not ignore internal return values
2024 * lib/regcomp.c: Do not ignore internal return values.
2025 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2026 but without its white-space changes and spelling fixes.
2028 regex_internal.h: define __attribute_warn_unused_result__
2029 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2031 maint: add a syntax-check rule to check for vulnerable Makefile.in
2032 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2034 2010-01-27 Jim Meyering <meyering@redhat.com>
2036 ncftpput-ftp: clean up spaces
2037 * build-aux/ncftpput-ftp: Make Copyright line consistent.
2038 Remove trailing blanks.
2040 2010-01-27 Simon Josefsson <simon@josefsson.org>
2042 * build-aux/git-version-gen: Fix copyright statement.
2043 * build-aux/gnupload: Likewise.
2044 * tests/test-arcfour.c: Likewise.
2045 * tests/test-arctwo.c: Likewise.
2046 * tests/test-count-one-bits.c: Likewise.
2047 * tests/test-crc.c: Likewise.
2048 * tests/test-des.c: Likewise.
2049 * tests/test-gc-arcfour.c: Likewise.
2050 * tests/test-gc-arctwo.c: Likewise.
2051 * tests/test-gc-des.c: Likewise.
2052 * tests/test-gc-hmac-md5.c: Likewise.
2053 * tests/test-gc-hmac-sha1.c: Likewise.
2054 * tests/test-gc-md2.c: Likewise.
2055 * tests/test-gc-md4.c: Likewise.
2056 * tests/test-gc-md5.c: Likewise.
2057 * tests/test-gc-pbkdf2-sha1.c: Likewise.
2058 * tests/test-gc-rijndael.c: Likewise.
2059 * tests/test-gc-sha1.c: Likewise.
2060 * tests/test-gc.c: Likewise.
2061 * tests/test-gethostname.c: Likewise.
2062 * tests/test-gettimeofday.c: Likewise.
2063 * tests/test-hash.c: Likewise.
2064 * tests/test-hmac-md5.c: Likewise.
2065 * tests/test-hmac-sha1.c: Likewise.
2066 * tests/test-md2.c: Likewise.
2067 * tests/test-md4.c: Likewise.
2068 * tests/test-md5.c: Likewise.
2069 * tests/test-memchr.c: Likewise.
2070 * tests/test-memchr2.c: Likewise.
2071 * tests/test-memcmp.c: Likewise.
2072 * tests/test-memmem.c: Likewise.
2073 * tests/test-memrchr.c: Likewise.
2074 * tests/test-rawmemchr.c: Likewise.
2075 * tests/test-read-file.c: Likewise.
2076 * tests/test-rijndael.c: Likewise.
2077 * tests/test-sockets.c: Likewise.
2078 * tests/test-strchrnul.c: Likewise.
2079 * tests/test-strstr.c: Likewise.
2080 * tests/test-strtod.c: Likewise.
2081 * build-aux/ncftpput-ftp: Likewise.
2083 2010-01-26 Eric Blake <ebb9@byu.net>
2085 ignore-value: update recommended header name
2086 * modules/ignore-value (Include): Only use <> for headers that
2089 2010-01-26 Jim Meyering <meyering@redhat.com>
2091 test-userspec.c: avoid compiler warnings
2092 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2093 and "initialization discards qualifiers..." warnings.
2094 Put the first "uid" in its own scope, and make char* members "const".
2096 2010-01-25 Bruno Haible <bruno@clisp.org>
2098 gnulib-tool: Make warning diagnostics consistent.
2099 * gnulib-tool (func_warning): New function.
2100 Use it everywhere where gnulib-tool produces output to stderr and it is
2103 2010-01-25 Bruno Haible <bruno@clisp.org>
2105 Fix test dependencies.
2106 * modules/xstrtol-tests (Depends-on): Add inttypes.
2107 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2109 2010-01-25 Pádraig Brady <P@draigBrady.com>
2111 syntax-check: detect incorrect boolean macro values in config.h
2112 * modules/maintainer-makefile (configure.ac): Parameterize the location
2113 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2114 The logic is from Eric Blake and the location indicated by Jim Meyering.
2115 Note the more natural CONFIG_HEADER name is prohibited by automake
2116 for backwards compatibility reasons.
2117 * top/maint.mk (sc_Wundef_boolean): New rule.
2119 2010-01-25 Jim Meyering <meyering@redhat.com>
2121 bootstrap: detect MacOS 10.6's shasum, too
2122 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2123 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2125 2010-01-23 Jim Meyering <meyering@redhat.com>
2127 xstrtoll: new module
2128 * modules/xstrtoll: New file.
2129 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2130 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2131 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2132 ./configure fails if you use this module and lack "long long".
2133 * modules/xstrtoll-tests: New module.
2134 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2135 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2136 new init.sh-based test framework.
2138 2010-01-24 Bruno Haible <bruno@clisp.org>
2140 Tests for module 'yn'.
2141 * modules/yn-tests: New file.
2142 * tests/test-yn.c: New file.
2144 Tests for module 'y1'.
2145 * modules/y1-tests: New file.
2146 * tests/test-y1.c: New file.
2148 Tests for module 'y0'.
2149 * modules/y0-tests: New file.
2150 * tests/test-y0.c: New file.
2152 Tests for module 'tanh'.
2153 * modules/tanh-tests: New file.
2154 * tests/test-tanh.c: New file.
2156 Tests for module 'tan'.
2157 * modules/tan-tests: New file.
2158 * tests/test-tan.c: New file.
2160 Tests for module 'sqrt'.
2161 * modules/sqrt-tests: New file.
2162 * tests/test-sqrt.c: New file.
2164 Tests for module 'sinh'.
2165 * modules/sinh-tests: New file.
2166 * tests/test-sinh.c: New file.
2168 Tests for module 'sin'.
2169 * modules/sin-tests: New file.
2170 * tests/test-sin.c: New file.
2172 Tests for module 'rint'.
2173 * modules/rint-tests: New file.
2174 * tests/test-rint.c: New file.
2176 Tests for module 'remainder'.
2177 * modules/remainder-tests: New file.
2178 * tests/test-remainder.c: New file.
2180 Tests for module 'pow'.
2181 * modules/pow-tests: New file.
2182 * tests/test-pow.c: New file.
2184 Tests for module 'nextafter'.
2185 * modules/nextafter-tests: New file.
2186 * tests/test-nextafter.c: New file.
2188 Tests for module 'modf'.
2189 * modules/modf-tests: New file.
2190 * tests/test-modf.c: New file.
2192 Tests for module 'logb'.
2193 * modules/logb-tests: New file.
2194 * tests/test-logb.c: New file.
2196 Tests for module 'log1p'.
2197 * modules/log1p-tests: New file.
2198 * tests/test-log1p.c: New file.
2200 Tests for module 'log10'.
2201 * modules/log10-tests: New file.
2202 * tests/test-log10.c: New file.
2204 Tests for module 'log'.
2205 * modules/log-tests: New file.
2206 * tests/test-log.c: New file.
2208 Tests for module 'lgamma'.
2209 * modules/lgamma-tests: New file.
2210 * tests/test-lgamma.c: New file.
2212 Tests for module 'ldexp'.
2213 * modules/ldexp-tests: New file.
2214 * tests/test-ldexp.c: New file.
2216 Tests for module 'jn'.
2217 * modules/jn-tests: New file.
2218 * tests/test-jn.c: New file.
2220 Tests for module 'j1'.
2221 * modules/j1-tests: New file.
2222 * tests/test-j1.c: New file.
2224 Tests for module 'j0'.
2225 * modules/j0-tests: New file.
2226 * tests/test-j0.c: New file.
2228 Tests for module 'hypot'.
2229 * modules/hypot-tests: New file.
2230 * tests/test-hypot.c: New file.
2232 Tests for module 'fmod'.
2233 * modules/fmod-tests: New file.
2234 * tests/test-fmod.c: New file.
2236 Tests for module 'fabs'.
2237 * modules/fabs-tests: New file.
2238 * tests/test-fabs.c: New file.
2240 Tests for module 'exp'.
2241 * modules/exp-tests: New file.
2242 * tests/test-exp.c: New file.
2244 Tests for module 'erfc'.
2245 * modules/erfc-tests: New file.
2246 * tests/test-erfc.c: New file.
2248 Tests for module 'erf'.
2249 * modules/erf-tests: New file.
2250 * tests/test-erf.c: New file.
2252 Tests for module 'cosh'.
2253 * modules/cosh-tests: New file.
2254 * tests/test-cosh.c: New file.
2256 Tests for module 'cos'.
2257 * modules/cos-tests: New file.
2258 * tests/test-cos.c: New file.
2260 Tests for module 'copysign'.
2261 * modules/copysign-tests: New file.
2262 * tests/test-copysign.c: New file.
2264 Tests for module 'cbrt'.
2265 * modules/cbrt-tests: New file.
2266 * tests/test-cbrt.c: New file.
2268 Tests for module 'atan2'.
2269 * modules/atan2-tests: New file.
2270 * tests/test-atan2.c: New file.
2272 Tests for module 'atan'.
2273 * modules/atan-tests: New file.
2274 * tests/test-atan.c: New file.
2276 Tests for module 'asin'.
2277 * modules/asin-tests: New file.
2278 * tests/test-asin.c: New file.
2280 Tests for module 'acos'.
2281 * modules/acos-tests: New file.
2282 * tests/test-acos.c: New file.
2284 2010-01-24 Bruno Haible <bruno@clisp.org>
2286 Fix tests for common <math.h> functions.
2287 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2288 code snippet that references the function pointer, rather than merely
2289 calling the function. Substitute the FUNC_LIBM variable.
2290 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2291 * modules/acos (configure.ac): Likewise.
2292 * modules/asin (configure.ac): Likewise.
2293 * modules/atan (configure.ac): Likewise.
2294 * modules/atan2 (configure.ac): Likewise.
2295 * modules/cbrt (configure.ac): Likewise.
2296 * modules/copysign (configure.ac): Likewise.
2297 * modules/cos (configure.ac): Likewise.
2298 * modules/cosh (configure.ac): Likewise.
2299 * modules/erf (configure.ac): Likewise.
2300 * modules/erfc (configure.ac): Likewise.
2301 * modules/exp (configure.ac): Likewise.
2302 * modules/fabs (configure.ac): Likewise.
2303 * modules/fmod (configure.ac): Likewise.
2304 * modules/hypot (configure.ac): Likewise.
2305 * modules/j0 (configure.ac): Likewise.
2306 * modules/j1 (configure.ac): Likewise.
2307 * modules/jn (configure.ac): Likewise.
2308 * modules/ldexp (configure.ac): Likewise.
2309 * modules/lgamma (configure.ac): Likewise.
2310 * modules/log (configure.ac): Likewise.
2311 * modules/log10 (configure.ac): Likewise.
2312 * modules/log1p (configure.ac): Likewise.
2313 * modules/logb (configure.ac): Likewise.
2314 * modules/modf (configure.ac): Likewise.
2315 * modules/nextafter (configure.ac): Likewise.
2316 * modules/pow (configure.ac): Likewise.
2317 * modules/remainder (configure.ac): Likewise.
2318 * modules/rint (configure.ac): Likewise.
2319 * modules/sin (configure.ac): Likewise.
2320 * modules/sinh (configure.ac): Likewise.
2321 * modules/tan (configure.ac): Likewise.
2322 * modules/tanh (configure.ac): Likewise.
2323 * modules/y0 (configure.ac): Likewise.
2324 * modules/y1 (configure.ac): Likewise.
2325 * modules/yn (configure.ac): Likewise.
2327 2010-01-24 Bruno Haible <bruno@clisp.org>
2329 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2330 * tests/test-acosl.c (x): New variable.
2331 (main): Store argument in x and fetch it from x.
2332 * tests/test-asinl.c (x): New variable.
2333 (main): Store argument in x and fetch it from x.
2334 * tests/test-atanl.c (x): New variable.
2335 (main): Store argument in x and fetch it from x.
2336 * tests/test-cosl.c (x): New variable.
2337 (main): Store argument in x and fetch it from x.
2338 * tests/test-expl.c (x): New variable.
2339 (main): Store argument in x and fetch it from x.
2340 * tests/test-logl.c (x): New variable.
2341 (main): Store argument in x and fetch it from x.
2342 * tests/test-sinl.c (x): New variable.
2343 (main): Store argument in x and fetch it from x.
2344 * tests/test-sqrtl.c (x): New variable.
2345 (main): Store argument in x and fetch it from x.
2346 * tests/test-tanl.c (x): New variable.
2347 (main): Store argument in x and fetch it from x.
2349 2010-01-24 Bruno Haible <bruno@clisp.org>
2351 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2352 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2353 assignments to the initial TESTS_ENVIRONMENT.
2354 * doc/gnulib.texi (Unit test modules): Document it.
2355 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2357 * modules/btowc-tests (Makefile.am): Likewise.
2358 * modules/c-stack-tests (Makefile.am): Likewise.
2359 * modules/c-strcase-tests (Makefile.am): Likewise.
2360 * modules/copy-file-tests (Makefile.am): Likewise.
2361 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2362 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2363 * modules/mbrtowc-tests (Makefile.am): Likewise.
2364 * modules/mbscasecmp-tests (Makefile.am): Likewise.
2365 * modules/mbscasestr-tests (Makefile.am): Likewise.
2366 * modules/mbschr-tests (Makefile.am): Likewise.
2367 * modules/mbscspn-tests (Makefile.am): Likewise.
2368 * modules/mbsinit-tests (Makefile.am): Likewise.
2369 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2370 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2371 * modules/mbspbrk-tests (Makefile.am): Likewise.
2372 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2373 * modules/mbsrchr-tests (Makefile.am): Likewise.
2374 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2375 * modules/mbsspn-tests (Makefile.am): Likewise.
2376 * modules/mbsstr-tests (Makefile.am): Likewise.
2377 * modules/nl_langinfo-tests (Makefile.am): Likewise.
2378 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2379 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2380 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2381 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2382 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2383 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2384 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2385 * modules/wcrtomb-tests (Makefile.am): Likewise.
2386 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2387 * modules/wcsrtombs-tests (Makefile.am): Likewise.
2388 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2389 assignments from TESTS_ENVIRONMENT.
2390 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2392 * modules/argp-version-etc-tests (Makefile.am): Likewise.
2393 * modules/atexit-tests (Makefile.am): Likewise.
2394 * modules/binary-io-tests (Makefile.am): Likewise.
2395 * modules/closein-tests (Makefile.am): Likewise.
2396 * modules/dprintf-posix-tests (Makefile.am): Likewise.
2397 * modules/exclude-tests (Makefile.am): Likewise.
2398 * modules/fflush-tests (Makefile.am): Likewise.
2399 * modules/fpending-tests (Makefile.am): Likewise.
2400 * modules/fprintf-posix-tests (Makefile.am): Likewise.
2401 * modules/freadahead-tests (Makefile.am): Likewise.
2402 * modules/freadptr-tests (Makefile.am): Likewise.
2403 * modules/freadseek-tests (Makefile.am): Likewise.
2404 * modules/fseek-tests (Makefile.am): Likewise.
2405 * modules/fseeko-tests (Makefile.am): Likewise.
2406 * modules/ftell-tests (Makefile.am): Likewise.
2407 * modules/ftello-tests (Makefile.am): Likewise.
2408 * modules/idpriv-drop-tests (Makefile.am): Likewise.
2409 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2410 * modules/lseek-tests (Makefile.am): Likewise.
2411 * modules/parse-duration-tests (Makefile.am): Likewise.
2412 * modules/perror-tests (Makefile.am): Likewise.
2413 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2414 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2415 * modules/pipe-tests (Makefile.am): Likewise.
2416 * modules/pread-tests (Makefile.am): Likewise.
2417 * modules/printf-posix-tests (Makefile.am): Likewise.
2418 * modules/select-tests (Makefile.am): Likewise.
2419 * modules/sigpipe-tests (Makefile.am): Likewise.
2420 * modules/tsearch-tests (Makefile.am): Likewise.
2421 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2422 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2423 * modules/uniname/uniname-tests (Makefile.am): Likewise.
2424 * modules/uniwidth/width-tests (Makefile.am): Likewise.
2425 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2426 * modules/version-etc-tests (Makefile.am): Likewise.
2427 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2428 * modules/vprintf-posix-tests (Makefile.am): Likewise.
2429 * modules/xalloc-die-tests (Makefile.am): Likewise.
2430 * modules/xprintf-posix-tests (Makefile.am): Likewise.
2431 * modules/xstrtoimax-tests (Makefile.am): Likewise.
2432 * modules/xstrtol-tests (Makefile.am): Likewise.
2433 * modules/xstrtoumax-tests (Makefile.am): Likewise.
2434 * modules/yesno-tests (Makefile.am): Likewise.
2435 Suggested by Jim Meyering.
2437 2010-01-24 Bruno Haible <bruno@clisp.org>
2440 * doc/gnulib.texi (Writing modules): New chapter.
2441 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2444 2010-01-24 Jim Meyering <meyering@redhat.com>
2446 maint.mk: do not prepend "./" after filtering
2447 * top/maint.mk (_prepend_srcdir_prefix): New variable
2448 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2449 "./" when $(srcdir) is ".".
2451 define STREQ(a,b) consistently, removing useless parentheses
2452 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2453 since the only risk is that "a" or "b" contains an unparenthesized
2454 comma, but if either did that, STREQ would have 3 or more arguments.
2455 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2456 * lib/fts.c (STREQ): Remove unnecessary parentheses.
2457 * lib/hash-triple.c (STREQ): Likewise.
2458 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2459 * lib/getugroups.c (STREQ): Likewise.
2461 2010-01-23 Jim Meyering <meyering@redhat.com>
2463 maint.mk: fix syntax-check in a non-srcdir build directory
2464 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2465 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
2467 2010-01-22 Jim Meyering <meyering@redhat.com>
2469 userspec: add unit tests
2470 * tests/test-userspec.c: New file.
2471 * modules/userspec-tests: Likewise.
2473 2010-01-21 Jim Meyering <meyering@redhat.com>
2475 maint.mk: handle source file names containing "." robustly
2476 * top/maint.mk (_dot_escaped_srcdir): Define.
2477 (VC_LIST): Use it in LHS of sed substitution.
2479 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
2481 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2482 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2483 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2484 from a non-srcdir build.
2486 2010-01-20 Eric Blake <ebb9@byu.net>
2488 warn-on-use: use instead of link-warning
2489 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2490 * modules/unistd (Depends-on, Makefile.am): Likewise.
2491 * modules/arpa_inet (Depends-on): Replace link-warning with
2493 (Makefile.am): Update rules accordingly.
2494 * modules/ctype (Depends-on, Makefile.am): Likewise.
2495 * modules/dirent (Depends-on, Makefile.am): Likewise.
2496 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2497 * modules/inttypes (Depends-on, Makefile.am): Likewise.
2498 * modules/langinfo (Depends-on, Makefile.am): Likewise.
2499 * modules/locale (Depends-on, Makefile.am): Likewise.
2500 * modules/math (Depends-on, Makefile.am): Likewise.
2501 * modules/search (Depends-on, Makefile.am): Likewise.
2502 * modules/signal (Depends-on, Makefile.am): Likewise.
2503 * modules/spawn (Depends-on, Makefile.am): Likewise.
2504 * modules/stdlib (Depends-on, Makefile.am): Likewise.
2505 * modules/string (Depends-on, Makefile.am): Likewise.
2506 * modules/strings (Depends-on, Makefile.am): Likewise.
2507 * modules/sys_file (Depends-on, Makefile.am): Likewise.
2508 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2509 * modules/sys_select (Depends-on, Makefile.am): Likewise.
2510 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2511 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2512 * modules/sys_times (Depends-on, Makefile.am): Likewise.
2513 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2514 * modules/wchar (Depends-on, Makefile.am): Likewise.
2515 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2517 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2518 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2519 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2520 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2521 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2522 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2523 * m4/math_h.m4 (gl_MATH_H): Likewise.
2524 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2525 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2526 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2527 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2528 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2529 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2530 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2531 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2532 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2533 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2534 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2535 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2536 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2537 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2538 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2539 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2540 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2542 * lib/ctype.in.h: Likewise.
2543 * lib/dirent.in.h: Likewise.
2544 * lib/fcntl.in.h: Likewise.
2545 * lib/inttypes.in.h: Likewise.
2546 * lib/langinfo.in.h: Likewise.
2547 * lib/locale.in.h: Likewise.
2548 * lib/math.in.h: Likewise.
2549 * lib/search.in.h: Likewise.
2550 * lib/signal.in.h: Likewise.
2551 * lib/spawn.in.h: Likewise.
2552 * lib/stdio.in.h: Likewise.
2553 * lib/stdlib.in.h: Likewise.
2554 * lib/string.in.h: Likewise.
2555 * lib/strings.in.h: Likewise.
2556 * lib/sys_file.in.h: Likewise.
2557 * lib/sys_ioctl.in.h: Likewise.
2558 * lib/sys_select.in.h: Likewise.
2559 * lib/sys_socket.in.h: Likewise.
2560 * lib/sys_stat.in.h: Likewise.
2561 * lib/sys_times.in.h: Likewise.
2562 * lib/sys_utsname.in.h: Likewise.
2563 * lib/unistd.in.h: Likewise.
2564 * lib/wchar.in.h: Likewise.
2566 2010-01-20 Bruno Haible <bruno@clisp.org>
2568 Avoid duplicate -lm.
2569 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2570 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2571 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2572 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2573 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2574 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2575 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2576 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2577 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2578 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2579 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2580 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2581 Reported by Paolo Bonzini.
2583 2010-01-19 Bruno Haible <bruno@clisp.org>
2585 langinfo, nl_langinfo: Relicense under LGPLv2+.
2586 * modules/langinfo (License): Change to LGPLv2+.
2587 * modules/nl_langinfo (License): Likewise.
2588 Patch by David Lutterkort <lutter@redhat.com>.
2590 2010-01-19 Bruno Haible <bruno@clisp.org>
2592 Avoid compilation error with cc on OSF/1 5.1.
2593 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2594 statement, not before.
2595 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2597 2010-01-18 Bruno Haible <bruno@clisp.org>
2599 Avoid a link error due to the __printf__ symbol.
2600 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2602 (__format__, __printf__): Remove definitions.
2603 * lib/argp-fmtstream.h: Likewise.
2604 * lib/argp.h: Likewise.
2605 * lib/error.h: Likewise.
2606 * lib/vasnprintf.h: Likewise.
2607 * lib/xprintf.h: Likewise.
2608 * lib/xvasprintf.h: Likewise.
2609 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2611 2010-01-18 Bruno Haible <bruno@clisp.org>
2613 Tests for module 'tanl'.
2614 * modules/tanl-tests: New file.
2615 * tests/test-tanl.c: New file.
2617 Tests for module 'sqrtl'.
2618 * modules/sqrtl-tests: New file.
2619 * tests/test-sqrtl.c: New file.
2621 Tests for module 'sinl'.
2622 * modules/sinl-tests: New file.
2623 * tests/test-sinl.c: New file.
2625 Tests for module 'logl'.
2626 * modules/logl-tests: New file.
2627 * tests/test-logl.c: New file.
2629 Tests for module 'expl'.
2630 * modules/expl-tests: New file.
2631 * tests/test-expl.c: New file.
2633 Tests for module 'cosl'.
2634 * modules/cosl-tests: New file.
2635 * tests/test-cosl.c: New file.
2637 Tests for module 'atanl'.
2638 * modules/atanl-tests: New file.
2639 * tests/test-atanl.c: New file.
2641 Tests for module 'asinl'.
2642 * modules/asinl-tests: New file.
2643 * tests/test-asinl.c: New file.
2645 Tests for module 'acosl'.
2646 * modules/acosl-tests: New file.
2647 * tests/test-acosl.c: New file.
2649 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2650 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2651 tanl): Use the standard gnulib idiom.
2652 * lib/cosl.c: Don't include trigl.c and sincosl.c.
2653 * lib/sinl.c: Likewise.
2654 * lib/tanl.c: Don't include trigl.c.
2655 (kernel_tanl): Make static.
2656 * lib/sincosl.c: Include trigl.h first.
2657 * lib/trigl.c: Likewise.
2658 * m4/acosl.m4: New file.
2659 * m4/asinl.m4: New file.
2660 * m4/atanl.m4: New file.
2661 * m4/cosl.m4: New file.
2662 * m4/expl.m4: New file.
2663 * m4/logl.m4: New file.
2664 * m4/sinl.m4: New file.
2665 * m4/sqrtl.m4: New file.
2666 * m4/tanl.m4: New file.
2667 * m4/mathl.m4: Remove file.
2668 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2669 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2670 Don't initialize GNULIB_MATHL.
2671 * modules/acosl: New file.
2672 * modules/asinl: New file.
2673 * modules/atanl: New file.
2674 * modules/cosl: New file.
2675 * modules/expl: New file.
2676 * modules/logl: New file.
2677 * modules/sinl: New file.
2678 * modules/sqrtl: New file.
2679 * modules/tanl: New file.
2680 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2681 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2682 substitute GNULIB_MATHL.
2683 * modules/mathl: Rewritten.
2684 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2685 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2686 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2687 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2688 * doc/posix-functions/expl.texi: Mention the 'expl' module.
2689 * doc/posix-functions/logl.texi: Mention the 'logl' module.
2690 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2691 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2692 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2694 2010-01-18 Bruno Haible <bruno@clisp.org>
2696 sqrt: Make gl_FUNC_SQRT requirable.
2697 * m4/sqrt.m4: New file.
2698 * modules/sqrt (Files): Add it.
2699 (configure.ac): Invoke gl_FUNC_SQRT.
2701 2010-01-18 Bruno Haible <bruno@clisp.org>
2703 New modules for common <math.h> functions.
2704 * m4/mathfunc.m4: New file.
2705 * modules/acos: New file.
2706 * modules/asin: New file.
2707 * modules/atan: New file.
2708 * modules/atan2: New file.
2709 * modules/cbrt: New file.
2710 * modules/copysign: New file.
2711 * modules/cos: New file.
2712 * modules/cosh: New file.
2713 * modules/erf: New file.
2714 * modules/erfc: New file.
2715 * modules/exp: New file.
2716 * modules/fabs: New file.
2717 * modules/fmod: New file.
2718 * modules/hypot: New file.
2719 * modules/j0: New file.
2720 * modules/j1: New file.
2721 * modules/jn: New file.
2722 * modules/ldexp: New file.
2723 * modules/lgamma: New file.
2724 * modules/log: New file.
2725 * modules/log10: New file.
2726 * modules/log1p: New file.
2727 * modules/logb: New file.
2728 * modules/modf: New file.
2729 * modules/nextafter: New file.
2730 * modules/pow: New file.
2731 * modules/remainder: New file.
2732 * modules/rint: New file.
2733 * modules/sin: New file.
2734 * modules/sinh: New file.
2735 * modules/sqrt: New file.
2736 * modules/tan: New file.
2737 * modules/tanh: New file.
2738 * modules/y0: New file.
2739 * modules/y1: New file.
2740 * modules/yn: New file.
2741 * doc/posix-functions/acos.texi: Mention the 'acos' module.
2742 * doc/posix-functions/asin.texi: Mention the 'asin' module.
2743 * doc/posix-functions/atan.texi: Mention the 'atan' module.
2744 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2745 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2746 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2747 * doc/posix-functions/cos.texi: Mention the 'cos' module.
2748 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2749 * doc/posix-functions/erf.texi: Mention the 'erf' module.
2750 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2751 * doc/posix-functions/exp.texi: Mention the 'exp' module.
2752 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2753 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2754 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2755 * doc/posix-functions/j0.texi: Mention the 'j0' module.
2756 * doc/posix-functions/j1.texi: Mention the 'j1' module.
2757 * doc/posix-functions/jn.texi: Mention the 'jn' module.
2758 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2759 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2760 * doc/posix-functions/log.texi: Mention the 'log' module.
2761 * doc/posix-functions/log10.texi: Mention the 'log10' module.
2762 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2763 * doc/posix-functions/logb.texi: Mention the 'logb' module.
2764 * doc/posix-functions/modf.texi: Mention the 'modf' module.
2765 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2766 * doc/posix-functions/pow.texi: Mention the 'pow' module.
2767 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2768 * doc/posix-functions/rint.texi: Mention the 'rint' module.
2769 * doc/posix-functions/sin.texi: Mention the 'sin' module.
2770 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2771 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2772 * doc/posix-functions/tan.texi: Mention the 'tan' module.
2773 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2774 * doc/posix-functions/y0.texi: Mention the 'y0' module.
2775 * doc/posix-functions/y1.texi: Mention the 'y1' module.
2776 * doc/posix-functions/yn.texi: Mention the 'yn' module.
2778 2010-01-18 Jim Meyering <meyering@redhat.com>
2780 ignore-value: relax license to LGPLv2+
2781 * modules/ignore-value (License): Relax to LGPLv2+.
2783 getdate: don't leak when TZ contains two or more '"'s
2784 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2785 double quote in TZ after the first one.
2787 readtokens: do not leak internal token_lengths buffer
2788 * lib/readtokens.c (readtokens): Free the local, lengths,
2789 when the supplied "token_lengths" parameter is NULL.
2791 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2793 Fix a couple of missing LIBTHREAD link failures on AIX.
2794 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2796 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2798 Link test-poll against INET_PTON_LIB.
2799 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2800 for inet_pton on Solaris 10.
2802 2010-01-17 Bruno Haible <bruno@clisp.org>
2804 unistdio/*-sprintf: Fix typo in module description.
2805 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2806 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2807 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2808 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2809 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2810 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2811 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2812 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2814 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2816 gnulib-tool: fix filelist for AIX, HP-UX ksh.
2817 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2818 variables in shell case patterns, for AIX and HP-UX ksh.
2820 Split large sed scripts, for HP-UX sed.
2821 * modules/stdio: Split sed scripts around 50 sed commands,
2822 to avoid HP-UX limit of 99 commands, in the near future.
2823 * modules/string: Likewise.
2824 * modules/unistd: Likewise.
2826 gnulib-tool: avoid writing in the current directory.
2827 * gnulib-tool (func_emit_lib_Makefile_am)
2828 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2829 not in the current directory, so concurrent gnulib-tool
2830 instances do not interfere.
2832 2010-01-16 Jim Meyering <meyering@redhat.com>
2834 doc: update users.txt
2835 * users.txt: Add grep.
2836 (diffutils, gzip): Update URLs.
2838 2010-01-12 Bruno Haible <bruno@clisp.org>
2840 posix_spawn: Avoid test failure on Cygwin.
2841 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2843 Reported by Simon Josefsson.
2845 2010-01-12 Bruno Haible <bruno@clisp.org>
2847 * tests/test-cond.c (main): When skipping the test, show the reason.
2849 2010-01-12 Simon Josefsson <simon@josefsson.org>
2851 * lib/striconv.c (str_cd_iconv): Avoid if before free.
2853 2010-01-12 Simon Josefsson <simon@josefsson.org>
2855 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2856 VC_LIST_ALWAYS_EXCLUDE_REGEX.
2858 2010-01-12 Eric Blake <ebb9@byu.net>
2860 build: guarantee AS_VAR_IF
2861 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2862 (gl_AS_VAR_IF): Move...
2863 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2864 Reported by Simon Josefsson.
2866 2010-01-12 Simon Josefsson <simon@josefsson.org>
2868 * lib/stdio.in.h: Fix typo.
2870 2010-01-12 Simon Josefsson <simon@josefsson.org>
2872 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2875 2010-01-12 Simon Josefsson <simon@josefsson.org>
2877 * tests/test-xalloc-die.sh: Use $EXEEXT.
2879 2010-01-12 Simon Josefsson <simon@josefsson.org>
2880 Bruno Haible <bruno@clisp.org>
2882 getlogin, getlogin_r: Avoid test failure.
2883 * tests/test-getlogin.c: Include <stdio.h>.
2884 (main): Skip the test when the function fails because stdin is not a
2886 * tests/test-getlogin_r.c: Include <stdio.h>.
2887 (main): Skip the test when the function fails because stdin is not a
2890 2010-01-11 Eric Blake <ebb9@byu.net>
2892 tests: avoid more large file warnings
2893 * tests/test-fflush.c: Avoid warning about ftell use.
2894 * tests/test-fseek.c: Avoid warning about fseek use.
2896 2010-01-10 Bruno Haible <bruno@clisp.org>
2898 nproc: Work better on Linux when /proc and /sys are not mounted.
2899 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2900 as lower bound when, on glibc/Linux systems,
2901 sysconf (_SC_NPROCESSORS_CONF) returns 1.
2902 Suggested by Pádraig Brady <P@draigbrady.com>.
2903 Reported by Dmitry V. Levin <ldv@altlinux.org>.
2906 * lib/nproc.c (num_processors_via_affinity_mask): New function,
2907 extracted from num_processors.
2908 (num_processors): Call it.
2910 2010-01-11 Jim Meyering <meyering@redhat.com>
2912 utimecmp: avoid new warning from upcoming gcc-4.5.0
2913 * lib/utimecmp.c (BILLION): Define using #define rather than an
2914 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2916 2010-01-11 Eric Blake <ebb9@byu.net>
2918 math: add portability warnings for classification macros
2919 * modules/math (Depends-on): Add warn-on-use.
2920 (Makefile.am): Provide new substitutions.
2921 * m4/math_h.m4 (gl_MATH_H): Require inline.
2922 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2923 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2924 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2927 unistd: warn on use of environ without module
2928 * modules/unistd (Depends-on): Add warn-on-use.
2929 (Makefile.am): Provide new substitutions.
2930 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2931 * lib/unistd.in.h (environ): Wrap with a warning helper function.
2933 stdio: warn on suspicious uses
2934 * modules/stdio (Depends-on): Add warn-on-use.
2935 (Makefile.am): Provide new substitutions.
2936 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2938 * lib/stdio.in.h (gets): Always warn on use.
2939 (fseek, ftell): Adjust when warnings are issued, and honor
2940 _GL_NO_LARGE_FILES as a way to silence the warning.
2941 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2942 any warning about large file offsets.
2943 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2944 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2945 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2946 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2947 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2948 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2949 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2950 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2952 warn-on-use: new module
2953 * modules/warn-on-use: New file.
2954 * build-aux/warn-on-use.h: Likewise.
2955 * m4/warn-on-use.m4: Likewise.
2956 * MODULES.html.sh (Support for building): Mention it.
2958 2010-01-10 Bruno Haible <bruno@clisp.org>
2960 Tests for module 'unistr/u32-strdup'.
2961 * modules/unistr/u32-strdup-tests: New file.
2962 * tests/unistr/test-u32-strdup.c: New file.
2964 Tests for module 'unistr/u16-strdup'.
2965 * modules/unistr/u16-strdup-tests: New file.
2966 * tests/unistr/test-u16-strdup.c: New file.
2968 Tests for module 'unistr/u8-strdup'.
2969 * modules/unistr/u8-strdup-tests: New file.
2970 * tests/unistr/test-u8-strdup.c: New file.
2971 * tests/unistr/test-strdup.h: New file.
2973 Tests for module 'unistr/u32-strncmp'.
2974 * modules/unistr/u32-strncmp-tests: New file.
2975 * tests/unistr/test-u32-strncmp.c: New file.
2977 Tests for module 'unistr/u16-strncmp'.
2978 * modules/unistr/u16-strncmp-tests: New file.
2979 * tests/unistr/test-u16-strncmp.c: New file.
2981 Tests for module 'unistr/u8-strncmp'.
2982 * modules/unistr/u8-strncmp-tests: New file.
2983 * tests/unistr/test-u8-strncmp.c: New file.
2984 * tests/unistr/test-strncmp.h: New file.
2986 Tests for module 'unistr/u32-strcoll'.
2987 * modules/unistr/u32-strcoll-tests: New file.
2988 * tests/unistr/test-u32-strcoll.c: New file.
2990 Tests for module 'unistr/u16-strcoll'.
2991 * modules/unistr/u16-strcoll-tests: New file.
2992 * tests/unistr/test-u16-strcoll.c: New file.
2994 Tests for module 'unistr/u8-strcoll'.
2995 * modules/unistr/u8-strcoll-tests: New file.
2996 * tests/unistr/test-u8-strcoll.c: New file.
2998 Tests for module 'unistr/u32-strcmp'.
2999 * modules/unistr/u32-strcmp-tests: New file.
3000 * tests/unistr/test-u32-strcmp.c: New file.
3001 * tests/unistr/test-u32-strcmp.h: New file.
3003 Tests for module 'unistr/u16-strcmp'.
3004 * modules/unistr/u16-strcmp-tests: New file.
3005 * tests/unistr/test-u16-strcmp.c: New file.
3006 * tests/unistr/test-u16-strcmp.h: New file.
3008 Tests for module 'unistr/u8-strcmp'.
3009 * modules/unistr/u8-strcmp-tests: New file.
3010 * tests/unistr/test-u8-strcmp.c: New file.
3011 * tests/unistr/test-u8-strcmp.h: New file.
3012 * tests/unistr/test-strcmp.h: New file.
3014 Tests for module 'unistr/u32-strncat'.
3015 * modules/unistr/u32-strncat-tests: New file.
3016 * tests/unistr/test-u32-strncat.c: New file.
3018 Tests for module 'unistr/u16-strncat'.
3019 * modules/unistr/u16-strncat-tests: New file.
3020 * tests/unistr/test-u16-strncat.c: New file.
3022 Tests for module 'unistr/u8-strncat'.
3023 * modules/unistr/u8-strncat-tests: New file.
3024 * tests/unistr/test-u8-strncat.c: New file.
3025 * tests/unistr/test-strncat.h: New file.
3027 Tests for module 'unistr/u32-strcat'.
3028 * modules/unistr/u32-strcat-tests: New file.
3029 * tests/unistr/test-u32-strcat.c: New file.
3031 Tests for module 'unistr/u16-strcat'.
3032 * modules/unistr/u16-strcat-tests: New file.
3033 * tests/unistr/test-u16-strcat.c: New file.
3035 Tests for module 'unistr/u8-strcat'.
3036 * modules/unistr/u8-strcat-tests: New file.
3037 * tests/unistr/test-u8-strcat.c: New file.
3038 * tests/unistr/test-strcat.h: New file.
3040 Tests for module 'unistr/u32-stpncpy'.
3041 * modules/unistr/u32-stpncpy-tests: New file.
3042 * tests/unistr/test-u32-stpncpy.c: New file.
3044 Tests for module 'unistr/u16-stpncpy'.
3045 * modules/unistr/u16-stpncpy-tests: New file.
3046 * tests/unistr/test-u16-stpncpy.c: New file.
3048 Tests for module 'unistr/u8-stpncpy'.
3049 * modules/unistr/u8-stpncpy-tests: New file.
3050 * tests/unistr/test-u8-stpncpy.c: New file.
3051 * tests/unistr/test-stpncpy.h: New file.
3053 Tests for module 'unistr/u32-strncpy'.
3054 * modules/unistr/u32-strncpy-tests: New file.
3055 * tests/unistr/test-u32-strncpy.c: New file.
3057 Tests for module 'unistr/u16-strncpy'.
3058 * modules/unistr/u16-strncpy-tests: New file.
3059 * tests/unistr/test-u16-strncpy.c: New file.
3061 Tests for module 'unistr/u8-strncpy'.
3062 * modules/unistr/u8-strncpy-tests: New file.
3063 * tests/unistr/test-u8-strncpy.c: New file.
3064 * tests/unistr/test-strncpy.h: New file.
3066 Tests for module 'unistr/u32-stpcpy'.
3067 * modules/unistr/u32-stpcpy-tests: New file.
3068 * tests/unistr/test-u32-stpcpy.c: New file.
3070 Tests for module 'unistr/u16-stpcpy'.
3071 * modules/unistr/u16-stpcpy-tests: New file.
3072 * tests/unistr/test-u16-stpcpy.c: New file.
3074 Tests for module 'unistr/u8-stpcpy'.
3075 * modules/unistr/u8-stpcpy-tests: New file.
3076 * tests/unistr/test-u8-stpcpy.c: New file.
3077 * tests/unistr/test-stpcpy.h: New file.
3079 Tests for module 'unistr/u32-strcpy'.
3080 * modules/unistr/u32-strcpy-tests: New file.
3081 * tests/unistr/test-u32-strcpy.c: New file.
3083 Tests for module 'unistr/u16-strcpy'.
3084 * modules/unistr/u16-strcpy-tests: New file.
3085 * tests/unistr/test-u16-strcpy.c: New file.
3087 Tests for module 'unistr/u8-strcpy'.
3088 * modules/unistr/u8-strcpy-tests: New file.
3089 * tests/unistr/test-u8-strcpy.c: New file.
3090 * tests/unistr/test-strcpy.h: New file.
3092 Tests for module 'unistr/u32-strnlen'.
3093 * modules/unistr/u32-strnlen-tests: New file.
3094 * tests/unistr/test-u32-strnlen.c: New file.
3096 Tests for module 'unistr/u16-strnlen'.
3097 * modules/unistr/u16-strnlen-tests: New file.
3098 * tests/unistr/test-u16-strnlen.c: New file.
3100 Tests for module 'unistr/u8-strnlen'.
3101 * modules/unistr/u8-strnlen-tests: New file.
3102 * tests/unistr/test-u8-strnlen.c: New file.
3103 * tests/unistr/test-strnlen.h: New file.
3105 Tests for module 'unistr/u32-strlen'.
3106 * modules/unistr/u32-strlen-tests: New file.
3107 * tests/unistr/test-u32-strlen.c: New file.
3109 Tests for module 'unistr/u16-strlen'.
3110 * modules/unistr/u16-strlen-tests: New file.
3111 * tests/unistr/test-u16-strlen.c: New file.
3113 Tests for module 'unistr/u8-strlen'.
3114 * modules/unistr/u8-strlen-tests: New file.
3115 * tests/unistr/test-u8-strlen.c: New file.
3117 Tests for module 'unistr/u32-prev'.
3118 * modules/unistr/u32-prev-tests: New file.
3119 * tests/unistr/test-u32-prev.c: New file.
3121 Tests for module 'unistr/u16-prev'.
3122 * modules/unistr/u16-prev-tests: New file.
3123 * tests/unistr/test-u16-prev.c: New file.
3125 Tests for module 'unistr/u8-prev'.
3126 * modules/unistr/u8-prev-tests: New file.
3127 * tests/unistr/test-u8-prev.c: New file.
3129 Tests for module 'unistr/u32-next'.
3130 * modules/unistr/u32-next-tests: New file.
3131 * tests/unistr/test-u32-next.c: New file.
3133 Tests for module 'unistr/u16-next'.
3134 * modules/unistr/u16-next-tests: New file.
3135 * tests/unistr/test-u16-next.c: New file.
3137 Tests for module 'unistr/u8-next'.
3138 * modules/unistr/u8-next-tests: New file.
3139 * tests/unistr/test-u8-next.c: New file.
3141 Tests for module 'unistr/u32-strmbtouc'.
3142 * modules/unistr/u32-strmbtouc-tests: New file.
3143 * tests/unistr/test-u32-strmbtouc.c: New file.
3145 Tests for module 'unistr/u16-strmbtouc'.
3146 * modules/unistr/u16-strmbtouc-tests: New file.
3147 * tests/unistr/test-u16-strmbtouc.c: New file.
3149 Tests for module 'unistr/u8-strmbtouc'.
3150 * modules/unistr/u8-strmbtouc-tests: New file.
3151 * tests/unistr/test-u8-strmbtouc.c: New file.
3153 Tests for module 'unistr/u32-strmblen'.
3154 * modules/unistr/u32-strmblen-tests: New file.
3155 * tests/unistr/test-u32-strmblen.c: New file.
3157 Tests for module 'unistr/u16-strmblen'.
3158 * modules/unistr/u16-strmblen-tests: New file.
3159 * tests/unistr/test-u16-strmblen.c: New file.
3161 Tests for module 'unistr/u8-strmblen'.
3162 * modules/unistr/u8-strmblen-tests: New file.
3163 * tests/unistr/test-u8-strmblen.c: New file.
3165 Tests for module 'unistr/u32-cpy-alloc'.
3166 * modules/unistr/u32-cpy-alloc-tests: New file.
3167 * tests/unistr/test-u32-cpy-alloc.c: New file.
3169 Tests for module 'unistr/u16-cpy-alloc'.
3170 * modules/unistr/u16-cpy-alloc-tests: New file.
3171 * tests/unistr/test-u16-cpy-alloc.c: New file.
3173 Tests for module 'unistr/u8-cpy-alloc'.
3174 * modules/unistr/u8-cpy-alloc-tests: New file.
3175 * tests/unistr/test-u8-cpy-alloc.c: New file.
3176 * tests/unistr/test-cpy-alloc.h: New file.
3178 Tests for module 'unistr/u32-mbsnlen'.
3179 * modules/unistr/u32-mbsnlen-tests: New file.
3180 * tests/unistr/test-u32-mbsnlen.c: New file.
3182 Tests for module 'unistr/u16-mbsnlen'.
3183 * modules/unistr/u16-mbsnlen-tests: New file.
3184 * tests/unistr/test-u16-mbsnlen.c: New file.
3186 Tests for module 'unistr/u8-mbsnlen'.
3187 * modules/unistr/u8-mbsnlen-tests: New file.
3188 * tests/unistr/test-u8-mbsnlen.c: New file.
3190 Tests for module 'unistr/u32-chr'.
3191 * modules/unistr/u32-chr-tests: New file.
3192 * tests/unistr/test-u32-chr.c: New file.
3194 Tests for module 'unistr/u16-chr'.
3195 * modules/unistr/u16-chr-tests: New file.
3196 * tests/unistr/test-u16-chr.c: New file.
3198 Tests for module 'unistr/u8-chr'.
3199 * modules/unistr/u8-chr-tests: New file.
3200 * tests/unistr/test-u8-chr.c: New file.
3201 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3203 Tests for module 'unistr/u32-cmp2'.
3204 * modules/unistr/u32-cmp2-tests: New file.
3205 * tests/unistr/test-u32-cmp2.c: New file.
3207 Tests for module 'unistr/u16-cmp2'.
3208 * modules/unistr/u16-cmp2-tests: New file.
3209 * tests/unistr/test-u16-cmp2.c: New file.
3211 Tests for module 'unistr/u8-cmp2'.
3212 * modules/unistr/u8-cmp2-tests: New file.
3213 * tests/unistr/test-u8-cmp2.c: New file.
3214 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3216 Tests for module 'unistr/u32-cmp'.
3217 * modules/unistr/u32-cmp-tests: New file.
3218 * tests/unistr/test-u32-cmp.c: New file.
3220 Tests for module 'unistr/u16-cmp'.
3221 * modules/unistr/u16-cmp-tests: New file.
3222 * tests/unistr/test-u16-cmp.c: New file.
3224 Tests for module 'unistr/u8-cmp'.
3225 * modules/unistr/u8-cmp-tests: New file.
3226 * tests/unistr/test-u8-cmp.c: New file.
3227 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3229 Tests for module 'unistr/u32-set'.
3230 * modules/unistr/u32-set-tests: New file.
3231 * tests/unistr/test-u32-set.c: New file.
3233 Tests for module 'unistr/u16-set'.
3234 * modules/unistr/u16-set-tests: New file.
3235 * tests/unistr/test-u16-set.c: New file.
3237 Tests for module 'unistr/u8-set'.
3238 * modules/unistr/u8-set-tests: New file.
3239 * tests/unistr/test-u8-set.c: New file.
3240 * tests/unistr/test-set.h: New file.
3242 Tests for module 'unistr/u32-move'.
3243 * modules/unistr/u32-move-tests: New file.
3244 * tests/unistr/test-u32-move.c: New file.
3246 Tests for module 'unistr/u16-move'.
3247 * modules/unistr/u16-move-tests: New file.
3248 * tests/unistr/test-u16-move.c: New file.
3250 Tests for module 'unistr/u8-move'.
3251 * modules/unistr/u8-move-tests: New file.
3252 * tests/unistr/test-u8-move.c: New file.
3253 * tests/unistr/test-move.h: New file.
3255 Tests for module 'unistr/u32-cpy'.
3256 * modules/unistr/u32-cpy-tests: New file.
3257 * tests/unistr/test-u32-cpy.c: New file.
3259 Tests for module 'unistr/u16-cpy'.
3260 * modules/unistr/u16-cpy-tests: New file.
3261 * tests/unistr/test-u16-cpy.c: New file.
3263 Tests for module 'unistr/u8-cpy'.
3264 * modules/unistr/u8-cpy-tests: New file.
3265 * tests/unistr/test-u8-cpy.c: New file.
3266 * tests/unistr/test-cpy.h: New file.
3268 2010-01-09 Bruno Haible <bruno@clisp.org>
3270 Tests for module 'unistr/u32-uctomb'.
3271 * modules/unistr/u32-uctomb-tests: New file.
3272 * tests/unistr/test-u32-uctomb.c: New file.
3274 Tests for module 'unistr/u16-uctomb'.
3275 * modules/unistr/u16-uctomb-tests: New file.
3276 * tests/unistr/test-u16-uctomb.c: New file.
3278 Tests for module 'unistr/u8-uctomb'.
3279 * modules/unistr/u8-uctomb-tests: New file.
3280 * tests/unistr/test-u8-uctomb.c: New file.
3282 Tests for module 'unistr/u32-mbtoucr'.
3283 * modules/unistr/u32-mbtoucr-tests: New file.
3284 * tests/unistr/test-u32-mbtoucr.c: New file.
3286 Tests for module 'unistr/u16-mbtoucr'.
3287 * modules/unistr/u16-mbtoucr-tests: New file.
3288 * tests/unistr/test-u16-mbtoucr.c: New file.
3290 Tests for module 'unistr/u8-mbtoucr'.
3291 * modules/unistr/u8-mbtoucr-tests: New file.
3292 * tests/unistr/test-u8-mbtoucr.c: New file.
3294 Tests for module 'unistr/u32-mbtouc'.
3295 * modules/unistr/u32-mbtouc-tests: New file.
3296 * tests/unistr/test-u32-mbtouc.c: New file.
3298 Tests for module 'unistr/u16-mbtouc'.
3299 * modules/unistr/u16-mbtouc-tests: New file.
3300 * tests/unistr/test-u16-mbtouc.c: New file.
3302 Tests for module 'unistr/u8-mbtouc'.
3303 * modules/unistr/u8-mbtouc-tests: New file.
3304 * tests/unistr/test-u8-mbtouc.c: New file.
3306 Tests for module 'unistr/u32-mbtouc-unsafe'.
3307 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3308 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3309 * tests/unistr/test-u32-mbtouc.h: New file.
3311 Tests for module 'unistr/u16-mbtouc-unsafe'.
3312 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3313 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3314 * tests/unistr/test-u16-mbtouc.h: New file.
3316 Tests for module 'unistr/u8-mbtouc-unsafe'.
3317 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3318 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3319 * tests/unistr/test-u8-mbtouc.h: New file.
3321 Tests for module 'unistr/u32-mblen'.
3322 * modules/unistr/u32-mblen-tests: New file.
3323 * tests/unistr/test-u32-mblen.c: New file.
3325 Tests for module 'unistr/u16-mblen'.
3326 * modules/unistr/u16-mblen-tests: New file.
3327 * tests/unistr/test-u16-mblen.c: New file.
3329 Tests for module 'unistr/u8-mblen'.
3330 * modules/unistr/u8-mblen-tests: New file.
3331 * tests/unistr/test-u8-mblen.c: New file.
3333 Tests for module 'unistr/u32-to-u16'.
3334 * modules/unistr/u32-to-u16-tests: New file.
3335 * tests/unistr/test-u32-to-u16.c: New file.
3337 Tests for module 'unistr/u32-to-u8'.
3338 * modules/unistr/u32-to-u8-tests: New file.
3339 * tests/unistr/test-u32-to-u8.c: New file.
3341 Tests for module 'unistr/u16-to-u32'.
3342 * modules/unistr/u16-to-u32-tests: New file.
3343 * tests/unistr/test-u16-to-u32.c: New file.
3345 Tests for module 'unistr/u16-to-u8'.
3346 * modules/unistr/u16-to-u8-tests: New file.
3347 * tests/unistr/test-u16-to-u8.c: New file.
3349 Tests for module 'unistr/u8-to-u32'.
3350 * modules/unistr/u8-to-u32-tests: New file.
3351 * tests/unistr/test-u8-to-u32.c: New file.
3353 Tests for module 'unistr/u8-to-u16'.
3354 * modules/unistr/u8-to-u16-tests: New file.
3355 * tests/unistr/test-u8-to-u16.c: New file.
3357 Tests for module 'unistr/u32-check'.
3358 * modules/unistr/u32-check-tests: New file.
3359 * tests/unistr/test-u32-check.c: New file.
3361 Tests for module 'unistr/u16-check'.
3362 * modules/unistr/u16-check-tests: New file.
3363 * tests/unistr/test-u16-check.c: New file.
3365 Tests for module 'unistr/u8-check'.
3366 * modules/unistr/u8-check-tests: New file.
3367 * tests/unistr/test-u8-check.c: New file.
3369 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3370 (category_equals): New function.
3371 (main): Add more tests.
3372 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3374 * tests/unictype/test-bidi_byname.c (main): Add more tests.
3376 2010-01-10 Bruno Haible <bruno@clisp.org>
3378 unistr/u*-strcoll: Try harder to distinguish different strings.
3379 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3380 compare s1 and s2 to see if they are different.
3382 2010-01-10 Bruno Haible <bruno@clisp.org>
3384 unistr/u*-stpncpy: Fix the return value.
3385 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3386 description of the return value consistent with stpncpy in glibc.
3387 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3388 written non-NUL unit.
3390 2010-01-10 Bruno Haible <bruno@clisp.org>
3392 unistr/u*-next: Add missing dependencies.
3393 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3394 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3395 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3397 2010-01-10 Bruno Haible <bruno@clisp.org>
3399 unistr/u8-mbsnlen: Fix return value for incomplete character.
3400 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3402 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3403 Remove unistr/u8-mblen.
3404 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3406 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3407 Remove unistr/u16-mblen.
3409 2010-01-10 Bruno Haible <bruno@clisp.org>
3411 wchar: Fix compilation error when <wchar.h> is used from coreutils.
3412 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3413 Reported by Brian Gough <bjg@gnu.org> and
3414 Chris Clayton <chris2553@googlemail.com> via
3415 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3417 2010-01-09 Bruno Haible <bruno@clisp.org>
3419 unistr/u16-to-u32: Reject invalid input.
3420 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3422 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3423 Remove unistr/u16-mbtouc.
3425 unistr/u16-to-u8: Reject invalid input.
3426 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3428 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3429 Remove unistr/u16-mbtouc.
3431 unistr/u8-to-u32: Reject invalid input.
3432 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3434 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3435 Remove unistr/u8-mbtouc.
3437 unistr/u8-to-u16: Reject invalid input.
3438 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3440 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3441 Remove unistr/u8-mbtouc.
3443 2010-01-09 Bruno Haible <bruno@clisp.org>
3445 Tests for module 'getlogin'.
3446 * modules/getlogin-tests: New file.
3447 * tests/test-getlogin.c: New file.
3449 New module 'getlogin'.
3450 * lib/unistd.in.h (getlogin): New declaration.
3451 * lib/getlogin.c: New file.
3452 * m4/getlogin.m4: New file.
3453 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3455 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3457 * modules/getlogin: New file.
3458 * doc/posix-functions/getlogin.texi: Mention the new module.
3459 Reported by John W. Eaton <jwe@gnu.org>.
3461 2010-01-09 Bruno Haible <bruno@clisp.org>
3463 getlogin_r: Support for native Windows.
3464 * lib/getlogin_r.c: Include <windows.h>
3465 (getlogin_r): Implement for native Windows.
3466 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3467 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3468 via John W. Eaton <jwe@gnu.org>.
3470 2010-01-09 Bruno Haible <bruno@clisp.org>
3472 getlogin_r: Small fixes.
3473 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3475 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3476 before testing whether getlogin_r is declared. No need to set
3477 HAVE_DECL_GETLOGIN_R to 1.
3478 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3480 2010-01-09 Bruno Haible <bruno@clisp.org>
3482 * lib/unistd.in.h (getlogin_r): Add comment.
3484 2010-01-09 Bruno Haible <bruno@clisp.org>
3486 Tests for module 'getlogin_r'.
3487 * modules/getlogin_r-tests: New file.
3488 * tests/test-getlogin_r.c: New file.
3490 2010-01-09 Jim Meyering <meyering@redhat.com>
3492 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3493 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3494 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3496 2010-01-08 Simon Josefsson <simon@josefsson.org>
3498 * lib/dup2.c (rpl_dup2): Improve comment.
3500 2010-01-08 Eric Blake <ebb9@byu.net>
3502 maint.mk: allow packages to add makefile @@ exceptions
3503 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3504 (sc_makefile_check): Rename...
3505 (sc_makefile_at_at_check): ...to this, and use hook.
3507 dup2: work around mingw bug
3508 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3509 Reported by Simon Josefsson.
3511 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
3513 glob: Fix C++ compilation.
3514 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3517 2010-01-07 Bruno Haible <bruno@clisp.org>
3519 Fix indentation of wctype.in.h, broken since 2007-01-06.
3520 * lib/wctype.in.h: Fix indentation of preprocessor directives.
3522 2010-01-07 Bruno Haible <bruno@clisp.org>
3524 mbslen: Avoid collision with system function.
3525 * lib/string.in.h [MirBSD]: Include <wchar.h>.
3526 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3527 * m4/mbslen.m4: New file.
3528 * modules/mbslen (Files): Add it.
3529 (configure.ac): Invoke gl_MBSLEN.
3530 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3531 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3532 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3533 via Ian Beckwith <ianb@erislabs.net>.
3535 2010-01-07 Bruno Haible <bruno@clisp.org>
3537 dirent: Document the last fix.
3538 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3540 2010-01-07 Bruno Haible <bruno@clisp.org>
3542 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3543 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3544 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3545 va_list are defined.
3546 * doc/posix-headers/stdio.texi: Document the bug of missing types.
3547 Reported by Eric Blake.
3549 2010-01-07 Bruno Haible <bruno@clisp.org>
3551 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3552 * modules/xlist (Depends-on): Add 'list',
3553 * modules/xoset (Depends-on): Add 'oset'.
3554 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3556 2010-01-07 Bruno Haible <bruno@clisp.org>
3558 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3559 * doc/posix-functions/strncasecmp.texi: Likewise.
3561 2010-01-07 Bruno Haible <bruno@clisp.org>
3563 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3565 2010-01-07 John W. Eaton <jwe@octave.org>
3567 wctype: allow C++ use
3568 * lib/wctype.in.h: Add extern "C" block for C++.
3570 2010-01-06 Eric Blake <ebb9@byu.net>
3572 maint.mk: detect incorrect GFDL usage
3573 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3575 2010-01-06 Jim Meyering <meyering@redhat.com>
3576 and Eric Blake <ebb9@byu.net>
3578 maint.mk: ignore multi-line copyright in NEWS
3579 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3581 2010-01-06 Eric Blake <ebb9@byu.net>
3583 select: add missing dependency
3584 * modules/select-tests (Depends-on): Move sockets dependency...
3585 * modules/select (Depends-on): ...here.
3586 Reported by Ian Beckwith.
3588 doc: regenerate INSTALL
3589 * doc/INSTALL: Reflect recent autoconf update.
3590 * doc/INSTALL.ISO: Likewise.
3591 * doc/INSTALL.UTF-8: Likewise.
3593 pread: fix compilation on glibc
3594 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3595 Reported by Ralf Wildenhues.
3597 dirent: fix test failure
3598 * lib/dirent.in.h (includes): Guarantee ino_t.
3599 Reported by Ralf Wildenhues.
3601 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
3603 linkat, renameat: avoid bad free
3604 * lib/at-func2.c (at_func2): Fix typo.
3605 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3607 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3609 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3610 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3611 to avoid failure of symlink test later.
3613 2010-01-06 Eric Blake <ebb9@byu.net>
3615 stdio, unistd: guarantee ssize_t
3616 * lib/unistd.in.h (includes): Ensure that types required by POSIX
3617 2008 are exposed when needed.
3618 * lib/stdio.in.h (includes): Likewise.
3619 Reported by Ralf Wildenhues.
3621 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
3623 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3624 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3625 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3627 2010-01-06 Jim Meyering <meyering@redhat.com>
3629 readtokens: this module *does* require xalloc.h
3630 It uses only functions that were omitted by the old syntax-check rule.
3631 * lib/readtokens.c: Include "xalloc.h" once again.
3632 * modules/readtokens (Depends-on): Add xalloc.
3633 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3635 2010-01-05 Eric Blake <ebb9@byu.net>
3637 maint: support 'make announcement' from a VPATH build
3638 * top/maint.mk (announcement): Look for correct NEWS file.
3640 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
3642 utimens (fdutimens): ignore a negative FD, per contract
3643 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3644 when we have a valid file descriptor. Otherwise, using a brand
3645 new glibc (with just-patched futimens that now fails with EBADF)
3646 would cause this function to fail with ENOSYS.
3647 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3648 See also http://bugzilla.redhat.com/552320.
3650 2010-01-05 Eric Blake <ebb9@byu.net>
3652 strcase: document what it provides
3653 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3655 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3656 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3658 2010-01-05 Jim Meyering <meyering@redhat.com>
3660 maint: remove useless inclusions of "xalloc.h"
3661 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3662 * lib/readtokens.c: Likewise.
3663 * lib/same.c: Likewise.
3664 * modules/getloadavg (Depends-on): Remove xalloc.
3665 * modules/readtokens: Likewise.
3666 * modules/same: Likewise.
3668 maint.mk: include 4 more function names in alloca.h-checking regexp
3669 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3670 regexp. Before, we would give a false-positive (saying alloca.h
3671 is included unnecessarily) when the only uses involved omitted symbols.
3673 xalloc.h: use consistent formatting
3674 * lib/xalloc.h: Move declarations to start in the first column.
3676 2010-01-05 Eric Blake <ebb9@byu.net>
3679 * lib/mkdir.c (includes): Drop unused header.
3680 Reported by John W. Eaton.
3682 2010-01-04 Jim Meyering <meyering@redhat.com>
3684 nl_langinfo: avoid configure-time syntax error
3685 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3686 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3687 the empty string. Don't let that provoke a shell syntax error.
3689 regcomp, regexec, fnmatch: avoid array bounds read error
3690 * lib/regcomp.c (build_equiv_class): From glibc:
3691 Use only the low 24 bits of a findidx return value as an index
3692 into the weights array. Patch by Ulrich Drepper:
3693 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3694 * lib/regexec.c (check_node_accept_bytes): Likewise.
3695 * lib/fnmatch_loop.c (FCT): Likewise.
3697 regcomp: skip collseq lookup when there are no rules
3698 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3699 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3701 regcomp: recognize ill-formed { } expressions
3702 * lib/regcomp.c (parse_dup_op): From glibc:
3703 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3705 regcomp: fix typo in comment
3706 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3707 s/satisfy/satisfies/.
3709 regcomp: sync from glibc: remove dead store
3710 * lib/regcomp.c (duplicate_node_closure): Remove useless
3711 search_duplicated_node call and dead store.
3713 regcomp: sync from glibc; always use nl_langinfo
3714 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3715 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
3716 * modules/regex (Depends-on): Add nl_langinfo.
3718 2010-01-04 Eric Blake <ebb9@byu.net>
3720 fdopendir: fix configure test
3721 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3723 2010-01-01 Bruno Haible <bruno@clisp.org>
3725 wchar: Remove unused configure check.
3726 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3728 2010-01-01 Eric Blake <ebb9@byu.net>
3730 headers: make check of system header explicit
3731 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3732 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3734 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3735 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3736 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3737 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3739 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3741 Suggested by Bruno Haible.
3743 2010-01-01 Jim Meyering <meyering@redhat.com>
3745 ChangeLog: tweak to eliminate unnecessary copyright line
3746 * ChangeLog: Remove a copyright line that was mistakenly updated
3747 by today's update-copyright run. Reported by Eric Blake.
3749 test-update-copyright: don't let envvar setting cause test failure
3750 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3752 2010-01-01 Bruno Haible <bruno@clisp.org>
3754 localename: Avoid gcc warning.
3755 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3756 function if it is not used.
3758 2010-01-01 Jim Meyering <meyering@redhat.com>
3760 update nearly all FSF copyright year lists to include 2010
3761 Use the same procedure as for 2009, outlined in
3762 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3764 version-etc: set COPYRIGHT_YEAR to 2010
3765 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3767 2009-12-31 Eric Blake <ebb9@byu.net>
3769 doc: correct availability of cygwin 1.5.x getopt
3770 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3772 * doc/posix-functions/opterr.texi (opterr): Likewise.
3773 * doc/posix-functions/optind.texi (optind): Likewise.
3774 * doc/posix-functions/optopt.texi (optopt): Likewise.
3775 * doc/posix-functions/tzname.texi (tzname): Likewise.
3777 openat: update maintainer
3778 * modules/openat (Maintainer): Add myself.
3780 utimens: avoid shadowing warning
3781 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3782 buffers into one, to avoid shadowing, as well as avoiding a
3784 Reported by Jim Meyering.
3786 test-dup2: avoid compiler warning
3787 * tests/test-dup2.c (is_inheritable): Only define if used.
3789 2010-01-01 Bruno Haible <bruno@clisp.org>
3791 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3792 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3793 defined, use wctomb instead of wcrtomb.
3795 2010-01-01 Bruno Haible <bruno@clisp.org>
3797 iconv: Reject native Solaris iconv.
3798 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3799 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3801 2009-12-31 Bruno Haible <bruno@clisp.org>
3803 * tests/test-signal.c (main): Remove test of 'SIG'.
3805 2009-12-31 Bruno Haible <bruno@clisp.org>
3807 spawn: Fix incomplete fix.
3808 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3809 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3810 warnings for GNULIB_POSIXCHECK again.
3811 Reported by Eric Blake.
3813 2009-12-31 Bruno Haible <bruno@clisp.org>
3815 Avoid namespace pollution on glibc systems.
3816 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3817 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3818 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3821 2009-12-31 Bruno Haible <bruno@clisp.org>
3823 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3824 (gl_REPLACE_WCHAR_H): Turn into a no-op.
3825 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3826 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3827 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3828 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3829 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3831 2009-12-31 Bruno Haible <bruno@clisp.org>
3833 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3834 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3837 2009-12-31 Bruno Haible <bruno@clisp.org>
3839 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3842 2009-12-31 Bruno Haible <bruno@clisp.org>
3844 spawn: Fix misapplied patch.
3845 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3846 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3847 warnings for GNULIB_POSIXCHECK.
3849 2009-12-31 Bruno Haible <bruno@clisp.org>
3851 times: Update after sys_times changed.
3852 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3853 * modules/times (Files): Add it.
3854 (configure.ac): Invoke gl_FUNC_TIMES.
3856 2009-12-31 Bruno Haible <bruno@clisp.org>
3858 Use AC_C_INLINE where necessary.
3859 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3860 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3861 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3862 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3863 * m4/mbfile.m4 (gl_MBFILE): Likewise.
3864 * m4/mbiter.m4 (gl_MBITER): Likewise.
3865 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3866 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3867 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3868 * modules/u64 (configure.ac): Likewise.
3870 2009-12-31 Bruno Haible <bruno@clisp.org>
3872 Use AC_C_INLINE instead of module 'inline' where possible.
3873 * modules/inline (Description): Clarify purpose.
3874 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3875 * modules/count-one-bits (Depends-on): Remove inline.
3876 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3877 * modules/openat (Depends-on): Remove inline.
3878 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3879 instead of depending on module 'inline'.
3880 * modules/filevercmp (Depends-on, configure.ac): Likewise.
3881 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3882 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3883 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3884 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3885 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3886 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3887 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3888 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3889 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3890 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3891 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3892 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3893 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3894 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3895 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3896 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3897 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3899 * modules/unictype/property-ascii-hex-digit (Depends-on,
3900 configure.ac): Likewise.
3901 * modules/unictype/property-bidi-arabic-digit (Depends-on,
3902 configure.ac): Likewise.
3903 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3904 configure.ac): Likewise.
3905 * modules/unictype/property-bidi-block-separator (Depends-on,
3906 configure.ac): Likewise.
3907 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3908 configure.ac): Likewise.
3909 * modules/unictype/property-bidi-common-separator (Depends-on,
3910 configure.ac): Likewise.
3911 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3913 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3914 configure.ac): Likewise.
3915 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3916 configure.ac): Likewise.
3917 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3918 configure.ac): Likewise.
3919 * modules/unictype/property-bidi-european-digit (Depends-on,
3920 configure.ac): Likewise.
3921 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3922 configure.ac): Likewise.
3923 * modules/unictype/property-bidi-left-to-right (Depends-on,
3924 configure.ac): Likewise.
3925 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3926 configure.ac): Likewise.
3927 * modules/unictype/property-bidi-other-neutral (Depends-on,
3928 configure.ac): Likewise.
3929 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3931 * modules/unictype/property-bidi-segment-separator (Depends-on,
3932 configure.ac): Likewise.
3933 * modules/unictype/property-bidi-whitespace (Depends-on,
3934 configure.ac): Likewise.
3935 * modules/unictype/property-combining (Depends-on, configure.ac):
3937 * modules/unictype/property-composite (Depends-on, configure.ac):
3939 * modules/unictype/property-currency-symbol (Depends-on,
3940 configure.ac): Likewise.
3941 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3942 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3944 * modules/unictype/property-default-ignorable-code-point (Depends-on,
3945 configure.ac): Likewise.
3946 * modules/unictype/property-deprecated (Depends-on, configure.ac):
3948 * modules/unictype/property-diacritic (Depends-on, configure.ac):
3950 * modules/unictype/property-extender (Depends-on, configure.ac):
3952 * modules/unictype/property-format-control (Depends-on, configure.ac):
3954 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3956 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3958 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3960 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3962 * modules/unictype/property-hyphen (Depends-on, configure.ac):
3964 * modules/unictype/property-id-continue (Depends-on, configure.ac):
3966 * modules/unictype/property-id-start (Depends-on, configure.ac):
3968 * modules/unictype/property-ideographic (Depends-on, configure.ac):
3970 * modules/unictype/property-ids-binary-operator (Depends-on,
3971 configure.ac): Likewise.
3972 * modules/unictype/property-ids-trinary-operator (Depends-on,
3973 configure.ac): Likewise.
3974 * modules/unictype/property-ignorable-control (Depends-on,
3975 configure.ac): Likewise.
3976 * modules/unictype/property-iso-control (Depends-on, configure.ac):
3978 * modules/unictype/property-join-control (Depends-on, configure.ac):
3980 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3982 * modules/unictype/property-line-separator (Depends-on, configure.ac):
3984 * modules/unictype/property-logical-order-exception (Depends-on,
3985 configure.ac): Likewise.
3986 * modules/unictype/property-lowercase (Depends-on, configure.ac):
3988 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3989 * modules/unictype/property-non-break (Depends-on, configure.ac):
3991 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3993 * modules/unictype/property-numeric (Depends-on, configure.ac):
3995 * modules/unictype/property-other-alphabetic (Depends-on,
3996 configure.ac): Likewise.
3997 * modules/unictype/property-other-default-ignorable-code-point
3998 (Depends-on, configure.ac): Likewise.
3999 * modules/unictype/property-other-grapheme-extend (Depends-on,
4000 configure.ac): Likewise.
4001 * modules/unictype/property-other-id-continue (Depends-on,
4002 configure.ac): Likewise.
4003 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4005 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4007 * modules/unictype/property-other-math (Depends-on, configure.ac):
4009 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4011 * modules/unictype/property-paired-punctuation (Depends-on,
4012 configure.ac): Likewise.
4013 * modules/unictype/property-paragraph-separator (Depends-on,
4014 configure.ac): Likewise.
4015 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4017 * modules/unictype/property-pattern-white-space (Depends-on,
4018 configure.ac): Likewise.
4019 * modules/unictype/property-private-use (Depends-on, configure.ac):
4021 * modules/unictype/property-punctuation (Depends-on, configure.ac):
4023 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4025 * modules/unictype/property-radical (Depends-on, configure.ac):
4027 * modules/unictype/property-sentence-terminal (Depends-on,
4028 configure.ac): Likewise.
4029 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4031 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4032 * modules/unictype/property-terminal-punctuation (Depends-on,
4033 configure.ac): Likewise.
4034 * modules/unictype/property-titlecase (Depends-on, configure.ac):
4036 * modules/unictype/property-unassigned-code-value (Depends-on,
4037 configure.ac): Likewise.
4038 * modules/unictype/property-unified-ideograph (Depends-on,
4039 configure.ac): Likewise.
4040 * modules/unictype/property-uppercase (Depends-on, configure.ac):
4042 * modules/unictype/property-variation-selector (Depends-on,
4043 configure.ac): Likewise.
4044 * modules/unictype/property-white-space (Depends-on, configure.ac):
4046 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4048 * modules/unictype/property-xid-start (Depends-on, configure.ac):
4050 * modules/unictype/property-zero-width (Depends-on, configure.ac):
4052 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4053 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4056 2009-12-31 Bruno Haible <bruno@clisp.org>
4058 Remove unnecessary AC_C_INLINE invocation.
4059 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4062 2009-12-31 Jim Meyering <meyering@redhat.com>
4064 maint.mk: don't require explicit gpg_key_ID in cfg.mk
4065 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4066 With this change, we can all remove the gpg_key_ID = ... definition
4067 from our respective cfg.mk files.
4069 maint.mk: create announcement template in ~/, not in /tmp
4070 * top/maint.mk (emit_upload_commands): Adjust.
4071 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4072 Remove temporary file, .ci-msg.
4074 2009-12-31 Eric Blake <ebb9@byu.net>
4076 link-warning: always build headers with link warnings
4077 * modules/arpa_inet (Makefile.am): Always build replacement
4079 * modules/ctype (Makefile.am): Likewise.
4080 * modules/dirent (Makefile.am): Likewise.
4081 * modules/inttypes (Makefile.am): Likewise.
4082 * modules/langinfo (Makefile.am): Likewise.
4083 * modules/locale (Makefile.am): Likewise.
4084 * modules/spawn (Makefile.am): Likewise.
4085 * modules/sys_file (Makefile.am): Likewise.
4086 * modules/sys_ioctl (Makefile.am): Likewise.
4087 * modules/sys_select (Makefile.am): Likewise.
4088 * modules/sys_socket (Makefile.am): Likewise.
4089 * modules/sys_times (Makefile.am): Likewise.
4090 * modules/sys_utsname (Makefile.am): Likewise.
4091 * modules/sys_wait (Makefile.am): Likewise.
4092 * modules/wchar (Makefile.am): Likewise.
4093 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4094 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4095 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4096 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4097 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4099 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4100 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4101 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4103 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4105 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4106 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4107 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4108 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4109 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4110 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4111 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4112 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4113 (gl_WCHAR_H_DEFAULTS): Likewise.
4115 2009-12-31 Eric Blake <ebb9@byu.net>
4117 signal, spawn: use link warnings
4118 * lib/signal.in.h (sigset_t): Make unconditional.
4119 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4120 (sigpending, sigprocmask, sigaction): Add link warnings.
4121 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4122 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4123 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4124 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4125 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4126 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4127 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4128 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4129 (posix_spawn_file_actions_destroy)
4130 (posix_spawn_file_actions_addopen)
4131 (posix_spawn_file_actions_addclose)
4132 (posix_spawn_file_actions_adddup2): Likewise.
4133 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4134 * tests/test-signal.c (main): Enhance test.
4136 spawn: improve wrapper support
4137 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4138 (gl_SPAWN_H_DEFAULTS): New defaults.
4139 * modules/spawn (Makefile.am): Substitute them.
4140 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4141 Only declare if missing or broken.
4143 sys_times, sys_utsname: use include_next
4144 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4146 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4147 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4148 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4149 * modules/sys_times (Depends-on): Add include_next.
4150 (Makefile.am): Substitute additional values.
4151 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4152 * lib/sys_times.in.h (includes): Include native header, if
4154 * lib/sys_utsname.in.h (includes): Likewise.
4155 * tests/test-sys_times.c (main): Enhance test.
4157 fdutimensat: revert prior patch
4158 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4160 Reported by Bruno Haible.
4162 2009-12-30 Eric Blake <ebb9@byu.net>
4164 sys_wait: drop link-warning dependency
4165 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4166 link-warning efforts.
4167 * lib/sys_wait.in.h: Likewise.
4169 fdutimensat: remove bogus dependency
4170 * modules/fdutimensat (Depends-on): Drop inline.
4173 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4175 2009-12-30 Bruno Haible <bruno@clisp.org>
4177 Fix compilation error with Solaris cc.
4178 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4179 * lib/unicase/u16-is-invariant.c: Likewise.
4180 * lib/unicase/u32-is-invariant.c: Likewise.
4181 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4183 2009-12-30 Bruno Haible <bruno@clisp.org>
4186 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4188 Reported by Simon Josefsson <simon@josefsson.org>.
4190 2009-12-30 Bruno Haible <bruno@clisp.org>
4192 Fix compilation error on most platforms.
4193 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4194 Reported by Simon Josefsson <simon@josefsson.org>
4195 and Nelson H. F. Beebe <beebe@math.utah.edu>.
4197 2009-12-30 Eric Blake <ebb9@byu.net>
4199 futimens, utimensat: work around ntfs-3g bug
4200 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4201 a ctime bug is present, and expand workaround to cover ntfs-3g.
4202 * lib/utimens.c (fdutimens, lutimens): Likewise.
4203 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4204 (validate_timespec): Adjust return value.
4205 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4206 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4207 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4209 2009-12-29 Eric Blake <ebb9@byu.net>
4211 link-warning: make usage consistent
4212 * modules/ctype (Depends-on): Add link-warning.
4213 (Makefile.am): Update rules accordingly.
4214 * modules/langinfo (Depends-on, Makefile.am): Likewise.
4215 * modules/locale (Depends-on, Makefile.am): Likewise.
4216 * modules/sys_file (Makefile.am): Likewise.
4217 * modules/getopt-posix (Makefile.am): Delete unused link warning
4219 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4220 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4221 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4222 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4224 stdio: remove unused variables
4225 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4226 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4227 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4229 tests: test more substitute headers
4230 * modules/ctype-tests: New file.
4231 * modules/dirent-tests: Likewise.
4232 * modules/spawn-tests: Likewise.
4233 * modules/sys_file-tests: Likewise.
4234 * modules/sys_ioctl-tests: Likewise.
4235 * modules/sys_wait-tests: Likewise.
4236 * tests/test-ctype.c: Likewise.
4237 * tests/test-dirent.c: Likewise.
4238 * tests/test-spawn.c: Likewise.
4239 * tests/test-sys_file.c: Likewise.
4240 * tests/test-sys_ioctl.c: Likewise.
4241 * tests/test-sys_wait.c: Likewise.
4242 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4243 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4244 whether or not flock is in use.
4246 tests: remove License section from module
4247 * modules/arpa_inet-tests: Remove unneeded section.
4248 * modules/byteswap-tests: Likewise.
4249 * modules/ceilf-tests: Likewise.
4250 * modules/ceill-tests: Likewise.
4251 * modules/crypto/des-tests: Likewise.
4252 * modules/crypto/gc-arcfour-tests: Likewise.
4253 * modules/crypto/gc-arctwo-tests: Likewise.
4254 * modules/crypto/gc-des-tests: Likewise.
4255 * modules/crypto/gc-hmac-md5-tests: Likewise.
4256 * modules/crypto/gc-hmac-sha1-tests: Likewise.
4257 * modules/crypto/gc-md2-tests: Likewise.
4258 * modules/crypto/gc-md4-tests: Likewise.
4259 * modules/crypto/gc-md5-tests: Likewise.
4260 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4261 * modules/crypto/gc-rijndael-tests: Likewise.
4262 * modules/crypto/gc-sha1-tests: Likewise.
4263 * modules/crypto/gc-tests: Likewise.
4264 * modules/crypto/md2-tests: Likewise.
4265 * modules/crypto/md4-tests: Likewise.
4266 * modules/fcntl-h-tests: Likewise.
4267 * modules/floorf-tests: Likewise.
4268 * modules/floorl-tests: Likewise.
4269 * modules/frexp-nolibm-tests: Likewise.
4270 * modules/frexp-tests: Likewise.
4271 * modules/frexpl-nolibm-tests: Likewise.
4272 * modules/frexpl-tests: Likewise.
4273 * modules/getaddrinfo-tests: Likewise.
4274 * modules/inttypes-tests: Likewise.
4275 * modules/isfinite-tests: Likewise.
4276 * modules/isinf-tests: Likewise.
4277 * modules/ldexpl-tests: Likewise.
4278 * modules/locale-tests: Likewise.
4279 * modules/math-tests: Likewise.
4280 * modules/netdb-tests: Likewise.
4281 * modules/netinet_in-tests: Likewise.
4282 * modules/printf-frexp-tests: Likewise.
4283 * modules/printf-frexpl-tests: Likewise.
4284 * modules/priv-set-tests: Likewise.
4285 * modules/random_r-tests: Likewise.
4286 * modules/round-tests: Likewise.
4287 * modules/roundf-tests: Likewise.
4288 * modules/roundl-tests: Likewise.
4289 * modules/search-tests: Likewise.
4290 * modules/select-tests: Likewise.
4291 * modules/signal-tests: Likewise.
4292 * modules/stdbool-tests: Likewise.
4293 * modules/stddef-tests: Likewise.
4294 * modules/stdint-tests: Likewise.
4295 * modules/stdio-tests: Likewise.
4296 * modules/stdlib-tests: Likewise.
4297 * modules/string-tests: Likewise.
4298 * modules/strings-tests: Likewise.
4299 * modules/sys_select-tests: Likewise.
4300 * modules/sys_socket-tests: Likewise.
4301 * modules/sys_stat-tests: Likewise.
4302 * modules/sys_time-tests: Likewise.
4303 * modules/sys_utsname-tests: Likewise.
4304 * modules/sysexits-tests: Likewise.
4305 * modules/time-tests: Likewise.
4306 * modules/trunc-tests: Likewise.
4307 * modules/truncf-tests: Likewise.
4308 * modules/truncl-tests: Likewise.
4309 * modules/tsearch-tests: Likewise.
4310 * modules/unistd-tests: Likewise.
4311 * modules/wchar-tests: Likewise.
4312 * modules/wctype-tests: Likewise.
4314 tests: fix license on several tests
4315 * tests/test-des.c: Update to GPLv3+.
4316 * tests/test-flock.c: Likewise.
4317 * tests/test-fsync.c: Likewise.
4318 * tests/test-futimens.h: Likewise.
4319 * tests/test-gc-arcfour.c: Likewise.
4320 * tests/test-gc-arctwo.c: Likewise.
4321 * tests/test-gc-des.c: Likewise.
4322 * tests/test-gc-hmac-md5.c: Likewise.
4323 * tests/test-gc-hmac-sha1.c: Likewise.
4324 * tests/test-gc-md2.c: Likewise.
4325 * tests/test-gc-md4.c: Likewise.
4326 * tests/test-gc-md5.c: Likewise.
4327 * tests/test-gc-pbkdf2-sha1.c: Likewise.
4328 * tests/test-gc-rijndael.c: Likewise.
4329 * tests/test-gc-sha1.c: Likewise.
4330 * tests/test-gc.c: Likewise.
4331 * tests/test-getcwd.c: Likewise.
4332 * tests/test-link.c: Likewise.
4333 * tests/test-link.h: Likewise.
4334 * tests/test-lutimens.h: Likewise.
4335 * tests/test-md2.c: Likewise.
4336 * tests/test-md4.c: Likewise.
4337 * tests/test-mkdir.h: Likewise.
4338 * tests/test-rename.c: Likewise.
4339 * tests/test-rename.h: Likewise.
4340 * tests/test-safe-alloc.c: Likewise.
4341 * tests/test-utimens-common.h: Likewise.
4342 * tests/test-utimens.h: Likewise.
4344 maint: sync license texts
4345 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4346 * doc/gpl-3.0.texi: Revert copyright year update.
4347 * doc/lgpl-3.0.texi: Likewise.
4349 2009-12-29 Jim Meyering <meyering@redhat.com>
4351 update nearly all FSF copyright year lists to include 2009
4352 The files named by the following are exempted:
4353 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4354 test -f "$dst" && { echo "$dst"; continue; }
4355 test -d "$dst" || continue
4356 echo "$dst"/$(basename "$src")
4358 git ls-files tests/unictype >> exempt
4359 In the remaining files, convert to all-interval notation if
4360 - there is already at least one year interval like 2000-2003
4361 - the file is maintained by me
4362 - the file is in lib/uni*/, where that style already prevails
4363 Otherwise, use update-copyright's default.
4365 2009-12-29 Simon Josefsson <simon@josefsson.org>
4366 and Eric Blake <ebb9@byu.net>
4368 tests: don't require debug system() to pass
4369 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4370 * tests/test-rmdir.h (test_rmdir_func): Likewise.
4371 * tests/test-unlink.h (test_unlink_func): Likewise.
4372 * tests/test-fstatat.c (main): ...into callers.
4373 * tests/test-lstat.c (main): Likewise.
4374 * tests/test-rmdir.c (main): Likewise.
4375 * tests/test-unlink.c (main): Likewise.
4376 * tests/test-unlinkat.c (main): Likewise.
4377 * tests/test-areadlink-with-size.c (main): Don't require a
4378 debug-only system call to pass, aiding cross-testing to mingw.
4379 * tests/test-areadlink.c (main): Likewise.
4380 * tests/test-areadlinkat-with-size.c (main): Likewise.
4381 * tests/test-areadlinkat.c (main): Likewise.
4382 * tests/test-canonicalize-lgpl.c (main): Likewise.
4383 * tests/test-canonicalize.c (main): Likewise.
4384 * tests/test-chown.c (main): Likewise.
4385 * tests/test-fchownat.c (main): Likewise.
4386 * tests/test-lchown.c (main): Likewise.
4387 * tests/test-fdutimensat.c (main): Likewise.
4388 * tests/test-futimens.c (main): Likewise.
4389 * tests/test-link.c (main): Likewise.
4390 * tests/test-linkat.c (main): Likewise.
4391 * tests/test-mkdir.c (main): Likewise.
4392 * tests/test-mkdirat.c (main): Likewise.
4393 * tests/test-mkfifo.c (main): Likewise.
4394 * tests/test-mkfifoat.c (main): Likewise.
4395 * tests/test-mknod.c (main): Likewise.
4396 * tests/test-readlink.c (main): Likewise.
4397 * tests/test-remove.c (main): Likewise.
4398 * tests/test-rename.c (main): Likewise.
4399 * tests/test-renameat.c (main): Likewise.
4400 * tests/test-symlink.c (main): Likewise.
4401 * tests/test-symlinkat.c (main): Likewise.
4402 * tests/test-utimens.c (main): Likewise.
4403 * tests/test-utimensat.c (main): Likewise.
4405 2009-12-29 Simon Josefsson <simon@josefsson.org>
4407 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4408 on $(UNUSED_PARAMETER_H) to avoid build failure.
4410 2009-12-28 Jim Meyering <meyering@redhat.com>
4412 update-copyright: you may specify a max. line length other than 72
4413 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4415 maint: use consistent FSF copyright line syntax
4416 * lib/posixtm.c: Add missing comma in FSF copyright line.
4417 * lib/posixtm.h: Likewise.
4418 * lib/getugroups.c: Add missing ", Inc.".
4420 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4421 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4422 FSF copyright line. Remove trailing blanks.
4424 2009-12-28 Eric Blake <ebb9@byu.net>
4426 test-dup2: reduce dependencies
4427 * modules/cloexec (Configure.ac): Set witness.
4428 * modules/dup2-tests (Depends-on): Drop cloexec.
4429 * tests/test-dup2.c (main): Skip portion of test if cloexec module
4431 Suggested by Bruno Haible.
4433 2009-12-26 Bruno Haible <bruno@clisp.org>
4435 Remove an unneeded dependency.
4436 * modules/fseterr (Depends-on): Remove dup2.
4438 2009-12-26 Eric Blake <ebb9@byu.net>
4440 tests: use macros.h in more places
4441 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4442 (ASSERT_STREAM): Provide default of stderr.
4443 * tests/test-dirent-safer.c: Include macros.h, using alternate
4444 stream for assertions.
4445 * tests/test-dup-safer.c: Likewise.
4446 * tests/test-freopen-safer.c: Likewise.
4447 * tests/test-getopt.c: Likewise.
4448 * tests/test-openat-safer.c: Likewise.
4449 * tests/test-pipe.c: Likewise.
4450 * tests/test-popen-safer.c: Likewise.
4451 * modules/dirent-safer-tests (Files): Include macros.h.
4452 * modules/unistd-safer-tests (Files): Likewise.
4453 * modules/freopen-safer-tests (Files): Likewise.
4454 * modules/getopt-posix-tests (Files): Likewise.
4455 * modules/openat-safer-tests (Files): Likewise.
4456 * modules/pipe-tests (Files): Likewise.
4458 2009-12-26 Bruno Haible <bruno@clisp.org>
4460 javacomp: Portability fix.
4461 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4462 that it also works on Solaris.
4464 2009-12-26 Bruno Haible <bruno@clisp.org>
4466 localename: Fix storage allocation of gl_locale_name_thread's result.
4467 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4468 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4469 all platforms that have 'uselocale'.
4470 (gl_locale_name_thread_unsafe): New function, extracted from
4471 gl_locale_name_thread.
4472 (gl_locale_name_thread): Call struniq on all platforms that have
4474 * tests/test-localename.c (test_locale_name_thread): Check that the
4475 resulting strings are permanently allocated.
4476 * modules/localename-tests (Depends-on): Add strdup.
4478 2009-12-26 Bruno Haible <bruno@clisp.org>
4480 * tests/test-localename.c (categories): Fill in the strings.
4482 2009-12-26 Jim Meyering <meyering@redhat.com>
4484 isdir: complete the removal of m4/isdir.m4
4485 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4487 isdir: clean up, since at least grep still uses it
4488 * lib/isdir.c: Include "isdir.h".
4489 (S_ISDIR): Remove now-unneeded definition.
4490 * modules/isdir (Files): Add lib/isdir.h.
4491 * lib/isdir.h: New file, with declaration.
4492 * m4/isdir.m4: Remove file -- unneeded.
4494 2009-12-25 Bruno Haible <bruno@clisp.org>
4496 selinux-h: Make generated .h files standalone.
4497 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4498 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4499 * lib/se-selinux.in.h: Likewise.
4500 * modules/selinux-h (Depends-on): Add unused-parameter.
4501 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4502 selinux/selinux.h and selinux/context.h.
4503 Suggested by Eric Blake.
4505 2009-12-25 Bruno Haible <bruno@clisp.org>
4507 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4508 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4509 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4510 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4511 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4513 2009-12-24 Bruno Haible <bruno@clisp.org>
4515 openat: Fix warning.
4516 * lib/openat-proc.c: Include <unistd.h>.
4518 2009-12-24 Bruno Haible <bruno@clisp.org>
4520 New module 'unused-parameter'.
4521 * build-aux/unused-parameter.h: New file, extracted from earlier
4523 * modules/unused-parameter: New file.
4524 * lib/unistr.h: Include unused-parameter.h.
4525 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4527 * modules/unistr/base (Depends-on): Add unused-parameter.
4529 2009-12-24 Bruno Haible <bruno@clisp.org>
4531 Add missing dependencies to 'extensions' module.
4532 * m4/extensions.m4: Add comment.
4533 * modules/accept4 (Depends-on): Add extensions.
4534 * modules/dup3 (Depends-on): Likewise.
4535 * modules/fcntl (Depends-on): Likewise.
4536 * modules/futimens (Depends-on): Likewise.
4537 * modules/mknod (Depends-on): Likewise.
4538 * modules/pipe2 (Depends-on): Likewise.
4539 * modules/stat-time (Depends-on): Likewise.
4540 * modules/strcasestr-simple (Depends-on): Likewise.
4541 * modules/strsignal (Depends-on): Likewise.
4542 * modules/utimensat (Depends-on): Likewise.
4543 * modules/localcharset (Depends-on): Likewise. Needed because of
4545 * modules/wcrtomb (Depends-on): Likewise. Needed because of
4547 * modules/wcsnrtombs (Depends-on): Likewise.
4548 * modules/wcsrtombs (Depends-on): Likewise.
4550 2009-12-24 Bruno Haible <bruno@clisp.org>
4552 binary-io: Avoid gcc warning due to SET_BINARY.
4553 * lib/binary-io.h (SET_BINARY): Cast the result to void.
4554 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4556 2009-12-24 Bruno Haible <bruno@clisp.org>
4558 Avoid future namespace pollution on glibc systems.
4559 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4560 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4561 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4564 2009-12-24 Bruno Haible <bruno@clisp.org>
4566 Refactor common macros used in tests.
4567 * tests/macros.h: New file.
4568 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4569 and/or <stdlib.h>, if appropriate.
4570 (ASSERT, SIZEOF): Remove macros.
4571 * tests/test-areadlink-with-size.c: Likewise.
4572 * tests/test-areadlinkat.c: Likewise.
4573 * tests/test-areadlinkat-with-size.c: Likewise.
4574 * tests/test-argmatch.c: Likewise.
4575 * tests/test-argv-iter.c: Likewise.
4576 * tests/test-array-mergesort.c: Likewise.
4577 * tests/test-array_list.c: Likewise.
4578 * tests/test-array_oset.c: Likewise.
4579 * tests/test-avltree_list.c: Likewise.
4580 * tests/test-avltree_oset.c: Likewise.
4581 * tests/test-avltreehash_list.c: Likewise.
4582 * tests/test-base64.c: Likewise.
4583 * tests/test-binary-io.c: Likewise.
4584 * tests/test-bitrotate.c: Likewise.
4585 * tests/test-btowc.c: Likewise.
4586 * tests/test-byteswap.c: Likewise.
4587 * tests/test-c-ctype.c: Likewise.
4588 * tests/test-c-stack.c: Likewise.
4589 * tests/test-c-strcasecmp.c: Likewise.
4590 * tests/test-c-strcasestr.c: Likewise.
4591 * tests/test-c-strncasecmp.c: Likewise.
4592 * tests/test-c-strstr.c: Likewise.
4593 * tests/test-canonicalize-lgpl.c: Likewise.
4594 * tests/test-canonicalize.c: Likewise.
4595 * tests/test-carray_list.c: Likewise.
4596 * tests/test-ceilf1.c: Likewise.
4597 * tests/test-ceilf2.c: Likewise.
4598 * tests/test-ceill.c: Likewise.
4599 * tests/test-chown.c: Likewise.
4600 * tests/test-cloexec.c: Likewise.
4601 * tests/test-copy-acl.c: Likewise.
4602 * tests/test-copy-file.c: Likewise.
4603 * tests/test-count-one-bits.c: Likewise.
4604 * tests/test-dprintf-posix.c: Likewise.
4605 * tests/test-dup2.c: Likewise.
4606 * tests/test-dup3.c: Likewise.
4607 * tests/test-duplocale.c: Likewise.
4608 * tests/test-fbufmode.c: Likewise.
4609 * tests/test-fchdir.c: Likewise.
4610 * tests/test-fchownat.c: Likewise.
4611 * tests/test-fcntl-safer.c: Likewise.
4612 * tests/test-fcntl.c: Likewise.
4613 * tests/test-fdopendir.c: Likewise.
4614 * tests/test-fdutimensat.c: Likewise.
4615 * tests/test-fflush2.c: Likewise.
4616 * tests/test-file-has-acl.c: Likewise.
4617 * tests/test-filevercmp.c: Likewise.
4618 * tests/test-flock.c: Likewise.
4619 * tests/test-floorf1.c: Likewise.
4620 * tests/test-floorf2.c: Likewise.
4621 * tests/test-floorl.c: Likewise.
4622 * tests/test-fnmatch.c: Likewise.
4623 * tests/test-fopen.h: Likewise.
4624 * tests/test-fpending.c: Likewise.
4625 * tests/test-fprintf-posix.c: Likewise.
4626 * tests/test-fpurge.c: Likewise.
4627 * tests/test-freadable.c: Likewise.
4628 * tests/test-freadahead.c: Likewise.
4629 * tests/test-freading.c: Likewise.
4630 * tests/test-freadptr.c: Likewise.
4631 * tests/test-freadptr2.c: Likewise.
4632 * tests/test-freadseek.c: Likewise.
4633 * tests/test-freopen.c: Likewise.
4634 * tests/test-frexp.c: Likewise.
4635 * tests/test-frexpl.c: Likewise.
4636 * tests/test-fseek.c: Likewise.
4637 * tests/test-fseeko.c: Likewise.
4638 * tests/test-fstatat.c: Likewise.
4639 * tests/test-fstrcmp.c: Likewise.
4640 * tests/test-fsync.c: Likewise.
4641 * tests/test-ftell.c: Likewise.
4642 * tests/test-ftello.c: Likewise.
4643 * tests/test-func.c: Likewise.
4644 * tests/test-futimens.c: Likewise.
4645 * tests/test-fwritable.c: Likewise.
4646 * tests/test-fwriting.c: Likewise.
4647 * tests/test-getcwd.c: Likewise.
4648 * tests/test-getdate.c: Likewise.
4649 * tests/test-getdelim.c: Likewise.
4650 * tests/test-getdtablesize.c: Likewise.
4651 * tests/test-getgroups.c: Likewise.
4652 * tests/test-getline.c: Likewise.
4653 * tests/test-getndelim2.c: Likewise.
4654 * tests/test-glob.c: Likewise.
4655 * tests/test-hash.c: Likewise.
4656 * tests/test-i-ring.c: Likewise.
4657 * tests/test-iconv-utf.c: Likewise.
4658 * tests/test-iconv.c: Likewise.
4659 * tests/test-idpriv-drop.c: Likewise.
4660 * tests/test-idpriv-droptemp.c: Likewise.
4661 * tests/test-inet_ntop.c: Likewise.
4662 * tests/test-inet_pton.c: Likewise.
4663 * tests/test-isblank.c: Likewise.
4664 * tests/test-isfinite.c: Likewise.
4665 * tests/test-isinf.c: Likewise.
4666 * tests/test-isnan.c: Likewise.
4667 * tests/test-isnand.h: Likewise.
4668 * tests/test-isnanf.h: Likewise.
4669 * tests/test-isnanl.h: Likewise.
4670 * tests/test-lchown.c: Likewise.
4671 * tests/test-ldexpl.c: Likewise.
4672 * tests/test-link.c: Likewise.
4673 * tests/test-linkat.c: Likewise.
4674 * tests/test-linked_list.c: Likewise.
4675 * tests/test-linkedhash_list.c: Likewise.
4676 * tests/test-localename.c: Likewise.
4677 * tests/test-lseek.c: Likewise.
4678 * tests/test-lstat.c: Likewise.
4679 * tests/test-mbmemcasecmp.c: Likewise.
4680 * tests/test-mbmemcasecoll.c: Likewise.
4681 * tests/test-mbrtowc.c: Likewise.
4682 * tests/test-mbscasecmp.c: Likewise.
4683 * tests/test-mbscasestr1.c: Likewise.
4684 * tests/test-mbscasestr2.c: Likewise.
4685 * tests/test-mbscasestr3.c: Likewise.
4686 * tests/test-mbscasestr4.c: Likewise.
4687 * tests/test-mbschr.c: Likewise.
4688 * tests/test-mbscspn.c: Likewise.
4689 * tests/test-mbsinit.c: Likewise.
4690 * tests/test-mbsncasecmp.c: Likewise.
4691 * tests/test-mbsnrtowcs.c: Likewise.
4692 * tests/test-mbspbrk.c: Likewise.
4693 * tests/test-mbspcasecmp.c: Likewise.
4694 * tests/test-mbsrchr.c: Likewise.
4695 * tests/test-mbsrtowcs.c: Likewise.
4696 * tests/test-mbsspn.c: Likewise.
4697 * tests/test-mbsstr1.c: Likewise.
4698 * tests/test-mbsstr2.c: Likewise.
4699 * tests/test-mbsstr3.c: Likewise.
4700 * tests/test-memchr.c: Likewise.
4701 * tests/test-memchr2.c: Likewise.
4702 * tests/test-memcmp.c: Likewise.
4703 * tests/test-memmem.c: Likewise.
4704 * tests/test-memrchr.c: Likewise.
4705 * tests/test-mkdir.c: Likewise.
4706 * tests/test-mkdirat.c: Likewise.
4707 * tests/test-mkfifo.c: Likewise.
4708 * tests/test-mkfifoat.c: Likewise.
4709 * tests/test-mknod.c: Likewise.
4710 * tests/test-nanosleep.c: Likewise.
4711 * tests/test-nl_langinfo.c: Likewise.
4712 * tests/test-obstack-printf.c: Likewise.
4713 * tests/test-open.c: Likewise.
4714 * tests/test-openat.c: Likewise.
4715 * tests/test-pipe-filter-gi1.c: Likewise.
4716 * tests/test-pipe-filter-gi2-main.c: Likewise.
4717 * tests/test-pipe-filter-ii1.c: Likewise.
4718 * tests/test-pipe-filter-ii2-main.c: Likewise.
4719 * tests/test-pipe2.c: Likewise.
4720 * tests/test-popen.h: Likewise.
4721 * tests/test-posixtm.c: Likewise.
4722 * tests/test-pread.c: Likewise.
4723 * tests/test-printf-frexp.c: Likewise.
4724 * tests/test-printf-frexpl.c: Likewise.
4725 * tests/test-printf-posix.c: Likewise.
4726 * tests/test-priv-set.c: Likewise.
4727 * tests/test-quotearg.c: Likewise.
4728 * tests/test-random_r.c: Likewise.
4729 * tests/test-rawmemchr.c: Likewise.
4730 * tests/test-rbtree_list.c: Likewise.
4731 * tests/test-rbtree_oset.c: Likewise.
4732 * tests/test-rbtreehash_list.c: Likewise.
4733 * tests/test-readlink.c: Likewise.
4734 * tests/test-remove.c: Likewise.
4735 * tests/test-rename.c: Likewise.
4736 * tests/test-renameat.c: Likewise.
4737 * tests/test-rmdir.c: Likewise.
4738 * tests/test-round1.c: Likewise.
4739 * tests/test-roundf1.c: Likewise.
4740 * tests/test-roundl.c: Likewise.
4741 * tests/test-safe-alloc.c: Likewise.
4742 * tests/test-sameacls.c: Likewise.
4743 * tests/test-set-mode-acl.c: Likewise.
4744 * tests/test-setenv.c: Likewise.
4745 * tests/test-sigaction.c: Likewise.
4746 * tests/test-signbit.c: Likewise.
4747 * tests/test-sleep.c: Likewise.
4748 * tests/test-snprintf-posix.c: Likewise.
4749 * tests/test-snprintf.c: Likewise.
4750 * tests/test-sprintf-posix.c: Likewise.
4751 * tests/test-stat-time.c: Likewise.
4752 * tests/test-stat.c: Likewise.
4753 * tests/test-strcasestr.c: Likewise.
4754 * tests/test-strchrnul.c: Likewise.
4755 * tests/test-strerror.c: Likewise.
4756 * tests/test-striconv.c: Likewise.
4757 * tests/test-striconveh.c: Likewise.
4758 * tests/test-striconveha.c: Likewise.
4759 * tests/test-strsignal.c: Likewise.
4760 * tests/test-strstr.c: Likewise.
4761 * tests/test-strtod.c: Likewise.
4762 * tests/test-strverscmp.c: Likewise.
4763 * tests/test-symlink.c: Likewise.
4764 * tests/test-symlinkat.c: Likewise.
4765 * tests/test-trunc1.c: Likewise.
4766 * tests/test-trunc2.c: Likewise.
4767 * tests/test-truncf1.c: Likewise.
4768 * tests/test-truncf2.c: Likewise.
4769 * tests/test-truncl.c: Likewise.
4770 * tests/test-uname.c: Likewise.
4771 * tests/test-unlink.c: Likewise.
4772 * tests/test-unlinkat.c: Likewise.
4773 * tests/test-unsetenv.c: Likewise.
4774 * tests/test-usleep.c: Likewise.
4775 * tests/test-utimens.c: Likewise.
4776 * tests/test-utimensat.c: Likewise.
4777 * tests/test-vasnprintf-posix.c: Likewise.
4778 * tests/test-vasnprintf-posix2.c: Likewise.
4779 * tests/test-vasnprintf.c: Likewise.
4780 * tests/test-vasprintf-posix.c: Likewise.
4781 * tests/test-vasprintf.c: Likewise.
4782 * tests/test-vdprintf-posix.c: Likewise.
4783 * tests/test-vfprintf-posix.c: Likewise.
4784 * tests/test-vprintf-posix.c: Likewise.
4785 * tests/test-vsnprintf-posix.c: Likewise.
4786 * tests/test-vsnprintf.c: Likewise.
4787 * tests/test-vsprintf-posix.c: Likewise.
4788 * tests/test-wcrtomb.c: Likewise.
4789 * tests/test-wcsnrtombs.c: Likewise.
4790 * tests/test-wcsrtombs.c: Likewise.
4791 * tests/test-wctype.c: Likewise.
4792 * tests/test-wcwidth.c: Likewise.
4793 * tests/test-xfprintf-posix.c: Likewise.
4794 * tests/test-xmemdup0.c: Likewise.
4795 * tests/test-xprintf-posix.c: Likewise.
4796 * tests/test-xvasprintf.c: Likewise.
4797 * tests/unicase/test-locale-language.c: Likewise.
4798 * tests/unicase/test-mapping-part1.h: Likewise.
4799 * tests/unicase/test-predicate-part1.h: Likewise.
4800 * tests/unicase/test-u8-casecmp.c: Likewise.
4801 * tests/unicase/test-u8-casecoll.c: Likewise.
4802 * tests/unicase/test-u8-casefold.c: Likewise.
4803 * tests/unicase/test-u8-is-cased.c: Likewise.
4804 * tests/unicase/test-u8-is-casefolded.c: Likewise.
4805 * tests/unicase/test-u8-is-lowercase.c: Likewise.
4806 * tests/unicase/test-u8-is-titlecase.c: Likewise.
4807 * tests/unicase/test-u8-is-uppercase.c: Likewise.
4808 * tests/unicase/test-u8-tolower.c: Likewise.
4809 * tests/unicase/test-u8-totitle.c: Likewise.
4810 * tests/unicase/test-u8-toupper.c: Likewise.
4811 * tests/unicase/test-u16-casecmp.c: Likewise.
4812 * tests/unicase/test-u16-casecoll.c: Likewise.
4813 * tests/unicase/test-u16-casefold.c: Likewise.
4814 * tests/unicase/test-u16-is-cased.c: Likewise.
4815 * tests/unicase/test-u16-is-casefolded.c: Likewise.
4816 * tests/unicase/test-u16-is-lowercase.c: Likewise.
4817 * tests/unicase/test-u16-is-titlecase.c: Likewise.
4818 * tests/unicase/test-u16-is-uppercase.c: Likewise.
4819 * tests/unicase/test-u16-tolower.c: Likewise.
4820 * tests/unicase/test-u16-totitle.c: Likewise.
4821 * tests/unicase/test-u16-toupper.c: Likewise.
4822 * tests/unicase/test-u32-casecmp.c: Likewise.
4823 * tests/unicase/test-u32-casecoll.c: Likewise.
4824 * tests/unicase/test-u32-casefold.c: Likewise.
4825 * tests/unicase/test-u32-is-cased.c: Likewise.
4826 * tests/unicase/test-u32-is-casefolded.c: Likewise.
4827 * tests/unicase/test-u32-is-lowercase.c: Likewise.
4828 * tests/unicase/test-u32-is-titlecase.c: Likewise.
4829 * tests/unicase/test-u32-is-uppercase.c: Likewise.
4830 * tests/unicase/test-u32-tolower.c: Likewise.
4831 * tests/unicase/test-u32-totitle.c: Likewise.
4832 * tests/unicase/test-u32-toupper.c: Likewise.
4833 * tests/unicase/test-ulc-casecmp.c: Likewise.
4834 * tests/unicase/test-ulc-casecoll.c: Likewise.
4835 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4836 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4837 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4838 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4839 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4840 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4841 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4842 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4843 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4844 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4845 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4846 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4847 * tests/unictype/test-bidi_byname.c: Likewise.
4848 * tests/unictype/test-bidi_name.c: Likewise.
4849 * tests/unictype/test-bidi_of.c: Likewise.
4850 * tests/unictype/test-bidi_test.c: Likewise.
4851 * tests/unictype/test-block_list.c: Likewise.
4852 * tests/unictype/test-block_of.c: Likewise.
4853 * tests/unictype/test-block_test.c: Likewise.
4854 * tests/unictype/test-categ_and.c: Likewise.
4855 * tests/unictype/test-categ_and_not.c: Likewise.
4856 * tests/unictype/test-categ_byname.c: Likewise.
4857 * tests/unictype/test-categ_name.c: Likewise.
4858 * tests/unictype/test-categ_none.c: Likewise.
4859 * tests/unictype/test-categ_of.c: Likewise.
4860 * tests/unictype/test-categ_or.c: Likewise.
4861 * tests/unictype/test-categ_test_withtable.c: Likewise.
4862 * tests/unictype/test-combining.c: Likewise.
4863 * tests/unictype/test-decdigit.c: Likewise.
4864 * tests/unictype/test-digit.c: Likewise.
4865 * tests/unictype/test-mirror.c: Likewise.
4866 * tests/unictype/test-numeric.c: Likewise.
4867 * tests/unictype/test-pr_byname.c: Likewise.
4868 * tests/unictype/test-pr_test.c: Likewise.
4869 * tests/unictype/test-predicate-part1.h: Likewise.
4870 * tests/unictype/test-scripts.c: Likewise.
4871 * tests/unictype/test-sy_c_ident.c: Likewise.
4872 * tests/unictype/test-sy_java_ident.c: Likewise.
4873 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4874 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4875 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4876 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4877 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4878 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4879 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4880 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4881 * tests/uninorm/test-canonical-decomposition.c: Likewise.
4882 * tests/uninorm/test-compat-decomposition.c: Likewise.
4883 * tests/uninorm/test-composition.c: Likewise.
4884 * tests/uninorm/test-decomposing-form.c: Likewise.
4885 * tests/uninorm/test-decomposition.c: Likewise.
4886 * tests/uninorm/test-u8-nfc.c: Likewise.
4887 * tests/uninorm/test-u8-nfd.c: Likewise.
4888 * tests/uninorm/test-u8-nfkc.c: Likewise.
4889 * tests/uninorm/test-u8-nfkd.c: Likewise.
4890 * tests/uninorm/test-u8-normcmp.c: Likewise.
4891 * tests/uninorm/test-u8-normcoll.c: Likewise.
4892 * tests/uninorm/test-u16-nfc.c: Likewise.
4893 * tests/uninorm/test-u16-nfd.c: Likewise.
4894 * tests/uninorm/test-u16-nfkc.c: Likewise.
4895 * tests/uninorm/test-u16-nfkd.c: Likewise.
4896 * tests/uninorm/test-u16-normcmp.c: Likewise.
4897 * tests/uninorm/test-u16-normcoll.c: Likewise.
4898 * tests/uninorm/test-u32-nfc.c: Likewise.
4899 * tests/uninorm/test-u32-nfd.c: Likewise.
4900 * tests/uninorm/test-u32-nfkc.c: Likewise.
4901 * tests/uninorm/test-u32-nfkd.c: Likewise.
4902 * tests/uninorm/test-u32-normalize-big.c: Likewise.
4903 * tests/uninorm/test-u32-normcmp.c: Likewise.
4904 * tests/uninorm/test-u32-normcoll.c: Likewise.
4905 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4906 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4907 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4908 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4909 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4910 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4911 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4912 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4913 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4914 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4915 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4916 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4917 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4918 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4919 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4920 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4921 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4922 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4923 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4924 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4925 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4926 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4927 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4928 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4929 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4930 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4931 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4932 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4933 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4934 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4935 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4936 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4937 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4938 * tests/uniwidth/test-u8-strwidth.c: Likewise.
4939 * tests/uniwidth/test-u8-width.c: Likewise.
4940 * tests/uniwidth/test-u16-strwidth.c: Likewise.
4941 * tests/uniwidth/test-u16-width.c: Likewise.
4942 * tests/uniwidth/test-u32-strwidth.c: Likewise.
4943 * tests/uniwidth/test-u32-width.c: Likewise.
4944 * tests/uniwidth/test-uc_width.c: Likewise.
4945 * tests/uniwidth/test-uc_width2.c: Likewise.
4946 * modules/acl-tests (Files): Add tests/macros.h.
4947 * modules/areadlink-tests (Files): Likewise.
4948 * modules/areadlink-with-size-tests (Files): Likewise.
4949 * modules/areadlinkat-tests (Files): Likewise.
4950 * modules/areadlinkat-with-size-tests (Files): Likewise.
4951 * modules/argmatch-tests (Files): Likewise.
4952 * modules/argv-iter-tests (Files): Likewise.
4953 * modules/array-list-tests (Files): Likewise.
4954 * modules/array-mergesort-tests (Files): Likewise.
4955 * modules/array-oset-tests (Files): Likewise.
4956 * modules/avltree-list-tests (Files): Likewise.
4957 * modules/avltree-oset-tests (Files): Likewise.
4958 * modules/avltreehash-list-tests (Files): Likewise.
4959 * modules/base64-tests (Files): Likewise.
4960 * modules/binary-io-tests (Files): Likewise.
4961 * modules/bitrotate-tests (Files): Likewise.
4962 * modules/btowc-tests (Files): Likewise.
4963 * modules/byteswap-tests (Files): Likewise.
4964 * modules/c-ctype-tests (Files): Likewise.
4965 * modules/c-stack-tests (Files): Likewise.
4966 * modules/c-strcase-tests (Files): Likewise.
4967 * modules/c-strcasestr-tests (Files): Likewise.
4968 * modules/c-strstr-tests (Files): Likewise.
4969 * modules/canonicalize-lgpl-tests (Files): Likewise.
4970 * modules/canonicalize-tests (Files): Likewise.
4971 * modules/carray-list-tests (Files): Likewise.
4972 * modules/ceilf-tests (Files): Likewise.
4973 * modules/ceill-tests (Files): Likewise.
4974 * modules/chown-tests (Files): Likewise.
4975 * modules/cloexec-tests (Files): Likewise.
4976 * modules/copy-file-tests (Files): Likewise.
4977 * modules/count-one-bits-tests (Files): Likewise.
4978 * modules/dprintf-posix-tests (Files): Likewise.
4979 * modules/dup2-tests (Files): Likewise.
4980 * modules/dup3-tests (Files): Likewise.
4981 * modules/duplocale-tests (Files): Likewise.
4982 * modules/fbufmode-tests (Files): Likewise.
4983 * modules/fchdir-tests (Files): Likewise.
4984 * modules/fcntl-safer-tests (Files): Likewise.
4985 * modules/fcntl-tests (Files): Likewise.
4986 * modules/fdopendir-tests (Files): Likewise.
4987 * modules/fdutimensat-tests (Files): Likewise.
4988 * modules/fflush-tests (Files): Likewise.
4989 * modules/filevercmp-tests (Files): Likewise.
4990 * modules/flock-tests (Files): Likewise.
4991 * modules/floorf-tests (Files): Likewise.
4992 * modules/floorl-tests (Files): Likewise.
4993 * modules/fnmatch-tests (Files): Likewise.
4994 * modules/fopen-safer-tests (Files): Likewise.
4995 * modules/fopen-tests (Files): Likewise.
4996 * modules/fpending-tests (Files): Likewise.
4997 * modules/fprintf-posix-tests (Files): Likewise.
4998 * modules/fpurge-tests (Files): Likewise.
4999 * modules/freadable-tests (Files): Likewise.
5000 * modules/freadahead-tests (Files): Likewise.
5001 * modules/freading-tests (Files): Likewise.
5002 * modules/freadptr-tests (Files): Likewise.
5003 * modules/freadseek-tests (Files): Likewise.
5004 * modules/freopen-tests (Files): Likewise.
5005 * modules/frexp-nolibm-tests (Files): Likewise.
5006 * modules/frexp-tests (Files): Likewise.
5007 * modules/frexpl-nolibm-tests (Files): Likewise.
5008 * modules/frexpl-tests (Files): Likewise.
5009 * modules/fseek-tests (Files): Likewise.
5010 * modules/fseeko-tests (Files): Likewise.
5011 * modules/fstrcmp-tests (Files): Likewise.
5012 * modules/fsync-tests (Files): Likewise.
5013 * modules/ftell-tests (Files): Likewise.
5014 * modules/ftello-tests (Files): Likewise.
5015 * modules/func-tests (Files): Likewise.
5016 * modules/futimens-tests (Files): Likewise.
5017 * modules/fwritable-tests (Files): Likewise.
5018 * modules/fwriting-tests (Files): Likewise.
5019 * modules/getcwd-tests (Files): Likewise.
5020 * modules/getdate-tests (Files): Likewise.
5021 * modules/getdelim-tests (Files): Likewise.
5022 * modules/getdtablesize-tests (Files): Likewise.
5023 * modules/getgroups-tests (Files): Likewise.
5024 * modules/getline-tests (Files): Likewise.
5025 * modules/getndelim2-tests (Files): Likewise.
5026 * modules/glob-tests (Files): Likewise.
5027 * modules/hash-tests (Files): Likewise.
5028 * modules/i-ring-tests (Files): Likewise.
5029 * modules/iconv-tests (Files): Likewise.
5030 * modules/iconv_open-utf-tests (Files): Likewise.
5031 * modules/idpriv-drop-tests (Files): Likewise.
5032 * modules/idpriv-droptemp-tests (Files): Likewise.
5033 * modules/inet_ntop-tests (Files): Likewise.
5034 * modules/inet_pton-tests (Files): Likewise.
5035 * modules/isblank-tests (Files): Likewise.
5036 * modules/isfinite-tests (Files): Likewise.
5037 * modules/isinf-tests (Files): Likewise.
5038 * modules/isnan-tests (Files): Likewise.
5039 * modules/isnand-nolibm-tests (Files): Likewise.
5040 * modules/isnand-tests (Files): Likewise.
5041 * modules/isnanf-nolibm-tests (Files): Likewise.
5042 * modules/isnanf-tests (Files): Likewise.
5043 * modules/isnanl-nolibm-tests (Files): Likewise.
5044 * modules/isnanl-tests (Files): Likewise.
5045 * modules/lchown-tests (Files): Likewise.
5046 * modules/ldexpl-tests (Files): Likewise.
5047 * modules/link-tests (Files): Likewise.
5048 * modules/linkat-tests (Files): Likewise.
5049 * modules/linked-list-tests (Files): Likewise.
5050 * modules/linkedhash-list-tests (Files): Likewise.
5051 * modules/localename-tests (Files): Likewise.
5052 * modules/lseek-tests (Files): Likewise.
5053 * modules/lstat-tests (Files): Likewise.
5054 * modules/mbmemcasecmp-tests (Files): Likewise.
5055 * modules/mbmemcasecoll-tests (Files): Likewise.
5056 * modules/mbrtowc-tests (Files): Likewise.
5057 * modules/mbscasecmp-tests (Files): Likewise.
5058 * modules/mbscasestr-tests (Files): Likewise.
5059 * modules/mbschr-tests (Files): Likewise.
5060 * modules/mbscspn-tests (Files): Likewise.
5061 * modules/mbsinit-tests (Files): Likewise.
5062 * modules/mbsncasecmp-tests (Files): Likewise.
5063 * modules/mbsnrtowcs-tests (Files): Likewise.
5064 * modules/mbspbrk-tests (Files): Likewise.
5065 * modules/mbspcasecmp-tests (Files): Likewise.
5066 * modules/mbsrchr-tests (Files): Likewise.
5067 * modules/mbsrtowcs-tests (Files): Likewise.
5068 * modules/mbsspn-tests (Files): Likewise.
5069 * modules/mbsstr-tests (Files): Likewise.
5070 * modules/memchr-tests (Files): Likewise.
5071 * modules/memchr2-tests (Files): Likewise.
5072 * modules/memcmp-tests (Files): Likewise.
5073 * modules/memmem-tests (Files): Likewise.
5074 * modules/memrchr-tests (Files): Likewise.
5075 * modules/mkdir-tests (Files): Likewise.
5076 * modules/mkfifo-tests (Files): Likewise.
5077 * modules/mkfifoat-tests (Files): Likewise.
5078 * modules/mknod-tests (Files): Likewise.
5079 * modules/nanosleep-tests (Files): Likewise.
5080 * modules/nl_langinfo-tests (Files): Likewise.
5081 * modules/obstack-printf-tests (Files): Likewise.
5082 * modules/open-tests (Files): Likewise.
5083 * modules/openat-tests (Files): Likewise.
5084 * modules/pipe-filter-gi-tests (Files): Likewise.
5085 * modules/pipe-filter-ii-tests (Files): Likewise.
5086 * modules/pipe2-tests (Files): Likewise.
5087 * modules/popen-safer-tests (Files): Likewise.
5088 * modules/popen-tests (Files): Likewise.
5089 * modules/posixtm-tests (Files): Likewise.
5090 * modules/pread-tests (Files): Likewise.
5091 * modules/printf-frexp-tests (Files): Likewise.
5092 * modules/printf-frexpl-tests (Files): Likewise.
5093 * modules/printf-posix-tests (Files): Likewise.
5094 * modules/priv-set-tests (Files): Likewise.
5095 * modules/quotearg-tests (Files): Likewise.
5096 * modules/random_r-tests (Files): Likewise.
5097 * modules/rawmemchr-tests (Files): Likewise.
5098 * modules/rbtree-list-tests (Files): Likewise.
5099 * modules/rbtree-oset-tests (Files): Likewise.
5100 * modules/rbtreehash-list-tests (Files): Likewise.
5101 * modules/readlink-tests (Files): Likewise.
5102 * modules/remove-tests (Files): Likewise.
5103 * modules/rename-tests (Files): Likewise.
5104 * modules/renameat-tests (Files): Likewise.
5105 * modules/rmdir-tests (Files): Likewise.
5106 * modules/round-tests (Files): Likewise.
5107 * modules/roundf-tests (Files): Likewise.
5108 * modules/roundl-tests (Files): Likewise.
5109 * modules/safe-alloc-tests (Files): Likewise.
5110 * modules/setenv-tests (Files): Likewise.
5111 * modules/sigaction-tests (Files): Likewise.
5112 * modules/signbit-tests (Files): Likewise.
5113 * modules/sleep-tests (Files): Likewise.
5114 * modules/snprintf-posix-tests (Files): Likewise.
5115 * modules/snprintf-tests (Files): Likewise.
5116 * modules/sprintf-posix-tests (Files): Likewise.
5117 * modules/stat-tests (Files): Likewise.
5118 * modules/stat-time-tests (Files): Likewise.
5119 * modules/strcasestr-tests (Files): Likewise.
5120 * modules/strchrnul-tests (Files): Likewise.
5121 * modules/strerror-tests (Files): Likewise.
5122 * modules/striconv-tests (Files): Likewise.
5123 * modules/striconveh-tests (Files): Likewise.
5124 * modules/striconveha-tests (Files): Likewise.
5125 * modules/strsignal-tests (Files): Likewise.
5126 * modules/strstr-tests (Files): Likewise.
5127 * modules/strtod-tests (Files): Likewise.
5128 * modules/strverscmp-tests (Files): Likewise.
5129 * modules/symlink-tests (Files): Likewise.
5130 * modules/symlinkat-tests (Files): Likewise.
5131 * modules/trunc-tests (Files): Likewise.
5132 * modules/truncf-tests (Files): Likewise.
5133 * modules/truncl-tests (Files): Likewise.
5134 * modules/uname-tests (Files): Likewise.
5135 * modules/unicase/cased-tests (Files): Likewise.
5136 * modules/unicase/ignorable-tests (Files): Likewise.
5137 * modules/unicase/locale-language-tests (Files): Likewise.
5138 * modules/unicase/tolower-tests (Files): Likewise.
5139 * modules/unicase/totitle-tests (Files): Likewise.
5140 * modules/unicase/toupper-tests (Files): Likewise.
5141 * modules/unicase/u8-casecmp-tests (Files): Likewise.
5142 * modules/unicase/u8-casecoll-tests (Files): Likewise.
5143 * modules/unicase/u8-casefold-tests (Files): Likewise.
5144 * modules/unicase/u8-is-cased-tests (Files): Likewise.
5145 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5146 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5147 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5148 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5149 * modules/unicase/u8-tolower-tests (Files): Likewise.
5150 * modules/unicase/u8-totitle-tests (Files): Likewise.
5151 * modules/unicase/u8-toupper-tests (Files): Likewise.
5152 * modules/unicase/u16-casecmp-tests (Files): Likewise.
5153 * modules/unicase/u16-casecoll-tests (Files): Likewise.
5154 * modules/unicase/u16-casefold-tests (Files): Likewise.
5155 * modules/unicase/u16-is-cased-tests (Files): Likewise.
5156 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5157 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5158 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5159 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5160 * modules/unicase/u16-tolower-tests (Files): Likewise.
5161 * modules/unicase/u16-totitle-tests (Files): Likewise.
5162 * modules/unicase/u16-toupper-tests (Files): Likewise.
5163 * modules/unicase/u32-casecmp-tests (Files): Likewise.
5164 * modules/unicase/u32-casecoll-tests (Files): Likewise.
5165 * modules/unicase/u32-casefold-tests (Files): Likewise.
5166 * modules/unicase/u32-is-cased-tests (Files): Likewise.
5167 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5168 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5169 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5170 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5171 * modules/unicase/u32-tolower-tests (Files): Likewise.
5172 * modules/unicase/u32-totitle-tests (Files): Likewise.
5173 * modules/unicase/u32-toupper-tests (Files): Likewise.
5174 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5175 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5176 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5177 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5178 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5179 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5180 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5181 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5182 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5183 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5184 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5185 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5186 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5187 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5188 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5189 * modules/unictype/bidicategory-name-tests (Files): Likewise.
5190 * modules/unictype/bidicategory-of-tests (Files): Likewise.
5191 * modules/unictype/bidicategory-test-tests (Files): Likewise.
5192 * modules/unictype/block-list-tests (Files): Likewise.
5193 * modules/unictype/block-of-tests (Files): Likewise.
5194 * modules/unictype/block-test-tests (Files): Likewise.
5195 * modules/unictype/category-C-tests (Files): Likewise.
5196 * modules/unictype/category-Cc-tests (Files): Likewise.
5197 * modules/unictype/category-Cf-tests (Files): Likewise.
5198 * modules/unictype/category-Cn-tests (Files): Likewise.
5199 * modules/unictype/category-Co-tests (Files): Likewise.
5200 * modules/unictype/category-Cs-tests (Files): Likewise.
5201 * modules/unictype/category-L-tests (Files): Likewise.
5202 * modules/unictype/category-Ll-tests (Files): Likewise.
5203 * modules/unictype/category-Lm-tests (Files): Likewise.
5204 * modules/unictype/category-Lo-tests (Files): Likewise.
5205 * modules/unictype/category-Lt-tests (Files): Likewise.
5206 * modules/unictype/category-Lu-tests (Files): Likewise.
5207 * modules/unictype/category-M-tests (Files): Likewise.
5208 * modules/unictype/category-Mc-tests (Files): Likewise.
5209 * modules/unictype/category-Me-tests (Files): Likewise.
5210 * modules/unictype/category-Mn-tests (Files): Likewise.
5211 * modules/unictype/category-N-tests (Files): Likewise.
5212 * modules/unictype/category-Nd-tests (Files): Likewise.
5213 * modules/unictype/category-Nl-tests (Files): Likewise.
5214 * modules/unictype/category-No-tests (Files): Likewise.
5215 * modules/unictype/category-P-tests (Files): Likewise.
5216 * modules/unictype/category-Pc-tests (Files): Likewise.
5217 * modules/unictype/category-Pd-tests (Files): Likewise.
5218 * modules/unictype/category-Pe-tests (Files): Likewise.
5219 * modules/unictype/category-Pf-tests (Files): Likewise.
5220 * modules/unictype/category-Pi-tests (Files): Likewise.
5221 * modules/unictype/category-Po-tests (Files): Likewise.
5222 * modules/unictype/category-Ps-tests (Files): Likewise.
5223 * modules/unictype/category-S-tests (Files): Likewise.
5224 * modules/unictype/category-Sc-tests (Files): Likewise.
5225 * modules/unictype/category-Sk-tests (Files): Likewise.
5226 * modules/unictype/category-Sm-tests (Files): Likewise.
5227 * modules/unictype/category-So-tests (Files): Likewise.
5228 * modules/unictype/category-Z-tests (Files): Likewise.
5229 * modules/unictype/category-Zl-tests (Files): Likewise.
5230 * modules/unictype/category-Zp-tests (Files): Likewise.
5231 * modules/unictype/category-Zs-tests (Files): Likewise.
5232 * modules/unictype/category-and-not-tests (Files): Likewise.
5233 * modules/unictype/category-and-tests (Files): Likewise.
5234 * modules/unictype/category-byname-tests (Files): Likewise.
5235 * modules/unictype/category-name-tests (Files): Likewise.
5236 * modules/unictype/category-none-tests (Files): Likewise.
5237 * modules/unictype/category-of-tests (Files): Likewise.
5238 * modules/unictype/category-or-tests (Files): Likewise.
5239 * modules/unictype/category-test-withtable-tests (Files): Likewise.
5240 * modules/unictype/combining-class-tests (Files): Likewise.
5241 * modules/unictype/ctype-alnum-tests (Files): Likewise.
5242 * modules/unictype/ctype-alpha-tests (Files): Likewise.
5243 * modules/unictype/ctype-blank-tests (Files): Likewise.
5244 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5245 * modules/unictype/ctype-digit-tests (Files): Likewise.
5246 * modules/unictype/ctype-graph-tests (Files): Likewise.
5247 * modules/unictype/ctype-lower-tests (Files): Likewise.
5248 * modules/unictype/ctype-print-tests (Files): Likewise.
5249 * modules/unictype/ctype-punct-tests (Files): Likewise.
5250 * modules/unictype/ctype-space-tests (Files): Likewise.
5251 * modules/unictype/ctype-upper-tests (Files): Likewise.
5252 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5253 * modules/unictype/decimal-digit-tests (Files): Likewise.
5254 * modules/unictype/digit-tests (Files): Likewise.
5255 * modules/unictype/mirror-tests (Files): Likewise.
5256 * modules/unictype/numeric-tests (Files): Likewise.
5257 * modules/unictype/property-alphabetic-tests (Files): Likewise.
5258 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5259 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5260 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5262 * modules/unictype/property-bidi-block-separator-tests (Files):
5264 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5266 * modules/unictype/property-bidi-common-separator-tests (Files):
5268 * modules/unictype/property-bidi-control-tests (Files): Likewise.
5269 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5271 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5273 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5275 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5276 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5278 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5279 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5281 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5282 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5283 * modules/unictype/property-bidi-segment-separator-tests (Files):
5285 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5286 * modules/unictype/property-byname-tests (Files): Likewise.
5287 * modules/unictype/property-combining-tests (Files): Likewise.
5288 * modules/unictype/property-composite-tests (Files): Likewise.
5289 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5290 * modules/unictype/property-dash-tests (Files): Likewise.
5291 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5292 * modules/unictype/property-default-ignorable-code-point-tests (Files):
5294 * modules/unictype/property-deprecated-tests (Files): Likewise.
5295 * modules/unictype/property-diacritic-tests (Files): Likewise.
5296 * modules/unictype/property-extender-tests (Files): Likewise.
5297 * modules/unictype/property-format-control-tests (Files): Likewise.
5298 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5299 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5300 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5301 * modules/unictype/property-hex-digit-tests (Files): Likewise.
5302 * modules/unictype/property-hyphen-tests (Files): Likewise.
5303 * modules/unictype/property-id-continue-tests (Files): Likewise.
5304 * modules/unictype/property-id-start-tests (Files): Likewise.
5305 * modules/unictype/property-ideographic-tests (Files): Likewise.
5306 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5307 * modules/unictype/property-ids-trinary-operator-tests (Files):
5309 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5310 * modules/unictype/property-iso-control-tests (Files): Likewise.
5311 * modules/unictype/property-join-control-tests (Files): Likewise.
5312 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5313 * modules/unictype/property-line-separator-tests (Files): Likewise.
5314 * modules/unictype/property-logical-order-exception-tests (Files):
5316 * modules/unictype/property-lowercase-tests (Files): Likewise.
5317 * modules/unictype/property-math-tests (Files): Likewise.
5318 * modules/unictype/property-non-break-tests (Files): Likewise.
5319 * modules/unictype/property-not-a-character-tests (Files): Likewise.
5320 * modules/unictype/property-numeric-tests (Files): Likewise.
5321 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5322 * modules/unictype/property-other-default-ignorable-code-point-tests
5324 * modules/unictype/property-other-grapheme-extend-tests (Files):
5326 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5327 * modules/unictype/property-other-id-start-tests (Files): Likewise.
5328 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5329 * modules/unictype/property-other-math-tests (Files): Likewise.
5330 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5331 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5332 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5333 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5334 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5335 * modules/unictype/property-private-use-tests (Files): Likewise.
5336 * modules/unictype/property-punctuation-tests (Files): Likewise.
5337 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5338 * modules/unictype/property-radical-tests (Files): Likewise.
5339 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5340 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5341 * modules/unictype/property-space-tests (Files): Likewise.
5342 * modules/unictype/property-terminal-punctuation-tests (Files):
5344 * modules/unictype/property-test-tests (Files): Likewise.
5345 * modules/unictype/property-titlecase-tests (Files): Likewise.
5346 * modules/unictype/property-unassigned-code-value-tests (Files):
5348 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5349 * modules/unictype/property-uppercase-tests (Files): Likewise.
5350 * modules/unictype/property-variation-selector-tests (Files): Likewise.
5351 * modules/unictype/property-white-space-tests (Files): Likewise.
5352 * modules/unictype/property-xid-continue-tests (Files): Likewise.
5353 * modules/unictype/property-xid-start-tests (Files): Likewise.
5354 * modules/unictype/property-zero-width-tests (Files): Likewise.
5355 * modules/unictype/scripts-tests (Files): Likewise.
5356 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5357 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5358 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5359 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5360 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5361 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5362 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5363 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5364 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5365 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5366 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5367 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5368 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5369 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5370 * modules/uninorm/composition-tests (Files): Likewise.
5371 * modules/uninorm/decomposing-form-tests (Files): Likewise.
5372 * modules/uninorm/decomposition-tests (Files): Likewise.
5373 * modules/uninorm/filter-tests (Files): Likewise.
5374 * modules/uninorm/nfc-tests (Files): Likewise.
5375 * modules/uninorm/nfd-tests (Files): Likewise.
5376 * modules/uninorm/nfkc-tests (Files): Likewise.
5377 * modules/uninorm/nfkd-tests (Files): Likewise.
5378 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5379 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5380 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5381 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5382 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5383 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5384 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5385 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5386 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5387 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5388 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5389 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5390 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5391 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5392 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5393 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5394 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5395 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5396 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5397 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5398 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5399 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5400 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5401 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5402 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5403 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5404 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5405 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5406 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5407 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5408 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5409 * modules/uniwidth/u8-width-tests (Files): Likewise.
5410 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5411 * modules/uniwidth/u16-width-tests (Files): Likewise.
5412 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5413 * modules/uniwidth/u32-width-tests (Files): Likewise.
5414 * modules/uniwidth/width-tests (Files): Likewise.
5415 * modules/unlink-tests (Files): Likewise.
5416 * modules/unsetenv-tests (Files): Likewise.
5417 * modules/usleep-tests (Files): Likewise.
5418 * modules/utimens-tests (Files): Likewise.
5419 * modules/utimensat-tests (Files): Likewise.
5420 * modules/vasnprintf-posix-tests (Files): Likewise.
5421 * modules/vasnprintf-tests (Files): Likewise.
5422 * modules/vasprintf-posix-tests (Files): Likewise.
5423 * modules/vasprintf-tests (Files): Likewise.
5424 * modules/vdprintf-posix-tests (Files): Likewise.
5425 * modules/vfprintf-posix-tests (Files): Likewise.
5426 * modules/vprintf-posix-tests (Files): Likewise.
5427 * modules/vsnprintf-posix-tests (Files): Likewise.
5428 * modules/vsnprintf-tests (Files): Likewise.
5429 * modules/vsprintf-posix-tests (Files): Likewise.
5430 * modules/wcrtomb-tests (Files): Likewise.
5431 * modules/wcsnrtombs-tests (Files): Likewise.
5432 * modules/wcsrtombs-tests (Files): Likewise.
5433 * modules/wctype-tests (Files): Likewise.
5434 * modules/wcwidth-tests (Files): Likewise.
5435 * modules/xmemdup0-tests (Files): Likewise.
5436 * modules/xprintf-posix-tests (Files): Likewise.
5437 * modules/xvasprintf-tests (Files): Likewise.
5439 2009-12-24 Eric Blake <ebb9@byu.net>
5441 test-nanosleep: fix typo
5442 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5444 Reported by Bruno Haible.
5446 2009-12-24 Bruno Haible <bruno@clisp.org>
5448 Reduce namespace pollution on glibc systems.
5449 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5450 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5452 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5453 <getopt.h> on glibc systems.
5454 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5456 * lib/fcntl.c: Include <unistd.h> here instead.
5458 2009-12-24 Bruno Haible <bruno@clisp.org>
5460 * lib/stdlib.in.h (includes): Fix typo in today's commit.
5462 2009-12-24 Eric Blake <ebb9@byu.net>
5464 tests: add signature checks
5465 * tests/signature.h (SIGNATURE_CHECK): New file.
5466 * modules/atexit-tests (Files): Use it.
5467 * modules/btowc-tests (Files): Likewise.
5468 * modules/canonicalize-lgpl-tests (Files): Likewise.
5469 * modules/ceilf-tests (Files): Likewise.
5470 * modules/ceill-tests (Files): Likewise.
5471 * modules/chown-tests (Files): Likewise.
5472 * modules/dprintf-posix-tests (Files): Likewise.
5473 * modules/dup2-tests (Files): Likewise.
5474 * modules/dup3-tests (Files): Likewise.
5475 * modules/duplocale-tests (Files): Likewise.
5476 * modules/fchdir-tests (Files): Likewise.
5477 * modules/fcntl-tests (Files): Likewise.
5478 * modules/fdopendir-tests (Files): Likewise.
5479 * modules/fflush-tests (Files): Likewise.
5480 * modules/flock-tests (Files): Likewise.
5481 * modules/floorf-tests (Files): Likewise.
5482 * modules/floorl-tests (Files): Likewise.
5483 * modules/fnmatch-tests (Files): Likewise.
5484 * modules/fopen-tests (Files): Likewise.
5485 * modules/fprintf-posix-tests (Files): Likewise.
5486 * modules/freopen-tests (Files): Likewise.
5487 * modules/frexp-nolibm-tests (Files): Likewise.
5488 * modules/frexp-tests (Files): Likewise.
5489 * modules/frexpl-nolibm-tests (Files): Likewise.
5490 * modules/frexpl-tests (Files): Likewise.
5491 * modules/fseek-tests (Files): Likewise.
5492 * modules/fseeko-tests (Files): Likewise.
5493 * modules/fsync-tests (Files): Likewise.
5494 * modules/ftell-tests (Files): Likewise.
5495 * modules/ftello-tests (Files): Likewise.
5496 * modules/futimens-tests (Files): Likewise.
5497 * modules/getaddrinfo-tests (Files): Likewise.
5498 * modules/getcwd-tests (Files): Likewise.
5499 * modules/getdelim-tests (Files): Likewise.
5500 * modules/getdtablesize-tests (Files): Likewise.
5501 * modules/getgroups-tests (Files): Likewise.
5502 * modules/gethostname-tests (Files): Likewise.
5503 * modules/getline-tests (Files): Likewise.
5504 * modules/getopt-posix-tests (Files): Likewise.
5505 * modules/gettimeofday-tests (Files): Likewise.
5506 * modules/glob-tests (Files): Likewise.
5507 * modules/iconv-tests (Files): Likewise.
5508 * modules/inet_ntop-tests (Files): Likewise.
5509 * modules/inet_pton-tests (Files): Likewise.
5510 * modules/isblank-tests (Files): Likewise.
5511 * modules/lchown-tests (Files): Likewise.
5512 * modules/ldexpl-tests (Files): Likewise.
5513 * modules/link-tests (Files): Likewise.
5514 * modules/linkat-tests (Files): Likewise.
5515 * modules/lseek-tests (Files): Likewise.
5516 * modules/lstat-tests (Files): Likewise.
5517 * modules/mbrtowc-tests (Files): Likewise.
5518 * modules/mbsinit-tests (Files): Likewise.
5519 * modules/mbsnrtowcs-tests (Files): Likewise.
5520 * modules/mbsrtowcs-tests (Files): Likewise.
5521 * modules/memchr-tests (Files): Likewise.
5522 * modules/memcmp-tests (Files): Likewise.
5523 * modules/memmem-tests (Files): Likewise.
5524 * modules/memrchr-tests (Files): Likewise.
5525 * modules/mkdir-tests (Files): Likewise.
5526 * modules/mkfifo-tests (Files): Likewise.
5527 * modules/mkfifoat-tests (Files): Likewise.
5528 * modules/mknod-tests (Files): Likewise.
5529 * modules/nanosleep-tests (Files): Likewise.
5530 * modules/nl_langinfo-tests (Files): Likewise.
5531 * modules/obstack-printf-tests (Files): Likewise.
5532 * modules/open-tests (Files): Likewise.
5533 * modules/openat-tests (Files): Likewise.
5534 * modules/perror-tests (Files): Likewise.
5535 * modules/pipe2-tests (Files): Likewise.
5536 * modules/poll-tests (Files): Likewise.
5537 * modules/popen-tests (Files): Likewise.
5538 * modules/posix_spawn-tests (Files): Likewise.
5539 * modules/posix_spawnp-tests (Files): Likewise.
5540 * modules/pread-tests (Files): Likewise.
5541 * modules/printf-posix-tests (Files): Likewise.
5542 * modules/pty-tests (Files): Likewise.
5543 * modules/random_r-tests (Files): Likewise.
5544 * modules/rawmemchr-tests (Files): Likewise.
5545 * modules/readlink-tests (Files): Likewise.
5546 * modules/remove-tests (Files): Likewise.
5547 * modules/rename-tests (Files): Likewise.
5548 * modules/renameat-tests (Files): Likewise.
5549 * modules/rmdir-tests (Files): Likewise.
5550 * modules/round-tests (Files): Likewise.
5551 * modules/roundf-tests (Files): Likewise.
5552 * modules/roundl-tests (Files): Likewise.
5553 * modules/select-tests (Files): Likewise.
5554 * modules/setenv-tests (Files): Likewise.
5555 * modules/sigaction-tests (Files): Likewise.
5556 * modules/sleep-tests (Files): Likewise.
5557 * modules/snprintf-posix-tests (Files): Likewise.
5558 * modules/snprintf-tests (Files): Likewise.
5559 * modules/sprintf-posix-tests (Files): Likewise.
5560 * modules/stat-tests (Files): Likewise.
5561 * modules/strcasestr-tests (Files): Likewise.
5562 * modules/strchrnul-tests (Files): Likewise.
5563 * modules/strerror-tests (Files): Likewise.
5564 * modules/strsignal-tests (Files): Likewise.
5565 * modules/strstr-tests (Files): Likewise.
5566 * modules/strtod-tests (Files): Likewise.
5567 * modules/strverscmp-tests (Files): Likewise.
5568 * modules/symlink-tests (Files): Likewise.
5569 * modules/symlinkat-tests (Files): Likewise.
5570 * modules/times-tests (Files): Likewise.
5571 * modules/trunc-tests (Files): Likewise.
5572 * modules/truncf-tests (Files): Likewise.
5573 * modules/truncl-tests (Files): Likewise.
5574 * modules/tsearch-tests (Files): Likewise.
5575 * modules/uname-tests (Files): Likewise.
5576 * modules/unlink-tests (Files): Likewise.
5577 * modules/unsetenv-tests (Files): Likewise.
5578 * modules/usleep-tests (Files): Likewise.
5579 * modules/utimensat-tests (Files): Likewise.
5580 * modules/vasprintf-tests (Files): Likewise.
5581 * modules/vdprintf-posix-tests (Files): Likewise.
5582 * modules/vfprintf-posix-tests (Files): Likewise.
5583 * modules/vprintf-posix-tests (Files): Likewise.
5584 * modules/vsnprintf-posix-tests (Files): Likewise.
5585 * modules/vsnprintf-tests (Files): Likewise.
5586 * modules/vsprintf-posix-tests (Files): Likewise.
5587 * modules/wcrtomb-tests (Files): Likewise.
5588 * modules/wcsnrtombs-tests (Files): Likewise.
5589 * modules/wcsrtombs-tests (Files): Likewise.
5590 * modules/wcwidth-tests (Files): Likewise.
5591 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5592 * tests/test-isinf.c (isinf): Likewise.
5593 * tests/test-isnan.c (isnan): Likewise.
5594 * tests/test-signbit.c (signbit): Likewise.
5595 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5596 declaration, either as macro or with correct signature.
5597 (select): Ensure function under test is declared with correct
5598 signature in correct header.
5599 * tests/test-atexit.c (atexit): Likewise.
5600 * tests/test-btowc.c (btowc): Likewise.
5601 * tests/test-canonicalize-lgpl.c (realpath)
5602 (canonicalize_file_name): Likewise.
5603 * tests/test-ceilf1.c (ceilf): Likewise.
5604 * tests/test-ceill.c (ceill): Likewise.
5605 * tests/test-chown.c (chown): Likewise.
5606 * tests/test-dprintf-posix.c (dprintf): Likewise.
5607 * tests/test-dup2.c (dup2): Likewise.
5608 * tests/test-dup3.c (dup3): Likewise.
5609 * tests/test-duplocale.c (duplocale): Likewise.
5610 * tests/test-fchdir.c (fchdir): Likewise.
5611 * tests/test-fchownat.c (fchownat): Likewise.
5612 * tests/test-fcntl.c (fcntl): Likewise.
5613 * tests/test-fdopendir.c (fdopendir): Likewise.
5614 * tests/test-fflush.c (fflush): Likewise.
5615 * tests/test-flock.c (flock): Likewise.
5616 * tests/test-floorf1.c (floorf): Likewise.
5617 * tests/test-floorl.c (floorl): Likewise.
5618 * tests/test-fnmatch.c (fnmatch): Likewise.
5619 * tests/test-fopen.c (fopen): Likewise.
5620 * tests/test-fprintf-posix.c (fprintf): Likewise.
5621 * tests/test-freopen.c (freopen): Likewise.
5622 * tests/test-frexp.c (frexp): Likewise.
5623 * tests/test-frexpl.c (frexpl): Likewise.
5624 * tests/test-fseek.c (fseek): Likewise.
5625 * tests/test-fseeko.c (fseeko): Likewise.
5626 * tests/test-fstatat.c (fstatat): Likewise.
5627 * tests/test-fsync.c (fsync): Likewise.
5628 * tests/test-ftell.c (ftell): Likewise.
5629 * tests/test-ftello.c (ftello): Likewise.
5630 * tests/test-futimens.c (futimens): Likewise.
5631 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5632 (gai_strerror): Likewise.
5633 * tests/test-getcwd.c (getcwd): Likewise.
5634 * tests/test-getdelim.c (getdelim): Likewise.
5635 * tests/test-getdtablesize.c (getdtablesize): Likewise.
5636 * tests/test-getgroups.c (getgroups): Likewise.
5637 * tests/test-gethostname.c (gethostname): Likewise.
5638 * tests/test-getline.c (getline): Likewise.
5639 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5641 * tests/test-gettimeofday.c (gettimeofday): Likewise.
5642 * tests/test-glob.c (glob, globfree): Likewise.
5643 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5644 * tests/test-inet_ntop.c (inet_ntop): Likewise.
5645 * tests/test-inet_pton.c (inet_pton): Likewise.
5646 * tests/test-isblank.c (isblank): Likewise.
5647 * tests/test-lchown.c (lchown): Likewise.
5648 * tests/test-ldexpl.c (ldexpl): Likewise.
5649 * tests/test-link.c (link): Likewise.
5650 * tests/test-linkat.c (linkat): Likewise.
5651 * tests/test-lseek.c (lseek): Likewise.
5652 * tests/test-lstat.c (lstat): Likewise.
5653 * tests/test-mbrtowc.c (mbrtowc): Likewise.
5654 * tests/test-mbsinit.c (mbsinit): Likewise.
5655 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5656 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5657 * tests/test-memchr.c (memchr): Likewise.
5658 * tests/test-memcmp.c (memcmp): Likewise.
5659 * tests/test-memmem.c (memmem): Likewise.
5660 * tests/test-memrchr.c (memrchr): Likewise.
5661 * tests/test-mkdir.c (mkdir): Likewise.
5662 * tests/test-mkdirat.c (mkdirat): Likewise.
5663 * tests/test-mkfifo.c (mkfifo): Likewise.
5664 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5665 * tests/test-mknod.c (mknod): Likewise.
5666 * tests/test-nanosleep.c (nanosleep): Likewise.
5667 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5668 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5670 * tests/test-open.c (open): Likewise.
5671 * tests/test-openat.c (openat): Likewise.
5672 * tests/test-perror.c (perror): Likewise.
5673 * tests/test-pipe2.c (pipe2): Likewise.
5674 * tests/test-poll.c (poll): Likewise.
5675 * tests/test-popen.c (popen, pclose): Likewise.
5676 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5677 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5678 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5679 (posix_spawn_file_actions_destroy)
5680 (posix_spawn_file_actions_addclose)
5681 (posix_spawn_file_actions_addopen)
5682 (posix_spawn_file_actions_adddup2): Likewise.
5683 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5684 * tests/test-pread.c (pread): Likewise.
5685 * tests/test-printf-posix.c (printf): Likewise.
5686 * tests/test-pty.c (openpty, forkpty): Likewise.
5687 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5688 (random_r): Likewise.
5689 * tests/test-rawmemchr.c (rawmemchr): Likewise.
5690 * tests/test-readlink.c (readlink): Likewise.
5691 * tests/test-remove.c (remove): Likewise.
5692 * tests/test-rename.c (rename): Likewise.
5693 * tests/test-renameat.c (renameat): Likewise.
5694 * tests/test-rmdir.c (rmdir): Likewise.
5695 * tests/test-round1.c (round): Likewise.
5696 * tests/test-roundf1.c (roundf): Likewise.
5697 * tests/test-roundl.c (roundl): Likewise.
5698 * tests/test-setenv.c (setenv): Likewise.
5699 * tests/test-sigaction.c (sigaction): Likewise.
5700 * tests/test-sleep.c (sleep): Likewise.
5701 * tests/test-snprintf.c (snprintf): Likewise.
5702 * tests/test-sprintf-posix.c (sprintf): Likewise.
5703 * tests/test-stat.c (stat): Likewise.
5704 * tests/test-stpncpy.c (stpncpy): Likewise.
5705 * tests/test-strcasestr.c (strcasestr): Likewise.
5706 * tests/test-strchrnul.c (strchrnul): Likewise.
5707 * tests/test-strerror.c (strerror): Likewise.
5708 * tests/test-strsignal.c (strsignal): Likewise.
5709 * tests/test-strstr.c (strstr): Likewise.
5710 * tests/test-strtod.c (strtod): Likewise.
5711 * tests/test-strverscmp.c (strverscmp): Likewise.
5712 * tests/test-symlink.c (symlink): Likewise.
5713 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5714 * tests/test-times.c (times): Likewise.
5715 * tests/test-trunc1.c (trunc): Likewise.
5716 * tests/test-truncf1.c (truncf): Likewise.
5717 * tests/test-truncl.c (truncl): Likewise.
5718 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5720 * tests/test-uname.c (uname): Likewise.
5721 * tests/test-unlink.c (unlink): Likewise.
5722 * tests/test-unlinkat.c (unlinkat): Likewise.
5723 * tests/test-unsetenv.c (unsetenv): Likewise.
5724 * tests/test-usleep.c (usleep): Likewise.
5725 * tests/test-utimensat.c (utimensat): Likewise.
5726 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5727 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5728 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5729 * tests/test-vprintf-posix.c (vprintf): Likewise.
5730 * tests/test-vsnprintf.c (vsnprintf): Likewise.
5731 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5732 * tests/test-wcrtomb.c (wcrtomb): Likewise.
5733 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5734 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5735 * tests/test-wcwidth.c (wcwidth): Likewise.
5737 build: pull in conditional headers during GNULIB_POSIXCHECK
5738 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5739 definitions from any conditionally-included headers.
5740 * lib/stdlib.in.h (includes): Likewise.
5741 * lib/unistd.in.h (includes): Likewise.
5743 2009-12-24 Bruno Haible <bruno@clisp.org>
5745 * tests/test-argv-iter.c: Include header file being tested immediately
5747 * tests/test-base64.c: Likewise.
5748 * tests/test-flock.c: Likewise.
5749 * tests/test-fsync.c: Likewise.
5750 * tests/test-getdate.c: Likewise.
5751 * tests/test-getndelim2.c: Likewise.
5752 * tests/test-isfinite.c: Likewise.
5753 * tests/test-isinf.c: Likewise.
5754 * tests/test-strerror.c: Likewise.
5755 * tests/test-strsignal.c: Likewise.
5757 2009-12-23 Eric Blake <ebb9@byu.net>
5759 unistd: work around cygwin bug
5760 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5761 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5762 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5764 2009-12-23 Bruno Haible <bruno@clisp.org>
5766 localename: More tests.
5767 * tests/test-localename.c (SIZEOF): New macro.
5768 (categories): New variable.
5769 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5770 test_locale_name_default): Add test w.r.t. thread locale.
5771 (test_locale_name_thread): New function.
5774 localename: Make aware of thread locale.
5775 * lib/localename.h (gl_locale_name_thread): New declaration.
5776 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5777 behaviour with respect to thread locale.
5778 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5779 <langinfo.h>, glthread/lock.h.
5780 (SIZE_BITS): New macro.
5781 (string_hash): New function.
5782 (struct hash_node): New type.
5783 (HASH_TABLE_SIZE): New macro.
5784 (struniq_hash_table, struniq_lock): New variables.
5785 (struniq): New function.
5786 (gl_locale_name_thread): New function.
5787 (gl_locale_name): Invoke it.
5788 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5789 * modules/localename (Depends-on): Add lock.
5790 Reported by Mike Gran <spk121@yahoo.com>.
5792 2009-12-23 Eric Blake <ebb9@byu.net>
5795 * modules/va-args: New file.
5796 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5797 * MODULES.html.sh (Core language properties): Mention it.
5799 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5800 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5801 named alias for __attribute__((__unused__)).
5802 * lib/chown.c: Update client.
5803 * lib/fchmodat.c: Likewise.
5804 * lib/fts.c: Likewise.
5805 * lib/getdate.y: Likewise.
5806 * lib/getgroups.c: Likewise.
5807 * lib/getopt.c: Likewise.
5808 * lib/getugroups.c: Likewise.
5809 * lib/mkdir.c: Likewise.
5810 * lib/mkfifo.c: Likewise.
5811 * lib/mkfifoat.c: Likewise.
5812 * lib/mknod.c: Likewise.
5813 * lib/mknodat.c: Likewise.
5814 * lib/readlink.c: Likewise.
5815 * lib/se-context.in.h: Likewise.
5816 * lib/se-selinux.in.h: Likewise.
5817 * lib/sockets.c: Likewise.
5818 * lib/symlink.c: Likewise.
5819 * lib/symlinkat.c: Likewise.
5820 * lib/unicodeio.c: Likewise.
5821 * lib/unistr.h: Likewise.
5822 * tests/test-areadlink.c: Likewise.
5823 * tests/test-areadlinkat.c: Likewise.
5824 * tests/test-filenamecat.c: Likewise.
5825 * tests/test-fseeko.c: Likewise.
5826 * tests/test-ftello.c: Likewise.
5827 * tests/test-getdate.c: Likewise.
5828 * tests/test-getgroups.c: Likewise.
5829 * tests/test-gethostname.c: Likewise.
5830 * tests/test-quotearg.c: Likewise.
5831 * tests/test-version-etc.c: Likewise.
5832 * tests/test-xalloc-die.c: Likewise.
5833 * tests/test-xfprintf-posix.c: Likewise.
5834 * tests/test-xprintf-posix.c: Likewise.
5835 * tests/test-xvasprintf.c: Likewise.
5837 tests: avoid compiler warnings
5838 * tests/test-fcntl.c (main): Delete unused parameters.
5839 * tests/test-freopen-safer.c (main): Likewise.
5840 * tests/test-xalloc-die.c (main): Mark unused parameters.
5841 * tests/test-fseeko.c (main): Likewise.
5842 * tests/test-ftello.c (main): Likewise.
5843 * tests/test-nanosleep.c (main): Avoid declaration warning.
5844 * tests/test-sleep.c (main): Likewise.
5845 * tests/test-unsetenv.c (main): Silence warning about string
5847 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5849 2009-12-23 Bruno Haible <bruno@clisp.org>
5851 * tests/test-localename.c (test_locale_name): New function, extracted
5852 from main. Also test mixed situations.
5853 (test_locale_name_posix, test_locale_name_environ,
5854 test_locale_name_default): New functions.
5855 (main): Invoke them all.
5856 * modules/localename-tests (configure.ac): Test for newlocale.
5858 2009-12-23 Bruno Haible <bruno@clisp.org>
5860 unistd: Ensure getcwd gets declared before being overridden.
5861 * lib/unistd.in.h: Conditionally include <io.h>.
5863 2009-12-22 Bruno Haible <bruno@clisp.org>
5865 wchar: Diagnose broken combination of glibc and gcc versions and flags.
5866 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5867 (gl_WCHAR_H): Invoke it.
5868 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5869 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5870 Reported by Karl Berry <karl@freefriends.org>.
5872 2009-12-22 Eric Blake <ebb9@byu.net>
5874 math, unistd: avoid redundant includes
5875 * lib/math.in.h (isnan): No need to re-include <math.h>.
5876 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5878 getsubopt: work around cygwin bug
5879 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5880 avoid conflicting with system getsubopt.
5881 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5884 getopt: synchronize from glibc
5885 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5886 parameter order. Adjust all callers.
5887 (_getopt_internal_r, main): Adjust quoting in error messages.
5888 Drop considerations for outdated POSIX 1003.2 error message.
5889 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5891 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5893 test-getopt: test stderr behavior
5894 * modules/getopt-posix-tests (Depends-on): Add dup2.
5895 * tests/test-getopt.c (ASSERT): Avoid stderr.
5896 (main): Move stderr to a temporary file.
5897 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5898 Instead, add parameter to inform caller if output occurred.
5899 (test_getopt): Adjust all existing tests to expect silence, and
5900 add new tests of leading ":".
5901 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5902 glibc shortcomings with leading "-:" or "+:" in optstring.
5903 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5905 * doc/posix-functions/getopt.texi (getopt): Likewise.
5907 test-getopt: enhance test
5908 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5910 * tests/test-getopt.c (OPTIND_MIN): Move...
5911 * tests/test-getopt.h (OPTIND_MIN): ...here.
5912 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5913 Require that optind=0 works, since modern BSD supports it in
5914 addition to optreset, and since coreutils expects it.
5915 (test_getopt_long_only): New test.
5916 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5917 glibc shortcomings with 'W;', and enforcement of optind=0.
5918 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5921 2009-12-21 Bruno Haible <bruno@clisp.org>
5923 localename: Improvements for MacOS X and Cygwin.
5924 * lib/localename.h (gl_locale_name_environ): New declaration.
5925 * lib/localename.c (gl_locale_name_environ): New function, extracted from
5926 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5927 (gl_locale_name_posix): Invoke it.
5928 (gl_locale_name_default): Add comments. Use Windows native API also on
5931 2009-12-21 Bruno Haible <bruno@clisp.org>
5933 Update list of Win32 locale ids.
5934 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5935 (LANG_SAMI): Renamed from LANG_SAAMI.
5936 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5937 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5938 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5939 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5940 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5941 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5942 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5943 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5944 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5945 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5946 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5947 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5948 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5949 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5950 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5951 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5952 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5953 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5954 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5955 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5956 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5957 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5958 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5959 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5960 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5961 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5962 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5963 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5964 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5965 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5966 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5967 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5968 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5969 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5970 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5971 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5972 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5973 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5974 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5975 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5976 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5977 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5978 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5979 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5980 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5981 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5982 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5983 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5984 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5985 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5986 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5987 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5988 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5989 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5990 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5991 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5992 Add more languages and countries for Sami, Sorbian. Add more countries
5993 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5994 for Pashto. Change country for Syriac, Tswana.
5996 2009-12-21 Eric Blake <ebb9@byu.net>
5998 test-utimens: avoid spurious failure
5999 * tests/test-chown.h (nap): Factor...
6000 * tests/nap.h: ...into new file.
6001 * tests/test-lchown.h (nap): Avoid duplication.
6002 * tests/test-utimens-common.h (nap): Use shared implementation,
6003 necessary on file systems with 1-second resolution.
6004 * modules/chown-tests (Files): Include new file.
6005 * modules/fdutimensat-tests (Files): Likewise.
6006 * modules/futimens-tests (Files): Likewise.
6007 * modules/lchown-tests (Files): Likewise.
6008 * modules/openat-tests (Files): Likewise.
6009 * modules/utimens-tests (Files): Likewise.
6010 * modules/utimensat-tests (Files): Likewise.
6012 2009-12-19 Eric Blake <ebb9@byu.net>
6014 futimens, utimensat: work around Linux bug
6015 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6016 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6017 * lib/utimensat.c (rpl_utimensat): Work around it.
6018 * lib/futimens.c (rpl_futimens): Adjust comment.
6020 utimens: work around Linux ctime bug
6021 * lib/utimens.c (detect_ctime_bug): New helper function.
6022 (update_timespec): Differentiate between workaround needed for
6023 this bug vs. what is needed for systems that lack utimensat.
6024 (fdutimens, lutimens): Work around bug.
6026 utimens: check for ctime update
6027 * tests/test-utimens-common.h (check_ctime): Define.
6028 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6029 * tests/test-futimens.h (test_futimens): Likewise.
6030 * tests/test-lutimens.h (test_lutimens): Likewise.
6031 * doc/posix-functions/futimens.texi (futimens): Document the bug.
6032 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6034 2009-12-19 Bruno Haible <bruno@clisp.org>
6036 dprintf-posix: Check against memory leak fixed on 2009-12-15.
6037 * tests/test-dprintf-posix2.sh: New file.
6038 * tests/test-dprintf-posix2.c: New file.
6039 * modules/dprintf-posix-tests (Files): Add them.
6040 (configure.ac): Check for getrlimit and setrlimit.
6041 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6043 2009-12-19 Bruno Haible <bruno@clisp.org>
6045 fprintf-posix: Check against memory leak fixed on 2009-12-15.
6046 * tests/test-fprintf-posix3.sh: New file.
6047 * tests/test-fprintf-posix3.c: New file.
6048 * modules/fprintf-posix-tests (Files): Add them.
6049 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6051 2009-12-19 Eric Blake <ebb9@byu.net>
6053 dirfd: fix prototype
6054 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6055 * lib/dirfd.c (dirfd): Likewise.
6057 canonicalize: reduce memory usage
6058 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6060 Reported by Solar Designer <solar@openwall.com>.
6062 2009-12-19 Bruno Haible <bruno@clisp.org>
6064 New module attribute 'Applicability'.
6065 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6066 * gnulib-tool: New option --extract-applicability.
6067 (func_usage): Document it.
6068 (sed_extract_prog): Recognize it.
6069 (func_get_applicability): New function.
6070 (func_import): Generalize handling of 'link-warning' module.
6071 * modules/link-warning (Applicability): New section.
6072 * modules/arg-nonnull (Applicability): New section.
6073 Repoted by Simon Josefsson <simon@josefsson.org>.
6075 2009-12-19 Bruno Haible <bruno@clisp.org>
6078 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6079 * lib/fseeko.c (rpl_fseeko): Likewise.
6081 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
6083 * lib/gl_list.h: Fix typo in comment.
6085 2009-12-16 Eric Blake <ebb9@byu.net>
6087 fcntl: use to simplify other modules
6088 * modules/cloexec (Depends-on): Add fcntl.
6089 * modules/fchdir (Depends-on): Likewise.
6090 * modules/fd-safer-flag (Depends-on): Likewise.
6091 * modules/unistd-safer (Depends-on): Likewise.
6092 * modules/dup3 (configure.ac): Set module indicator.
6093 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6095 * lib/fchdir.c (_gl_register_dup): Fix comment.
6096 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6097 * lib/dup-safer.c (dup_safer): Likewise.
6098 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6099 * lib/dup3.c (dup3): Likewise.
6100 * tests/test-fchdir.c (main): Enhance test.
6101 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
6103 fcntl: port portions of fcntl to mingw
6104 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6105 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6106 replacement for mingw.
6107 * modules/fcntl (Description): Update.
6108 (Depends-on): Add dup2.
6109 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6110 * modules/fcntl-h (Makefile.am): Substitute it.
6111 * lib/fcntl.in.h (fcntl): Update declaration.
6112 (F_DUPFD, F_GETFD): New macros, when needed.
6113 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6114 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6115 * tests/test-fcntl.c (check_flags, main): Enhance test for items
6118 fcntl: work around cygwin bug in F_DUPFD
6119 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6120 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
6121 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6122 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6123 * doc/posix-functions/fcntl.texi (fcntl): Document it.
6125 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6126 * modules/fcntl (Files): List new files.
6127 (configure.ac): Run a test.
6128 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6129 * lib/fcntl.c (rpl_fcntl): Likewise.
6130 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6131 (gl_FCNTL_H): Always replace fcntl.h.
6132 * modules/fcntl-h (Makefile.am): Substitute witnesses.
6133 * lib/fcntl.in.h (fcntl): Declare replacement.
6134 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6135 needed, plus a witness.
6136 * doc/posix-functions/fcntl.texi (fcntl): Document this.
6137 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6138 * tests/test-fcntl.c: New file.
6139 * modules/fcntl-tests: Likewise.
6141 binary-io: avoid potential compilation warning
6142 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6145 fflush: avoid compilation error on NetBSD
6146 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6147 between off_t and fpos_t, since the latter is sometimes a struct.
6148 * lib/fseeko.c (rpl_fseeko): Likewise.
6149 Reported by Alexander Nasonov <alnsn@yandex.ru>.
6151 2009-12-15 Eric Blake <ebb9@byu.net>
6153 fcntl-h, stdio, sys_ioctl: fix declarations
6154 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6155 function must not take arguments.
6156 * lib/sys_ioctl.in.h (ioctl): Likewise.
6157 * lib/fcntl.in.h (openat): Likewise. Declare extern.
6158 (open): Add a link warning.
6160 2009-12-15 Jim Meyering <meyering@redhat.com>
6162 areadlink, areadlink-with-size: relax license to LGPLv2+
6163 * modules/areadlink (License): Relax to LGPLv2+.
6164 * modules/areadlink-with-size (License): Likewise.
6166 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
6167 Bruno Haible <bruno@clisp.org>
6169 *printf: Fix memory leak.
6170 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6171 * lib/vfprintf.c (vfprintf): Likewise.
6172 * lib/dprintf.c (dprintf): Likewise.
6173 * lib/vdprintf.c (vdprintf): Likewise.
6175 2009-12-14 Eric Blake <ebb9@byu.net>
6177 accept4: adjust module dependencies
6178 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6180 utimens: one more try at avoiding compiler warning
6181 * lib/utimens.c (lutimens): Lower scope of result.
6183 2009-12-13 Bruno Haible <bruno@clisp.org>
6185 Move the malloc checking from module 'list' to new module 'xlist'.
6186 * modules/xlist: New file.
6187 * lib/gl_xlist.h: New file.
6188 * lib/gl_xlist.c: New file.
6189 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6190 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6191 gl_list_add_last, gl_list_add_before, gl_list_add_after,
6192 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6193 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6194 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6195 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6196 gl_sortedlist_nx_add): New declarations.
6197 (struct gl_list_implementation): Rename and change methods accordingly.
6198 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6199 (gl_list_nx_create): Renamed from gl_list_create.
6200 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6201 (gl_list_nx_set_at): Renamed from gl_list_set_at.
6202 (gl_list_nx_add_first): Renamed from gl_list_add_first.
6203 (gl_list_nx_add_last): Renamed from gl_list_add_last.
6204 (gl_list_nx_add_before): Renamed from gl_list_add_before.
6205 (gl_list_nx_add_after): Renamed from gl_list_add_after.
6206 (gl_list_nx_add_at): Renamed from gl_list_add_at.
6207 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6208 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6209 gl_list_create_empty.
6210 (gl_list_nx_create): Renamed from gl_list_create.
6211 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6212 (gl_list_nx_set_at): Renamed from gl_list_set_at.
6213 (gl_list_nx_add_first): Renamed from gl_list_add_first.
6214 (gl_list_nx_add_last): Renamed from gl_list_add_last.
6215 (gl_list_nx_add_before): Renamed from gl_list_add_before.
6216 (gl_list_nx_add_after): Renamed from gl_list_add_after.
6217 (gl_list_nx_add_at): Renamed from gl_list_add_at.
6218 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6219 * lib/gl_array_list.c: Don't include xalloc.h.
6220 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6221 NULL upon out-of-memory.
6222 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6224 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6225 Change return type to 'int'.
6226 (gl_array_nx_set_at): Renamed from gl_array_set_at.
6227 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6228 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6230 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6232 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6234 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6236 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6238 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6240 (gl_array_list_implementation): Update.
6241 * lib/gl_carray_list.c: Don't include xalloc.h.
6242 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6243 Return NULL upon out-of-memory.
6244 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6246 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6247 Change return type to 'int'.
6248 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6249 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6250 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6252 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6254 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6256 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6257 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6258 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6260 (gl_carray_list_implementation): Update.
6261 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6262 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6263 gl_linked_create_empty. Return NULL upon out-of-memory.
6264 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6266 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6267 Change return type to 'int'. Return -1 upon out-of-memory.
6268 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6270 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6272 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6274 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6275 NULL upon out-of-memory.
6276 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6278 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6280 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6282 * lib/gl_linked_list.c: Don't include xalloc.h.
6283 (gl_linked_list_implementation): Update.
6284 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6285 (add_to_bucket): Change return type to 'int'.
6286 (gl_linkedhash_list_implementation): Update.
6287 * lib/gl_anytree_list1.h (free_subtree): New function.
6288 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6289 gl_tree_create_empty. Return NULL upon out-of-memory.
6290 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6291 Change return type to 'int'. Return -1 upon out-of-memory.
6292 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6294 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6295 (gl_tree_remove_node): New function, moved here from
6296 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6297 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6299 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6300 malloc, not xmalloc. Return NULL upon out-of-memory.
6301 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6303 (gl_tree_remove_node_from_tree): New function, extracted from
6304 gl_tree_remove_node.
6305 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6307 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6309 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6311 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6313 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6314 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6315 not xmalloc. Return NULL upon out-of-memory.
6316 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6318 (gl_tree_remove_node_from_tree): New function, extracted from
6319 gl_tree_remove_node.
6320 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6322 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6324 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6326 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6328 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6329 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6330 gl_anytree_list1.h before gl_anyavltree_list2.h.
6331 (gl_avltree_list_implementation): Update.
6332 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6333 gl_anytree_list1.h before gl_anyavltree_list2.h.
6334 (gl_rbtree_list_implementation): Update.
6335 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6336 Change return type to 'int'. Return -1 upon out-of-memory. Use
6338 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6339 (gl_avltreehash_list_implementation): Update.
6340 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6341 (gl_rbtreehash_list_implementation): Update.
6342 * modules/array-list (Depends-on): Remove xalloc.
6343 * modules/carray-list (Depends-on): Likewise.
6344 * modules/linked-list (Depends-on): Likewise.
6345 * modules/linkedhash-list (Depends-on): Likewise.
6346 * modules/avltree-list (Depends-on): Likewise.
6347 * modules/rbtree-list (Depends-on): Likewise.
6348 * modules/avltreehash-list (Depends-on): Likewise.
6349 * modules/rbtreehash-list (Depends-on): Likewise.
6351 * modules/xsublist: New file.
6352 * lib/gl_xsublist.h: New file.
6353 * lib/gl_xsublist.c: New file.
6354 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6355 (gl_sublist_nx_create): New declaration.
6356 * lib/gl_sublist.c: Don't include xalloc.h.
6357 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6358 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6359 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6360 Change return type to 'int'. Return -1 upon out-of-memory.
6361 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6363 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6364 NULL upon out-of-memory.
6365 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6367 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6368 NULL upon out-of-memory.
6369 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6370 NULL upon out-of-memory.
6371 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6373 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6374 (gl_sublist_list_implementation): Update.
6375 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6377 * modules/sublist (Depends-on): Remove xalloc.
6379 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6380 * tests/test-carray_list.c: Likewise.
6381 * tests/test-linked_list.c: Likewise.
6382 * tests/test-linkedhash_list.c: Likewise.
6383 * tests/test-avltree_list.c: Likewise.
6384 * tests/test-rbtree_list.c: Likewise.
6385 * tests/test-avltreehash_list.c: Likewise.
6386 * tests/test-rbtreehash_list.c: Likewise.
6387 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6388 * modules/carray-list-tests (Makefile.am): Likewise.
6389 * modules/linked-list-tests (Makefile.am): Likewise.
6390 * modules/linkedhash-list-tests (Makefile.am): Likewise.
6391 * modules/avltree-list-tests (Makefile.am): Likewise.
6392 * modules/rbtree-list-tests (Makefile.am): Likewise.
6393 * modules/avltreehash-list-tests (Makefile.am): Likewise.
6394 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6396 * NEWS: Mention the changes.
6398 * lib/clean-temp.c: Include gl_xlist.h.
6399 * modules/clean-temp (Depends-on): Add xlist.
6401 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6402 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6404 * tests/test-array_oset.c: Include gl_xlist.h.
6405 * modules/array-oset-tests (Depends-on): Add xlist.
6407 Reported by José E. Marchesi <jemarch@gnu.org>.
6409 2009-12-13 Bruno Haible <bruno@clisp.org>
6411 Move the malloc checking from module 'oset' to new module 'xoset'.
6412 * modules/xoset: New file.
6413 * lib/gl_xoset.h: New file.
6414 * lib/gl_xoset.c: New file.
6415 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6417 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6418 (struct gl_oset_implementation): Rename and change methods accordingly.
6419 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6420 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6421 'int'. Mark as __warn_unused_result__.
6422 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6423 gl_oset_create_empty.
6424 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6426 * lib/gl_array_oset.c: Don't include xalloc.h.
6427 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6428 malloc, not xmalloc.
6429 (grow): Change return type to 'int'. Don't call xalloc_die.
6430 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6432 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6434 (gl_array_oset_implementation): Update.
6435 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6436 gl_tree_create_empty.
6437 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6439 * lib/gl_avltree_oset.c: Don't include xalloc.h.
6440 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6442 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6444 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6446 (gl_avltree_oset_implementation): Update.
6447 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6448 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6450 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6452 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6454 (gl_rbtree_oset_implementation): Update.
6455 * modules/array-oset (Depends-on): Remove xalloc.
6456 * modules/avltree-oset (Depends-on): Likewise.
6457 * modules/rbtree-oset (Depends-on): Likewise.
6458 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6459 * tests/test-avltree_oset.c: Likewise.
6460 * tests/test-rbtree_oset.c: Likewise.
6461 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6462 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6463 * modules/rbtree-oset-tests (Makefile.am): Likewise.
6464 * NEWS: Mention the change.
6466 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
6468 maint.mk: allow a project to override release-prep commands
6469 * top/maint.mk (alpha, beta, stable): Move release-preparatory
6470 commands into a new rule.
6471 (release-prep): New rule.
6472 (release-prep-hook): New overridable variable.
6474 2009-12-13 Bruno Haible <bruno@clisp.org>
6476 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6478 2009-12-13 Jim Meyering <meyering@redhat.com>
6480 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6481 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6483 2009-12-12 Bruno Haible <bruno@clisp.org>
6486 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6488 2009-12-12 Karl Berry <karl@gnu.org>
6490 * config/srclist.txt (strtoll.c): tab changes, no more sync.
6492 2009-12-12 Bruno Haible <bruno@clisp.org>
6494 * m4/po.m4: Undo incorrect untabification.
6496 2009-12-12 Bruno Haible <bruno@clisp.org>
6498 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6499 * modules/c-strtod (Depends-on): Add locale.
6500 * modules/c-strtold (Depends-on): Likewise.
6502 2009-12-12 Bruno Haible <bruno@clisp.org>
6504 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6506 2009-12-11 Eric Blake <ebb9@byu.net>
6508 setenv: relax requirement in light of POSIX ruling
6509 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6511 * tests/test-setenv.c (main): Relax test.
6512 * tests/test-unsetenv.c (main): Likewise.
6513 * doc/posix-functions/setenv.texi (setenv): Document this.
6514 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6516 2009-12-11 Bruno Haible <bruno@clisp.org>
6518 New module 'fd-safer-flag'.
6519 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6520 * lib/dup-safer.c (dup_safer_flag): Remove function.
6521 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6522 * lib/fd-safer.c (fd_safer_flag): Remove function.
6523 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6524 * modules/cloexec (configure.ac): Drop indicator macro.
6525 * modules/fd-safer-flag: New file.
6526 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6527 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6528 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6530 2009-12-11 Bruno Haible <bruno@clisp.org>
6532 Tests for module 'nl_langinfo'.
6533 * modules/nl_langinfo-tests: New file.
6534 * tests/test-nl_langinfo.sh: New file.
6535 * tests/test-nl_langinfo.c: New file.
6537 New module 'nl_langinfo'.
6538 * lib/nl_langinfo.c: New file.
6539 * m4/nl_langinfo.m4: New file.
6540 * modules/nl_langinfo: New file.
6541 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6543 2009-12-11 Bruno Haible <bruno@clisp.org>
6545 Tests for module 'langinfo'.
6546 * modules/langinfo-tests: New file.
6547 * tests/test-langinfo.c: New file.
6549 New module 'langinfo'.
6550 * lib/langinfo.in.h: New file.
6551 * m4/langinfo_h.m4: New file.
6552 * modules/langinfo: New file.
6553 * doc/posix-headers/langinfo.texi: Mention the new module.
6555 2009-12-11 Bruno Haible <bruno@clisp.org>
6557 * lib/config.charset: Untabify.
6559 2009-12-11 Bruno Haible <bruno@clisp.org>
6561 * modules/unistd-safer (configure.ac): Drop indicator macro.
6563 2009-12-11 Bruno Haible <bruno@clisp.org>
6565 Move pipe2-safer code to its own file.
6566 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6567 * lib/pipe-safer.c (pipe2_safer): Remove function.
6568 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6569 (Makefile.am): Add it to lib_SOURCES.
6571 2009-12-10 Bruno Haible <bruno@clisp.org>
6573 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6575 2009-12-10 Bruno Haible <bruno@clisp.org>
6577 Declare which arguments expect non-NULL values, for GCC and clang.
6578 * build-aux/arg-nonnull.h: New file.
6579 * modules/arg-nonnull: New file.
6580 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6581 (inet_ntop, inet_pton): Use it.
6582 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6583 (closedir, dirfd, opendir, scandir, alphasort): Use it.
6584 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6585 (open, openat): Use it.
6586 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6588 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6589 (getopt, getopt_long, getopt_long_only): Use it.
6590 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6591 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6593 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6594 (iconv_open): Use it.
6595 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6596 (strtoimax, strtoumax): Use it.
6597 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6598 (duplocale): Use it.
6599 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6600 (frexp, frexpl): Use it.
6601 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6602 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6603 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6604 (tsearch, tfind, tdelete, twalk): Use it.
6605 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6606 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6607 sigpending): Use it.
6608 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6609 (posix_spawn, posix_spawnp, posix_spawnattr_init,
6610 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6611 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6612 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6613 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6614 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6615 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6616 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6617 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6618 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6620 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6621 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6622 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6623 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6624 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6625 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6626 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6627 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6628 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6629 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6630 strtoull, unsetenv): Use it.
6631 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6632 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6633 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6634 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6635 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6636 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6637 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6638 (strcasecmp, strncasecmp): Use it.
6639 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6640 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6641 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6642 rpl_setsockopt): Use it.
6643 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6644 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6645 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6646 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6647 (gettimeofday): Use it.
6648 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6650 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6652 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6653 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6654 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6655 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6656 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6657 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6658 unlinkat, write): Use it.
6659 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6660 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6661 * lib/argv-iter.h: Include arg-nonnull.h.
6662 (_ATTRIBUTE_NONNULL_): Remove macro.
6663 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6664 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6665 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6667 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6668 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6669 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6670 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6671 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6672 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6673 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6674 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6675 * modules/arpa_inet (Depends-on): Add arg-nonnull.
6676 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6677 * modules/dirent (Depends-on): Add arg-nonnull.
6678 (Makefile.am): Insert arg-nonnull.h into dirent.h.
6679 * modules/fcntl-h (Depends-on): Add arg-nonnull.
6680 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6681 * modules/fnmatch (Depends-on): Add arg-nonnull.
6682 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6683 * modules/getopt-posix (Depends-on): Add arg-nonnull.
6684 (Makefile.am): Insert arg-nonnull.h into getopt.h.
6685 * modules/glob (Depends-on): Add arg-nonnull.
6686 (Makefile.am): Insert arg-nonnull.h into glob.h.
6687 * modules/iconv_open (Depends-on): Add arg-nonnull.
6688 (Makefile.am): Insert arg-nonnull.h into iconv.h.
6689 * modules/inttypes (Depends-on): Add arg-nonnull.
6690 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6691 * modules/locale (Depends-on): Add arg-nonnull.
6692 (Makefile.am): Insert arg-nonnull.h into locale.h.
6693 * modules/math (Depends-on): Add arg-nonnull.
6694 (Makefile.am): Insert arg-nonnull.h into math.h.
6695 * modules/netdb (Depends-on): Add arg-nonnull.
6696 (Makefile.am): Insert arg-nonnull.h into netdb.h.
6697 * modules/search (Depends-on): Add arg-nonnull.
6698 (Makefile.am): Insert arg-nonnull.h into search.h.
6699 * modules/signal (Depends-on): Add arg-nonnull.
6700 (Makefile.am): Insert arg-nonnull.h into signal.h.
6701 * modules/spawn (Depends-on): Add arg-nonnull.
6702 (Makefile.am): Insert arg-nonnull.h into spawn.h.
6703 * modules/stdio (Depends-on): Add arg-nonnull.
6704 (Makefile.am): Insert arg-nonnull.h into stdio.h.
6705 * modules/stdlib (Depends-on): Add arg-nonnull.
6706 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6707 * modules/string (Depends-on): Add arg-nonnull.
6708 (Makefile.am): Insert arg-nonnull.h into string.h.
6709 * modules/strings (Depends-on): Add arg-nonnull.
6710 (Makefile.am): Insert arg-nonnull.h into strings.h.
6711 * modules/sys_socket (Depends-on): Add arg-nonnull.
6712 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6713 * modules/sys_stat (Depends-on): Add arg-nonnull.
6714 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6715 * modules/sys_time (Depends-on): Add arg-nonnull.
6716 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6717 * modules/sys_times (Depends-on): Add arg-nonnull.
6718 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6719 * modules/sys_utsname (Depends-on): Add arg-nonnull.
6720 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6721 * modules/time (Depends-on): Add arg-nonnull.
6722 (Makefile.am): Insert arg-nonnull.h into time.h.
6723 * modules/unistd (Depends-on): Add arg-nonnull.
6724 (Makefile.am): Insert arg-nonnull.h into unistd.h.
6725 * modules/wchar (Depends-on): Add arg-nonnull.
6726 (Makefile.am): Insert arg-nonnull.h into wchar.h.
6727 * modules/argv-iter (Depends-on): Add arg-nonnull.
6728 * tests/test-canonicalize.c (null_ptr): New function.
6730 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6732 * tests/test-memmem.c (null_ptr): New function.
6734 Reported by Jim Meyering.
6736 2009-12-10 Bruno Haible <bruno@clisp.org>
6738 Use spaces for indentation, not tabs.
6739 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6740 * m4/*.m4: Untabify.
6741 * build-aux/*.h: Untabify.
6742 * tests/**/*.[hc]: Untabify.
6743 * README: New section "Indent with spaces, not TABs", based on
6744 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6745 * NEWS: Mention the change.
6747 2009-12-10 Bruno Haible <bruno@clisp.org>
6749 pty test: Fix link error.
6750 * modules/pty-tests (Makefile.am): Add the default LDADD value to
6753 2009-12-07 Simon Josefsson <simon@josefsson.org>
6755 * modules/pty: New file.
6756 * modules/pty-tests: New file.
6757 * m4/pty.m4: New file.
6758 * tests/test-pty.c: New file.
6759 * doc/glibc-headers/pty.texi: Modified.
6760 * doc/glibc-functions/forkpty.texi: Modified.
6761 * doc/glibc-functions/openpty.texi: Modified.
6763 2009-12-10 Bruno Haible <bruno@clisp.org>
6765 Avoid syntax error in C++ mode.
6766 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6768 2009-12-10 Bruno Haible <bruno@clisp.org>
6770 Use sed with option -e.
6771 * gnulib-tool (func_version, func_emit_copyright_notice,
6772 func_emit_initmacro_end, func_import, func_create_testdir): Pass
6774 * modules/link-warning (Makefile.am): Likewise.
6776 2009-12-10 Jim Meyering <meyering@redhat.com>
6778 mgetgroups: do not write bytes beyond end of malloc'd buffer
6779 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
6780 username, we call getgroups with a one-element-shorter buffer,
6781 but still told it the length was original, max_n_groups.
6783 2009-12-09 Eric Blake <ebb9@byu.net>
6785 cloexec: relax license
6786 * modules/cloexec (Maintainer): Add myself.
6787 (License): Use LGPL, not GPL.
6789 link-warning: optimize generation
6790 * modules/link-warning (Makefile.am): Reduce process usage.
6792 2009-12-09 Bruno Haible <bruno@clisp.org>
6794 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6795 workaround was added on 2009-11-17.
6797 2009-12-09 Jim Meyering <meyering@redhat.com>
6798 Bruno Haible <bruno@clisp.org>
6800 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6801 * modules/link-warning (Makefile.am): Make the comment-removing sed
6802 command more robust in the face of bootstrap-prepended comment lines.
6804 2009-12-09 Bruno Haible <bruno@clisp.org>
6806 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6809 2009-12-09 Simon Josefsson <simon@josefsson.org>
6810 Bruno Haible <bruno@clisp.org>
6812 * build-aux/link-warning.h: Add copyright notice.
6813 * modules/link-warning (Makefile.am): Generate link-warning.h from
6814 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6815 * NEWS: Mention change in link-warning module.
6816 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6817 * modules/dirent (Makefile.am): Add dependency to dirent.h.
6818 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6819 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6820 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6821 * modules/math (Makefile.am): Add dependency to math.h.
6822 * modules/search (Makefile.am): Add dependency to search.h.
6823 * modules/signal (Makefile.am): Add dependency to signal.h.
6824 * modules/spawn (Makefile.am): Add dependency to spawn.h.
6825 * modules/stdio (Makefile.am): Add dependency to stdio.h.
6826 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6827 * modules/string (Makefile.am): Add dependency to string.h.
6828 * modules/strings (Makefile.am): Add dependency to strings.h.
6829 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6830 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6831 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6832 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6833 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6834 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6835 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6836 * modules/unistd (Makefile.am): Add dependency to unistd.h.
6837 * modules/wchar (Makefile.am): Add dependency to wchar.h.
6839 2009-12-09 Bruno Haible <bruno@clisp.org>
6841 fchdir: Optimize away rpl_fstat when possible.
6842 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6843 REPLACE_OPEN_DIRECTORY.
6844 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6846 2009-12-09 Bruno Haible <bruno@clisp.org>
6848 * lib/fchdir.c: Update comment.
6850 2009-12-09 Bruno Haible <bruno@clisp.org>
6852 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6854 2009-12-08 Eric Blake <ebb9@byu.net>
6856 fchdir: avoid memory leak on re-registration.
6857 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6859 2009-12-08 Jim Meyering <meyering@redhat.com>
6861 init.sh: avoid Solaris 10 /bin/sh portability problem
6862 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6864 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6865 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6867 tests/init.sh relied on that, accepting a --set-path=DIR argument,
6868 and two tests used that idiom.
6869 * tests/init.sh: Update suggested usage comments.
6870 (path_prepend_): New function, to be used in place
6871 of the --src-path=DIR option.
6872 (setup_): Move PATH-prepending code into path_prepend_.
6873 * tests/test-pread.sh: Adapt to new usage.
6874 * tests/test-xalloc-die.sh: Likewise.
6876 2009-12-08 Simon Josefsson <simon@josefsson.org>
6878 * doc/gnulib.texi (Glibc pty.h): Add.
6879 * doc/glibc-functions/forkpty.texi: Add.
6880 * doc/glibc-functions/openpty.texi: Add.
6881 Suggested by Bruno Haible.
6883 2009-12-08 Eric Blake <ebb9@byu.net>
6885 fchdir: fix logic bugs
6886 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6887 * tests/test-fchdir.c (main): Enhance test.
6888 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6891 dup2: fix logic bugs
6892 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
6893 REPLACE_DUP2 to decide when rpl_dup2 is needed.
6894 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6896 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6898 2009-12-07 Eric Blake <ebb9@byu.net>
6900 unlink: fix m4 detection
6901 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6903 unistd-safer: add unit test
6904 * modules/unistd-safer-tests: New file.
6905 * tests/test-dup-safer.c: Likewise.
6906 * tests/test-cloexec.c (setmode): Avoid compiler warning.
6907 * tests/test-dup2.c (setmode): Likewise.
6908 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6910 cloexec: preserve text vs. binary across dup_cloexec
6911 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6913 * modules/dup2-tests (Depends-on): Add binary-io.
6914 * modules/cloexec-tests (Depends-on): Likewise.
6915 * tests/test-dup2.c (setmode, is_mode): New helpers.
6916 (main): Add tests that translation mode is preserved.
6917 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6918 Reported by Bruno Haible.
6920 mgetgroups: reduce duplicate listings
6921 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6923 * tests/test-chown.h (test_chown): Simplify client.
6924 * tests/test-lchown.h (test_lchown): Likewise.
6926 2009-12-06 Bruno Haible <bruno@clisp.org>
6928 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6931 2009-12-06 Bruno Haible <bruno@clisp.org>
6933 * lib/progname.c: Include stdio.h, stdlib.h.
6934 (set_program_name): Reject a NULL argument.
6936 2009-12-05 Eric Blake <ebb9@byu.net>
6938 pipe2-safer: new module
6939 * modules/pipe2-safer: New file.
6940 * lib/unistd-safer.h (pipe2_safer): New prototype.
6941 * lib/unistd--.h (pipe2): New wrapper.
6942 * lib/pipe-safer.c (pipe2_safer): New function.
6943 * modules/pipe (Depends-on): Add pipe2-safer.
6944 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6946 stdlib-safer: preserve cloexec flag for mkostemp[s]
6947 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6950 unistd-safer: allow preservation of cloexec status via flag
6951 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6953 * lib/dup-safer.c (dup_safer_flag): New function.
6954 * lib/fd-safer.c (fd_safer_flag): Likewise.
6955 * modules/cloexec (configure.ac): Set witness.
6957 test-dup2: enhance test
6958 * modules/dup2-tests (Depends-on): Add cloexec.
6959 * tests/test-dup2.c (main): Enhance test.
6961 cloexec: add dup_cloexec
6962 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
6963 header and comments.
6964 * lib/cloexec.c (set_cloexec_flag): Add comments.
6965 (dup_cloexec): New function, with mingw implementation borrowed
6967 * lib/w32spawn.h (dup_noinherit): ...here.
6968 * modules/execute (Depends-on): Add cloexec.
6969 * modules/pipe (Depends-on): Likewise.
6970 * modules/cloexec (Depends-on): Add dup2.
6971 * modules/cloexec-tests (Files): New file.
6972 * tests/test-cloexec.c: Likewise.
6974 test-xalloc-die: fix test for mingw
6975 * modules/xalloc-die-tests (Files): Add tests/init.sh.
6976 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
6977 directory and .exe suffix off argv[0] output.
6979 test-fseeko: fix test for mingw
6980 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6981 than undefining fseek, so test will pass on mingw.
6983 2009-12-05 Bruno Haible <bruno@clisp.org>
6985 * lib/progname.h (set_program_name): Clarify specification.
6986 * lib/progname.c (set_program_name): Likewise.
6987 Reported by Jim Meyering.
6989 2009-12-05 Jim Meyering <meyering@redhat.com>
6991 maint.mk: backslash-escape parens in default regexp
6992 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6993 backslash-escape the literal parentheses.
6995 maint.mk: news-date-check: use grep -E
6996 * top/maint.mk (today): Define a Make variable, not a...
6997 (news-date-check): ...shell variable.
6998 (news-date-regexp): Use the Make variable.
6999 Use grep's -E option. Change the failing diagnostic to mention
7000 the variable, $(news-date-regexp).
7002 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
7004 maintainer-makefile: allow customization of NEWS entry format
7005 * top/maint.mk (news-date-regexp): New overridable variable.
7006 (news-date-check): Use it.
7008 2009-12-04 Eric Blake <ebb9@byu.net>
7010 mgetgroups: add xgetgroups, and avoid ENOSYS failures
7011 * lib/mgetgroups.h (xgetgroups): New prototype.
7012 * lib/mgetgroups.c (xgetgroups): New wrapper.
7013 (mgetgroups): Handle ENOSYS.
7014 * modules/mgetgroups (Depends-on): Add realloc.
7015 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7017 mgetgroups: avoid argument promotion issues with -1
7018 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7020 * tests/test-chown.h (getegid, test_chown): Likewise.
7021 * tests/test-lchown.h (getegid, test_lchown): Likewise.
7023 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
7025 exclude: Fix header file problems.
7026 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7028 2009-12-01 Jim Meyering <meyering@redhat.com>
7030 fts: fts_open: do not let an empty string cause immediate failure
7031 This is required in support of GNU rm, for which the command
7032 "rm A '' B" must process and remove both A and B, in spite of
7033 the empty string argument.
7034 * lib/fts.c (fts_open): Do not let the presence of an empty string
7035 cause fts_open to fail immediately. Most fts-using tools must be
7036 able to process all arguments, in order, and can be expected to
7037 diagnose such arguments themselves.
7039 2009-11-30 Eric Blake <ebb9@byu.net>
7041 utimens: fix compilation error
7042 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7043 Declare variable at right scope.
7045 2009-11-29 Jim Meyering <meyering@redhat.com>
7047 bootstrap: handle perl-5.11's changed --version output
7048 * build-aux/bootstrap (get_version): Handle perl separately,
7049 since perl-5.11's --version output is different.
7051 2009-11-28 Jim Meyering <meyering@redhat.com>
7053 userspec: depend on the inttostr module, too
7054 * modules/userspec (Depends-on): Add inttostr.
7056 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7057 * lib/userspec.c (parse_with_separator): Do not accept a user ID
7058 number of MAXUID when it evaluates to (uid_t) -1.
7059 Likewise for group ID. Reported by Matt McCutchen in
7060 <http://savannah.gnu.org/bugs/?28113>
7062 userspec: reformat to use spaces, not TABs
7063 * lib/userspec.c: Expand TABs to spaces.
7064 Add Emacs' "indent-tabs-mode: nil" hint.
7066 2009-11-27 Eric Blake <ebb9@byu.net>
7068 getopt-gnu: flush out another BSD bug
7069 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7070 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7072 * tests/test-getopt.h (test_getopt): End lists with NULL.
7073 * tests/test-getopt_long.h (test_getopt_long): Likewise.
7074 (test_getopt_long_posix): Enhance test.
7075 * modules/getopt-posix-tests (Depends-on): Add stdbool.
7076 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7078 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7081 2009-11-27 Simon Josefsson <simon@josefsson.org>
7083 * modules/idpriv-droptemp-tests (Notice): Fix text.
7085 2009-11-27 Jim Meyering <meyering@redhat.com>
7087 test-xalloc-die: avoid spurious failure due to libtool argv difference
7088 In a libtool-enabled project, this test would fail due to a difference
7089 in the emitted program name, e.g.,
7090 -test-xalloc-die: memory exhausted
7091 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7092 Use program to avoid that.
7093 * modules/xalloc-die-tests (Depends-on): Add progname.
7094 * tests/test-xalloc-die.c: Include progname.h".
7095 (program_name): Remove decl.
7096 (main): Call set_program_name.
7097 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7099 2009-11-26 Richard Jones <rjones@redhat.com>
7101 w32sock: leave win32 error in place.
7102 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7104 2009-11-26 Eric Blake <ebb9@byu.net>
7106 init.sh: suggest to use skip_ and fail_ functions in comments
7107 * tests/init.sh: Add a sentence.
7109 2009-11-25 Bruno Haible <bruno@clisp.org>
7111 init.sh: add documentation in comments
7112 * tests/init.sh: Add some developer and user documentation.
7114 2009-11-26 Jim Meyering <meyering@redhat.com>
7116 init.sh: accommodate even those who specify bogus srcdir manually
7117 * tests/init.sh: Normally, srcdir is guaranteed by automake and
7118 configure-time tests to be sanitized, so that there is no need to
7119 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
7120 (with no double quotes) suffices. However, since tests may be
7121 invoked manually, and since you may explicitly set srcdir to the
7122 name of a directory containing spaces, do quote its uses here.
7123 * tests/test-pread.sh: Likewise.
7124 Suggested by Bruno Haible.
7126 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7127 * tests/test-pread.sh: Write no data into the pipe, because
7128 test-pread actually reads none. This avoids a diagnostic,
7129 "bash: echo: write error: Broken pipe", that arises in the unusual
7130 event something is ignoring SIGPIPE, and might be interpreted
7131 as some sort of failure. Reported by Bruno Haible.
7133 2009-11-25 Jim Meyering <meyering@redhat.com>
7135 test-pread: cover failure with ESPIPE and EINVAL
7136 * tests/test-pread.c (main): Test for failure, too.
7137 * tests/test-pread.sh: Invoke with stdin on a pipe.
7138 Suggested by Eric Blake.
7140 pread: improvement and fix
7141 * modules/pread (Depends-on): Depend on lseek, for portability to
7142 e.g., mingw. Suggested by Eric Blake.
7143 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
7145 unistd.in.h: correct declaration of pread
7146 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7147 Reported by Richard W.M. Jones.
7149 test-pread.sh: distribute the test script
7150 * modules/pread-tests (Files): Include test-pread.sh.
7152 test-pread.sh: clean up
7153 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7154 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7155 That is unnecessary, since it's always ".".
7156 Suggestion from Eric Blake.
7158 test-pread.sh: make executable
7159 * tests/test-pread.sh: Set executable bit.
7160 Reported by Eric Blake.
7162 correct typo in test-pread.sh
7163 * tests/test-pread.sh: Add #! line.
7166 * tests/test-pread.c: New file.
7167 * tests/test-pread.sh: Likewise.
7168 * modules/pread-tests: Likewise.
7171 * modules/pread: New file.
7172 * lib/unistd.in.h (pread): Define/declare.
7173 * lib/pread.c (pread): New file.
7174 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7175 * modules/unistd (Makefile.am): Substitute witnesses.
7176 * doc/posix-functions/pread.texi (pread): Update.
7177 * MODULES.html.sh: Add pread.
7179 2009-11-25 Jim Meyering <meyering@redhat.com>
7181 tests/init.sh: new file to be used via most *.sh tests
7182 * tests/init.sh: New file.
7184 2009-11-25 Eric Blake <ebb9@byu.net>
7186 utimens: work around older Linux failure with symlinks
7187 * lib/utimens.c (lutimensat_works_really): New variable.
7188 (fdutimens, lutimens): Use it to manage kernels that support
7189 nanosecond times on files, but not on symlinks.
7190 Reported by OndÅ™ej VaÅ¡Ãk.
7192 utimes: fix configure grammar
7193 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7195 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
7197 regex: Fix fastmap for multibyte character ranges.
7198 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7199 characters when a multibyte character range is included.
7201 2009-11-22 Andy Wingo <wingo@pobox.com>
7203 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7204 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7206 2009-11-24 Bruno Haible <bruno@clisp.org>
7208 doc: Most *_l functions exist in MacOS X 10.5.
7209 * doc/posix-functions/duplocale.texi: Update platforms list.
7210 * doc/posix-functions/freelocale.texi: Likewise.
7211 * doc/posix-functions/newlocale.texi: Likewise.
7212 * doc/posix-functions/uselocale.texi: Likewise.
7213 * doc/posix-functions/isalnum_l.texi: Likewise.
7214 * doc/posix-functions/isalpha_l.texi: Likewise.
7215 * doc/posix-functions/isblank_l.texi: Likewise.
7216 * doc/posix-functions/iscntrl_l.texi: Likewise.
7217 * doc/posix-functions/isdigit_l.texi: Likewise.
7218 * doc/posix-functions/isgraph_l.texi: Likewise.
7219 * doc/posix-functions/islower_l.texi: Likewise.
7220 * doc/posix-functions/isprint_l.texi: Likewise.
7221 * doc/posix-functions/ispunct_l.texi: Likewise.
7222 * doc/posix-functions/isspace_l.texi: Likewise.
7223 * doc/posix-functions/isupper_l.texi: Likewise.
7224 * doc/posix-functions/iswalnum_l.texi: Likewise.
7225 * doc/posix-functions/iswalpha_l.texi: Likewise.
7226 * doc/posix-functions/iswblank_l.texi: Likewise.
7227 * doc/posix-functions/iswcntrl_l.texi: Likewise.
7228 * doc/posix-functions/iswctype_l.texi: Likewise.
7229 * doc/posix-functions/iswdigit_l.texi: Likewise.
7230 * doc/posix-functions/iswgraph_l.texi: Likewise.
7231 * doc/posix-functions/iswlower_l.texi: Likewise.
7232 * doc/posix-functions/iswprint_l.texi: Likewise.
7233 * doc/posix-functions/iswpunct_l.texi: Likewise.
7234 * doc/posix-functions/iswspace_l.texi: Likewise.
7235 * doc/posix-functions/iswupper_l.texi: Likewise.
7236 * doc/posix-functions/iswxdigit_l.texi: Likewise.
7237 * doc/posix-functions/isxdigit_l.texi: Likewise.
7238 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7239 * doc/posix-functions/strcasecmp_l.texi: Likewise.
7240 * doc/posix-functions/strcoll_l.texi: Likewise.
7241 * doc/posix-functions/strfmon_l.texi: Likewise.
7242 * doc/posix-functions/strftime_l.texi: Likewise.
7243 * doc/posix-functions/strncasecmp_l.texi: Likewise.
7244 * doc/posix-functions/strxfrm_l.texi: Likewise.
7245 * doc/posix-functions/tolower_l.texi: Likewise.
7246 * doc/posix-functions/toupper_l.texi: Likewise.
7247 * doc/posix-functions/towctrans_l.texi: Likewise.
7248 * doc/posix-functions/towlower_l.texi: Likewise.
7249 * doc/posix-functions/towupper_l.texi: Likewise.
7250 * doc/posix-functions/wcscoll_l.texi: Likewise.
7251 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7252 * doc/posix-functions/wctrans_l.texi: Likewise.
7253 * doc/posix-functions/wctype_l.texi: Likewise.
7254 * doc/glibc-functions/strptime_l.texi: Likewise.
7255 * doc/glibc-functions/strtod_l.texi: Likewise.
7256 * doc/glibc-functions/strtof_l.texi: Likewise.
7257 * doc/glibc-functions/strtol_l.texi: Likewise.
7258 * doc/glibc-functions/strtold_l.texi: Likewise.
7259 * doc/glibc-functions/strtoll_l.texi: Likewise.
7260 * doc/glibc-functions/strtoul_l.texi: Likewise.
7261 * doc/glibc-functions/strtoull_l.texi: Likewise.
7262 * doc/glibc-functions/wcsftime_l.texi: Likewise.
7263 * doc/glibc-functions/wcstod_l.texi: Likewise.
7264 * doc/glibc-functions/wcstof_l.texi: Likewise.
7265 * doc/glibc-functions/wcstol_l.texi: Likewise.
7266 * doc/glibc-functions/wcstold_l.texi: Likewise.
7267 * doc/glibc-functions/wcstoll_l.texi: Likewise.
7268 * doc/glibc-functions/wcstoul_l.texi: Likewise.
7269 * doc/glibc-functions/wcstoull_l.texi: Likewise.
7271 2009-11-24 Bruno Haible <bruno@clisp.org>
7273 duplocale: Fix logic bug.
7274 * lib/duplocale.c: Don't include <langinfo.h>.
7275 (_NL_LOCALE_NAME): Remove macro.
7276 (rpl_duplocale): Use setlocale instead of nl_langinfo.
7277 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7279 2009-11-23 Jim Meyering <meyering@redhat.com>
7281 test-update-copyright: don't hard-code /usr/bin/perl
7282 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7283 perl to print the current year. Gilles Espinasse reported that
7284 the replaced use of perl was hard-coded as /usr/bin/perl.
7286 2009-11-23 Bruno Haible <bruno@clisp.org>
7288 duplocale: Add support for glibc 2.3.x.
7289 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7291 2009-11-22 Bruno Haible <bruno@clisp.org>
7293 vasnprintf: Tiny optimization.
7294 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7297 2009-11-22 Bruno Haible <bruno@clisp.org>
7299 Tests for module 'duplocale'.
7300 * modules/duplocale-tests: New file.
7301 * tests/test-duplocale.c: New file.
7303 New module 'duplocale'.
7304 * m4/duplocale.m4: New file.
7305 * lib/locale.in.h (duplocale): New declaration.
7306 * lib/duplocale.c: New file.
7307 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7308 gl_LOCALE_H_DEFAULTS): New macros.
7309 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7310 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7311 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7313 * modules/duplocale: New file.
7314 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7316 2009-11-22 Bruno Haible <bruno@clisp.org>
7318 * modules/locale-tests (configure.ac): Test for newlocale function.
7319 * tests/test-locale.c: When the system has extended locale functions,
7320 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7322 locale: Make locale_t available when possible.
7323 * lib/locale.in.h: Include <xlocale.h> when it exists.
7324 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7325 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7326 * modules/locale (Depends-on): Add extensions.
7327 (Makefile.am): Also substitute HAVE_XLOCALE_H.
7328 * doc/posix-headers/locale.texi: Document the problem with locale_t.
7330 2009-11-22 Bruno Haible <bruno@clisp.org>
7333 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7335 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7336 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7337 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7339 2009-11-22 Bruno Haible <bruno@clisp.org>
7341 error: account for the possibility of freopen (stdout).
7342 * lib/error.c: Include <unistd.h>.
7343 (flush_stdout): New function, extracted from error and error_at_line.
7344 Determine stdout's fd dynamically.
7345 (error, error_at_line): Invoke flush_stdout.
7346 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7347 * modules/error (Depends-on): Add unistd.
7349 2009-11-22 Bruno Haible <bruno@clisp.org>
7351 diffseq: Add comment.
7352 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7354 2009-11-22 Jim Meyering <meyering@redhat.com>
7356 c-stack: avoid defining an unused static function
7357 * lib/c-stack.c (find_stack_direction): Do not define this function
7358 when it will not be used.
7360 diffseq: avoid spurious gcc warnings
7361 * lib/diffseq.h (IF_LINT2): Define.
7362 (compareseq): Use it to initialize two members of "part".
7363 This avoids two used-uninitialized warnings.
7365 2009-11-21 Jim Meyering <meyering@redhat.com>
7367 c-stack: avoid "ignoring return value of `write'" warning
7368 * lib/c-stack.c: Include "ignore-value.h".
7369 (die): Explicitly ignore each write return value.
7370 * modules/c-stack (Depends-on): Add ignore-value.
7372 2009-11-21 Bruno Haible <bruno@clisp.org>
7374 diffseq: reduce scope of variable 'best'.
7375 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7376 variable, earlier used for two different purposes.
7378 2009-11-21 Jim Meyering <meyering@redhat.com>
7380 diffseq: remove useless assignment to "best"
7381 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7382 assignment. At that point "best" is already guaranteed to be zero.
7384 2009-11-20 Eric Blake <ebb9@byu.net>
7386 build: mention ftp redirector in release announcements
7387 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7388 values that used to come from cfg.mk; mention FTP redirect URL.
7389 * build-aux/announce-gen: Mention the mirror list.
7390 Suggested by Karl Berry.
7392 nanosleep: improve port to mingw
7393 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7394 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7395 LIB_NANOSLEEP, but only when needed.
7396 * modules/select (Link): Document LIBSOCKET.
7397 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7400 nanosleep: work around cygwin bug
7401 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7402 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
7404 (getnow): Delete, not needed.
7405 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7407 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
7408 clock-time, gettime.
7409 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7411 * modules/nanosleep-tests: New test.
7412 * tests/test-nanosleep.c: New file.
7414 sleep: work around cygwin bug
7415 * lib/sleep.c (rpl_sleep): Work around the bug.
7416 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7417 (gl_PREREQ_SLEEP): Delete unused macro.
7418 * modules/sleep (Depends-on): Add verify.
7419 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7420 * modules/unistd (Makefile.am): Substitute witness.
7421 * lib/unistd.in.h (sleep): Update prototype.
7422 * doc/posix-functions/sleep.texi (sleep): Document the bug.
7423 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7424 * modules/sleep-tests (Depends-on): Check for alarm.
7426 2009-11-20 Jim Meyering <meyering@redhat.com>
7428 maint.mk: improve sc_prohibit_magic_number_exit
7429 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7430 so it does not match uses like System.exit(1).
7431 Add comments showing how to correct all offenders.
7433 2009-11-19 Eric Blake <ebb9@byu.net>
7435 xalloc-die-tests: add missing library
7436 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7438 test-xvasprintf: silence compiler warnings
7439 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7440 empty string from gcc.
7442 2009-11-19 Jim Meyering <meyering@redhat.com>
7444 xfreopen: new module, from coreutils
7445 * modules/xfreopen: New module.
7446 * lib/xfreopen.c: New file.
7447 * lib/xfreopen.h: New file.
7448 * MODULES.html.sh (File stream based Input/Output"): Add it.
7450 2009-11-19 Eric Blake <ebb9@byu.net>
7452 manywarnings: depend on warnings
7453 * modules/manywarnings (Depends-on): Add warnings.
7455 build: avoid compiler warnings
7456 * lib/select.c (rpl_select): Delete unused variable.
7457 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7459 2009-11-18 Eric Blake <ebb9@byu.net>
7461 tests: avoid false negative with --with-packager
7462 * tests/test-version-etc.sh: Discard packager information.
7463 * tests/test-argp-version-etc-1.sh: Likewise.
7464 Reported by Mike Frysinger.
7466 utimens: fix regression on Solaris
7467 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7468 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7469 can only change fd timestamps via futimesat. Instead, use an
7470 additional witness macro to avoid BSD bug.
7471 Reported by Jim Meyering.
7473 2009-11-17 Eric Blake <ebb9@byu.net>
7475 usleep: use it to simplify tests
7476 * modules/stat-time-tests (Depends-on): Add usleep.
7477 (configure.ac): Drop usleep check.
7478 * modules/chown-tests (Depends-on, configure.ac): Likewise.
7479 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7480 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7481 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7482 * modules/openat-tests (Depends-on, configure.ac): Likewise.
7483 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7484 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7485 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7487 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7488 * tests/test-lchown.h (nap): Likewise.
7489 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7490 * tests/test-stat-time.c (nap): Likewise.
7491 * tests/test-utimens-common.h (nap): Update comments.
7494 * modules/usleep: New file.
7495 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7496 * lib/usleep.c (usleep): Likewise.
7497 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7498 * modules/unistd (Makefile.am): Substitute witnesses.
7499 * lib/unistd.in.h (usleep): Add declaration.
7500 * doc/pastposix-functions/usleep.texi (usleep): Document this.
7501 * MODULES.html.sh (Date and time): Likewise.
7502 * modules/usleep-tests (Depends-on): New test.
7503 * tests/test-usleep.c: New file.
7505 chown: work around OpenBSD bug
7506 * lib/chown.c (rpl_chown): Work around the bug.
7507 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7508 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7509 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7510 * modules/chown (Depends-on): Add stdbool.
7511 * modules/lchown (Depends-on): Likewise.
7512 * doc/posix-functions/chown.texi (chown): Document the bug.
7513 * doc/posix-functions/lchown.texi (lchown): Likewise.
7514 * tests/test-lchown.h (test_chown): Relax test.
7516 mkstemp: avoid conflict with C++ keyword template
7517 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7518 * lib/mkostemp.c (mkostemp): Likewise.
7519 * lib/mkostemps.c (mkostemps): Likewise.
7520 * lib/mkstemp.c (mkstemp): Likewise.
7521 * lib/mkstemps.c (mkstemps): Likewise.
7523 xalloc-die-tests: optimize
7524 * tests/test-xalloc-die.sh: Reduce number of processes.
7526 2009-11-17 Simon Josefsson <simon@josefsson.org>
7528 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
7529 patch from ludo@gnu.org (Ludovic Courtès).
7531 2009-11-17 Jim Meyering <meyering@redhat.com>
7533 version-etc: use proper license string
7534 * modules/version-etc (License): Use LGPL, not LGPLv3+.
7535 * modules/version-etc-fsf: Likewise.
7537 2009-11-17 Simon Josefsson <simon@josefsson.org>
7539 * tests/test-xalloc-die.sh: Add license. Check that nothing is
7540 printed to stdout. Deal with EOL differences.
7542 2009-11-17 Eric Blake <ebb9@byu.net>
7544 unsetenv: work around Solaris bug
7545 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7546 * lib/unsetenv.c (rpl_unsetenv): Work around it.
7547 Reported by Jim Meyering.
7549 vasnprintf: avoid compiler warnings
7550 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7552 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7554 2009-11-17 Simon Josefsson <simon@josefsson.org>
7556 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7557 settings since xalloc-die is no longer the self test,
7560 2009-11-17 Jim Meyering <meyering@redhat.com>
7562 test-xalloc-die.sh: make the code agree with the commit log
7563 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7564 at the end, just in case you happen to have a test-xalloc-die
7565 program in some other PATH directory.
7567 test-xalloc-die.sh: fix a portability bug
7568 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7569 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7570 Otherwise, argv[0] (as often seen in diagnostics) would be too
7571 system-dependent, sometimes with, and sometimes without the leading "./".
7573 version-etc-fsf: relax license to LGPLv3+
7574 * modules/version-etc-fsf (License): Relax license.
7576 2009-11-16 Eric Blake <ebb9@byu.net>
7578 xalloc-die-tests: avoid printing null pointer
7579 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7581 * tests/test-xalloc-die.c (program_name): Declare.
7582 * tests/test-xalloc-die.sh (tmpfiles): New file.
7584 setenv, unsetenv: work around various bugs
7585 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7586 (setenv) [HAVE_SETENV]: Work around bugs.
7587 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7588 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7590 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7591 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7592 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7593 * modules/stdlib (Makefile.am): Update substitutions.
7594 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7595 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7596 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7597 * modules/setenv-tests: New test.
7598 * modules/unsetenv-tests: Likewise.
7599 * tests/test-setenv.c: New file.
7600 * tests/test-unsetenv.c: Likewise.
7602 2009-11-16 Jim Meyering <meyering@redhat.com>
7604 version-etc: relax license to LGPLv3+
7605 * modules/version-etc (License): Relax license.
7607 better AC_REQUIRE expanded-before-required-warning avoidance
7608 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7609 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7610 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
7611 which is no longer needed.
7613 2009-11-16 Eric Blake <ebb9@byu.net>
7615 test-freading: clean up temporary file
7616 * tests/test-freading.c (main): Remove file on success, and use
7617 ASSERT more liberally.
7618 Reported by Jim Meyering.
7620 2009-11-16 Jim Meyering <meyering@redhat.com>
7622 avoid new AC_REQUIRE expanded-before-required warnings
7623 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7625 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7626 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7628 2009-11-15 Simon Josefsson <simon@josefsson.org>
7630 * tests/test-xalloc-die.c: New file.
7631 * modules/xalloc-die-tests: New file.
7632 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7633 XFAIL_TESTS so it can be appended by modules.
7635 2009-11-15 Simon Josefsson <simon@josefsson.org>
7637 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
7638 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7640 2009-11-14 Eric Blake <ebb9@byu.net>
7642 fnmatch: avoid compiler warning
7643 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7644 to silence compiler warning about mismatch signedness in ?:.
7645 Reported by Robert Millan.
7647 intprops: add double-inclusion guard
7648 * lib/intprops.h: Allow idempotent includes.
7649 Suggested by Bruce Korb.
7651 openat: detect Solaris fchownat bug
7652 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
7653 penalizing glibc chownat when only lchownat is broken.
7654 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7655 trailing slash bugs.
7656 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7657 * modules/openat-tests (Files): Include more files.
7658 (Depends-on): Add mgetgroups, sleep, stat-time.
7659 (configure.ac): Add additional checks.
7660 (Makefile.am): Build new test.
7661 * tests/test-fchownat.c: New file.
7663 lchown: detect Solaris and FreeBSD bug
7664 * lib/lchown.c (rpl_lchown): Work around bug.
7665 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7666 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7667 * modules/unistd (Makefile.am): Populate it.
7668 * lib/unistd.in.h (lchown): Update declaration.
7669 * doc/posix-functions/lchown.texi (lchown): Document the bug.
7670 * modules/lchown-tests: New file.
7671 * tests/test-lchown.h (test_lchown): Likewise.
7672 * tests/test-lchown.c (main): Likewise.
7674 chown: detect Solaris and FreeBSD bug
7675 * lib/chown.c (rpl_chown): Work around bug.
7676 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7677 (gl_PREREQ_CHOWN): Delete.
7678 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7679 * modules/unistd (Makefile.am): Populate it.
7680 * lib/unistd.in.h (chown): Update declaration.
7681 * lib/lchown.c (chown): Update client.
7682 * modules/lchown (Depends-on): Add lstat.
7683 * doc/posix-functions/chown.texi (chown): Document the bug.
7684 * doc/posix-functions/getgroups.texi (getgroups): Document
7686 * modules/chown-tests: New file.
7687 * tests/test-chown.h (test_chown): Likewise.
7688 * tests/test-chown.c (main): Likewise.
7690 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
7692 gnulib-tool: correctly detect absence of m4 directories
7693 * gnulib-tool: Avoid extra newline on data passed to wc -l.
7695 2009-11-14 Jim Meyering <meyering@redhat.com>
7697 maint.mk: Prohibit inclusion of "xalloc.h" without use.
7698 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7700 2009-11-14 John W. Eaton <jwe@gnu.org>
7702 strftime.h: wrap funtion declaration in extern "C" block
7703 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7705 2009-11-13 Eric Blake <ebb9@byu.net>
7707 getgroups: avoid compiler warning
7708 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7710 getgroups: work around FreeBSD bug
7711 * lib/getgroups.c (rpl_getgroups): Work around the bug.
7712 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7713 * doc/posix-functions/getgroups.texi (getgroups): Document it.
7714 * tests/test-getgroups.c (main): Fix buffer overrun.
7716 getgroups: avoid compilation failure
7717 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7718 * modules/getgroups (Depends-on): Add stdint.
7720 2009-11-13 Jim Meyering <meyering@redhat.com>
7722 test-getgroups: avoid compilation failure
7723 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7725 2009-11-13 Eric Blake <ebb9@byu.net>
7727 mgetgroups: new module, taken from coreutils
7728 * modules/mgetgroups: New file.
7729 * lib/mgetgroups.h: Likewise.
7730 * lib/mgetgroups.c (mgetgroups): Likewise.
7731 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7732 * MODULES.html.sh (Users and groups): Mention it.
7734 getgroups: don't expose GETGROUPS_T to user
7735 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
7736 an element at a time if GETGROUPS_T is wrong size.
7737 * lib/getugroups.h (getugroups): Change signature.
7738 * lib/unistd.in.h (getgroups): Likewise.
7739 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7740 signature needs fixing.
7741 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7743 * modules/group-member (Depends-on): Add getgroups.
7744 * lib/group-member.c (group_info, get_group_info): Use gid_t.
7745 (group_member): Rely on getgroups replacement.
7746 * lib/getugroups.c (getugroups): Use gid_t.
7747 * tests/test-getgroups.c (main): Likewise.
7748 * NEWS: Mention the signature change.
7749 * doc/posix-functions/getgroups.texi (getgroups): Mention the
7750 problem with signature.
7751 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7752 GETGROUPS_T is still useful for setgroups.
7754 getgroups, getugroups: provide stubs for mingw
7755 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7756 * lib/getugroups.c (getugroups): Likewise.
7757 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7758 function. Modernize replacement scheme.
7759 (gl_PREREQ_GETGROUPS): Delete.
7760 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7761 * modules/getgroups (configure.ac): Declare witness.
7762 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7763 * modules/unistd (Depends-on): Substitute witness.
7764 * lib/unistd.in.h (getgroups): Declare replacement.
7766 getgroups: avoid calling exit
7767 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7769 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7771 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7772 exiting, in the rare case of malloc failure.
7774 getgroups: fix logic error
7775 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7776 has more than 20 groups.
7777 * modules/getgroups-tests: New test.
7778 * tests/test-getgroups.c: New file.
7780 2009-11-13 Simon Josefsson <simon@josefsson.org>
7782 * tests/test-base64.c: Improve.
7784 2009-11-13 Simon Josefsson <simon@josefsson.org>
7786 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7787 Blake <ebb9@byu.net>.
7789 2009-11-13 Simon Josefsson <simon@josefsson.org>
7791 * tests/test-xvasprintf.c: Add %s%s related checks.
7793 2009-11-12 Eric Blake <ebb9@byu.net>
7795 version-etc: match standards.texi style
7796 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7797 and use <> only for URLs.
7799 2009-11-10 Kamil Dudka <kdudka@redhat.com>
7801 fts: do not fail on a submount during traversal
7802 * lib/fts.c (fts_build): Read the stat info again after opening
7803 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7804 Original report at http://bugzilla.redhat.com/501848.
7806 2009-11-12 Jim Meyering <meyering@redhat.com>
7808 bootstrap: sync from coreutils
7809 * build-aux/bootstrap (bootstrap_epilogue): New function.
7810 Use git_modules_config in one more place. This make bootstrap's
7811 --gnulib-srcdir option more useful for testing.
7813 bootstrap: generalize autoheader check
7814 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7817 2009-11-11 Eric Blake <ebb9@byu.net>
7819 mkfifoat: use new modules for Solaris and BSD bugs
7820 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7821 * lib/mkfifoat.c (mknodat): Split...
7822 * lib/mknodat.c (mknodat): ...into new file.
7823 * modules/mkfifoat (Files): Ship new file.
7824 (Depends-on): Add mkfifo, mknod.
7825 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7826 (Depends-on): Add symlink.
7827 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
7828 redundant with test_mkfifo.h.
7829 (do_mkfifoat, do_mknodat): New helpers.
7832 * modules/mknod: New file.
7833 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7834 * lib/mknod.c (mknod): Likewise.
7835 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7837 * modules/sys_stat (Makefile.am): Substitute them.
7838 * lib/sys_stat.in.h (mknod): Declare replacement.
7839 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7841 * doc/posix-functions/mknod.texi (mknod): Likewise.
7842 * modules/mknod-tests: New test.
7843 * tests/test-mknod.c: Likewise.
7846 * modules/mkfifo: New file.
7847 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7848 * lib/mkfifo.c (mkfifo): Likewise.
7849 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7851 * modules/sys_stat (Makefile.am): Substitute them.
7852 * lib/sys_stat.in.h (mkfifo): Declare replacement.
7853 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7855 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7856 * modules/mkfifo-tests: New test.
7857 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7858 from test-mkfifoat.c.
7859 * tests/test-mkfifo.c: New file.
7861 readlink: detect FreeBSD bug
7862 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7864 * doc/posix-functions/readlink.texi (readlink): Document the bug.
7865 * tests/test-readlink.h (test_readlink): Enhance test.
7867 symlink: detect FreeBSD bug
7868 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7870 * doc/posix-functions/symlink.texi (symlink): Document the bug.
7871 * tests/test-symlink.h (test_symlink): Enhance test.
7873 2009-11-10 Eric Blake <ebb9@byu.net>
7875 link: detect FreeBSD bug
7876 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7878 * doc/posix-functions/link.texi (link): Document the bug.
7879 * tests/test-link.h (test_link): Enhance test.
7880 * tests/test-linkat.c (main): Update caller.
7882 unlink, remove: detect FreeBSD bug
7883 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7885 * doc/posix-functions/unlink.texi (unlink): Document the bug.
7886 * doc/posix-functions/remove.texi (remove): Likewise.
7887 * tests/test-unlink.h (test_unlink): Enhance test.
7888 * tests/test-remove.c (main): Likewise.
7890 2009-11-09 Eric Blake <ebb9@byu.net>
7892 rename: detect FreeBSD bug
7893 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7895 * modules/renameat-tests (Depends-on): Add filenamecat.
7896 * tests/test-rename.h (test_rename): Allow one more errno.
7897 * tests/test-renameat.c (main): Likewise.
7898 * doc/posix-functions/rename.texi (rename): Document the bug.
7900 open: detect FreeBSD bug
7901 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7903 * doc/posix-functions/open.texi (open): Document the bug.
7904 * doc/posix-functions/utimes.texi (utimes): Likewise.
7905 * tests/test-open.h (test_open): Add parameters, and test symlink
7907 * tests/test-open.c (main): Adjust caller.
7908 * tests/test-fcntl-safer.c (main): Likewise.
7909 * modules/open-tests (Depends-on): Add stdbool, symlink.
7910 * modules/fcntl-safer-tests (Depends-on): Likewise.
7911 * tests/test-openat.c (main): Add test-open tests.
7913 stat: detect FreeBSD bug
7914 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7916 * doc/posix-functions/stat.texi (stat): Document the bug.
7917 * tests/test-stat.h (test_stat_func): Add argument.
7918 * tests/test-stat.c (main): Adjust caller.
7919 * tests/test-fstatat.c (main): Likewise.
7920 * modules/stat-tests (Depends-on): Add stdbool, symlink.
7921 Reported by Jim Meyering.
7923 2009-11-09 James Youngman <jay@gnu.org>
7925 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7926 * lib/strftime.c: Correct placement of #include "ignore-value.h".
7928 2009-11-08 Jim Meyering <meyering@redhat.com>
7930 utimens: remove invalid futimesat call
7931 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7932 It used the file descriptor of the target file as the DIR_FD
7933 parameter and NULL as the file name. That caused failure with
7934 errno == EFAULT on FreeBSD-8.0-rc2
7936 2009-11-07 Eric Blake <ebb9@byu.net>
7938 fflush, freadseek: use fseeko, not fseek
7939 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7940 (clear_ungetc_buffer): Avoid potential problems on large files.
7941 * lib/freadseek.c (freadseek): Likewise.
7942 * modules/freadseek (Depends-on): Add fseeko.
7943 * modules/fseek (configure.ac): Set a witness.
7944 * tests/test-fflush.c (main): Use fseeko.
7945 * tests/test-fpurge.c (fseek): Disable link warning.
7946 * tests/test-freadable.c (fseek): Likewise.
7947 * tests/test-freading.c (fseek): Likewise.
7948 * tests/test-fseeko.c (fseek): Likewise.
7949 * tests/test-ftell.c (fseek): Likewise.
7950 * tests/test-ftello.c (fseek): Likewise.
7951 * tests/test-fwritable.c (fseek): Likewise.
7952 * tests/test-fwriting.c (fseek): Likewise.
7954 2009-11-06 Simon Josefsson <simon@josefsson.org>
7956 * modules/memchr (Depends-on): Drop getpagesize dependency.
7958 2009-11-06 Simon Josefsson <simon@josefsson.org>
7960 * build-aux/pmccabe2html: Disable execute bit. Suggested by
7961 Reported by Ludovic Courtès.
7962 * build-aux/pmccabe2html: Improve example usage.
7963 * build-aux/pmccabe2html: Drop #! header. Doc fix.
7965 2009-11-06 Jim Meyering <meyering@redhat.com>
7967 do-release-commit-and-tag: New module.
7968 Automate the release-commit and tag process.
7969 * build-aux/do-release-commit-and-tag: New script, from coreutils.
7970 * modules/do-release-commit-and-tag: New file.
7971 * MODULES.html.sh (Support for maintaining and releasing): Add it.
7973 2009-11-06 Simon Josefsson <simon@josefsson.org>
7975 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7976 because test-select.c uses inet_pton.
7978 2009-11-06 Simon Josefsson <simon@josefsson.org>
7980 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7981 GETADDRINFO_LIB. Bump serial number.
7982 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7983 Suggested by Eric Blake <ebb9@byu.net>.
7985 2009-11-05 Eric Blake <ebb9@byu.net>
7987 strtod: detect darwin bug
7988 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7989 Reported by Leo Davis.
7991 freopen-safer: new module
7992 * modules/freopen-safer: New module.
7993 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7994 * lib/freopen-safer.c (freopen_safer): New file.
7995 * lib/stdio-safer.h (freopen_safer): New declaration.
7996 * lib/stdio--.h (freopen): New override.
7997 * MODULES.html.sh (File stream based Input/Output): Mention it.
7998 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7999 freopen-safer module.
8000 * doc/posix-functions/stderr.texi (stderr): Likewise.
8001 * doc/posix-functions/stdin.texi (stdin): Likewise.
8002 * doc/posix-functions/stdout.texi (stdout): Likewise.
8003 * modules/freopen-safer-tests: New test.
8004 * tests/test-reopen-safer.c: New file.
8006 2009-11-05 Jim Meyering <meyering@redhat.com>
8008 maint.mk: Prohibit inclusion of "close-stream.h" without use.
8009 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8011 2009-11-05 Simon Josefsson <simon@josefsson.org>
8013 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8015 2009-11-05 Simon Josefsson <simon@josefsson.org>
8017 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8019 2009-11-05 Simon Josefsson <simon@josefsson.org>
8022 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8023 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8025 2009-11-05 Simon Josefsson <simon@josefsson.org>
8027 * tests/test-func.c: Also test value of __func__.
8029 2009-11-05 Simon Josefsson <simon@josefsson.org>
8031 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8032 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
8034 2009-11-05 Bruno Haible <bruno@clisp.org>
8037 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8038 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8039 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8041 2009-11-05 Bruno Haible <bruno@clisp.org>
8043 Tests for module 'inet_pton'.
8044 * modules/inet_pton-tests: New file.
8045 * tests/test-inet_pton.c: New file.
8047 2009-11-05 Bruno Haible <bruno@clisp.org>
8049 Tests for module 'inet_ntop'.
8050 * modules/inet_ntop-tests: New file.
8051 * tests/test-inet_ntop.c: New file.
8053 2009-11-04 Eric Blake <ebb9@byu.net>
8055 stdlib-safer: wrap all mkstemp variants
8056 * modules/mkostemp (configure.ac): Set witness.
8057 * modules/mkostemps (configure.ac): Likewise.
8058 * modules/mkstemps (configure.ac): Likewise.
8059 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8060 (mkstemps_safer): Wrap more functions.
8061 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8063 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8064 (mkstemps_safer): Implement the wrappers.
8066 mkstemps, mkostemps: new modules
8067 * modules/mkostemps: New module.
8068 * modules/mkstemps: Likewise.
8069 * lib/mkostemps.c (mkostemps): New file.
8070 * lib/mkstemps.c (mkstemps): Likewise.
8071 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8072 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8073 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8074 * modules/stdlib (Makefile.am): Substitute them.
8075 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8076 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8077 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8078 * doc/gnulib.texi (Glibc stdlib.h): Include them.
8079 * MODULES.html.sh (File system functions): Mention them.
8081 tempname: resync from glibc
8082 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
8083 same values for __GT_FILE as glibc. Abort even when assertions
8085 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8086 match its value otherwise. Allow idempotent inclusion.
8087 * lib/mkdtemp.c (mkdtemp): Adjust caller.
8088 * lib/mkostemp.c (mkostemp): Likewise.
8089 * lib/mkstemp.c (mkstemp): Likewise.
8090 * lib/tmpfile.c (tmpfile): Likewise.
8091 * NEWS: Document this.
8093 utimens: fix use of futimens on older Linux
8094 * lib/utimens.c (fdutimens): Use updated, rather than original,
8095 timespec to avoid bug in older Linux kernel.
8096 Reported by Simon Josefsson.
8098 2009-11-04 Bruno Haible <bruno@clisp.org>
8100 Make num_processors more flexible and consistent.
8101 * lib/nproc.h (enum nproc_query): New type.
8102 (num_processors): Add a 'query' argument.
8103 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8104 (num_processors): Add a 'query' argument. Test the value of the
8105 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8106 mingw, count the number of CPUs available for the current process.
8107 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8108 Check for sched_getaffinity and sched_getaffinity_np.
8109 * modules/nproc (Depends-on): Add c-ctype, extensions.
8110 * NEWS: Mention the change.
8112 2009-11-03 Bruno Haible <bruno@clisp.org>
8114 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8116 2009-11-03 Jim Meyering <meyering@redhat.com>
8118 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8119 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8122 2009-11-02 Eric Blake <ebb9@byu.net>
8124 mktime, timegm: share common declaration
8125 * lib/mktime-internal.h: New file.
8126 * lib/mktime.c: Use it rather than open-coding a declaration.
8127 * lib/timegm.c: Likewise.
8128 * modules/mktime (Files): Ship it.
8129 * modules/timegm (Files): Likewise.
8130 Suggested by Bruno Haible.
8132 test-update-copyright: update test to match script changes
8133 * tests/test-update-copyright.sh: Avoid hard-coding perl
8134 location. Don't update *.bak created by earlier runs.
8136 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
8137 Simon Josefsson <simon@josefsson.org>
8138 Bruno Haible <bruno@clisp.org>
8140 Fix link error on Solaris 8.
8141 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8142 also in libnsl. Define also INET_PTON_LIB.
8143 * modules/inet_pton (Link): New section.
8145 2009-11-02 Simon Josefsson <simon@josefsson.org>
8146 Bruno Haible <bruno@clisp.org>
8148 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8149 * modules/inet_ntop (Link): New section.
8150 Reported by Boyan Kasarov <bkasarov@gmail.com>.
8152 2009-11-02 Eric Blake <ebb9@byu.net>
8154 maint: avoid compiler warnings in m4 macros
8155 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8156 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8158 2009-11-02 Simon Josefsson <simon@josefsson.org>
8160 * m4/pmccabe2html.m4: Remove file.
8161 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
8162 function. Change maintainer.
8163 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8164 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
8167 2009-10-31 Eric Blake <ebb9@byu.net>
8169 fseeko: fix m4 regression
8170 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
8171 regression from 2009-10-27.
8172 Reported by Ralf Wildenhues.
8174 2009-10-31 Jim Meyering <meyering@redhat.com>
8176 inttostr: aesthetics and improved (compile-time) safety
8177 Define inttype_is_signed rather than inttype_is_unsigned,
8178 since the sole use is via "#if inttype_is_signed".
8179 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8180 inttype_is_unsigned.
8181 * lib/offtostr.c (inttype_is_signed): Likewise.
8182 * lib/uinttostr.c (inttype_is_signed): Likewise.
8183 * lib/umaxtostr.c (inttype_is_signed): Likewise.
8184 * lib/inttostr.c (inttostr): Use verify to cross-check the
8185 inttype_is_signed value and the signedness of the actual type.
8186 * modules/inttostr (Depends-on): Add verify.
8188 2009-10-30 Eric Blake <ebb9@byu.net>
8190 build: avoid compiler warnings
8191 * lib/fchmodat.c (lchmod): Mark unused variables.
8192 * lib/getopt.c (_getopt_initialize): Likewise.
8193 * lib/mktime.c (__mktime_internal): Provide prototype.
8194 * lib/inttostr.c (inttostr): Avoid compiler warning even with
8195 older gcc that do not understand #pragma GCC diagnostic.
8196 * lib/uinttostr.c (inttype_is_unsigned): Define.
8197 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8199 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8201 stat: fix compilation on AIX
8202 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8203 only see struct stat64.
8205 2009-10-30 Eric Blake <ebb9@byu.net>
8207 exclude: make more robust
8208 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8209 rather than masking a coding bug.
8210 Suggested by Bruno Haible.
8212 2009-10-30 Jim Meyering <meyering@redhat.com>
8214 perl scripts: remove #!/usr/bin/perl in favor of more portable...
8215 Rather than putting #!/usr/bin/perl on the first line,
8216 start with a variant of what's recommended by "man perlrun" that
8217 invokes the first "perl" program from your shell's search path.
8218 * build-aux/gitlog-to-changelog: Replace #!... as above.
8219 Add a "Local Variables" perl mode setting.
8220 Prompted by a patch from Ludovic Courtès.
8221 Improved by Eric Blake.
8222 * build-aux/useless-if-before-free: Likewise.
8223 * build-aux/announce-gen: Likewise.
8224 * build-aux/update-copyright: Likewise.
8226 2009-10-29 Eric Blake <ebb9@byu.net>
8228 filenamecat-lgpl: adjust clients
8229 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8231 * modules/renameat (Depends-on): Likewise.
8233 filenamecat: split into filenamecat-lgpl
8234 * modules/filenamecat-lgpl: New module.
8235 * modules/filenamecat (Files): Move library-safe files into
8237 (Depends-on): Add filenamecat-lgpl.
8238 (configure.ac): Declare witness.
8239 * lib/filenamecat.h (file_name_concat): Only declare when using
8241 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8243 * lib/filenamecat-lgpl.c: ...into new file.
8244 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8245 (gl_FILE_NAME_CONCAT): Use it.
8246 * MODULES.html.sh (File system functions): Mention new module.
8248 argp: avoid memory leak
8249 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8250 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8251 base_name, since the latter malloc()s and can call exit().
8252 Leak introduced 2006-07-03.
8254 dirname-lgpl: adjust clients that don't need full dirname
8255 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8256 * modules/filenamecat (Depends-on): Likewise.
8257 * modules/linkat (Depends-on): Likewise.
8258 * modules/mkancesdirs (Depends-on): Likewise.
8259 * modules/mkdir (Depends-on): Likewise.
8260 * modules/openat (Depends-on): Likewise.
8261 * modules/savewd (Depends-on): Likewise.
8262 * modules/rename (Depends-on): Likewise.
8263 (License): Relax license.
8264 * modules/mkdir-tests (Depends-on): Drop progname.
8265 (Makefile.am): Delete unneeded LDADD.
8266 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8268 dirname: split into dirname-lgpl
8269 * modules/dirname-lgpl: New module.
8270 * modules/dirname (Files): Move library-safe files into
8272 (Depends-on): Add dirname-lgpl.
8273 (configure.ac): Declare witness.
8274 * modules/double-slash-root (License): Relax license.
8275 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8277 * lib/dirname.c (dir_len, mdir_name): Move...
8278 * lib/dirname-lgpl.c: ...into new file.
8279 * lib/basename.c (last_component, base_len): Move...
8280 * lib/basename-lgpl.c: ...into new file.
8281 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8282 (gl_DIRNAME): Use it.
8283 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8285 * modules/dirname-tests (Depends-on): Add progname.
8286 * tests/test-dirname.c (program_name): Delete.
8288 mkdir: make safe for libraries
8289 * modules/mkdir (Depends-on): Drop xalloc.
8290 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8293 tests: avoid some compiler warnings
8294 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8296 * tests/test-memchr.c (main): Avoid type mismatch.
8297 * tests/test-arpa_inet.c (main): Avoid unused parameters.
8298 * tests/test-base64.c (main): Likewise.
8299 * tests/test-getdelim.c (main): Likewise.
8300 * tests/test-gethostname.c (main): Likewise.
8301 * tests/test-getline.c (main): Likewise.
8302 * tests/test-netinet_in.c (main): Likewise.
8303 * tests/test-select.c (open_server_socket, main): Likewise.
8304 * tests/test-select-stdin.c (main): Likewise.
8305 * tests/test-sockets.c (main): Likewise.
8306 * tests/test-strsignal.c (main): Likewise.
8307 * tests/test-sys_select.c (main): Likewise.
8308 * tests/test-sys_socket.c (main): Likewise.
8309 * tests/test-u64.c (main): Likewise.
8310 * tests/test-xfprintf-posix.c (main): Likewise.
8311 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8313 sockets: avoid compiler warning
8314 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8316 maint: detect usage(1) and other suspicious exits
8317 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8319 2009-10-29 Jim Meyering <meyering@redhat.com>
8321 timespec: long-to-int truncation could make timespec_cmp malfunction
8322 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8323 a multiple of 2^32 nanoseconds as no difference.
8325 2009-10-28 Jim Meyering <meyering@redhat.com>
8327 fprintftime: wrap macro code argument in "do {...} while(0)"
8328 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8329 cpy macro must be a statement that can be followed by a semicolon.
8330 Now that the else clause contains a comment and is hence longer
8331 than one line, I require curly braces. That in turn requires
8332 that we wrap this code block in the standard do...while(0).
8334 fprintftime: remove stray semicolon from previous change
8335 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8337 fprintftime: avoid a warning about ignored fwrite return value
8338 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8339 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8341 * modules/fprintftime (Depends-on): Add ignore-value.
8343 exclude: avoid an unwarranted warning
8344 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8346 2009-10-27 Eric Blake <ebb9@byu.net>
8348 fseek: avoid compilation failure when fflush is replaced
8349 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8350 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8352 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8353 module is not in use; since REPLACE_FSEEK worked otherwise.
8354 (GNULIB_FTELLO): Likewise for ftell.
8355 Reported by Ian Beckwith and others.
8357 2009-10-27 Bruno Haible <bruno@clisp.org>
8359 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8360 Reported by Jim Meyering.
8362 2009-10-27 Jim Meyering <jim@meyering.net>
8363 Bruno Haible <bruno@clisp.org>
8365 Avoid warning despite dropping the return value of fwrite.
8366 * lib/unicodeio.c: Include ignore-value.h.
8367 (fwrite_success_callback): Explicitly ignore fwrite's return value.
8368 * modules/unicodeio (Depends-on): Add ignore-value.
8370 2009-10-26 Eric Blake <ebb9@byu.net>
8372 areadlinkat: fix fallback path
8373 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8376 2009-10-22 Pádraig Brady <P@draigBrady.com>
8378 Use a better IO block size for modern systems
8379 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8380 * lib/md2.c: Likewise.
8381 * lib/md4.c: Likewise.
8382 * lib/md5.c: Likewise.
8383 * lib/sha1.c: Likewise.
8384 * lib/sha256.c: Likewise.
8385 * lib/sha512.c: Likewise.
8387 2009-10-22 Eric Blake <ebb9@byu.net>
8389 tests: avoid several compiler warnings
8390 * tests/test-getcwd.c (main): Avoid buffer underflow.
8391 * tests/test-getdate.c (main): String literals are not safe with
8392 putenv, so use setenv. Declare unused argument.
8393 * modules/getdate-tests (Depends-on): Add setenv.
8394 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
8395 problems with string literals in char *.
8396 * tests/test-hash.c (main): Avoid shadowing declaration.
8397 (insert_new): Treat string literals as char const *.
8398 * tests/test-getopt.h (test_getopt): Likewise.
8399 (getopt_loop): Alter types to minimize casting elsewhere.
8400 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8401 (test_getopt_long_posix): Likewise.
8402 (do_getopt_long): Add wrapper to minimize casting.
8403 * tests/test-atexit.c (clear_temp_file): Use void.
8404 * tests/test-areadlink-with-size.c (main): Declare unused
8406 * tests/test-areadlink.c (main): Likewise.
8407 * tests/test-areadlinkat-with-size.c (main): Likewise.
8408 * tests/test-areadlinkat.c (main): Likewise.
8409 * tests/test-canonicalize-lgpl.c (main): Likewise.
8410 * tests/test-canonicalize.c (main): Likewise.
8411 * tests/test-dirent-safer.c (main): Likewise.
8412 * tests/test-dirname.c (main): Likewise.
8413 * tests/test-dup2.c (main): Likewise.
8414 * tests/test-fchdir.c (main): Likewise.
8415 * tests/test-fcntl-h.c (main): Likewise.
8416 * tests/test-fcntl-safer.c (main): Likewise.
8417 * tests/test-fdopendir.c (main): Likewise.
8418 * tests/test-fdutimensat.c (main): Likewise.
8419 * tests/test-fflush.c (main): Likewise.
8420 * tests/test-filenamecat.c (main): Likewise.
8421 * tests/test-filevercmp.c (main): Likewise.
8422 * tests/test-fopen-safer.c (main): Likewise.
8423 * tests/test-fopen.c (main): Likewise.
8424 * tests/test-fpending.c (main): Likewise.
8425 * tests/test-fpurge.c (main): Likewise.
8426 * tests/test-freading.c (main): Likewise.
8427 * tests/test-fstatat.c (main): Likewise.
8428 * tests/test-fsync.c (main): Likewise.
8429 * tests/test-futimens.c (main): Likewise.
8430 * tests/test-getndelim2.c (main): Likewise.
8431 * tests/test-gettimeofday.c (main): Likewise.
8432 * tests/test-getopt.c (main): Likewise.
8433 * tests/test-i-ring.c (main): Likewise.
8434 * tests/test-inttypes.c (main): Likewise.
8435 * tests/test-link.c (main): Likewise.
8436 * tests/test-lstat.c (main): Likewise.
8437 * tests/test-math.c (main): Likewise.
8438 * tests/test-md5.c (main): Likewise.
8439 * tests/test-memchr2.c (main): Likewise.
8440 * tests/test-memrchr.c (main): Likewise.
8441 * tests/test-mkdir.c (main): Likewise.
8442 * tests/test-mkdirat.c (main): Likewise.
8443 * tests/test-mkfifoat.c (main): Likewise.
8444 * tests/test-open.c (main): Likewise.
8445 * tests/test-openat-safer.c (main): Likewise.
8446 * tests/test-openat.c (main): Likewise.
8447 * tests/test-quotearg.c (main): Likewise.
8448 * tests/test-rawmemchr.c (main): Likewise.
8449 * tests/test-readlink.c (main): Likewise.
8450 * tests/test-remove.c (main): Likewise.
8451 * tests/test-rename.c (main): Likewise.
8452 * tests/test-renameat.c (main): Likewise.
8453 * tests/test-rmdir.c (main): Likewise.
8454 * tests/test-sha1.c (main): Likewise.
8455 * tests/test-signal.c (main): Likewise.
8456 * tests/test-sigaction.c (main): Likewise.
8457 * tests/test-stat.c (main): Likewise.
8458 * tests/test-stat-time.c (main): Likewise.
8459 * tests/test-stddef.c (main): Likewise.
8460 * tests/test-stdint.c (main): Likewise.
8461 * tests/test-stdio.c (main): Likewise.
8462 * tests/test-stdlib.c (main): Likewise.
8463 * tests/test-strchrnul.c (main): Likewise.
8464 * tests/test-strerror.c (main): Likewise.
8465 * tests/test-string.c (main): Likewise.
8466 * tests/test-strtod.c (main): Likewise.
8467 * tests/test-strverscmp.c (main): Likewise.
8468 * tests/test-symlink.c (main): Likewise.
8469 * tests/test-symlinkat.c (main): Likewise.
8470 * tests/test-sys_stat.c (main): Likewise.
8471 * tests/test-sys_time.c (main): Likewise.
8472 * tests/test-time.c (main): Likewise.
8473 * tests/test-unistd.c (main): Likewise.
8474 * tests/test-unlink.c (main): Likewise.
8475 * tests/test-unlinkat.c (main): Likewise.
8476 * tests/test-utimens.c (main): Likewise.
8477 * tests/test-utimensat.c (main): Likewise.
8478 * tests/test-version-etc.c (main): Likewise.
8479 * tests/test-wchar.c (main): Likewise.
8480 * tests/test-wctype.c (main): Likewise.
8481 * tests/test-xprintf-posix.c (main): Likewise.
8482 * tests/test-posixtm.c (main): Likewise.
8483 (STREQ): Delete unused macro.
8484 * tests/test-linkat.c (main): Declare unused arguments. Avoid
8486 * tests/test-memchr.c (main): Likewise.
8488 2009-10-21 Eric Blake <ebb9@byu.net>
8490 areadlinkat: avoid failure on older glibc
8491 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8492 rather than mis-comparing 0 against FUNC_RESULT of char*.
8494 2009-10-21 Bruno Haible <bruno@clisp.org>
8496 * modules/stpncpy (License): Relicense under LGPLv2+.
8497 Reported by David Lutterkort <lutter@redhat.com>.
8499 2009-10-20 Eric Blake <ebb9@byu.net>
8501 utimensat: work around Solaris 9 bug
8502 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8503 has trailing slash bugs.
8504 * tests/test-lutimens.h (test_lutimens): Enhance test.
8505 * tests/test-utimens.h (test_utimens): Likewise.
8506 * doc/posix-functions/utime.texi (utime): Enhance documentation.
8507 * doc/posix-functions/utimes.texi (utimes): Likewise.
8508 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8509 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8510 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8511 * doc/posix-functions/futimens.texi (futimens): Likewise.
8513 fdutimensat: new module
8514 * modules/fdutimensat: New file.
8515 * lib/fdutimensat.c (fdutimensat): Likewise.
8516 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8517 * MODULES.html.sh (File system functions): Mention module.
8518 * modules/fdutimensat-tests: New test.
8519 * tests/test-fdutimensat.c: Likewise.
8521 doc: regenerate INSTALL
8522 * doc/INSTALL: Reflect recent autoconf update.
8523 * doc/INSTALL.ISO: Likewise.
8524 * doc/INSTALL.UTF-8: Likewise.
8526 2009-10-20 Pádraig Brady <P@draigBrady.com>
8528 acl: warn if ACL support is not detected
8529 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8531 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
8533 * lib/nproc.h: Add extern "C" block for C++.
8535 2009-10-18 Reuben Thomas <rrt@sc3d.org>
8536 Bruno Haible <bruno@clisp.org>
8538 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8539 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8540 * doc/posix-functions/isalpha.texi: Likewise.
8541 * doc/posix-functions/isblank.texi: Likewise.
8542 * doc/posix-functions/iscntrl.texi: Likewise.
8543 * doc/posix-functions/isdigit.texi: Likewise.
8544 * doc/posix-functions/isgraph.texi: Likewise.
8545 * doc/posix-functions/islower.texi: Likewise.
8546 * doc/posix-functions/isprint.texi: Likewise.
8547 * doc/posix-functions/ispunct.texi: Likewise.
8548 * doc/posix-functions/isspace.texi: Likewise.
8549 * doc/posix-functions/isupper.texi: Likewise.
8550 * doc/posix-functions/isxdigit.texi: Likewise.
8552 2009-10-18 Bruno Haible <bruno@clisp.org>
8554 Tests for module 'isblank'.
8555 * modules/isblank-tests: New file.
8556 * tests/test-isblank.c: New file.
8558 New module 'isblank'.
8559 * lib/isblank.c: New file.
8560 * m4/isblank.m4: New file.
8561 * modules/isblank: New file.
8562 * doc/posix-functions/isblank.texi: Mention the new module.
8564 2009-10-18 Bruno Haible <bruno@clisp.org>
8567 * lib/ctype.in.h: New file.
8568 * m4/ctype.m4: New file.
8569 * modules/ctype: New file.
8570 * doc/posix-headers/ctype.texi: Mention the new module.
8572 2009-10-18 Jim Meyering <meyering@redhat.com>
8574 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8575 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8576 right after its initialization, rather than farther down.
8577 Keeping these in close proximity makes it easier to ensure
8578 that each such variable is initialized. E.g.,
8581 AC_SUBST([LIB_CLOCK_GETTIME])
8583 This change also increments these serial numbers.
8584 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8585 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8586 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8588 2009-10-18 Bruno Haible <bruno@clisp.org>
8590 Don't let environment variables perturb build.
8591 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8592 (gl_PREREQ_GETHRXTIME): ... not here.
8594 2009-10-18 Bruno Haible <bruno@clisp.org>
8596 Avoid symlink attack in localcharset module.
8597 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8598 (O_NOFOLLOW): Define fallback.
8599 (get_charset_aliases): Don't open the file if it is a symbolic link.
8600 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8602 (gl_FCNTL_H): Require it.
8603 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8604 * modules/localcharset (Files): Add m4/fcntl_h.m4.
8605 Reported by Fergal Glynn <fglynn@veracode.com>.
8607 2009-10-18 Bruno Haible <bruno@clisp.org>
8609 Implement nproc for mingw.
8610 * lib/nproc.c: Include <windows.h>
8611 (num_processors): On native Windows platforms, try GetSystemInfo.
8613 2009-10-18 Bruno Haible <bruno@clisp.org>
8615 Implement nproc for IRIX.
8616 * lib/nproc.c: Include <sys/sysmp.h>.
8617 (num_processors): On IRIX systems, try sysmp.
8618 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8620 2009-10-18 Bruno Haible <bruno@clisp.org>
8622 Implement nproc for HP-UX.
8623 * lib/nproc.c: Include <sys/pstat.h>
8624 (num_processors): On HP-UX systems, try pstat_getdynamic.
8625 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8628 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
8629 Bruno Haible <bruno@clisp.org>
8631 Implement nproc for NetBSD, OpenBSD.
8632 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8633 (ARRAY_SIZE): New macro.
8634 (num_processors): On BSD systems, try sysctl of HW_NCPU.
8635 * m4/nproc.m4: New file.
8636 * modules/nproc (Files): Add m4/nproc.m4.
8637 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8638 (Makefile.am): Instead, augment lib_SOURCES.
8640 2009-10-18 Bruno Haible <bruno@clisp.org>
8642 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8643 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8646 2009-10-16 Eric Blake <ebb9@byu.net>
8648 utimensat: new module
8649 * modules/utimensat: New file.
8650 * lib/utimensat.c (utimensat): Likewise.
8651 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8652 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8653 so we can work around Linux bugs.
8654 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8655 * modules/sys_stat (Makefile.am): Substitute them.
8656 * lib/sys_stat.in.h (utimensat): Declare it.
8657 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8658 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8659 * modules/utimensat-tests: New test.
8660 * tests/test-utimensat.c: Likewise.
8662 utimens: let lutimens work on non-symlinks
8663 * lib/utimens.c (lutimens): Fall back to utimens rather than
8664 failing with ENOSYS, when file is not a symlink.
8665 (utimens): Reduce redirection.
8666 * tests/test-lutimens.h (test_lutimens): Update test to cover
8668 * tests/test-utimens.h (test_utimens): Update test to cover
8670 * tests/test-utimens.c (main): Update caller.
8672 utimens: cache whether utimensat syscall works
8673 * lib/utimens.c (utimensat_works_really): New cache variable.
8674 (fdutimens, lutimens): Use it to avoid failing syscall.
8676 test-stat-time, test-utimens: improve portability
8677 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8678 ext4 on alpha, and for cygwin.
8679 * tests/test-utimens-common.h: New file.
8680 (nap): Factor delays into single function.
8681 * tests/test-lutimens.h (test_lutimens): Use new header.
8682 * tests/test-futimens.h (test_futimens): Likewise.
8683 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
8684 timestamps to occur from same machine, as was done previously for
8686 * modules/utimens-tests (Files): Ship new file.
8687 * modules/futimens-tests (Files): Likewise.
8688 Reported in part by Jim Meyering.
8690 sys_stat: sort replacement declarations
8691 * lib/sys_stat.in.h: Sort declarations.
8692 * lib/futimens.c (futimens): Fix typo.
8694 2009-10-15 Jim Meyering <meyering@redhat.com>
8696 don't let environment settings perturb build
8697 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8698 could cause a configure-time and/or build-time malfunction.
8699 Typically, a configure-time function-in-library test is performed
8704 prefix_saved_LIBS=$LIBS
8705 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8706 [test "$ac_cv_search_FUNC" = "none required" ||
8707 LIB_VAR=$ac_cv_search_FUNC])
8708 LIBS=$prefix_saved_LIBS
8710 However, in each of the files affected by this change, the LIB_VAR=
8711 initialization was omitted. Thus, when set in the environment, its
8712 value would propagate into generated Makefiles when FUNC is not found
8714 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8715 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8716 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8718 2009-10-14 Eric Blake <ebb9@byu.net>
8720 fchdir: avoid infinite recursion in mingw
8721 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8724 test-stat-time: port to mingw
8725 * tests/test-stat-time.c (force_unlink): Return a value.
8726 (test_ctime) [W32]: Fix compilation error.
8727 (nap): Don't call usleep with too large an argument. Use
8729 * doc/pastposix-functions/usleep.texi (usleep): Document the
8732 2009-10-13 Jim Meyering <meyering@redhat.com>
8734 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8735 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8736 * modules/pipe-filter-ii: Likewise.
8737 * modules/sys_socket-tests: Likewise.
8738 * modules/tsearch-tests: Likewise.
8739 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8740 (check): Depend on it.
8742 2009-10-12 Eric Blake <ebb9@byu.net>
8744 utimens-tests: port to NFS file systems
8745 * tests/test-utimens.h (test_utimens): Refactor utimecmp
8746 comparisons to avoid spurious failures from timestamp drift
8747 between NFS machines.
8749 2009-10-12 Eric Blake <ebb9@byu.net>
8751 stat-time-tests: minor cleanups
8752 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8753 * tests/test-stat-time.c (nap): Separate assignment from call.
8754 Suggested by Paolo Bonzini and Bruno Haible.
8756 sys_stat: guarantee struct timespec
8757 * lib/sys_stat.in.h (includes): Always include <time.h>
8758 * modules/sys_stat (Depends-on): Add time.
8759 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8760 mode_t permission values.
8761 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8762 get at subsecond timestamps.
8764 2009-10-10 Eric Blake <ebb9@byu.net>
8766 futimens: new module
8767 * modules/futimens: New file.
8768 * lib/futimens.c (futimens): Likewise.
8769 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8770 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8771 we can work around Linux bugs.
8772 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8773 * modules/sys_stat (Makefile.am): Substitute them.
8774 * lib/sys_stat.in.h (futimens): Declare it.
8775 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8776 * doc/posix-functions/futimens.texi (futimens): Likewise.
8777 * modules/futimens-tests: New test.
8778 * tests/test-futimens.c: Likewise.
8780 utimens: introduce fdutimens
8781 * lib/utimens.h (fdutimens): New prototype.
8782 * lib/utimens.c (gl_futimens): Move guts...
8783 (fdutimens): ...to new interface.
8784 * tests/test-utimens.c (do_fdutimens): Use it.
8786 utimens: add UTIME_NOW and UTIME_OMIT support
8787 * lib/utimens.c (validate_timespec, update_timespec): New helper
8789 (gl_futimens, lutimens): Use them.
8790 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8792 (Link): Mention resulting library dependency.
8793 * modules/utimecmp (Link): Likewise.
8794 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8795 (Makefile.am): Pick up library dependency.
8796 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8798 * tests/test-sys_stat.c: Test the definitions.
8799 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8800 * NEWS: Document library dependency.
8802 utimecmp: support symlink timestamps
8803 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
8804 hashing when possible. Use pathconf when available.
8805 (SYSCALL_RESOLUTION): Recognize tighter resolution.
8806 * modules/utimecmp (Depends-on): Add lstat.
8808 utimens: add lutimens interface
8809 * lib/utimens.c (lutimens): New function.
8810 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8811 * lib/utimens.h (lutimens): Declare new interface.
8812 * tests/test-utimens.c (main): Enhance test.
8813 * tests/test-lutimens.h (test_lutimens): New file.
8814 * modules/utimens-tests (Files): Distribute it.
8815 (Depends-on): Add symlink.
8816 (configure.ac): Check for usleep.
8818 utimens: validate futimens usage
8819 * lib/utimens.c (gl_futimens): Require valid fd up front, using
8820 fewer syscalls on failure later on. Avoid compiler warning on
8822 * modules/utimens (Depends-on): Add dup2.
8825 * modules/utimens-tests: New test.
8826 * tests/test-utimens.h: New file.
8827 * tests/test-futimens.h: Likewise.
8828 * tests/test-utimens.c: Likewise.
8830 doc: mention timestamp portability issues
8831 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8833 * doc/posix-functions/utime.texi (utime): Likewise.
8834 * doc/posix-functions/utimes.texi (utimes): Likewise.
8835 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8837 * doc/posix-functions/futimens.texi (futimens): Mention utimens
8839 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8840 Mention weakness with symlink timestamps.
8841 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8842 to utimensat/futimens instead.
8843 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8845 test-dup2: enhance test
8846 * tests/test-dup2.c (main): Also check AT_FDCWD.
8848 test-stat-time: avoid more spurious failures
8849 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8850 xfs; and avoid race if the two timestamps cross quantization edge.
8852 relocatable: prefer 'file system' over 'filesystem'
8853 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8854 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8855 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8856 * doc/relocatable.texi (Enabling Relocatability): Likewise.
8857 * lib/relocatable.c (compute_curr_prefix): Likewise.
8859 2009-10-10 Jim Meyering <meyering@redhat.com>
8861 stat-time-tests: check for the usleep function
8862 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8864 2009-10-10 Bruno Haible <bruno@clisp.org>
8866 * modules/xnanosleep: Put the Link section after the Include section.
8868 2009-10-09 Eric Blake <ebb9@byu.net>
8870 dup2: work around FreeBSD 6.1 bug
8871 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8872 * doc/posix-functions/dup2.texi (dup2): Document it.
8873 Reported by Nelson H. F. Beebe and Jim Meyering.
8875 test-stat-time: port to buggy NFS clients
8876 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8877 (test_ctime): Also skip test if mtime and ctime are skewed.
8879 maint: prefer 'file system' over 'filesystem'
8880 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8881 * doc/posix-functions/lstat.texi (lstat): Likewise.
8882 * lib/file-has-acl.c (file_has_acl): Likewise.
8883 * lib/fwriteerror.c [TEST]: Likewise.
8884 * tests/test-areadlink.h (test_areadlink): Likewise.
8885 * tests/test-areadlinkat-with-size.c (main): Likewise.
8886 * tests/test-areadlinkat.c (main): Likewise.
8887 * tests/test-canonicalize-lgpl.c (main): Likewise.
8888 * tests/test-canonicalize.c (main): Likewise.
8889 * tests/test-fstatat.c (main): Likewise.
8890 * tests/test-linkat.c (main): Likewise.
8891 * tests/test-lstat.h (test_lstat_func): Likewise.
8892 * tests/test-mkdir.h (test_mkdir): Likewise.
8893 * tests/test-readlink.h (test_readlink): Likewise.
8894 * tests/test-remove.c (main): Likewise.
8895 * tests/test-rename.h (test_rename): Likewise.
8896 * tests/test-renameat.c (main): Likewise.
8897 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8898 * tests/test-symlink.h (test_symlink): Likewise.
8899 * tests/test-symlinkat.c (main): Likewise.
8900 * tests/test-unlink.h (test_unlink_func): Likewise.
8901 * tests/test-unlinkat.c (main): Likewise.
8903 maint: make realtime library usage explicit
8904 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8905 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8906 * modules/settime (Link): Likewise.
8907 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8909 test-stat-time: speed up execution
8910 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8912 (nap): New helper function.
8913 (prepare_test): Use it to reduce sleep time.
8914 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8916 * modules/stat-time-tests (configure.ac): Check for usleep.
8918 2009-10-09 Jim Meyering <meyering@redhat.com>
8920 selinux-h: always use getfilecon wrappers
8921 * lib/getfilecon.c: New file.
8922 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8923 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8924 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8925 (fgetfilecon): Provide a stub.
8926 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8927 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8928 file unconditionally.
8929 When <selinux/selinux.h> is found, arrange to use wrappers.
8930 * modules/selinux-h (Files): Add getfilecon.c.
8931 (Makefile.am): Substitute include-next-related bits
8932 into the now-always-generated selinux/selinux.h file.
8933 * doc/glibc-functions/lgetfilecon.texi: New file.
8934 * doc/glibc-functions/fgetfilecon.texi: New file.
8935 * doc/glibc-functions/getfilecon.texi: New file.
8936 * doc/glibc-functions/getfilecon-desc.texi: New file.
8937 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8938 which to pull in the new files.
8939 * MODULES.html.sh (Misc): Add selinux-h.
8941 2009-10-08 Jim Meyering <meyering@redhat.com>
8943 unistd: fix comment typo
8944 * lib/unistd.in.h (euidaccess): Fix a comment typo.
8946 2009-10-08 Eric Blake <ebb9@byu.net>
8948 areadlink: use SIZE_MAX consistently
8949 * modules/areadlink (Depends-on): Add stdint.
8950 * modules/areadlink-with-size (Depends-on): Likewise.
8951 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8952 gives NULL; drop sys/types, since unistd gives size_t; and add
8953 stdint for SIZE_MAX.
8954 (SIZE_MAX): Rely on headers.
8955 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8957 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8958 (SIZE_MAX): Likewise.
8959 (INITIAL_BUF_SIZE): Turn into enum.
8960 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8962 2009-10-08 Jim Meyering <meyering@redhat.com>
8964 areadlinkat: avoid compilation failure
8965 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8966 Fix typo in comment.
8968 2009-10-07 Eric Blake <ebb9@byu.net>
8970 areadlinkat-with-size: new module
8971 * modules/areadlinkat-with-size: New module.
8972 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8973 * lib/areadlink.h (areadlinkat): Declare it.
8974 * MODULES.html.sh (File system functions): Mention it.
8975 * modules/areadlinkat-with-size-tests: New test.
8976 * tests/test-areadlinkat-with-size.c: New file.
8978 xreadlinkat: new module
8979 * modules/xreadlinkat: New module.
8980 * lib/xreadlinkat.c (xreadlinkat): New file.
8981 * lib/xreadlink.h (xreadlinkat): Declare it.
8982 * MODULES.html.sh (File system functions): Mention it.
8984 areadlinkat: new module
8985 * lib/at-func.c (FUNC_FAIL): New define.
8986 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8987 * modules/areadlinkat: New module.
8988 * lib/linkat.c (areadlinkat): Move...
8989 * lib/areadlinkat.c (areadlinkat): ...to new file.
8990 * lib/areadlink.h (areadlinkat): Declare it.
8991 * modules/linkat (Depends-on): Add areadlinkat.
8992 * MODULES.html.sh (File system functions): Mention it.
8993 * modules/areadlinkat-tests: New test.
8994 * tests/test-areadlinkat.c: New file.
8996 areadlink, areadlink-with-size: add tests
8997 * modules/areadlink-tests: New test.
8998 * modules/areadlink-with-size-tests: Likewise.
8999 * tests/test-areadlink.h: New file.
9000 * tests/test-areadlink.c: Likewise.
9001 * tests/test-areadlink-with-size.c: Likewise.
9003 maint: minor cleanups
9004 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9005 _UNUSED_PARAMETER_ instead.
9006 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9007 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9008 * modules/linkat-tests (Files): Distribute test-link.h.
9010 openat, utimens: whitespace cleanup
9011 * lib/openat.c: Prefer space throughout, rather than mix of 8
9013 * lib/at-func.c: Likewise.
9014 * lib/utimens.c: Likewise.
9016 openat: avoid using wrong fd
9017 * lib/openat.c (openat_permissive): Reject user's fd if saving the
9018 working directory chooses same fd.
9019 * lib/at-func.c (AT_FUNC_NAME): Likewise.
9021 mkdir, mkdirat: fix cygwin 1.5.x bug
9022 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9023 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9024 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9026 (gl_PREREQ_MKDIR): Delete unused macro.
9027 * modules/mkdir (Files): Track file rename.
9028 (configure.ac): Update macro name.
9029 * modules/openat (Depends-on): Add mkdir.
9030 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9032 mkdir, mkdirat: add tests
9033 * modules/mkdir-tests: New test.
9034 * tests/test-mkdir.h: New file.
9035 * tests/test-mkdir.c: Likewise.
9036 * tests/test-mkdirat.c: Likewise.
9037 * modules/openat-tests (Files): Add new files.
9038 (Makefile.am): Run new test.
9040 2009-10-06 Eric Blake <ebb9@byu.net>
9042 doc: tweak *at function documentation
9043 * doc/posix-functions/faccessat.texi (faccessat): Mention
9044 known issue with replacement.
9045 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9046 * doc/posix-functions/linkat.texi (linkat): Likewise.
9047 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9048 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9049 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9050 * doc/posix-functions/renameat.texi (renameat): Likewise.
9051 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9053 openat: fix GNU/Hurd bug in unlinkat
9054 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9056 * doc/posix-functions/unlink.texi (unlink): Document this.
9057 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9059 fdopendir: fix GNU/Hurd bug
9060 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9061 allowing non-directory fds.
9062 * lib/fdopendir.c (rpl_fdopendir): Work around it.
9063 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9064 * modules/dirent (Makefile.am): Substitute it.
9065 * lib/dirent.in.h (fdopendir): Declare replacement.
9066 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9067 * tests/test-fdopendir.c (main): Test something other than
9068 /dev/null, since on Hurd that behaves like a directory.
9070 test-symlink: port to GNU/Hurd
9071 * tests/test-symlink.h (test_symlink): Relax expected errno.
9073 doc: tweak more cygwin information
9074 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9075 now compatible with glibc.
9076 * doc/posix-functions/getopt.texi (getopt): Likewise.
9078 getopt-gnu: add another test
9079 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9080 guarantee behavior relied on by m4.
9081 * tests/test-getopt.c (main): Use it.
9082 * modules/getopt-posix-tests (Depends-on): Add setenv.
9083 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9085 getopt: fix compilation on darwin
9086 * lib/getopt.in.h (includes): Leave breadcrumbs during system
9088 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9089 Reported by Ludovic Courtès.
9091 2009-10-06 Bruno Haible <bruno@clisp.org>
9093 * modules/size_max (Description): Discourage its use.
9094 Reported by Simon Josefsson.
9096 2009-10-06 Jim Meyering <meyering@redhat.com>
9098 linkat: avoid compilation failure
9099 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9101 2009-10-05 Eric Blake <ebb9@byu.net>
9103 linkat: support Linux 2.6.17
9104 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9105 linkat on Linux, but allow cache variable override.
9106 * lib/linkat.c (rpl_linkat): Define override.
9107 * modules/linkat (Depends-on): Add symlinkat.
9108 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9109 * modules/unistd (Makefile.am): Substitute it.
9110 * lib/unistd.in.h (linkat): Declare replacement.
9111 Reported by Pádraig Brady.
9113 quotearg: port test to systems with C.UTF-8 locale
9114 * tests/test-quotearg.c (struct result_strings): Add another
9115 member, differentiating between C.ASCII and C.UTF-8 handling.
9116 (compare_strings): Add parameter.
9117 (main): Adjust all callers.
9119 getopt: avoid clash with FreeBSD _getopt_internal
9120 * lib/getopt.in.h (_getopt_internal): Override the name.
9121 * lib/getopt_int.h (includes): Pick up any overrides.
9122 Reported by Reuben Thomas.
9124 hash: allow C89 compilation
9125 * lib/hash.c (check_tuning): Move declaration before statement.
9126 Reported by Reuben Thomas.
9128 2009-10-05 Karl Berry <karl@gnu.org>
9130 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9132 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
9133 Bruno Haible <bruno@clisp.org>
9135 * lib/uname.c (uname): Use a table-driven algorithm to compute
9136 Windows NT versions.
9138 2009-10-04 Bruno Haible <bruno@clisp.org>
9140 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9141 program_invocation_short_name.
9142 * modules/progname (configure.ac): Test for presence of
9143 program_invocation_short_name.
9144 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9146 2009-10-04 Bruno Haible <bruno@clisp.org>
9148 * lib/progname.c (set_program_name): Fix comment.
9149 Reported by Jim Meyering.
9151 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
9152 Bruno Haible <bruno@clisp.org>
9154 * lib/uname.c: Include <string.h>.
9155 (uname): Do only one call to GetVersionEx in the common case.
9157 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
9158 Bruno Haible <bruno@clisp.org>
9160 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9161 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9162 (uname): Add support for Windows CE and various non-x86 CPU types.
9164 2009-10-03 Bruno Haible <bruno@clisp.org>
9166 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9167 invocation to tests/configure.ac.
9168 Reported by Ian Beckwith <ianb@erislabs.net>.
9170 2009-10-02 Eric Blake <ebb9@byu.net>
9172 fchdir: avoid compiler warning
9173 * lib/fchdir.c (canonicalize_file_name)
9174 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9176 test-open: support mingw errno values
9177 * tests/test-open.h (test_open): Relax test.
9178 * tests/test-fopen.h (test_fopen): Likewise.
9179 * tests/test-openat-safer.c (main): Likewise.
9181 open: fix opening directory on mingw
9182 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9184 test-open: on GNU/Hurd, /dev/null is a directory
9185 * tests/test-fopen.h (main): Rename...
9186 (test_fopen): ...to this. Use a guaranteed non-directory when
9187 confirming open behavior on trailing slash.
9188 * tests/test-openat-safer.c (main): Likewise.
9189 * tests/test-open.h (main): Likewise....
9190 (test_open): ...to this.
9191 * tests/test-fopen.c (main): Adjust caller.
9192 * tests/test-fopen-safer.c (main): Likewise.
9193 * tests/test-open.c (main): Likewise.
9194 * tests/test-fcntl-safer.c (main): Likewise.
9195 Reported by Samuel Thibault.
9197 rename, fchdir: don't ignore chdir failure
9198 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9199 * lib/rename.c (rpl_rename) [W32]: Likewise.
9200 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9201 an empty destination directory if source cannot be renamed,
9202 although there is still possibility for failure.
9203 * doc/posix-functions/rename.texi (rename): Document the race.
9204 Reported by Jim Meyering.
9206 maint: cleanup whitespace in recent commits
9207 * lib/rename.c (rpl_rename): Remove tabs.
9208 * tests/test-link.h (test_link): Likewise.
9209 * lib/fchdir.c (get_name): Likewise.
9210 Reported by Jim Meyering.
9212 2009-10-02 Ben Pfaff <blp@gnu.org>
9214 relocatable-prog-wrapper: Add missing dependency on
9216 * modules/relocatable-prog-wrapper: Add dependency.
9217 Reported by Ian Beckwith <ianb@erislabs.net>.
9219 2009-10-02 Eric Blake <ebb9@byu.net>
9221 renameat: fix Solaris bugs
9222 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9224 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9225 * modules/stdio (Makefile.am): Substitute it.
9226 * lib/stdio.in.h (renameat): Declare replacement.
9227 * lib/renameat.c (rpl_renameat): Implement fix.
9229 renameat: new module
9230 * modules/renameat: New file.
9231 * lib/renameat.c (renameat): Likewise.
9232 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9233 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9234 * modules/stdio (Makefile.am): Substitute them.
9235 * lib/stdio.in.h (renameat): Declare it.
9236 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9237 * doc/posix-functions/renameat.texi (renameat): Likewise.
9238 * modules/renameat-tests: New test.
9239 * tests/test-renameat.c: Likewise.
9241 rename: fix mingw bugs
9242 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9243 directory overwrite bugs.
9245 rename: fix another cygwin 1.5 bug
9246 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9248 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9249 unnecessary cygwin workarounds. Also work around bug with moving
9250 full directory onto an empty one.
9251 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9253 rename-dest-slash: merge into rename module
9254 * modules/rename-dest-slash (Status): Mark obsolete.
9255 (Depends-on): Add rename.
9256 (Files): Let rename do it all.
9257 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9258 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9259 * m4/rename-dest-slash.m4: ...so this file can be deleted.
9260 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9261 * lib/rename.c (rpl_rename): Update comments.
9263 rename: fix cygwin 1.5.x bugs
9264 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9265 * lib/rename.c (rpl_rename): Work around them.
9266 * modules/rename (Depends-on): Add same-inode.
9268 rename: fix Solaris 10 bug
9269 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9270 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9273 rename: fix Solaris 9 bug
9274 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9275 on non-directory. Avoid calling exit.
9276 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9278 * modules/rename-tests (Depends-on): Drop lstat.
9279 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9280 (gl_PREREQ_RENAME): Delete unused macro.
9282 rename-dest-slash: fix NetBSD bug
9283 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9285 * modules/rename-dest-slash (Depends-on): Add same-inode.
9287 rename-tests: new test, exposes several platform bugs
9288 * modules/rename-tests: New file.
9289 * tests/test-rename.h: Likewise.
9290 * tests/test-rename.c: Likewise.
9291 * doc/posix-functions/rename.texi (rename): Improve documentation,
9292 including bugs that will eventually be fixed in gnulib.
9294 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
9296 * lib/uname.c: Include <stdlib.h>
9297 (uname): Assume version info is available.
9299 2009-10-02 Jim Meyering <meyering@redhat.com>
9301 gnu-web-doc-update: correct --help output
9302 * build-aux/gnu-web-doc-update: Make --help output relevant.
9304 gnu-web-doc-update: add standard options
9305 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9307 gnu-web-doc-update: New module.
9308 Use this script to automatically update the on-line web documentation
9309 for your GNU project at http://www.gnu.org/software/$pkg/manual/
9310 * modules/gnu-web-doc-update: New file, from coreutils.
9311 * build-aux/gnu-web-doc-update: New script.
9313 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
9315 link: LoadLibrary is not needed.
9316 * lib/link.c: Use GetModuleHandle.
9318 2009-10-01 Eric Blake <ebb9@byu.net>
9320 getopt: bump serial number
9321 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9324 tests: tighten link, rmdir, and remove tests
9325 * tests/test-link.h (includes): No need to use <config.h> here.
9326 Clean up if directory hard link was created, otherwise test for
9328 * tests/test-linkat.c (main): Simplify.
9329 * tests/test-remove.c (main): Enhance test for trailing '.'.
9330 * tests/test-rmdir.h (test_rmdir_func): Likewise.
9332 2009-10-01 Jim Meyering <meyering@redhat.com>
9334 maint.mk: requiring "make major" was annoying, for a "minor" release.
9335 What is intended is "stable", to contrast with alpha and beta,
9336 so require "make stable", not "make major".
9337 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9338 (get_tool_versions): Likewise.
9339 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9341 2009-09-30 Ben Pfaff <blp@gnu.org>
9343 Fix broken build of replacement for Windows tmpfile().
9344 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9345 flags argument added along with the 'mkostemp' module.
9347 2009-09-28 Bruno Haible <bruno@clisp.org>
9349 Avoid identifier clash with POSIX function 'remove' defined as a macro.
9350 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9352 (gl_list_remove): Update.
9353 * lib/gl_list.c (gl_list_remove): Update.
9354 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9356 (gl_oset_remove): Update.
9357 * lib/gl_list.c (gl_oset_remove): Update.
9358 Reported by Eric Blake.
9360 2009-09-28 Eric Blake <ebb9@byu.net>
9362 doc: mention yet more cygwin 1.7 status
9363 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9365 * doc/glibc-functions/execvpe.texi (execvpe): New file.
9366 * doc/gnulib.texi (Glibc unistd.h): Mention it.
9368 argp: fix test failure
9369 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9370 that are not upper-case. Pass correct range to tolower.
9372 2009-09-27 Jim Meyering <meyering@redhat.com>
9374 test-yesno: work around sparc-dash here-document infelicity
9375 Without this change, the literal \177 byte in a here document
9376 would make dash 0.5.5.1-3 access uninitialized memory.
9377 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9378 Instead, use a marker, "@", and filter through tr to create the desired
9379 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9381 2009-09-27 Bruno Haible <bruno@clisp.org>
9383 Disable untested support for new flavours of ACLs on AIX.
9384 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9386 * lib/set-mode-acl.c (qset_acl): Likewise.
9388 2008-12-07 Bruno Haible <bruno@clisp.org>
9390 Add support for new flavours of ACLs on AIX. (Untested.)
9391 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9392 (file_has_acl): Add support for newer AIX.
9393 * lib/set-mode-acl.c (qset_acl): Likewise.
9394 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9395 Rainer Tammer <tammer@tammer.net>.
9397 2009-09-26 Eric Blake <ebb9@byu.net>
9399 argp: fix compilation of getopt
9400 * lib/getopt.in.h (includes): Use different guard than glibc.
9401 Reported by Sergey Poznyakoff.
9403 doc: mention more cygwin 1.7 status
9404 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9406 * doc/posix-functions/execl.texi (execl): Likewise.
9407 * doc/posix-functions/execle.texi (execle): Likewise.
9408 * doc/posix-functions/execlp.texi (execlp): Likewise.
9409 * doc/posix-functions/execv.texi (execv): Likewise.
9410 * doc/posix-functions/execve.texi (execve): Likewise.
9411 * doc/posix-functions/execvp.texi (execvp): Likewise.
9412 * doc/glibc-functions/canonicalize_file_name.texi
9413 (canonicalize_file_name): Cygwin 1.7 now provides this.
9414 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9415 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9416 on AT_SYMLINK_NOFOLLOW.
9418 2009-09-24 Eric Blake <ebb9@byu.net>
9420 test-linkat: make test more robust
9421 * tests/test-linkat.c (main): Avoid collision with EEXIST.
9423 getopt: fix inclusion guards for cygwin
9424 * modules/getopt-posix (Depends-on): Add include-next.
9425 (Makefile.am): Substitute more items in replacement header.
9426 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9428 * lib/getopt.in.h (includes): Use split inclusion guard, and
9429 prefer <getopt.h> over include <unistd.h> when one is present.
9430 (option): Also override name of 'struct option'.
9432 same-inode: revert prior change; it is not yet ready
9433 * NEWS: Undo mention of this change.
9434 * lib/same-inode.h (same-inode.h): Undo tri-state change.
9435 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9436 * lib/cycle-check.c (cycle_check): Likewise.
9437 * lib/same.c (same_name): Likewise.
9438 * lib/at-func2.c (at_func2): Likewise.
9440 2009-09-23 Eric Blake <ebb9@byu.net>
9443 * modules/linkat: New file.
9444 * lib/at-func2.c (at_func2): Likewise.
9445 * lib/linkat.c (linkat): Likewise.
9446 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9447 * lib/openat-priv.h (at_func2): Add declaration.
9448 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9449 * modules/unistd (Makefile.am): Substitute them.
9450 * lib/unistd.in.h (linkat): Declare it.
9451 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9452 * doc/posix-functions/linkat.texi (linkat): Likewise.
9453 * doc/posix-functions/link.texi (link): Tweak wording.
9454 * tests/test-link.c (main): Move guts...
9455 * tests/test-link.h (test_link): ...into new file.
9456 * modules/linkat-tests: New test.
9457 * tests/test-linkat.c: Likewise.
9458 * modules/link-tests (Files): Ship new file.
9459 (Depends-on): Add stdbool.
9461 dirname: add library-safe mdir_name
9462 * lib/dirname.h (mdir_name): New prototype.
9463 * lib/dirname.c (dir_name): Move guts...
9464 (mdir_name): ...to new function that avoids xalloc_die.
9466 fchdir: another mingw fix
9467 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9468 * lib/fchdir.c (get_name): New helper method; skips canonicalize
9469 on mingw (where it has not yet been ported), and make it optional
9471 (_gl_register_fd): Use it.
9473 same-inode: make SAME_INODE tri-state, to port to mingw
9474 * NEWS: Mention this change.
9475 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9476 st_ino always being 0.
9477 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9478 * lib/cycle-check.c (cycle_check): Likewise.
9479 * lib/same.c (same_name): Likewise.
9481 lstat: avoid mingw compilation error
9482 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9483 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9485 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9487 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9488 the checks for lstat.
9489 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9491 link: fix test failure on Solaris 9
9492 * lib/link.c (rpl_link): Don't assume link will catch bogus
9493 trailing slash on source.
9495 test-symlinkat: enhance test
9496 * tests/test-readlink.c (main): Move guts...
9497 * tests/test-readlink.h (test_readlink): ...into new file.
9498 * tests/test-symlink.c (main): Move guts...
9499 * tests/test-symlink.h (test_symlink): ...into new file.
9500 * tests/test-symlinkat.c (main): Use new files for further
9502 (do_symlink, do_readlink): New helper functions.
9503 * modules/symlink-tests (Files): Ship new file.
9504 (Depends-on): Add stdbool.
9505 * modules/readlink-tests (Files): Ship new file.
9506 (Depends-on): Add stdbool.
9507 * modules/symlinkat-tests (Files): Use new files.
9509 2009-09-23 Eric Blake <ebb9@byu.net>
9511 readlink: document portability issue with symlink length
9512 * doc/posix-functions/lstat.texi (lstat): Mention that some file
9513 systems have bogus st_size on symlinks, and mention the
9514 areadlink-with-size module.
9515 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9516 * doc/posix-functions/readlink.texi (readlink): Mention the
9517 areadlink module, and ERANGE failure.
9518 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9519 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9521 readlink: fix Solaris 9 bug with trailing slash
9522 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9523 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9524 * doc/posix-functions/readlink.texi (readlink): Document this.
9525 * modules/readlink-tests: New test.
9526 * tests/test-readlink.c: Likewise.
9528 readlink: fix cygwin 1.5.x bug with return type
9529 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9530 * lib/unistd.in.h (readlink): Use ssize_t.
9531 * lib/readlink.c (readlink): Likewise.
9532 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9533 * modules/unistd (Makefile.am): Substitute it.
9534 * lib/unistd.in.h (readlink): Declare replacement.
9535 * doc/posix-functions/readlink.texi (readlink): Document this.
9537 symlink: use throughout gnulib
9538 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9539 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9540 symlink is not used.
9541 * modules/symlinkat (Depends-on): Add symlink.
9542 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9543 * modules/canonicalize-tests (Depends-on): Likewise.
9544 * modules/lstat-tests (Depends-on): Likewise.
9545 * modules/openat-tests (Depends-on): Likewise.
9546 * modules/remove-tests (Depends-on): Likewise.
9547 * modules/rmdir-tests (Depends-on): Likewise.
9548 * modules/unlink-tests (Depends-on): Likewise.
9549 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9550 * tests/test-canonicalize.c (symlink): Likewise.
9551 * tests/test-fstatat.c (symlink): Likewise.
9552 * tests/test-lstat.c (symlink): Likewise.
9553 * tests/test-remove.c (symlink): Likewise.
9554 * tests/test-rmdir.c (symlink): Likewise.
9555 * tests/test-unlink.c (symlink): Likewise.
9556 * tests/test-unlinkat.c (symlink): Likewise.
9558 symlink: new module, for Solaris 9 bug
9559 * modules/symlink: New file.
9560 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9561 * lib/symlink.c: Likewise.
9562 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9563 * modules/unistd (Makefile.am): Substitute them.
9564 * lib/unistd.in.h (symlink): Declare replacement.
9565 * MODULES.html.sh (File system functions): Mention it.
9566 * doc/posix-functions/symlink.texi (symlink): Likewise.
9567 * modules/symlink-tests: New test.
9568 * tests/test-symlink.c: Likewise.
9570 2009-09-23 Bruno Haible <bruno@clisp.org>
9572 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9574 Test case: gnulib-tool --import --with-tests atexit inttypes.
9575 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9577 2009-09-23 Bruno Haible <bruno@clisp.org>
9579 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9580 subcommand, not in a subshell.
9582 2009-09-22 Eric Blake <ebb9@byu.net>
9584 unistd: sort replacement declarations
9585 * lib/unistd.in.h: Sort declarations.
9587 open, openat: minor optimization
9588 * lib/open.c (open): If open succeeded, len is non-zero.
9589 * lib/openat.c (rpl_openat): Likewise.
9591 link-follow: ensure correct result
9592 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9593 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9594 distinguish between possible failures.
9596 2009-09-21 Eric Blake <ebb9@byu.net>
9598 fts: avoid compiler warning
9599 * lib/fts.c (dirent_inode_sort_may_be_useful)
9600 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9602 2009-09-19 Bruno Haible <bruno@clisp.org>
9604 * lib/progreloc.c (canonicalize_file_name): New declaration.
9606 2009-09-19 Eric Blake <ebb9@byu.net>
9609 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9611 openat: fix openat bugs on Solaris 9
9612 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9613 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9614 * modules/openat (Depends-on): Add open.
9615 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9616 * modules/fcntl-h (Makefile.am): Substitute it.
9617 * lib/fcntl.in.h (openat): Declare replacement.
9618 * doc/posix-functions/openat.texi (openat): Document this.
9620 openat: move fstatat and unlinkat into correct files
9621 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9623 * lib/openat.c (fstatat, unlinkat): Move...
9624 * lib/fstatat.c (fstatat): ...into correct files.
9625 * lib/unlinkat.c (unlinkat): Likewise.
9627 openat: fix unlinkat bugs on Solaris 9
9628 * lib/unlinkat.c (unlinkat): New file.
9629 * modules/openat (Depends-on): Add unlink.
9630 (Files): Distribute it.
9631 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9632 trailing slash behavior is broken.
9633 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9634 * modules/unistd (Makefile.am): Substitute it.
9635 * lib/unistd.in.h (unlinkat): Declare replacement.
9636 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9638 openat: fix fstatat bugs on Solaris 9
9639 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9641 * doc/posix-functions/fstatat.texi (fstatat): Document this.
9643 test-unlinkat: enhance test, to expose Solaris 9 bug
9644 * tests/test-unlink.c (main): Factor guts...
9645 * tests/test-unlink.h (test_rmdir_func): ...into new file.
9646 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9647 * tests/test-rmdir.c (main): Adjust caller.
9648 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
9649 (unlinker): New helper function.
9650 (rmdirat): Enhance check.
9651 * modules/rmdir-tests (Depends-on): Add stdbool.
9652 * modules/unlink-tests (Depends-on): Likewise.
9653 (Files): Add test-unlink.h.
9654 * modules/openat-tests (Files): Likewise.
9655 (Depends-on): Add unlinkdir.
9657 test-fstatat: new test, to expose Solaris 9 bugs
9658 * tests/test-stat.c (main): Factor guts...
9659 * tests/test-stat.h (test_stat_func): ...into new file.
9660 * tests/test-lstat.c (main): Factor guts...
9661 * tests/test-lstat.h (test_lstat_func): ...into new file.
9662 * tests/test-fstatat.c: New file.
9663 * modules/stat-tests (Files): Add test-stat.h.
9664 * modules/lstat-tests (Files): Add test-lstat.h.
9665 (Depends-on): Add stdbool.
9666 * modules/openat-tests (Depends-on): Add pathmax.
9667 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9668 (Makefile.am): Run new test.
9670 remove: new module, for mingw and Solaris 9 bugs
9671 * modules/remove: New file.
9672 * lib/remove.c: Likewise.
9673 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9674 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9675 * modules/stdio (Makefile.am): Use them.
9676 * lib/stdio.in.h (remove): Declare replacement.
9677 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9678 * doc/posix-functions/remove.texi (remove): Likewise.
9679 * modules/remove-tests: New test.
9680 * tests/test-remove.c: Likewise.
9682 unlink: new module, for Solaris 9 bug
9683 * modules/unlink: New file.
9684 * lib/unlink.c: Likewise.
9685 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9686 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9687 * modules/unistd (Makefile.am): Use them.
9688 * lib/unistd.in.h (stat): Declare replacement.
9689 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9690 * doc/posix-functions/unlink.texi (unlink): Likewise.
9691 * modules/unlink-tests: New test.
9692 * tests/test-unlink.c: Likewise.
9694 lstat: fix Solaris 9 bug
9695 * lib/lstat.c (lstat): Also check for trailing slash on
9696 non-symlink, non-directories. Use stat module to simplify logic.
9697 * doc/posix-functions/lstat.texi (lstat): Document it.
9698 * modules/lstat-tests (Depends-on): Add errno, same-inode.
9699 (configure.ac): Check for symlink.
9700 * tests/test-lstat.c (main): Add more tests.
9702 stat: add as dependency to other modules
9703 * modules/chown (Depends-on): Add stat.
9704 * modules/euidaccess (Depends-on): Likewise.
9705 * modules/fchdir (Depends-on): Likewise.
9706 * modules/isdir (Depends-on): Likewise.
9707 * modules/link (Depends-on): Likewise.
9708 * modules/lstat (Depends-on): Likewise.
9709 * modules/mkdir-p (Depends-on): Likewise.
9710 * modules/modechange (Depends-on): Likewise.
9711 * modules/open (Depends-on): Likewise.
9712 * modules/readlink (Depends-on): Likewise.
9713 * modules/same (Depends-on): Likewise.
9715 stat: fix Solaris 9 bug
9716 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9718 * lib/stat.c (rpl_stat): Work around it.
9719 * doc/posix-functions/stat.texi (stat): Update documentation.
9721 stat: new module, for mingw bug
9722 * modules/stat: New file.
9723 * lib/stat.c: Likewise.
9724 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9725 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9726 * modules/sys_stat (Makefile.am): Use them.
9727 * lib/sys_stat.in.h (stat): Declare replacement.
9728 * lib/openat.c (fstatat): Deal with lstat and stat being function
9730 * modules/openat (Depends-on): Add inline.
9731 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9732 * doc/posix-functions/stat.texi (stat): Likewise.
9733 * modules/stat-tests: New test.
9734 * tests/test-stat.c: Likewise.
9736 2009-09-19 Jim Meyering <meyering@redhat.com>
9738 syntax-check: detect unnecessary inclusion of canonicalize.h
9739 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9741 2009-09-19 Eric Blake <ebb9@byu.net>
9743 canonicalize-lgpl: adjust clients to use correct header
9744 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9745 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9746 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9747 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9748 * lib/progreloc.c (includes): Likewise.
9750 2009-09-19 Jim Meyering <meyering@redhat.com>
9752 test-posixtm.c: correct a comment
9753 * tests/test-posixtm.c: Correct first-line comment.
9754 Spotted by Eric Blake.
9756 2009-09-16 Jim Meyering <meyering@redhat.com>
9758 posixtm-tests: make T const-correct; add a test case
9759 * tests/test-posixtm.c (T): Declare const.
9760 Add a test for -(2^31+1).
9761 Remove useless can-succeed-only-in-2002 test.
9763 posixtm-tests: adjust the sole failing test
9764 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9765 expected output matches what mktime now produces. Cross-checked via
9766 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9768 posixtm: move #ifdef'd tests into a new module
9769 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
9770 * tests/test-posixtm.c: ... this new file.
9771 * modules/posixtm-tests: New module.
9773 2009-09-19 Eric Blake <ebb9@byu.net>
9775 openat: simplify use of at-func.c
9776 * lib/at-func.c (includes): Include prerequisites here, to
9777 simplify requirements on client files.
9778 * lib/openat-priv.h: Add double-inclusion guard.
9779 * lib/faccessat.c (includes): Simplify.
9780 * lib/fchmodat.c (includes): Likewise.
9781 * lib/fchownat.c (includes): Likewise.
9782 * lib/mkdirat.c (includes): Likewise.
9783 * lib/mkfifoat.c (includes): Likewise.
9784 * lib/symlinkat.c (includes): Likewise.
9786 openat: allow return of fd 0
9787 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9788 * modules/save-cwd (Depends-on): Replace fcntl-safer with
9790 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9791 <fcntl.h>; this module does not leak fds.
9792 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9793 must be allowed to return 0, leaving openat_safer to add the
9795 (openat_permissive): Avoid writing to just-opened fd 2 if
9796 restoring the current directory fails.
9797 * lib/openat-die.c (openat_restore_fail): Add comment.
9798 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9799 (save_cwd): Guarantee safe fd, but without use of open_safer.
9800 * tests/test-openat.c: New test.
9801 * modules/openat-tests (Files, Makefile.am): Distribute and build
9804 relocatable-prog-wrapper: fix build
9805 * modules/relocatable-prog-wrapper (Files): Update name of
9806 canonicalize m4 file, broken on 2009-09-17.
9807 Reported by emad hajjar <aleppos@hotmail.com>.
9809 2009-09-19 Bruno Haible <bruno@clisp.org>
9811 * lib/safe-alloc.h: Use the standard header with GPL copyright.
9812 * lib/safe-alloc.c: Likewise.
9813 Reported by Ian Beckwith <ianb@erislabs.net>.
9815 2009-09-18 Bruno Haible <bruno@clisp.org>
9817 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9818 Reported by <erobles@sensacd.com.mx>.
9820 2009-09-17 Eric Blake <ebb9@byu.net>
9822 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9823 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9824 slashes when checking if last component is missing.
9825 * tests/test-canonicalize.c (main): Test this.
9827 canonicalize, canonicalize-lgpl: honor // if distinct from /
9828 * modules/canonicalize (Files): Add double-slash-root.m4.
9829 * modules/canonicalize-lgpl (Files): Likewise.
9830 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9831 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9832 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9833 fallback definition.
9834 (canonicalize_filename_mode): Use it to protect //.
9835 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9836 (__realpath): Likewise.
9837 * tests/test-canonicalize.c (main): Test this.
9838 * tests/test-canonicalize-lgpl.c (main): Likewise.
9839 * modules/canonicalize-tests (Depends-on): Add same-inode.
9840 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9842 canonicalize-lgpl: fix glibc bug with trailing slash
9843 * m4/canonicalize-lgpl.m4: Move contents...
9844 * m4/canonicalize.m4: ...here.
9845 (gl_CANONICALIZE_LGPL): Factor realpath check...
9846 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
9847 glibc 2.3.5 bug, fixed 2005-04-27.
9848 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9849 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9850 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9851 * modules/canonicalize-lgpl (Files): Manage file rename.
9852 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9853 * modules/stdlib (Makefile.am): Substitute witness.
9854 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9856 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9857 replacement is required.
9858 * lib/canonicalize.c (canonicalize_file_name): Likewise.
9859 * doc/glibc-functions/canonicalize_file_name.texi
9860 (canonicalize_file_name): Document this.
9861 * doc/posix-functions/realpath.texi (realpath): Likewise.
9863 canonicalize-lgpl: reject non-directory with trailing slash
9864 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9865 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
9866 catches failures in glibc 2.3.5.
9867 * tests/test-canonicalize.c (main): Likewise.
9869 canonicalize-lgpl: use native realpath if it works
9870 * lib/canonicalize-lgpl.c (realpath): Guard with
9871 FUNC_REALPATH_WORKS.
9872 * lib/stdlib.in.h (realpath): Make declaration optional based on
9874 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9875 native realpath works.
9876 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9877 * modules/stdlib (Makefile.am): Substitute witness.
9879 canonicalize, canonicalize-lgpl: use <stdlib.h>
9880 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9881 (Include): Mention <stdlib.h>.
9882 (configure.ac): Mention functions we provide.
9883 * modules/canonicalize (configure.ac): Likewise.
9884 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9885 realpath if canonicalize_file_name is missing.
9886 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9887 * modules/stdlib (Makefile.am): Substitute witnesses.
9888 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9889 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9890 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9891 * NEWS: Document this.
9892 * doc/glibc-functions/canonicalize_file_name.texi
9893 (canonicalize_file_name): Likewise.
9894 * doc/posix-functions/realpath.texi (realpath): Likewise.
9895 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9897 test-canonicalize: consolidate into single C program
9898 * tests/test-canonicalize.sh: Delete; move setup into...
9899 * tests/test-canonicalize.c (main): ...the program, making it
9900 easier to run in debugger. Add some tests.
9901 * modules/canonicalize-tests (Files): Remove unused file.
9902 (Depends-on): Add progname.
9903 (configure.ac, Makefile.am): Simplify.
9905 test-canonicalize-lgpl: consolidate into single C program
9906 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9907 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9908 easier to run in debugger. Add some tests.
9909 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9910 (configure.ac, Makefile.am): Simplify.
9912 canonicalize: avoid resolvepath
9913 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9915 * lib/canonicalize.c (includes): Simplify.
9916 (canonicalize_file_name): Drop resolvepath implementation.
9917 * modules/canonicalize (Depends-on): Drop filenamecat.
9919 canonicalize: don't lose errno
9920 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9923 canonicalize: simplify errno handling
9924 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9927 canonicalize, canonicalize-lgpl: update module dependencies
9928 * modules/canonicalize (Depends-on): Add extensions, lstat,
9930 (Files): Drop pathmax.h.
9931 (configure.ac): Adjust macro name.
9932 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9933 lstat, stdlib, sys_stat.
9934 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9935 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9937 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9938 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9939 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9940 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9941 declaration, if available.
9942 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9943 we can rely on the readlink module.
9944 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9945 (includes): Use <unistd.h> unconditionally.
9947 2009-09-17 Eric Blake <ebb9@byu.net>
9949 maint: make Include sections of modules consistent
9950 * modules/alloca: Use only header name; no need to list #include.
9951 * modules/alloca-opt: Likewise.
9952 * modules/arpa_inet: Likewise.
9953 * modules/canon-host: Likewise.
9954 * modules/configmake: Likewise.
9955 * modules/dirent: Likewise.
9956 * modules/eealloc: Likewise.
9957 * modules/environ: Likewise.
9958 * modules/fchdir: Likewise.
9959 * modules/fcntl: Likewise.
9960 * modules/fcntl-h: Likewise.
9961 * modules/gethrxtime: Likewise.
9962 * modules/gettime: Likewise.
9963 * modules/ignore-value: Likewise.
9964 * modules/inet_ntop: Likewise.
9965 * modules/inet_pton: Likewise.
9966 * modules/inttypes: Likewise.
9967 * modules/isnand-nolibm: Likewise.
9968 * modules/isnanf-nolibm: Likewise.
9969 * modules/mbchar: Likewise.
9970 * modules/mbfile: Likewise.
9971 * modules/mbiter: Likewise.
9972 * modules/mbuiter: Likewise.
9973 * modules/netdb: Likewise.
9974 * modules/netinet_in: Likewise.
9975 * modules/nproc: Likewise.
9976 * modules/pagealign_alloc: Likewise.
9977 * modules/poll: Likewise.
9978 * modules/printf-frexp: Likewise.
9979 * modules/pthread: Likewise.
9980 * modules/putenv: Likewise.
9981 * modules/random_r: Likewise.
9982 * modules/relocatable-prog: Likewise.
9983 * modules/search: Likewise.
9984 * modules/select: Likewise.
9985 * modules/selinux-h: Likewise.
9986 * modules/settime: Likewise.
9987 * modules/signal: Likewise.
9988 * modules/size_max: Likewise.
9989 * modules/socklen: Likewise.
9990 * modules/ssize_t: Likewise.
9991 * modules/stdarg: Likewise.
9992 * modules/stdbool: Likewise.
9993 * modules/stddef: Likewise.
9994 * modules/stdint: Likewise.
9995 * modules/stdio: Likewise.
9996 * modules/stdlib: Likewise.
9997 * modules/string: Likewise.
9998 * modules/strings: Likewise.
9999 * modules/sys_file: Likewise.
10000 * modules/sys_ioctl: Likewise.
10001 * modules/sys_select: Likewise.
10002 * modules/sys_socket: Likewise.
10003 * modules/sys_stat: Likewise.
10004 * modules/sys_time: Likewise.
10005 * modules/sys_times: Likewise.
10006 * modules/sys_utsname: Likewise.
10007 * modules/sys_wait: Likewise.
10008 * modules/sysexits: Likewise.
10009 * modules/time: Likewise.
10010 * modules/times: Likewise.
10011 * modules/tmpfile: Likewise.
10012 * modules/trim: Likewise.
10013 * modules/unistd: Likewise.
10014 * modules/wchar: Likewise.
10015 * modules/wctype: Likewise.
10017 2009-09-17 Bruno Haible <bruno@clisp.org>
10019 Make getdate.y compile on QNX and NetBSD 5 / i386.
10020 * m4/getdate.m4 (gl_GETDATE): Conditionally define
10021 TIME_T_FITS_IN_LONG_INT.
10022 * lib/getdate.y (long_time_t): New type.
10023 (relative_time): Change type of 'seconds' field to long_time_t.
10024 (get_date): Update types of local variables. Check against overflow
10025 during conversion from long_time_t to time_t.
10026 Reported by Matt Kraai <kraai@ftbfs.org>
10027 and Hasso Tepper <hasso@netbsd.org>.
10029 2009-09-17 Bruno Haible <bruno@clisp.org>
10031 * modules/COPYING: Update copyright years.
10032 * modules/README: Likeiwse.
10033 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10034 Reported by Ian Beckwith <ianb@erislabs.net>.
10036 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
10038 * users.txt: Update references for gnuit package.
10040 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
10042 * m4/getdelim.m4: Fix typo in copyright line.
10044 2009-09-17 Bruno Haible <bruno@clisp.org>
10046 * lib/atoll.c: Use the standard header with GPL copyright.
10047 * lib/argz.in.h: Likewise.
10048 * lib/glob.c: Likewise.
10049 * lib/glob-libc.h: Likewise.
10050 * lib/random_r.c: Likewise.
10051 * lib/siglist.h: Likewise.
10052 * lib/strsignal.c: Likewise.
10053 Reported by Ian Beckwith <ianb@erislabs.net>.
10055 2009-09-17 Eric Blake <ebb9@byu.net>
10057 rmdir: ensure correct dependency order
10058 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10060 2009-09-17 Bruno Haible <bruno@clisp.org>
10062 Disable assertion that fails on NetBSD 5 / i386.
10063 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10064 Reported by Sam Steingold <sds@gnu.org>
10065 and Hasso Tepper <hasso@netbsd.org>.
10067 2009-09-16 Eric Blake <ebb9@byu.net>
10069 unlinkdir: port to mingw
10070 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10071 on which no one can unlink a directory.
10073 stdlib: sort witness names
10074 * modules/stdlib (Makefile.am): Sort replacements.
10075 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10076 * lib/stdlib.in.h: Likewise.
10078 parse-duration-tests: avoid link failure
10079 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10081 Reported by Tom G. Christensen.
10083 openat-tests: ensure unlinkat behaves like rmdir
10084 * tests/test-rmdir.c (main): Factor guts...
10085 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10086 * modules/rmdir-tests (Files): Ship new file.
10087 * modules/openat-tests: New test.
10088 * tests/test-unlinkat.c: Likewise.
10090 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10091 * modules/rmdir-errno (Status, Notice): Now obsolete.
10093 rmdir: work around cygwin 1.5.x and mingw bugs
10094 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10095 * lib/rmdir.c (rmdir): Work around it.
10096 * modules/rmdir (Status, Notice): No longer obsolete.
10097 (Files): Add dos.m4.
10098 (Depends-on): Add unistd.
10099 (configure.ac): Set witnesses.
10100 (License): Relax to LGPLv2+.
10101 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10102 * modules/unistd (Makefile.am): Substitute witnesses.
10103 * lib/unistd.in.h (rmdir): Declare replacement.
10104 * doc/posix-functions/rmdir.texi (rmdir): Document this.
10105 * modules/rmdir-tests: New tests.
10106 * tests/test-rmdir.c: Likewise.
10108 2009-09-15 Eric Blake <ebb9@byu.net>
10110 fchdir: improve use of replacement functions
10111 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10112 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10113 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10115 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10116 * modules/sys_stat (Makefile.am): Substitute correct witness.
10117 * modules/dirent (Makefile.am): Likewise.
10118 * modules/unistd (Makefile.am): Likewise.
10119 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10120 * lib/unistd.in.h (dup): Likewise.
10121 * lib/sys_stat.in.h (fstat): Likewise.
10123 maint: ignore gnulib-tool temp files
10124 * .gitignore: Ignore files created during gnulib-tool --test.
10126 2009-09-13 Jim Meyering <meyering@redhat.com>
10128 posixtm: don't reject a time that specify "60" as the number of seconds
10129 * lib/posixtm.c (posixtime): The code to reject invalid dates
10130 would also reject a time specified with the .60 suffix.
10131 But POSIX allows that, in order to accommodate leap seconds.
10132 So don't reject it.
10133 (main): Adjust tests accordingly.
10134 * modules/posixtm (Depends-on): Add stpcpy.
10136 2009-09-11 Jim Meyering <meyering@redhat.com>
10138 announce-gen: include [$release_type] in emitted Subject:
10139 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10140 e.g., [stable] in the emitted Subject: line.
10142 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10144 Remove obsolete macros from several modules.
10145 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10146 obsolete Autoconf macros with their modern counterparts.
10147 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10148 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10149 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10150 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10151 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10152 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10153 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10154 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10155 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10156 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10157 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10158 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10159 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10160 * m4/sockets.m4 (gl_SOCKETS): Likewise.
10161 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10162 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10163 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10164 * m4/time_r.m4 (gl_TIME_R): Likewise.
10165 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10166 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10167 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10169 Fix copyright header in build-aux scripts.
10170 * build-aux/git-version-gen: Fix copyright header to match GPLv3
10172 * build-aux/ncftpput-ftp: Likewise.
10173 * build-aux/update-copyright: Likewise.
10175 2009-09-09 Eric Blake <ebb9@byu.net>
10177 test-link: allow Linux choice of errno
10178 * tests/test-link.c (main): Relax test for alternate error.
10180 strndup: fix improper m4 caching
10181 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10182 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10183 (gl_PREREQ_STRNDUP): Delete.
10184 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10185 * modules/string (Makefile.am): Substitute it.
10186 * lib/string.in.h (strndup): Modernize prototype.
10188 getcwd: port to mingw
10189 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10190 different from the POSIX assumptions made throughout the getcwd
10191 module; fortunately, the mingw getcwd does not need replacement.
10192 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10193 * modules/getcwd-tests: New test.
10194 * tests/test-getcwd.c: Likewise.
10196 link: fix platform bugs
10197 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10198 * lib/link.c (link): Work around them. Fix related mingw bug.
10199 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10200 * modules/unistd (Makefile.am): Substitute it.
10201 * lib/unistd.in.h (link): Declare replacement.
10202 * doc/posix-functions/link.texi (link): Document this.
10203 * modules/link (Depends-on): Add strdup-posix, sys_stat.
10205 test-link: consolidate into single C program, test more cases
10206 * tests/test-link.sh: Delete.
10207 * tests/test-link.c: Test more error conditions. Exposes bugs on
10208 at least Cygwin and Solaris.
10209 * modules/link-tests (Files): Remove unused file.
10210 (Depends-on): Add errno, sys_stat.
10211 (Makefile.am): Simplify.
10213 2009-09-08 Bruno Haible <bruno@clisp.org>
10215 Work around towlower, towupper bug on mingw.
10216 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10217 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10218 * doc/posix-functions/towlower.texi: Mention the mingw bug.
10219 * doc/posix-functions/towupper.texi: Likewise.
10220 Reported by Eric Blake.
10222 2009-09-08 Jim Meyering <meyering@redhat.com>
10224 build: don't try to run autoheader if we don't use it
10225 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10226 is not used in configure.ac.
10228 2009-09-08 Eric Blake <ebb9@byu.net>
10230 euidaccess: fix compilation error
10231 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10233 rawmemchr: relax license
10234 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10236 Reported by Jim Meyering.
10238 mkfifoat: new module
10239 * modules/mkfifoat: New file.
10240 * lib/mkfifoat.c: Likewise.
10241 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10242 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10243 * modules/sys_stat (Makefile.am): Use them.
10244 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10245 * MODULES.html.sh (File system functions): Mention module.
10246 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10247 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10248 * modules/mkfifoat-tests: New test.
10249 * tests/test-mkfifoat.c: Likewise.
10251 strchrnul: relax license
10252 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10254 Reported by Jim Meyering.
10256 2009-09-08 Eric Blake <ebb9@byu.net>
10258 fstatat: fix compilation on Solaris
10259 * lib/fstatat.c (includes): Add fcntl.h.
10260 Reported by Pádraig Brady.
10262 2009-09-07 Eric Blake <ebb9@byu.net>
10264 rename: modernize replacement
10265 * modules/rename (Depends-on): Add stdio.
10266 (configure.ac): Declare witness.
10267 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10268 stdio take care of replacement.
10269 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10270 * modules/stdio (Makefile.am): Substitute them.
10271 * lib/stdio.in.h (rename): Declare replacement.
10272 * lib/rename.c (includes): Allow cross-compilation to non-windows
10274 * doc/posix-functions/rename.texi (rename): Improve
10277 stdio: sort witness names
10278 * modules/stdio (Makefile.am): Sort replacements.
10279 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10280 * lib/stdio.in.h: Likewise.
10282 getcwd: minor cleanups
10283 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10284 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10286 openat: provide more convenience names
10287 * modules/faccessat (configure.ac): Add C witness.
10288 * lib/unistd.in.h (readlinkat): Fix typo.
10289 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10290 convenience wrappers.
10291 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10292 wrappers in syntax checks.
10294 2009-09-06 Eric Blake <ebb9@byu.net>
10296 doc: fix comments in recent patches
10297 * lib/faccessat.c: Mention correct function.
10298 * lib/fchmodat.c: Likewise.
10299 * lib/fchownat.c: Likewise.
10300 * lib/symlinkat.c: Likewise.
10301 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10304 faccessat, symlinkat: continue cleanup of previous patch
10305 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10306 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10307 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10308 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10309 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10310 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10313 2009-09-06 Bruno Haible <bruno@clisp.org>
10315 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10316 (fstatat): Declare if GNULIB_FSTATAT is set.
10317 (mkdirat): Declare if GNULIB_MKDIRAT is set.
10318 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10319 (unlinkat): Declare if GNULIB_UNLINKAT is set.
10320 * modules/fcntl-h (Files): Remove m4/openat.m4.
10321 * modules/sys_stat (Files): Remove m4/openat.m4.
10322 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10323 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10324 * modules/unistd (Files): Remove m4/openat.m4.
10325 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10327 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10328 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10329 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10330 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10331 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10332 gl_OPENAT_DEFAULTS.
10333 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10334 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10335 Don't require gl_OPENAT_DEFAULTS.
10336 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10337 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10338 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10339 (gl_OPENAT_DEFAULTS): Remove macro.
10341 2009-09-06 Bruno Haible <bruno@clisp.org>
10343 * modules/openat (configure.ac): Remove unneeded witness.
10345 2009-09-06 Bruno Haible <bruno@clisp.org>
10347 Set errno to ENOSYS when a function is entirely unsupported.
10348 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10350 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10351 * modules/chown (Depends-on): Remove errno.
10353 2009-09-06 Bruno Haible <bruno@clisp.org>
10355 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10357 2009-09-06 Bruno Haible <bruno@clisp.org>
10359 * lib/sys_stat.in.h: Fix preprocessor command indentation.
10361 2009-09-06 Ben Pfaff <blp@gnu.org>
10362 Bruno Haible <bruno@clisp.org>
10364 Work around a glibc bug in strtok_r.
10365 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10366 Undefine if UNDEFINE_STRTOK_R is set.
10367 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10368 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10369 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10370 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10371 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10373 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10375 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
10378 * lib/exclude.c: Include wctype.h
10380 2009-09-06 Akim Demaille <demaille@gostai.com>
10382 bootstrap: improve error message
10383 * build-aux/bootstrap (find_tool): Upon failure, report the list
10385 Honor the initial value of the envvar.
10387 2009-09-05 Eric Blake <ebb9@byu.net>
10389 symlinkat: new module
10390 * modules/symlinkat: New file.
10391 * lib/symlinkat.c: Likewise.
10392 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10393 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10394 * modules/unistd (Makefile.am): Use them.
10395 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10396 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10397 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10398 * MODULES.html.sh (File system functions): Mention module.
10399 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10400 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10401 * modules/symlinkat-tests: New test.
10402 * tests/test-symlinkat.c: Likewise.
10404 test-openat-safer: add more checks
10405 * tests/test-openat-safer.c (main): Check more code paths.
10407 2009-09-05 Jim Meyering <meyering@redhat.com>
10409 syntax-check: detect unnecessary inclusion of openat.h
10410 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10412 2009-09-05 Bruno Haible <bruno@clisp.org>
10414 Support towlower, towupper.
10415 * doc/posix-functions/towlower.texi: Mention module wctype.
10416 * doc/posix-functions/towupper.texi: Likewise.
10417 * lib/wctype.in.h (towlower, towupper): New functions.
10418 * tests/test-wctype.c: Include stdio.h, stdlib.h.
10419 (ASSERT): New macro.
10421 (main): Test also towlower, towupper. Test WEOF argument.
10422 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10424 2009-09-05 Bruno Haible <bruno@clisp.org>
10426 Fix conversion behaviour when the input is invalid.
10427 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10428 mark occurring in first pass of indirect conversion.
10429 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10431 Found by clang's static analyzer.
10433 2009-09-05 Bruno Haible <bruno@clisp.org>
10435 * tests/test-striconveh.c (main): Test indirect conversion on platforms
10436 where direct conversion is possible.
10438 2009-09-04 Eric Blake <ebb9@byu.net>
10440 openat: fail with ENOENT on empty name
10441 * lib/openat-proc.c (openat_proc_name): Special-case the empty
10444 link-follow: fix logic bug in prior patch
10445 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10446 reversed sense of yes and no in prior patch. Avoid confusing
10447 compilation failure with desired semantics.
10449 link-follow: accomodate mingw and cross-compilation
10450 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10451 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
10452 cross-compilation results to -1, to make linkat easier to
10453 implement when cross-compiling. Trivially support mingw.
10454 * modules/link-follow (configure.ac): Call new name.
10455 * NEWS: Mention this.
10457 2009-09-03 Eric Blake <ebb9@byu.net>
10459 faccessat: compile replacement
10460 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10463 fts: fix compilation error
10464 * lib/fts.c (includes): Re-add "openat.h", for
10465 openat_needs_fchdir.
10467 faccessat: new module
10468 * modules/faccessat: New file.
10469 * lib/faccessat.c: Likewise.
10470 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10471 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10472 * modules/unistd (Makefile.am): Use it.
10473 * lib/unistd.in.h (faccessat): Declare it.
10474 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10475 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10476 * MODULES.html.sh (File system functions): Mention it.
10477 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10478 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10480 euidaccess: prefer POSIX over non-standard implementation
10481 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10482 * lib/euidaccess.c (euidaccess): Use it if available.
10484 openat: make template easier to use
10485 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10486 AT_FUNC_F2 to be undefined.
10487 (VALIDATE_FLAG): New macro; use it to reject bad flags.
10488 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10489 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10490 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10491 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10493 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10494 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10495 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10498 openat: declare in POSIX headers
10499 * NEWS: Mention this.
10500 * modules/openat (configure.ac): Declare witnesses.
10501 (Depends-on): Add fcntl-h, sys_stat, unistd.
10502 (Include): Mention correct headers.
10503 * modules/fcntl-h (Depends-on): Add link-warning.
10504 (Files): Add openat.m4.
10505 (Makefile.am): Substitute witnesses.
10506 * modules/sys_stat (Files, Makefile.am): Likewise.
10507 * modules/unistd (Files, Makefile.am): Likewise.
10508 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10509 (gl_OPENAT_DEFAULTS): New macro.
10510 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10511 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10512 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10513 (SYS_STAT_H): Remove unused variable.
10514 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10515 * lib/fcntl--.h (includes): Remove unneeded header.
10516 * lib/openat-safer.c (includes): Likewise.
10517 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10518 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10519 appropriate headers.
10520 (__OPENAT_PREFIX): Delete.
10521 * lib/fcntl.in.h (openat): Provide declaration.
10522 (AT_FDCWD): Fix Solaris bug.
10523 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10524 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10525 * lib/fchmodat.c (includes): Adjust to find declaration.
10526 * lib/fchownat.c (includes): Likewise.
10527 * lib/mkdirat.c (includes): Likewise.
10528 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
10531 2009-09-02 Eric Blake <ebb9@byu.net>
10533 errno: use consistently
10534 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10535 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10536 * lib/canonicalize.c (ELOOP): Likewise.
10537 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10538 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10539 * lib/lchown.c (EOPNOTSUPP): Likewise.
10540 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10541 * lib/savewd.c (ESTALE): Likewise.
10542 * lib/settime.c (ENOSYS): Likewise.
10543 * lib/utimens.c (ENOSYS): Likewise.
10544 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10545 * lib/chdir-safer.c (ELOOP): Likewise.
10546 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10547 * modules/c-stack (Depends-on): Add errno.
10548 * modules/canonicalize (Depends-on): Likewise.
10549 * modules/chdir-safer (Depends-on): Likewise.
10550 * modules/fdopendir (Depends-on): Likewise.
10551 * modules/inet_ntop (Depends-on): Likewise.
10552 * modules/inet_pton (Depends-on): Likewise.
10553 * modules/lchown (Depends-on): Likewise.
10554 * modules/openat (Depends-on): Likewise.
10555 * modules/savewd (Depends-on): Likewise.
10556 * modules/settime (Depends-on): Likewise.
10557 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10559 fts: avoid leaking fds
10560 * modules/fts (Depends-on): Add cloexec.
10561 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10564 fts: make directory fds more robust
10565 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10566 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10568 backupfile, chdir-long, fts, savedir: make safer
10569 * lib/backupfile.c (includes): Use "dirent--.h", since
10570 numbered_backup can write to stderr during readdir.
10571 * lib/savedir.c (includes): Likewise.
10572 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10573 emulation can write to stderr on failure.
10574 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10575 * lib/getcwd.c: Document why opendir_safer is unused.
10576 * lib/glob.c: Likewise.
10577 * lib/scandir.c: Likewise.
10578 * lib/openat-proc.c: Likewise, for open_safer.
10579 * modules/backupfile (Depends-on): Add dirent-safer.
10580 * modules/savedir (Depends-on): Likewise.
10581 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10582 * modules/chdir-long (Depends-on): Add openat-safer.
10584 openat-safer: new module
10585 * modules/openat-safer: New file.
10586 * lib/openat-safer.c: Likewise.
10587 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10588 * lib/fcntl-safer.h (openat_safer): Declare.
10589 * lib/fcntl--.h (openat): Override.
10590 * MODULES.html.sh (File descriptor based I/O): Mention it.
10591 * lib/openat.h: Add double-inclusion guards.
10592 * lib/openat.c (includes): Only include "fcntl-safer.h", not
10593 "fcntl--.h", so we can implement openat.
10594 * modules/openat-safer-tests: New test.
10595 * tests/test-openat-safer.c: New file.
10597 dirent-safer: new module
10598 * modules/dirent-safer: New file.
10599 * lib/dirent--.h: Likewise.
10600 * lib/dirent-safer.h: Likewise.
10601 * lib/opendir-safer.c: Likewise.
10602 * m4/dirent-safer.m4: Likewise.
10603 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10604 * modules/dirent-safer-tests: New test.
10605 * tests/test-dirent-safer.c: New file.
10606 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10608 fdopendir: optimize on mingw
10609 * lib/unistd.in.h (_gl_directory_name): New prototype.
10610 * lib/fchdir.c (_gl_directory_name): Implement it.
10611 (fchdir): Use it to simplify implementation.
10612 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10613 fchdir, when available, to avoid calling [f]chdir().
10615 fdopendir: split into its own module
10616 * lib/openat.c (fdopendir): Move...
10617 * lib/fdopendir.c: ...into new file.
10618 * modules/fdopendir: New module.
10619 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10620 * modules/openat (Depends-on): Add fdopendir.
10621 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10623 * modules/savedir (Depends-on): Only need fdopendir, not full
10625 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10626 * lib/openat.h (fdopendir): Drop prototype.
10627 * lib/dirent.in.h (fdopendir): Provide prototype.
10628 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10629 * modules/dirent (Makefile.am): Substitute them.
10630 * MODULES.html.sh (File system functions): Mention it.
10631 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10632 * modules/fdopendir-tests: New file.
10633 * tests/test-fdopendir.c: Likewise.
10635 fchdir: use more consistent macro convention
10636 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10637 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10638 REPLACE_FCHDIR, rather than relying on config.h macros.
10639 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10640 inside a single make-time REPLACE_FCHDIR block, rather than using
10641 the config.h FCHDIR_REPLACEMENT.
10642 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10643 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
10644 Manage fstat replacement.
10645 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10647 * modules/sys_stat (Files): Add m4/unistd_h.m4.
10648 (Makefile.am): Substitute REPLACE_FCHDIR.
10649 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10650 FCHDIR_REPLACEMENT.
10651 * lib/dup-safer.c (dup_safer): Likewise.
10652 * lib/dup2.c (rpl_dup2): Likewise.
10653 * lib/dup3.c (rpl_dup3): Likewise.
10654 * lib/open.c (rpl_open): Likewise.
10656 fchdir: simplify error handling, and support dup3
10657 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
10658 stdbool, malloc-posix, realloc-posix.
10659 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10660 (ensure_dirs_slot): Return false on allocation failure.
10661 (rpl_dup2): Delete.
10662 (_gl_register_dup): New function.
10663 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10664 (_gl_register_fd): Close fd on allocation failure.
10665 * lib/fcntl.in.h (_gl_register_fd): Update signature.
10666 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10668 (rpl_dup2_fchdir): Delete prototype.
10669 * lib/open.c (open): Update caller.
10670 * lib/dup2.c (dup2): Track fchdir metadata.
10671 * lib/dup3.c (dup3): Likewise.
10672 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10673 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10675 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10677 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10678 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10679 don't pass arguments to AC_OUTPUT.
10681 2009-09-02 Bruno Haible <bruno@clisp.org>
10683 * modules/mkdtemp (License): Relicense under LGPLv2+.
10684 Reported by Paolo Bonzini.
10686 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10688 Replace uses of obsolete autoconf macros in Jim's modules.
10689 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10690 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10691 can evoke a warning from autoconf when run with -Wobsolete
10692 enabled. They were declared obsolete for good reasons (see
10693 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10694 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10695 should not continue using the deprecated macros.
10696 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10697 obsolete Autoconf macros with modern counterparts.
10698 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10699 * m4/dos.m4 (gl_AC_DOS): Likewise.
10700 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10701 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10702 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10703 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10704 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10705 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10706 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10707 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10708 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10710 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10711 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10712 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10713 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10714 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10715 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10717 2009-09-01 Eric Blake <ebb9@byu.net>
10719 fchdir: fix off-by-one bug in previous patch
10720 * lib/fchdir.c (rpl_fstat): Use correct bounds.
10721 (_gl_unregister_fd): Delete useless if.
10723 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
10725 maint.mk: sort the list of syntax-check rules
10726 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10727 easier to get a sense of progress when the rules are run sequentially
10728 and take a long time.
10730 2009-09-01 Simon Josefsson <simon@josefsson.org>
10732 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10733 * modules/netinet_in: Likewise.
10734 * modules/sys_file: Likewise.
10735 * modules/sys_ioctl: Likewise.
10736 * modules/sys_select: Likewise.
10737 * modules/sys_socket: Likewise.
10738 * modules/sys_stat: Likewise.
10739 * modules/sys_time: Likewise.
10740 * modules/sys_times: Likewise.
10741 * modules/sys_utsname: Likewise.
10742 * modules/sys_wait: Likewise.
10744 2009-09-01 Jim Meyering <meyering@redhat.com>
10746 fts: help ensure that return values are not ignored
10747 * lib/fts_.h (__GNUC_PREREQ): Define.
10748 (__attribute_warn_unused_result__): Define.
10749 (fts_children, fts_close, fts_open, fts_read): Declare with
10750 __attribute_warn_unused_result__.
10752 fts: fts_close now fails also when closing a dir file descriptor fails
10753 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10754 and propagate to caller, along with errno.
10756 announce-gen: correct formatting in --help output
10757 * build-aux/announce-gen (usage): Move the one-line description in
10758 --help output "up", to where it belongs, just after Usage:.
10760 2009-08-31 Eric Blake <ebb9@byu.net>
10762 fchdir: port to mingw
10763 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10764 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10765 opened, then use a substitute.
10766 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10768 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10769 (_gl_register_fd): No need to check stat if open already filters
10771 (fchdir): Fix error condition to match POSIX.
10772 * modules/fchdir (Depends-on): Add sys_stat.
10773 * doc/posix-functions/open.texi (open): Document the limitation.
10774 * modules/fchdir-tests: New file.
10775 * tests/test-fchdir.c: Likewise.
10777 canonicalize: allow cross-testing from cygwin to mingw
10778 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10779 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10780 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10782 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10783 target does not support symlinks.
10784 * tests/test-canonicalize-lgpl.sh: Likewise.
10786 chown: avoid compilation warning on mingw
10787 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10788 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10790 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10791 * modules/chown (Depends-on): Add errno.
10793 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
10795 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10798 2009-08-31 Jim Meyering <meyering@redhat.com>
10800 canonicalize: remove useless initialization
10801 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10802 initialization of local, "end".
10804 2009-08-30 Bruno Haible <bruno@clisp.org>
10806 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10807 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10810 2009-08-30 Bruno Haible <bruno@clisp.org>
10812 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10813 /usr/xpg4/bin/tr when it exists.
10814 * tests/test-pipe-filter-gi1.sh: Likewise.
10816 2009-08-30 Bruno Haible <bruno@clisp.org>
10818 Work around deficient /usr/bin/id program on Solaris.
10819 * tests/test-file-has-acl.sh (ID): New variable.
10820 * tests/test-set-mode-acl.sh (ID): Likewise.
10821 * tests/test-copy-acl.sh (ID): Likewise.
10822 * tests/test-copy-file.sh (ID): Likewise.
10824 2009-08-30 Bruno Haible <bruno@clisp.org>
10826 New module 'xstriconveh'.
10827 * lib/xstriconveh.h: New file.
10828 * lib/xstriconveh.c: New file.
10829 * modules/xstriconveh: New file.
10831 2009-08-30 Bruno Haible <bruno@clisp.org>
10833 Make it easier to use mem_cd_iconveh.
10834 * lib/striconveh.h (iconveh_t): New type.
10835 (iconveh_open, iconveh_close): New declarations.
10836 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10837 with a single 'const iconveh_t *' argument.
10838 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10839 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10840 with a single 'const iconveh_t *' argument.
10841 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10842 * tests/test-striconveh.c (main): Update.
10843 * NEWS: Mention the change.
10845 2009-08-30 Bruno Haible <bruno@clisp.org>
10847 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10850 2009-08-30 Bruno Haible <bruno@clisp.org>
10852 Work around iconv_open problem on Solaris.
10853 * lib/iconv_open-solaris.gperf: New file.
10854 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10855 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10856 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10857 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10858 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10859 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10861 2009-08-29 Jim Meyering <meyering@redhat.com>
10863 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10864 * top/maint.mk (cvs-check): Remove target; it was just an alias
10865 to the better-named vc-diff-check.
10866 (maintainer-distcheck): Remove rule. It was used only from
10867 the (alpha/beta/major) target, and all of its commands but one
10868 were coreutils-specific.
10869 (vc-dist): Remove rule.
10870 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10871 Run vc-diff-check, not vc-dist.
10872 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
10874 2009-08-27 Bruno Haible <bruno@clisp.org>
10876 * tests/test-bitrotate.c (main): Remove test that uses a shift count
10879 2009-08-27 Bruno Haible <bruno@clisp.org>
10881 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10883 * doc/func.texi: Document the SunPRO C bug.
10885 2009-08-27 Bruno Haible <bruno@clisp.org>
10887 Fix link error on Solaris.
10888 * tests/test-parse-duration.c (xstrdup): Remove function.
10890 2009-08-26 Pádraig Brady <P@draigbrady.com>
10892 ignore-value: handle pointer types, too
10893 * lib/ignore-value.h (__attribute__): Remove definition.
10894 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10895 of a more concise and more-often effective "(void) i" statement.
10896 (ignore_ptr): New function to suppress warnings from functions that
10897 return pointers, and to make it explicit that one function doesn't
10900 2009-08-25 Bruno Haible <bruno@clisp.org>
10902 dup2: work around a Linux bug.
10903 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10904 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10905 * doc/posix-functions/dup2.texi: Mention the Linux bug.
10906 Reported by Simon Josefsson.
10908 2009-08-25 Jim Meyering <meyering@redhat.com>
10910 libguestfs uses gnulib
10911 * users.txt: Add libguestfs.
10913 2009-08-24 Eric Blake <ebb9@byu.net>
10915 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10916 * lib/pipe2.c (includes): Add binary-io.h.
10917 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10919 2009-08-24 Bruno Haible <bruno@clisp.org>
10921 Tolerate declared but missing accept4 syscall.
10922 * lib/accept4.c (accept4): Invoke original accept4 function first, if
10924 * lib/sys_socket.in.h (accept4): If the function is already present,
10926 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10927 * modules/accept4 (Makefile.am): Compile accept4.c always.
10928 Reported by Paolo Bonzini and Eric Blake.
10930 2009-08-23 Bruno Haible <bruno@clisp.org>
10932 New module 'accept4'.
10933 * lib/sys_socket.in.h (accept4): New declaration.
10934 * lib/accept4.c: New file.
10935 * m4/accept4.m4: New file.
10936 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10937 GNULIB_ACCEPT4, HAVE_ACCEPT4.
10938 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10940 * modules/accept4: New file.
10941 * doc/glibc-functions/accept4.texi: Mention the new module.
10943 2009-08-24 Jim Meyering <meyering@redhat.com>
10945 progname: also set global program_invocation_name, when possible
10946 Before this change, a libtool-enabled program that calls glibc's
10947 error function would report the program name as
10948 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10949 * modules/progname (configure.ac): Check for a declaration of
10950 program_invocation_name.
10951 * lib/progname.c: Include <errno.h>.
10952 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10953 Set program_invocation_name.
10955 2009-08-23 Bruno Haible <bruno@clisp.org>
10957 * lib/dup3.c: Include <string.h>.
10959 2009-08-23 Bruno Haible <bruno@clisp.org>
10961 * lib/dup3.c (dup3): Test only once whether the system actually exists.
10962 * lib/pipe2.c (pipe2): Likewise.
10963 Suggested by Eric Blake.
10965 2009-08-23 Bruno Haible <bruno@clisp.org>
10967 Tolerate declared but missing dup3 syscall.
10968 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10969 * lib/unistd.in.h (dup3): If the function is already present,
10971 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10972 * modules/dup3 (Makefile.am): Compile dup3.c always.
10973 Reported by Paolo Bonzini.
10975 2009-08-23 Bruno Haible <bruno@clisp.org>
10977 Tolerate declared but missing pipe2 syscall.
10978 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10980 * lib/unistd.in.h (pipe2): If the function is already present,
10982 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10983 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10984 Reported by Paolo Bonzini.
10986 2009-08-23 Bruno Haible <bruno@clisp.org>
10988 * lib/pipe2.c (pipe2): Move #ifs inside function.
10990 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10992 quotearg: document limitations of quote_these_too
10993 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10994 those limitations are created.
10995 * lib/quotearg.h (set_char_quoting): Document that digits and
10996 letters that are special after backslash are not permitted.
10997 (quotearg_char): Cross-reference set_char_quoting documentation.
10999 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
11001 quotearg: implement custom_quoting_style
11002 * lib/quotearg.c: (struct quoting_options): Add left_quote and
11003 right_quote fields.
11004 (set_custom_quoting): New public function.
11005 (quotearg_buffer_restyled): Add left_quote and right_quote
11006 arguments, handle them very much like locale quoting, and update
11008 (quotearg_n_custom): New public function.
11009 (quotearg_n_custom_mem): New public function.
11010 (quotearg_custom): New public function.
11011 (quotearg_custom_mem): New public function.
11012 * lib/quotearg.h: Prototype and document new public functions.
11013 (enum quoting_style): For escape_quoting_style and
11014 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11015 ignored even though they're otherwise like c_quoting_style.
11016 Add custom_quoting_style member and document with comparison to
11017 clocale_quoting_style.
11018 * tests/test-quotearg.c (custom_quotes): New array.
11019 (custom_results): New array.
11020 (main): Extend to test custom quoting.
11022 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
11024 quotearg: fix right quote escaping when it's in quote_these_too
11025 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11026 quote, be sure to prepend only one backslash.
11027 * tests/test-quotearg.c (use_quote_double_quotes): New function.
11030 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
11032 quotearg-tests: test escaping of embedded locale quotes
11033 * tests/test-quotearg.c (struct result_strings): Add member for
11035 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11036 (inputs): Add new input.
11037 (results_g): Add expected results.
11038 (flag_results): Likewise.
11039 (locale_results): Likewise.
11040 (compare_strings): Check those.
11042 2009-08-23 Bruno Haible <bruno@clisp.org>
11044 Tests for module 'dup3'.
11045 * modules/dup3-tests: New file.
11046 * tests/test-dup3.c: New file.
11049 * lib/unistd.in.h (dup3): New declaration.
11050 * lib/dup3.c: New file.
11051 * m4/dup3.m4: New file.
11052 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11054 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11055 * modules/dup3: New file.
11056 * doc/glibc-functions/dup3.texi: Mention the new module.
11058 2009-08-23 Bruno Haible <bruno@clisp.org>
11060 Tweak the dup2 test.
11061 * tests/test-dup2.c (main): Create the test file empty. Verify that an
11062 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11063 the test file is still empty. Fix argument order of lseek.
11065 2009-08-23 Bruno Haible <bruno@clisp.org>
11067 Avoid test link errors when the modules getopt-gnu, gettext are used.
11068 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11069 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11071 2009-08-23 Bruno Haible <bruno@clisp.org>
11073 Fix getdtablesize() on mingw.
11074 * lib/getdtablesize.c (getdtablesize): Implement differently.
11075 * lib/unistd.in.h (getdtablesize): Improve comment.
11077 2009-08-23 Bruno Haible <bruno@clisp.org>
11079 New module 'mkostemp'.
11080 Based on Ulrich Drepper's 2007-08-10 change in glibc.
11081 * lib/stdlib.in.h (mksotemp): New declaration.
11082 * lib/mkostemp.c: New file, from glibc with modifications.
11083 * lib/tempname.h (GT_FILE): Remove outdated comment.
11084 (gen_tempname): Add flags argument.
11085 * lib/tempname.c (__GT_BIGFILE): Remove macro.
11086 (__GT_FILE): Map to 1.
11087 (small_open, large_open): Remove macros.
11088 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11089 * lib/mkstemp.c (mkstemp): Update.
11090 * lib/mkdtemp.c (mkdtemp): Likewise.
11091 * m4/mkostemp.m4: New file.
11092 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11094 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11096 * modules/mkostemp: New file, based on modules/mkstemp.
11097 * doc/glibc-functions/mkostemp.texi: Mention the new module.
11098 * NEWS: Mention the change.
11100 2009-08-23 Bruno Haible <bruno@clisp.org>
11102 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11103 Reported by Eric Blake.
11105 2009-08-23 Bruno Haible <bruno@clisp.org>
11107 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11108 Reported by Eric Blake.
11110 2009-08-23 Bruno Haible <bruno@clisp.org>
11112 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11113 * modules/pipe2 (Depends-on): Likewise.
11115 2009-08-23 Eric Blake <ebb9@byu.net>
11117 fcntl-h: add O_TTY_INIT support
11118 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11119 * tests/test-fcntl-h.c (o): Test it.
11120 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11122 fcntl-h: rename from fcntl, in preparation for fcntl(2)
11123 * modules/fcntl: Move <fcntl.h> header replacement...
11124 * modules/fcntl-h: ...to new name, so as not to collide with
11125 like-named function.
11126 * tests/test-fcntl.c: Rename...
11127 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
11128 * modules/fcntl-tests: Rename...
11129 * modules/fcntl-h-tests: ...to this. Update test file name.
11130 * modules/chdir-long (Depends-on): Update clients.
11131 * modules/chdir-safer (Depends-on): Likewise.
11132 * modules/fcntl-safer (Depends-on): Likewise.
11133 * modules/fts (Depends-on): Likewise.
11134 * modules/mkancesdirs (Depends-on): Likewise.
11135 * modules/mkdir-p (Depends-on): Likewise.
11136 * modules/open (Depends-on): Likewise.
11137 * modules/savewd (Depends-on): Likewise.
11138 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11139 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11141 2009-08-22 Bruno Haible <bruno@clisp.org>
11143 * modules/binary-io (License): Relicense under LGPL.
11144 * modules/pipe2 (License): Likewise.
11146 2009-08-22 Bruno Haible <bruno@clisp.org>
11148 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11150 * lib/pipe-filter-gi.c (filter_init): Likewise.
11151 Reported by Eric Blake.
11153 2009-08-22 Bruno Haible <bruno@clisp.org>
11155 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11156 * modules/pipe (Depends-on): Add pipe2.
11158 2009-08-22 Bruno Haible <bruno@clisp.org>
11160 Tests for module 'pipe2'.
11161 * modules/pipe2-tests: New file.
11162 * tests/test-pipe2.c: New file.
11164 New module 'pipe2'.
11165 * lib/unistd.in.h (pipe2): New declaration.
11166 * lib/pipe2.c: New file.
11167 * m4/pipe2.m4: New file.
11168 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11170 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11171 * modules/pipe2: New file.
11172 * doc/glibc-functions/pipe2.texi: Mention the new module.
11174 2009-08-22 Bruno Haible <bruno@clisp.org>
11176 Reference some new glibc functions.
11177 * doc/glibc-functions/accept4.texi: New file.
11178 * doc/glibc-functions/dup3.texi: New file.
11179 * doc/glibc-functions/mkostemp.texi: New file.
11180 * doc/glibc-functions/pipe2.texi: New file.
11181 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11182 (Glibc sys/socket.h): Refer to accept4.
11183 (Glibc unistd.h): Refer to dup3, pipe2.
11184 Reported by Eric Blake.
11186 2009-08-22 Jim Meyering <meyering@redhat.com>
11187 Bruno Haible <bruno@clisp.org>
11189 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11190 This makes it so packages using automake-1.11's silent-rules option
11191 can print e.g., a single "GEN configmake.h" line, rather than
11192 the 30+ statements that perform the job. If you want to see the
11193 actual commands, you can still run "make V=1".
11194 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11195 so that make output is abbreviated when those variables are defined
11197 * modules/argz: Likewise.
11198 * modules/arpa_inet: Likewise.
11199 * modules/byteswap: Likewise.
11200 * modules/configmake: Likewise.
11201 * modules/dirent: Likewise.
11202 * modules/errno: Likewise.
11203 * modules/fcntl: Likewise.
11204 * modules/float: Likewise.
11205 * modules/fnmatch: Likewise.
11206 * modules/getopt-posix: Likewise.
11207 * modules/glob: Likewise.
11208 * modules/iconv_open: Likewise.
11209 * modules/inttypes: Likewise.
11210 * modules/localcharset: Likewise.
11211 * modules/locale: Likewise.
11212 * modules/math: Likewise.
11213 * modules/netdb: Likewise.
11214 * modules/netinet_in: Likewise.
11215 * modules/poll: Likewise.
11216 * modules/posix_spawnp-tests: Likewise.
11217 * modules/sched: Likewise.
11218 * modules/search: Likewise.
11219 * modules/selinux-h: Likewise.
11220 * modules/signal: Likewise.
11221 * modules/spawn: Likewise.
11222 * modules/stdarg: Likewise.
11223 * modules/stdbool: Likewise.
11224 * modules/stddef: Likewise.
11225 * modules/stdint: Likewise.
11226 * modules/stdio: Likewise.
11227 * modules/stdlib: Likewise.
11228 * modules/string: Likewise.
11229 * modules/strings: Likewise.
11230 * modules/sys_file: Likewise.
11231 * modules/sys_ioctl: Likewise.
11232 * modules/sys_select: Likewise.
11233 * modules/sys_socket: Likewise.
11234 * modules/sys_stat: Likewise.
11235 * modules/sys_time: Likewise.
11236 * modules/sys_times: Likewise.
11237 * modules/sys_utsname: Likewise.
11238 * modules/sys_wait: Likewise.
11239 * modules/sysexits: Likewise.
11240 * modules/time: Likewise.
11241 * modules/unistd: Likewise.
11242 * modules/wchar: Likewise.
11243 * modules/wctype: Likewise.
11245 2009-08-22 Jim Meyering <meyering@redhat.com>
11247 announce-gen: detect write failure
11248 * build-aux/announce-gen: Add Coda at end.
11249 Remove equivalent-but-more-verbose block at top.
11251 2009-08-19 Akim Demaille <demaille@gostai.com>
11253 bootstrap: --help to stdout.
11254 * bootstrap (usage): Don't send --help to stderr.
11255 Use a here doc instead of a long string.
11257 2009-08-21 Eric Blake <ebb9@byu.net>
11259 test-popen-safer: split from test-popen
11260 * tests/test-popen.c (main): Move...
11261 * tests/test-popen.h: ...into new file.
11262 * tests/test-popen-safer2.c: New file.
11263 * modules/popen-tests (Files): Add test-popen.h.
11264 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11265 Suggested by Bruno Haible.
11267 test-fcntl-safer: split from test-open
11268 * tests/test-open.c (main): Move...
11269 * tests/test-open.h: ...into new file.
11270 * tests/test-fcntl-safer.c: New file.
11271 * modules/open-tests (Files): Add test-open.h.
11272 * modules/fcntl-safer-tests: New file.
11273 Suggested by Bruno Haible.
11275 test-fopen-safer: split from test-fopen
11276 * tests/test-fopen.c (main): Move...
11277 * tests/test-fopen.h: ...into new file.
11278 * tests/test-fopen-safer.c: New file.
11279 * modules/fopen-tests (Files): Add test-fopen.h.
11280 * modules/fopen-safer-tests: New file.
11281 Suggested by Bruno Haible.
11283 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
11285 popen-safer: test O_CLOEXEC at run-time.
11286 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11288 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
11290 fcntl: move more flags to the header
11291 * lib/cloexec.c: Do not define FD_CLOEXEC here.
11292 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11293 * lib/fcntl.in.h: Do both things here.
11295 2009-08-21 Jim Meyering <meyering@redhat.com>
11297 consistently remove $@-t before redirecting to it
11298 * modules/argz: Remove $@-t and $@ before redirecting to the former.
11299 * modules/alloca-opt: Likewise.
11300 * modules/byteswap: Likewise.
11301 * modules/fnmatch: Likewise.
11302 * modules/getopt-posix: Likewise.
11303 * modules/glob: Likewise.
11304 * modules/poll: Likewise.
11305 * modules/posix_spawnp-tests: Likewise.
11306 * modules/sys_socket: Likewise.
11307 * modules/sysexits: Likewise.
11309 2009-08-21 Eric Blake <ebb9@byu.net>
11311 popen: simplify access to original popen
11312 * lib/popen.c (rpl_popen): No need to worry about popen being a
11314 Reported by Bruno Haible.
11316 2009-08-20 Eric Blake <ebb9@byu.net>
11318 build: avoid some compiler warnings
11319 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11320 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11322 (new_exclude_segment, excluded_file_pattern_p)
11323 (excluded_file_name_p): Reduce scope.
11324 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11325 old-style declaration.
11327 2009-08-20 Simon Josefsson <simon@josefsson.org>
11329 * tests/test-exclude1.sh: Handle Windows EOL.
11330 * tests/test-exclude2.sh: Likewise.
11331 * tests/test-exclude3.sh: Likewise.
11332 * tests/test-exclude4.sh: Likewise.
11333 * tests/test-exclude5.sh: Likewise.
11334 * tests/test-exclude6.sh: Likewise.
11335 * tests/test-exclude7.sh: Likewise.
11337 2009-08-19 Akim Demaille <demaille@gostai.com>
11339 bootstrap: find sha1sum when named gsha1sum.
11340 * bootstrap (find_tool): New.
11344 2009-08-20 Jim Meyering <meyering@redhat.com>
11346 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11347 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11348 expression that converts "." in a file name to "\." in the resulting
11349 regexp. Start with a dummy statement, so that prior shell variable
11350 definitions are expanded portably. Reported by Simon Josefsson.
11352 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
11354 Fix polling for writeability of a screen buffer.
11355 * lib/poll.c: Distinguish input and screen buffers for the
11356 Win32 implementation.
11357 * lib/select.c: Likewise.
11359 2009-08-19 Eric Blake <ebb9@byu.net>
11361 popen-safer: prevent popen from clobbering std descriptors
11362 * modules/popen-safer: New file.
11363 * lib/popen-safer.c: Likewise.
11364 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11365 * lib/stdio--.h (popen): Provide override.
11366 * lib/stdio-safer.h (popen_safer): Provide declaration.
11367 * tests/test-popen.c (includes): Partially test this.
11368 * modules/popen-safer-tests: New file, for more tests.
11369 * tests/test-popen-safer.c: Likewise.
11370 * MODULES.html.sh (file stream based Input/Output): Mention it.
11372 tests: test some of the *-safer modules
11373 * modules/fopen-safer (Depends-on): Add fopen.
11374 * modules/fcntl-safer (Depends-on): Add fcntl.
11375 * modules/stdlib-safer (Depends-on): Add stdlib.
11376 (configure.ac): Set indicator.
11377 * modules/unistd-safer (configure.ac): Likewise.
11378 * modules/tmpfile-safer (configure.ac): Likewise.
11379 (Depends-on): Add tmpfile.
11380 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11382 * tests/test-fopen.c (includes): Test safer versions when they are
11384 * tests/test-open.c (includes): Likewise.
11386 popen: fix cygwin 1.5 bug when stdin closed
11387 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11388 * modules/popen: New file.
11389 * modules/popen-tests: Likewise.
11390 * tests/test-popen.c: Likewise.
11391 * m4/popen.m4: Likewise.
11392 * lib/popen.c: Likewise.
11393 * lib/stdio.in.h (popen): New declaration.
11394 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11395 * modules/stdio (Makefile.am): Likewise.
11396 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11398 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
11400 maint.mk: give full control over update-copyright exclusions
11401 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11402 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11403 (update-copyright): Don't force inclusion of top-level
11404 ChangeLog. Don't force exclusion of all COPYING files, but make
11405 them the default exclusion instead.
11407 2009-08-16 Bruno Haible <bruno@clisp.org>
11409 Fix test failures on Solaris 10.
11410 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11411 tests when Solaris iconv() is used.
11412 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11413 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11414 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11415 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11416 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11418 2009-08-16 Bruno Haible <bruno@clisp.org>
11420 Fix test failures on Solaris 10.
11421 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11422 'tr' program and pass it as first argument.
11423 * tests/test-pipe-filter-gi1.sh: Likewise.
11424 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11425 program as first argument.
11426 * tests/test-pipe-filter-gi1.c (main): Likewise.
11428 2009-08-16 Eric Blake <ebb9@byu.net>
11430 fpurge: fix previous commits
11431 * modules/fpurge (Makefile.am): Make replacement conditional,
11432 partially reverting 2007-04-29 change; missed in previous
11434 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11437 2009-08-16 Bruno Haible <bruno@clisp.org>
11439 Clarify fpurge's effect on the file position.
11440 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11441 * tests/test-fpurge.c (main): Make a second pass for checking the file
11444 2009-08-16 Bruno Haible <bruno@clisp.org>
11446 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11447 declaration of fpurge is missing.
11448 * tests/test-fpurge.c (main): Check that the file has not more contents
11449 than expected. Close the file before removing it.
11451 2009-08-15 Eric Blake <ebb9@byu.net>
11453 fpurge: don't wrap working cygwin implementation
11454 * lib/fpurge.c (fpurge): Fix comment typo.
11455 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11456 1.7 to avoid replacement.
11457 * tests/test-fpurge.c (main): Enhance test.
11459 2009-08-15 Eric Blake <ebb9@byu.net>
11460 and Jim Meyering <meyering@redhat.com>
11462 test-update-copyright: skip if perl is insufficient
11463 * tests/test-update-copyright.sh: Failure to run maintainer tool
11464 should not cause testsuite failure on cygwin 1.5.
11466 2009-08-14 Eric Blake <ebb9@byu.net>
11468 doc: mention more functions added in cygwin 1.7.0
11469 * doc/posix-headers/limits.texi (limits.h): Update for recent
11471 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11472 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11473 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11474 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11475 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11477 2009-08-14 Eric Blake <ebb9@byu.net>
11479 maint.mk: simplify update-copyright rule
11480 * top/maint.mk (update-copyright-local): Delete, and document how
11481 to do it in cfg.mk instead.
11482 (update-copyright-exclude-regexp): Delete, and document how to do
11483 it in .x-update-copyright instead.
11484 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
11487 2009-08-14 Bruno Haible <bruno@clisp.org>
11489 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11491 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11493 maint.mk: support update-copyright-env
11494 * top/maint.mk (update-copyright-env): Define place-holder.
11495 (update-copyright): Expand $(update-copyright-env) before
11496 invoking update-copyright.
11498 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11500 update-copyright: implement forced reformatting
11501 * build-aux/update-copyright: Implement and document
11502 UPDATE_COPYRIGHT_FORCE.
11503 * tests/test-update-copyright.sh: Test it.
11505 2009-08-14 Eric Blake <ebb9@byu.net>
11506 and Bruno Haible <bruno@clisp.org>
11508 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11509 * tests/test-locale.c: Revert previous patch related to NULL.
11510 * tests/test-stdio.c: Likewise.
11511 * tests/test-stdlib.c: Likewise.
11512 * tests/test-string.c: Likewise.
11513 * tests/test-unistd.c: Likewise.
11514 * modules/time-tests (Depends-on): Add verify.
11515 * modules/wchar-tests (Depends-on): Likewise.
11516 * tests/test-time.c: Test for NULL compliance.
11517 * tests/test-wchar.c: Likewise.
11518 * modules/locale (Depends-on): Add stddef.
11519 * modules/stdio (Depends-on): Likewise.
11520 * modules/stdlib (Depends-on): Likewise.
11521 * modules/string (Depends-on): Likewise.
11522 * modules/time (Depends-on): Likewise.
11523 * modules/unistd (Depends-on): Likewise.
11524 * modules/wchar (Depends-on): Likewise.
11525 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11526 * lib/stdlib.in.h (includes): Likewise.
11527 * lib/string.in.h (includes): Likewise.
11528 * lib/time.in.h (includes): Likewise.
11529 * lib/unistd.in.h (includes): Likewise.
11530 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11532 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11533 * m4/stddef_h.m4: New file.
11534 * modules/stddef: Likewise.
11535 * lib/stddef.in.h: Likewise.
11536 * modules/stddef-tests: Likewise.
11537 * tests/test-stddef.c: Likewise.
11538 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11539 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11540 * doc/posix-headers/locale.texi (locale.h): Likewise.
11541 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11542 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11543 * doc/posix-headers/string.texi (string.h): Likewise.
11544 * doc/posix-headers/time.texi (time.h): Likewise.
11545 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11546 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11548 2009-08-14 Eric Blake <ebb9@byu.net>
11550 doc: improve git diff of texinfo files
11551 * .gitattributes: Add rule for *.texi files, with hint on how to
11553 Copied from m4, and based on a report by Bruno Haible.
11555 2009-08-14 Bruno Haible <bruno@clisp.org>
11557 Disable multithread support by default on Cygwin 1.5.x for real.
11558 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11560 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11562 update-copyright: much ado about intervals
11563 * build-aux/update-copyright: Implement and document
11564 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11565 of copyright year intervals.
11566 Also, document UPDATE_COPYRIGHT_YEAR.
11567 * tests/test-update-copyright.sh: Test it.
11569 update-copyright: convert 2-digit to 4-digit years
11570 * build-aux/update-copyright: Implement and document.
11571 * tests/test-update-copyright.sh: Update.
11573 2009-08-14 Jim Meyering <meyering@redhat.com>
11575 test-exclude: avoid coreutils "make check" failure
11576 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11577 just as in test-argmatch.c.
11579 2009-08-13 Eric Blake <ebb9@byu.net>
11581 test-dup2: fix bad assumption
11582 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11583 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11585 test-version-etc: fix CRLF portability issue
11586 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11588 * tests/test-argp-version-etc-1.sh: Likewise.
11590 getopt: update client modules
11591 * modules/argp (Depends-on): Use getopt-gnu.
11592 * modules/git-merge-changelog (Depends-on): Likewise.
11593 * modules/long-options (Depends-on): Likewise.
11594 * modules/xstrtol (Depends-on): Likewise.
11596 2009-08-13 Simon Josefsson <simon@josefsson.org>
11598 * tests/test-version-etc.sh: Don't fail on different
11599 project/version. Don't fail on CRLF differences. Rewrite to use
11600 multiple -e instead of multiple sed forks, suggested by Eric Blake
11602 * tests/test-argp-version-etc-1.sh: Likewise.
11604 2009-08-13 Simon Josefsson <simon@josefsson.org>
11606 * tests/test-version-etc.sh: Don't fail on different
11609 2009-08-12 Bruno Haible <bruno@clisp.org>
11611 Tests for modules 'getopt-posix', 'getopt-gnu'.
11612 * modules/getopt-posix-tests: New file.
11613 * tests/test-getopt.c: New file.
11614 * tests/test-getopt.h: New file.
11615 * tests/test-getopt_long.h: New file.
11617 New modules 'getopt-posix', 'getopt-gnu'.
11618 * modules/getopt-gnu: New file, renamed from modules/getopt.
11619 * modules/getopt-posix: New file.
11620 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11621 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11622 (gl_GETOPT): Remove macro.
11623 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11624 Disable the test against BSD systems that declare optreset. Test
11625 against mingw bug. Test against lack of support of optional arguments
11627 * doc/glibc-headers/getopt.texi: Update module name and list of
11628 relevant platforms.
11629 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11630 'getopt-gnu' and more portability problems.
11631 * NEWS: Mention the changes.
11633 2009-08-12 Bruno Haible <bruno@clisp.org>
11635 Ensure that optarg etc. get declared by <unistd.h>.
11636 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11637 AC_USE_SYSTEM_EXTENSIONS.
11638 * modules/getopt (Depends-on): Add 'extensions'.
11640 2009-08-12 Bruno Haible <bruno@clisp.org>
11642 Avoid test link errors.
11643 * modules/pipe-filter-ii-tests (Makefile.am): Define
11644 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11645 * modules/pipe-filter-gi-tests (Makefile.am): Define
11646 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11647 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11649 2009-08-12 Bruno Haible <bruno@clisp.org>
11651 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11652 gl_GETOPT_SUBSTITUTE before.
11653 (gl_GETOPT): Use it.
11654 * m4/argp.m4 (gl_ARGP): Update.
11655 Reported by Sergey Poznyakoff.
11657 * m4/getopt.m4: Reorder macros.
11658 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11659 (gl_GETOPT_SUBSTITUTE): Remove macro.
11661 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11663 Minor improvement in gitlog-to-changelog
11665 * build-aux/gitlog-to-changelog: New option `--format' makes
11666 output format string configurable.
11668 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11670 Optimize exclude: use hash tables for non-wildcard patterns.
11672 * lib/exclude.c: Include hash.h and mbuiter.h
11673 (struct exclude_pattern, exclude_segment): New data types.
11674 (struct exclude): Rewrite.
11675 (fnmatch_pattern_has_wildcards): New function.
11676 (new_exclude_segment, free_exclude_segment): New functions.
11677 (excluded_file_pattern_p, excluded_file_name_p): New functions.
11678 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11679 * lib/exclude.h (is_fnmatch_pattern): New prototype.
11680 * modules/exclude: Depend on hash and mbuiter.
11682 * modules/exclude-tests: New file.
11683 * tests/test-exclude.c: New file.
11684 * tests/test-exclude1.sh: New file.
11685 * tests/test-exclude2.sh: New file.
11686 * tests/test-exclude3.sh: New file.
11687 * tests/test-exclude4.sh: New file.
11688 * tests/test-exclude5.sh: New file.
11689 * tests/test-exclude6.sh: New file.
11690 * tests/test-exclude7.sh: New file.
11692 2009-08-12 Bruno Haible <bruno@clisp.org>
11694 Ensure that getopt() gets declared by <unistd.h>.
11695 * lib/unistd.in.h: Conditionally include getopt.h.
11696 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11697 Set GNULIB_UNISTD_H_GETOPT.
11698 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11699 GNULIB_UNISTD_H_GETOPT.
11700 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11702 2009-08-12 Bruno Haible <bruno@clisp.org>
11705 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11706 gl_replace_getopt instead of GETOPT_H.
11708 2009-08-12 Bruno Haible <bruno@clisp.org>
11710 * m4/getopt.m4: Add comments.
11712 2009-08-12 Bruno Haible <bruno@clisp.org>
11714 Disable multithread support by default on Cygwin 1.5.x.
11715 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11716 set gl_use_threads=no if not specified otherwise.
11718 2009-08-11 Bruno Haible <bruno@clisp.org>
11720 Avoid compilation error on NetBSD 5.0.
11721 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11722 * tests/test-stdio.c: Likewise.
11723 * tests/test-stdlib.c: Likewise.
11724 * tests/test-string.c: Likewise.
11725 * tests/test-unistd.c: Likewise.
11726 Reported by Greg Troxel <gdt@ir.bbn.com>
11727 at <https://savannah.gnu.org/support/?106973>.
11729 2009-08-11 Bruno Haible <bruno@clisp.org>
11731 * modules/dup2-tests (Depends-on): Remove close.
11733 Undo 2009-07-19 commit.
11734 * modules/acl-tests (Depends-on): Remove close.
11735 * modules/binary-io-tests (Depends-on): Likewise.
11736 * modules/closein-tests (Depends-on): Likewise.
11737 * modules/flock-tests (Depends-on): Likewise.
11738 * modules/fsync-tests (Depends-on): Likewise.
11739 * modules/lseek-tests (Depends-on): Likewise.
11740 * modules/pipe-tests (Depends-on): Likewise.
11741 * modules/posix_spawn-tests (Depends-on): Likewise.
11742 * modules/posix_spawnp-tests (Depends-on): Likewise.
11743 * modules/stat-time-tests (Depends-on): Likewise.
11744 * modules/yesno-tests (Depends-on): Likewise.
11746 2009-08-10 Bruno Haible <bruno@clisp.org>
11748 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11750 2009-08-10 Bruno Haible <bruno@clisp.org>
11753 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11755 2009-08-10 Bruno Haible <bruno@clisp.org>
11757 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11758 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11759 not only the first time.
11760 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11761 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11762 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11763 is 1, not only the the first time.
11765 2009-08-10 Bruno Haible <bruno@clisp.org>
11767 Make it possible to use module 'gethostname' without module 'close'.
11768 * lib/unistd.in.h (close): Evoke a link error only if
11769 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11770 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11771 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11772 * modules/unistd (Makefile.am): Substitute
11773 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11774 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11775 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11776 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11777 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11778 * modules/sys_ioctl (Makefile.am): Substitute
11779 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11780 * modules/socket (configure.ac): On native Windows, set
11781 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11782 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11783 Reported by Sam Steingold <sds@gnu.org>.
11785 2009-08-10 Bruno Haible <bruno@clisp.org>
11787 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11788 * modules/ioctl (configure.ac): Likewise.
11790 2009-08-10 Bruno Haible <bruno@clisp.org>
11792 Avoid collision between gnulib wrapper and libintl wrapper.
11793 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11794 already defined in intl/printf.c.
11795 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11796 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11798 2009-08-09 Bruno Haible <bruno@clisp.org>
11800 Make <sys/select.h> really self-contained, also on Solaris 10.
11801 * lib/sys_select.in.h: Include <string.h>.
11802 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11803 Solaris 10 problem.
11804 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11805 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11806 Reported by Jim Meyering.
11808 2009-08-09 Bruno Haible <bruno@clisp.org>
11810 Avoid warnings from 'aclocal' that are due to a use of macro name
11811 AM_XGETTEXT_OPTION that is not defined in automake.
11812 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11814 * modules/error (configure.ac): Likewise.
11815 * modules/propername (configure.ac): Likewise.
11816 * modules/vasprintf (configure.ac): Likewise.
11817 * modules/verror (configure.ac): Likewise.
11818 * modules/xprintf (configure.ac): Likewise.
11819 * modules/xvasprintf (configure.ac): Likewise.
11821 2009-08-08 Bruno Haible <bruno@clisp.org>
11823 Avoid compilation error in C++ mode.
11824 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11825 Reported by Sam Steingold <sds@gnu.org>.
11827 2009-08-08 Bruno Haible <bruno@clisp.org>
11829 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11830 for the various Unix platforms.
11831 * doc/posix-headers/limits.texi: Update platforms list regarding
11833 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11835 2009-08-07 Jim Meyering <meyering@redhat.com>
11837 selinux-at: fix typo in a comment
11838 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11839 Spotted by Paolo Bonzini.
11841 selinux-at: remove redundant m4 code, add documentation
11842 * modules/selinux-at (configure.ac): Remove redundant code.
11843 LIB_SELINUX is already set via the dependent module, selinux-h.
11844 (Include): Add quotes around selinux-at.h.
11845 * lib/selinux-at.h: Add documentation.
11846 Reported by Bruno Haible in
11847 http://marc.info/?l=gnulib-bug&m=124958988300749
11849 2009-08-07 Bruno Haible <bruno@clisp.org>
11851 Avoid link error on MacOS X 10.3 and 10.4.
11852 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11853 on non-ELF systems.
11854 * lib/argp-pv.c (argp_program_version): Likewise.
11855 Reported by Simon Josefsson.
11857 2009-08-07 Simon Josefsson <simon@josefsson.org>
11859 * tests/test-version-etc.sh: Use $EXEEXT.
11861 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
11863 update-copyright: update documentation to point to maint.mk
11864 * build-aux/update-copyright: Here.
11866 2009-08-06 Jim Meyering <meyering@redhat.com>
11868 maint.mk: support update-copyright-local
11869 * top/maint.mk (update-copyright-local): Define place-holder.
11870 (update-copyright): Depend on $(update-copyright-local).
11872 2009-08-06 Jim Meyering <meyering@redhat.com>
11874 selinux-at: new module
11875 Initially written for coreutils, this module will soon be
11876 used by findutils, too.
11877 * MODULES.html.sh [Misc]: Add selinux-at.
11878 * lib/selinux-at.h: New file, from coreutils.
11879 * lib/selinux-at.c: Likewise.
11880 * modules/selinux-at: Likewise.
11881 (License): Change from LGPL to GPL, since it depends
11882 on the GPL'd openat module.
11885 * README: Remove references to cogito.
11886 Remove cvs-repo-updating instructions from 2007.
11887 Don't imply that CVS is better if you have limited disk space.
11889 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11891 update-copyright: support C-style comments
11892 * build-aux/update-copyright: Implement and document.
11893 * tests/test-update-copyright.sh: Test.
11895 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11897 update-copyright: support omitted "(C)"
11898 * build-aux/update-copyright: Implement and document. Also,
11899 allow variable whitespace before "(C)".
11900 * tests/test-update-copyright.sh: Test.
11902 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11904 update-copyright: don't trip on non-FSF copyright statements
11905 * build-aux/update-copyright: Fix so that the first correctly
11906 formatted FSF copyright statement is recognized no matter what
11907 appears before it. Update documentation.
11908 * tests/test-update-copyright.sh: Test that.
11910 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11912 update-copyright: clean up code a little
11913 * build-aux/update-copyright: Append "_re" to the name of any
11914 variable holding a regular expression.
11915 Replace "old" and "new" with "stmt" in variable names.
11916 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11918 Format code more consistently.
11920 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11922 update-copyright-tests: improve portability
11923 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11924 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
11926 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11928 update-copyright: support @copyright{} and ©
11929 * build-aux/update-copyright: Implement and document.
11930 * tests/test-update-copyright.sh: Test.
11932 2009-08-04 Jim Meyering <meyering@redhat.com>
11934 update-copyright-tests: correctly test EOL=\r\n handling
11935 * tests/test-update-copyright.sh: Put \r at the end of some lines
11936 for the dos-eol tests. Based on a patch by Joel E. Denny.
11938 maint.mk: make update-copyright exclusion list more configurable
11939 * top/maint.mk (update-copyright): Default to excluding COPYING,
11940 but allow an override, in case someone does want to update that file.
11942 maint.mk: don't update copyright date in COPYING
11943 * top/maint.mk (update-copyright): Exclude COPYING.
11945 maint.mk: add a copyright-updating rule
11946 * top/maint.mk (update-copyright): New rule.
11947 Derived from coreutils/Makefile.am.
11949 update-copyright: rename some variables
11950 * build-aux/update-copyright: Rename a few variables for clarity.
11951 Tweak syntax. List Joel E. Denny as coauthor.
11953 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11955 update-copyright: fix bug for 2-digit last year and add tests
11956 * build-aux/update-copyright: Fix bug.
11957 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11959 * modules/update-copyright-tests: New
11960 * tests/test-update-copyright.sh: New.
11962 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11964 update-copyright: handle leading tabs in line prefix
11965 * build-aux/update-copyright: Count leading tabs as 8 spaces
11966 when computing margin. This helps with the formatting of
11967 ChangeLogs, for example.
11968 Fix documentation a little.
11970 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11972 update-copyright: support EOL=\r\n
11973 * build-aux/update-copyright: Implement that.
11975 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11977 update-copyright: automatically format copyright statements
11978 * build-aux/update-copyright: Implement that.
11979 Also, be a little more predictable and safer by always failing
11980 when the full copyright format is not perfectly recognized as an
11981 unbroken whole. Discussed at
11982 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11983 Rewrite documentation.
11985 2009-08-03 Bruno Haible <bruno@clisp.org>
11987 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11989 2009-08-02 Bruno Haible <bruno@clisp.org>
11991 Tests for module 'uname'.
11992 * modules/uname-tests: New file.
11993 * tests/test-uname.c: New file.
11995 New module 'uname'.
11996 * lib/uname.c: New file.
11997 * m4/uname.m4: New file.
11998 * modules/uname: New file.
11999 * doc/posix-functions/uname.texi: Mention the new module.
12001 2009-08-02 Bruno Haible <bruno@clisp.org>
12003 Tests for module 'sys_utsname'.
12004 * modules/sys_utsname-tests: New file.
12005 * tests/test-sys_utsname.c: New file.
12007 New module 'sys_utsname'.
12008 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12009 * m4/sys_utsname_h.m4: New file.
12010 * modules/sys_utsname: New file.
12011 * doc/posix-headers/sys_utsname.texi: Mention the new module.
12013 2009-08-02 Bruno Haible <bruno@clisp.org>
12015 Implicitly initialize the sockets library.
12016 * lib/gethostname.c: Include sockets.h.
12017 (rpl_gethostname): Invoke gl_sockets_startup.
12018 * lib/socket.c: Include sockets.h.
12019 (rpl_socket): Invoke gl_sockets_startup.
12020 * modules/gethostname (Depends-on): Add sockets.
12021 * modules/socket (Depends-on): Likewise.
12022 * tests/test-poll.c: Don't include sockets.h.
12023 (main): Don't invoke gl_sockets_startup.
12024 * tests/test-select.c: Don't include sockets.h.
12025 (main): Don't invoke gl_sockets_startup.
12027 2009-08-02 Bruno Haible <bruno@clisp.org>
12029 Allow multiple calls to gl_sockets_startup.
12030 * lib/sockets.c (initialized_sockets_version): New variable.
12031 (gl_sockets_startup): Do nothing if already called for this or a higher
12033 (gl_sockets_cleanup): Reset initialized_sockets_version.
12035 2009-08-03 Simon Josefsson <simon@josefsson.org>
12037 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
12038 different project/version.
12040 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
12041 Bruno Haible <bruno@clisp.org>
12043 Tests for module 'pipe-filter-gi'.
12044 * modules/pipe-filter-gi-tests: New file.
12045 * tests/test-pipe-filter-gi1.sh: New file.
12046 * tests/test-pipe-filter-gi1.c: New file.
12047 * tests/test-pipe-filter-gi2.sh: New file.
12048 * tests/test-pipe-filter-gi2-main.c: New file.
12049 * tests/test-pipe-filter-gi2-child.c: New file.
12051 New module 'pipe-filter-gi'.
12052 * lib/pipe-filter-gi.c: New file.
12053 * modules/pipe-filter-gi: New file.
12055 2009-08-02 Bruno Haible <bruno@clisp.org>
12056 Paolo Bonzini <bonzini@gnu.org>
12058 Tests for module 'pipe-filter-ii'.
12059 * modules/pipe-filter-ii-tests: New file.
12060 * tests/test-pipe-filter-ii1.sh: New file.
12061 * tests/test-pipe-filter-ii1.c: New file.
12062 * tests/test-pipe-filter-ii2.sh: New file.
12063 * tests/test-pipe-filter-ii2-main.c: New file.
12064 * tests/test-pipe-filter-ii2-child.c: New file.
12066 New module 'pipe-filter-ii'.
12067 * lib/pipe-filter.h: New file.
12068 * lib/pipe-filter-ii.c: New file.
12069 * lib/pipe-filter-aux.h: New file.
12070 * modules/pipe-filter-ii: New file.
12072 2009-08-02 Simon Josefsson <simon@josefsson.org>
12074 * lib/gc-libgcrypt.c: Change copyright to FSF.
12075 * lib/gc-gnulib.c: Likewise.
12077 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
12079 * lib/gethostname.c: Include limits.h.
12081 2009-08-02 Simon Josefsson <simon@josefsson.org>
12082 Bruno Haible <bruno@clisp.org>
12084 Ensure HOST_NAME_MAX as part of the gethostname module.
12085 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12086 define also HOST_NAME_MAX.
12087 * tests/test-gethostname.c: Include <limits.h>.
12088 (main): Check also HOST_NAME_MAX.
12089 * doc/posix-headers/limits.texi: Document the mingw problem.
12091 2009-08-02 Bruno Haible <bruno@clisp.org>
12093 * lib/gethostname.c (gethostname): Fix handling of large len argument.
12096 2009-03-31 Simon Josefsson <simon@josefsson.org>
12098 * lib/gethostname.c: Add Windows wrapper.
12099 * m4/gethostname.m4: Look for gethostname in -lws2_32.
12100 * modules/gethostname: Depend on sys_socket & errno, for also
12101 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
12102 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12104 2009-07-31 Jim Meyering <meyering@redhat.com>
12106 getloadavg: fix symbol name in comment
12107 * lib/getloadavg.c: Correct a typo I introduced when adding
12108 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12109 Matt Kraai spotted the problem.
12111 2009-07-29 Matt Kraai <mkraai@beckman.com>
12113 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12114 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12115 code also if ! defined N_NAME_POINTER.
12116 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12117 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12118 but the n_name member is a 12-byte array.
12120 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
12122 update-copyright: generalize comment handling
12123 * build-aux/update-copyright: Handle copyright statements
12124 within more comment styles.
12126 Report any file with an external copyright holder or parse failure.
12128 2009-07-29 Jim Meyering <meyering@redhat.com>
12130 mktime: correct setting of REPLACE_MKTIME
12131 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12133 update-copyright: new module
12134 * modules/update-copyright: New file.
12135 * build-aux/update-copyright: New file.
12136 * MODULES.html.sh (maint+release support): Add update-copyright.
12138 2009-07-27 Bruno Haible <bruno@clisp.org>
12140 Fix compilation error when <ctime> is used and mktime is replaced.
12141 * lib/time.in.h (mktime): New declaration.
12142 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12143 REPLACE_MKTIME instead of defining mktime in config.h.
12144 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12145 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12146 Reported by Ross McFarland <rwmcfa1@neces.com>.
12148 2009-07-27 Bruno Haible <bruno@clisp.org>
12150 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12151 Reported by Matt Kraai <mkraai@beckman.com>.
12153 2009-07-25 Jim Meyering <meyering@redhat.com>
12155 maint.mk: avoid warnings about missing files
12156 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12157 diagnostic when .prev-version does not exist.
12158 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12159 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12160 nonexistent cfg.mk.
12161 Suggestions from Simon Josefsson.
12163 2009-07-25 Bruno Haible <bruno@clisp.org>
12165 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12166 defined as macros. Needed on QNX 6.4.1.
12167 Reported by Matt Kraai <mkraai@beckman.com>.
12169 2009-07-23 Jim Meyering <meyering@redhat.com>
12171 maint.mk: invoke "make dist" with a working value of XZ_OPT
12172 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12174 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
12176 Make fseeko.c compile on QNX.
12177 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12179 2009-07-22 Peter Simons <simons@cryp.to>
12181 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12182 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12183 * lib/md4.h: Likewise.
12184 * lib/md5.h: Likewise.
12185 * lib/sha1.h: Likewise.
12186 * lib/sha256.h: Likewise.
12187 * lib/sha512.h: Likewise.
12189 tests-sha1: don't assign literal string to 'char *' variable
12190 * tests/test-sha1.c (main): Declare locals with "const" to match
12191 attributes of the right hand side.
12193 2009-07-21 Eric Blake <ebb9@byu.net>
12195 dup2: fix more mingw problems
12196 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12198 * doc/posix-functions/dup2.texi (dup2): Document the bug.
12199 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12200 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12201 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12202 care of mingw bugs.
12204 2009-07-21 Jim Meyering <meyering@redhat.com>
12206 vc-list-files: avoid failure when /bin/sh is dash
12207 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12208 On some Debian based systems, /bin/sh is a symlink to dash, and running
12209 this command would omit the "/" following each 'tests' prefix:
12210 dash -x build-aux/vc-list-files -C . tests
12211 That is because bash and dash work differently:
12212 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12216 2009-07-21 Eric Blake <ebb9@byu.net>
12218 dup2-tests: test previous patch
12219 * modules/dup2-tests: New file.
12220 * tests/test-dup2.c: Likewise.
12221 * tests/test-open.c (main): Avoid unspecified behavior.
12222 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12225 dup2: work around mingw and cygwin 1.5 bug
12226 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12227 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12228 * modules/unistd (Makefile.am): Substitute it.
12229 * lib/unistd.in.h (dup2): Declare the replacement.
12230 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12231 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12232 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12233 * modules/execute (Depends-on): Add dup2.
12234 * modules/fseterr (Depends-on): Likewise.
12235 * modules/pipe (Depends-on): Likewise.
12236 * modules/posix_spawn-internal (Depends-on): Likewise.
12238 2009-07-21 Bruno Haible <bruno@clisp.org>
12240 * modules/.gitattributes: New file.
12242 2009-07-20 Bruno Haible <bruno@clisp.org>
12244 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12247 2009-07-20 Eric Blake <ebb9@byu.net>
12249 test-pipe: make a bit more robust.
12250 * tests/test-pipe.c (myerr): Allow error messages regardless of
12251 what we do to stderr.
12252 (test_pipe): Rearrange to avoid deadlock.
12253 (child_main): Try a larger read, to ensure we avoided deadlock.
12254 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12255 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12258 2009-07-19 Jim Meyering <meyering@redhat.com>
12260 fts: avoid false-positive cycle-detection
12261 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12262 for each new command line argument.
12264 2009-07-19 Bruno Haible <bruno@clisp.org>
12266 Fix build error on mingw with the modules sys_select and unistd.
12267 * modules/acl-tests (Depends-on): Add close.
12268 * modules/binary-io-tests (Depends-on): Likewise.
12269 * modules/closein-tests (Depends-on): Likewise.
12270 * modules/flock-tests (Depends-on): Likewise.
12271 * modules/fsync-tests (Depends-on): Likewise.
12272 * modules/lseek-tests (Depends-on): Likewise.
12273 * modules/pipe-tests (Depends-on): Likewise.
12274 * modules/posix_spawn-tests (Depends-on): Likewise.
12275 * modules/posix_spawnp-tests (Depends-on): Likewise.
12276 * modules/stat-time-tests (Depends-on): Likewise.
12277 * modules/yesno-tests (Depends-on): Likewise.
12279 2009-07-19 Bruno Haible <bruno@clisp.org>
12281 Unify conditionals.
12282 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12283 macros, not at the compiler macros.
12284 * lib/pipe.c: Likewise.
12285 * lib/execute.c: Likewise.
12286 * lib/spawni.c: Likewise.
12288 2009-07-19 Bruno Haible <bruno@clisp.org>
12290 Fix handling of closed stdin/stdout/stderr on mingw.
12291 * lib/w32spawn.h: Include unistd.h.
12292 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12293 file descriptor with O_NOINHERIT flag.
12294 (fd_safer_noinherit): New function, based on fd-safer.c.
12295 (dup_safer_noinherit): New function, based on dup-safer.c.
12296 (undup_safer_noinherit): New function.
12297 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12298 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12299 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12300 instead of fd_safer.
12301 * tests/test-pipe.c: Include <windows.h>.
12302 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12304 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12306 (test_pipe): Pass an extra argument for disambiguation.
12307 (main): Invoke parent_main or child_main.
12309 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12312 2009-07-18 Eric Blake <ebb9@byu.net>
12314 test-pipe: fix mingw build
12315 * tests/test-pipe.c (main): Avoid fcntl on mingw.
12317 2009-07-18 Bruno Haible <bruno@clisp.org>
12319 * modules/pipe-tests (Makefile.am): Fix typo.
12321 2009-07-18 Eric Blake <ebb9@byu.net>
12323 error: fix mingw build
12324 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12325 Reported by Bruno Haible.
12327 error: avoid undefined use of stdout
12328 * lib/error.c (error, error_at_line): Check that fd 1 is open
12329 before flushing stdout. Avoids a crash on cygwin when libsigsegv
12330 is handling faults and the close_stdout module wants to report the
12331 detection of closed stdout as an error.
12333 2009-07-17 Eric Blake <ebb9@byu.net>
12335 pipe: be robust in face of closed fds
12336 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12337 should cause child to misbehave.
12338 * modules/pipe-tests: New module.
12339 * tests/test-pipe.c: New file.
12340 * tests/test-pipe.sh: New file.
12341 Reported by Akim Demaille.
12343 2009-07-14 Bruno Haible <bruno@clisp.org>
12345 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12346 Reported by anonymous kc.
12348 2009-07-07 Jim Meyering <meyering@redhat.com>
12350 maint.mk: don't look for translatable strings in *.m4 or *.mk
12351 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12352 when searching for translatable strings.
12354 2009-07-05 Jim Meyering <meyering@redhat.com>
12356 remove superfluous parentheses in STREQ definition
12357 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12358 * lib/getugroups.c (STREQ): Likewise.
12359 * lib/fnmatch.c (STREQ): Likewise.
12360 Spotted by Bruno Haible.
12362 2009-07-04 Jim Meyering <meyering@redhat.com>
12364 argv-iter: new module
12365 * MODULES.html.sh: Add argv-iter.
12366 * lib/argv-iter.c, lib/argv-iter.h: New files.
12367 * modules/argv-iter: New file.
12368 * modules/argv-iter-tests: New file.
12369 * tests/test-argv-iter.c: Test it.
12371 2009-07-04 Bruno Haible <bruno@clisp.org>
12374 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12375 contains more exact copies of a given entry than file2, leave the extra
12376 copies unpaired rather than aborting.
12377 Reported by Eric Blake.
12379 2009-07-02 Bruno Haible <bruno@clisp.org>
12381 Speedup git-merge-changelog for git cherry-pick.
12382 * lib/git-merge-changelog.c (struct entries_mapping): New type.
12383 (entries_mapping_get): New function, extracted from compute_mapping.
12384 (entries_mapping_reverse_get): New function.
12385 (compute_mapping): Add a 'full' argument. Return the result in a
12386 'struct entries_mapping'.
12387 (main): Update. Access the mappings through entries_mapping_get.
12388 Reported by Eric Blake.
12390 2009-07-02 Bruno Haible <bruno@clisp.org>
12392 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12395 2009-07-02 Bruno Haible <bruno@clisp.org>
12397 Speed up approximate search for matching ChangeLog entries.
12398 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12399 argument. Call fstrcmp_bounded instead of fstrcmp.
12400 (compute_mapping, try_split_merged_entry, main): Update callers.
12402 2009-07-02 Bruno Haible <bruno@clisp.org>
12404 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12406 2009-06-30 Bruno Haible <bruno@clisp.org>
12408 Reduce the number of uc_is_cased calls.
12409 * lib/unicase.h (casing_suffix_context_t): Add
12410 'first_char_except_ignorable' field.
12411 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12412 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12413 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12414 Update initializer.
12415 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12416 case-ignorable characters.
12417 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12418 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12419 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12420 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12421 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12423 2009-06-30 Bruno Haible <bruno@clisp.org>
12425 Tests for module 'unicase/ignorable'.
12426 * modules/unicase/ignorable-tests: New file.
12427 * tests/unicase/test-ignorable.c: New file, generated by
12430 Tests for module 'unicase/cased'.
12431 * modules/unicase/cased-tests: New file.
12432 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12433 * tests/unicase/test-predicate-part1.h: New file, derived from
12434 tests/unictype/test-predicate-part1.h.
12435 * tests/unicase/test-predicate-part2.h: New file, same as
12436 tests/unictype/test-predicate-part2.h.
12438 Fix evaluation of "Before C" condition of FINAL_SIGMA.
12439 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12440 (output_casing_properties): New function.
12442 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12443 * lib/unicase/cased.c: Include unictype/bitmap.h.
12444 (uc_is_cased): Define through a bitmap lookup.
12445 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12446 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12447 (uc_is_case_ignorable): Define through a bitmap lookup.
12448 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12449 lib/unictype/bitmap.h.
12450 (Depends-on): Add inline. Clean up.
12451 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12452 lib/unictype/bitmap.h.
12453 (Depends-on): Add inline. Clean up.
12454 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12456 * tests/unicase/test-u16-tolower.c (main): Likewise.
12457 * tests/unicase/test-u32-tolower.c (main): Likewise.
12459 2009-06-30 Bruno Haible <bruno@clisp.org>
12461 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12462 * lib/unicase/u16-casemap.c: Likewise.
12463 * lib/unicase/u32-casemap.c: Likewise.
12465 2009-06-29 Bruno Haible <bruno@clisp.org>
12467 Define u32_casefold as a wrapper around u32_ct_casefold.
12468 * lib/unicase/u32-casefold.c: Update.
12469 * modules/unicase/u32-casefold (Depends-on): Add
12470 unicase/u32-ct-casefold, unicase/empty-prefix-context,
12471 unicase/empty-suffix-context. Clean up.
12473 Define u16_casefold as a wrapper around u16_ct_casefold.
12474 * lib/unicase/u16-casefold.c: Update.
12475 * modules/unicase/u16-casefold (Depends-on): Add
12476 unicase/u16-ct-casefold, unicase/empty-prefix-context,
12477 unicase/empty-suffix-context. Clean up.
12479 Define u8_casefold as a wrapper around u8_ct_casefold.
12480 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12481 * lib/unicase/u8-casefold.c: Update.
12482 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12483 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12485 Define u32_totitle as a wrapper around u32_ct_totitle.
12486 * lib/unicase/u32-totitle.c: Update.
12487 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12488 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12490 Define u16_totitle as a wrapper around u16_ct_totitle.
12491 * lib/unicase/u16-totitle.c: Update.
12492 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12493 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12495 Define u8_totitle as a wrapper around u8_ct_totitle.
12496 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12498 (FUNC): Delegate to U_CT_TOTITLE.
12499 * lib/unicase/u8-totitle.c: Update.
12500 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12501 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12503 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12505 * modules/unicase/u32-tolower (Depends-on): Add
12506 unicase/empty-prefix-context, unicase/empty-suffix-context.
12508 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12510 * modules/unicase/u16-tolower (Depends-on): Add
12511 unicase/empty-prefix-context, unicase/empty-suffix-context.
12513 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12514 * modules/unicase/u8-tolower (Depends-on): Add
12515 unicase/empty-prefix-context, unicase/empty-suffix-context.
12517 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12519 * modules/unicase/u32-toupper (Depends-on): Add
12520 unicase/empty-prefix-context, unicase/empty-suffix-context.
12522 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12524 * modules/unicase/u16-toupper (Depends-on): Add
12525 unicase/empty-prefix-context, unicase/empty-suffix-context.
12527 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12528 * modules/unicase/u8-toupper (Depends-on): Add
12529 unicase/empty-prefix-context, unicase/empty-suffix-context.
12531 New module 'unicase/u32-ct-casefold'.
12532 * lib/unicase/u32-ct-casefold.c: New file.
12533 * modules/unicase/u32-ct-casefold: New file.
12535 New module 'unicase/u16-ct-casefold'.
12536 * lib/unicase/u16-ct-casefold.c: New file.
12537 * modules/unicase/u16-ct-casefold: New file.
12539 New module 'unicase/u8-ct-casefold'.
12540 * lib/unicase/u8-ct-casefold.c: New file.
12541 * lib/unicase/u-ct-casefold.h: New file, derived from
12542 lib/unicase/u-casefold.h.
12543 * modules/unicase/u8-ct-casefold: New file.
12545 New module 'unicase/u32-ct-totitle'.
12546 * lib/unicase/u32-ct-totitle.c: New file.
12547 * modules/unicase/u32-ct-totitle: New file.
12549 New module 'unicase/u16-ct-totitle'.
12550 * lib/unicase/u16-ct-totitle.c: New file.
12551 * modules/unicase/u16-ct-totitle: New file.
12553 New module 'unicase/u8-ct-totitle'.
12554 * lib/unicase/u8-ct-totitle.c: New file.
12555 * lib/unicase/u-ct-totitle.h: New file, derived from
12556 lib/unicase/u-totitle.h.
12557 * modules/unicase/u8-ct-totitle: New file.
12559 New module 'unicase/u32-ct-tolower'.
12560 * lib/unicase/u32-ct-tolower.c: New file.
12561 * modules/unicase/u32-ct-tolower: New file.
12563 New module 'unicase/u16-ct-tolower'.
12564 * lib/unicase/u16-ct-tolower.c: New file.
12565 * modules/unicase/u16-ct-tolower: New file.
12567 New module 'unicase/u8-ct-tolower'.
12568 * lib/unicase/u8-ct-tolower.c: New file.
12569 * modules/unicase/u8-ct-tolower: New file.
12571 New module 'unicase/u32-ct-toupper'.
12572 * lib/unicase/u32-ct-toupper.c: New file.
12573 * modules/unicase/u32-ct-toupper: New file.
12575 New module 'unicase/u16-ct-toupper'.
12576 * lib/unicase/u16-ct-toupper.c: New file.
12577 * modules/unicase/u16-ct-toupper: New file.
12579 New module 'unicase/u8-ct-toupper'.
12580 * lib/unicase/u8-ct-toupper.c: New file.
12581 * modules/unicase/u8-ct-toupper: New file.
12583 Add context arguments to u*_casemap functions.
12584 * lib/unicase/unicasemap.h: Include unicase.h.
12585 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12586 suffix_context arguments.
12587 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12589 (FUNC): Add prefix_context and suffix_context arguments. Use
12590 uc_is_cased and uc_is_case_ignorable.
12591 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12592 * lib/unicase/u16-casemap.c: Likewise.
12593 * lib/unicase/u32-casemap.c: Likewise.
12594 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12595 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12596 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12597 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12598 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12599 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12601 New module 'unicase/u32-suffix-context'.
12602 * lib/unicase/u32-suffix-context.c: New file.
12603 * modules/unicase/u32-suffix-context: New file.
12605 New module 'unicase/u16-suffix-context'.
12606 * lib/unicase/u16-suffix-context.c: New file.
12607 * modules/unicase/u16-suffix-context: New file.
12609 New module 'unicase/u8-suffix-context'.
12610 * lib/unicase/u8-suffix-context.c: New file.
12611 * lib/unicase/u-suffix-context.h: New file.
12612 * modules/unicase/u8-suffix-context: New file.
12614 New module 'unicase/empty-suffix-context'.
12615 * lib/unicase/empty-suffix-context.c: New file.
12616 * modules/unicase/empty-suffix-context: New file.
12618 New module 'unicase/u32-prefix-context'.
12619 * lib/unicase/u32-prefix-context.c: New file.
12620 * modules/unicase/u32-prefix-context: New file.
12622 New module 'unicase/u16-prefix-context'.
12623 * lib/unicase/u16-prefix-context.c: New file.
12624 * modules/unicase/u16-prefix-context: New file.
12626 New module 'unicase/u8-prefix-context'.
12627 * lib/unicase/u8-prefix-context.c: New file.
12628 * lib/unicase/u-prefix-context.h: New file.
12629 * lib/unicase/context.h: New file.
12630 * modules/unicase/u8-prefix-context: New file.
12632 New module 'unicase/empty-prefix-context'.
12633 * lib/unicase/empty-prefix-context.c: New file.
12634 * modules/unicase/empty-prefix-context: New file.
12636 New module 'unicase/ignorable'.
12637 * lib/unicase/ignorable.c: New file.
12638 * modules/unicase/ignorable: New file.
12640 New module 'unicase/cased'.
12641 * lib/unicase/caseprop.h: New file.
12642 * lib/unicase/cased.c: New file.
12643 * modules/unicase/cased: New file.
12645 New functions for case mapping of substrings.
12646 * lib/unicase.h (casing_prefix_context_t): New type.
12647 (unicase_empty_prefix_context): New variable.
12648 (u8_casing_prefix_context, u16_casing_prefix_context,
12649 u32_casing_prefix_context, u8_casing_prefixes_context,
12650 u16_casing_prefixes_context, u32_casing_prefixes_context): New
12652 (casing_suffix_context_t): New type.
12653 (unicase_empty_suffix_context): New variable.
12654 (u8_casing_suffix_context, u16_casing_suffix_context,
12655 u32_casing_suffix_context, u8_casing_suffixes_context,
12656 u16_casing_suffixes_context, u32_casing_suffixes_context,
12657 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12658 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12659 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12662 2009-06-28 Jim Meyering <meyering@redhat.com>
12664 boostrap: indent only with spaces
12665 * build-aux/bootstrap: Indent only with spaces, never TABs.
12667 bootstrap: split long lines
12668 * build-aux/bootstrap: Keep line length < 80.
12670 bootstrap: sync from coreutils
12671 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12672 just as autoreconf does. Verify a list of prerequisite
12673 package-name,version-number pairs if defined in bootstrap.conf.
12674 Refer to README-prereq, if prerequisites are not satisfied.
12676 2009-06-27 Eric Blake <ebb9@byu.net>
12678 tests: add test for bogus NULL definition
12679 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12680 * tests/test-stdlib.c: Likewise.
12681 * tests/test-string.c: Likewise.
12682 * tests/test-locale.c: Likewise.
12683 * tests/test-unistd.c: Likewise.
12684 * modules/stdio-tests (Depends-on): Add verify.
12685 * modules/stdlib-tests (Depends-on): Likewise.
12686 * modules/string-tests (Depends-on): Likewise.
12687 * modules/locale-tests (Depends-on): Likewise.
12688 * modules/unistd-tests (Depends-on): Likewise.
12690 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12692 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12693 self-explaining comment.
12694 * m4/selinux-selinux-h: Update serial.
12695 (gl_LIBSELINUX): New macro, adding a warning for missing development
12696 packages to code extracted from...
12697 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
12698 Add warning for missing development packages here, too.
12700 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
12702 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12704 2009-06-25 Eric Blake <ebb9@byu.net>
12706 version-etc: fix regression
12707 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12709 (version_etc): Use it, to catch bugs with trailing NULL.
12710 * lib/version-etc.c (version_etc_arn): Delete unused argument.
12711 (version_etc_va): Fix logic bug.
12712 * modules/version-etc-tests: Add test.
12713 * tests/test-version-etc.c: New file.
12714 * tests/test-version-etc.sh: Likewise.
12716 2009-06-25 Sam Steingold <sds@gnu.org>
12718 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12719 mbtowc declaration.
12721 2009-06-25 Eric Blake <ebb9@byu.net>
12723 fpurge: migrate into <stdio.h>
12724 * lib/fpurge.h: Delete...
12725 * lib/stdio.in.h (fpurge): ...and declare here, instead.
12726 * lib/fpurge.c (fpurge): Change declaring header.
12727 * modules/fpurge (Files): Drop deleted file.
12728 (Depends-on): Add stdio.
12729 (configure.ac): Set witness.
12730 * modules/stdio (Makefile.am): Support fpurge macros.
12731 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12732 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12733 * lib/fflush.c: Update client.
12734 * tests/test-fpurge.c: Likewise.
12735 * NEWS: Mention the change.
12737 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12739 * lib/argp-version-etc.c (program_authors): Add const
12741 * lib/version-etc.c: Fix typos in the comments.
12742 * modules/argp-version-etc: Depends on version-etc.
12744 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12746 argp-version-etc: new module.
12748 * lib/argp-version-etc.c: New file.
12749 * lib/argp-version-etc.h: New file.
12750 * modules/argp-version-etc: New file.
12751 * modules/argp-version-etc-tests: New file.
12752 * tests/test-argp-version-etc.c: New test.
12753 * tests/test-argp-version-etc-1.sh: New test.
12755 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12757 Provide additional interfaces and documentation for version-etc
12760 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12762 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12765 2009-06-24 Bruno Haible <bruno@clisp.org>
12767 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12768 HAVE_LIB${NAME} macro.
12769 Reported by Sam Steingold <sds@gnu.org>.
12771 2009-06-23 Simon Josefsson <simon@josefsson.org>
12773 * modules/hash-tests (test_hash_LDADD): Link to libintl when
12776 2009-06-21 Bruno Haible <bruno@clisp.org>
12778 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12780 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12781 together with LIB${NAME}, LTLIB${NAME}.
12782 Reported by Sam Steingold <sds@gnu.org>.
12784 2009-06-20 Jim Meyering <meyering@redhat.com>
12786 tests: make sc_require_test_exit_idiom more generic
12787 * top/maint.mk (Exit_witness_file): New overridable variable.
12788 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12789 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12791 2009-06-19 Jim Meyering <meyering@redhat.com>
12793 hash: reverse order of src/dst parameters in an internal interface
12794 * lib/hash.c (transfer_entries): Reverse order of parameters to
12795 put DST before SRC. Adjust callers.
12797 tests: test-hash: avoid wholesale duplication
12798 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12799 Instead, use a loop and add a single conditional.
12801 tests: test-hash: allow seed selection via a command line argument
12802 * tests/test-hash.c (get_seed): New function.
12805 2009-06-19 Eric Blake <ebb9@byu.net>
12807 hash: avoid memory leak on allocation failure
12808 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12809 failure. Factor repeated algorithm...
12810 (transfer_entries): ...into new helper routine.
12811 (hash_delete): React to hash_rehash return value.
12813 hash: reduce memory pressure in hash_rehash no-op case
12814 * lib/hash.c (next_prime): Avoid overflow.
12815 (hash_initialize): Factor bucket size computation...
12816 (compute_bucket_size): ...into new helper function.
12817 (hash_rehash): Use new function and open coding to reduce memory
12818 pressure, and avoid a memory leak in USE_OBSTACK code.
12819 Reported by Jim Meyering.
12821 2009-06-18 Eric Blake <ebb9@byu.net>
12823 hash: make rotation more obvious
12824 * modules/hash (Depends-on): Add bitrotate and stdint.
12825 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12826 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
12827 (SIZE_MAX): Rely on headers for definition.
12828 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12829 (raw_hasher): Use rotr_sz.
12830 Suggested by Jim Meyering.
12832 hash: fix memory leak in last patch
12833 * lib/hash.c (hash_rehash): Avoid memory leak.
12835 hash: avoid no-op rehashing
12836 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12838 hash: provide default callback functions
12839 * lib/hash.c (raw_hasher, raw_comparator): New functions.
12840 (hash_initialize): Use them as defaults.
12841 * tests/test-hash.c (main): Test this.
12843 hash: minor optimization
12844 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12846 (hash_initialize): Document this promise.
12847 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12848 * tests/test-hash.c (hash_compare_strings): Test this.
12850 2009-06-18 Bruno Haible <bruno@clisp.org>
12852 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12853 going to be replaced anyway.
12855 2009-06-18 Bruno Haible <bruno@clisp.org>
12857 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12859 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12860 be replaced anyway.
12862 2009-06-18 Eric Blake <ebb9@byu.net>
12864 hash: check for resize before insertion
12865 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12866 threshold before insertion, so that a pathological hash_rehash
12867 that fills every bucket can still trigger another rehash.
12869 2009-06-18 Jim Meyering <meyering@redhat.com>
12871 hash-tests: add a loop around the small tests
12872 * tests/test-hash.c (main): Repeat small tests with selected
12873 small initial table sizes.
12875 2009-06-17 Eric Blake <ebb9@byu.net>
12877 hash: minor cleanups
12878 * lib/hash.h (hash_entry): Make opaque, by moving...
12879 * lib/hash.c (hash_entry): ...here.
12880 (hash_insert): Clarify restrictions on what can be inserted.
12881 (hash_get_next): Clarify when it is safe to remove an element
12883 (check_tuning): Skip verification when tuning is known safe.
12884 (hash_initialize): Clarify restrictions on tuning.
12886 2009-06-17 Jim Meyering <jim@meyering.net>
12887 and Eric Blake <ebb9@byu.net>
12889 hash-tests: new module
12890 * modules/hash-tests: New file.
12891 * tests/test-hash.c: New file.
12893 2009-06-17 Eric Blake <ebb9@byu.net>
12895 strstr-simple: document new module
12896 * MODULES.html.sh: Document new module.
12898 strstr, strcasestr: replace on platforms with broken memchr
12899 * modules/strstr: Split into...
12900 * modules/strstr-simple: ...new module that does not care about
12901 performance, but does care about glibc bug.
12902 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12903 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12904 if platform memchr is broken, per Debian bug 521737.
12905 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12907 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12908 * doc/posix-functions/strstr.texi (strstr): Document the fix.
12909 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12910 * modules/mountlist (Depends-on): Add strstr-simple.
12911 * modules/gen-uni-tables (Depends-on): Likewise.
12912 * modules/argz (Depends-on): Add strstr.
12914 2009-06-17 Bruno Haible <bruno@clisp.org>
12916 * modules/posix_spawn-internal (Depends-on): Add errno.
12918 2009-06-17 Bruno Haible <bruno@clisp.org>
12920 Define missing ESTALE on Interix 3.5.
12921 * lib/errno.in.h (ESTALE): Assign a value if missing.
12922 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12923 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12925 * doc/posix-headers/errno.texi: Mention the Interix bug.
12926 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12928 2009-06-15 Eric Blake <ebb9@byu.net>
12930 memchr, memchr2: add valgrind exception
12931 * lib/memchr.valgrind: New file.
12932 * lib/memchr2.valgrind: New file.
12933 * modules/memchr (Files): Distribute valgrind file.
12934 * modules/memchr2 (Files): Likewise.
12936 docs: memchr is no longer obsolete
12937 * MODULES.html.sh: Move memchr from obsolete to string.h section.
12938 * lib/string.in.h (memchr): Simplify logic.
12940 2009-06-14 Jim Meyering <meyering@redhat.com>
12942 link-follow: fix the "checking..." message to not mention trailing slash
12943 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12944 never considered trailing slashes.
12946 2009-06-14 Bruno Haible <bruno@clisp.org>
12948 * m4/memchr.m4: Mention also the bug on IA-64.
12949 * doc/posix-functions/memchr.texi: Likewise.
12951 2009-06-12 Eric Blake <ebb9@byu.net>
12953 memchr: detect broken x86_64 and alpha implementations
12954 * modules/memchr-tests (Depends-on): Move mmap detection...
12955 * modules/memchr (Depends-on): ...here.
12956 (configure.ac): Set indicator.
12957 * lib/string.in.h (memchr): Declare replacement.
12958 * modules/string (Makefile.am): Trigger replacement.
12959 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12960 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12962 * doc/posix-functions/memchr.texi (memchr): Document the bug.
12963 * modules/getpagesize (License): Relax license.
12965 2009-06-11 Bruno Haible <bruno@clisp.org>
12967 * lib/idpriv.h: Add more references.
12969 2009-06-08 Bruno Haible <bruno@clisp.org>
12971 Tests for module 'idpriv-droptemp'.
12972 * modules/idpriv-droptemp-tests: New file.
12973 * tests/test-idpriv-droptemp.sh: New file.
12974 * tests/test-idpriv-droptemp.su.sh: New file.
12975 * tests/test-idpriv-droptemp.c: New file.
12977 New module 'idpriv-droptemp'.
12978 * lib/idpriv-droptemp.c: New file.
12979 * modules/idpriv-droptemp: New file.
12981 2009-06-08 Bruno Haible <bruno@clisp.org>
12983 Tests for module 'idpriv-drop'.
12984 * modules/idpriv-drop-tests: New file.
12985 * tests/test-idpriv-drop.sh: New file.
12986 * tests/test-idpriv-drop.su.sh: New file.
12987 * tests/test-idpriv-drop.c: New file.
12989 New module 'idpriv-drop'.
12990 * lib/idpriv.h: New file.
12991 * lib-idpriv-drop.c: New file.
12992 * m4/idpriv.m4: New file.
12993 * modules/idpriv-drop: New file.
12995 2009-06-08 Bruno Haible <bruno@clisp.org>
12997 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12998 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12999 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13000 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13001 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13002 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13003 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13005 2009-06-08 Eric Blake <ebb9@byu.net>
13007 test-strstr: use memory fence, when possible
13008 * tests/test-strstr.c (main): Use memory fence, in order to be
13009 more likely to trigger Debian bug 521737.
13010 * modules/strstr-tests (Files): Pull in additional files.
13012 memchr: no longer obsolete, for wider field testing
13013 * modules/memchr (Status, Notice): Delete, this module is no
13015 * modules/vasnprintf (Depends-on): Add memchr.
13017 2009-06-07 Jim Meyering <meyering@redhat.com>
13019 hash: declare some functions with the warn_unused_result attribute
13020 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13022 2009-06-07 Bruno Haible <bruno@clisp.org>
13024 * tests/test-alignof.c: Don't test int64_t if it does not exist.
13025 Reported by Eric Blake.
13027 2009-06-06 Eric Blake <ebb9@byu.net>
13029 test-alignof: fix typo with long double
13030 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13033 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
13035 Escape non-texinfo { and }s.
13036 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13039 2009-06-04 Jim Meyering <meyering@redhat.com>
13041 gitlog-to-changelog: don't infloop on an empty commit log
13042 * build-aux/gitlog-to-changelog: Warn about an empty log message.
13043 Reported by Boris Petersen <transacid@centerim.org>.
13045 2009-06-03 Mike Frysinger <vapier@gentoo.org>
13047 version-etc: extend for packagers
13048 Add three new configure options, intended for packagers:
13049 --with-packager="packager name"
13050 --with-packager-version="packager-specific version"
13051 --with-packager-bug-reports="packager bug reporting"
13052 An example with coreutils:
13054 --with-packager=Gentoo \
13055 --with-packager-bug-report=http://bugs.gentoo.org/ \
13056 --with-packager-version="patchset 1.6"
13057 $ ./src/ls --version | head -n2
13058 ls (GNU coreutils) 7.1-dirty
13059 Packaged by Gentoo (patchset 1.6)
13060 Note that the bug reporting info via --help doesn't show up because
13061 coreutils uses its own custom emit_bug_reporting_address() implementation
13062 in src/system.h. If it didn't, it'd look like:
13063 $ ./src/ls --help | tail -n4
13064 Report bugs to <bug-coreutils@gnu.org>.
13065 Report Gentoo bugs to <http://bugs.gentoo.org/>.
13066 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13067 General help using GNU software: <http://www.gnu.org/gethelp/>.
13068 * lib/version-etc.c: Print new information, if provided.
13069 * m4/version-etc.m4: New file.
13070 * modules/version-etc (Files): Add m4/version-etc.m4.
13071 (configure.ac): Add gl_VERSION_ETC.
13073 2009-05-31 Bruno Haible <bruno@clisp.org>
13075 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13077 * modules/alignof-tests (Dependencies): Add stdint.
13078 Reported by Eric Blake.
13080 2009-05-31 Bruno Haible <bruno@clisp.org>
13082 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13083 restriction due to compiler bugs.
13084 Reported by Eric Blake.
13086 2009-05-31 Simon Josefsson <simon@josefsson.org>
13087 Bruno Haible <bruno@clisp.org>
13089 Fix test-alignof failure.
13090 * lib/alignof.h (alignof_slot): New macro.
13091 (alignof_type): New macro, with the same semantics as the previous
13093 (alignof): Alias to alignof_slot.
13094 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13095 check that the results are usable as constant expressions.
13097 2009-05-31 Bruno Haible <bruno@clisp.org>
13099 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13100 * tests/test-memchr.c (main): Check that memchr does not read past the
13101 first occurrence of the byte.
13102 * tests/test-strstr.c (main): Update comment.
13103 Suggested by Eric Blake.
13105 2009-05-30 Bruno Haible <bruno@clisp.org>
13107 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13108 detail how to use dumpbin.
13109 Reported by David Byron <dbyron@dbyron.com>.
13111 2009-06-02 Simon Josefsson <simon@josefsson.org>
13113 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13115 2009-06-02 Simon Josefsson <simon@josefsson.org>
13117 * m4/manywarnings.m4: Add GCC 4.4 warnings.
13119 2009-05-28 Bruno Haible <bruno@clisp.org>
13121 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13124 2009-05-28 Simon Josefsson <simon@josefsson.org>
13126 * gnulib-tool (func_import): Transform license on build-aux/ files too.
13128 2009-05-27 Simon Josefsson <simon@josefsson.org>
13130 * gnulib-tool (sed_transform_main_lib_file)
13131 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13134 2009-05-26 Simon Josefsson <simon@josefsson.org>
13136 * tests/test-strstr.c: Add another self-test.
13137 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13138 strdup. Suggested by Eric Blake <ebb9@byu.net>.
13140 2009-05-23 Bruno Haible <bruno@clisp.org>
13142 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13145 2009-05-21 Bruno Haible <bruno@clisp.org>
13147 Simplify use of mode_t varargs.
13148 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13149 uses 'mode_t' or 'int'.
13150 * lib/openat.c (openat): Likewise.
13151 * lib/open-safer.c (open_safer): Likewise.
13152 * m4/mode_t.m4: New file.
13153 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13154 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13155 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13156 * modules/open (Files): Add m4/mode_t.m4.
13157 * modules/openat (Files): Likewise.
13158 * modules/fcntl-safer (Files): Likewise.
13159 Suggested by Eric Blake.
13161 2009-05-21 Pádraig Brady <P@draigbrady.com>
13163 * doc/glibc-functions/fallocate.texi: New file.
13164 * doc/gnulib.texi: Include it.
13166 2009-05-21 Eric Blake <ebb9@byu.net>
13167 Bruno Haible <bruno@clisp.org>
13169 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13171 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13173 2009-05-21 Eric Blake <ebb9@byu.net>
13174 Bruno Haible <bruno@clisp.org>
13176 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13177 include_next. Fix of 2008-11-20 commit.
13178 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13179 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13180 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13182 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13183 instead of NEXT_MATH_H.
13185 2009-05-21 Bruno Haible <bruno@clisp.org>
13187 Avoid redefinition warnings for SIZE_MAX.
13188 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13189 Reported by Simon Josefsson.
13191 2009-05-21 Bruno Haible <bruno@clisp.org>
13193 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13196 2009-05-20 Bruno Haible <bruno@clisp.org>
13198 Make zeroptr.h work on mingw.
13199 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13201 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13202 * modules/memchr2-tests (configure.ac): Likewise.
13203 * modules/memcmp-tests (configure.ac): Likewise.
13204 * modules/memmem-tests (configure.ac): Likewise.
13205 * modules/memrchr-tests (configure.ac): Likewise.
13206 Reported by Simon Josefsson.
13208 2009-05-20 Simon Josefsson <simon@josefsson.org>
13210 * tests/test-glob.c: Include string.h for strcmp prototype.
13212 2009-05-20 Simon Josefsson <simon@josefsson.org>
13214 * modules/getdelim (Depends-on): Add explicit stdint, although it
13215 was implicitly already pulled in via realloc-posix.
13216 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13218 2009-05-20 Simon Josefsson <simon@josefsson.org>
13220 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
13221 G. Christensen" <tgc@jupiterrise.com>.
13222 * m4/sys_socket_h.m4: Check for sa_family_t.
13223 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13224 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13225 * tests/test-sys_socket.c: Check that sa_family_t works.
13227 2009-05-18 Eric Blake <ebb9@byu.net>
13229 maint.mk: allow gnulib_dir in VPATH build
13230 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13232 2009-05-15 Jim Meyering <meyering@redhat.com>
13234 maint.mk: Give gnulib_dir a default definition.
13235 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13236 Thus, most packages no longer need to specify this variable in cfg.mk
13238 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
13240 rename.m4: fix typos that would make non-mingw cross-configure fail
13241 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13243 2009-05-13 Eric Blake <ebb9@byu.net>
13245 mmap-anon: avoid out-of-order autoconf expansion
13246 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13247 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13248 * modules/memchr-tests (Depends-on): Add extensions.
13249 * modules/memchr2-tests (Depends-on): Add extensions.
13250 * modules/memcmp-tests (Depends-on): Add extensions.
13251 * modules/memmem-tests (Depends-on): Add extensions.
13252 * modules/memrchr-tests (Depends-on): Add extensions.
13254 2009-05-13 Bruno Haible <bruno@clisp.org>
13256 Make some tests ISO C 99 compliant.
13257 * tests/zerosize-ptr.h: New file.
13258 * tests/test-memchr.c: Include zerosize-ptr.h.
13259 (main): Use a zero-size object pointer instead of NULL.
13260 * tests/test-memchr2.c: Include zerosize-ptr.h.
13261 (main): Use a zero-size object pointer instead of NULL.
13262 * tests/test-memcmp.c: Include zerosize-ptr.h.
13263 (main): Use a zero-size object pointer instead of NULL.
13264 * tests/test-memmem.c: Include zerosize-ptr.h.
13265 (main): Use a zero-size object pointer instead of NULL.
13266 * tests/test-memrchr.c: Include zerosize-ptr.h.
13267 (main): Use a zero-size object pointer instead of NULL.
13268 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13270 (Depends-on): Add getpagesize.
13271 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13272 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13274 (Depends-on): Add getpagesize.
13275 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13276 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13278 (Depends-on): Add getpagesize.
13279 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13280 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13282 (Depends-on): Add getpagesize.
13283 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13284 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13286 (Depends-on): Add getpagesize.
13287 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13289 2009-05-12 Bruno Haible <bruno@clisp.org>
13291 Tests for module 'alignof'.
13292 * modules/alignof-tests: New file.
13293 * tests/test-alignof.c: New file.
13295 2009-05-12 Bruno Haible <bruno@clisp.org>
13298 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13299 vendor compilers that are always correct.
13301 2009-05-12 Bruno Haible <bruno@clisp.org>
13303 Make the MAP_ANONYMOUS detection work on HP-UX 11.
13304 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13305 not whether its fully works.
13307 2009-05-12 Bruno Haible <bruno@clisp.org>
13309 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13311 2009-05-12 Jim Meyering <meyering@redhat.com>
13313 * top/maint.mk: Adjust backslash alignment.
13315 2009-05-11 Simon Josefsson <simon@josefsson.org>
13317 * top/maint.mk: Make $(srcdir)/build-aux configurable.
13319 2009-05-11 Eric Blake <ebb9@byu.net>
13321 argp: avoid undefined behavior
13322 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13325 2009-05-08 Simon Josefsson <simon@josefsson.org>
13327 * tests/test-vc-list-files-git.sh: Do git config of user.email and
13328 user.name to prevent git commit from complaining.
13330 2009-05-10 Bruno Haible <bruno@clisp.org>
13332 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13333 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13334 it rewrites every file name only once.
13335 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13337 2009-05-08 Bruno Haible <bruno@clisp.org>
13339 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13342 2009-05-08 Simon Josefsson <simon@josefsson.org>
13344 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13345 sockaddr_storage test.
13347 2009-05-07 Simon Josefsson <simon@josefsson.org>
13349 * modules/sys_socket (Makefile.am): Substitute
13350 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
13351 * m4/sys_socket_h.m4: Check for sockaddr_storage.
13352 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13353 * tests/test-sys_socket.c: Check sockaddr_storage.
13355 2009-05-08 Bruno Haible <bruno@clisp.org>
13357 New module 'alignof'.
13358 * lib/alignof.h: New file.
13359 * modules/alignof: New file.
13361 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13362 Bruno Haible <bruno@clisp.org>
13364 Fix test-file-has-acl on FreeBSD.
13365 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13366 mask is implicitly added.
13367 * tests/test-file-has-acl.c: Include <signal.h>.
13368 (main): Terminate the test after 5 seconds.
13369 * modules/acl-tests (configure.ac): Check for alarm function.
13371 2009-05-04 Bruno Haible <bruno@clisp.org>
13373 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13374 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13375 * modules/errno (configure.ac): Drop AC_REQUIRE.
13376 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13377 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13379 2009-05-04 Simon Josefsson <simon@josefsson.org>
13381 * modules/glob-tests: New module.
13382 * tests/test-glob.c: Add.
13384 2009-05-04 Simon Josefsson <simon@josefsson.org>
13386 * modules/fnmatch-tests: New module.
13387 * tests/test-fnmatch.c: Add.
13389 2009-05-04 Eric Blake <ebb9@byu.net>
13391 maint: make the new no-submodule-changes rule VPATH-safe
13392 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13394 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13395 Bruno Haible <bruno@clisp.org>
13397 acl: Fix infinite loop on FreeBSD.
13398 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13399 of return value from acl_get_entry.
13400 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13403 2009-05-03 Bruno Haible <bruno@clisp.org>
13405 * lib/acl-internal.h (acl_entries): Clarify return value.
13406 * lib/acl_entries.c (acl_entries): Likewise.
13408 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13410 Bug fix in acl module.
13411 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13413 2009-05-03 Bruno Haible <bruno@clisp.org>
13415 Create gperf-generated file in the source dir, not in the build dir.
13416 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13417 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13418 * modules/unicase/locale-language (unicase/locale-languages.h):
13420 * modules/unicase/special-casing (unicase/special-casing-table.h):
13422 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13423 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13424 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13425 Reported by Ralf Wildenhues.
13427 2009-05-03 Bruno Haible <bruno@clisp.org>
13429 * modules/fnmatch (Description, configure.ac): Taken from
13431 * modules/fnmatch-posix: Turn into a symbolic reference to the
13432 'fnmatch' module, and deprecate.
13433 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13435 2009-05-03 Bruno Haible <bruno@clisp.org>
13437 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13438 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13439 Reported by Ralf Wildenhues.
13441 2009-05-04 Simon Josefsson <simon@josefsson.org>
13443 * m4/fnmatch.m4: Fix fnmatch re-define.
13445 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
13447 priv-set: new module and tests; adapt write-any-file
13448 * lib/priv-set.c: New file.
13449 * lib/priv-set.h: New file.
13450 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13451 * lib/write-any-file.c: Simplify by using priv-set module.
13452 * m4/priv-set.m4: New file.
13453 * modules/priv-set: New file.
13454 * modules/unlinkdir: Add dependency on priv-set module.
13455 * modules/write-any-file: Likewise.
13457 Tests for module 'priv-set'.
13458 * modules/priv-set-tests: New file.
13459 * tests/test-priv-set.c: New file.
13461 2009-05-03 Jim Meyering <meyering@redhat.com>
13462 Bruno Haible <bruno@clisp.org>
13464 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13465 use the converted UTF-8 variant of the name instead.
13467 2009-05-03 Jim Meyering <meyering@redhat.com>
13469 tests: tighten some getdate tests
13470 * tests/test-getdate.c (main): Tighten tests: require equality,
13471 not just greater than. Set TZ envvar to UTC0.
13473 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
13475 getdate: correctly interpret "next monday" when run on a Monday
13476 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13477 that e.g., "next tues" (when run on a tuesday) results in a date
13478 that is one week in the future, and not today's date.
13479 I.e., add a week when the wday is the same as the current one.
13480 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13481 and earlier by Martin Bernreuther and Jan Minář.
13482 * tests/test-getdate.c (main): Check that "next DAY" is always in
13483 the future and that "last DAY" is always in the past.
13485 2009-05-02 Jim Meyering <meyering@redhat.com>
13487 build: ensure that a release build fails when a submodule is unclean
13488 * top/maint.mk (no-submodule-changes): New rule.
13489 (alpha beta major): Depend on it.
13491 2009-05-02 Bruno Haible <bruno@clisp.org>
13493 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13494 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13495 shell variable gl_fnmatch_required to detect which variant is
13497 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13498 gl_FUNC_FNMATCH_POSIX.
13499 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13500 exclude fnmatch-posix.
13502 2009-05-02 Bruno Haible <bruno@clisp.org>
13504 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13505 * modules/mbsrtowcs (License): Change to LGPLv2+.
13506 * modules/strnlen1 (License): Likewise.
13507 Reported by Simon Josefsson.
13509 2009-05-02 Bruno Haible <bruno@clisp.org>
13511 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13513 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13514 gnulib-tool was called with option --source-base=lib.
13516 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13518 Use automake *-local hooks without commands, for extensibility.
13519 * modules/localcharset (Makefile.am): Rename install-exec-local
13520 rule to install-exec-localcharset, and make it a prerequisite of
13521 install-exec-local. Likewise, rename the uninstall-local rule to
13522 uninstall-localcharset, and make it a prerequisite of the former.
13524 2009-05-01 Bruno Haible <bruno@clisp.org>
13526 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13527 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13528 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13529 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13530 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13531 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13532 m4/locale-zh.m4, m4/codeset.m4.
13534 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13535 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13536 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13539 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13540 REPLACE_WCRTOMB if mbstate_t must be replaced.
13541 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13542 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13544 2009-05-01 Bruno Haible <bruno@clisp.org>
13546 Avoid compiler warnings when redefining macros defined by <libintl.h>.
13547 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13548 dngettext, dcngettext, textdomain, bindtextdomain,
13549 bind_textdomain_codeset): Undefine before redefining.
13551 2009-04-30 Bruno Haible <bruno@clisp.org>
13553 Fix bug introduced on 2009-04-25.
13554 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13555 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13556 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13558 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13560 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13562 Reported by Elbert_Pol <elbert.pol@gmail.com>.
13564 2009-04-28 Bruno Haible <bruno@clisp.org>
13567 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13568 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13569 * lib/unicase.h (u*_casexfrm): Likewise.
13570 Reported by Paolo Bonzini.
13572 2009-04-28 Bruno Haible <bruno@clisp.org>
13574 Fix a compilation error.
13575 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13576 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13577 Reported by Jim Meyering.
13579 2009-04-27 Bruno Haible <bruno@clisp.org>
13581 New module 'libunistring'.
13582 * modules/libunistring: New file.
13583 * m4/libunistring.m4: New file.
13584 * MODULES.html.sh (Unicode string functions): Add it.
13586 2009-04-27 Eric Blake <ebb9@byu.net>
13588 maint.mk: allow package-specific header to provide <config.h>
13589 * top/maint.mk (sc_require_config_h): New variable.
13590 (sc_require_config_h, sc_require_config_h_first): Use it.
13592 2009-04-27 Simon Josefsson <simon@josefsson.org>
13594 * top/maint.mk (sc_avoid_if_before_free): Except
13595 useless-if-before-free script.
13597 2009-04-27 Eric Blake <ebb9@byu.net>
13599 maintainer-makefile: depend on all required helper scripts
13600 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13601 useless-if-before-free.
13602 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13603 version, rather than assuming gnulib checkout is available.
13604 Reported by Simen Josefsson.
13606 2009-04-26 Bruno Haible <bruno@clisp.org>
13608 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13609 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13612 2009-04-26 Bruno Haible <bruno@clisp.org>
13614 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13615 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13616 AC_LIB_HAVE_LINKFLAGS.
13618 2009-04-26 Bruno Haible <bruno@clisp.org>
13620 Simplify calling convention of u*_conv_from_encoding.
13621 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13622 u32_conv_from_encoding): Expect a resultbuf argument and return the
13623 result directly as a pointer.
13624 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13625 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13626 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13627 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13628 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13629 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13631 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13632 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13633 * lib/vasnprintf.c (VASNPRINTF): Update.
13634 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13635 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13636 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13637 * NEWS: Mention the change.
13639 2009-04-26 Bruno Haible <bruno@clisp.org>
13641 Simplify calling convention of u*_conv_to_encoding.
13642 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13643 u32_conv_to_encoding): Expect a resultbuf argument and return the
13644 result directly as a pointer.
13645 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13646 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13647 freeing scaled_offsets if mem_iconveha failed.
13648 * lib/unicase/u-casexfrm.h (FUNC): Update.
13649 * lib/uninorm/u-normxfrm.h (FUNC): Update.
13650 * lib/vasnprintf.c (VASNPRINTF): Update.
13651 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13652 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13653 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13654 * NEWS: Mention the change.
13656 2009-04-26 Bruno Haible <bruno@clisp.org>
13658 Avoid test failures on AIX and OSF/1.
13659 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13661 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13662 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13664 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13665 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13666 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13667 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13668 * doc/posix-functions/malloc.texi: Document the portability problem
13669 related to malloc(0).
13671 2009-04-26 Bruno Haible <bruno@clisp.org>
13673 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13674 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13675 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13677 2009-04-25 Bruno Haible <bruno@clisp.org>
13679 Avoid link error when creating a namespace clean library.
13680 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13681 as macro with arguments if already defined as an alias.
13682 * lib/signbitf.c (gl_signbitf): Don't undefine.
13683 * lib/signbitd.c (gl_signbitd): Don't undefine.
13684 * lib/signbitl.c (gl_signbitl): Don't undefine.
13686 2009-04-25 Jim Meyering <meyering@redhat.com>
13688 vc-list-files: fix another quoting bug
13689 * build-aux/vc-list-files: Avoid sed backslash expansion
13690 of pathological directory names.
13692 2009-04-25 Eric Blake <ebb9@byu.net>
13694 vc-list-files: fix shell quoting error
13695 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
13698 2009-04-25 Jim Meyering <meyering@redhat.com>
13700 vc-list-files: restore lost functionality with subdir argument
13701 * build-aux/vc-list-files: When given a non-"." sub-directory
13702 argument, substitute the $dir/ prefix back onto each resulting name.
13703 Otherwise, coreutils' root_tests check would fail.
13705 2009-04-24 Eric Blake <ebb9@byu.net>
13707 vc-list-files: ignore git symlinks
13708 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13709 than ls-files, to ignore git symlinks.
13711 maint.mk: import improvements from m4
13712 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13713 (move_if_change): Delete unused macro.
13714 (news-date-check, vc-diff-check): Support VPATH builds.
13715 (announcement): Likewise. Split --bootstrap-tools list...
13716 (boostrap-tools): ...into separate list, which can be overridden
13718 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13719 requiring dependency on useless-if-before-free module.
13720 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13721 Support VPATH builds.
13723 2009-04-24 Jim Meyering <meyering@redhat.com>
13725 maint.mk: remove coreutils-specific rules and variables
13726 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13727 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13728 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13730 maint.mk: remove obsolete rule
13731 * top/maint.mk (rel-check): Remove rule.
13732 (WGET, WGETFLAGS): Remove now-unused variables.
13734 2009-04-24 Simon Josefsson <simon@josefsson.org>
13736 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13739 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13740 '$(PATH_SEPARATOR)' instead of ':'.
13742 2009-04-24 Simon Josefsson <simon@josefsson.org>
13744 * lib/getopt1.c (main): Use 'const' for static array.
13746 2009-04-24 Simon Josefsson <simon@josefsson.org>
13748 * top/maint.mk: Sync with coreutils.
13749 * NEWS: Explain incompatibilities.
13751 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13752 Bruno Haible <bruno@clisp.org>
13754 Fix cross-compilation results.
13755 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13756 statement, as third argument of AC_TRY_RUN.
13757 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13758 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13760 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13761 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13763 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13764 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13765 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13767 2009-04-20 Bruno Haible <bruno@clisp.org>
13769 Avoid test failure on mingw.
13770 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13772 2009-04-20 Bruno Haible <bruno@clisp.org>
13774 Avoid compilation error on mingw.
13775 * modules/localename-tests (Depends-on): Add locale.
13777 2009-04-19 Bruno Haible <bruno@clisp.org>
13779 Support for building a shared library on Windows platforms.
13780 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13781 (main): Test the presence of UNINORM_NFC here.
13782 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13783 (main): Test the presence of UNINORM_NFD here.
13784 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13785 (main): Test the presence of UNINORM_NFKC here.
13786 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13787 (main): Test the presence of UNINORM_NFKD here.
13789 2009-04-19 Bruno Haible <bruno@clisp.org>
13791 Avoid a compiler warning.
13792 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13793 Change type of variable 'sequence'.
13795 2009-04-19 Bruno Haible <bruno@clisp.org>
13797 * modules/configmake (Makefile.am): When the contents of configmake.h
13798 does not change, arrange to preserve its modification time.
13800 2009-04-17 Simon Josefsson <simon@josefsson.org>
13802 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13805 2009-04-16 Jim Meyering <meyering@redhat.com>
13807 useless-if-before-free: improve conversion code
13808 * build-aux/useless-if-before-free: Adjust code-in-comment to match
13809 "...!= 0" as well as "...!= NULL". emacs has one of the former.
13811 2009-04-14 Bruno Haible <bruno@clisp.org>
13813 * modules/fcntl (Depends-on): Add extensions.
13814 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13816 2009-04-12 Ben Pfaff <blp@gnu.org>
13818 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13819 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13821 2009-03-20 Ben Pfaff <blp@gnu.org>
13823 Make rename replace existing destinations on Windows.
13824 * m4/rename.m4: Add test for Mingw.
13825 * lib/rename.c: Add rename replacement that uses MoveFileEx with
13826 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13827 * doc/posix-functions/rename.texi: Document.
13829 2009-04-10 Bruno Haible <bruno@clisp.org>
13831 New include file "iconveh.h".
13832 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13833 * lib/striconveh.h: Include it.
13834 (enum iconv_ilseq_handler): Remove definition.
13835 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13837 * lib/striconveha.c: Include striconveh.h.
13838 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13839 * modules/striconveh (Files): Add lib/iconveh.h.
13840 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13843 2009-04-10 Bruno Haible <bruno@clisp.org>
13845 * lib/uniconv.h: Update comment.
13847 2009-04-10 Bruno Haible <bruno@clisp.org>
13849 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13851 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13852 * lib/unistr/u16-mbtouc-aux.c: Likewise.
13853 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13854 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13855 "unistring-notinline.h", so that the function gets defined always.
13856 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13857 * lib/unistr/u8-uctomb.c: Likewise.
13858 * lib/unistr/u16-mbtouc.c: Likewise.
13859 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13860 * lib/unistr/u16-uctomb.c: Likewise.
13861 * lib/unistr/u32-mbtouc.c: Likewise.
13862 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13863 * lib/unistr/u32-uctomb.c: Likewise.
13865 2009-04-10 Bruno Haible <bruno@clisp.org>
13867 Mark 'utime' obsolete.
13868 * modules/utime (Status, Notice): New sections.
13869 Suggested by Jim Meyering.
13871 Fix cross-compile guess for utime test.
13872 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13874 * doc/posix-functions/utime.texi: Give more precisions.
13875 Reported by Jan <ipif@ymail.com>.
13877 2009-04-09 Kamil Dudka <kdudka@redhat.com>
13879 filevercmp: correct today's change
13880 * lib/filevercmp.c: Also handle coreutils' test inputs.
13881 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13883 Fix regression in 'filevercmp' module. Thanks Sven Joachim
13885 * lib/filevercmp.c: Special handle for "", "." and "..".
13886 * tests/test-filevercmp.c: Enlarge the set suite.
13888 2009-04-07 Jim Meyering <meyering@redhat.com>
13890 useless-if-before-free: show how to remove braced useless free, too
13891 * build-aux/useless-if-before-free: still only in a comment, though.
13893 2009-04-07 Reuben Thomas <rrt@sc3d.org>
13895 maint.mk: import changes to syntax-check macros from coreutils
13896 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13897 Use them in the relevant macros.
13899 2009-04-06 Bruno Haible <bruno@clisp.org>
13901 Fix unportable use of bit-fields.
13902 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13903 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13904 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13906 2009-04-06 Bruno Haible <bruno@clisp.org>
13908 Avoid test failures on AIX and OSF/1.
13909 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13910 that malloc(0) = NULL.
13911 * tests/unicase/test-u8-tolower.c (check): Likewise.
13912 * tests/unicase/test-u8-totitle.c (check): Likewise.
13913 * tests/unicase/test-u8-toupper.c (check): Likewise.
13914 * tests/unicase/test-u16-casefold.c (check): Likewise.
13915 * tests/unicase/test-u16-tolower.c (check): Likewise.
13916 * tests/unicase/test-u16-totitle.c (check): Likewise.
13917 * tests/unicase/test-u16-toupper.c (check): Likewise.
13918 * tests/unicase/test-u32-casefold.c (check): Likewise.
13919 * tests/unicase/test-u32-tolower.c (check): Likewise.
13920 * tests/unicase/test-u32-totitle.c (check): Likewise.
13921 * tests/unicase/test-u32-toupper.c (check): Likewise.
13922 * tests/uninorm/test-u8-nfc.c (check): Likewise.
13923 * tests/uninorm/test-u8-nfd.c (check): Likewise.
13924 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13925 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13926 * tests/uninorm/test-u16-nfc.c (check): Likewise.
13927 * tests/uninorm/test-u16-nfd.c (check): Likewise.
13928 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13929 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13930 * tests/uninorm/test-u32-nfc.c (check): Likewise.
13931 * tests/uninorm/test-u32-nfd.c (check): Likewise.
13932 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13933 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13935 2009-04-05 Bruno Haible <bruno@clisp.org>
13937 Work around an autoconf limitation.
13938 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13939 comment line if it would be longer than 3 KB.
13941 2009-04-05 Bruno Haible <bruno@clisp.org>
13943 Avoid test failure with libiconv-1.13.
13944 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13945 of the expected test results.
13947 2009-04-05 Bruno Haible <bruno@clisp.org>
13949 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13950 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13951 that it should be installed.
13953 2009-04-05 Bruno Haible <bruno@clisp.org>
13955 * gnulib-tool: New option --copy-file.
13956 (func_usage): Document it.
13957 (func_dest_tmpfilename): Moved out of func_import.
13958 (func_add_file, func_update_file): New functions, extracted from
13960 (func_import): Update.
13962 2009-04-05 Karl Berry <karl@gnu.org>
13964 * README: prominently mention gnulib-tool.
13965 Rearrange sections so getting the code is near the top.
13967 2009-04-05 Bruno Haible <bruno@clisp.org>
13969 * lib/unicase.h: Mention u*_cmp2.
13970 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13971 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13972 * lib/unicase/ulc-casecmp.c: Likewise.
13973 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13974 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13975 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13977 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13978 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13980 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13983 * lib/uninorm.h: Mention u*_cmp2.
13984 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13985 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13986 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13987 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13988 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13990 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13992 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13995 New module 'unistr/u32-cmp2'.
13996 * lib/unistr/u32-cmp2.c: New file.
13997 * modules/unistr/u32-cmp2: New file.
13999 New module 'unistr/u16-cmp2'.
14000 * lib/unistr/u16-cmp2.c: New file.
14001 * modules/unistr/u16-cmp2: New file.
14003 New module 'unistr/u8-cmp2'.
14004 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14005 * lib/unistr/u8-cmp2.c: New file.
14006 * lib/unistr/u-cmp2.h: New file.
14007 * modules/unistr/u8-cmp2: New file.
14009 2009-04-05 Bruno Haible <bruno@clisp.org>
14011 * lib/unictype.h (uc_property_is_valid): New macro.
14012 * tests/unictype/test-pr_byname.c (main): Use it.
14014 * lib/unistr.h: Doc fixes.
14015 * lib/uniconv.h: Doc fixes.
14016 * lib/unictype.h: Doc fixes.
14018 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
14020 Port coreutils 7.2 to Solaris 8.
14022 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14023 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14024 for Solaris 8. This is a bit of a hack, as it means it's the
14025 caller's responsibility to add -lnsl if needed, but most likely it
14026 won't be needed since only getaddrinfo uses this and getaddrinfo
14027 isn't needed on Solaris 8.
14029 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14030 problem to Solaris 8 encountered with coreutils 7.2, which
14031 resulted in a message "fnmatch.c:292: warning: passing argument 4
14032 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
14033 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14035 2009-04-03 Simon Josefsson <simon@josefsson.org>
14037 * m4/ld-version-script.m4: Add FIXME comment.
14039 2009-04-02 Simon Josefsson <simon@josefsson.org>
14041 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14042 SOVERSION variable.
14044 2009-04-02 Bruno Haible <bruno@clisp.org>
14046 * Makefile (info, html, dvi, pdf): Combine the rules.
14047 Suggested by Jim Meyering.
14049 2009-04-01 Bruno Haible <bruno@clisp.org>
14051 * Makefile (info, html, dvi, pdf): New targets.
14052 Reported by Reuben Thomas <rrt@sc3d.org>.
14054 2009-04-01 Bruno Haible <bruno@clisp.org>
14056 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14057 can be put into PATH.
14058 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14060 2009-04-01 Bruno Haible <bruno@clisp.org>
14062 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14064 2009-04-01 Bruno Haible <bruno@clisp.org>
14066 Rename module 'visibility'.
14067 * modules/lib-symbol-visibility: Renamed from modules/visibility.
14068 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14069 * doc/gnulib.texi: Update.
14070 * MODULES.html.sh (Misc): Update.
14071 * NEWS: Mention the change.
14073 2009-04-01 Simon Josefsson <simon@josefsson.org>
14075 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
14076 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14077 Eric Blake <ebb9@byu.net> for review.
14078 * MODULES.html.sh: Add lib-msvc-compat.
14079 * doc/gnulib.texi: Link to new section.
14080 * m4/ld-output-def.m4: New file.
14081 * doc/ld-output-def.texi: New file.
14083 2009-04-01 Simon Josefsson <simon@josefsson.org>
14085 Rename ld-version-script to lib-symbol-versions. Suggested by
14086 Bruno Haible <bruno@clisp.org>.
14087 * modules/ld-version-script: Renamed to lib-symbol-versions.
14088 * doc/ld-version-script.texi: Fix module name.
14089 * MODULES.html.sh: Add lib-symbol-versions.
14091 2009-03-31 Simon Josefsson <simon@josefsson.org>
14093 * modules/u64-tests: New file.
14094 * tests/test-u64.c: New file.
14096 2009-03-04 Simon Josefsson <simon@josefsson.org>
14098 * MODULES.html.sh: Mention u64.
14099 * modules/u64: New module.
14100 * modules/crypto/sha512: Depend on u64 module instead of providing
14103 2009-03-27 Eric Blake <ebb9@byu.net>
14105 test-strerror: make debugging EAI_SYSTEM easier
14106 * modules/getaddrinfo-tests (Depends-on): Add strerror.
14107 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14108 failure was EAI_SYSTEM.
14110 2009-03-25 Bruno Haible <bruno@clisp.org>
14112 Fix a problem with --enable-relocatable on Solaris 7.
14113 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14116 2009-03-25 Eric Blake <ebb9@byu.net>
14118 test-sockets: avoid gcc warning
14119 * tests/test-sockets.c (main): Silence compiler warning.
14121 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
14123 New modules nproc, pthread, contributed by Glen Lenker.
14125 * MODULES.html.sh: Add pthread, nproc.
14126 * lib/nproc.c: New file.
14127 * lib/nproc.h: New file.
14128 * lib/pthread.in.h: New file.
14129 * m4/pthread.m4: New file.
14130 * modules/nproc: New file.
14131 * modules/pthread: New file.
14133 2009-03-24 Simon Josefsson <simon@josefsson.org>
14135 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14138 2009-03-24 Kamil Dudka <kdudka@redhat.com>
14140 filevercmp: handle simple~ and numbered.~3~ backup suffixes
14141 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14142 * tests/test-filevercmp.c: Add tests for backup suffixes.
14144 2009-03-24 Simon Josefsson <simon@josefsson.org>
14146 * modules/stdlib (Depends-on): Add stdint, needed when defining
14147 struct random_data on, for example, HP-UX 10.20. Reported by
14148 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14150 2009-03-24 Simon Josefsson <simon@josefsson.org>
14152 * lib/readline.c (readline): Call fflush on stdout after printing
14155 2009-03-20 Bruno Haible <bruno@clisp.org>
14157 Remove dependency from 'close' module to -lws2_32 on native Windows.
14158 * lib/close-hook.h: New file.
14159 * lib/close-hook.c: New file.
14160 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14162 (_gl_close_fd_maybe_socket): Remove function.
14163 (rpl_close): Invoke execute_all_close_hooks instead of
14164 _gl_close_fd_maybe_socket.
14165 * lib/sockets.c: Include close-hook.h, w32sock.h.
14166 (close_fd_maybe_socket): New function, essentially from lib/close.c.
14167 (close_sockets_hook): New variable.
14168 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14169 (gl_sockets_cleanup): Unregister it.
14170 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14171 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14172 * modules/close-hook: New file.
14173 * modules/close (Files): Remove lib/w32sock.h.
14174 (Depends-on): Add close-hook.
14175 (Link): Remove section.
14176 * modules/sockets (Files): Add lib/w32sock.h.
14177 (Depends-on): Add close-hook.
14178 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14180 * NEWS: Mention that LIB_CLOSE is gone.
14182 2009-03-23 Eric Blake <ebb9@byu.net>
14184 signal-tests: test previous patch
14185 * tests/test-signal.c: New file.
14186 * modules/signal-tests: Likewise.
14188 signal.h: always support 'volatile sig_atomic_t'
14189 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14190 (gl_SIGNAL_H_DEFAULTS): Add a default.
14191 * modules/signal (Makefile.am): Substitute if needed.
14192 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14193 users can blindly add volatile.
14194 * doc/posix-headers/signal.texi (signal.h): Document it.
14195 Reported by Matthew Woehlke.
14197 2009-03-23 Jim Meyering <meyering@redhat.com>
14199 pathmax: PATH_MAX: use pathconf only when available
14200 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14201 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
14202 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14203 This avoids a link failure in a PSP cross-compilation environment
14204 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14206 * lib/vasnprintf.c (divide): Fix typo in comment.
14208 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14210 * gnulib-tool (func_filter_filelist): Fix comment.
14212 2009-03-20 Bruno Haible <bruno@clisp.org>
14214 Make sockets.h self-contained.
14215 * lib/sockets.c: Include sockets.h first.
14216 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14218 2009-03-19 Eric Blake <ebb9@byu.net>
14220 doc: mention more functions added in cygwin 1.7.0
14221 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14223 * doc/posix-functions/log2f.texi: Likewise.
14225 2009-03-19 Jim Meyering <meyering@redhat.com>
14227 fsusage: avoid syntax error due to statement-before-declaration
14228 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14229 after all declarations. Reported by Matthew Woehlke in
14230 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14232 2009-03-18 Eric Blake <ebb9@byu.net>
14234 build-aux/compile: sync from automake
14235 * build-aux/compile: New file, from automake.
14236 * config/srclist.txt: Mention build-aux/compile.
14238 2009-03-17 Bruno Haible <bruno@clisp.org>
14240 * lib/git-merge-changelog.c: Fix typo in comment.
14241 Reported by Reuben Thomas <rrt@sc3d.org>.
14243 2009-03-17 Reuben Thomas <rrt@sc3d.org>
14245 * m4/regex.m4: update and improve help for
14246 --without-included-regex.
14248 2009-03-17 Simon Josefsson <simon@josefsson.org>
14250 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14251 failure on missing include files.
14253 2009-03-17 Eric Blake <ebb9@byu.net>
14255 doc: mention more functions added in cygwin 1.7.0
14256 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14258 * doc/posix-functions/fwscanf.texi: Likewise.
14259 * doc/posix-functions/swprintf.texi: Likewise.
14260 * doc/posix-functions/swscanf.texi: Likewise.
14261 * doc/posix-functions/vfwprintf.texi: Likewise.
14262 * doc/posix-functions/vfwscanf.texi: Likewise.
14263 * doc/posix-functions/vswprintf.texi: Likewise.
14264 * doc/posix-functions/vswscanf.texi: Likewise.
14265 * doc/posix-functions/vwprintf.texi: Likewise.
14266 * doc/posix-functions/vwscanf.texi: Likewise.
14267 * doc/posix-functions/wcscasecmp.texi: Likewise.
14268 * doc/posix-functions/wcsdup.texi: Likewise.
14269 * doc/posix-functions/wcsftime.texi: Likewise.
14270 * doc/posix-functions/wcsncasecmp.texi: Likewise.
14271 * doc/posix-functions/wprintf.texi: Likewise.
14272 * doc/posix-functions/wscanf.texi: Likewise.
14273 * doc/glibc-functions/gethostbyname2.texi: Likewise.
14275 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14277 maint.mk: really add $(AM_MAKEFLAGS)
14278 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14279 was inadvertently omitted in the last commit.
14280 Spotted by Bruno Haible.
14282 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14283 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14284 $(AM_MAKEFLAGS)' rather than plain `make'.
14286 gnulib-tool: execute $MAKE not make
14287 * gnulib-tool: Default $MAKE to 'make'.
14288 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14289 than make. Initialize $MAKE in the do-autobuild script.
14291 gnulib-tool: use $MAKE not make in generated files
14292 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14293 make, in generated files. Initialize $MAKE in the do-autobuild
14296 * top/GNUmakefile (_have-git-version-gen): Fix typo.
14298 GNUmakefile: disable parallelism only for multiple, recursive targets
14299 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14300 additions in the Makefile.
14301 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14303 (.NOTPARALLEL): Only disable parallel builds if multiple targets
14304 are listed on the command line and at least one of them is
14305 listed in $(ALL_RECURSIVE_TARGETS).
14307 2009-03-14 Bruno Haible <bruno@clisp.org>
14309 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14310 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14311 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14312 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14313 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14314 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14315 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14317 * modules/unistr/u8-strchr (Depends-on): Likewise.
14318 * modules/unistr/u8-strrchr (Depends-on): Likewise.
14319 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14321 * modules/unistr/u16-strchr (Depends-on): Likewise.
14322 * modules/unistr/u16-strrchr (Depends-on): Likewise.
14324 2009-03-12 Bruno Haible <bruno@clisp.org>
14326 Work around select() bug on Interix 3.5.
14327 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14328 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14329 * m4/select.m4: New file.
14330 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14331 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14332 * modules/select (Files): Add m4/select.m4.
14333 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14334 * modules/nanosleep (Depends-on): Add select.
14335 * modules/poll (Depends-on): Likewise.
14336 * doc/posix-functions/select.texi: Mention the Interix bug.
14337 Reported by Markus Duft <mduft@gentoo.org>.
14339 * lib/select.c: Renamed from lib/winsock-select.c.
14340 * modules/select (Files): Add lib/select.c, remove
14341 lib/winsock-select.c.
14342 (configure.ac): Update.
14344 2009-03-12 Jim Meyering <meyering@redhat.com>
14346 avoid gcc warnings about unused macro definitions
14347 * lib/readtokens.c (STREQ): Remove unused definition.
14348 * lib/xmalloc.c (SIZE_MAX): Likewise.
14349 * lib/openat-die.c (N_): Likewise.
14350 * lib/mountlist.c (SIZE_MAX): Remove definition.
14351 Instead, include <stdint.h>.
14352 * lib/readutmp.c: Likewise.
14353 * modules/readutmp (Depends-on): Add stdint.
14354 * modules/mountlist (Depends-on): Add stdint.
14355 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14357 2009-03-10 Bruno Haible <bruno@clisp.org>
14359 Tests for module 'mbmemcasecoll'.
14360 * modules/mbmemcasecoll-tests: New file.
14361 * tests/test-mbmemcasecoll1.sh: New file.
14362 * tests/test-mbmemcasecoll2.sh: New file.
14363 * tests/test-mbmemcasecoll3.sh: New file.
14364 * tests/test-mbmemcasecoll.c: New file.
14366 New module 'mbmemcasecoll'.
14367 * lib/mbmemcasecoll.h: New file.
14368 * lib/mbmemcasecoll.c: New file.
14369 * modules/mbmemcasecoll: New file.
14371 * tests/test-mbmemcasecmp.h: New file, extracted from
14372 tests/test-mbmemcasecmp.c.
14373 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14374 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14376 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14378 2009-03-09 Bruno Haible <bruno@clisp.org>
14380 Tests for module 'mbmemcasecmp'.
14381 * modules/mbmemcasecmp-tests: New file.
14382 * tests/test-mbmemcasecmp1.sh: New file.
14383 * tests/test-mbmemcasecmp2.sh: New file.
14384 * tests/test-mbmemcasecmp3.sh: New file.
14385 * tests/test-mbmemcasecmp.c: New file.
14387 New module 'mbmemcasecmp'.
14388 * lib/mbmemcasecmp.h: New file.
14389 * lib/mbmemcasecmp.c: New file.
14390 * modules/mbmemcasecmp: New file.
14392 2009-03-09 Bruno Haible <bruno@clisp.org>
14394 Tests for module 'unicase/ulc-casecoll'.
14395 * modules/unicase/ulc-casecoll-tests: New file.
14396 * tests/unicase/test-ulc-casecoll1.sh: New file.
14397 * tests/unicase/test-ulc-casecoll2.sh: New file.
14398 * tests/unicase/test-ulc-casecoll.c: New file.
14400 New module 'unicase/ulc-casecoll'.
14401 * lib/unicase.h (ulc_casecoll): New declaration.
14402 * lib/unicase/ulc-casecoll.c: New file.
14403 * modules/unicase/ulc-casecoll: New file.
14405 New module 'unicase/ulc-casexfrm'.
14406 * lib/unicase.h (ulc_casexfrm): New declaration.
14407 * lib/unicase/ulc-casexfrm.c: New file.
14408 * modules/unicase/ulc-casexfrm: New file.
14410 2009-03-09 Bruno Haible <bruno@clisp.org>
14412 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14415 * m4/mbscasecmp.m4: Remove file.
14416 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14417 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14419 * m4/mbscasestr.m4: Remove file.
14420 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14421 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14423 * m4/mbschr.m4: Remove file.
14424 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14425 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14427 * m4/mbscspn.m4: Remove file.
14428 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14429 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14431 * m4/mbslen.m4: Remove file.
14432 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14433 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14435 * m4/mbsncasecmp.m4: Remove file.
14436 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14437 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14439 * m4/mbsnlen.m4: Remove file.
14440 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14441 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14443 * m4/mbspbrk.m4: Remove file.
14444 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14445 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14447 * m4/mbspcasecmp.m4: Remove file.
14448 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14449 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14451 * m4/mbsrchr.m4: Remove file.
14452 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14453 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14455 * m4/mbssep.m4: Remove file.
14456 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14457 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14459 * m4/mbsspn.m4: Remove file.
14460 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14461 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14463 * m4/mbsstr.m4: Remove file.
14464 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14465 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14467 * m4/mbstok_r.m4: Remove file.
14468 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14469 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14471 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14473 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14474 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14476 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14478 2009-03-08 Bruno Haible <bruno@clisp.org>
14480 Tests for module 'unicase/ulc-casecmp'.
14481 * modules/unicase/ulc-casecmp-tests: New file.
14482 * tests/unicase/test-ulc-casecmp1.sh: New file.
14483 * tests/unicase/test-ulc-casecmp2.sh: New file.
14484 * tests/unicase/test-ulc-casecmp.c: New file.
14486 New module 'unicase/ulc-casecmp'.
14487 * lib/unicase.h (ulc_casecmp): New declaration.
14488 * lib/unicase/ulc-casecmp.c: New file.
14489 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14490 'const SRC_UNIT *'.
14491 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14492 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14493 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14494 * modules/unicase/ulc-casecmp: New file.
14496 Tests for module 'unicase/u32-is-cased'.
14497 * modules/unicase/u32-is-cased-tests: New file.
14498 * tests/unicase/test-u32-is-cased.c: New file.
14500 Tests for module 'unicase/u16-is-cased'.
14501 * modules/unicase/u16-is-cased-tests: New file.
14502 * tests/unicase/test-u16-is-cased.c: New file.
14504 Tests for module 'unicase/u8-is-cased'.
14505 * modules/unicase/u8-is-cased-tests: New file.
14506 * tests/unicase/test-u8-is-cased.c: New file.
14507 * tests/unicase/test-is-cased.h: New file.
14509 New module 'unicase/u32-is-cased'.
14510 * lib/unicase/u32-is-cased.c: New file.
14511 * modules/unicase/u32-is-cased: New file.
14513 New module 'unicase/u16-is-cased'.
14514 * lib/unicase/u16-is-cased.c: New file.
14515 * modules/unicase/u16-is-cased: New file.
14517 New module 'unicase/u8-is-cased'.
14518 * lib/unicase/u8-is-cased.c: New file.
14519 * lib/unicase/u-is-cased.h: New file.
14520 * modules/unicase/u8-is-cased: New file.
14522 Tests for module 'unicase/u32-is-casefolded'.
14523 * modules/unicase/u32-is-casefolded-tests: New file.
14524 * tests/unicase/test-u32-is-casefolded.c: New file.
14526 Tests for module 'unicase/u16-is-casefolded'.
14527 * modules/unicase/u16-is-casefolded-tests: New file.
14528 * tests/unicase/test-u16-is-casefolded.c: New file.
14530 Tests for module 'unicase/u8-is-casefolded'.
14531 * modules/unicase/u8-is-casefolded-tests: New file.
14532 * tests/unicase/test-u8-is-casefolded.c: New file.
14533 * tests/unicase/test-is-casefolded.h: New file.
14535 New module 'unicase/u32-is-casefolded'.
14536 * lib/unicase/u32-is-casefolded.c: New file.
14537 * modules/unicase/u32-is-casefolded: New file.
14539 New module 'unicase/u16-is-casefolded'.
14540 * lib/unicase/u16-is-casefolded.c: New file.
14541 * modules/unicase/u16-is-casefolded: New file.
14543 New module 'unicase/u8-is-casefolded'.
14544 * lib/unicase/u8-is-casefolded.c: New file.
14545 * modules/unicase/u8-is-casefolded: New file.
14547 Tests for module 'unicase/u32-is-titlecase'.
14548 * modules/unicase/u32-is-titlecase-tests: New file.
14549 * tests/unicase/test-u32-is-titlecase.c: New file.
14551 Tests for module 'unicase/u16-is-titlecase'.
14552 * modules/unicase/u16-is-titlecase-tests: New file.
14553 * tests/unicase/test-u16-is-titlecase.c: New file.
14555 Tests for module 'unicase/u8-is-titlecase'.
14556 * modules/unicase/u8-is-titlecase-tests: New file.
14557 * tests/unicase/test-u8-is-titlecase.c: New file.
14558 * tests/unicase/test-is-titlecase.h: New file.
14560 New module 'unicase/u32-is-titlecase'.
14561 * lib/unicase/u32-is-titlecase.c: New file.
14562 * modules/unicase/u32-is-titlecase: New file.
14564 New module 'unicase/u16-is-titlecase'.
14565 * lib/unicase/u16-is-titlecase.c: New file.
14566 * modules/unicase/u16-is-titlecase: New file.
14568 New module 'unicase/u8-is-titlecase'.
14569 * lib/unicase/u8-is-titlecase.c: New file.
14570 * modules/unicase/u8-is-titlecase: New file.
14572 Tests for module 'unicase/u32-is-lowercase'.
14573 * modules/unicase/u32-is-lowercase-tests: New file.
14574 * tests/unicase/test-u32-is-lowercase.c: New file.
14576 Tests for module 'unicase/u16-is-lowercase'.
14577 * modules/unicase/u16-is-lowercase-tests: New file.
14578 * tests/unicase/test-u16-is-lowercase.c: New file.
14580 Tests for module 'unicase/u8-is-lowercase'.
14581 * modules/unicase/u8-is-lowercase-tests: New file.
14582 * tests/unicase/test-u8-is-lowercase.c: New file.
14583 * tests/unicase/test-is-lowercase.h: New file.
14585 New module 'unicase/u32-is-lowercase'.
14586 * lib/unicase/u32-is-lowercase.c: New file.
14587 * modules/unicase/u32-is-lowercase: New file.
14589 New module 'unicase/u16-is-lowercase'.
14590 * lib/unicase/u16-is-lowercase.c: New file.
14591 * modules/unicase/u16-is-lowercase: New file.
14593 New module 'unicase/u8-is-lowercase'.
14594 * lib/unicase/u8-is-lowercase.c: New file.
14595 * modules/unicase/u8-is-lowercase: New file.
14597 Tests for module 'unicase/u32-is-uppercase'.
14598 * modules/unicase/u32-is-uppercase-tests: New file.
14599 * tests/unicase/test-u32-is-uppercase.c: New file.
14601 Tests for module 'unicase/u16-is-uppercase'.
14602 * modules/unicase/u16-is-uppercase-tests: New file.
14603 * tests/unicase/test-u16-is-uppercase.c: New file.
14605 Tests for module 'unicase/u8-is-uppercase'.
14606 * modules/unicase/u8-is-uppercase-tests: New file.
14607 * tests/unicase/test-u8-is-uppercase.c: New file.
14608 * tests/unicase/test-is-uppercase.h: New file.
14610 New module 'unicase/u32-is-uppercase'.
14611 * lib/unicase/u32-is-uppercase.c: New file.
14612 * modules/unicase/u32-is-uppercase: New file.
14614 New module 'unicase/u16-is-uppercase'.
14615 * lib/unicase/u16-is-uppercase.c: New file.
14616 * modules/unicase/u16-is-uppercase: New file.
14618 New module 'unicase/u8-is-uppercase'.
14619 * lib/unicase/u8-is-uppercase.c: New file.
14620 * modules/unicase/u8-is-uppercase: New file.
14622 New module 'unicase/u32-is-invariant'.
14623 * lib/unicase/u32-is-invariant.c: New file.
14624 * modules/unicase/u32-is-invariant: New file.
14626 New module 'unicase/u16-is-invariant'.
14627 * lib/unicase/u16-is-invariant.c: New file.
14628 * modules/unicase/u16-is-invariant: New file.
14630 New module 'unicase/u8-is-invariant'.
14631 * lib/unicase/u8-is-invariant.c: New file.
14632 * lib/unicase/invariant.h: New file.
14633 * lib/unicase/u-is-invariant.h: New file.
14634 * modules/unicase/u8-is-invariant: New file.
14636 Tests for module 'unicase/u32-casecoll'.
14637 * modules/unicase/u32-casecoll-tests: New file.
14638 * tests/unicase/test-u32-casecoll.c: New file.
14640 Tests for module 'unicase/u16-casecoll'.
14641 * modules/unicase/u16-casecoll-tests: New file.
14642 * tests/unicase/test-u16-casecoll.c: New file.
14644 Tests for module 'unicase/u8-casecoll'.
14645 * modules/unicase/u8-casecoll-tests: New file.
14646 * tests/unicase/test-u8-casecoll.c: New file.
14648 New module 'unicase/u32-casecoll'.
14649 * lib/unicase/u32-casecoll.c: New file.
14650 * modules/unicase/u32-casecoll: New file.
14652 New module 'unicase/u16-casecoll'.
14653 * lib/unicase/u16-casecoll.c: New file.
14654 * modules/unicase/u16-casecoll: New file.
14656 New module 'unicase/u8-casecoll'.
14657 * lib/unicase/u8-casecoll.c: New file.
14658 * lib/unicase/u-casecoll.h: New file.
14659 * modules/unicase/u8-casecoll: New file.
14661 New module 'unicase/u32-casexfrm'.
14662 * lib/unicase/u32-casexfrm.c: New file.
14663 * modules/unicase/u32-casexfrm: New file.
14665 New module 'unicase/u16-casexfrm'.
14666 * lib/unicase/u16-casexfrm.c: New file.
14667 * modules/unicase/u16-casexfrm: New file.
14669 New module 'unicase/u8-casexfrm'.
14670 * lib/unicase/u8-casexfrm.c: New file.
14671 * lib/unicase/u-casexfrm.h: New file.
14672 * modules/unicase/u8-casexfrm: New file.
14674 Tests for module 'unicase/u32-casecmp'.
14675 * modules/unicase/u32-casecmp-tests: New file.
14676 * tests/unicase/test-u32-casecmp.c: New file.
14678 Tests for module 'unicase/u16-casecmp'.
14679 * modules/unicase/u16-casecmp-tests: New file.
14680 * tests/unicase/test-u16-casecmp.c: New file.
14682 Tests for module 'unicase/u8-casecmp'.
14683 * modules/unicase/u8-casecmp-tests: New file.
14684 * tests/unicase/test-u8-casecmp.c: New file.
14685 * tests/unicase/test-casecmp.h: New file.
14687 New module 'unicase/u32-casecmp'.
14688 * lib/unicase/u32-casecmp.c: New file.
14689 * modules/unicase/u32-casecmp: New file.
14691 New module 'unicase/u16-casecmp'.
14692 * lib/unicase/u16-casecmp.c: New file.
14693 * modules/unicase/u16-casecmp: New file.
14695 New module 'unicase/u8-casecmp'.
14696 * lib/unicase/u8-casecmp.c: New file.
14697 * lib/unicase/u-casecmp.h: New file.
14698 * modules/unicase/u8-casecmp: New file.
14700 Tests for module 'unicase/u32-casefold'.
14701 * modules/unicase/u32-casefold-tests: New file.
14702 * tests/unicase/test-u32-casefold.c: New file.
14704 Tests for module 'unicase/u16-casefold'.
14705 * modules/unicase/u16-casefold-tests: New file.
14706 * tests/unicase/test-u16-casefold.c: New file.
14708 Tests for module 'unicase/u8-casefold'.
14709 * modules/unicase/u8-casefold-tests: New file.
14710 * tests/unicase/test-u8-casefold.c: New file.
14712 New module 'unicase/u32-casefold'.
14713 * lib/unicase/u32-casefold.c: New file.
14714 * modules/unicase/u32-casefold: New file.
14716 New module 'unicase/u16-casefold'.
14717 * lib/unicase/u16-casefold.c: New file.
14718 * modules/unicase/u16-casefold: New file.
14720 New module 'unicase/u8-casefold'.
14721 * lib/unicase/u8-casefold.c: New file.
14722 * lib/unicase/u-casefold.h: New file.
14723 * modules/unicase/u8-casefold: New file.
14725 New module 'unicase/tocasefold'.
14726 * lib/unicase/casefold.h: New file.
14727 * lib/unicase/tocasefold.c: New file.
14728 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14729 * modules/unicase/tocasefold: New file.
14731 Tests for module 'unicase/u32-totitle'.
14732 * modules/unicase/u32-totitle-tests: New file.
14733 * tests/unicase/test-u32-totitle.c: New file.
14735 Tests for module 'unicase/u16-totitle'.
14736 * modules/unicase/u16-totitle-tests: New file.
14737 * tests/unicase/test-u16-totitle.c: New file.
14739 Tests for module 'unicase/u8-totitle'.
14740 * modules/unicase/u8-totitle-tests: New file.
14741 * tests/unicase/test-u8-totitle.c: New file.
14743 New module 'unicase/u32-totitle'.
14744 * lib/unicase/u32-totitle.c: New file.
14745 * modules/unicase/u32-totitle: New file.
14747 New module 'unicase/u16-totitle'.
14748 * lib/unicase/u16-totitle.c: New file.
14749 * modules/unicase/u16-totitle: New file.
14751 New module 'unicase/u8-totitle'.
14752 * lib/unicase/u8-totitle.c: New file.
14753 * lib/unicase/u-totitle.h: New file.
14754 * modules/unicase/u8-totitle: New file.
14756 Tests for module 'unicase/u32-tolower'.
14757 * modules/unicase/u32-tolower-tests: New file.
14758 * tests/unicase/test-u32-tolower.c: New file.
14760 Tests for module 'unicase/u16-tolower'.
14761 * modules/unicase/u16-tolower-tests: New file.
14762 * tests/unicase/test-u16-tolower.c: New file.
14764 Tests for module 'unicase/u8-tolower'.
14765 * modules/unicase/u8-tolower-tests: New file.
14766 * tests/unicase/test-u8-tolower.c: New file.
14768 New module 'unicase/u32-tolower'.
14769 * lib/unicase/u32-tolower.c: New file.
14770 * modules/unicase/u32-tolower: New file.
14772 New module 'unicase/u16-tolower'.
14773 * lib/unicase/u16-tolower.c: New file.
14774 * modules/unicase/u16-tolower: New file.
14776 New module 'unicase/u8-tolower'.
14777 * lib/unicase/u8-tolower.c: New file.
14778 * modules/unicase/u8-tolower: New file.
14780 Tests for module 'unicase/u32-toupper'.
14781 * modules/unicase/u32-toupper-tests: New file.
14782 * tests/unicase/test-u32-toupper.c: New file.
14784 Tests for module 'unicase/u16-toupper'.
14785 * modules/unicase/u16-toupper-tests: New file.
14786 * tests/unicase/test-u16-toupper.c: New file.
14788 Tests for module 'unicase/u8-toupper'.
14789 * modules/unicase/u8-toupper-tests: New file.
14790 * tests/unicase/test-u8-toupper.c: New file.
14792 New module 'unicase/u32-toupper'.
14793 * lib/unicase/u32-toupper.c: New file.
14794 * modules/unicase/u32-toupper: New file.
14796 New module 'unicase/u16-toupper'.
14797 * lib/unicase/u16-toupper.c: New file.
14798 * modules/unicase/u16-toupper: New file.
14800 New module 'unicase/u8-toupper'.
14801 * lib/unicase/u8-toupper.c: New file.
14802 * modules/unicase/u8-toupper: New file.
14804 New module 'unicase/u32-casemap'.
14805 * lib/unicase/u32-casemap.c: New file.
14806 * modules/unicase/u32-casemap: New file.
14808 New module 'unicase/u16-casemap'.
14809 * lib/unicase/u16-casemap.c: New file.
14810 * modules/unicase/u16-casemap: New file.
14812 New module 'unicase/u8-casemap'.
14813 * lib/unicase/unicasemap.h: New file.
14814 * lib/unicase/u8-casemap.c: New file.
14815 * lib/unicase/u-casemap.h: New file.
14816 * modules/unicase/u8-casemap: New file.
14818 New module 'unicase/special-casing'.
14819 * lib/unicase/special-casing.h: New file.
14820 * lib/unicase/special-casing.c: New file.
14821 * lib/unicase/special-casing-table.gperf: New file, generated by
14823 * modules/unicase/special-casing: New file.
14825 Tests for module 'unicase/locale-language'.
14826 * modules/unicase/locale-language-tests: New file.
14827 * tests/unicase/test-locale-language.sh: New file.
14828 * tests/unicase/test-locale-language.c: New file.
14830 New module 'unicase/locale-language'.
14831 * lib/unicase/locale-language.c: New file.
14832 * lib/unicase/locale-languages.gperf: New file.
14833 * modules/unicase/locale-language: New file.
14835 Generate more tables for case conversion and case folding.
14836 * lib/gen-uni-tables.c (SCC_*): New enum items.
14837 (struct special_casing_rule): New type.
14838 (casing_rules, num_casing_rules, allocated_casing_rules): New
14840 (add_casing_rule, fill_casing_rules): New functions.
14841 (struct casefold_rule): New type.
14842 (casefolding_rules, num_casefolding_rules,
14843 allocated_casefolding_rules): New variables.
14844 (fill_casefolding_rules): New function.
14845 (unicode_casefold): New variable.
14846 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14847 sort_casing_rules, output_casing_rules): New functions.
14848 (main): Accept to more arguments: SpecialCasing.txt and
14849 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14850 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14851 Output mapping for casefolding.
14853 * lib/unicase.h: Include stdbool.h, uninorm.h.
14854 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14855 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14856 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14858 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14860 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14861 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14863 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14864 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14865 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14866 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14868 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14870 2009-03-08 Bruno Haible <bruno@clisp.org>
14872 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14873 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14874 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14875 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14877 2009-03-07 Bruno Haible <bruno@clisp.org>
14879 Adjust u*_normcmp, u*_normcoll API.
14880 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14881 u16_normcoll, u32_normcoll): Change failure conventions.
14882 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14883 errno and return -1.
14884 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14886 2009-03-07 Bruno Haible <bruno@clisp.org>
14888 Tests for module 'uninorm/u32-normcoll'.
14889 * modules/uninorm/u32-normcoll-tests: New file.
14890 * tests/uninorm/test-u32-normcoll.c: New file.
14892 Tests for module 'uninorm/u16-normcoll'.
14893 * modules/uninorm/u16-normcoll-tests: New file.
14894 * tests/uninorm/test-u16-normcoll.c: New file.
14896 Tests for module 'uninorm/u8-normcoll'.
14897 * modules/uninorm/u8-normcoll-tests: New file.
14898 * tests/uninorm/test-u8-normcoll.c: New file.
14900 2009-03-07 Bruno Haible <bruno@clisp.org>
14902 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14903 tests/uninorm/test-u32-normcmp.c.
14904 * tests/uninorm/test-u32-normcmp.c: Include it.
14905 (test_nonascii): New function, extracted from main. Add some more
14907 (main): Invoke test_ascii and test_nonascii.
14908 * modules/uninorm/u32-normcmp-tests (Files): Add
14909 tests/uninorm/test-u32-normcmp.h.
14910 (Depends-on): Remove uninorm/u32-normcmp.
14912 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14913 tests/uninorm/test-u16-normcmp.c.
14914 * tests/uninorm/test-u16-normcmp.c: Include it.
14915 (test_nonascii): New function, extracted from main. Add some more
14917 (main): Invoke test_ascii and test_nonascii.
14918 * modules/uninorm/u16-normcmp-tests (Files): Add
14919 tests/uninorm/test-u16-normcmp.h.
14920 (Depends-on): Remove uninorm/u16-normcmp.
14922 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14923 tests/uninorm/test-u8-normcmp.c.
14924 * tests/uninorm/test-u8-normcmp.c: Include it.
14925 (test_nonascii): New function, extracted from main. Add some more
14927 (main): Invoke test_ascii and test_nonascii.
14928 * modules/uninorm/u8-normcmp-tests (Files): Add
14929 tests/uninorm/test-u8-normcmp.h.
14930 (Depends-on): Remove uninorm/u8-normcmp.
14932 2009-03-07 Bruno Haible <bruno@clisp.org>
14934 New module 'uninorm/u32-normcoll'.
14935 * lib/uninorm/u32-normcoll.c: New file.
14936 * modules/uninorm/u32-normcoll: New file.
14938 New module 'uninorm/u16-normcoll'.
14939 * lib/uninorm/u16-normcoll.c: New file.
14940 * modules/uninorm/u16-normcoll: New file.
14942 New module 'uninorm/u8-normcoll'.
14943 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14945 * lib/uninorm/u8-normcoll.c: New file.
14946 * lib/uninorm/u-normcoll.h: New file.
14947 * modules/uninorm/u8-normcoll: New file.
14949 New module 'uninorm/u32-normxfrm'.
14950 * lib/uninorm/u32-normxfrm.c: New file.
14951 * modules/uninorm/u32-normxfrm: New file.
14953 New module 'uninorm/u16-normxfrm'.
14954 * lib/uninorm/u16-normxfrm.c: New file.
14955 * modules/uninorm/u16-normxfrm: New file.
14957 New module 'uninorm/u8-normxfrm'.
14958 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14960 * lib/uninorm/u8-normxfrm.c: New file.
14961 * lib/uninorm/u-normxfrm.h: New file.
14962 * modules/uninorm/u8-normxfrm: New file.
14964 2009-03-07 Bruno Haible <bruno@clisp.org>
14966 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14967 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14968 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14970 2009-03-07 Bruno Haible <bruno@clisp.org>
14972 New module 'memxfrm'.
14973 * lib/memxfrm.h: New file.
14974 * lib/memxfrm.c: New file.
14975 * modules/memxfrm: New file.
14977 2009-03-07 Bruno Haible <bruno@clisp.org>
14979 New module 'memcmp2'.
14980 * lib/memcmp2.h: New file.
14981 * lib/memcmp2.c: New file.
14982 * modules/memcmp2: New file.
14984 2009-03-07 Bruno Haible <bruno@clisp.org>
14986 Tests for module 'uninorm/decomposing-form'.
14987 * modules/uninorm/decomposing-form-tests: New file.
14988 * tests/uninorm/test-decomposing-form.c: New file.
14990 New module 'uninorm/decomposing-form'.
14991 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14992 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14993 Add 'decomposing_variant' field.
14994 * lib/uninorm/decomposing-form.c: New file.
14995 * lib/uninorm/nfc.c (uninorm_nfc): Update.
14996 * lib/uninorm/nfd.c (uninorm_nfd): Update.
14997 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14998 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14999 * modules/uninorm/decomposing-form: New file.
15000 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15001 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15003 2009-03-07 Bruno Haible <bruno@clisp.org>
15005 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15008 2009-03-06 Bruno Haible <bruno@clisp.org>
15010 Tests for module 'uninorm/u32-normcmp'.
15011 * tests/uninorm/test-u32-normcmp.c: New file.
15012 * modules/uninorm/u32-normcmp-tests: New file.
15014 Tests for module 'uninorm/u16-normcmp'.
15015 * tests/uninorm/test-u16-normcmp.c: New file.
15016 * modules/uninorm/u16-normcmp-tests: New file.
15018 Tests for module 'uninorm/u8-normcmp'.
15019 * tests/uninorm/test-u8-normcmp.c: New file.
15020 * modules/uninorm/u8-normcmp-tests: New file.
15022 New module 'uninorm/u32-normcmp'.
15023 * lib/uninorm/u32-normcmp.c: New file.
15024 * modules/uninorm/u32-normcmp: New file.
15026 New module 'uninorm/u16-normcmp'.
15027 * lib/uninorm/u16-normcmp.c: New file.
15028 * modules/uninorm/u16-normcmp: New file.
15030 New module 'uninorm/u8-normcmp'.
15031 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15033 * lib/uninorm/u8-normcmp.c: New file.
15034 * lib/uninorm/u-normcmp.h: New file.
15035 * modules/uninorm/u8-normcmp: New file.
15037 2009-03-06 Bruno Haible <bruno@clisp.org>
15039 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15040 Reported by Eric Blake.
15042 2009-03-06 Eric Blake <ebb9@byu.net>
15043 Bruno Haible <bruno@clisp.org>
15045 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15046 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15048 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15049 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15051 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15053 2009-03-06 Eric Blake <ebb9@byu.net>
15055 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15056 to avoid compiler warnings.
15057 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15059 2009-03-05 Bruno Haible <bruno@clisp.org>
15061 * tests/test-ftell.c (main): Disable test beyond end of file on
15063 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15065 2009-03-05 Kamil Dudka <kdudka@redhat.com>
15067 * lib/filevercmp.c: Move hidden files up in ordering.
15068 * tests/test-filevercmp.c: Add tests for hidden files.
15070 2009-03-04 Bruno Haible <bruno@clisp.org>
15072 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15073 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15075 Reported by Simon Josefsson.
15077 2009-03-03 Bruno Haible <bruno@clisp.org>
15079 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15080 Reported by Simon Josefsson.
15082 * doc/ld-version-script.texi: Update node reference.
15084 2009-03-03 Bruno Haible <bruno@clisp.org>
15086 * modules/visibility (License): Change to 'unlimited'.
15087 Suggested by Simon Josefsson.
15089 2009-03-03 Jim Meyering <meyering@redhat.com>
15091 unlinkdir: cannot_unlink_dir may modify process state
15092 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15093 it's neither thread-safe nor appropriate for use in a library.
15095 2009-03-03 Eric Blake <ebb9@byu.net>
15097 test-closein: silence test under Darwin
15098 * tests/test-closein.sh: Ignore stderr from cat, since we don't
15099 care if it dies from EPIPE or EBADF.
15101 2009-03-03 Bruno Haible <bruno@clisp.org>
15103 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15105 * doc/visibility.texi: Fix @node and @section.
15107 2009-03-03 Simon Josefsson <simon@josefsson.org>
15109 * doc/gnulib.texi: Link to sections for ld version script and
15111 * doc/visibility.texi: Add @node and @section.
15112 * modules/ld-version-script: New module.
15113 * m4/ld-version-script.m4: New file.
15114 * doc/ld-version-script.texi: New file.
15116 2009-03-02 David Lutterkort <lutter@redhat.com>
15118 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15119 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15121 2009-03-02 Bruno Haible <bruno@clisp.org>
15123 * doc/visibility.texi: Mention libtool's -export-symbols option.
15125 2009-03-02 Jim Meyering <meyering@redhat.com>
15127 announce-gen: new option: --no-print-checksums
15128 * build-aux/announce-gen (usage): Describe it.
15129 (print_checksums): Print a newline here, not in the [*] footnote.
15132 2009-03-01 Bruno Haible <bruno@clisp.org>
15134 Use socklen_t in the native Windows replacements prototypes.
15135 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15137 * lib/getsockopt.c (rpl_getsockopt): Likewise.
15138 * lib/setsockopt.c (rpl_setsockopt): Likewise.
15139 * modules/getsockopt (Depends-on): Add socklen.
15140 * modules/setsockopt (Depends-on): Add socklen.
15142 2009-03-01 Bruno Haible <bruno@clisp.org>
15144 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15147 2009-03-01 Eric Blake <ebb9@byu.net>
15148 Bruno Haible <bruno@clisp.org>
15150 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15152 * lib/wait-process.c (wait_subprocess): Omit error message about
15153 deadly signal sent to the child of termsigp != NULL.
15155 2009-03-01 Eric Blake <ebb9@byu.net>
15157 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15159 2009-03-01 Bruno Haible <bruno@clisp.org>
15161 Avoid a gcc warning.
15162 * tests/test-sched.c (b): Make global.
15163 Reported by Eric Blake.
15165 2009-01-19 Martin Lambers <marlam@marlam.de>
15167 Provide POSIX semantics for socket timeout options on W32.
15168 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15169 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15170 * modules/setsockopt: Depend on sys_time module for struct timeval.
15171 * modules/getsockopt: Depend on sys_time module for struct timeval.
15173 2009-03-01 Simon Josefsson <simon@josefsson.org>
15175 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15176 __USE_GNU, for consistency with netdb.in.h.
15177 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15179 2009-03-01 Bruno Haible <bruno@clisp.org>
15181 More support for FreeMiNT.
15182 * lib/fseeko.c (rpl_fseeko): Complete last commit.
15183 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15185 2009-03-01 Bruno Haible <bruno@clisp.org>
15187 More support for FreeMiNT.
15188 * lib/fpurge.c (fpurge): Correct last commit.
15189 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15191 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15193 Fix unportable awk script in vc-list-files.
15194 * build-aux/vc-list-files: In the replacement awk script, use
15195 substr with a second argument of 1, not zero.
15196 Report by Simon Josefsson.
15198 2009-02-28 Bruno Haible <bruno@clisp.org>
15200 More support for FreeMiNT.
15201 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15203 * lib/fwriting.c (fwriting): Likewise.
15204 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15206 2009-02-28 Bruno Haible <bruno@clisp.org>
15208 * tests/test-freadseek.c (main): Disable test beyond end of file on
15210 * tests/test-ftello.c (main): Likewise.
15211 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15213 2009-02-28 Bruno Haible <bruno@clisp.org>
15215 Add tentative support for FreeMiNT.
15216 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15217 * lib/fpurge.c (fpurge): Likewise.
15218 * lib/freadable.c (freadable): Likewise.
15219 * lib/freading.c (freading): Likewise.
15220 * lib/freadptr.c (freadptr): Likewise.
15221 * lib/freadseek.c (freadptrinc): Likewise.
15222 * lib/fseeko.c (rpl_fseeko): Likewise.
15223 * lib/fseterr.c (fseterr): Likewise.
15224 * lib/fwritable.c (fwritable): Likewise.
15225 * lib/fwriting.c (fwriting): Likewise.
15226 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15228 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15230 2009-02-28 Bruno Haible <bruno@clisp.org>
15232 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15234 Reported by Jim Meyering.
15236 2009-02-28 Bruno Haible <bruno@clisp.org>
15238 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15239 Mention the results of these tests on various platforms.
15240 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15242 * doc/posix-functions/printf.texi: Likewise.
15243 * doc/posix-functions/snprintf.texi: Likewise.
15244 * doc/posix-functions/sprintf.texi: Likewise.
15245 * doc/posix-functions/vfprintf.texi: Likewise.
15246 * doc/posix-functions/vprintf.texi: Likewise.
15247 * doc/posix-functions/vsnprintf.texi: Likewise.
15248 * doc/posix-functions/vsprintf.texi: Likewise.
15249 * doc/glibc-functions/obstack_printf.texi: Likewise.
15250 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15252 2009-02-28 Bruno Haible <bruno@clisp.org>
15254 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15255 Reported by Loïc Minier <lool@dooz.org>.
15257 2009-02-27 Bruno Haible <bruno@clisp.org>
15259 * gnulib-tool (func_import): Make the sed expression used to create the
15260 sed script for updating the .gitignore file POSIX compliant.
15261 Reported by Eric Blake.
15263 2009-02-27 Bruno Haible <bruno@clisp.org>
15265 * gnulib-tool (sed): Don't alias as "sed --posix".
15266 Reported by Eric Blake.
15268 2009-02-27 Bruno Haible <bruno@clisp.org>
15270 Avoid test link errors.
15271 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15272 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15273 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15274 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15275 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15277 2009-02-27 Bruno Haible <bruno@clisp.org>
15279 Avoid spurious "(cached)" in configure output.
15280 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15281 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15282 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15283 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15284 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15285 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15286 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15287 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15288 Reported by Eric Blake.
15290 2009-02-27 Eric Blake <ebb9@byu.net>
15292 printf: fix regression in previous patch
15293 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15295 2009-02-27 Bruno Haible <bruno@clisp.org>
15297 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15299 * lib/stdint.in.h: Likewise.
15300 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15302 2009-02-27 Eric Blake <ebb9@byu.net>
15304 doc: mention more functions added in cygwin 1.7.0
15305 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15307 * doc/posix-functions/open_wmemstream.texi: Likewise.
15308 * doc/posix-functions/wcsnlen.texi: Likewise.
15309 * doc/posix-functions/wcsnrtombs.texi: Likewise.
15310 * doc/posix-functions/wcstod.texi: Likewise.
15311 * doc/posix-functions/wcstof.texi: Likewise.
15312 * doc/posix-functions/wcstoimax.texi: Likewise.
15313 * doc/posix-functions/wcstok.texi: Likewise.
15314 * doc/posix-functions/wcstoumax.texi: Likewise.
15316 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15317 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15318 * doc/posix-functions/fprintf.texi: Update.
15319 * doc/posix-functions/printf.texi: Update.
15320 * doc/posix-functions/snprintf.texi: Update.
15321 * doc/posix-functions/sprintf.texi: Update.
15322 * doc/posix-functions/vfprintf.texi: Update.
15323 * doc/posix-functions/vprintf.texi: Update.
15324 * doc/posix-functions/vsnprintf.texi: Update.
15325 * doc/posix-functions/vsprintf.texi: Update.
15326 * doc/glibc-functions/obstack_printf.texi: Update.
15327 * doc/glibc-functions/obstack_vprintf.texi: Update.
15329 2009-02-26 Eric Blake <ebb9@byu.net>
15331 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15332 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15333 compilation bug by using runtime conversion.
15334 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15335 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15336 * modules/ceill-tests (Files): Use nan.h.
15337 * modules/floorl-tests (Files): Likewise.
15338 * modules/frexpl-tests (Files): Likewise.
15339 * modules/isnanl-tests (Files): Likewise.
15340 * modules/ldexpl-tests (Files): Likewise.
15341 * modules/roundl-tests (Files): Likewise.
15342 * modules/truncl-tests (Files): Likewise.
15343 * tests/test-ceill.c (main): Use a working NaN.
15344 * tests/test-floorl.c (main): Likewise.
15345 * tests/test-frexpl.c (main): Likewise.
15346 * tests/test-isnan.c (test_long_double): Likewise.
15347 * tests/test-isnanl.h (main): Likewise.
15348 * tests/test-ldexpl.h (main): Likewise.
15349 * tests/test-roundl.h (main): Likewise.
15350 * tests/test-truncl.h (main): Likewise.
15351 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15353 2009-02-26 Eric Blake <ebb9@byu.net>
15354 Bruno Haible <bruno@clisp.org>
15356 Work around a *printf bug with %ls on Solaris.
15357 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15358 precision is specified, sprintf stops converting the wide string
15359 argument when the number of bytes that have been produced by this
15360 conversion equals or exceeds the precision.
15361 * doc/posix-functions/fprintf.texi: Update.
15362 * doc/posix-functions/printf.texi: Update.
15363 * doc/posix-functions/snprintf.texi: Update.
15364 * doc/posix-functions/sprintf.texi: Update.
15365 * doc/posix-functions/vfprintf.texi: Update.
15366 * doc/posix-functions/vprintf.texi: Update.
15367 * doc/posix-functions/vsnprintf.texi: Update.
15368 * doc/posix-functions/vsprintf.texi: Update.
15369 * doc/glibc-functions/obstack_printf.texi: Update.
15370 * doc/glibc-functions/obstack_vprintf.texi: Update.
15372 2009-02-26 Eric Blake <ebb9@byu.net>
15374 stdlib: favor compiler check of random.h
15375 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
15376 to avoid an ObjC random.h installed by Swarm.
15378 2009-02-26 Bruno Haible <bruno@clisp.org>
15380 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15381 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15382 Reported by Gary V. Vaughan <gary@gnu.org>.
15384 2009-02-26 Bruno Haible <bruno@clisp.org>
15386 Fix *printf behaviour regarding the %ls directive.
15387 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15388 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15389 NEED_PRINTF_DIRECTIVE_LS.
15390 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15391 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15392 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15393 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15394 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15395 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15396 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15397 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15398 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15399 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15400 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15401 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15402 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15403 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15404 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15405 * doc/posix-functions/fprintf.texi: Update.
15406 * doc/posix-functions/printf.texi: Update.
15407 * doc/posix-functions/snprintf.texi: Update.
15408 * doc/posix-functions/sprintf.texi: Update.
15409 * doc/posix-functions/vfprintf.texi: Update.
15410 * doc/posix-functions/vprintf.texi: Update.
15411 * doc/posix-functions/vsnprintf.texi: Update.
15412 * doc/posix-functions/vsprintf.texi: Update.
15413 * doc/glibc-functions/obstack_printf.texi: Update.
15414 * doc/glibc-functions/obstack_vprintf.texi: Update.
15415 Reported by Eric Blake.
15417 2009-02-25 Bruno Haible <bruno@clisp.org>
15419 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15421 Reported by Gary V. Vaughan <gary@gnu.org>.
15423 2009-02-25 Bruno Haible <bruno@clisp.org>
15425 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15426 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15427 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15428 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15429 Reported by Gary V. Vaughan <gary@gnu.org>.
15431 2009-02-25 Bruno Haible <bruno@clisp.org>
15433 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15434 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15435 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15436 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15437 Reported by Gary V. Vaughan <gary@gnu.org>.
15439 2009-02-25 Eric Blake <ebb9@byu.net>
15441 tests: skip fseek/ftell tests if ungetc is broken
15442 * m4/ungetc.m4: New file.
15443 * modules/fseek-tests: Split test, so ungetc dependency is
15444 separate from rest of test.
15445 * modules/fseeko-tests: Likewise.
15446 * modules/ftell-tests: Likewise.
15447 * modules/ftello-tests: Likewise.
15448 * tests/test-fseek.c (main): Isolate ungetc dependency.
15449 * tests/test-fseeko.c (main): Likewise.
15450 * tests/test-ftell.c (main): Likewise.
15451 * tests/test-ftello.c (main): Likewise.
15452 * tests/test-fseek2.sh: New file.
15453 * tests/test-fseeko2.sh: Likewise.
15454 * tests/test-ftell2.sh: Likewise.
15455 * tests/test-ftello2.sh: Likewise.
15457 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
15459 test-getaddrinfo: fix usage of skip return code 77
15460 * tests/test-gettaddrinfo.c: Return skip code 77 only
15461 for first occurance of skip (4x77 is not 77)
15463 2009-02-25 Gary V. Vaughan <gary@gnu.org>
15465 strtod: avoid C99 decl-after-statement
15466 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15468 2009-02-24 Eric Blake <ebb9@byu.net>
15470 strtod: detect HP-UX 11.31 bug
15471 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15472 Reported by Gary V. Vaughan.
15474 2009-02-23 Bruno Haible <bruno@clisp.org>
15476 Fix invalid read past end of memory block.
15477 * lib/vasnprintf.c (DCHAR_SET): Define.
15478 (local_wcslen): Define only when needed.
15479 (local_strnlen, local_wcsnlen): New functions.
15480 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15481 directives that involve a conversion ourselves.
15482 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15483 wcsnlen, mbrtowc, wcrtomb.
15484 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15485 * tests/test-vasprintf-posix.c (test_function): Likewise.
15486 * tests/test-snprintf-posix.h (test_function): Likewise.
15487 * tests/test-sprintf-posix.h (test_function): Likewise.
15488 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15490 2009-02-22 Bruno Haible <bruno@clisp.org>
15492 Implement new clarified decomposition of Hangul syllables.
15493 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15494 of type LTV, return only a pairwise decomposition.
15495 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15497 * tests/uninorm/test-decomposition.c (main): Updated expected result.
15498 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15499 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15501 2009-02-22 Bruno Haible <bruno@clisp.org>
15503 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15504 zero-length results and shrink excess allocated memory.
15505 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15506 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15507 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15508 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15509 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15510 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15511 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15512 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15513 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15514 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15515 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15516 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15518 2009-02-21 Bruno Haible <bruno@clisp.org>
15520 * doc/gnulib.texi: Include safe-alloc.texi earlier.
15521 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15522 spaces after a period. Put a space between a macro name and its
15523 argument list. Trivial rewordings.
15524 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15525 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15526 (main): Return 0 explicitly.
15528 2009-02-21 Bruno Haible <bruno@clisp.org>
15530 Tests for module 'uninorm/filter'.
15531 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15532 * modules/uninorm/filter-tests: New file.
15534 New module 'uninorm/filter'.
15535 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15536 uninorm_filter_flush, uninorm_filter_free): New declarations.
15537 * lib/uninorm/uninorm-filter.c: New file.
15538 * modules/uninorm/filter: New file.
15540 2009-02-21 Bruno Haible <bruno@clisp.org>
15542 Tests for module 'uninorm/nfkc'.
15543 * tests/uninorm/test-nfkc.c: New file.
15544 * tests/uninorm/test-u8-nfkc.c: New file.
15545 * tests/uninorm/test-u16-nfkc.c: New file.
15546 * tests/uninorm/test-u32-nfkc.c: New file.
15547 * tests/uninorm/test-u32-nfkc-big.sh: New file.
15548 * tests/uninorm/test-u32-nfkc-big.c: New file.
15549 * modules/uninorm/nfkc-tests: New file.
15551 New module 'uninorm/nfkc'.
15552 * lib/uninorm/nfkc.c: New file.
15553 * modules/uninorm/nfkc: New file.
15555 Tests for module 'uninorm/nfkd'.
15556 * tests/uninorm/test-nfkd.c: New file.
15557 * tests/uninorm/test-u8-nfkd.c: New file.
15558 * tests/uninorm/test-u16-nfkd.c: New file.
15559 * tests/uninorm/test-u32-nfkd.c: New file.
15560 * tests/uninorm/test-u32-nfkd-big.sh: New file.
15561 * tests/uninorm/test-u32-nfkd-big.c: New file.
15562 * modules/uninorm/nfkd-tests: New file.
15564 New module 'uninorm/nfkd'.
15565 * lib/uninorm/nfkd.c: New file.
15566 * modules/uninorm/nfkd: New file.
15568 Tests for module 'uninorm/nfc'.
15569 * tests/uninorm/test-nfc.c: New file.
15570 * tests/uninorm/test-u8-nfc.c: New file.
15571 * tests/uninorm/test-u16-nfc.c: New file.
15572 * tests/uninorm/test-u32-nfc.c: New file.
15573 * tests/uninorm/test-u32-nfc-big.sh: New file.
15574 * tests/uninorm/test-u32-nfc-big.c: New file.
15575 * modules/uninorm/nfc-tests: New file.
15577 New module 'uninorm/nfc'.
15578 * lib/uninorm/nfc.c: New file.
15579 * modules/uninorm/nfc: New file.
15581 Tests for module 'uninorm/nfd'.
15582 * tests/uninorm/test-nfd.c: New file.
15583 * tests/uninorm/test-u8-nfd.c: New file.
15584 * tests/uninorm/test-u16-nfd.c: New file.
15585 * tests/uninorm/test-u32-nfd.c: New file.
15586 * tests/uninorm/test-u32-nfd-big.sh: New file.
15587 * tests/uninorm/test-u32-nfd-big.c: New file.
15588 * tests/uninorm/test-u32-normalize-big.h: New file.
15589 * tests/uninorm/test-u32-normalize-big.c: New file.
15590 * tests/uninorm/NormalizationTest.txt: New file, created from
15591 Unicode 5.1.0 NormalizationTest.txt.
15592 * modules/uninorm/nfd-tests: New file.
15594 New module 'uninorm/nfd'.
15595 * lib/uninorm/nfd.c: New file.
15596 * modules/uninorm/nfd: New file.
15598 New module 'uninorm/u32-normalize'.
15599 * lib/uninorm/u32-normalize.c: New file.
15600 * modules/uninorm/u32-normalize: New file.
15602 New module 'uninorm/u16-normalize'.
15603 * lib/uninorm/u16-normalize.c: New file.
15604 * modules/uninorm/u16-normalize: New file.
15606 New module 'uninorm/u8-normalize'.
15607 * lib/uninorm/u8-normalize.c: New file.
15608 * lib/uninorm/normalize-internal.h: New file.
15609 * lib/uninorm/u-normalize-internal.h: New file.
15610 * modules/uninorm/u8-normalize: New file.
15612 New module 'uninorm/decompose-internal'.
15613 * lib/uninorm/decompose-internal.c: New file.
15614 * modules/uninorm/decompose-internal: New file.
15616 Tests for module 'uninorm/composition'.
15617 * tests/uninorm/test-composition.c: New file.
15618 * modules/uninorm/composition-tests: New file.
15620 New module 'uninorm/composition'.
15621 * lib/uninorm/composition.c: New file.
15622 * lib/uninorm/composition-table.gperf: New file, generated by
15624 * modules/uninorm/composition: New file.
15626 Tests for module 'uninorm/compat-decomposition'.
15627 * tests/uninorm/test-compat-decomposition.c: New file.
15628 * modules/uninorm/compat-decomposition-tests: New file.
15630 New module 'uninorm/compat-decomposition'.
15631 * lib/uninorm/decompose-internal.h: New file.
15632 * lib/uninorm/compat-decomposition.c: New file.
15633 * modules/uninorm/compat-decomposition: New file.
15635 Tests for module 'uninorm/canonical-decomposition'.
15636 * tests/uninorm/test-canonical-decomposition.c: New file.
15637 * modules/uninorm/canonical-decomposition-tests: New file.
15639 New module 'uninorm/canonical-decomposition'.
15640 * lib/uninorm/canonical-decomposition.c: New file.
15641 * modules/uninorm/canonical-decomposition: New file.
15643 Tests for module 'uninorm/decomposition'.
15644 * tests/uninorm/test-decomposition.c: New file.
15645 * modules/uninorm/decomposition-tests: New file.
15647 New module 'uninorm/decomposition'.
15648 * lib/uninorm/decomposition.c: New file.
15649 * modules/uninorm/decomposition: New file.
15651 New module 'uninorm/decomposition-table'.
15652 * lib/uninorm/decomposition-table.h: New file.
15653 * lib/uninorm/decomposition-table.c: New file.
15654 * lib/uninorm/decomposition-table1.h: New file, generated by
15656 * lib/uninorm/decomposition-table2.h: New file, generated by
15658 * modules/uninorm/decomposition-table: New file.
15660 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15661 (UC_DECOMP_*): New enumeration items.
15662 (get_decomposition): New function.
15663 (struct decomp_table): New type.
15664 (output_decomposition, output_decomposition_tables): New functions.
15665 (unicode_composition_exclusions): New variable.
15666 (fill_composition_exclusions, debug_output_composition_tables): New
15668 (main): Accept one more argument. Invoke fill_composition_exclusions.
15669 Output decomposition and composition tables.
15671 New module 'uninorm/base'.
15672 * lib/uninorm.h: New file.
15673 * lib/unictype.h: Update comment.
15674 * modules/uninorm/base: New file.
15676 2009-02-21 David Lutterkort <lutter@redhat.com>
15678 Tests for module 'safe-alloc'.
15679 * tests/test-safe-alloc.c: New file.
15680 * modules/safe-alloc-tests: New file.
15682 New module 'safe-alloc'.
15683 * lib/safe-alloc.h: New file.
15684 * lib/safe-alloc.c: New file.
15685 * m4/safe-alloc.m4: New file.
15686 * modules/safe-alloc: New file.
15687 * doc/safe-alloc.texi: New file.
15688 * doc/gnulib.texi: Include it.
15689 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15692 2009-02-18 Bruno Haible <bruno@clisp.org>
15694 Fix link error on non-glibc systems.
15695 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15697 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15699 2009-02-18 Jim Meyering <meyering@redhat.com>
15701 fts: avoid used-uninitialized error due to recent change
15702 * lib/fts.c (fts_read): Guard uses of the new member,
15703 parent->fts_n_dirs_remaining, since it's not relevant for
15704 the parent of a directory specified on the command-line.
15706 2009-02-17 James Youngman <jay@gnu.org>
15707 Bruno Haible <bruno@clisp.org>
15709 * m4/include_next.m4: Reformulate comment.
15711 2009-02-16 Jim Meyering <meyering@redhat.com>
15713 fts: add #if guards so that the fts_lgpl module still builds
15714 * lib/fts.c: Guard just-added hash-table-using parts with
15715 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15716 Reported by Simon Josefsson.
15718 2009-02-15 Bruno Haible <bruno@clisp.org>
15720 * modules/array-mergesort-tests: New file.
15721 * tests/test-array-mergesort.c: New file.
15723 New module 'array-mergesort'.
15724 * modules/array-mergesort: New file.
15725 * lib/array-mergesort.h: New file.
15727 2009-02-15 Bruno Haible <bruno@clisp.org>
15729 Fix 2009-02-07 commit.
15730 * lib/gen-uni-tables.c (output_predicate, output_category,
15731 output_combclass, output_bidi_category, output_decimal_digit,
15732 output_digit, output_numeric, output_mirror, output_scripts,
15733 output_ident_category, output_simple_mapping): Fix format directives.
15734 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15736 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
15738 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15739 fixes are available from IBM.
15741 2009-02-13 Jim Meyering <meyering@redhat.com>
15743 fts: arrange not to stat non-directories in more cases
15744 This makes GNU find (when it doesn't need to stat each file)
15745 *much* more efficient at traversing reiserfs file systems.
15746 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15747 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15748 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15749 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15750 (leaf_optimization_applies): New function.
15751 (LCO_hash, LCO_compare): New helper functions.
15752 (link_count_optimize_ok): New function.
15753 (fts_stat): Initialize new member (if dir).
15754 (fts_read): Decrement parent's fts_n_dirs_remaining count if
15755 we've just stat'ed a directory. Skip the stat call when possible.
15757 Note this AFS-related exchange:
15758 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15759 and note find's pioctl call in find/fstype.c.
15760 But that is necessary only if you want to enable the
15761 optimization for AFS, and for now, I don't.
15763 fts: move a function definition "up" (no semantic change)
15764 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15765 "up" to precede upcoming use of a related function.
15767 2009-02-11 Jim Meyering <meyering@redhat.com>
15769 fts: correct internal computation of nlinks (optimization-related)
15770 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15771 whether the current entry is a directory, so don't test it.
15773 2009-02-10 Bruno Haible <bruno@clisp.org>
15775 Tests for module 'uniwbrk/ulc-wordbreaks'.
15776 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15777 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15778 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15780 Tests for module 'uniwbrk/u32-wordbreaks'.
15781 * modules/uniwbrk/u32-wordbreaks-tests: New file.
15782 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15784 Tests for module 'uniwbrk/u16-wordbreaks'.
15785 * modules/uniwbrk/u16-wordbreaks-tests: New file.
15786 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15788 Tests for module 'uniwbrk/u8-wordbreaks'.
15789 * modules/uniwbrk/u8-wordbreaks-tests: New file.
15790 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15792 2009-02-10 Bruno Haible <bruno@clisp.org>
15794 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15796 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15797 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15798 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15800 2009-02-10 Simon Josefsson <simon@josefsson.org>
15802 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15803 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
15805 2009-02-10 Bruno Haible <bruno@clisp.org>
15807 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15808 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15809 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15810 * lib/unilbrk/u8-possible-linebreaks.c: Update.
15811 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15812 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15814 2009-02-09 Simon Josefsson <simon@josefsson.org>
15816 * lib/sockets.h (gl_fd_to_handle): New function.
15818 * tests/test-sockets.c: Call gl_fd_to_handle.
15820 2009-02-09 Bruno Haible <bruno@clisp.org>
15822 * doc/havelib.texi: Document the conventions on bi-arch systems.
15824 2009-02-08 Bruno Haible <bruno@clisp.org>
15826 Document the AC_LIB_LINKFLAGS macro.
15827 * doc/havelib.texi: New file, mostly written on 2005-05-24.
15828 * doc/gnulib.texi: Include it.
15830 2009-02-08 Bruno Haible <bruno@clisp.org>
15832 Fix wrong order of sections, compared to TOC.
15833 * doc/gnulib.texi: Include relocatable-maint.texi after the
15834 "Regular expressions" node, not before.
15836 2009-02-08 Bruno Haible <bruno@clisp.org>
15838 Tests for module 'unicase/totitle'.
15839 * modules/unicase/totitle-tests: New file.
15841 Tests for module 'unicase/tolower'.
15842 * modules/unicase/tolower-tests: New file.
15844 Tests for module 'unicase/toupper'.
15845 * modules/unicase/toupper-tests: New file.
15846 * tests/unicase/test-mapping-part1.h: New file.
15847 * tests/unicase/test-mapping-part2.h: New file.
15849 New module 'unicase/totitle'.
15850 * modules/unicase/totitle: New file.
15851 * lib/unicase/totitle.c: New file.
15853 New module 'unicase/tolower'.
15854 * modules/unicase/tolower: New file.
15855 * lib/unicase/tolower.c: New file.
15857 New module 'unicase/toupper'.
15858 * modules/unicase/toupper: New file.
15859 * lib/unicase/toupper.c: New file.
15860 * lib/unicase/simple-mapping.h: New file.
15862 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15863 (mapping_table): New structure.
15864 (output_simple_mapping): New function.
15865 (main): Invoke output_simple_mapping_test and output_simple_mapping.
15866 * modules/gen-uni-tables (Description): Update.
15867 * lib/unicase/toupper.h: New file, automatically generated by
15869 * lib/unicase/tolower.h: New file, automatically generated by
15871 * lib/unicase/totitle.h: New file, automatically generated by
15873 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15875 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15877 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15880 New module 'unicase/base'.
15881 * modules/unicase/base: New file.
15882 * lib/unicase.h: New file.
15884 2009-02-08 Bruno Haible <bruno@clisp.org>
15886 New module 'uniwbrk/ulc-wordbreaks'.
15887 * modules/uniwbrk/ulc-wordbreaks: New file.
15888 * lib/uniwbrk/ulc-wordbreaks.c: New file.
15890 New module 'uniwbrk/u32-wordbreaks'.
15891 * modules/uniwbrk/u32-wordbreaks: New file.
15892 * lib/uniwbrk/u32-wordbreaks.c: New file.
15894 New module 'uniwbrk/u16-wordbreaks'.
15895 * modules/uniwbrk/u16-wordbreaks: New file.
15896 * lib/uniwbrk/u16-wordbreaks.c: New file.
15898 New module 'uniwbrk/u8-wordbreaks'.
15899 * modules/uniwbrk/u8-wordbreaks: New file.
15900 * lib/uniwbrk/u8-wordbreaks.c: New file.
15901 * lib/uniwbrk/u-wordbreaks.h: New file.
15903 New module 'uniwbrk/table'.
15904 * modules/uniwbrk/table: New file.
15905 * lib/uniwbrk/wbrktable.h: New file.
15906 * lib/uniwbrk/wbrktable.c: New file.
15908 New module 'uniwbrk/wordbreak-property'.
15909 * modules/uniwbrk/wordbreak-property: New file.
15910 * lib/uniwbrk/wordbreak-property.c: New file.
15912 * lib/gen-uni-tables.c (WBP_*): New enum items.
15913 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15914 (unicode_org_wbp): New variable.
15915 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15917 (wbp_table): New structure.
15918 (output_wbp, output_wbrk_tables): New functions.
15919 (main): Accept additional argument. Invoke fill_org_wbp,
15920 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15921 output_wbrk_tables.
15922 * modules/gen-uni-tables (Description): Update.
15923 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15926 New module 'uniwbrk/base'.
15927 * modules/uniwbrk/base: New file.
15928 * lib/uniwbrk.h: New file.
15930 2009-02-08 Bruno Haible <bruno@clisp.org>
15932 Update to Unicode 5.1.0.
15933 * lib/gen-uni-tables.c (is_property_alphabetic): Include
15935 (is_property_default_ignorable_code_point): Don't include characters
15936 of category Cc or Cs and not-a-characters.
15937 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15938 U+0D79, U+109E, U+109F, U+A60C.
15939 * lib/unictype/bidi_of.h: Regenerated.
15940 * lib/unictype/blocks.h: Regenerated.
15941 * lib/unictype/categ_C.h: Regenerated.
15942 * lib/unictype/categ_Cf.h: Regenerated.
15943 * lib/unictype/categ_Cn.h: Regenerated.
15944 * lib/unictype/categ_L.h: Regenerated.
15945 * lib/unictype/categ_Ll.h: Regenerated.
15946 * lib/unictype/categ_Lm.h: Regenerated.
15947 * lib/unictype/categ_Lo.h: Regenerated.
15948 * lib/unictype/categ_Lu.h: Regenerated.
15949 * lib/unictype/categ_M.h: Regenerated.
15950 * lib/unictype/categ_Mc.h: Regenerated.
15951 * lib/unictype/categ_Me.h: Regenerated.
15952 * lib/unictype/categ_Mn.h: Regenerated.
15953 * lib/unictype/categ_N.h: Regenerated.
15954 * lib/unictype/categ_Nd.h: Regenerated.
15955 * lib/unictype/categ_Nl.h: Regenerated.
15956 * lib/unictype/categ_No.h: Regenerated.
15957 * lib/unictype/categ_P.h: Regenerated.
15958 * lib/unictype/categ_Pd.h: Regenerated.
15959 * lib/unictype/categ_Pe.h: Regenerated.
15960 * lib/unictype/categ_Pf.h: Regenerated.
15961 * lib/unictype/categ_Pi.h: Regenerated.
15962 * lib/unictype/categ_Po.h: Regenerated.
15963 * lib/unictype/categ_Ps.h: Regenerated.
15964 * lib/unictype/categ_S.h: Regenerated.
15965 * lib/unictype/categ_Sk.h: Regenerated.
15966 * lib/unictype/categ_Sm.h: Regenerated.
15967 * lib/unictype/categ_So.h: Regenerated.
15968 * lib/unictype/categ_of.h: Regenerated.
15969 * lib/unictype/combining.h: Regenerated.
15970 * lib/unictype/ctype_alnum.h: Regenerated.
15971 * lib/unictype/ctype_alpha.h: Regenerated.
15972 * lib/unictype/ctype_graph.h: Regenerated.
15973 * lib/unictype/ctype_lower.h: Regenerated.
15974 * lib/unictype/ctype_print.h: Regenerated.
15975 * lib/unictype/ctype_punct.h: Regenerated.
15976 * lib/unictype/ctype_upper.h: Regenerated.
15977 * lib/unictype/decdigit.h: Regenerated.
15978 * lib/unictype/digit.h: Regenerated.
15979 * lib/unictype/mirror.h: Regenerated.
15980 * lib/unictype/numeric.h: Regenerated.
15981 * lib/unictype/pr_alphabetic.h: Regenerated.
15982 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15983 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15984 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15985 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15986 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15987 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15988 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15989 * lib/unictype/pr_combining.h: Regenerated.
15990 * lib/unictype/pr_dash.h: Regenerated.
15991 * lib/unictype/pr_decimal_digit.h: Regenerated.
15992 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15993 * lib/unictype/pr_deprecated.h: Regenerated.
15994 * lib/unictype/pr_diacritic.h: Regenerated.
15995 * lib/unictype/pr_extender.h: Regenerated.
15996 * lib/unictype/pr_format_control.h: Regenerated.
15997 * lib/unictype/pr_grapheme_base.h: Regenerated.
15998 * lib/unictype/pr_grapheme_extend.h: Regenerated.
15999 * lib/unictype/pr_grapheme_link.h: Regenerated.
16000 * lib/unictype/pr_id_continue.h: Regenerated.
16001 * lib/unictype/pr_id_start.h: Regenerated.
16002 * lib/unictype/pr_ideographic.h: Regenerated.
16003 * lib/unictype/pr_ignorable_control.h: Regenerated.
16004 * lib/unictype/pr_lowercase.h: Regenerated.
16005 * lib/unictype/pr_math.h: Regenerated.
16006 * lib/unictype/pr_numeric.h: Regenerated.
16007 * lib/unictype/pr_other_alphabetic.h: Regenerated.
16008 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16009 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16010 * lib/unictype/pr_other_id_continue.h: Regenerated.
16011 * lib/unictype/pr_other_lowercase.h: Regenerated.
16012 * lib/unictype/pr_other_math.h: Regenerated.
16013 * lib/unictype/pr_punctuation.h: Regenerated.
16014 * lib/unictype/pr_sentence_terminal.h: Regenerated.
16015 * lib/unictype/pr_soft_dotted.h: Regenerated.
16016 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16017 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16018 * lib/unictype/pr_unified_ideograph.h: Regenerated.
16019 * lib/unictype/pr_uppercase.h: Regenerated.
16020 * lib/unictype/pr_xid_continue.h: Regenerated.
16021 * lib/unictype/pr_xid_start.h: Regenerated.
16022 * lib/unictype/pr_zero_width.h: Regenerated.
16023 * lib/unictype/scripts.h: Regenerated.
16024 * lib/unictype/scripts_byname.gperf: Regenerated.
16025 * lib/unictype/sy_java_ident.h: Regenerated.
16026 * lib/unilbrk/lbrkprop1.h: Regenerated.
16027 * lib/unilbrk/lbrkprop2.h: Regenerated.
16028 * tests/unictype/test-categ_C.c: Regenerated.
16029 * tests/unictype/test-categ_Cf.c: Regenerated.
16030 * tests/unictype/test-categ_Cn.c: Regenerated.
16031 * tests/unictype/test-categ_L.c: Regenerated.
16032 * tests/unictype/test-categ_Ll.c: Regenerated.
16033 * tests/unictype/test-categ_Lm.c: Regenerated.
16034 * tests/unictype/test-categ_Lo.c: Regenerated.
16035 * tests/unictype/test-categ_Lu.c: Regenerated.
16036 * tests/unictype/test-categ_M.c: Regenerated.
16037 * tests/unictype/test-categ_Mc.c: Regenerated.
16038 * tests/unictype/test-categ_Me.c: Regenerated.
16039 * tests/unictype/test-categ_Mn.c: Regenerated.
16040 * tests/unictype/test-categ_N.c: Regenerated.
16041 * tests/unictype/test-categ_Nd.c: Regenerated.
16042 * tests/unictype/test-categ_Nl.c: Regenerated.
16043 * tests/unictype/test-categ_No.c: Regenerated.
16044 * tests/unictype/test-categ_P.c: Regenerated.
16045 * tests/unictype/test-categ_Pd.c: Regenerated.
16046 * tests/unictype/test-categ_Pe.c: Regenerated.
16047 * tests/unictype/test-categ_Pf.c: Regenerated.
16048 * tests/unictype/test-categ_Pi.c: Regenerated.
16049 * tests/unictype/test-categ_Po.c: Regenerated.
16050 * tests/unictype/test-categ_Ps.c: Regenerated.
16051 * tests/unictype/test-categ_S.c: Regenerated.
16052 * tests/unictype/test-categ_Sk.c: Regenerated.
16053 * tests/unictype/test-categ_Sm.c: Regenerated.
16054 * tests/unictype/test-categ_So.c: Regenerated.
16055 * tests/unictype/test-ctype_alnum.c: Regenerated.
16056 * tests/unictype/test-ctype_alpha.c: Regenerated.
16057 * tests/unictype/test-ctype_graph.c: Regenerated.
16058 * tests/unictype/test-ctype_lower.c: Regenerated.
16059 * tests/unictype/test-ctype_print.c: Regenerated.
16060 * tests/unictype/test-ctype_punct.c: Regenerated.
16061 * tests/unictype/test-ctype_upper.c: Regenerated.
16062 * tests/unictype/test-decdigit.h: Regenerated.
16063 * tests/unictype/test-digit.h: Regenerated.
16064 * tests/unictype/test-numeric.h: Regenerated.
16065 * tests/unictype/test-pr_alphabetic.c: Regenerated.
16066 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16067 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16068 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16069 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16070 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16071 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16072 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16073 * tests/unictype/test-pr_combining.c: Regenerated.
16074 * tests/unictype/test-pr_dash.c: Regenerated.
16075 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16076 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16077 * tests/unictype/test-pr_deprecated.c: Regenerated.
16078 * tests/unictype/test-pr_diacritic.c: Regenerated.
16079 * tests/unictype/test-pr_extender.c: Regenerated.
16080 * tests/unictype/test-pr_format_control.c: Regenerated.
16081 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16082 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16083 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16084 * tests/unictype/test-pr_id_continue.c: Regenerated.
16085 * tests/unictype/test-pr_id_start.c: Regenerated.
16086 * tests/unictype/test-pr_ideographic.c: Regenerated.
16087 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16088 * tests/unictype/test-pr_lowercase.c: Regenerated.
16089 * tests/unictype/test-pr_math.c: Regenerated.
16090 * tests/unictype/test-pr_numeric.c: Regenerated.
16091 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16092 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16094 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16095 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16096 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16097 * tests/unictype/test-pr_other_math.c: Regenerated.
16098 * tests/unictype/test-pr_punctuation.c: Regenerated.
16099 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16100 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16101 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16102 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16103 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16104 * tests/unictype/test-pr_uppercase.c: Regenerated.
16105 * tests/unictype/test-pr_xid_continue.c: Regenerated.
16106 * tests/unictype/test-pr_xid_start.c: Regenerated.
16107 * tests/unictype/test-pr_zero_width.c: Regenerated.
16109 Update to Unicode 5.1.0.
16110 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16111 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16112 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16113 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16114 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16115 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16116 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16117 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16118 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16119 (nonspacing_table_ind): Update.
16120 * tests/uniwidth/test-uc_width2.sh: Update expected result.
16122 Update to Unicode 5.1.0.
16123 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16125 * lib/uniname/uniname.c (unicode_character_name,
16126 unicode_name_character): Add the range 0x1Fxxx to the code transform.
16127 * lib/uniname/uninames.h: Regenerated.
16128 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16130 2009-02-07 Bruno Haible <bruno@clisp.org>
16132 Merge gen-ctype and gen-lbrk into a single program.
16133 * lib/gen-uni-tables.c: New file, incorporating
16134 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16135 Add directory prefixes to the names of the generated files.
16136 * lib/unictype/gen-ctype.c: Remove file.
16137 * lib/unilbrk/gen-lbrk.c: Remove file.
16138 * modules/gen-uni-tables: New file.
16139 * modules/unictype/gen-ctype: Remove file.
16140 * modules/unilbrk/gen-lbrk: Remove file.
16142 2009-02-07 Bruno Haible <bruno@clisp.org>
16144 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16146 New module 'unistr/u32-strcoll'.
16147 * modules/unistr/u32-strcoll: New file.
16148 * lib/unistr/u32-strcoll.c: New file.
16150 New module 'unistr/u16-strcoll'.
16151 * modules/unistr/u16-strcoll: New file.
16152 * lib/unistr/u16-strcoll.c: New file.
16154 New module 'unistr/u8-strcoll'.
16155 * modules/unistr/u8-strcoll: New file.
16156 * lib/unistr/u8-strcoll.c: New file.
16157 * lib/unistr/u-strcoll.h: New file.
16159 2009-02-07 Bruno Haible <bruno@clisp.org>
16161 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16162 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16163 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16164 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16165 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16166 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16168 2009-02-07 Bruno Haible <bruno@clisp.org>
16171 * lib/unictype/gen-ctype.c (output_predicate, output_category,
16172 output_combclass, output_bidi_category, output_decimal_digit,
16173 output_digit, output_numeric, output_mirror, output_scripts,
16174 output_ident_category): Use proper width specifier in format strings.
16176 2009-02-07 Bruno Haible <bruno@clisp.org>
16178 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16181 2009-02-07 Jim Meyering <meyering@redhat.com>
16183 regex: avoid compilation failure with upcoming gcc-4.4
16184 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16185 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
16186 "... error: integer overflow in preprocessor expression".
16188 2009-02-05 Ben Pfaff <blp@gnu.org>
16190 Fix link errors on Windows when close module is used.
16191 * modules/close: Add $(LIB_CLOSE) to Link section.
16192 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16193 $(LIB_CLOSE) on Windows.
16195 2009-02-05 Jim Meyering <meyering@redhat.com>
16197 still avoid unused-parameter warnings, but do it cleanly
16198 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16199 (get_fs_usage): Cast to void instead.
16200 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16201 (dev_from_mount_options, read_file_system_list): Cast to void.
16202 Prompted by Bruno Haible.
16204 2009-02-04 Jim Meyering <meyering@redhat.com>
16206 fsusage.c: correct copyright year
16207 * lib/fsusage.c: Reflect year in which the change is pushed into
16209 avoid misc. warnings
16210 * lib/fsusage.c (UNUSED_PARAM): Define.
16211 (get_fs_usage): Mark parameter "disk" as unused.
16212 * lib/getugroups.c (getgrent): Use "void" in prototype.
16213 * lib/mountlist.c: Mark unused parameters.
16214 (read_file_system_list): Declare a local with "const".
16215 * lib/nanosleep.c (getnow): Declare static.
16216 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16218 dirfd: set errno upon failure
16219 * lib/dirfd.c: Include <errno.h>.
16220 Set errno to ENOTSUP when returning -1.
16221 * modules/dirfd (Depends-on): Add errno.
16222 Suggested by John Kodis <kodis@comcast.net>.
16224 2009-02-01 Bruno Haible <bruno@clisp.org>
16226 Don't assume sizeof (long) >= sizeof (void *).
16227 * lib/memcmp.c: Include stdint.h.
16228 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16229 srcp2 to 'const byte *'.
16230 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16231 types to uintptr_t.
16232 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16233 * modules/memcmp (Depends-on): Add stdint.
16234 Reported by Ozkan Sezer <sezeroz@gmail.com>.
16236 2009-01-30 Eric Blake <ebb9@byu.net>
16238 fix more require-before-expand issues
16239 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16240 expand, AC_PROG_AWK.
16241 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16243 2009-01-28 Eric Blake <ebb9@byu.net>
16245 version-etc: use consistent URL formatting
16246 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16247 Improve formatting. Use fputs for string without %.
16249 2009-01-28 Jim Meyering <meyering@redhat.com>
16251 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16252 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16253 "underquoted definition of NAME" from autoconf-2.59.
16255 2009-01-28 Bruno Haible <bruno@clisp.org>
16257 * doc/gnulib.texi: Add "Obsolete modules" to index.
16259 2009-01-28 Jim Meyering <meyering@redhat.com>
16261 useless-if-before-free: recognize more variants
16262 * build-aux/useless-if-before-free: Also recognize e.g.,
16263 if (NULL != p) free (p);
16265 2009-01-27 Mark McLoughlin <markmc@redhat.com>
16267 test-getaddrinfo: skip (don't fail) this test when there's no network
16268 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16269 on the presumption that it means you lack network access.
16271 2009-01-26 Jim Meyering <meyering@redhat.com>
16273 fflush: avoid warnings on modern systems
16274 * lib/fflush.c (rpl_fflush): Move declarations of locals,
16275 pos and result, into scopes where they're used.
16277 2009-01-26 Eric Blake <ebb9@byu.net>
16279 Silence warning reintroduced by recent extensions patch.
16280 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16281 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16284 Backport improved autoconf semantics of AC_DEFUN_ONCE.
16285 * m4/00gnulib.m4: New file.
16286 * gnulib-tool (func_get_filelist): Always use it.
16287 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16288 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16290 2009-01-25 Bruno Haible <bruno@clisp.org>
16292 Make test-quotearg work on MacOS X and AIX.
16293 * tests/test-quotearg.sh: New file.
16294 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16295 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16296 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16297 include <libintl.h>.
16298 (fake_locale): Remove variable.
16299 (gettext, dgettext, dcgettext): Remove functions.
16300 (main): Instead of setting a fake locale, set a real locale. Call
16301 textdomain and bindtextdomain.
16302 * modules/quotearg-tests (Files): Add the new files.
16303 (Depends-on): Add gettext, setenv, unsetenv.
16304 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16305 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16306 Augment TESTS_ENVIRONMENT.
16308 2009-01-25 Bruno Haible <bruno@clisp.org>
16310 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16311 fr_FR.ISO8859-1 locale on MacOS X.
16312 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16313 ja_JP.eucJP locale on MacOS X.
16314 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16315 zh_CN.GB18030 locale on MacOS X.
16317 2009-01-25 Bruno Haible <bruno@clisp.org>
16319 Avoid link errors on MacOS X 10.3.
16320 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16321 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16323 2009-01-25 Bruno Haible <bruno@clisp.org>
16325 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16326 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16327 * modules/pipe (Files): Remove m4/posix_spawn.m4.
16328 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16329 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16330 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16331 posix_spawnattr_init, posix_spawnattr_setsigmask,
16332 posix_spawnattr_setflags, posix_spawnattr_destroy.
16334 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16335 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16336 * modules/execute (Files): Remove m4/posix_spawn.m4.
16337 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16338 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16339 posix_spawnattr_init, posix_spawnattr_setsigmask,
16340 posix_spawnattr_setflags, posix_spawnattr_destroy.
16342 2009-01-25 Bruno Haible <bruno@clisp.org>
16344 * lib/glthread/threadlib.c: Include <stdlib.h>.
16346 2009-01-25 Bruno Haible <bruno@clisp.org>
16348 * lib/glthread/threadlib.c (dummy): New declaration.
16350 2009-01-25 Bruno Haible <bruno@clisp.org>
16352 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16353 multibyte characters also for the GB18030 encoding. Don't crash when
16354 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16356 2009-01-25 Bruno Haible <bruno@clisp.org>
16358 Avoid redefining 'struct random_data' on OSF/1 5.1.
16359 * lib/stdlib.in.h: Include <random.h> if it exists.
16360 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16361 HAVE_RANDOM_H. Include <random.h> when testing whether
16362 'struct random_data' exists.
16363 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16365 2009-01-25 Bruno Haible <bruno@clisp.org>
16367 Don't install charset.alias on MacOS X >= 10.3.
16368 * lib/localcharset.c (DARWIN7): New macro.
16369 (get_charset_aliases): Hardcode the result for Darwin7.
16370 * modules/localcharset (install-exec-local): Don't install
16371 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16373 2009-01-25 Bruno Haible <bruno@clisp.org>
16375 Don't install charset.alias on mingw and Cygwin.
16376 * modules/localcharset (install-exec-local): Don't install
16377 charset.alias on mingw and Cygwin, if the file does not yet exist.
16378 The result for these platforms is hardcoded in localcharset.c.
16380 2009-01-25 Bruno Haible <bruno@clisp.org>
16382 Make it possible again to use AC_GNU_SOURCE together with gnulib.
16383 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16384 before requiring AC_USE_SYSTEM_EXTENSIONS.
16386 2009-01-25 Jim Meyering <meyering@redhat.com>
16388 c-strtod: avoid warnings
16389 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16390 "assignment discards qualifiers from pointer target type" warnings.
16392 2009-01-24 Bruno Haible <bruno@clisp.org>
16394 Add support for non-UTF-8 locales on MacOS X.
16395 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16396 canonical encodings. For Darwin 7 and newer, don't map traditional
16397 encodings to UTF-8.
16398 Reported by Vincent Lefevre <vincent@vinc17.org>
16399 at <http://savannah.gnu.org/bugs/?25235>.
16401 2009-01-24 Bruno Haible <bruno@clisp.org>
16403 * doc/gnulib.texi (Obsolete modules): New section.
16404 Reported by Mike Frysinger <vapier@gentoo.org>.
16406 2009-01-24 Bruno Haible <bruno@clisp.org>
16408 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16411 2009-01-24 Bruno Haible <bruno@clisp.org>
16413 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16414 Reported by Eric Blake.
16416 2009-01-24 Bruno Haible <bruno@clisp.org>
16418 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16419 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16420 Reported by Gary V. Vaughan <gary@gnu.org>.
16422 2009-01-24 Bruno Haible <bruno@clisp.org>
16424 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16426 2009-01-23 Bruno Haible <bruno@clisp.org>
16428 Make c-strtod, c-strtold usable in libraries.
16429 * lib/c-strtod.c: Include string.h instead of xalloc.h.
16430 (C_STRTOD): Call strdup instead of xstrdup.
16431 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16432 * modules/c-strtold (Depends-on): Likewise.
16433 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16434 * NEWS: Mention the change.
16435 Reported by Michael Gold <mgold@ncf.ca>.
16437 2009-01-23 Jim Meyering <meyering@redhat.com>
16439 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16440 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16441 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16443 2009-01-23 Simon Josefsson <simon@josefsson.org>
16445 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16447 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16448 * modules/version-etc (Description): Update.
16450 2009-01-22 Bruno Haible <bruno@clisp.org>
16452 Cache the C locale object.
16453 * lib/c-strtod.c (c_locale_cache): New variable.
16454 (c_locale): New function.
16455 (C_STRTOD): Use it, and don't call freelocale.
16456 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16457 Suggested by Paolo Bonzini.
16459 2009-01-21 Bruno Haible <bruno@clisp.org>
16461 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16462 conditions other than overflow.
16464 2009-01-21 Bruno Haible <bruno@clisp.org>
16466 * lib/c-strtod.c: Include errno.h.
16467 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16468 value from STRTOD_L and STRTOD.
16470 2009-01-21 Bruno Haible <bruno@clisp.org>
16471 and Jim Meyering <meyering@redhat.com>
16473 nanosleep: skip configure test (fail it) for apple universal builds
16474 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16475 universal builds, assume that nanosleep does not work.
16476 * modules/nanosleep (Depends-on): Add multiarch.
16478 mktime: skip configure test (fail it) for apple universal builds
16479 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16480 universal builds, assume that mktime does not work.
16481 * modules/mktime (Depends-on): Add multiarch.
16483 2009-01-21 Eric Blake <ebb9@byu.net>
16485 multiarch: avoid expand-before-require warning
16486 * modules/multiarch (configure.ac): Require, rather than expand,
16488 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16489 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16490 enforce that all clients require it. Partial reversion of
16493 error: avoid expand-before-require warning
16494 * modules/errno (configure.ac): Require, rather than expand,
16496 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16497 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16498 enforce that all clients require it.
16500 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16501 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16502 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16503 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16505 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
16508 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16510 regex: do not depend on obsolete modules.
16511 * modules/regex: Remove memcmp and memmove.
16513 2009-01-20 Bruno Haible <bruno@clisp.org>
16515 Make the 'link' module link on Windows NT 4.
16516 * lib/link.c (_WIN32_WINNT): Don't define.
16517 (CreateHardLinkFuncType): New type.
16518 (CreateHardLinkFunc, initialized): New variables.
16519 (initialize): New function.
16520 (link): Invoke CreateHardLink indirectly through the function pointer.
16522 2009-01-20 Bruno Haible <bruno@clisp.org>
16524 Fix compilation failure on mingw.
16525 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16527 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
16529 * doc/c-strtod.texi: Mention a couple of restrictions.
16531 2009-01-20 Jim Meyering <meyering@redhat.com>
16533 gettimeofday: move more declarations out of functions
16534 * lib/gettimeofday.c: Move extern declarations of tzset and
16535 gmtime out of containing functions. Prompted by Bruno Haible.
16537 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16539 regex: do not depend on obsolete modules.
16540 * modules/regex: Remove memcmp and memmove.
16542 2009-01-19 Bruno Haible <bruno@clisp.org>
16544 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16545 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16546 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16547 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16548 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16550 2009-01-19 Bruno Haible <bruno@clisp.org>
16552 * tests/test-link.c: Include <errno.h>.
16553 (main): Exit with code 77 when a hard link cannot be created due to
16555 * tests/test-link.sh: Skip test when a hard link cannot be created due
16556 to the file system.
16557 Suggested by Eric Blake.
16559 2009-01-19 Martin Lambers <marlam@marlam.de>
16561 * modules/link-tests: New file.
16562 * tests/test-link.sh: New file.
16563 * tests/test-link.c: New file.
16565 2009-01-19 Eric Blake <ebb9@byu.net>
16567 doc: mention another function added in cygwin 1.7.0
16568 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16569 Another new function in cygwin 1.7.
16571 2009-01-19 Bruno Haible <bruno@clisp.org>
16573 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16574 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16575 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16576 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16577 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16578 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16579 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16580 * m4/md4.m4 (gl_MD4): Likewise.
16581 * m4/md5.m4 (gl_MD5): Likewise.
16582 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16583 * m4/sha1.m4 (gl_SHA1): Likewise.
16584 * m4/sha256.m4 (gl_SHA256): Likewise.
16585 * m4/sha512.m4 (gl_SHA512): Likewise.
16587 2009-01-19 Bruno Haible <bruno@clisp.org>
16589 * modules/uniname/uniname-tests (Depends-on): Add progname.
16590 * tests/uniname/test-uninames.c: Include progname.h.
16591 (main): Call set_program_name.
16593 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16594 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16595 (main): Call set_program_name.
16597 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16598 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16599 (main): Call set_program_name.
16601 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16602 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16603 (main): Call set_program_name.
16605 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16606 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16607 (main): Call set_program_name.
16609 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16610 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16611 (main): Call set_program_name.
16613 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16614 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16615 (main): Call set_program_name.
16617 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16618 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16619 (main): Call set_program_name.
16621 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16622 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16623 (main): Call set_program_name.
16625 2009-01-19 Eric Blake <ebb9@byu.net>
16627 test-unistd: test previous patch
16628 * tests/test-unistd.c: Test *_FILENO macros.
16630 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16631 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16632 Guarantee a definition.
16633 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16634 * modules/unistd-safer (Depends-on): Add dependency on unistd.
16635 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16636 * lib/dup-safer.c (STDERR_FILENO): Likewise.
16637 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16639 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16640 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16641 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16643 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16644 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16645 (STDERR_FILENO): Likewise.
16646 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16647 (STDERR_FILENO): Likewise.
16648 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16649 (STDERR_FILENO): Likewise.
16650 Reported by Elbert Pol.
16652 2009-01-19 Eric Blake <ebb9@byu.net>
16654 doc: mention more functions added in cygwin 1.7.0
16655 * doc/posix-functions/abort.texi (abort): Update wording related
16657 * doc/posix-functions/daylight.texi (daylight): Likewise.
16658 * doc/posix-functions/optarg.texi (optarg): Likewise.
16659 * doc/posix-functions/optarg.texi (opterr): Likewise.
16660 * doc/posix-functions/optarg.texi (optind): Likewise.
16661 * doc/posix-functions/optarg.texi (optopt): Likewise.
16662 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16663 worked in 1.5.x, and was withdrawn in 1.7.
16664 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16665 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16667 * doc/posix-functions/perror.texi (perror): Likewise.
16668 * doc/posix-functions/printf.texi (printf): Likewise.
16669 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16670 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16671 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16672 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16673 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16674 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16675 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16677 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16679 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16681 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16682 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16684 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16685 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16686 * doc/posix-functions/confstr.texi (confstr): Likewise.
16687 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16688 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16689 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16690 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16691 * doc/posix-functions/fputws.texi (fputws): Likewise.
16692 * doc/posix-functions/fwide.texi (fwide): Likewise.
16693 * doc/posix-functions/getwc.texi (getwc): Likewise.
16694 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16695 * doc/posix-functions/putwc.texi (putwc): Likewise.
16696 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16697 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16698 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16699 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16700 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16701 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16702 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16703 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16704 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16705 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16706 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16708 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16710 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16711 * lib/ioctl.c: Include <sys/ioctl.h>.
16713 2009-01-19 Simon Josefsson <simon@josefsson.org>
16715 * modules/getdate-tests (Depends-on): Add progname.
16716 * tests/test-getdate.c: Use progname module, to avoid link errors
16717 on non-glibc systems.
16719 2009-01-18 Simon Josefsson <simon@josefsson.org>
16721 * modules/filenamecat-tests (Depends-on): Add progname.
16722 * modules/fstrcmp-tests (Depends-on): Likewise.
16724 * tests/test-filenamecat.c: Use progname module, to avoid link
16725 errors on non-glibc systems.
16726 * tests/test-fstrcmp.c: Likewise.
16728 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16730 gettimeofday: avoid warning: nested extern declaration of 'localtime'
16731 * lib/gettimeofday.c: Move extern declaration out of function.
16733 2009-01-18 Bruno Haible <bruno@clisp.org>
16735 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16736 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16737 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16739 2009-01-18 Bruno Haible <bruno@clisp.org>
16741 * lib/strftime.c (MEMPCPY): Remove unused macro.
16742 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16744 2009-01-18 Martin Lambers <marlam@marlam.de>
16747 * lib/unistd.in.h (link): New declaration.
16748 * lib/link.c: New file.
16749 * m4/link.m4: New file.
16750 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16752 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16753 * modules/link: New file.
16754 * doc/posix-functions/link.texi: Mention the new module.
16756 2009-01-18 Bruno Haible <bruno@clisp.org>
16758 * tests/test-avltree_list.c (main): Call set_program_name.
16759 * tests/test-avltree_oset.c (main): Likewise.
16760 * tests/test-obstack-printf.c: Include progname.h.
16761 (main): Call set_program_name.
16762 * tests/test-quotearg.c: Include progname.h.
16763 (main): Call set_program_name.
16764 * tests/test-xmemdup0.c: Include progname.h.
16765 (main): Call set_program_name.
16767 2009-01-18 Bruno Haible <bruno@clisp.org>
16769 New module 'alphasort'.
16770 * lib/dirent.in.h (alphasort): New declaration.
16771 * lib/alphasort.c: New file, from glibc with modifications.
16772 * m4/alphasort.m4: New file.
16773 * modules/alphasort: New file.
16774 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16776 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16778 * doc/posix-functions/alphasort.texi: Mention the new module and the
16779 portability problems.
16781 2009-01-18 Bruno Haible <bruno@clisp.org>
16783 New module 'scandir'.
16784 * lib/dirent.in.h (scandir): New declaration.
16785 * lib/scandir.c: New file, from glibc with modifications.
16786 * m4/scandir.m4: New file.
16787 * modules/scandir: New file.
16788 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16790 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16792 * doc/posix-functions/scandir.texi: Mention the new module and the
16793 portability problems.
16795 2009-01-17 Bruno Haible <bruno@clisp.org>
16797 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16798 Update documentation.
16799 (func_remove_suffix): Escape all dots in the suffix. Update
16801 (func_filter_filelist): Update documentation.
16802 Reported by Ralf Wildenhues.
16804 2009-01-17 Bruno Haible <bruno@clisp.org>
16806 * modules/dprintf-posix-tests: New file.
16807 * tests/test-dprintf-posix.sh: New file.
16808 * tests/test-dprintf-posix.c: New file.
16810 New modules 'dprintf', 'dprintf-posix'.
16811 * lib/stdio.in.h (dprintf): New declaration.
16812 * lib/dprintf.c: New file.
16813 * m4/dprintf.m4: New file.
16814 * m4/dprintf-posix.m4: New file.
16815 * modules/dprintf: New file.
16816 * modules/dprintf-posix: New file.
16817 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16818 HAVE_DPRINTF, REPLACE_DPRINTF.
16819 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16820 HAVE_DPRINTF, REPLACE_DPRINTF.
16821 * doc/posix-functions/dprintf.texi: Mention the new modules.
16823 2009-01-17 Bruno Haible <bruno@clisp.org>
16825 * modules/vdprintf-posix-tests: New file.
16826 * tests/test-vdprintf-posix.sh: New file.
16827 * tests/test-vdprintf-posix.c: New file.
16829 New modules 'vdprintf', 'vdprintf-posix'.
16830 * lib/stdio.in.h (vdprintf): New declaration.
16831 * lib/vdprintf.c: New file.
16832 * m4/vdprintf.m4: New file.
16833 * m4/vdprintf-posix.m4: New file.
16834 * modules/vdprintf: New file.
16835 * modules/vdprintf-posix: New file.
16836 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16837 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16838 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16839 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16840 * doc/posix-functions/vdprintf.texi: Mention the new modules.
16842 2009-01-17 Bruno Haible <bruno@clisp.org>
16844 Fix replacement of fopen on mingw.
16845 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16848 2009-01-17 Bruno Haible <bruno@clisp.org>
16850 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16851 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16853 2009-01-17 Bruno Haible <bruno@clisp.org>
16855 Avoid test-fflush2.sh failure on mingw.
16856 * tests/test-fflush2.c: Include binary-io.h.
16857 (main): Put standard input into binary mode.
16858 * modules/fflush-tests (Depends-on): Add binary-io.
16860 2009-01-17 Bruno Haible <bruno@clisp.org>
16862 * lib/wchar.in.h: In another particular situation, include only the
16863 system's <wchar.h> file.
16864 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16865 Reported by Albert Chin-A-Young <china@thewrittenword.com>
16866 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16868 2009-01-17 Bruno Haible <bruno@clisp.org>
16870 Support for stripping executables in --enable-relocatable.
16871 * build-aux/install-reloc: Expect one more argument, or an environment
16872 variable RELOC_STRIP_PROG. If set, strip the destination program and
16874 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16876 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16877 to set RELOCATABLE_STRIP.
16878 * NEWS: Mention the new Makefile requirement.
16880 2009-01-17 Bruno Haible <bruno@clisp.org>
16882 * build-aux/install-reloc: Remove debugging information left over by
16883 C compiler on MacOS X.
16885 2009-01-17 Bruno Haible <bruno@clisp.org>
16887 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16888 * lib/progreloc.c (find_executable): Fix type of pointer passed to
16889 _NSGetExecutablePath.
16891 2009-01-16 Jim Meyering <meyering@redhat.com>
16893 strerror: avoid warnings about discarding "const"
16894 * lib/strerror.c (rpl_strerror): Instead of returning a const
16895 string from each and every "case", use a variable, and add a single
16896 cast after the switch.
16898 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
16900 * lib/arpa_inet.in.h: Add extern "C" block for C++.
16902 2009-01-16 Bruno Haible <bruno@clisp.org>
16904 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16905 array initializer syntax that also works in C++ mode.
16906 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16908 2009-01-16 Jim Meyering <meyering@redhat.com>
16910 poll: suppress a warning
16911 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16912 to ignore "...unsigned expression < 0 is always false" warnings.
16914 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
16916 poll: remove declarations of unused variables
16917 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16918 sockbuf and optlen.
16920 2009-01-15 Bruno Haible <bruno@clisp.org>
16922 Make fflush-after-ungetc POSIX compliant on BSD systems.
16923 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16924 (clear_ungetc_buffer): Implement also for other systems.
16925 (rpl_fflush): On glibc systems, invoke
16926 clear_ungetc_buffer_preserving_position. Otherwise, invoke
16927 clear_ungetc_buffer after fetching the stream's position, not before.
16929 2009-01-15 Bruno Haible <bruno@clisp.org>
16931 Make fflush-after-ungetc POSIX compliant on glibc systems.
16932 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16934 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16935 (rpl_fflush): On glibc systems, simply call the system's fflush
16936 function after clearing the ungetc buffer.
16937 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16938 Instead, lseek only to the end of file, then use the system's fseeko
16939 for the rest. On glibc systems, reset the EOF indicator bit.
16941 2009-01-15 Jim Meyering <meyering@redhat.com>
16943 openmp.m4: revert quote-adding change, for portability to older autoconf
16944 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16945 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16946 Simon Josefsson noticed the problem when using autoconf-2.61.
16948 2009-01-15 Bruno Haible <bruno@clisp.org>
16950 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16951 * tests/test-fflush2.c (ASSERT): Always fail.
16952 (main): Add two tests for fflush() after ungetc(), taking into account
16953 the Austin Group's clarification.
16954 Suggested by Eric Blake.
16956 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
16958 mktime.m4: remove K&R-style function prototypes
16959 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16960 for the Sun C++ compiler.
16962 2009-01-14 Bruno Haible <bruno@clisp.org>
16964 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16965 while including <wchar.h>.
16966 * lib/wchar.in.h: In two particular situations on HP-UX, include only
16967 the system's <wchar.h> file.
16968 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16970 2009-01-14 Bruno Haible <bruno@clisp.org>
16972 * m4/csharp.m4: Don't mention gettext on the serial number line.
16973 * m4/csharpexec.m4: Likewise.
16974 * m4/eaccess.m4: Likewise.
16975 * m4/javaexec.m4: Likewise.
16976 * m4/sig_atomic_t.m4: Likewise.
16977 * m4/tmpdir.m4: Likewise.
16978 * m4/intldir.m4: Bump gettext version.
16979 * m4/lib-ld.m4: Likewise.
16981 2009-01-14 Bruno Haible <bruno@clisp.org>
16983 * lib/progname.c (set_program_name): Add more comments.
16984 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16986 2009-01-14 Simon Josefsson <simon@josefsson.org>
16988 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16989 were sys/stat.h does not define it.
16991 2009-01-14 Jim Meyering <meyering@redhat.com>
16993 many *.m4 files: improve m4 quoting
16994 99% of this change was performed by running the following commands:
16995 git ls-files | grep '\.m4$' | xargs perl -pi \
16996 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16997 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16998 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16999 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17000 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17001 The remainder were to add Copyright dates, increment serial numbers,
17002 undo some changes in comments, exclude m4/intl.m4, and add quotes
17003 around the "1" in ",1" where the unusual spacing prohibited the
17004 above regexps from doing the job. For more details, see
17005 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17006 * m4/acl.m4: Modified.
17007 * m4/afs.m4: Likewise.
17008 * m4/alloca.m4: Likewise.
17009 * m4/argp.m4: Likewise.
17010 * m4/argz.m4: Likewise.
17011 * m4/atexit.m4: Likewise.
17012 * m4/bison-i18n.m4: Likewise.
17013 * m4/bison.m4: Likewise.
17014 * m4/byteswap.m4: Likewise.
17015 * m4/c-stack.m4: Likewise.
17016 * m4/c-strtod.m4: Likewise.
17017 * m4/calloc.m4: Likewise.
17018 * m4/canonicalize-lgpl.m4: Likewise.
17019 * m4/chown.m4: Likewise.
17020 * m4/clock_time.m4: Likewise.
17021 * m4/codeset.m4: Likewise.
17022 * m4/copy-file.m4: Likewise.
17023 * m4/csharp.m4: Likewise.
17024 * m4/csharpcomp.m4: Likewise.
17025 * m4/csharpexec.m4: Likewise.
17026 * m4/d-ino.m4: Likewise.
17027 * m4/d-type.m4: Likewise.
17028 * m4/dirfd.m4: Likewise.
17029 * m4/double-slash-root.m4: Likewise.
17030 * m4/eaccess.m4: Likewise.
17031 * m4/eealloc.m4: Likewise.
17032 * m4/environ.m4: Likewise.
17033 * m4/errno_h.m4: Likewise.
17034 * m4/euidaccess.m4: Likewise.
17035 * m4/execute.m4: Likewise.
17036 * m4/fatal-signal.m4: Likewise.
17037 * m4/fchdir.m4: Likewise.
17038 * m4/fcntl_h.m4: Likewise.
17039 * m4/fileblocks.m4: Likewise.
17040 * m4/filenamecat.m4: Likewise.
17041 * m4/findprog.m4: Likewise.
17042 * m4/flexmember.m4: Likewise.
17043 * m4/fnmatch.m4: Likewise.
17044 * m4/fopen.m4: Likewise.
17045 * m4/fpending.m4: Likewise.
17046 * m4/fprintf-posix.m4: Likewise.
17047 * m4/free.m4: Likewise.
17048 * m4/frexp.m4: Likewise.
17049 * m4/frexpl.m4: Likewise.
17050 * m4/fsusage.m4: Likewise.
17051 * m4/ftruncate.m4: Likewise.
17052 * m4/gc-camellia.m4: Likewise.
17053 * m4/gc-random.m4: Likewise.
17054 * m4/gc.m4: Likewise.
17055 * m4/getaddrinfo.m4: Likewise.
17056 * m4/getcwd-abort-bug.m4: Likewise.
17057 * m4/getcwd-path-max.m4: Likewise.
17058 * m4/getdate.m4: Likewise.
17059 * m4/getdomainname.m4: Likewise.
17060 * m4/getgroups.m4: Likewise.
17061 * m4/gethostname.m4: Likewise.
17062 * m4/gethrxtime.m4: Likewise.
17063 * m4/getline.m4: Likewise.
17064 * m4/getloadavg.m4: Likewise.
17065 * m4/getndelim2.m4: Likewise.
17066 * m4/getpass.m4: Likewise.
17067 * m4/gettext.m4: Likewise.
17068 * m4/gettime.m4: Likewise.
17069 * m4/gettimeofday.m4: Likewise.
17070 * m4/gnulib-common.m4: Likewise.
17071 * m4/group-member.m4: Likewise.
17072 * m4/host-os.m4: Likewise.
17073 * m4/iconv.m4: Likewise.
17074 * m4/iconv_open.m4: Likewise.
17075 * m4/inet_ntop.m4: Likewise.
17076 * m4/inet_pton.m4: Likewise.
17077 * m4/inline.m4: Likewise.
17078 * m4/intldir.m4: Likewise.
17079 * m4/intlmacosx.m4: Likewise.
17080 * m4/intmax.m4: Likewise.
17081 * m4/intmax_t.m4: Likewise.
17082 * m4/inttypes.m4: Likewise.
17083 * m4/inttypes_h.m4: Likewise.
17084 * m4/inttypes-pri.m4: Likewise.
17085 * m4/isapipe.m4: Likewise.
17086 * m4/isnand.m4: Likewise.
17087 * m4/isnanf.m4: Likewise.
17088 * m4/isnanl.m4: Likewise.
17089 * m4/javacomp.m4: Likewise.
17090 * m4/javaexec.m4: Likewise.
17091 * m4/jm-winsz1.m4: Likewise.
17092 * m4/jm-winsz2.m4: Likewise.
17093 * m4/lchown.m4: Likewise.
17094 * m4/lcmessage.m4: Likewise.
17095 * m4/ldexpl.m4: Likewise.
17096 * m4/lib-ld.m4: Likewise.
17097 * m4/lib-link.m4: Likewise.
17098 * m4/libsigsegv.m4: Likewise.
17099 * m4/link-follow.m4: Likewise.
17100 * m4/localcharset.m4: Likewise.
17101 * m4/locale-fr.m4: Likewise.
17102 * m4/locale-ja.m4: Likewise.
17103 * m4/locale-tr.m4: Likewise.
17104 * m4/locale-zh.m4: Likewise.
17105 * m4/lock.m4: Likewise.
17106 * m4/longlong.m4: Likewise.
17107 * m4/ls-mntd-fs.m4: Likewise.
17108 * m4/lstat.m4: Likewise.
17109 * m4/malloc.m4: Likewise.
17110 * m4/mathl.m4: Likewise.
17111 * m4/mbrtowc.m4: Likewise.
17112 * m4/mbstate_t.m4: Likewise.
17113 * m4/mbswidth.m4: Likewise.
17114 * m4/memchr.m4: Likewise.
17115 * m4/memcmp.m4: Likewise.
17116 * m4/memcpy.m4: Likewise.
17117 * m4/memmem.m4: Likewise.
17118 * m4/memmove.m4: Likewise.
17119 * m4/mempcpy.m4: Likewise.
17120 * m4/memrchr.m4: Likewise.
17121 * m4/memset.m4: Likewise.
17122 * m4/minmax.m4: Likewise.
17123 * m4/mkdir-slash.m4: Likewise.
17124 * m4/mkdtemp.m4: Likewise.
17125 * m4/mktime.m4: Likewise.
17126 * m4/mmap-anon.m4: Likewise.
17127 * m4/mountlist.m4: Likewise.
17128 * m4/nanosleep.m4: Likewise.
17129 * m4/nls.m4: Likewise.
17130 * m4/nocrash.m4: Likewise.
17131 * m4/open.m4: Likewise.
17132 * m4/openat.m4: Likewise.
17133 * m4/openmp.m4: Likewise.
17134 * m4/pathmax.m4: Likewise.
17135 * m4/perl.m4: Likewise.
17136 * m4/physmem.m4: Likewise.
17137 * m4/pipe.m4: Likewise.
17138 * m4/po.m4: Likewise.
17139 * m4/poll.m4: Likewise.
17140 * m4/posixtm.m4: Likewise.
17141 * m4/posixver.m4: Likewise.
17142 * m4/printf-frexp.m4: Likewise.
17143 * m4/printf-frexpl.m4: Likewise.
17144 * m4/printf-posix.m4: Likewise.
17145 * m4/printf-posix-rpl.m4: Likewise.
17146 * m4/printf.m4: Likewise.
17147 * m4/progtest.m4: Likewise.
17148 * m4/putenv.m4: Likewise.
17149 * m4/readline.m4: Likewise.
17150 * m4/readlink.m4: Likewise.
17151 * m4/readutmp.m4: Likewise.
17152 * m4/realloc.m4: Likewise.
17153 * m4/regex.m4: Likewise.
17154 * m4/relocatable.m4: Likewise.
17155 * m4/relocatable-lib.m4: Likewise.
17156 * m4/rename-dest-slash.m4: Likewise.
17157 * m4/rename.m4: Likewise.
17158 * m4/rmdir-errno.m4: Likewise.
17159 * m4/rmdir.m4: Likewise.
17160 * m4/roundf.m4: Likewise.
17161 * m4/roundl.m4: Likewise.
17162 * m4/rpmatch.m4: Likewise.
17163 * m4/save-cwd.m4: Likewise.
17164 * m4/selinux-selinux-h.m4: Likewise.
17165 * m4/setenv.m4: Likewise.
17166 * m4/settime.m4: Likewise.
17167 * m4/sig2str.m4: Likewise.
17168 * m4/sig_atomic_t.m4: Likewise.
17169 * m4/signalblocking.m4: Likewise.
17170 * m4/signbit.m4: Likewise.
17171 * m4/sigpipe.m4: Likewise.
17172 * m4/sockets.m4: Likewise.
17173 * m4/sockpfaf.m4: Likewise.
17174 * m4/st_dm_mode.m4: Likewise.
17175 * m4/stat-time.m4: Likewise.
17176 * m4/stdbool.m4: Likewise.
17177 * m4/stdint.m4: Likewise.
17178 * m4/stdint_h.m4: Likewise.
17179 * m4/stpcpy.m4: Likewise.
17180 * m4/stpncpy.m4: Likewise.
17181 * m4/strcase.m4: Likewise.
17182 * m4/strchrnul.m4: Likewise.
17183 * m4/strcspn.m4: Likewise.
17184 * m4/strdup.m4: Likewise.
17185 * m4/strftime.m4: Likewise.
17186 * m4/strndup.m4: Likewise.
17187 * m4/strnlen.m4: Likewise.
17188 * m4/strpbrk.m4: Likewise.
17189 * m4/strptime.m4: Likewise.
17190 * m4/strsep.m4: Likewise.
17191 * m4/strtod.m4: Likewise.
17192 * m4/strtoimax.m4: Likewise.
17193 * m4/strtok_r.m4: Likewise.
17194 * m4/strtol.m4: Likewise.
17195 * m4/strtoll.m4: Likewise.
17196 * m4/strtoul.m4: Likewise.
17197 * m4/strtoull.m4: Likewise.
17198 * m4/strtoumax.m4: Likewise.
17199 * m4/strverscmp.m4: Likewise.
17200 * m4/threadlib.m4: Likewise.
17201 * m4/timegm.m4: Likewise.
17202 * m4/tm_gmtoff.m4: Likewise.
17203 * m4/tmpdir.m4: Likewise.
17204 * m4/tmpfile.m4: Likewise.
17205 * m4/tzset.m4: Likewise.
17206 * m4/uintmax_t.m4: Likewise.
17207 * m4/unlinkdir.m4: Likewise.
17208 * m4/unlocked-io.m4: Likewise.
17209 * m4/uptime.m4: Likewise.
17210 * m4/userspec.m4: Likewise.
17211 * m4/utimbuf.m4: Likewise.
17212 * m4/utime.m4: Likewise.
17213 * m4/utimes-null.m4: Likewise.
17214 * m4/utimes.m4: Likewise.
17215 * m4/vararrays.m4: Likewise.
17216 * m4/vasnprintf.m4: Likewise.
17217 * m4/vfprintf-posix.m4: Likewise.
17218 * m4/vprintf-posix.m4: Likewise.
17219 * m4/wait-process.m4: Likewise.
17220 * m4/wchar_t.m4: Likewise.
17221 * m4/wint_t.m4: Likewise.
17222 * m4/write-any-file.m4: Likewise.
17223 * m4/yield.m4: Likewise.
17225 2009-01-13 Bruno Haible <bruno@clisp.org>
17227 Avoid test-copy-file.sh failures when ACL support insufficient.
17228 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17230 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17231 Reported by Jim Meyering.
17233 2009-01-13 Bruno Haible <bruno@clisp.org>
17235 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17236 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17237 * modules/unistdio/u8-printf-parse (Files): Likewise.
17238 * modules/unistdio/u32-printf-parse (Files): Likewise.
17239 * modules/unistdio/ulc-printf-parse (Files): Likewise.
17241 2009-01-13 Simon Josefsson <simon@josefsson.org>
17243 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17244 and m4/inttypes_h.m4 too.
17246 2009-01-12 Eric Blake <ebb9@byu.net>
17248 tests: IRIX 6.2 cc can't compile -0.0 into .data
17249 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17250 rather than at compile-time.
17251 * tests/test-floorl.c (minus_zero): Likewise.
17252 * tests/test-frexpl.c (minus_zero): Likewise.
17253 * tests/test-isnan.c (minus_zerol): Likewise.
17254 * tests/test-isnanl.h (minus_zero): Likewise.
17255 * tests/test-ldexpl.c (minus_zero): Likewise.
17256 * tests/test-roundl.c (minus_zero): Likewise.
17257 * tests/test-signbit.c (minus_zerol): Likewise.
17258 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17259 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17260 * tests/test-truncl.c (minus_zero): Likewise.
17261 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17262 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17263 Reported by Tom G. Christensen and Nelson H. F. Beebe.
17265 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17267 regex: fix glibc bug 9697
17268 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17271 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17273 regex: fix glibc bug 697
17274 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17275 being NULL also if there are no backreferences.
17277 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17279 regex: merge glibc changes
17280 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17281 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17282 re_string_skip_chars, re_string_reconstruct): Likewise.
17283 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17285 2009-01-07 Jim Meyering <meyering@redhat.com>
17287 poll: filter through cppi
17288 * lib/poll.c: Indent cpp directives to reflect nesting.
17290 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
17292 poll: don't return uninitialized
17293 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17295 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
17297 avoid compile failure on AIX 6.1
17298 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17299 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17301 2009-01-04 Jim Meyering <meyering@redhat.com>
17303 remove duplicate inclusion of <stdio.h>
17304 * tests/test-fprintf-posix.c: Likewise.
17305 * tests/test-printf-posix.c: Likewise.
17306 * tests/test-snprintf-posix.c: Likewise.
17307 * tests/test-sprintf-posix.c: Likewise.
17308 * tests/test-vasprintf-posix.c: Likewise.
17309 * tests/test-vfprintf-posix.c: Likewise.
17310 * tests/test-vprintf-posix.c: Likewise.
17311 * tests/test-vsnprintf-posix.c: Likewise.
17312 * tests/test-vsprintf-posix.c: Likewise.
17314 2009-01-03 Jim Meyering <meyering@redhat.com>
17316 gnulib-tool: fix sed-based filtering
17317 * gnulib-tool (func_filter_filelist): Remove extra backslash
17318 in sed_fff_filter definition.
17320 2009-01-02 Jim Meyering <meyering@redhat.com>
17322 strftime: avoid compilation failure on Solaris 2.6
17323 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17324 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17325 Don't #define mbrlen or mbsinit, since now they're guaranteed to
17326 be available. Reported by Tom G. Christensen. Details in
17327 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17329 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17330 Bruno Haible <bruno@clisp.org>
17332 Speed up gnulib-tool by doing more string processing through shell
17334 * gnulib-tool (fast_func_append): New variable.
17335 (func_remove_prefix, func_remove_suffix): New functions.
17336 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17337 (func_filter_filelist): New function.
17338 (func_get_dependencies): Use func_remove_suffix instead of sed.
17339 (func_get_automake_snippet): Use func_filter_filelist instead of a
17340 subshell and sed invocation.
17342 2009-01-01 Bruno Haible <bruno@clisp.org>
17344 Fix a security bug.
17345 * gnulib-tool (func_import, import, update): Don't allow the characters
17346 '"', '$', '`', '\' in macro arguments that become part of commands that
17349 2009-01-01 Bruno Haible <bruno@clisp.org>
17351 * gnulib-tool (func_reset_sigpipe): Add more comments.
17353 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17355 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17356 func_emit_tests_Makefile_am, func_import): Abort loops early if we
17357 already know the answer.
17359 2009-01-01 Jim Meyering <meyering@redhat.com>
17361 * lib/version-etc.c (version_etc_va): Update copyright year.
17363 2008-12-30 Bruno Haible <bruno@clisp.org>
17365 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17366 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17367 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17369 2008-12-29 Eric Blake <ebb9@byu.net>
17371 multiarch: avoid autoconf AC_REQUIRE bug
17372 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17373 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17375 Reported by Bruno Haible, and analyzed in
17376 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17378 2008-12-29 Bruno Haible <bruno@clisp.org>
17380 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17381 files in subdirectories correctly.
17382 Reported by Ralf Wildenhues.
17384 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17386 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17387 rather than 'join FILE -', for Solaris join.
17389 2008-12-29 Bruno Haible <bruno@clisp.org>
17391 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17393 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17394 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17395 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17396 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17397 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17398 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17399 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17400 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17401 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17402 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17403 * m4/nls.m4 (AM_NLS): Likewise.
17404 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17405 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17406 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17407 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17408 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17409 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17410 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17411 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17412 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17413 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17414 * m4/xsize.m4 (gl_XSIZE): Likewise.
17415 Suggested by Jim Meyering.
17417 2008-11-17 Bruce Korb <bkorb@gnu.org>
17419 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17420 * lib/parse-duration.c: use a switch instead of cascading if's.
17422 2008-12-29 Eric Blake <ebb9@byu.net>
17424 wchar.h: supply WEOF on Irix 5.3
17425 * lib/wchar.in.h (wint_t): Also supply WEOF.
17426 * lib/wctype.in.h (wint_t): Likewise.
17427 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17428 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17429 Reported by Tom G. Christensen.
17431 2008-12-26 Bruno Haible <bruno@clisp.org>
17433 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17436 2008-12-26 Bruno Haible <bruno@clisp.org>
17438 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17440 2008-12-26 Bruno Haible <bruno@clisp.org>
17442 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17443 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17444 not __STDC_CONSTANT_MACROS.
17445 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17447 2008-12-25 Bruno Haible <bruno@clisp.org>
17449 Add support for universal builds to vasnprintf.
17450 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17451 universal builds, guess no.
17452 * modules/vasnprintf-posix (Depends-on): Add multiarch.
17453 * modules/vasprintf-posix (Depends-on): Likewise.
17454 * modules/fprintf-posix (Depends-on): Likewise.
17455 * modules/vfprintf-posix (Depends-on): Likewise.
17456 * modules/snprintf-posix (Depends-on): Likewise.
17457 * modules/vsnprintf-posix (Depends-on): Likewise.
17458 * modules/sprintf-posix (Depends-on): Likewise.
17459 * modules/vsprintf-posix (Depends-on): Likewise.
17460 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17461 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17462 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17463 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17464 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17465 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17466 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17468 Add support for universal builds to <inttypes.h>.
17469 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17470 _SCNu64_PREFIX): In Apple
17471 universal builds, define directly, using _LP64.
17472 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17473 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17474 * modules/inttypes (Depends-on): Add multiarch.
17475 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17477 Add support for universal builds to <stdint.h>.
17478 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17479 universal builds, define directly, using _LP64.
17480 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17481 Apple universal builds, don't test for the size and suffix of ptrdiff_t
17483 * modules/stdint (Depends-on): Add multiarch.
17484 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17486 New module 'multiarch'.
17487 * modules/multiarch: New file.
17488 * m4/multiarch.m4: New file.
17490 2008-12-25 Bruno Haible <bruno@clisp.org>
17492 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17494 2008-12-25 Bruno Haible <bruno@clisp.org>
17496 * modules/btowc (License): Relicense under LGPLv2+.
17497 * modules/mbsinit (License): Likewise.
17498 * modules/mbrtowc (License): Likewise.
17499 * modules/wcrtomb (License): Likewise.
17500 * modules/streq (License): Likewise.
17501 Reported by David Lutterkort <lutter@redhat.com>.
17503 2008-12-23 Bruno Haible <bruno@clisp.org>
17505 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17507 2008-12-23 Bruno Haible <bruno@clisp.org>
17509 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17510 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17511 GETADDRINFO_LIB, not in LIBS.
17512 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17513 * modules/canon-host (Link): Likewise.
17514 * NEWS: Mention the change.
17515 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17518 2008-12-22 Bruno Haible <bruno@clisp.org>
17520 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17521 * doc/posix-functions/iswalpha_l.texi: Likewise.
17522 * doc/posix-functions/iswblank_l.texi: Likewise.
17523 * doc/posix-functions/iswcntrl_l.texi: Likewise.
17524 * doc/posix-functions/iswctype_l.texi: Likewise.
17525 * doc/posix-functions/iswdigit_l.texi: Likewise.
17526 * doc/posix-functions/iswgraph_l.texi: Likewise.
17527 * doc/posix-functions/iswlower_l.texi: Likewise.
17528 * doc/posix-functions/iswprint_l.texi: Likewise.
17529 * doc/posix-functions/iswpunct_l.texi: Likewise.
17530 * doc/posix-functions/iswspace_l.texi: Likewise.
17531 * doc/posix-functions/iswupper_l.texi: Likewise.
17532 * doc/posix-functions/iswxdigit_l.texi: Likewise.
17533 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17534 * doc/posix-functions/open_wmemstream.texi: Likewise.
17535 * doc/posix-functions/swscanf.texi: Likewise.
17536 * doc/posix-functions/towctrans_l.texi: Likewise.
17537 * doc/posix-functions/towlower.texi: Likewise.
17538 * doc/posix-functions/towlower_l.texi: Likewise.
17539 * doc/posix-functions/towupper.texi: Likewise.
17540 * doc/posix-functions/towupper_l.texi: Likewise.
17541 * doc/posix-functions/vfwprintf.texi: Likewise.
17542 * doc/posix-functions/vfwscanf.texi: Likewise.
17543 * doc/posix-functions/vswscanf.texi: Likewise.
17544 * doc/posix-functions/vwprintf.texi: Likewise.
17545 * doc/posix-functions/vwscanf.texi: Likewise.
17546 * doc/posix-functions/wcpcpy.texi: Likewise.
17547 * doc/posix-functions/wcpncpy.texi: Likewise.
17548 * doc/posix-functions/wcscasecmp.texi: Likewise.
17549 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17550 * doc/posix-functions/wcscoll_l.texi: Likewise.
17551 * doc/posix-functions/wcsdup.texi: Likewise.
17552 * doc/posix-functions/wcsncasecmp.texi: Likewise.
17553 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17554 * doc/posix-functions/wcsnlen.texi: Likewise.
17555 * doc/posix-functions/wcsnrtombs.texi: Likewise.
17556 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17557 * doc/posix-functions/wctrans_l.texi: Likewise.
17558 * doc/posix-functions/wctype_l.texi: Likewise.
17559 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17560 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17561 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17562 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17563 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17564 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17565 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17566 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17567 * doc/glibc-functions/wcschrnul.texi: Likewise.
17568 * doc/glibc-functions/wcsftime_l.texi: Likewise.
17569 * doc/glibc-functions/wcstod_l.texi: Likewise.
17570 * doc/glibc-functions/wcstof_l.texi: Likewise.
17571 * doc/glibc-functions/wcstol_l.texi: Likewise.
17572 * doc/glibc-functions/wcstold_l.texi: Likewise.
17573 * doc/glibc-functions/wcstoll_l.texi: Likewise.
17574 * doc/glibc-functions/wcstoq.texi: Likewise.
17575 * doc/glibc-functions/wcstoul_l.texi: Likewise.
17576 * doc/glibc-functions/wcstoull_l.texi: Likewise.
17577 * doc/glibc-functions/wcstouq.texi: Likewise.
17578 * doc/glibc-functions/wmempcpy.texi: Likewise.
17580 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
17581 Eric Blake <ebb9@byu.net>
17582 Paolo Bonzini <bonzini@gnu.org>
17583 Bruno Haible <bruno@clisp.org>
17585 Make c-stack work on Haiku.
17586 * lib/c-stack.c (SA_ONSTACK): Define fallback.
17587 (c_stack_action): Use SA_ONSTACK flag.
17589 2008-12-22 Bruno Haible <bruno@clisp.org>
17591 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17593 2008-12-22 Bruno Haible <bruno@clisp.org>
17595 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17596 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17598 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17600 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17601 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17602 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17603 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17605 2008-12-22 Bruno Haible <bruno@clisp.org>
17607 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17610 2008-12-22 Eric Blake <ebb9@byu.net>
17612 Avoid gcc warnings on cygwin.
17613 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17614 Avoid unused variable.
17615 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17618 2008-12-22 Bruno Haible <bruno@clisp.org>
17620 Remove HAVE_MBRTOWC conditionals.
17621 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17622 (mbscasecmp): Assume mbrtowc function.
17623 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17624 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17625 * lib/mbschr.c: Include mbuiter.h unconditionally.
17626 (mbschr): Assume mbrtowc function.
17627 * lib/mbscspn.c: Include mbuiter.h unconditionally.
17628 (mbscspn): Assume mbrtowc function.
17629 * lib/mbslen.c: Include mbuiter.h unconditionally.
17630 (mbslen): Assume mbrtowc function.
17631 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17632 (mbsncasecmp): Assume mbrtowc function.
17633 * lib/mbsnlen.c: Include mbiter.h unconditionally.
17634 (mbsnlen): Assume mbrtowc function.
17635 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17636 (mbspbrk): Assume mbrtowc function.
17637 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17638 (mbspcasecmp): Assume mbrtowc function.
17639 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17640 (mbsrchr): Assume mbrtowc function.
17641 * lib/mbssep.c: Include mbuiter.h unconditionally.
17642 (mbssep): Assume mbrtowc function.
17643 * lib/mbsspn.c: Include mbuiter.h unconditionally.
17644 (mbsspn): Assume mbrtowc function.
17645 * lib/mbsstr.c: Include mbuiter.h unconditionally.
17646 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17647 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17648 (mbstok_r): Assume mbrtowc function.
17649 * lib/propername.c: Include mbuiter.h unconditionally.
17650 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17651 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17652 (trim2): Assume mbrtowc function.
17653 * lib/mbswidth.c (mbsinit): Remove fallback definition.
17654 (mbsnwidth): Assume mbrtowc function.
17655 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17656 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17657 fallback definitions.
17658 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17660 2008-12-22 Bruno Haible <bruno@clisp.org>
17662 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17664 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
17666 * modules/regex: Request emulations for the mb*/wc* functions we need.
17667 * m4/regex.m4: Don't look for those functions here.
17668 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17670 2008-12-22 Bruno Haible <bruno@clisp.org>
17672 * modules/fnmatch (Depends-on): Remove duplicated dependency.
17674 2008-12-21 Bruno Haible <bruno@clisp.org>
17676 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17677 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17678 (Include): Remove conditionalization.
17679 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17680 (Include): Remove conditionalization.
17681 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17682 (Include): Remove conditionalization.
17683 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17684 * m4/mbfile.m4 (gl_MBFILE): Likewise.
17685 * NEWS: Mention the change.
17686 Reported by Alan Hourihane <alanh@fairlite.co.uk>
17687 via Sergey Poznyakoff <gray@gnu.org.ua>.
17689 2008-12-21 Bruno Haible <bruno@clisp.org>
17691 * MODULES.html.sh (Extended multibyte and wide character utilities
17692 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17693 wcrtomb, wcsrtombs.
17694 (Support for systems lacking POSIX:2008): Add accept, bind, close,
17695 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17696 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17697 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17699 2008-12-21 Bruno Haible <bruno@clisp.org>
17701 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17703 2008-12-21 Bruno Haible <bruno@clisp.org>
17705 * modules/wcsnrtombs-tests: New file.
17706 * tests/test-wcsnrtombs1.sh: New file.
17707 * tests/test-wcsnrtombs2.sh: New file.
17708 * tests/test-wcsnrtombs3.sh: New file.
17709 * tests/test-wcsnrtombs4.sh: New file.
17710 * tests/test-wcsnrtombs.c: New file.
17712 New module 'wcsnrtombs'.
17713 * lib/wchar.in.h (wcsnrtombs): New declaration.
17714 * lib/wcsnrtombs.c: New file.
17715 * lib/wcsrtombs-state.c: New file.
17716 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17717 (internal_state): Remove variable.
17718 * m4/wcsnrtombs.m4: New file.
17719 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17721 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17723 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17725 * modules/wcsnrtombs: New file.
17726 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17727 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17729 2008-12-21 Bruno Haible <bruno@clisp.org>
17731 * modules/wcsrtombs-tests: New file.
17732 * tests/test-wcsrtombs1.sh: New file.
17733 * tests/test-wcsrtombs2.sh: New file.
17734 * tests/test-wcsrtombs3.sh: New file.
17735 * tests/test-wcsrtombs4.sh: New file.
17736 * tests/test-wcsrtombs.c: New file.
17738 New module 'wcsrtombs'.
17739 * lib/wchar.in.h (wcsrtombs): New declaration.
17740 * lib/wcsrtombs.c: New file.
17741 * m4/wcsrtombs.m4: New file.
17742 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17743 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17744 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17745 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17746 * modules/wcsrtombs: New file.
17747 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17750 2008-12-21 Bruno Haible <bruno@clisp.org>
17752 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17753 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17754 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17755 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17757 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17758 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17759 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17760 m4/locale-zh.m4, m4/codeset.m4.
17761 * doc/posix-functions/wcrtomb.texi: Document the bug.
17763 2008-12-21 Bruno Haible <bruno@clisp.org>
17765 Work around a btowc() bug on IRIX 6.5.
17766 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17767 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17768 REPLACE_WTOBC if not.
17769 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17770 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17771 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17773 2008-12-21 Bruno Haible <bruno@clisp.org>
17775 * modules/wcrtomb-tests: New file.
17776 * tests/test-wcrtomb.sh: New file.
17777 * tests/test-wcrtomb.c: New file.
17779 New module 'wcrtomb'.
17780 * lib/wchar.in.h (wcrtomb): New declaration.
17781 * lib/wcrtomb.c: New file.
17782 * m4/wcrtomb.m4: New file.
17783 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17785 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17787 * modules/wcrtomb: New file.
17788 * doc/posix-functions/wcrtomb.texi: Mention the new module.
17790 2008-12-21 Bruno Haible <bruno@clisp.org>
17792 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17793 * modules/mbsrtowcs (Files): Likewise.
17794 * modules/wctob (Files): Likewise.
17795 * modules/c-strcase-tests (Files): Likewise.
17796 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17797 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17798 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17799 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17800 * modules/vasnprintf-posix-tests (Files): Likewise.
17802 2008-12-21 William Pursell <bill.pursell@gmail.com>
17804 gitlog-to-changelog: pass all command-line arguments to git-log
17805 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17806 it is sometimes convenient to filter the commits in various ways.
17807 gitlog-to-changelog only allows --since to specify a start date,
17808 but git-log itself supports many other filtering mechanisms.
17809 At the moment, I want to filter by branch name. Rather than
17810 adding a --branch option to gitlog-to-changelog, it seems more
17811 flexible to simply pass all options directly to git-log and let
17812 git do the work. Notice that this effectively makes --since a
17813 redundant option for gitlog-to-changelog, but removing it would
17814 require current usage to change since calls would then require
17815 an additional '--'.
17817 2008-12-21 Bruno Haible <bruno@clisp.org>
17819 * modules/mbsnrtowcs-tests: New file.
17820 * tests/test-mbsnrtowcs1.sh: New file.
17821 * tests/test-mbsnrtowcs2.sh: New file.
17822 * tests/test-mbsnrtowcs3.sh: New file.
17823 * tests/test-mbsnrtowcs4.sh: New file.
17824 * tests/test-mbsnrtowcs.c: New file.
17826 New module 'mbsnrtowcs'.
17827 * lib/wchar.in.h (mbsnrtowcs): New declaration.
17828 * lib/mbsnrtowcs.c: New file.
17829 * lib/mbsrtowcs-state.c: New file.
17830 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17831 (internal_state): Remove variable.
17832 * m4/mbsnrtowcs.m4: New file.
17833 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17835 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17836 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17837 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17838 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17839 * modules/mbsnrtowcs: New file.
17840 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17841 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17842 portability problem.
17844 2008-12-21 Bruno Haible <bruno@clisp.org>
17846 Work around mbsrtowcs bug.
17847 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17848 (gl_FUNC_MBSRTOWCS): Invoke it.
17849 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17851 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17853 2008-12-21 Bruno Haible <bruno@clisp.org>
17855 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17857 2008-12-21 Bruno Haible <bruno@clisp.org>
17859 Update doc for AIX.
17860 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17861 16-bit wchar_t type.
17862 * doc/posix-functions/btowc.texi: Likewise.
17863 * doc/posix-functions/fgetwc.texi: Likewise.
17864 * doc/posix-functions/fgetws.texi: Likewise.
17865 * doc/posix-functions/fputwc.texi: Likewise.
17866 * doc/posix-functions/fputws.texi: Likewise.
17867 * doc/posix-functions/fwide.texi: Likewise.
17868 * doc/posix-functions/fwprintf.texi: Likewise.
17869 * doc/posix-functions/fwscanf.texi: Likewise.
17870 * doc/posix-functions/getwchar.texi: Likewise.
17871 * doc/posix-functions/getwc.texi: Likewise.
17872 * doc/posix-functions/iswalnum.texi: Likewise.
17873 * doc/posix-functions/iswalpha.texi: Likewise.
17874 * doc/posix-functions/iswblank.texi: Likewise.
17875 * doc/posix-functions/iswcntrl.texi: Likewise.
17876 * doc/posix-functions/iswctype.texi: Likewise.
17877 * doc/posix-functions/iswdigit.texi: Likewise.
17878 * doc/posix-functions/iswgraph.texi: Likewise.
17879 * doc/posix-functions/iswlower.texi: Likewise.
17880 * doc/posix-functions/iswprint.texi: Likewise.
17881 * doc/posix-functions/iswpunct.texi: Likewise.
17882 * doc/posix-functions/iswspace.texi: Likewise.
17883 * doc/posix-functions/iswupper.texi: Likewise.
17884 * doc/posix-functions/iswxdigit.texi: Likewise.
17885 * doc/posix-functions/mbrtowc.texi: Likewise.
17886 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17887 * doc/posix-functions/mbstowcs.texi: Likewise.
17888 * doc/posix-functions/mbtowc.texi: Likewise.
17889 * doc/posix-functions/putwchar.texi: Likewise.
17890 * doc/posix-functions/putwc.texi: Likewise.
17891 * doc/posix-functions/swprintf.texi: Likewise.
17892 * doc/posix-functions/tolower.texi: Likewise.
17893 * doc/posix-functions/toupper.texi: Likewise.
17894 * doc/posix-functions/towctrans.texi: Likewise.
17895 * doc/posix-functions/ungetwc.texi: Likewise.
17896 * doc/posix-functions/vswprintf.texi: Likewise.
17897 * doc/posix-functions/wcrtomb.texi: Likewise.
17898 * doc/posix-functions/wcscat.texi: Likewise.
17899 * doc/posix-functions/wcschr.texi: Likewise.
17900 * doc/posix-functions/wcscmp.texi: Likewise.
17901 * doc/posix-functions/wcscoll.texi: Likewise.
17902 * doc/posix-functions/wcscpy.texi: Likewise.
17903 * doc/posix-functions/wcscspn.texi: Likewise.
17904 * doc/posix-functions/wcsftime.texi: Likewise.
17905 * doc/posix-functions/wcslen.texi: Likewise.
17906 * doc/posix-functions/wcsncat.texi: Likewise.
17907 * doc/posix-functions/wcsncmp.texi: Likewise.
17908 * doc/posix-functions/wcsncpy.texi: Likewise.
17909 * doc/posix-functions/wcspbrk.texi: Likewise.
17910 * doc/posix-functions/wcsrchr.texi: Likewise.
17911 * doc/posix-functions/wcsrtombs.texi: Likewise.
17912 * doc/posix-functions/wcsspn.texi: Likewise.
17913 * doc/posix-functions/wcsstr.texi: Likewise.
17914 * doc/posix-functions/wcstod.texi: Likewise.
17915 * doc/posix-functions/wcstof.texi: Likewise.
17916 * doc/posix-functions/wcstoimax.texi: Likewise.
17917 * doc/posix-functions/wcstok.texi: Likewise.
17918 * doc/posix-functions/wcstold.texi: Likewise.
17919 * doc/posix-functions/wcstoll.texi: Likewise.
17920 * doc/posix-functions/wcstol.texi: Likewise.
17921 * doc/posix-functions/wcstombs.texi: Likewise.
17922 * doc/posix-functions/wcstoull.texi: Likewise.
17923 * doc/posix-functions/wcstoul.texi: Likewise.
17924 * doc/posix-functions/wcstoumax.texi: Likewise.
17925 * doc/posix-functions/wcswidth.texi: Likewise.
17926 * doc/posix-functions/wcsxfrm.texi: Likewise.
17927 * doc/posix-functions/wctob.texi: Likewise.
17928 * doc/posix-functions/wctomb.texi: Likewise.
17929 * doc/posix-functions/wctrans.texi: Likewise.
17930 * doc/posix-functions/wctype.texi: Likewise.
17931 * doc/posix-functions/wcwidth.texi: Likewise.
17932 * doc/posix-functions/wmemchr.texi: Likewise.
17933 * doc/posix-functions/wmemcmp.texi: Likewise.
17934 * doc/posix-functions/wmemcpy.texi: Likewise.
17935 * doc/posix-functions/wmemmove.texi: Likewise.
17936 * doc/posix-functions/wmemset.texi: Likewise.
17937 * doc/posix-functions/wprintf.texi: Likewise.
17938 * doc/posix-functions/wscanf.texi: Likewise.
17940 2008-12-21 Bruno Haible <bruno@clisp.org>
17942 Update doc for HP-UX 11.11.
17943 * doc/posix-functions/btowc.texi: Clarify that the function is missing
17944 in HP-UX version 11.00, not in all versions of HP-UX 11.
17945 * doc/posix-functions/fwide.texi: Likewise.
17946 * doc/posix-functions/fwprintf.texi: Likewise.
17947 * doc/posix-functions/fwscanf.texi: Likewise.
17948 * doc/posix-functions/inet_ntop.texi: Likewise.
17949 * doc/posix-functions/inet_pton.texi: Likewise.
17950 * doc/posix-functions/mbrlen.texi: Likewise.
17951 * doc/posix-functions/mbrtowc.texi: Likewise.
17952 * doc/posix-functions/mbsinit.texi: Likewise.
17953 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17954 * doc/posix-functions/swprintf.texi: Likewise.
17955 * doc/posix-functions/swscanf.texi: Likewise.
17956 * doc/posix-functions/towctrans.texi: Likewise.
17957 * doc/posix-functions/vfwprintf.texi: Likewise.
17958 * doc/posix-functions/vswprintf.texi: Likewise.
17959 * doc/posix-functions/vwprintf.texi: Likewise.
17960 * doc/posix-functions/wcrtomb.texi: Likewise.
17961 * doc/posix-functions/wcsrtombs.texi: Likewise.
17962 * doc/posix-functions/wcsstr.texi: Likewise.
17963 * doc/posix-functions/wctob.texi: Likewise.
17964 * doc/posix-functions/wctrans.texi: Likewise.
17965 * doc/posix-functions/wmemchr.texi: Likewise.
17966 * doc/posix-functions/wmemcmp.texi: Likewise.
17967 * doc/posix-functions/wmemcpy.texi: Likewise.
17968 * doc/posix-functions/wmemmove.texi: Likewise.
17969 * doc/posix-functions/wmemset.texi: Likewise.
17970 * doc/posix-functions/wprintf.texi: Likewise.
17971 * doc/posix-functions/wscanf.texi: Likewise.
17973 2008-12-21 Bruno Haible <bruno@clisp.org>
17975 Work around a portability problem.
17976 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17977 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17979 2008-12-20 Bruno Haible <bruno@clisp.org>
17981 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17982 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17983 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17984 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17985 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17987 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17988 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17990 (GNULIB_defined_mbstate_t): New macro.
17991 (mbsinit): Redefine if REPLACE_MBSINIT is set.
17992 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17993 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17994 reuses the system's mbrtowc function but works around the bugs.
17995 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17996 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17998 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17999 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18000 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18001 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18002 REPLACE_MBSINIT if mbsinit needs to be overridden.
18003 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18004 REPLACE_MBSINIT, REPLACE_MBRTOWC.
18005 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18006 REPLACE_MBSINIT, REPLACE_MBRTOWC.
18007 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18009 (Depends): Add mbsinit.
18010 * modules/mbsinit (Depends): Add mbrtowc.
18011 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18013 2008-12-20 Bruno Haible <bruno@clisp.org>
18015 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18016 so that there are no conversion errors on AIX.
18017 * tests/test-mbsrtowcs.c (main): LIkewise.
18019 2008-12-20 Bruno Haible <bruno@clisp.org>
18021 Work around wctob bug on Solaris <= 9.
18022 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18023 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18024 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18025 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18026 * modules/wctob (Files): Add m4/locale-fr.m4.
18027 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18029 2008-12-20 Bruno Haible <bruno@clisp.org>
18031 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18033 * tests/test-select-in.sh: Likewise.
18034 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18036 2008-12-20 Bruno Haible <bruno@clisp.org>
18038 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18039 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18042 2008-12-20 Bruno Haible <bruno@clisp.org>
18044 Ensure mbstate_t is defined on HP-UX 11.11.
18045 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18046 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18047 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18048 AC_USE_SYSTEM_EXTENSIONS.
18049 * modules/fnmatch (Depends-on): Add extensions.
18050 * modules/mbrlen (Depends-on): Likewise.
18051 * modules/mbrtowc (Depends-on): Likewise.
18052 * modules/mbsinit (Depends-on): Likewise.
18053 * modules/mbsrtowcs (Depends-on): Likewise.
18054 * modules/mbswidth (Depends-on): Likewise.
18055 * modules/quotearg (Depends-on): Likewise.
18056 * modules/strftime (Depends-on): Likewise.
18058 2008-12-20 Bruno Haible <bruno@clisp.org>
18060 Ensure wctob is declared on IRIX 6.5.
18061 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18062 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18063 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18064 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18066 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18068 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18070 2008-12-19 Bruno Haible <bruno@clisp.org>
18072 * modules/mbsrtowcs-tests: New file.
18073 * tests/test-mbsrtowcs1.sh: New file.
18074 * tests/test-mbsrtowcs2.sh: New file.
18075 * tests/test-mbsrtowcs3.sh: New file.
18076 * tests/test-mbsrtowcs4.sh: New file.
18077 * tests/test-mbsrtowcs.c: New file.
18079 New module 'mbsrtowcs'.
18080 * lib/wchar.in.h (mbsrtowcs): New declaration.
18081 * lib/mbsrtowcs.c: New file.
18082 * m4/mbsrtowcs.m4: New file.
18083 * modules/mbsrtowcs: New file.
18084 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18086 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18088 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18090 2008-12-19 Bruno Haible <bruno@clisp.org>
18092 New module 'mbrlen'.
18093 * lib/wchar.in.h (mbrlen): New declaration.
18094 * lib/mbrlen.c: New file.
18095 * m4/mbrlen.m4: New file.
18096 * modules/mbrlen: New file.
18097 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18099 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18101 * doc/posix-functions/mbrlen.texi: Document the new module.
18103 2008-12-19 Bruno Haible <bruno@clisp.org>
18105 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18106 * modules/mbrtowc (Depends-on): Add verify.
18107 Suggested by Paul Eggert.
18109 2008-12-18 Bruno Haible <bruno@clisp.org>
18111 * modules/mbsinit-tests: New file.
18112 * tests/test-mbsinit.sh: New file.
18113 * tests/test-mbsinit.c: New file.
18115 2008-12-18 Bruno Haible <bruno@clisp.org>
18117 * modules/mbrtowc-tests: New file.
18118 * tests/test-mbrtowc1.sh: New file.
18119 * tests/test-mbrtowc2.sh: New file.
18120 * tests/test-mbrtowc3.sh: New file.
18121 * tests/test-mbrtowc4.sh: New file.
18122 * tests/test-mbrtowc.c: New file.
18124 New module 'mbrtowc'.
18125 * lib/wchar.in.h (mbstate_t): Override when the system does not have
18126 mbsinit and mbrtowc.
18127 (mbrtowc): New declaration.
18128 * lib/mbrtowc.c: New file.
18129 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18130 * modules/mbrtowc: New file.
18131 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18133 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18135 * doc/posix-functions/mbrtowc.texi: Document the new module.
18137 2008-12-18 Bruno Haible <bruno@clisp.org>
18139 New module 'wctob'.
18140 * lib/wchar.in.h (wctob): New declaration.
18141 * lib/wctob.c: New file.
18142 * m4/wctob.m4: New file.
18143 * modules/wctob: New file.
18144 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18146 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18147 * doc/posix-functions/wctob.texi: Document the new module.
18149 2008-12-18 Bruno Haible <bruno@clisp.org>
18151 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18152 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18154 2008-12-18 Simon Josefsson <simon@josefsson.org>
18156 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
18157 G. Christensen" <tgc@jupiterrise.com>.
18159 * lib/flock.c: Need to include errno.h. Reported by "Tom
18160 G. Christensen" <tgc@jupiterrise.com>.
18162 * lib/flock.c: Need to include string.h. Reported by "Tom
18163 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18166 2008-12-18 Bruno Haible <bruno@clisp.org>
18168 * m4/locale-ja.m4: New file, from GNU gettext.
18170 2008-12-17 Bruno Haible <bruno@clisp.org>
18172 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18173 Suggested by Eric Blake.
18175 2008-12-17 Bruno Haible <bruno@clisp.org>
18177 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18179 2008-12-17 Bruno Haible <bruno@clisp.org>
18181 * lib/mbsinit.c: Include verify.h. Verify an assumption.
18182 * modules/mbsinit (Depends-on): Add verify.
18183 Suggested by Paul Eggert.
18185 2008-12-17 Bruno Haible <bruno@clisp.org>
18187 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18188 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18190 * m4/mbiter.m4 (gl_MBITER): LIkewise.
18191 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18192 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18193 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18194 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18195 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18196 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18197 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18198 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18199 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18200 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18201 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18202 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18203 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18204 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18205 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18206 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18207 * modules/trim (configure.ac): Likewise.
18209 2008-12-17 Bruno Haible <bruno@clisp.org>
18211 * modules/btowc-tests: New file.
18212 * tests/test-btowc1.sh: New file.
18213 * tests/test-btowc2.sh: New file.
18214 * tests/test-btowc.c: New file.
18216 New module 'btowc'.
18217 * lib/wchar.in.h (btowc): New declaration.
18218 * lib/btowc.c: New file.
18219 * m4/btowc.m4: New file.
18220 * modules/btowc: New file.
18221 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18223 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18224 * doc/posix-functions/btowc.texi: Document the new module.
18226 2008-12-17 Bruno Haible <bruno@clisp.org>
18228 New module 'mbsinit'.
18229 * lib/wchar.in.h (mbsinit): New declaration.
18230 * lib/mbsinit.c: New file.
18231 * m4/mbsinit.m4: New file.
18232 * modules/mbsinit: New file.
18233 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18235 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18237 * doc/posix-functions/mbsinit.texi: Document the new module.
18239 2008-12-16 Bruno Haible <bruno@clisp.org>
18241 * lib/unistd.in.h: Add comment.
18242 * tests/test-environ.c: Don't include <stdlib.h>.
18244 2008-12-16 Bruno Haible <bruno@clisp.org>
18246 * lib/parse-duration.h (parse_duration): Document return value
18248 * lib/parse-duration.c: Include specification header first. Add
18251 (parse_year_month_day, parse_hour_minute_second): Move side effects
18252 outside of strchr call.
18253 (parse_non_iso8601): Move side effects outside of isspace call.
18254 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18257 2008-12-16 Bruno Haible <bruno@clisp.org>
18259 * tests/test-parse-duration.sh: Produce no output when the test
18262 2008-12-16 Bruno Haible <bruno@clisp.org>
18264 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18267 2008-12-15 Bruno Haible <bruno@clisp.org>
18269 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18270 * doc/glibc-functions/flistxattr.texi: Likewise.
18271 * doc/glibc-functions/fopencookie.texi: Likewise.
18272 * doc/glibc-functions/fremovexattr.texi: Likewise.
18273 * doc/glibc-functions/fsetxattr.texi: Likewise.
18274 * doc/glibc-functions/getxattr.texi: Likewise.
18275 * doc/glibc-functions/lgetxattr.texi: Likewise.
18276 * doc/glibc-functions/listxattr.texi: Likewise.
18277 * doc/glibc-functions/llistxattr.texi: Likewise.
18278 * doc/glibc-functions/lremovexattr.texi: Likewise.
18279 * doc/glibc-functions/lsetxattr.texi: Likewise.
18280 * doc/glibc-functions/removexattr.texi: Likewise.
18281 * doc/glibc-functions/setxattr.texi: Likewise.
18282 * doc/posix-functions/open_memstream.texi: Likewise.
18284 2008-12-15 Eric Blake <ebb9@byu.net>
18286 Update doc for cygwin 1.7.
18287 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18289 * doc/posix-functions/fchmodat.texi: Likewise.
18290 * doc/posix-functions/fchownat.texi: Likewise.
18291 * doc/posix-functions/fdopendir.texi: Likewise.
18292 * doc/posix-functions/fmemopen.texi: Likewise.
18293 * doc/posix-functions/freeaddrinfo.texi: Likewise.
18294 * doc/posix-functions/fstatat.texi: Likewise.
18295 * doc/posix-functions/futimens.texi: Likewise.
18296 * doc/posix-functions/gai_strerror.texi: Likewise.
18297 * doc/posix-functions/getaddrinfo.texi: Likewise.
18298 * doc/posix-functions/getnameinfo.texi: Likewise.
18299 * doc/posix-functions/if_freenameindex.texi: Likewise.
18300 * doc/posix-functions/if_indextoname.texi: Likewise.
18301 * doc/posix-functions/if_nameindex.texi: Likewise.
18302 * doc/posix-functions/if_nametoindex.texi: Likewise.
18303 * doc/posix-functions/insque.texi: Likewise.
18304 * doc/posix-functions/linkat.texi: Likewise.
18305 * doc/posix-functions/llrint.texi: Likewise.
18306 * doc/posix-functions/llrintf.texi: Likewise.
18307 * doc/posix-functions/llrintl.texi: Likewise.
18308 * doc/posix-functions/lockf.texi: Likewise.
18309 * doc/posix-functions/lrintl.texi: Likewise.
18310 * doc/posix-functions/mkdirat.texi: Likewise.
18311 * doc/posix-functions/mkfifoat.texi: Likewise.
18312 * doc/posix-functions/mknodat.texi: Likewise.
18313 * doc/posix-functions/mq_close.texi: Likewise.
18314 * doc/posix-functions/mq_getattr.texi: Likewise.
18315 * doc/posix-functions/mq_notify.texi: Likewise.
18316 * doc/posix-functions/mq_open.texi: Likewise.
18317 * doc/posix-functions/mq_receive.texi: Likewise.
18318 * doc/posix-functions/mq_send.texi: Likewise.
18319 * doc/posix-functions/mq_setattr.texi: Likewise.
18320 * doc/posix-functions/mq_timedreceive.texi: Likewise.
18321 * doc/posix-functions/mq_timedsend.texi: Likewise.
18322 * doc/posix-functions/mq_unlink.texi: Likewise.
18323 * doc/posix-functions/open_memstream.texi: Likewise.
18324 * doc/posix-functions/openat.texi: Likewise.
18325 * doc/posix-functions/posix_fadvise.texi: Likewise.
18326 * doc/posix-functions/posix_fallocate.texi: Likewise.
18327 * doc/posix-functions/posix_madvise.texi: Likewise.
18328 * doc/posix-functions/posix_memalign.texi: Likewise.
18329 * doc/posix-functions/posix_openpt.texi: Likewise.
18330 * doc/posix-functions/readlinkat.texi: Likewise.
18331 * doc/posix-functions/remque.texi: Likewise.
18332 * doc/posix-functions/renameat.texi: Likewise.
18333 * doc/posix-functions/rintl.texi: Likewise.
18334 * doc/posix-functions/sem_unlink.texi: Likewise.
18335 * doc/posix-functions/shm_open.texi: Likewise.
18336 * doc/posix-functions/shm_unlink.texi: Likewise.
18337 * doc/posix-functions/signgam.texi: Likewise.
18338 * doc/posix-functions/sigset.texi: Likewise.
18339 * doc/posix-functions/stpcpy.texi: Likewise.
18340 * doc/posix-functions/stpncpy.texi: Likewise.
18341 * doc/posix-functions/strerror.texi: Likewise.
18342 * doc/posix-functions/strtod.texi: Likewise.
18343 * doc/posix-functions/symlinkat.texi: Likewise.
18344 * doc/posix-functions/unlinkat.texi: Likewise.
18345 * doc/posix-functions/utimensat.texi: Likewise.
18346 * doc/glibc-functions/bindresvport.texi: Likewise.
18347 * doc/glibc-functions/dn_expand.texi: Likewise.
18348 * doc/glibc-functions/exp10.texi: Likewise.
18349 * doc/glibc-functions/exp10f.texi: Likewise.
18350 * doc/glibc-functions/fgetxattr.texi: Likewise.
18351 * doc/glibc-functions/flistxattr.texi: Likewise.
18352 * doc/glibc-functions/fopencookie.texi: Likewise.
18353 * doc/glibc-functions/freeifaddrs.texi: Likewise.
18354 * doc/glibc-functions/fremovexattr.texi: Likewise.
18355 * doc/glibc-functions/fsetxattr.texi: Likewise.
18356 * doc/glibc-functions/getifaddrs.texi: Likewise.
18357 * doc/glibc-functions/getxattr.texi: Likewise.
18358 * doc/glibc-functions/lgetxattr.texi: Likewise.
18359 * doc/glibc-functions/listxattr.texi: Likewise.
18360 * doc/glibc-functions/llistxattr.texi: Likewise.
18361 * doc/glibc-functions/lremovexattr.texi: Likewise.
18362 * doc/glibc-functions/lsetxattr.texi: Likewise.
18363 * doc/glibc-functions/pow10.texi: Likewise.
18364 * doc/glibc-functions/pow10f.texi: Likewise.
18365 * doc/glibc-functions/rcmd_af.texi: Likewise.
18366 * doc/glibc-functions/removexattr.texi: Likewise.
18367 * doc/glibc-functions/res_init.texi: Likewise.
18368 * doc/glibc-functions/res_mkquery.texi: Likewise.
18369 * doc/glibc-functions/res_query.texi: Likewise.
18370 * doc/glibc-functions/res_querydomain.texi: Likewise.
18371 * doc/glibc-functions/res_send.texi: Likewise.
18372 * doc/glibc-functions/rresvport_af.texi: Likewise.
18373 * doc/glibc-functions/setxattr.texi: Likewise.
18374 * doc/glibc-functions/strcasestr.texi: Likewise.
18376 2008-12-15 Bruno Haible <bruno@clisp.org>
18378 Fix compilation error on OSF/1 4.0.
18379 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18380 <sys/time.h>, simply delegate to the system header.
18381 Reported by Daniel Richard G. <oss@teragram.com>.
18383 2008-12-15 Bruno Haible <bruno@clisp.org>
18385 * doc/posix-functions/openat.texi: Mention the 'openat' module.
18386 * doc/posix-functions/fchmodat.texi: Likewise.
18387 * doc/posix-functions/fchownat.texi: Likewise.
18388 * doc/posix-functions/fdopendir.texi: Likewise.
18389 * doc/posix-functions/fstatat.texi: Likewise.
18390 * doc/posix-functions/mkdirat.texi: Likewise.
18391 * doc/posix-functions/unlinkat.texi: Likewise.
18393 2008-12-14 Bruno Haible <bruno@clisp.org>
18395 Update doc for POSIX:2008.
18396 * doc/posix-functions/faccessat.texi: New file.
18397 * doc/posix-functions/fchmodat.texi: New file.
18398 * doc/posix-functions/fchownat.texi: New file.
18399 * doc/posix-functions/fdopendir.texi: New file.
18400 * doc/posix-functions/fstatat.texi: New file.
18401 * doc/posix-functions/futimens.texi: New file.
18402 * doc/posix-functions/linkat.texi: New file.
18403 * doc/posix-functions/mkdirat.texi: New file.
18404 * doc/posix-functions/mkfifoat.texi: New file.
18405 * doc/posix-functions/mknodat.texi: New file.
18406 * doc/posix-functions/open_wmemstream.texi: New file.
18407 * doc/posix-functions/openat.texi: New file.
18408 * doc/posix-functions/psiginfo.texi: New file.
18409 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18410 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18411 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18412 * doc/posix-functions/readlinkat.texi: New file.
18413 * doc/posix-functions/renameat.texi: New file.
18414 * doc/posix-functions/strerror_l.texi: New file.
18415 * doc/posix-functions/symlinkat.texi: New file.
18416 * doc/posix-functions/unlinkat.texi: New file.
18417 * doc/posix-functions/utimensat.texi: New file.
18418 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18420 2008-12-14 Bruno Haible <bruno@clisp.org>
18422 Update doc for POSIX:2008.
18423 * doc/posix-functions/alphasort.texi: Renamed from
18424 doc/glibc-functions/alphasort.texi.
18425 * doc/posix-functions/dirfd.texi: Renamed from
18426 doc/glibc-functions/dirfd.texi.
18427 * doc/posix-functions/dprintf.texi: Renamed from
18428 doc/glibc-functions/dprintf.texi.
18429 * doc/posix-functions/duplocale.texi: Renamed from
18430 doc/glibc-functions/duplocale.texi.
18431 * doc/posix-functions/fexecve.texi: Renamed from
18432 doc/glibc-functions/fexecve.texi.
18433 * doc/posix-functions/fmemopen.texi: Renamed from
18434 doc/glibc-functions/fmemopen.texi.
18435 * doc/posix-functions/freelocale.texi: Renamed from
18436 doc/glibc-functions/freelocale.texi.
18437 * doc/posix-functions/getdate_err.texi: Renamed from
18438 doc/glibc-functions/getdate_err.texi.
18439 * doc/posix-functions/isalnum_l.texi: Renamed from
18440 doc/glibc-functions/isalnum_l.texi.
18441 * doc/posix-functions/isalpha_l.texi: Renamed from
18442 doc/glibc-functions/isalpha_l.texi.
18443 * doc/posix-functions/isblank_l.texi: Renamed from
18444 doc/glibc-functions/isblank_l.texi.
18445 * doc/posix-functions/iscntrl_l.texi: Renamed from
18446 doc/glibc-functions/iscntrl_l.texi.
18447 * doc/posix-functions/isdigit_l.texi: Renamed from
18448 doc/glibc-functions/isdigit_l.texi.
18449 * doc/posix-functions/isgraph_l.texi: Renamed from
18450 doc/glibc-functions/isgraph_l.texi.
18451 * doc/posix-functions/islower_l.texi: Renamed from
18452 doc/glibc-functions/islower_l.texi.
18453 * doc/posix-functions/isprint_l.texi: Renamed from
18454 doc/glibc-functions/isprint_l.texi.
18455 * doc/posix-functions/ispunct_l.texi: Renamed from
18456 doc/glibc-functions/ispunct_l.texi.
18457 * doc/posix-functions/isspace_l.texi: Renamed from
18458 doc/glibc-functions/isspace_l.texi.
18459 * doc/posix-functions/isupper_l.texi: Renamed from
18460 doc/glibc-functions/isupper_l.texi.
18461 * doc/posix-functions/iswalnum_l.texi: Renamed from
18462 doc/glibc-functions/iswalnum_l.texi.
18463 * doc/posix-functions/iswalpha_l.texi: Renamed from
18464 doc/glibc-functions/iswalpha_l.texi.
18465 * doc/posix-functions/iswblank_l.texi: Renamed from
18466 doc/glibc-functions/iswblank_l.texi.
18467 * doc/posix-functions/iswcntrl_l.texi: Renamed from
18468 doc/glibc-functions/iswcntrl_l.texi.
18469 * doc/posix-functions/iswctype_l.texi: Renamed from
18470 doc/glibc-functions/iswctype_l.texi.
18471 * doc/posix-functions/iswdigit_l.texi: Renamed from
18472 doc/glibc-functions/iswdigit_l.texi.
18473 * doc/posix-functions/iswgraph_l.texi: Renamed from
18474 doc/glibc-functions/iswgraph_l.texi.
18475 * doc/posix-functions/iswlower_l.texi: Renamed from
18476 doc/glibc-functions/iswlower_l.texi.
18477 * doc/posix-functions/iswprint_l.texi: Renamed from
18478 doc/glibc-functions/iswprint_l.texi.
18479 * doc/posix-functions/iswpunct_l.texi: Renamed from
18480 doc/glibc-functions/iswpunct_l.texi.
18481 * doc/posix-functions/iswspace_l.texi: Renamed from
18482 doc/glibc-functions/iswspace_l.texi.
18483 * doc/posix-functions/iswupper_l.texi: Renamed from
18484 doc/glibc-functions/iswupper_l.texi.
18485 * doc/posix-functions/iswxdigit_l.texi: Renamed from
18486 doc/glibc-functions/iswxdigit_l.texi.
18487 * doc/posix-functions/isxdigit_l.texi: Renamed from
18488 doc/glibc-functions/isxdigit_l.texi.
18489 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18490 doc/glibc-functions/mbsnrtowcs.texi.
18491 * doc/posix-functions/mkdtemp.texi: Renamed from
18492 doc/glibc-functions/mkdtemp.texi.
18493 * doc/posix-functions/newlocale.texi: Renamed from
18494 doc/glibc-functions/newlocale.texi.
18495 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18496 doc/glibc-functions/nl_langinfo_l.texi.
18497 * doc/posix-functions/open_memstream.texi: Renamed from
18498 doc/glibc-functions/open_memstream.texi.
18499 * doc/posix-functions/opterr.texi: Renamed from
18500 doc/glibc-functions/opterr.texi.
18501 * doc/posix-functions/optind.texi: Renamed from
18502 doc/glibc-functions/optind.texi.
18503 * doc/posix-functions/optopt.texi: Renamed from
18504 doc/glibc-functions/optopt.texi.
18505 * doc/posix-functions/psignal.texi: Renamed from
18506 doc/glibc-functions/psignal.texi.
18507 * doc/posix-functions/scandir.texi: Renamed from
18508 doc/glibc-functions/scandir.texi.
18509 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18510 doc/glibc-functions/sched_get_priority_min.texi.
18511 * doc/posix-functions/signgam.texi: Renamed from
18512 doc/glibc-functions/signgam.texi.
18513 * doc/posix-functions/stpcpy.texi: Renamed from
18514 doc/glibc-functions/stpcpy.texi.
18515 * doc/posix-functions/stpncpy.texi: Renamed from
18516 doc/glibc-functions/stpncpy.texi.
18517 * doc/posix-functions/strcasecmp_l.texi: Renamed from
18518 doc/glibc-functions/strcasecmp_l.texi.
18519 * doc/posix-functions/strcoll_l.texi: Renamed from
18520 doc/glibc-functions/strcoll_l.texi.
18521 * doc/posix-functions/strfmon_l.texi: Renamed from
18522 doc/glibc-functions/strfmon_l.texi.
18523 * doc/posix-functions/strftime_l.texi: Renamed from
18524 doc/glibc-functions/strftime_l.texi.
18525 * doc/posix-functions/strncasecmp_l.texi: Renamed from
18526 doc/glibc-functions/strncasecmp_l.texi.
18527 * doc/posix-functions/strndup.texi: Renamed from
18528 doc/glibc-functions/strndup.texi.
18529 * doc/posix-functions/strnlen.texi: Renamed from
18530 doc/glibc-functions/strnlen.texi.
18531 * doc/posix-functions/strsignal.texi: Renamed from
18532 doc/glibc-functions/strsignal.texi.
18533 * doc/posix-functions/strxfrm_l.texi: Renamed from
18534 doc/glibc-functions/strxfrm_l.texi.
18535 * doc/posix-functions/timer_gettime.texi: Renamed from
18536 doc/glibc-functions/timer_gettime.texi.
18537 * doc/posix-functions/tolower_l.texi: Renamed from
18538 doc/glibc-functions/tolower_l.texi.
18539 * doc/posix-functions/toupper_l.texi: Renamed from
18540 doc/glibc-functions/toupper_l.texi.
18541 * doc/posix-functions/towctrans_l.texi: Renamed from
18542 doc/glibc-functions/towctrans_l.texi.
18543 * doc/posix-functions/towlower_l.texi: Renamed from
18544 doc/glibc-functions/towlower_l.texi.
18545 * doc/posix-functions/towupper_l.texi: Renamed from
18546 doc/glibc-functions/towupper_l.texi.
18547 * doc/posix-functions/uselocale.texi: Renamed from
18548 doc/glibc-functions/uselocale.texi.
18549 * doc/posix-functions/vdprintf.texi: Renamed from
18550 doc/glibc-functions/vdprintf.texi.
18551 * doc/posix-functions/wcpcpy.texi:
18552 Renamed from doc/glibc-functions/wcpcpy.texi.
18553 * doc/posix-functions/wcpncpy.texi: Renamed from
18554 doc/glibc-functions/wcpncpy.texi.
18555 * doc/posix-functions/wcscasecmp.texi: Renamed from
18556 doc/glibc-functions/wcscasecmp.texi.
18557 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18558 doc/glibc-functions/wcscasecmp_l.texi.
18559 * doc/posix-functions/wcscoll_l.texi: Renamed from
18560 doc/glibc-functions/wcscoll_l.texi.
18561 * doc/posix-functions/wcsdup.texi: Renamed from
18562 doc/glibc-functions/wcsdup.texi.
18563 * doc/posix-functions/wcsncasecmp.texi: Renamed from
18564 doc/glibc-functions/wcsncasecmp.texi.
18565 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18566 doc/glibc-functions/wcsncasecmp_l.texi.
18567 * doc/posix-functions/wcsnlen.texi: Renamed from
18568 doc/glibc-functions/wcsnlen.texi.
18569 * doc/posix-functions/wcsnrtombs.texi: Renamed from
18570 doc/glibc-functions/wcsnrtombs.texi.
18571 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18572 doc/glibc-functions/wcsxfrm_l.texi.
18573 * doc/posix-functions/wctrans_l.texi: Renamed from
18574 doc/glibc-functions/wctrans_l.texi.
18575 * doc/posix-functions/wctype_l.texi: Renamed from
18576 doc/glibc-functions/wctype_l.texi.
18577 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18578 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18579 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18580 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18582 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18585 2008-12-14 Bruno Haible <bruno@clisp.org>
18587 Update doc for POSIX:2008.
18588 * doc/posix-functions/*.texi: Update URL of POSIX specification.
18590 2008-12-14 Bruno Haible <bruno@clisp.org>
18592 Update doc for POSIX:2008.
18593 * doc/pastposix-functions/bcmp.texi: Renamed from
18594 doc/posix-functions/bcmp.texi.
18595 * doc/pastposix-functions/bcopy.texi: Renamed from
18596 doc/posix-functions/bcopy.texi.
18597 * doc/pastposix-functions/bsd_signal.texi: Renamed from
18598 doc/posix-functions/bsd_signal.texi.
18599 * doc/pastposix-functions/bzero.texi: Renamed from
18600 doc/posix-functions/bzero.texi.
18601 * doc/pastposix-functions/ecvt.texi: Renamed from
18602 doc/posix-functions/ecvt.texi.
18603 * doc/pastposix-functions/fcvt.texi: Renamed from
18604 doc/posix-functions/fcvt.texi.
18605 * doc/pastposix-functions/ftime.texi: Renamed from
18606 doc/posix-functions/ftime.texi.
18607 * doc/pastposix-functions/gcvt.texi: Renamed from
18608 doc/posix-functions/gcvt.texi.
18609 * doc/pastposix-functions/getcontext.texi: Renamed from
18610 doc/posix-functions/getcontext.texi.
18611 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18612 doc/posix-functions/gethostbyaddr.texi.
18613 * doc/pastposix-functions/gethostbyname.texi: Renamed from
18614 doc/posix-functions/gethostbyname.texi.
18615 * doc/pastposix-functions/getwd.texi: Renamed from
18616 doc/posix-functions/getwd.texi.
18617 * doc/pastposix-functions/h_errno.texi: Renamed from
18618 doc/posix-functions/h_errno.texi.
18619 * doc/pastposix-functions/index.texi: Renamed from
18620 doc/posix-functions/index.texi.
18621 * doc/pastposix-functions/makecontext.texi: Renamed from
18622 doc/posix-functions/makecontext.texi.
18623 * doc/pastposix-functions/mktemp.texi: Renamed from
18624 doc/posix-functions/mktemp.texi.
18625 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18626 doc/posix-functions/pthread_attr_getstackaddr.texi.
18627 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18628 doc/posix-functions/pthread_attr_setstackaddr.texi.
18629 * doc/pastposix-functions/rindex.texi: Renamed from
18630 doc/posix-functions/rindex.texi.
18631 * doc/pastposix-functions/scalb.texi: Renamed from
18632 doc/posix-functions/scalb.texi.
18633 * doc/pastposix-functions/setcontext.texi: Renamed from
18634 doc/posix-functions/setcontext.texi.
18635 * doc/pastposix-functions/swapcontext.texi: Renamed from
18636 doc/posix-functions/swapcontext.texi.
18637 * doc/pastposix-functions/ualarm.texi: Renamed from
18638 doc/posix-functions/ualarm.texi.
18639 * doc/pastposix-functions/usleep.texi: Renamed from
18640 doc/posix-functions/usleep.texi.
18641 * doc/pastposix-functions/vfork.texi: Renamed from
18642 doc/posix-functions/vfork.texi.
18643 * doc/pastposix-functions/wcswcs.texi: Renamed from
18644 doc/posix-functions/wcswcs.texi.
18645 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18646 (Function Substitutes): Update.
18648 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18650 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18653 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18654 Bruno Haible <bruno@clisp.org>
18656 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18658 2008-12-13 Bruno Haible <bruno@clisp.org>
18660 * modules/strtoull (Depends-on): Remove unistd.
18662 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18664 * modules/strtoull (Depends-on): Add stdlib.
18666 2008-12-11 Simon Josefsson <simon@josefsson.org>
18668 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18670 2008-12-10 Jim Meyering <meyering@redhat.com>
18672 gl_ASSERT: don't say assertions are disabled when they're not
18673 * m4/assert.m4 (gl_ASSERT): Do not make configure report
18674 "checking whether to enable assertions... no", when they are in
18675 fact enabled. This is solely a bug in the output of configure.
18676 In spite of saying "no", NDEBUG was not defined in that case.
18677 Also, as noted by Eric Blake, leave assertions enabled upon
18678 --enable-assert=INVALID.
18680 2008-12-10 Bruno Haible <bruno@clisp.org>
18682 Change MODULES.html to refer to POSIX:2008 where possible.
18683 * MODULES.html.sh (POSIX2008_URL): New variable.
18684 (posix_headers): Remove sys/timeb, ucontext.
18685 (posix2001_headers): New variable.
18686 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18687 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18688 index, makecontext, mktemp, pthread_attr_getstackaddr,
18689 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18690 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18691 (posix2001_functions): New variable.
18692 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18695 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18697 add missing include to parse-duration.c
18698 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18699 * modules/parse-duration (Depends-on): Add xalloc.
18701 fix sed script reading maint.mk
18702 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18703 (syntax-check-rules): Use it.
18705 2008-12-09 Bruno Haible <bruno@clisp.org>
18707 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18708 MacOS X 10.4/PowerPC.
18709 Reported by Simon Josefsson.
18711 2008-12-08 Jim Meyering <meyering@redhat.com>
18713 work around mingw's lack of some S_IF definitions
18714 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18715 Reported by Simon Josefsson.
18717 2008-12-08 Bruno Haible <bruno@clisp.org>
18719 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18720 applied to variables. Needed on MacOS X 10.4/PowerPC.
18721 Reported by Simon Josefsson.
18723 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
18724 and Eric Blake <ebb9@byu.net>
18726 assert: honor --enable-assert
18727 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18728 order to honor --enable-assert, rather than treating it as a
18729 synonym for --disable-assert.
18731 2008-12-08 Jim Meyering <meyering@redhat.com>
18733 * lib/posixtm.c: Remove now-useless declaration of mktime.
18735 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18737 2008-12-07 Bruno Haible <bruno@clisp.org>
18739 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18740 test_once): Mark functions as static.
18741 * tests/test-tls.c (test_tls): Likewise.
18743 2008-12-07 Bruno Haible <bruno@clisp.org>
18745 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18746 iconv_register_autodetect.
18748 2008-12-07 Jim Meyering <meyering@redhat.com>
18750 posixtm.c: avoid a warning
18751 * lib/posixtm.c (posixtime): Don't initialize tm0.
18752 It's no longer needed to placate gcc4's -Wuninitialized,
18753 and the attempt to placate would elicit a new warning.
18755 unicodeio.c: mark unused parameters
18756 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18757 (fallback_failure_callback): Likewise.
18759 2008-12-07 Bruno Haible <bruno@clisp.org>
18761 * gnulib-tool (func_create_testdir): When building the tests
18762 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18763 Reported by Simon Josefsson.
18765 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18767 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18769 2008-12-06 Bruno Haible <bruno@clisp.org>
18771 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18772 Suggested by Eric Blake.
18774 2008-12-06 Bruno Haible <bruno@clisp.org>
18776 Fix a c-stack test failure on MacOS X.
18777 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18778 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18779 handler for SIGBUS as well.
18780 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18781 install a signal handler for SIGBUS as well.
18782 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18784 2008-12-06 Bruno Haible <bruno@clisp.org>
18786 Advocacy documentation.
18787 * doc/gnulib-intro.texi (Benefits): New section.
18788 * doc/gnulib.texi: Update.
18790 2008-12-06 Bruno Haible <bruno@clisp.org>
18792 Document the 'manywarnings' module.
18793 * doc/manywarnings.texi: New file.
18794 * doc/gnulib.texi: Include it.
18796 2008-12-05 Eric Blake <ebb9@byu.net>
18798 tests: silence some gcc warnings
18799 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18800 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18803 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18804 Bruno Haible <bruno@clisp.org>
18806 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18808 2008-11-29 Jim Meyering <meyering@redhat.com>
18810 unicodeio.c: mark unused parameters
18811 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18812 (fallback_failure_callback): Likewise.
18815 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
18816 (set_stat_type): Return S_IF*-valued "type" directly.
18817 Prompted by James Youngman's spotting a related bug.
18818 Confirmed by further testing through find.
18820 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18821 * lib/fts.c (D_TYPE): Define.
18822 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18823 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18824 (s_ifmt_shift_bits): New function.
18825 (set_stat_type): New function.
18826 (fts_build): When not calling fts_stat, call set_stat_type
18827 to propagate dirent.d_type info to fts_read caller.
18828 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18829 fts_statp->st_mode type information may be valid.
18831 2008-11-28 Simon Josefsson <simon@josefsson.org>
18833 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
18834 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
18837 2008-11-20 Bruno Haible <bruno@clisp.org>
18839 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18840 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18842 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18843 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18844 * modules/math (Makefile.am): Substitute
18845 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18846 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18848 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
18849 Bruno Haible <bruno@clisp.org>
18851 * lib/stdint.in.h: Define all type macros so that their expansion is
18852 a single typedef'ed token. Fixes a compilation failure in Boost which
18853 does "using ::int8_t;".
18855 2008-11-18 Simon Josefsson <simon@josefsson.org>
18857 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18858 gl_MANYWARN_ALL_GCC.
18859 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18860 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
18861 * modules/manywarnings: New file.
18862 * MODULES.html.sh: Mention manywarnings module.
18864 2008-11-18 Bruno Haible <bruno@clisp.org>
18866 * doc/gnulib-tool.texi (Unit tests): New section.
18868 2008-11-18 Simon Josefsson <simon@josefsson.org>
18870 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18871 paths like 'lib/po/foo.po'.
18873 2008-11-17 Simon Josefsson <simon@josefsson.org>
18875 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
18876 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18878 2008-11-17 Simon Josefsson <simon@josefsson.org>
18880 * m4/warnings.m4: Use CPPFLAGS to really check whether the
18883 2008-11-17 Simon Josefsson <simon@josefsson.org>
18885 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18887 2008-11-17 Bruce Korb <bkorb@gnu.org>
18889 * modules/parse-duration-tests: New file.
18890 * tests/test-parse-duration.sh: New file.
18891 * tests/test-parse-duration.c: New file.
18893 New module 'parse-duration'.
18894 * lib/parse-duration.h: New file.
18895 * lib/parse-duration.c: New file.
18896 * modules/parse-duration: New file.
18898 2008-11-17 Bruno Haible <bruno@clisp.org>
18900 * tests/test-select-out.sh: Comment out the first pipe test.
18901 Reported by Simon Josefsson.
18903 2008-11-17 Bruno Haible <bruno@clisp.org>
18905 * modules/getaddrinfo (Depends-on): Add servent, hostent.
18906 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18909 2008-11-17 Bruno Haible <bruno@clisp.org>
18911 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18912 -lnetwork and -lnet. Needed for Haiku and BeOS.
18914 2008-11-16 Bruno Haible <bruno@clisp.org>
18916 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18918 2008-11-16 Bruno Haible <bruno@clisp.org>
18920 Avoid test failure on Haiku.
18921 * tests/test-fsync.c: Include <errno.h>.
18922 (main): Don't require that fsync (0) fails.
18924 2008-11-15 Bruno Haible <bruno@clisp.org>
18926 New module 'hostent'.
18927 * modules/hostent: New file.
18928 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18930 2008-11-15 Bruno Haible <bruno@clisp.org>
18932 New module 'servent'.
18933 * modules/servent: New file.
18934 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18936 2008-11-15 Bruno Haible <bruno@clisp.org>
18938 Avoid generating same test program with two different rules.
18939 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18940 test-frexp to test-frexp-nolibm.
18941 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18942 test-frexpl to test-frexpl-nolibm.
18944 2008-11-15 Bruno Haible <bruno@clisp.org>
18946 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18949 2008-11-15 Bruno Haible <bruno@clisp.org>
18951 * lib/netdb.in.h: Activate the definitions also when the system's
18952 <netdb.h> has 'struct addrinfo'.
18953 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18954 EAI_OVERFLOW or AI_NUMERICSERV.
18955 * doc/posix-headers/netdb.texi: Document the problem.
18957 2008-11-15 Bruno Haible <bruno@clisp.org>
18959 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18961 Make the 'sched' module work on platforms where <sched.h> exists but
18962 is incomplete (such as Haiku).
18963 * lib/sched.in.h; Include the system's <sched.h> if it exists.
18964 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18965 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18966 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18967 HAVE_STRUCT_SCHED_PARAM.
18968 * modules/sched (Depends-on): Add include_next.
18969 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18970 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18971 * doc/posix-headers/sched.texi: Document the issue.
18973 2008-11-13 Jim Meyering <meyering@redhat.com>
18975 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18976 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18977 test would fail due to the difference in the Report bugs to ...
18978 line. The expected address is empty, "<>", while the actual
18979 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
18981 2008-11-12 Bruno Haible <bruno@clisp.org>
18983 lstat: don't compile lstat.c on systems lacking lstat
18984 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18985 which don't have lstat; this is handled by lib/sys_stat.in.h already.
18986 Reported by Daniel P. Berrange via Jim Meyering.
18988 2008-11-12 Jim Meyering <meyering@redhat.com>
18990 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18992 2008-11-12 Simon Josefsson <simon@josefsson.org>
18994 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18997 2008-11-12 Bruno Haible <bruno@clisp.org>
18999 * lib/unicodeio.c: Include unistr.h.
19000 (utf8_wctomb): Remove function.
19001 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19003 2008-11-12 Simon Josefsson <simon@josefsson.org>
19005 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19006 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19008 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19010 2008-11-12 Simon Josefsson <simon@josefsson.org>
19012 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19013 * doc/gnulib.texi: Add section for warnings.
19015 2008-11-11 Bruno Haible <bruno@clisp.org>
19017 * lib/sockets.h: Add a comment.
19019 2008-11-11 Karl Berry <karl@gnu.org>
19021 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19023 2008-11-11 Eric Blake <ebb9@byu.net>
19025 fdl.texi: avoid git symlinks
19026 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19028 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19030 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19032 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19034 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19035 (gl_WARN_ADD): Substitute $2 if literal.
19037 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19039 * m4/warning.m4: Remove.
19041 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19043 * m4/warnings.m4: Almost complete rewrite. :-)
19045 2008-11-10 Simon Josefsson <simon@josefsson.org>
19047 * modules/warnings: New module.
19048 * m4/warnings.m4: New file.
19049 * MODULES.html.sh: Mention warnings module.
19050 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19051 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19053 2008-11-10 Eric Blake <ebb9@byu.net>
19055 fdl.texi: make a symlink to the latest version
19056 * doc/standards.texi: Revert today's earlier change.
19057 * doc/fdl-1.2.texi: Rename from old fdl.texi...
19058 * doc/fdl.texi: ...and replace this with a symlink to the newer
19061 2008-11-10 Bruno Haible <bruno@clisp.org>
19063 * tests/test-select-fd.c (main): Accept the result file name as fourth
19065 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19066 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19068 2008-11-10 Bruno Haible <bruno@clisp.org>
19070 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19071 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19072 as autoconf-substituted macros.
19073 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19074 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19075 gl_NETDB_H_DEFAULTS. Set these variables.
19076 * modules/netdb (Makefile.am): Substitute these variables.
19078 2008-11-10 Eric Blake <ebb9@byu.net>
19080 standards.texi: include correct file for FDL 1.3
19081 * doc/standards.texi (GNU Free Documentation License): Change
19082 include file to pull in FDL 1.3, not 1.2.
19084 fdl.texi: revert accidental change to license
19085 * doc/fdl.texi: This is FDL 1.2, not 1.3.
19087 2008-11-10 Bruno Haible <bruno@clisp.org>
19089 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19090 cross-compiling guesses also when the native compile gives no result.
19092 2008-11-10 Bruno Haible <bruno@clisp.org>
19094 * lib/spawni.c (__spawni): Force variable into the stack.
19096 2008-11-10 Bruno Haible <bruno@clisp.org>
19098 Add support for Haiku.
19099 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19100 glibc and BeOS, but also on Haiku.
19101 * lib/fpurge.c (fpurge): Likewise.
19102 * lib/freadable.c (freadable): Likewise.
19103 * lib/freadahead.c (freadahead): Likewise.
19104 * lib/freading.c (freading): Likewise.
19105 * lib/freadptr.c (freadptr): Likewise.
19106 * lib/freadseek.c (freadptrinc): Likewise.
19107 * lib/fseeko.c (rpl_fseeko): Likewise.
19108 * lib/fseterr.c (fseterr): Likewise.
19109 * lib/fwritable.c (fwritable): Likewise.
19110 * lib/fwriting.c (fwriting): Likewise.
19111 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19113 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
19115 * lib/config.charset: Treat Haiku like BeOS.
19117 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
19119 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19120 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19122 2008-11-08 Bruno Haible <bruno@clisp.org>
19124 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19127 2008-11-08 Bruno Haible <bruno@clisp.org>
19129 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19131 2008-11-08 Bruno Haible <bruno@clisp.org>
19133 * tests/test-select-fd.c: New file.
19134 * tests/test-select-in.sh: New file.
19135 * tests/test-select-out.sh: New file.
19136 * tests/test-select-stdin.c: New file.
19137 * modules/select-tests (Files): Add the new files.
19138 (Depends-on): Add gettimeofday.
19139 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19140 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19141 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19143 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
19144 Bruno Haible <bruno@clisp.org>
19146 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19148 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
19150 * build-aux/pmccabe2html: Added support for C++ source files.
19152 2008-11-05 Ben Pfaff <blp@gnu.org>
19154 Fix lib/close.c build on Windows.
19155 * modules/close (Files): Add lib/w32sock.h.
19157 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
19159 Accept Bison's NEWS format.
19160 * build-aux/announce-gen (print_news_deltas): Tweak
19163 2008-11-04 Bruno Haible <bruno@clisp.org>
19165 * modules/random_r (Maintainer): Add glibc.
19167 2008-11-04 Simon Josefsson <simon@josefsson.org>
19169 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19170 by karl@freefriends.org (Karl Berry).
19171 * doc/alloca.texi: Likewise.
19172 * doc/c-ctype.texi: Likewise.
19173 * doc/c-strcase.texi: Likewise.
19174 * doc/c-strcaseeq.texi: Likewise.
19175 * doc/c-strcasestr.texi: Likewise.
19176 * doc/c-strstr.texi: Likewise.
19177 * doc/c-strtod.texi: Likewise.
19178 * doc/c-strtold.texi: Likewise.
19179 * doc/ctime.texi: Likewise.
19180 * doc/error.texi: Likewise.
19181 * doc/fdl.texi: Likewise.
19182 * doc/gcd.texi: Likewise.
19183 * doc/getdate.texi: Likewise.
19184 * doc/gnulib-intro.texi: Likewise.
19185 * doc/gnulib-tool.texi: Likewise.
19186 * doc/gnulib.texi: Likewise.
19187 * doc/inet_ntoa.texi: Likewise.
19188 * doc/maintain.texi: Likewise.
19189 * doc/make-stds.texi: Likewise.
19190 * doc/quote.texi: Likewise.
19191 * doc/regexprops-generic.texi: Likewise.
19192 * doc/standards.texi: Likewise.
19193 * doc/verify.texi: Likewise.
19194 * doc/visibility.texi: Likewise.
19195 * doc/gnulib.texi (GNU Free Documentation License): Include
19196 fdl-1.3.texi instead of fdl.texi.
19198 2008-11-04 Simon Josefsson <simon@josefsson.org>
19200 * doc/fdl-1.3.texi: New file, from
19201 <http://www.gnu.org/licenses/fdl-1.3.texi>.
19202 * modules/fdl-1.3: Add.
19203 * MODULES.html.sh: Add fdl-1.3.
19205 2008-11-03 Bruno Haible <bruno@clisp.org>
19207 Make determination of absolute name of header file work with AIX xlc.
19208 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19209 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19211 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19212 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19214 2008-11-03 Simon Josefsson <simon@josefsson.org>
19216 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19217 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
19220 2008-11-02 Bruno Haible <bruno@clisp.org>
19222 Mark 'strpbrk' obsolete.
19223 * modules/strpbrk (Status, Notice): New sections.
19224 * modules/strtok_r (Depends-on): Add strpbrk.
19226 2008-11-02 Bruno Haible <bruno@clisp.org>
19228 Mark 'strdup' obsolete.
19229 * modules/strdup (Status, Notice): New sections.
19230 * modules/findprog (Depends-on): Add strdup.
19231 * modules/getaddrinfo (Depends-on): Likewise.
19232 * modules/localename (Depends-on): Likewise.
19233 * modules/relocatable-lib (Depends-on): Likewise.
19234 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19235 * modules/relocatable-prog (Depends-on): Likewise.
19236 * modules/trim (Depends-on): Likewise.
19237 * modules/unictype/gen-ctype (Depends-on): Likewise.
19238 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19240 2008-11-02 Bruno Haible <bruno@clisp.org>
19242 Mark 'strcspn' obsolete.
19243 * modules/strcspn (Status, Notice): New sections.
19245 2008-11-02 Bruno Haible <bruno@clisp.org>
19247 Mark 'rmdir' obsolete.
19248 * modules/rmdir (Status, Notice): New sections.
19249 * modules/clean-temp (Depends-on): Add rmdir.
19250 * modules/openat (Depends-on): Likewise.
19252 2008-11-02 Bruno Haible <bruno@clisp.org>
19254 Mark 'raise' obsolete.
19255 * modules/raise (Status, Notice): New sections.
19256 (Include): Specify <signal.h>.
19257 * modules/stdio (Depends-on): Add raise.
19258 * modules/write (Depends-on): Likewise.
19260 2008-11-02 Bruno Haible <bruno@clisp.org>
19262 Mark 'memset' obsolete.
19263 * modules/memset (Status, Notice): New sections.
19265 2008-11-02 Bruno Haible <bruno@clisp.org>
19267 Mark 'memmove' obsolete.
19268 * modules/memmove (Status, Notice): New sections.
19269 * modules/argp (Depends-on): Add memmove.
19270 * modules/argz (Depends-on): Likewise.
19271 * modules/canonicalize (Depends-on): Likewise.
19272 * modules/canonicalize-lgpl (Depends-on): Likewise.
19273 * modules/fts (Depends-on): Likewise.
19274 * modules/getcwd (Depends-on): Likewise.
19275 * modules/human (Depends-on): Likewise.
19276 * modules/regex (Depends-on): Likewise.
19277 * modules/striconveh (Depends-on): Likewise.
19278 * modules/trim (Depends-on): Likewise.
19279 * modules/unistr/u8-move (Depends-on): Likewise.
19280 * modules/unistr/u16-move (Depends-on): Likewise.
19281 * modules/unistr/u32-move (Depends-on): Likewise.
19283 2008-11-02 Bruno Haible <bruno@clisp.org>
19285 Mark 'memcpy' obsolete.
19286 * modules/memcpy (Status, Notice): New sections.
19288 2008-11-02 Bruno Haible <bruno@clisp.org>
19290 Mark 'memcmp' obsolete.
19291 * modules/memcmp (Status, Notice): New sections.
19292 * modules/argmatch (Depends-on): Add memchr.
19293 * modules/backupfile (Depends-on): Likewise.
19294 * modules/c-strcasestr (Depends-on): Likewise.
19295 * modules/crypto/des (Depends-on): Likewise.
19296 * modules/csharpcomp (Depends-on): Likewise.
19297 * modules/fnmatch (Depends-on): Likewise.
19298 * modules/git-merge-changelog (Depends-on): Likewise.
19299 * modules/isnand (Depends-on): Likewise.
19300 * modules/isnand-nolibm (Depends-on): Likewise.
19301 * modules/isnanf (Depends-on): Likewise.
19302 * modules/isnanf-nolibm (Depends-on): Likewise.
19303 * modules/isnanl (Depends-on): Likewise.
19304 * modules/isnanl-nolibm (Depends-on): Likewise.
19305 * modules/mbchar (Depends-on): Likewise.
19306 * modules/memcoll (Depends-on): Likewise.
19307 * modules/quotearg (Depends-on): Likewise.
19308 * modules/regex (Depends-on): Likewise.
19309 * modules/relocatable-prog (Depends-on): Likewise.
19310 * modules/same (Depends-on): Likewise.
19311 * modules/signbit (Depends-on): Likewise.
19312 * modules/strcasestr-simple (Depends-on): Likewise.
19313 * modules/unictype/gen-ctype (Depends-on): Likewise.
19314 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19315 * modules/uniname/uniname (Depends-on): Likewise.
19316 * modules/unistr/u8-cmp (Depends-on): Likewise.
19318 2008-11-02 Bruno Haible <bruno@clisp.org>
19320 Mark 'memchr' obsolete.
19321 * modules/memchr (Status, Notice): New sections.
19322 * modules/argp (Depends-on): Add memchr.
19323 * modules/base64 (Depends-on): Likewise.
19324 * modules/c-strcasestr (Depends-on): Likewise.
19325 * modules/chdir-long (Depends-on): Likewise.
19326 * modules/fnmatch (Depends-on): Likewise.
19327 * modules/getsubopt (Depends-on): Likewise.
19328 * modules/git-merge-changelog (Depends-on): Likewise.
19329 * modules/glob (Depends-on): Likewise.
19330 * modules/strcasestr-simple (Depends-on): Likewise.
19331 * modules/strnlen (Depends-on): Likewise.
19333 2008-11-02 Bruno Haible <bruno@clisp.org>
19335 Mark 'atexit' obsolete.
19336 * modules/atexit (Status, Notice): New sections.
19337 * modules/chdir-long (Depends-on): Add atexit.
19338 * modules/wait-process (Depends-on): Likewise.
19340 2008-11-02 Bruno Haible <bruno@clisp.org>
19342 * gnulib-tool: New option --with-obsolete.
19343 (func_usage): Document it.
19344 (func_modules_transitive_closure): Drop obsolete dependencies if
19345 incobsolete is not true.
19346 (func_import): Read and save the incobsolete variable to the cache.
19348 2008-11-02 Bruno Haible <bruno@clisp.org>
19350 * modules/TEMPLATE-EXTENDED: New field 'Status'.
19351 * gnulib-tool: New option --extract-status.
19352 (func_usage): Document it.
19353 (sed_extract_prog): Recognize it.
19354 (func_get_status): New function.
19356 2008-10-30 Simon Josefsson <simon@josefsson.org>
19358 * modules/sockets (License): Change from LGPL to LGPLv2+.
19360 2008-10-28 Simon Josefsson <simon@josefsson.org>
19362 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19364 2008-10-28 Simon Josefsson <simon@josefsson.org>
19366 * MODULES.html.sh (Support for systems lacking POSIX:2001):
19367 Mention times and sys_times.
19368 * modules/sys_times, modules/sys_times-tests: New modules.
19369 * modules/times, modules/times-tests: Likewise
19370 * m4/sys_times_h.m4: New file.
19371 * lib/sys_times.in.h: Likewise
19372 * lib/times.c: Likewise.
19373 * tests/test-sys_times.c: Likewise.
19374 * tests/test-times.c: Likewise.
19375 * doc/posix-headers/sys_times.texi: Update.
19376 * doc/posix-functions/times.texi: Update.
19378 2008-10-28 Jim Meyering <meyering@redhat.com>
19380 * modules/tempname (Depends-on): Add lstat.
19382 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19384 2008-10-28 Simon Josefsson <simon@josefsson.org>
19386 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19387 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19388 using idiom used elsewhere in gnulib.
19390 2008-10-27 Jim Meyering <meyering@redhat.com>
19392 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19394 2008-10-27 Simon Josefsson <simon@josefsson.org>
19396 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19397 TESTS_ENVIRONMENT, for shell scripts that needs to call built
19399 * tests/test-argp-2.sh: Use $EXEEXT when needed.
19401 2008-10-27 Simon Josefsson <simon@josefsson.org>
19403 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19405 2008-10-27 Bruno Haible <bruno@clisp.org>
19407 * tests/test-lstat.c: Include <stdio.h>.
19409 2008-10-27 Simon Josefsson <simon@josefsson.org>
19411 * modules/lstat-tests: New module.
19412 * tests/test-lstat.c: New file.
19414 2008-10-26 Jim Meyering <meyering@redhat.com>
19416 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19418 2008-10-26 Simon Josefsson <simon@josefsson.org>
19419 Bruno Haible <bruno@clisp.org>
19421 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19422 * modules/configmake (Include): Add a note that the include must come
19423 after all system headers.
19424 * lib/javaversion.c: Include configmake.h after all other includes.
19426 2008-10-26 Bruno Haible <bruno@clisp.org>
19428 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19429 HAVE_STRUCT_RANDOM_DATA to 1.
19430 (gl_STDLIB_H): Simplify.
19432 2008-10-26 Simon Josefsson <simon@josefsson.org>
19434 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
19435 substitute HAVE_STRUCT_RANDOM_DATA.
19436 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19438 * modules/stdlib (Makefile.am): Substitute
19439 HAVE_STRUCT_RANDOM_DATA.
19441 2008-10-26 Simon Josefsson <simon@josefsson.org>
19443 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19444 * doc/gnulib-intro.texi (Copyright): Likewise.
19446 2008-10-26 Simon Josefsson <simon@josefsson.org>
19448 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19451 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
19452 Bruno Haible <bruno@clisp.org>
19454 * lib/unistd.in.h: Include <winsock2.h>.
19455 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19456 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19457 Provide dummy declarations.
19458 (gethostname): Override.
19459 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19460 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19461 gl_PREREQ_SYS_H_WINSOCK2.
19462 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19463 * doc/posix-functions/gethostname.texi: More details.
19465 2008-10-25 Bruno Haible <bruno@clisp.org>
19467 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19468 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19469 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19471 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19473 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19474 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19475 gl_UNISTD_H_DEFAULTS.
19477 2008-10-25 Eric Blake <ebb9@byu.net>
19479 signbit: avoid spurious compiler failure
19480 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19481 declarations inside function.
19483 2008-10-24 Simon Josefsson <simon@josefsson.org>
19484 Bruno Haible <bruno@clisp.org>
19486 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19487 * modules/random_r (Depends-on): Add stdint.
19489 2008-10-24 Bruno Haible <bruno@clisp.org>
19491 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19493 * modules/strerror (License): Likewise.
19495 2008-10-24 Jim Meyering <meyering@redhat.com>
19497 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19498 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19500 2008-10-24 Eric Blake <ebb9@byu.net>
19502 getgroups: fix compilation when getgroups is available
19503 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19504 but with <config.h> override of getgroups disabled.
19506 2008-10-24 Simon Josefsson <simon@josefsson.org>
19508 * doc/gnulib.texi (Header files): Add note about C++ problems.
19509 Explained by Bruno Haible <bruno@clisp.org>.
19511 2008-10-23 Bruno Haible <bruno@clisp.org>
19513 Define a dummy SA_NODEFER macro on Interix.
19514 * lib/signal.in.h (SA_NODEFER): Define fallback.
19515 Reported by Aleksey Cheusov <cheusov@tut.by> via
19516 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19518 2008-10-23 Bruno Haible <bruno@clisp.org>
19520 * modules/freadahead (License): Change to LGPLv2+.
19521 Suggested by Simon Josefsson.
19523 2008-10-23 Jim Meyering <meyering@redhat.com>
19525 random_r: new module
19526 * modules/random_r: New file.
19527 * m4/random_r.m4: New file.
19528 * lib/random_r.c: New file, from glibc.
19529 * modules/random_r-tests: New file.
19530 * tests/test-random_r.c: New file.
19531 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19533 (RAND_MAX): Define.
19534 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19535 * modules/stdlib: Substitute them, too.
19536 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19537 * doc/glibc-functions/initstate_r.texi: Mention the new module.
19538 * doc/glibc-functions/random_r.texi: Likewise.
19539 * doc/glibc-functions/setstate_r.texi: Likewise.
19540 * doc/glibc-functions/srandom_r.texi: Likewise.
19541 * config/srclist.txt: Mention it.
19543 2008-10-23 David Lutterkort <lutter@redhat.com>
19545 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19548 2008-10-23 Jim Meyering <meyering@redhat.com>
19550 selinux-h: mark parameters of stub functions as intentionally unused
19551 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19552 * lib/se-context.in.h: Likewise.
19554 2008-10-22 Simon Josefsson <simon@josefsson.org>
19556 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19558 2008-10-22 Simon Josefsson <simon@josefsson.org>
19560 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19562 2008-10-22 Eric Blake <ebb9@byu.net>
19564 glthread/thread: avoid compiler warning
19565 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19566 Add unreachable abort to silence compiler.
19568 2008-10-22 Eric Blake <ebb9@byu.net>
19570 netdb: also supply struct addrinfo for cygwin 1.5.x
19571 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19573 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19575 * doc/posix-headers/netdb.texi (netdb.h): Document this.
19577 2008-10-22 Bruno Haible <bruno@clisp.org>
19579 * users.txt: Update entry about pspp.
19581 2008-10-21 Bruno Haible <bruno@clisp.org>
19584 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19585 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19588 * lib/ioctl.c (ioctl): Don't undefine.
19589 * lib/socket.c (socket): Don't undefine.
19591 Remove unused module indicator macros.
19592 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19593 GNULIB_$1 as a C macro.
19595 * doc/posix-functions/close.texi: Undo last change.
19596 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19599 2008-10-21 Bruno Haible <bruno@clisp.org>
19601 Add gethostname() declaration to <unistd.h>.
19602 * lib/unistd.in.h (gethostname): New declaration.
19603 * lib/gethostname.c: Include <unistd.h>.
19604 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19605 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19606 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19607 and HAVE_GETHOSTNAME.
19608 * modules/gethostname (Depends-on): Add unistd.
19609 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19610 (Include): Specify <unistd.h>.
19611 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19613 * tests/test-gethostname.c: Include <unistd.h> first.
19615 2008-10-21 Bruno Haible <bruno@clisp.org>
19617 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19618 * modules/select-tests (Depends-on): Likewise.
19619 Reported by Simon Josefsson.
19621 2008-10-21 Simon Josefsson <simon@josefsson.org>
19623 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19624 * lib/accept.c: New file, based on winsock.c.
19625 * lib/bind.c: New file, based on winsock.c.
19626 * lib/connect.c: New file, based on winsock.c.
19627 * lib/getpeername.c: New file, based on winsock.c.
19628 * lib/getsockname.c: New file, based on winsock.c.
19629 * lib/getsockopt.c: New file, based on winsock.c.
19630 * lib/ioctl.c: New file, based on winsock.c.
19631 * lib/listen.c: New file, based on winsock.c.
19632 * lib/recv.c: New file, based on winsock.c.
19633 * lib/recvfrom.c: New file, based on winsock.c.
19634 * lib/send.c: New file, based on winsock.c.
19635 * lib/sendto.c: New file, based on winsock.c.
19636 * lib/setsockopt.c: New file, based on winsock.c.
19637 * lib/shutdown.c: New file, based on winsock.c.
19638 * lib/socket.c: New file, based on winsock.c.
19639 * lib/w32sock.h: New file, based on winsock.c.
19640 * lib/winsock.c: Remove file.
19641 * modules/accept: Likewise.
19642 * modules/bind: Likewise.
19643 * modules/connect: Likewise.
19644 * modules/getpeername: Likewise.
19645 * modules/getsockname: Likewise.
19646 * modules/getsockopt: Likewise.
19647 * modules/ioctl: Likewise.
19648 * modules/listen: Likewise.
19649 * modules/recv: Likewise.
19650 * modules/recvfrom: Likewise.
19651 * modules/send: Likewise.
19652 * modules/sendto: Likewise.
19653 * modules/setsockopt: Likewise.
19654 * modules/shutdown: Likewise.
19655 * modules/socket: Use socket.c instead of winsock.c.
19656 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19657 * doc/posix-functions/accept.texi: Doc fix.
19658 * doc/posix-functions/bind.texi: Doc fix.
19659 * doc/posix-functions/close.texi: Doc fix.
19660 * doc/posix-functions/connect.texi: Doc fix.
19661 * doc/posix-functions/getpeername.texi: Doc fix.
19662 * doc/posix-functions/getsockname.texi: Doc fix.
19663 * doc/posix-functions/getsockopt.texi: Doc fix.
19664 * doc/posix-functions/ioctl.texi: Doc fix.
19665 * doc/posix-functions/listen.texi: Doc fix.
19666 * doc/posix-functions/recv.texi: Doc fix.
19667 * doc/posix-functions/recvfrom.texi: Doc fix.
19668 * doc/posix-functions/send.texi: Doc fix.
19669 * doc/posix-functions/sendto.texi: Doc fix.
19670 * doc/posix-functions/setsockopt.texi: Doc fix.
19671 * doc/posix-functions/shutdown.texi: Doc fix.
19672 * doc/posix-functions/socket.texi: Doc fix.
19674 2008-10-20 Bruno Haible <bruno@clisp.org>
19676 Take into account the role of SIGABRT_COMPAT on Windows 2008.
19677 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19678 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19679 as an alias for SIGABRT.
19680 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19681 (sigaction): Map it to SIGABRT.
19682 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19684 2008-10-20 Bruno Haible <bruno@clisp.org>
19686 * lib/fts.c: Don't include lstat.h.
19687 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19689 Move the lstat() declaration to <sys/stat.h>.
19690 * lib/lstat.h: Remove file.
19691 * lib/sys_stat.in.h: Add special invocation convention.
19692 (lstat): New declaration.
19693 * lib/lstat.c (orig_lstat): New function.
19694 (rpl_lstat): Use orig_lstat instead of lstat.
19695 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19696 AC_C_INLINE. Set REPLACE_LSTAT.
19697 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19699 * modules/lstat (Files): Remove lib/lstat.h.
19700 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19701 (Include): Specify <sys/stat.h> instead of lstat.h.
19702 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19704 * NEWS: Mention the change.
19706 2008-10-20 Bruno Haible <bruno@clisp.org>
19708 * modules/posix_spawn-tests: New file.
19709 * tests/test-posix_spawn3.c: New file.
19711 2008-10-20 Bruno Haible <bruno@clisp.org>
19713 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19714 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19715 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19716 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19717 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19719 2008-10-20 Bruno Haible <bruno@clisp.org>
19721 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19722 of posix_spawn on AIX 5.3.
19724 2008-10-20 Bruno Haible <bruno@clisp.org>
19726 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19728 2008-10-20 Bruno Haible <bruno@clisp.org>
19730 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19731 of AC_LANG_PROGRAM.
19733 2008-10-20 Simon Josefsson <simon@josefsson.org>
19735 * lib/netdb.in.h: Don't define GNU specific constants until they
19736 are supported or needed. Reported by Bruno Haible
19739 2008-10-20 Simon Josefsson <simon@josefsson.org>
19741 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19743 2008-10-20 Simon Josefsson <simon@josefsson.org>
19745 * lib/getaddrinfo.h: Remove file.
19746 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19747 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
19748 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19749 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19750 * modules/netdb: Substitute GNULIB_GETADDRINFO.
19751 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19752 * tests/test-getaddrinfo.c: Likewise.
19753 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
19754 * NEWS: Mention change.
19756 2008-10-19 Bruno Haible <bruno@clisp.org>
19758 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19760 2008-10-19 Bruno Haible <bruno@clisp.org>
19762 * lib/wait-process.c: Include simply <sys/wait.h>.
19763 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19764 WIFSTOPPED): Remove fallback definitions.
19765 * modules/wait-process (Depends-on): Add sys_wait.
19767 New module 'sys_wait'.
19768 * modules/sys_wait: New file.
19769 * lib/sys_wait.in.h: New file, partially copied from
19770 lib/wait-process.c.
19771 * m4/sys_wait_h.m4: New file.
19772 * doc/posix-headers/sys_wait.texi: Mention the new module.
19774 2008-10-19 Bruno Haible <bruno@clisp.org>
19776 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19778 2008-10-19 Bruno Haible <bruno@clisp.org>
19780 Assume that waitpid() fills an 'int' status, not a 'union wait'.
19781 * lib/wait-process.c (WAIT_T): Remove type.
19782 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19783 (wait_subprocess): Update.
19785 2008-10-19 Bruno Haible <bruno@clisp.org>
19787 New module 'atoll'.
19788 * modules/atoll: New file.
19789 * lib/stdlib.in.h (atoll): New declaration.
19790 * lib/atoll.c: New file, from glibc with modifications.
19791 * m4/atoll.m4: New file.
19792 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19794 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19795 * doc/posix-functions/atoll.texi: Mention the new module.
19797 2008-10-19 Bruno Haible <bruno@clisp.org>
19799 Add strtoull() declaration to <stdlib.h>.
19800 * lib/stdlib.in.h (strtoull): New declaration.
19801 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19803 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19805 * modules/strtoull (Depends-on): Add stdlib.
19806 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19807 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19810 2008-10-19 Bruno Haible <bruno@clisp.org>
19812 Add strtoll() declaration to <stdlib.h>.
19813 * lib/stdlib.in.h (strtoll): New declaration.
19814 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19816 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19818 * modules/strtoll (Depends-on): Add stdlib.
19819 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19820 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19822 2008-10-19 Bruno Haible <bruno@clisp.org>
19824 * modules/bcopy (Depends-on): Add strings.
19825 (Include): Specify <strings.h>.
19827 2008-10-19 Bruno Haible <bruno@clisp.org>
19829 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19831 2008-10-19 Bruno Haible <bruno@clisp.org>
19833 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19834 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19837 2008-10-19 Bruno Haible <bruno@clisp.org>
19839 * lib/atanl.c: Don't include isnanl.h.
19840 * lib/cosl.c: Likewise.
19841 * lib/ldexpl.c: Likewise.
19842 * lib/logl.c: Likewise.
19843 * lib/sinl.c: Likewise.
19844 * lib/sqrtl.c: Likewise.
19845 * lib/tanl.c: Likewise.
19847 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19848 * lib/isnanf.h: Remove file.
19849 * lib/isnand.h: Remove file.
19850 * lib/isnanl.h: Remove file.
19851 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19852 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19854 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19855 HAVE_ISNANF, don't define it as a C macro.
19856 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19857 HAVE_ISNAND, don't define it as a C macro.
19858 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19859 HAVE_ISNANL, don't define it as a C macro.
19860 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19862 * modules/isnanf (Files): Remove lib/isnanf.h.
19863 (Depends-on): Add math.
19864 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19865 (Include): Specify <math.h> instead of isnanf.h.
19866 * modules/isnand (Files): Remove lib/isnand.h.
19867 (Depends-on): Add math.
19868 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19869 (Include): Specify <math.h> instead of isnand.h.
19870 * modules/isnanl (Files): Remove lib/isnanl.h.
19871 (Depends-on): Add math.
19872 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19873 (Include): Specify <math.h> instead of isnanl.h.
19874 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19876 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19877 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19878 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19879 * NEWS: Mention the change.
19881 2008-10-18 Bruno Haible <bruno@clisp.org>
19883 Add getusershell(), setusershell(), endusershell() declarations to
19885 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19887 * lib/getusershell.c: Include unistd.h.
19888 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19889 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19891 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19892 and HAVE_GETUSERSHELL.
19893 * modules/getusershell (Depends-on): Add unistd, extensions.
19894 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19895 (Include): Specify <unistd.h>.
19896 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19899 2008-10-18 Bruno Haible <bruno@clisp.org>
19901 Add a getloadavg() declaration to <stdlib.h>.
19902 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19903 getloadavg declaration.
19904 (getloadavg): New declaration.
19905 * lib/getloadavg.c: Include <stdlib.h> first.
19906 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19907 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19908 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19909 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19910 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19911 * modules/getloadavg (Depends-on): Add stdlib, extensions.
19912 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19913 (Include): Specify <stdlib.h>.
19914 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19915 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19917 2008-10-18 Bruno Haible <bruno@clisp.org>
19919 * lib/dirchownmod.c: Don't include lchmod.h.
19921 Move the lchmod() declaration to <sys/stat.h>.
19922 * lib/lchmod.h: Remove file.
19923 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19924 (lchmod): New declaration, moved here from lib/lchown.h.
19925 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19926 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19927 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19929 * modules/lchmod (Files): Remove lib/lchmod.h.
19930 (Depends-on): Add sys_stat, extensions.
19931 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19932 (Include): Specify <sys/stat.h> instead of lchmod.h.
19933 * modules/sys_stat (Depends-on): Add link-warning.
19934 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19935 definition of GL_LINK_WARNING.
19936 * NEWS: Mention the change.
19938 2008-10-18 Bruno Haible <bruno@clisp.org>
19940 * lib/fchdir.c: Don't include dirfd.h.
19941 * lib/fts.c: Likewise.
19942 * lib/getcwd.c: Likewise.
19943 * lib/glob.c: Likewise.
19945 Move the dirfd() declaration to <dirent.h>.
19946 * lib/dirfd.h: Remove file.
19947 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19948 (dirfd): New declaration.
19949 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19950 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19951 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19953 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19955 * modules/dirfd (Files): Remove lib/dirfd.h.
19956 (Depends-on): Add dirent, extensions.
19957 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19958 (Include): Specify <dirent.h> instead of dirfd.h.
19959 * modules/dirent (Depends-on): Add link-warning.
19960 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19961 definition of GL_LINK_WARNING.
19962 * NEWS: Mention the change.
19964 2008-10-18 Bruno Haible <bruno@clisp.org>
19966 Move the euidaccess() declaration to <unistd.h>.
19967 * lib/euidaccess.h: Remove file.
19968 * lib/unistd.in.h (euidaccess): New declaration.
19969 * lib/euidaccess.c: Don't include euidaccess.h.
19970 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19971 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19972 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19973 and HAVE_EUIDACCESS.
19974 * modules/euidaccess (Files): Remove lib/euidaccess.h.
19975 (Depends-on): Add unistd.
19976 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19977 (Include): Specify <unistd.h> instead of euidaccess.h.
19978 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19980 * NEWS: Mention the change.
19982 2008-10-18 Bruno Haible <bruno@clisp.org>
19984 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19986 Move the getdomainname() declaration to <unistd.h>.
19987 * lib/getdomainname.h: Remove file.
19988 * lib/unistd.in.h (getdomainname): New declaration.
19989 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19990 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19991 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19992 HAVE_GETDOMAINNAME.
19993 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19994 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19995 * modules/getdomainname (Files): Remove lib/getdomainname.h.
19996 (Depends-on): Add unistd, extensions.
19997 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19998 (Includes): Specify <unistd.h> instead of getdomainname.h.
19999 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20000 HAVE_GETDOMAINNAME.
20001 * NEWS: Mention the change.
20003 2008-10-18 Bruno Haible <bruno@clisp.org>
20005 * modules/dirent: New file.
20006 * m4/dirent_h.m4: New file.
20007 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20008 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20009 * modules/fchdir (Files): Remove lib/dirent.in.h.
20010 (Depends-on): Add dirent.
20011 (Makefile.am): Move rules to modules/dirent.
20012 * doc/posix-headers/dirent.texi: Mention the new module.
20014 2008-10-18 Bruno Haible <bruno@clisp.org>
20016 Avoid -Wunused-parameter warnings in public gnulib header files.
20017 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20019 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20021 2008-10-18 Bruno Haible <bruno@clisp.org>
20023 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20024 * doc/glibc-functions/error.texi: Mention the module 'error'.
20025 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20026 * doc/glibc-functions/getdomainname.texi: Mention the module
20028 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20029 * doc/glibc-functions/getpagesize.texi: Mention the module
20031 * doc/glibc-functions/getusershell.texi: Mention the module
20033 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20034 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20035 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20036 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20037 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20038 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20039 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20040 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20041 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20042 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20043 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20044 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20045 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20046 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20048 2008-10-17 Bruno Haible <bruno@clisp.org>
20050 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20051 HP-UX and IRIX, use -0.0L.
20052 * tests/test-ceill.c (minus_zero): Likewise.
20053 * tests/test-floorl.c (minus_zero): Likewise.
20054 * tests/test-frexpl.c (minus_zero): Likewise.
20055 * tests/test-isnan.c (minus_zerol): Likewise.
20056 * tests/test-isnanl.h (minus_zero): Likewise.
20057 * tests/test-ldexpl.c (minus_zero): Likewise.
20058 * tests/test-roundl.c (minus_zero): Likewise.
20059 * tests/test-signbit.c (minus_zerol): Likewise.
20060 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20061 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20062 * tests/test-truncl.c (minus_zero): Likewise.
20063 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20064 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20065 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20066 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20068 2008-10-17 Bruno Haible <bruno@clisp.org>
20070 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20071 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20072 that it gets activated only for gcc >= 3.0.
20073 * lib/dirent.in.h: Likewise.
20074 * lib/errno.in.h: Likewise.
20075 * lib/fcntl.in.h: Likewise.
20076 * lib/float.in.h: Likewise.
20077 * lib/iconv.in.h: Likewise.
20078 * lib/inttypes.in.h: Likewise.
20079 * lib/locale.in.h: Likewise.
20080 * lib/math.in.h: Likewise.
20081 * lib/netdb.in.h: Likewise.
20082 * lib/netinet_in.in.h: Likewise.
20083 * lib/search.in.h: Likewise.
20084 * lib/signal.in.h: Likewise.
20085 * lib/spawn.in.h: Likewise.
20086 * lib/stdarg.in.h: Likewise.
20087 * lib/stdint.in.h: Likewise.
20088 * lib/stdio.in.h: Likewise.
20089 * lib/stdlib.in.h: Likewise.
20090 * lib/string.in.h: Likewise.
20091 * lib/strings.in.h: Likewise.
20092 * lib/sys_file.in.h: Likewise.
20093 * lib/sys_ioctl.in.h: Likewise.
20094 * lib/sys_select.in.h: Likewise.
20095 * lib/sys_socket.in.h: Likewise.
20096 * lib/sys_stat.in.h: Likewise.
20097 * lib/sys_time.in.h: Likewise.
20098 * lib/sysexits.in.h: Likewise.
20099 * lib/time.in.h: Likewise.
20100 * lib/unistd.in.h: Likewise.
20101 * lib/wchar.in.h: Likewise.
20102 * lib/wctype.in.h: Likewise.
20103 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20105 2008-10-17 Jim Meyering <meyering@redhat.com>
20107 ignore-value: don't depend on inline module
20108 * modules/ignore-value (Depends-on): Remove 'inline'.
20109 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20110 Suggestion from Bruno Haible.
20112 2008-10-17 Bruno Haible <bruno@clisp.org>
20114 New implementation of condition variables for Win32.
20115 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20116 (gl_linked_waitqueue_t): New type.
20117 (gl_cond_t): Use it.
20118 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20119 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20120 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20121 (glthread_cond_init_func, glthread_cond_wait_func,
20122 glthread_cond_timedwait_func, glthread_cond_signal_func,
20123 glthread_cond_broadcast_func, glthread_cond_destroy_func):
20124 Reimplemented on the basis of gl_linked_waitqueue_t.
20125 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20127 (gl_rwlock_t): Update.
20128 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20130 2008-10-17 Simon Josefsson <simon@josefsson.org>
20132 * modules/recvfrom (Depends-on): Add dependency on getpeername.
20133 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20135 2008-10-17 Jim Meyering <meyering@redhat.com>
20137 ignore-value: new module
20138 * modules/ignore-value: New file.
20139 * lib/ignore-value.h: New file.
20140 * MODULES.html.sh (Compiler warning management): New section,
20141 just for this module. More to come.
20143 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
20145 open-safer.c: avoid 'signed and unsigned in conditional...' warning
20146 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20147 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
20149 2008-10-16 Jim Meyering <meyering@redhat.com>
20151 openat-die.c: avoid 'no previous prototype' warning
20152 * lib/openat-die.c: Include "openat.h".
20153 Reported by Reuben Thomas <rrt@sc3d.org>.
20155 2008-10-16 Simon Josefsson <simon@josefsson.org>
20157 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20158 * lib/netdb.in.h: Fix typo.
20159 Reported by Bruno Haible <bruno@clisp.org>
20161 * lib/netdb.in.h: Include sys/socket.h for platforms without
20162 netdb.h, to get structures like hostent on MinGW.
20163 * modules/netdb (Depends-on): Add sys_socket.
20165 2008-10-15 Simon Josefsson <simon@josefsson.org>
20167 * modules/netdb, modules/netdb-tests: New file.
20168 * m4/netdb_h.m4: New file.
20169 * lib/netdb.in.h: Add, currently just an empty file pending
20171 * tests/test-netdb.c: New file.
20172 * doc/posix-headers/netdb.texi: Mention that we replace it if
20174 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20177 2008-10-15 Simon Josefsson <simon@josefsson.org>
20179 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20182 2008-10-13 Bruno Haible <bruno@clisp.org>
20184 * lib/glthread/cond.c (glthread_cond_wait_func,
20185 glthread_cond_timedwait_func): Add a comment.
20187 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
20189 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20190 * tests/test-select.c: Likewise,
20192 2008-10-13 Bruno Haible <bruno@clisp.org>
20194 * lib/glthread/cond.c (glthread_cond_wait_func,
20195 glthread_cond_timedwait_func): Fix variable name.
20196 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20198 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
20200 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20201 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20202 struct sockaddr.sa_len.
20203 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20205 2008-10-13 Simon Josefsson <simon@josefsson.org>
20207 * build-aux/pmccabe2html: Add css and css_url parameters.
20209 2008-10-12 Bruno Haible <bruno@clisp.org>
20211 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20213 Reported by Rainer Tammer <tammer@tammer.net>.
20215 2008-10-12 Bruno Haible <bruno@clisp.org>
20217 Use msvcrt aware primitives for creation/termination of Win32 threads.
20218 * lib/glthread/thread.c: Include <process.h>.
20219 (glthread_create_func): Use _beginthreadex instead of CreateThread.
20220 (wrapper_func): Update signature.
20221 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20223 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
20224 Bruno Haible <bruno@clisp.org>
20226 Provide a Win32 implementation of the 'cond' module.
20227 * lib/glthread/cond.h [USE_WIN32]: New implementation.
20228 * lib/glthread/cond.c (glthread_cond_init_func,
20229 glthread_cond_wait_func, glthread_cond_timedwait_func,
20230 glthread_cond_signal_func, glthread_cond_broadcast_func,
20231 glthread_cond_destroy_func) [USE_WIN32]: New functions.
20232 * modules/cond (Dependencies): Add gettimeofday.
20234 2008-10-11 Bruno Haible <bruno@clisp.org>
20236 Make sleep work on older versions of mingw.
20237 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20238 only whether it exists.
20239 * doc/posix-functions/sleep.texi: Mention the problem with older
20242 2008-10-11 Bruno Haible <bruno@clisp.org>
20244 New module 'shutdown'.
20245 * modules/shutdown: New file.
20246 * lib/sys_socket.in.h (shutdown): New declaration.
20247 * lib/winsock.c (shutdown): New function.
20248 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20250 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20251 * doc/posix-functions/shutdown.texi: Document the new module.
20253 2008-10-11 Jim Meyering <meyering@redhat.com>
20255 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20257 2008-10-11 Bruno Haible <bruno@clisp.org>
20259 New module 'fclose'.
20260 * modules/fclose: New file.
20261 * lib/stdio.in.h (fclose): New declaration.
20262 * lib/fclose.c: New file.
20263 * m4/fclose.m4: New file.
20264 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20266 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20267 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20269 * modules/close (Depends-on): fclose.
20270 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20272 2008-10-11 Bruno Haible <bruno@clisp.org>
20274 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20275 set errno and don't call _close.
20277 2008-10-10 Bruno Haible <bruno@clisp.org>
20279 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20280 ACL, not afterwards. Fixes test failure on Cygwin.
20282 2008-10-09 Ben Pfaff <blp@gnu.org>
20284 * build-aux/announce-gen: Fix gnulib version related part of usage
20285 message. Die with a useful error message if no tarballs are
20288 2008-10-10 Jim Meyering <meyering@redhat.com>
20290 bootstrap: use git's --depth=N option only if it's supported
20291 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20292 recognize the --depth option. Reported by Pádraig Brady.
20294 2008-10-09 Bruno Haible <bruno@clisp.org>
20296 New module 'ioctl'.
20297 * modules/ioctl: New file.
20298 * lib/sys_socket.in.h (ioctl): Remove declaration.
20299 * lib/winsock.c: Include <sys/ioctl.h>.
20300 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20301 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20302 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20303 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20304 * doc/posix-functions/ioctl.texi: Mention the new module.
20306 2008-10-09 Bruno Haible <bruno@clisp.org>
20308 New module 'sys_ioctl'.
20309 * lib/sys_ioctl.in.h: New file.
20310 * m4/sys_ioctl_h.m4: New file.
20311 * modules/sys_ioctl: New file.
20312 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20314 2008-10-09 Bruno Haible <bruno@clisp.org>
20316 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20317 * lib/winsock.c: Include <stdarg.h>.
20318 (rpl_ioctl): Change to second argument 'int' and then varargs.
20320 2008-10-09 Bruno Haible <bruno@clisp.org>
20322 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20323 when the sys_socket module is present and the system has <winsock2.h>.
20325 2008-10-09 Bruno Haible <bruno@clisp.org>
20327 * doc/posix-functions/close.texi: Mention module 'close' instead of
20328 module 'sys_socket'.
20330 2008-10-09 Bruno Haible <bruno@clisp.org>
20332 * doc/glibc-headers/sys_ioctl.texi: New file.
20333 * doc/gnulib.texi: Include it.
20335 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20336 Bruno Haible <bruno@clisp.org>
20338 Combine the two replacements of 'close'.
20339 * lib/sys_socket.in.h (close): Define to a reminder to include
20341 (_gl_close_fd_maybe_socket): New declaration.
20342 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20343 * lib/winsock.c (close): Remove undefinition.
20344 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20345 needed for the gnulib module 'close'.
20346 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20347 define to an error symbol or to a warning, if suitable.
20348 * lib/close.c: Include <sys/socket.h>.
20349 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20350 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20351 UNISTD_H_HAVE_WINSOCK2_H.
20352 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20353 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20354 UNISTD_H_HAVE_WINSOCK2_H.
20355 * modules/sys_socket (Files): Add m4/unistd_h.m4.
20356 (configure.ac): Set a module indicator.
20357 (Makefile.am): Substitute GNULIB_CLOSE.
20358 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20359 * modules/poll-tests (Depends-on): Add close.
20360 * modules/select-tests (Depends-on): Likewise.
20362 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20363 Bruno Haible <bruno@clisp.org>
20365 New module 'close'.
20366 * modules/close: New file.
20367 * lib/unistd.in.h (close): Move declaration out of the
20368 FCHDIR_REPLACEMENT scope.
20369 (_gl_unregister_fd): New declaration.
20370 * lib/close.c: New file.
20371 * lib/fchdir.c (rpl_close): Remove function.
20372 * m4/close.m4: New file.
20373 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20375 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20377 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20379 * modules/fchdir (Depends-on): Add close.
20381 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20382 Bruno Haible <bruno@clisp.org>
20384 * lib/fcntl.in.h (open): Simplify conditionals.
20385 (_gl_register_fd): New declaration.
20386 * lib/fchdir.c (rpl_open): Remove function.
20387 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20389 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20390 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20393 2008-10-09 Jim Meyering <meyering@redhat.com>
20395 GNUmakefile: use the more name-space-friendly "_version"
20396 * top/GNUmakefile (_dummy): Update.
20397 (_version): Rename from "version".
20399 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20400 Bruno Haible <bruno@clisp.org>
20402 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20404 (_gl_register_fd): New function, extracted from rpl_open.
20405 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20406 (rpl_open, rpl_opendir): Use _gl_register_fd.
20408 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20410 Fix organization of 'open' replacement.
20411 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20412 (gl_FUNC_OPEN): Use it.
20413 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20415 2008-10-08 Bruno Haible <bruno@clisp.org>
20417 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20419 2008-10-08 Simon Josefsson <simon@josefsson.org>
20421 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
20422 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20425 2008-10-08 Eric Blake <ebb9@byu.net>
20427 GNUmakefile: add 'make version' target
20428 * top/GNUmakefile (_curr-ver): Split version update rules...
20429 (version): ...into a target.
20431 2008-10-07 Bruno Haible <bruno@clisp.org>
20433 Use a more portable replacement expression for -0.0L.
20434 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20435 instead of -0.0L. Fix m4 quotation.
20437 * tests/test-signbit.c: Include <float.h>.
20438 (minus_zero): New variable.
20439 (test_signbitl): Use minus_zero instead of -zero.
20440 * modules/signbit-tests (Depends-on): Add float.
20442 * tests/test-ceill.c: Include <float.h>.
20443 (zero): Remove variable.
20444 (minus_zero): New variable.
20445 (main): Use minus_zero instead of -zero.
20446 * modules/ceill-tests (Depends-on): Add float.
20448 * tests/test-floorl.c: Include <float.h>.
20449 (zero): Remove variable.
20450 (minus_zero): New variable.
20451 (main): Use minus_zero instead of -zero.
20452 * modules/floorl-tests (Depends-on): Add float.
20454 * tests/test-roundl.c: Include <float.h>.
20455 (zero): Remove variable.
20456 (minus_zero): New variable.
20457 (main): Use minus_zero instead of -zero.
20458 * modules/roundl-tests (Depends-on): Add float.
20460 * tests/test-truncl.c: Include <float.h>.
20461 (zero): Remove variable.
20462 (minus_zero): New variable.
20463 (main): Use minus_zero instead of -zero.
20464 * modules/truncl-tests (Depends-on): Add float.
20466 * tests/test-frexpl.c (zero): Remove variable.
20467 (minus_zero): New variable.
20468 (main): Use minus_zero instead of -zero.
20469 * modules/frexpl-tests (Depends-on): Add float.
20471 * tests/test-isnan.c (zerol): Remove variable.
20472 (minus_zerol): New variable.
20473 (test_long_double): Use minus_zerol instead of -zerol.
20474 * modules/isnan-tests (Depends-on): Add float.
20476 * tests/test-isnanl.h (zero): Remove variable.
20477 (minus_zero): New variable.
20478 (main): Use minus_zero instead of -zero.
20479 * modules/isnanl-nolibm-tests (Depends-on): Add float.
20480 * modules/isnanl-tests (Depends-on): Add float.
20482 * tests/test-ldexpl.c (zero): Remove variable.
20483 (minus_zero): New variable.
20484 (main): Use minus_zero instead of -zero.
20485 * modules/ldexpl-tests (Depends-on): Add float.
20487 * tests/test-snprintf-posix.h (zerol): Remove variable.
20488 (minus_zerol): New variable.
20489 (test_function): Use minus_zerol instead of -zerol.
20490 * modules/snprintf-posix-tests (Depends-on): Add float.
20491 * modules/vsnprintf-posix-tests (Depends-on): Add float.
20493 * tests/test-sprintf-posix.h (zerol): Remove variable.
20494 (minus_zerol): New variable.
20495 (test_function): Use minus_zerol instead of -zerol.
20496 * modules/sprintf-posix-tests (Depends-on): Add float.
20497 * modules/vsprintf-posix-tests (Depends-on): Add float.
20499 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20500 (minus_zerol): New variable.
20501 (test_function): Use minus_zerol instead of -zerol.
20502 * modules/vasnprintf-posix-tests (Depends-on): Add float.
20504 * tests/test-vasprintf-posix.c (zerol): Remove variable.
20505 (minus_zerol): New variable.
20506 (test_function): Use minus_zerol instead of -zerol.
20507 * modules/vasprintf-posix-tests (Depends-on): Add float.
20509 2008-10-07 Simon Josefsson <simon@josefsson.org>
20511 * MODULES.html.sh (Support for building documentation): Mention
20512 pmccabe2html. Sort entries.
20514 Add pmccabe2html module, from gnupdf.
20515 * build-aux/pmccabe.css: New file.
20516 * build-aux/pmccabe2html: New file.
20517 * m4/pmccabe2html.m4: New file.
20518 * modules/pmccabe2html: New file.
20520 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
20523 * MODULES.html.sh: Add to list of modules.
20524 * lib/flock.c: flock implementation for Windows and Unix systems
20526 * doc/glibc-functions/flock.texi: Update documentation.
20527 * lib/sys_file.in.h: <sys/file.h> header file.
20528 * m4/flock.m4: M4 macros.
20529 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20530 * modules/flock: flock module.
20531 * modules/flock-tests: flock tests module.
20532 * modules/sys_file: sys/file.h module.
20533 * tests/test-flock.c: test suite for flock.
20535 2008-10-06 Jim Meyering <meyering@redhat.com>
20537 bootstrap: check for LT_INIT more portably still ;-)
20538 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20539 Spotted by Bruno Haible.
20541 2008-10-06 Eric Blake <ebb9@byu.net>
20543 test-signbit: avoid tripping Irix cc bug on -0.0L
20544 * tests/test-signbit.c (minus_zerol): Delete, and replace with
20545 '-zerol'. This may break on HP-UX/hppa, but at least makes the
20546 entire testsuite consistent and avoids an Irix 6.2 bug.
20548 2008-10-05 Bruno Haible <bruno@clisp.org>
20549 Jim Meyering <jim@meyering.net>
20551 Add an option for ignoring EPIPE during close_stdout.
20552 * lib/closeout.h: Include <stdbool.h>.
20553 (close_stdout_set_ignore_EPIPE): New declaration.
20554 * lib/closeout.c: Include <stdbool.h>.
20555 (ignore_EPIPE): New variable.
20556 (close_stdout_set_ignore_EPIPE): New function.
20557 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20558 * lib/close-stream.c (close_stream): Mention the possible EPIPE
20560 * modules/closeout (Depends-on): Add stdbool.
20562 2008-10-05 Bruno Haible <bruno@clisp.org>
20564 * modules/accept: New file.
20565 * modules/bind: New file.
20566 * modules/connect: New file.
20567 * modules/getpeername: New file.
20568 * modules/getsockname: New file.
20569 * modules/getsockopt: New file.
20570 * modules/listen: New file.
20571 * modules/recv: New file.
20572 * modules/recvfrom: New file.
20573 * modules/send: New file.
20574 * modules/sendto: New file.
20575 * modules/setsockopt: New file.
20576 * modules/socket: New file.
20577 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20578 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20579 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20580 the particular module is requested. Add a link warning when the
20581 particular module is not requested.
20582 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20583 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20584 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20585 the particular module is requested.
20586 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20587 gl_SYS_SOCKET_H_DEFAULTS): New macros.
20588 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20589 * modules/sys_socket (Depends-on): Add link-warning.
20590 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20591 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20592 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20593 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20595 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20596 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20597 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20598 * doc/posix-functions/getpeername.texi: Mention the new module
20600 * doc/posix-functions/getsockname.texi: Mention the new module
20602 * doc/posix-functions/getsockopt.texi: Mention the new module
20604 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20605 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20606 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20607 * doc/posix-functions/send.texi: Mention the new module 'send'.
20608 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20609 * doc/posix-functions/setsockopt.texi: Mention the new module
20611 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20612 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20613 listen, connect, accept.
20614 * modules/select-tests (Depends-on): Likewise.
20616 2008-10-05 Bruno Haible <bruno@clisp.org>
20618 * lib/winsock.c (strerror): Remove unused #undef.
20619 (rpl_close): Remove unused local variable.
20621 * modules/sys_socket (Depends-on); Add errno.
20623 2008-10-05 Bruno Haible <bruno@clisp.org>
20625 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20626 (select): Add a link warning when the 'select' module is not used.
20627 * modules/sys_select (Depends-on): Add link-warning.
20628 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20629 Suggested by Paolo Bonzini.
20631 2008-10-05 Jim Meyering <meyering@redhat.com>
20633 bootstrap: check for LT_INIT more portably
20634 * build-aux/bootstrap: Avoid using grep -E, since it's not
20635 portable enough. Suggestion from Bruno Haible.
20637 2008-10-05 Bruno Haible <bruno@clisp.org>
20639 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20640 as being fixed by gnulib.
20642 2008-10-05 Bruno Haible <bruno@clisp.org>
20644 * modules/select-tests: New file, mostly copied from
20645 modules/sys_select-tests.
20646 * tests/test-select.c: New file, mostly copied from
20647 tests/test-sys_select.c.
20648 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20649 * modules/sys_select-tests (Depends-on): Remove all dependencies.
20650 (Makefile.am): Remove test_sys_select_LDADD.
20652 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20653 to an undefined symbol, for an error message.
20654 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20655 (gl_SYS_SELECT_H_DEFAULTS): New macro.
20656 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20657 winsock-select.c here.
20658 * modules/sys_select (Files): Remove lib/winsock-select.c.
20659 (Depends-on): Remove alloca.
20660 (Makefile.am): Substitute GNULIB_SELECT.
20661 * modules/select: New file.
20662 * doc/posix-functions/select.texi: Update.
20664 2008-10-05 Bruno Haible <bruno@clisp.org>
20666 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20667 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20668 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20669 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20671 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20672 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20674 2008-10-05 Bruno Haible <bruno@clisp.org>
20676 * modules/getdtablesize-tests: New file.
20677 * tests/test-getdtablesize.c: New file.
20679 New module 'getdtablesize'.
20680 * lib/unistd.in.h (getdtablesize): New declaration.
20681 * lib/getdtablesize.c: New file.
20682 * m4/getdtablesize.m4: New file.
20683 * modules/getdtablesize: New file.
20684 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20685 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20686 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20687 HAVE_GETDTABLESIZE.
20688 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20690 2008-10-05 Bruno Haible <bruno@clisp.org>
20692 * modules/sched (Makefile.am): Fix typo.
20693 Reported by Simon Josefsson.
20695 2008-10-05 Jim Meyering <meyering@redhat.com>
20697 bootstrap: check for LT_INIT, too
20698 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20699 are deprecated. Suggestion from Ralf Wildenhues.
20701 2008-10-05 Bruno Haible <bruno@clisp.org>
20703 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20704 overriding them by ours.
20705 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20707 2008-10-05 Jim Meyering <meyering@redhat.com>
20709 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20710 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20711 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
20713 2008-10-04 Bruno Haible <bruno@clisp.org>
20715 * modules/dup2 (License): Change to LGPLv2+.
20716 * modules/sleep (License): Likewise.
20717 * modules/perror (License): Likewise.
20718 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20720 * modules/signal (License): Likewise.
20721 * modules/sigprocmask (License): Likewise.
20722 * modules/raise (License): Change to LGPLv2+, with approval by Jim
20725 2008-10-04 Bruno Haible <bruno@clisp.org>
20727 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20728 Reported by Rainer Tammer <tammer@tammer.net>.
20730 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
20731 Bruno Haible <bruno@clisp.org>
20733 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20734 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20735 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20737 2008-10-03 Kamil Dudka <kdudka@redhat.com>
20739 filevercmp: new module
20740 * lib/filevercmp.h: New function filevercmp comparing version strings.
20741 * lib/filevercmp.c: Implementation of filevercmp function.
20742 * modules/filevercmp: Module metadata.
20743 * tests/test-filevercmp.c: Unit test for new module.
20744 * modules/filevercmp-tests: Unit test metadata.
20745 * MODULES.html.sh: Add filevercmp module.
20747 2008-10-03 Bruno Haible <bruno@clisp.org>
20749 * lib/c-ctype.h: Add comment.
20750 Reported by Jim Meyering.
20752 2008-10-02 Bruno Haible <bruno@clisp.org>
20754 * modules/posix_spawn-internal (Depends-on): Add 'open'.
20756 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20758 * build-aux/bootstrap: Allow renaming bootstrap, and change the
20759 name of bootstrap.conf accordingly.
20761 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20763 * build-aux/bootstrap: Install git-merge-changelog configuration
20764 items into .gitconfig if needed.
20766 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20768 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20769 git repository, and initialize/update it accordingly.
20771 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
20773 * modules/fsync-tests: New file.
20774 * tests/test-fsync.c: New file.
20776 New module 'fsync'.
20777 * lib/fsync.c: New file.
20778 * m4/fsync.m4: New file.
20779 * modules/fsync: New file.
20780 * lib/unistd.in.h (fsync): New declaration.
20781 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20782 GNULIB_FSYNC and HAVE_FSYNC.
20783 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20784 * MODULES.html.sh (posix_functions): Add fsync.
20785 * doc/posix-functions/fsync.texi: Mention the new module.
20787 2008-10-02 Jim Meyering <meyering@redhat.com>
20789 fts.c: sync with similar code from coreutils' remove.c
20790 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20791 Guard also with "#if defined __linux__", since for now at least,
20792 this code is Linux-kernel-specific.
20794 2008-10-02 Jim Meyering <meyering@redhat.com>
20797 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20798 Include <sys/vfs.h>, not <sys/statfs.h>.
20800 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20801 Include <sys/vfs.h>, not <sys/statfs.h>.
20803 2008-10-01 Bruno Haible <bruno@clisp.org>
20805 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20806 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20807 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20808 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20809 * doc/posix-functions/posix_spawnp.texi: Likewise.
20810 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20811 whether posix_spawn actually works.
20812 * m4/pipe.m4 (gl_PIPE): Likewise.
20813 * modules/execute (Files): Add m4/posix_spawn.m4.
20814 * modules/pipe (Files): Add m4/posix_spawn.m4.
20815 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20817 2008-10-01 Jim Meyering <meyering@redhat.com>
20819 remove trailing spaces
20821 * lib/poll.c (poll): Likewise.
20822 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20823 * lib/winsock.c (rpl_close): Likewise.
20824 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20825 * modules/yield: Likewise.
20826 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20827 * tests/test-sys_select.c (connect_to_socket): Likewise.
20829 fts.c: adjust a new interface to be more generally useful
20830 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20831 (fts_build): Adjust caller.
20833 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20835 * modules/cond-tests: New file.
20836 * tests/test-cond.c: New file.
20838 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20839 Bruno Haible <bruno@clisp.org>
20841 * modules/cond (Dependencies): Add errno, time.
20842 * lib/glthread/cond.h: Include <time.h>.
20843 (gl_cond_define, gl_cond_define_initialized): Use the same definition
20846 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20847 Bruno Haible <bruno@clisp.org>
20849 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20851 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20852 Bruno Haible <bruno@clisp.org>
20854 * modules/tls-tests (Depends-on): Add thread, yield.
20855 (configure.ac): Remove all checks.
20856 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20857 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20858 gl_thread_self): Remove definitions. Include glthread/thread.h and
20859 glthread/yield.h instead.
20860 (test_tls): Pass an additional NULL argument to gl_thread_join.
20862 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20863 Bruno Haible <bruno@clisp.org>
20865 * modules/lock-tests (Depends-on): Add thread, yield.
20866 (configure.ac): Remove all checks.
20867 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20868 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20869 gl_thread_self): Remove definitions. Include glthread/thread.h and
20870 glthread/yield.h instead.
20871 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20872 additional NULL argument to gl_thread_join.
20874 2008-09-30 Bruno Haible <bruno@clisp.org>
20876 Fix the Win32 implementation of the 'thread' module.
20877 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20879 (gl_thread_self): Invoke gl_thread_self_func.
20880 (gl_thread_self_func): New declaration.
20881 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20882 (do_init_self_key, init_self_key): New functions.
20883 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20884 Remove some fields.
20885 (running_threads, running_lock): Remove variables.
20886 (get_current_thread_handle): New function.
20887 (gl_thread_self_func, wrapper_func, glthread_create_func,
20888 glthread_join_func, gl_thread_exit_func): Largely rewritten and
20891 2008-09-30 Bruno Haible <bruno@clisp.org>
20893 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20896 2008-09-30 Jim Meyering <meyering@redhat.com>
20898 fts.m4: correct the test for statfs.f_type
20899 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20900 when checking for statfs.f_type.
20902 2008-09-15 Simon Josefsson <simon@josefsson.org>
20904 tests: avoid some compiler warnings
20905 * tests/test-memchr.c (main): Pass NULL indirectly.
20906 * tests/test-getdate.c (main): Remove unused variable 'ret'.
20908 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
20910 getdate.y: disallow countable dayshifts like "4 yesterday ago"
20911 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20912 exactly specified dayshifts.
20913 (dayshift): New rule.
20914 (rel): Add dayshift.
20915 (relative_time_table) [tomorrow, yesterday, today, now]:
20916 Use tDAY_SHIFT in place of tDAY_UNIT.
20917 * tests/test-getdate.c: Add tests for now-disallowed countable
20918 dayshifts, e.g., "4 yesterday ago".
20920 2008-09-29 Bruno Haible <bruno@clisp.org>
20922 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20923 * tests/test-posix_spawn1.in.sh: Renamed from
20924 tests/test-posix_spawn.in.sh.
20925 * tests/test-posix_spawn2.c: New file.
20926 * tests/test-posix_spawn2.in.sh: New file.
20927 * modules/posix_spawnp-tests (Files): Update.
20928 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20930 2008-09-29 Bruno Haible <bruno@clisp.org>
20932 Propagate effects of putenv/setenv/unsetenv to child processes.
20933 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20934 * lib/pipe.c (create_pipe): Likewise.
20936 2008-09-29 Bruno Haible <bruno@clisp.org>
20938 Enable use of shell scripts as executables in mingw.
20939 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20940 run the program as a shell script.
20941 * lib/pipe.c (create_pipe): Likewise.
20942 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20945 2008-09-29 Eric Blake <ebb9@byu.net>
20947 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20949 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
20951 * doc/posix-functions/accept.texi: Update mingw problems.
20952 * doc/posix-functions/bind.texi: Update mingw problems.
20953 * doc/posix-functions/close.texi: Update mingw problems.
20954 * doc/posix-functions/connect.texi: Update mingw problems.
20955 * doc/posix-functions/getpeername.texi: Update mingw problems.
20956 * doc/posix-functions/getsockname.texi: Update mingw problems.
20957 * doc/posix-functions/getsockopt.texi: Update mingw problems.
20958 * doc/posix-functions/ioctl.texi: Update mingw problems.
20959 * doc/posix-functions/listen.texi: Update mingw problems.
20960 * doc/posix-functions/recv.texi: Update mingw problems.
20961 * doc/posix-functions/recvfrom.texi: Update mingw problems.
20962 * doc/posix-functions/select.texi: Update mingw problems.
20963 * doc/posix-functions/send.texi: Update mingw problems.
20964 * doc/posix-functions/sendto.texi: Update mingw problems.
20965 * doc/posix-functions/setsockopt.texi: Update mingw problems.
20966 * doc/posix-functions/socket.texi: Update mingw problems.
20968 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
20969 Bruno Haible <bruno@clisp.org>
20971 * lib/sys_select.in.h: Include sys/time.h.
20972 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20973 * modules/sys_select: Depend on sys_time.
20974 * tests/test-sys_select.c: Test that sys/select.h defines struct
20977 2008-09-29 Bruno Haible <bruno@clisp.org>
20979 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20980 * lib/sys_select.in.h: Likewise.
20982 2008-09-29 Bruno Haible <bruno@clisp.org>
20984 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20986 2008-09-29 Bruno Haible <bruno@clisp.org>
20988 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20989 Set LIBSOCKET instead of augmenting LIBS.
20990 * modules/sockets (Link): New section.
20991 * modules/sockets-tests (test_sockets_LDADD): New variable.
20992 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20993 * modules/poll-tests (test_poll_LDADD): New variable.
20994 * NEWS: Document the change.
20996 2008-09-29 Bruno Haible <bruno@clisp.org>
20998 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20999 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21000 ARPA_INET_H directly.
21001 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21003 2008-09-28 Bruno Haible <bruno@clisp.org>
21005 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21006 from gl_HEADER_SYS_SOCKET.
21007 (gl_HEADER_SYS_SOCKET): Invoke it.
21008 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21010 2008-09-28 Bruno Haible <bruno@clisp.org>
21012 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21013 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21014 Needed on OSF/1 4.0.
21016 2008-09-28 Bruno Haible <bruno@clisp.org>
21018 Override open more carefully.
21019 * lib/open.c (orig_open): New function.
21020 (rpl_open): Use orig_open instead of open.
21021 * lib/fcntl.in.h: Add special invocation convention.
21022 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21023 (gl_FUNC_OPEN): Invoke it.
21025 Override freopen more carefully.
21026 * lib/freopen.c (orig_freopen): New function.
21027 (rpl_freopen): Use orig_freopen instead of freopen.
21028 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21029 (gl_FUNC_FREOPEN): Invoke it.
21031 Override fopen more carefully.
21032 * lib/fopen.c (orig_fopen): New function.
21033 (rpl_fopen): Use orig_fopen instead of fopen.
21034 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21035 (gl_FUNC_FOPEN): Invoke it.
21036 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21038 2008-09-28 Bruno Haible <bruno@clisp.org>
21040 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21043 2008-09-28 Bruno Haible <bruno@clisp.org>
21045 * tests/test-sigaction.c (handler, main): Disable the check whether
21046 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21047 glibc systems with LinuxThreads.
21049 2008-09-28 Bruno Haible <bruno@clisp.org>
21051 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21053 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21055 * lib/fcntl.in.h (open): Likewise.
21056 Reported by Rainer Tammer <tammer@tammer.net>.
21058 2008-09-28 Bruno Haible <bruno@clisp.org>
21060 * modules/posix_spawnp-tests: New file.
21061 * tests/test-posix_spawn.c: New file.
21062 * tests/test-posix_spawn.in.sh: New file.
21064 New module 'posix_spawnp'.
21065 * modules/posix_spawnp: New file.
21066 * lib/spawnp.c: New file, from GNU libc with modifications.
21067 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21069 New module 'posix_spawn'.
21070 * modules/posix_spawn: New file.
21071 * lib/spawn.c: New file, from GNU libc with modifications.
21072 * doc/posix-functions/posix_spawn.texi: Mention the new module.
21074 New module 'posix_spawnattr_destroy'.
21075 * modules/posix_spawnattr_destroy: New file.
21076 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21077 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21080 New module 'posix_spawnattr_setsigmask'.
21081 * modules/posix_spawnattr_setsigmask: New file.
21082 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21084 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21087 New module 'posix_spawnattr_getsigmask'.
21088 * modules/posix_spawnattr_getsigmask: New file.
21089 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21091 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21094 New module 'posix_spawnattr_setsigdefault'.
21095 * modules/posix_spawnattr_setsigdefault: New file.
21096 * lib/spawnattr_setdefault.c: New file, from GNU libc with
21098 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21101 New module 'posix_spawnattr_getsigdefault'.
21102 * modules/posix_spawnattr_getsigdefault: New file.
21103 * lib/spawnattr_getdefault.c: New file, from GNU libc with
21105 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21108 New module 'posix_spawnattr_setschedpolicy'.
21109 * modules/posix_spawnattr_setschedpolicy: New file.
21110 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21112 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21115 New module 'posix_spawnattr_getschedpolicy'.
21116 * modules/posix_spawnattr_getschedpolicy: New file.
21117 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21119 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21122 New module 'posix_spawnattr_setschedparam'.
21123 * modules/posix_spawnattr_setschedparam: New file.
21124 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21126 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21129 New module 'posix_spawnattr_getschedparam'.
21130 * modules/posix_spawnattr_getschedparam: New file.
21131 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21133 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21136 New module 'posix_spawnattr_setpgroup'.
21137 * modules/posix_spawnattr_setpgroup: New file.
21138 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21140 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21143 New module 'posix_spawnattr_getpgroup'.
21144 * modules/posix_spawnattr_getpgroup: New file.
21145 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21147 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21150 New module 'posix_spawnattr_setflags'.
21151 * modules/posix_spawnattr_setflags: New file.
21152 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21153 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21156 New module 'posix_spawnattr_getflags'.
21157 * modules/posix_spawnattr_getflags: New file.
21158 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21159 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21162 New module 'posix_spawnattr_init'.
21163 * modules/posix_spawnattr_init: New file.
21164 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21165 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21168 New module 'posix_spawn_file_actions_destroy'.
21169 * modules/posix_spawn_file_actions_destroy: New file.
21170 * lib/spawn_faction_destroy.c: New file, from GNU libc with
21172 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21175 New module 'posix_spawn_file_actions_addopen'.
21176 * modules/posix_spawn_file_actions_addopen: New file.
21177 * lib/spawn_faction_addopen.c: New file, from GNU libc with
21179 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21182 New module 'posix_spawn_file_actions_adddup2'.
21183 * modules/posix_spawn_file_actions_adddup2: New file.
21184 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21186 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21189 New module 'posix_spawn_file_actions_addclose'.
21190 * modules/posix_spawn_file_actions_addclose: New file.
21191 * lib/spawn_faction_addclose.c: New file, from GNU libc with
21193 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21196 New module 'posix_spawn_file_actions_init'.
21197 * modules/posix_spawn_file_actions_init: New file.
21198 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21199 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21202 New module 'posix_spawn-internal'.
21203 * modules/posix_spawn-internal: New file.
21204 * lib/spawn_int.h: New file, from GNU libc with modifications.
21205 * lib/spawni.c: New file, from GNU libc with modifications.
21206 * m4/posix_spawn.m4: New file.
21208 New module 'spawn'.
21209 * modules/spawn: New file.
21210 * lib/spawn.in.h: New file, from GNU libc with modifications.
21211 * m4/spawn_h.m4: New file.
21212 * doc/posix-headers/spawn.texi: Mention the new module.
21214 2008-09-28 Bruno Haible <bruno@clisp.org>
21216 * modules/sched-tests: New file.
21217 * tests/test-sched.c: New file.
21219 New module 'sched'.
21220 * modules/sched: New file.
21221 * lib/sched.in.h: New file.
21222 * m4/sched_h.m4: New file.
21223 * doc/posix-headers/sched.texi: Mention the new module.
21225 2008-09-27 Eric Blake <ebb9@byu.net>
21227 Fix previous patch, and tweak references to $0.
21228 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21229 (func_version, func_gnulib_dir): Don't call this program
21231 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21232 with using $0 in function.
21233 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21234 (func_fatal_error): Reuse the name the user invoked us with.
21236 2008-09-27 Bruno Haible <bruno@clisp.org>
21238 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21239 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21240 (gl_ICONV_H): Not here.
21241 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21242 instead of assigning ICONV_H directly.
21244 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21245 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21248 2008-09-27 Bruno Haible <bruno@clisp.org>
21250 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21251 * modules/arpa_inet (Depends-on): Add link-warning.
21252 (Makefile.am): Insert the definition of GL_LINK-WARNING.
21253 * modules/unistd (Makefile.am): Likewise.
21255 2008-09-26 Bruno Haible <bruno@clisp.org>
21257 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21259 (func_version): Essentially copied from gnulib-tool.
21260 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21261 func_readlink): Copied from gnulib-tool.
21263 2008-09-26 Bruno Haible <bruno@clisp.org>
21265 * gnulib-tool (func_version): Change directory to $gnulib_dir before
21266 invoking git-version-gen.
21268 2008-09-26 Bruno Haible <bruno@clisp.org>
21270 * posix-modules: Update to directory names changed on 2008-01-19.
21271 Remove commas in output before splitting into words. No more need to
21272 avoid 'ftruncate' since 2007-02-19.
21274 2008-09-26 Bruno Haible <bruno@clisp.org>
21276 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21278 2008-09-26 Bruno Haible <bruno@clisp.org>
21280 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21281 * modules/fwriteerror (Depends-on): Add errno.
21283 2008-09-26 Bruno Haible <bruno@clisp.org>
21285 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21286 * tests/test-vc-list-files-cvs.sh: Likewise.
21288 2008-09-26 Bruno Haible <bruno@clisp.org>
21290 * doc/posix-headers/sys_resource.texi: Reorder items.
21292 2008-09-26 Jim Meyering <meyering@redhat.com>
21294 fts: tweak inode comparison function
21295 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21296 inode numbers, as documented.
21298 fts: sort dirent entries on inode number before traversing
21299 This avoids a quadratic, seek-related performance penalty when
21300 operating on a directory containing many entries (measurable at 10k;
21301 3.5 hours at 2 million entries with a cold cache) on certain types
21302 of file systems, including ext3 and ext4, but not tmpfs.
21303 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21304 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21305 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21306 (fs_handles_readdir_ordered_dirents_efficiently): New function.
21307 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21308 (fts_build): Set the stat.st_ino member from D_INO.
21309 If it is likely to be useful, sort dirent entries on inode number.
21311 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21312 and the struct statfs.f_type member.
21313 * modules/fts (Depends-on): Add d-ino.
21315 2008-09-26 Bruno Haible <bruno@clisp.org>
21317 * modules/sigpipe-die (Depends-on): Add sigpipe.
21319 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21320 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21321 and GNULIB_STDIO_H_SIGPIPE are set.
21322 * lib/stdio-write.c: New file.
21323 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21324 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21325 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21326 REPLACE_STDIO_WRITE_FUNCS.
21327 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21328 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21329 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21330 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21331 * modules/stdio (Files): Add lib/stdio-write.c.
21332 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21333 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21334 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21335 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21336 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21337 REPLACE_FPRINTF_POSIX.
21338 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21339 REPLACE_PRINTF_POSIX.
21340 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21341 REPLACE_VFPRINTF_POSIX.
21342 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21343 REPLACE_VPRINTF_POSIX.
21344 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21346 * doc/posix-functions/fputc.texi: Likewise.
21347 * doc/posix-functions/fputs.texi: Likewise.
21348 * doc/posix-functions/fwrite.texi: Likewise.
21349 * doc/posix-functions/printf.texi: Likewise.
21350 * doc/posix-functions/putc.texi: Likewise.
21351 * doc/posix-functions/putchar.texi: Likewise.
21352 * doc/posix-functions/puts.texi: Likewise.
21353 * doc/posix-functions/vfprintf.texi: Likewise.
21354 * doc/posix-functions/vprintf.texi: Likewise.
21356 * modules/safe-write (Depends-on): Add write.
21358 * modules/sigpipe-tests: New file.
21359 * tests/test-sigpipe.c: New file.
21360 * tests/test-sigpipe.sh: New file.
21362 * modules/write: New file.
21363 * lib/unistd.in.h: Include <sys/types.h>.
21364 (write): New declaration.
21365 * lib/write.c: New file.
21366 * m4/write.m4: New file.
21367 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21368 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21369 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21370 GNULIB_WRITE, REPLACE_WRITE.
21371 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21372 and the SIGPIPE issue.
21374 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21375 (raise): New declaration.
21376 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21377 (ext_signal): New function.
21378 (rpl_raise): New function.
21379 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21380 GNULIB_SIGNAL_H_SIGPIPE.
21381 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21382 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21384 * modules/sigpipe: New file.
21385 * m4/sigpipe.m4: New file.
21387 2008-09-25 Derek Price <derek@ximbiot.com>
21388 Bruno Haible <bruno@clisp.org>
21390 * gnulib-tool (func_import): Report all license incompatibilities, not
21391 just the first one.
21393 2008-09-25 Bruno Haible <bruno@clisp.org>
21395 * gnulib-tool (func_import): When computing the edits, consider not
21396 only the Makefile.ams that exist but also those that will be generated.
21398 2008-09-25 Simon Josefsson <simon@josefsson.org>
21400 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21401 fixes gnulib-tool --test warning about duplicate dependency.
21403 2008-09-25 Bruno Haible <bruno@clisp.org>
21405 * gnulib-tool: Don't ask the user to perform edits in the generated
21407 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21408 apply to the Makefile.am being generated.
21409 (func_emit_tests_Makefile_am): Execute edits that apply to the
21410 Makefile.am being generated.
21411 (func_import): Setup list of Makefile.am edits before emitting the
21412 Makefile.ams, not at the end.
21413 (func_create_testdir): Update.
21414 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21416 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21418 * gnulib-tool (func_import): Store the --tests-base option in the
21419 comment in gnulib-cache.m4.
21421 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
21423 * NEWS: Document increased portability that sys_select now provides.
21425 * lib/sys_select.in.h: Install select wrapper.
21426 * lib/sys_socket.in.h: Use more descriptive name when there is no
21428 * lib/winsock-select.c: New.
21429 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21430 Require gl_HEADER_SYS_SOCKET.
21431 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21432 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21433 * tests/test-sys_select.c: Add functional tests.
21435 2008-09-24 Eric Blake <ebb9@byu.net>
21437 open, fopen: close fd leak in last patch
21438 * lib/open.c (rpl_open): Close fd before returning error.
21439 * lib/fopen.c (rpl_fopen): Close fd before returning error.
21440 * doc/posix-functions/open.texi (open): Document that Irix also
21442 * doc/posix-functions/fopen.texi (fopen): Likewise.
21443 Reported by Paolo Bonzini.
21445 2008-09-24 Bruno Haible <bruno@clisp.org>
21447 Ensure that a filename ending in a slash cannot be used to access a
21449 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21450 to check whether it's really a directory.
21451 * lib/fopen.c: Include fcntl.h, unistd.h.
21452 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21454 * modules/fopen (Depends-on): Add unistd.
21455 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21456 * tests/test-fopen.c (main): Likewise.
21457 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21458 * doc/posix-functions/fopen.texi: Likewise.
21459 Reported by Eric Blake.
21461 2008-09-23 Eric Blake <ebb9@byu.net>
21463 c-stack: avoid compiler optimizations when provoking overflow
21464 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21465 recursion harder to optimize, to ensure a stack overflow occurs.
21466 * tests/test-c-stack.c (recurse): Likewise.
21467 Borrowed from libsigsegv.
21469 c-stack: work around Irix sigaltstack bug
21470 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21471 whether sigaltstack uses wrong end of stack_t (copied in part from
21473 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21474 Irix bug, without requiring an over-allocation.
21475 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21478 fopen: document mingw bug on directories
21479 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21480 not allowing a stream visiting a directory, even though reading
21481 from such a stream is not portable.
21483 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21485 * lib/poll.c: Rewrite.
21486 * modules/poll: Depend on alloca.
21488 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21490 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21491 instead define prototypes for a full set of wrappers. Ensure
21492 that Cygwin does not use the compatibility code, which is only
21494 * lib/winsock.c: New.
21495 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21496 * modules/sys_socket: Add lib/winsock.c.
21498 * modules/poll-tests: Add errno and perror.
21499 * tests/test-poll.c: Use ioctl, not ioctlsocket.
21501 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21503 * tests/test-poll.c: Downgrade minimum needed Winsock version.
21505 2008-09-23 Bruno Haible <bruno@clisp.org>
21507 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21508 * doc/glibc-functions/*: Likewise.
21510 2008-09-23 Simon Josefsson <simon@josefsson.org>
21512 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21515 2008-09-22 Eric Blake <ebb9@byu.net>
21516 Bruno Haible <bruno@clisp.org>
21518 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21519 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21520 supply %A but mishandle pseudo-NaN.
21521 Reported by Simon Josefsson.
21523 2008-09-21 Bruno Haible <bruno@clisp.org>
21525 * tests/test-lock.c (main): Tweak skip message.
21526 * tests/test-tls.c (main): Likewise.
21528 2008-09-21 Bruno Haible <bruno@clisp.org>
21530 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21531 whether 'struct sigaction' has sa_sigaction here...
21532 (gl_PREREQ_SIG_HANDLER_H): ... not here.
21533 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21535 2008-09-21 Bruno Haible <bruno@clisp.org>
21537 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21539 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21540 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21542 (Support for obsolete systems lacking POSIX:2001): New section.
21543 (String handling <string.h>): Move strdup to the new section.
21544 Suggested by Simon Josefsson and Paolo Bonzini.
21546 2008-09-21 Bruno Haible <bruno@clisp.org>
21548 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21549 exponents in %e and %g results on 'long double'. Needed for mingw's
21550 improved *printf functions.
21551 * tests/test-vasprintf-posix.c (test_function): Likewise.
21552 * tests/test-snprintf-posix.h (test_function): Likewise.
21553 * tests/test-sprintf-posix.h (test_function): Likewise.
21554 Reported by Eric Blake.
21556 2008-09-21 Bruno Haible <bruno@clisp.org>
21558 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21559 * tests/test-sprintf-posix.h (test_function): Likewise.
21561 2008-09-21 Bruno Haible <bruno@clisp.org>
21563 * modules/getpass (Depends-on): Add strdup-posix.
21565 New module 'strdup-posix'.
21566 * modules/strdup-posix: New file.
21567 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21568 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21569 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21571 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21572 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21573 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21576 * modules/strdup (Depends-on): Remove malloc-posix.
21578 2008-09-20 Bruno Haible <bruno@clisp.org>
21580 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21583 2008-09-20 Bruno Haible <bruno@clisp.org>
21585 Ensure that wint_t gets defined on IRIX 5.3.
21586 * lib/wchar.in.h (wint_t): Define if not defined by the system.
21587 * lib/wctype.in.h (wint_t): Likewise.
21588 (__wctype_wint_t): Remove type.
21589 (isw*): Use wint_t instead of __wctype_wint_t.
21590 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21591 * modules/wchar (Files): Add m4/wint_t.m4.
21592 (Makefile.am): Substitute HAVE_WINT_T.
21593 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21594 * tests/test-wctype.c: Check that wint_t is defined.
21595 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21596 * doc/posix-headers/wctype.texi: Likewise.
21597 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21599 2008-09-18 Bruno Haible <bruno@clisp.org>
21601 * gnulib-tool (func_exit): Update comment.
21603 2008-09-18 Simon Josefsson <simon@josefsson.org>
21605 * modules/getaddrinfo (Depends-on): Remove strdup, this module
21606 assumes strdup exists and does not depend on strdup to return
21607 ENOMEM on out of memory conditions.
21609 2008-09-18 Bruno Haible <bruno@clisp.org>
21611 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21612 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21613 digits for the exponent.
21615 2008-09-18 Jim Meyering <meyering@redhat.com>
21616 Bruno Haible <bruno@clisp.org>
21618 * lib/vasnprintf.c (decimal_point_char): Define also if
21619 NEED_PRINTF_INFINITE_LONG_DOUBLE.
21621 2008-09-16 Bruno Haible <bruno@clisp.org>
21622 and Eric Blake <ebb9@byu.net>
21624 vasnprintf: support Irix 5.3
21625 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21626 that mishandle long double infinity.
21627 Reported by Tom G. Christensen.
21629 2008-09-16 Bruno Haible <bruno@clisp.org>
21631 * doc/glibc-functions/scandir.texi: Mention the function is missing on
21633 * doc/glibc-functions/alphasort.texi: Likewise.
21634 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21636 2008-09-16 Jim Meyering <meyering@redhat.com>
21638 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21639 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21640 a umask modification leak out of a subshell. Otherwise, the
21641 opensolaris /bin/sh would be accepted and thus cause unwarranted
21642 failures in the coreutils test suite.
21644 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
21646 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21649 2008-09-16 Jim Meyering <meyering@redhat.com>
21651 avoid spurious test failure when library is built without ACL support
21652 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21653 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21654 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21655 * tests/test-copy-acl.sh: Likewise.
21657 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21659 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21660 based on character occurrence counts.
21662 2008-09-15 Eric Blake <ebb9@byu.net>
21664 tests: avoid some compiler warnings
21665 * tests/test-memchr.c (main): Pass NULL indirectly.
21666 * tests/test-closein.c (main): Avoid unused variable.
21668 2008-09-15 Bruno Haible <bruno@clisp.org>
21670 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21671 are missing on OpenBSD 4.0 individually.
21672 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21674 2008-09-15 Bruno Haible <bruno@clisp.org>
21676 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21677 * doc/posix-functions/strerror.texi: Mention also Cygwin.
21678 * doc/posix-functions/perror.texi: Likewise.
21679 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21681 Reported by Eric Blake.
21683 * lib/errno.in.h: Use replacement values >= 2000.
21684 Reported by Eric Blake.
21686 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21688 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21689 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21691 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21692 compareseq was aborted.
21694 2008-09-14 Bruno Haible <bruno@clisp.org>
21696 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21698 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21699 (fstrcmp_bounded): Simplify result computation accordingly.
21701 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21703 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21704 (fstrcmp): Define in terms of fstrcmp_bounded.
21705 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21706 lower_bound argument.
21707 Return quickly if the result is certainly < lower_bound.
21708 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21710 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21712 * lib/diffseq.h (EARLY_ABORT): New macro.
21713 (compareseq): Change return type to bool. Return true when EARLY_ABORT
21716 2008-09-14 Bruno Haible <bruno@clisp.org>
21718 * modules/perror-tests: New file.
21719 * tests/test-perror.sh: New file.
21720 * tests/test-perror.c: New file.
21722 New module 'perror'.
21723 * lib/stdio.in.h (perror): New declaration.
21724 * lib/perror.c: New file.
21725 * m4/perror.m4: New file.
21726 * modules/perror: New file.
21727 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21728 * doc/posix-functions/perror.texi: Mention the perror module.
21729 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21731 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21734 2008-09-14 Bruno Haible <bruno@clisp.org>
21736 * modules/stdio (Makefile.am): Reorder to match the order in
21738 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21740 2008-09-13 Bruno Haible <bruno@clisp.org>
21742 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21744 2008-09-13 Bruno Haible <bruno@clisp.org>
21746 Extend strerror to cover the added errno values.
21747 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21748 (rpl_strerror): Provide error messages for the added errno values and
21749 for the WSA* values.
21750 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21751 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21753 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21754 * modules/strerror (Depends-on): Add errno.
21755 * doc/posix-functions/strerror.texi: Document the change.
21756 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21759 2008-09-13 Bruno Haible <bruno@clisp.org>
21761 * modules/EOVERFLOW: Remove file.
21762 * m4/eoverflow.m4: Remove file.
21763 * modules/EOVERFLOW-tests: Remove file.
21764 * tests/test-EOVERFLOW.c: Remove file.
21765 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21766 * modules/ftell (Depends-on): Likewise.
21767 * modules/getdelim (Depends-on): Likewise.
21768 * modules/getugroups (Depends-on): Likewise.
21769 * modules/poll (Depends-on): Likewise.
21770 * modules/snprintf (Depends-on): Likewise.
21771 * modules/sprintf-posix (Depends-on): Likewise.
21772 * modules/vasnprintf (Depends-on): Likewise.
21773 * modules/vasprintf (Depends-on): Likewise.
21774 * modules/vfprintf-posix (Depends-on): Likewise.
21775 * modules/vsnprintf (Depends-on): Likewise.
21776 * modules/vsprintf-posix (Depends-on): Likewise.
21777 * modules/xvasprintf (Depends-on): Likewise.
21778 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21779 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21780 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21781 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21782 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21783 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21784 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21785 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21786 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21787 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21788 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21789 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21790 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21791 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21792 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21793 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21794 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21795 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21796 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21797 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21798 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21799 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21800 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21801 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21802 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21803 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21804 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21805 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21806 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21807 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21808 * MODULES.html.sh: Remove EOVERFLOW.
21809 * NEWS: Mention the change.
21811 2008-09-13 Bruno Haible <bruno@clisp.org>
21813 * modules/errno-tests: New file.
21814 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21816 * lib/errno.in.h: New file.
21817 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21818 * modules/errno: New file.
21819 * doc/posix-headers/errno.texi: Update documentation.
21820 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21822 2008-09-13 Bruno Haible <bruno@clisp.org>
21824 * tests/test-poll.c: Use #if for native Windows, rather than testing
21827 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21828 Bruno Haible <bruno@clisp.org>
21830 * lib/glob.c: Don't include <pwd.h> on native Windows.
21831 (WINDOWS32): New macro.
21832 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21834 2008-09-13 Bruno Haible <bruno@clisp.org>
21836 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21837 (ETIMEDOUT): Remove macro.
21838 (glthread_cond_timedwait_multithreaded): New declaration.
21839 (glthread_cond_timedwait): Use it.
21840 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21841 (glthread_cond_timedwait_multithreaded): New function.
21843 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21845 * modules/poll-tests: Do not check for io.h.
21846 * tests/test-poll.c: Check for __MSVCRT__ instead.
21848 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21850 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21851 * modules/poll-tests: Add inet_pton, stdbool, sockets.
21852 * tests/test-poll.c: Use them. Use _pipe on Windows.
21854 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21856 * modules/poll-tests: New.
21857 * tests/test-poll.c: New.
21859 2008-09-12 Eric Blake <ebb9@byu.net>
21861 frexp: test for NetBSD failure on -0.0
21862 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21863 not all, bugs from NetBSD 3.0 have been fixed.
21864 * doc/posix-functions/frexp.texi (frexp): Document bug.
21865 Reported by Thomas Klausner.
21867 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21868 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21870 Reported by Jonathan C. Patschke <jp@centtech.com>.
21872 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21874 * lib/glthread/cond.h: Use dummy implementation also if
21877 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21879 * modules/fnmatch-posix (License): Change to LGPLv2+.
21880 * modules/fnmatch-gnu (License): Likewise.
21882 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21884 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21886 2008-09-11 Jim Meyering <meyering@redhat.com>
21888 * users.txt: Add gtk-vnc.
21890 2008-09-08 Simon Josefsson <simon@josefsson.org>
21892 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21895 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21896 required for 16-bit and 8-bit rotates.
21897 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21898 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21899 UINT8_MAX instead of hard-coded constants.
21900 Suggested by Paul Eggert.
21902 2008-09-07 Bruno Haible <bruno@clisp.org>
21904 * tests/test-striconveh.c (main): Check behaviour when converting from
21907 Make striconveh work better with stateful encodings.
21908 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21909 that iconv does not increment the inptr when returning -1/EINVAL.
21911 2008-09-07 Bruno Haible <bruno@clisp.org>
21913 * build-aux/config.rpath: Update according to libtool-2.2.6.
21914 * build-aux/config.libpath: Likewise.
21916 2008-09-06 Bruno Haible <bruno@clisp.org>
21918 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21919 * lib/freadptr.c (freadptr): Likewise.
21920 * lib/freadseek.c (freadptrinc): Likewise.
21921 Reported by Simon Josefsson.
21923 2008-09-06 Bruno Haible <bruno@clisp.org>
21925 * modules/freadptr (License): Change to LGPLv2+.
21926 * modules/freadseek (License): Likewise.
21927 Suggested by Eric Blake.
21929 * modules/memchr2 (License): Change to LGPLv2+.
21930 Approved by Eric Blake.
21932 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21933 Bruno Haible <bruno@clisp.org>
21935 Make gnulib-tool work with native 'sed' on AIX.
21936 * gnulib-tool (sed_noop): New variable.
21937 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21938 func_add_or_update, func_create_testdir): Use it to initialize sed
21940 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21942 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
21943 Bruno Haible <bruno@clisp.org>
21945 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21946 also works after #include directives.
21948 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
21950 getdate.y: reject an out-of-range timezone value
21951 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21952 the range [-24...+24]. When specified with only one or two digits,
21953 * tests/test-getdate.c: Tests for the fix.
21954 * doc/getdate.texi: Document this change.
21956 2008-09-03 Bruno Haible <bruno@clisp.org>
21958 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21960 2008-09-02 Simon Josefsson <simon@josefsson.org>
21962 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
21963 <bruce.korb@gmail.com> with ideas from Ben Pfaff
21964 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21965 Blake <ebb9@byu.net>.
21967 * tests/test-bitrotate.c: Add more test vectors.
21969 2008-09-02 Eric Blake <ebb9@byu.net>
21971 vasnprintf-posix: handle large precision via %.*d
21972 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21973 when handling it ourselves.
21974 * tests/test-vasnprintf-posix.c (test_function): Add test.
21975 * tests/test-snprintf-posix.h (test_function): Likewise.
21976 * tests/test-sprintf-posix.h (test_function): Likewise.
21977 * tests/test-vasprintf-posix.c (test_function): Likewise.
21978 Reported by Alain Guibert.
21980 2008-09-01 Eric Blake <ebb9@byu.net>
21982 c-stack: make configure-time check more robust
21983 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21984 successful sigaction call.
21985 Reported by Tom G. Christensen.
21987 2008-09-01 Bruno Haible <bruno@clisp.org>
21989 New module 'findprog-lgpl'.
21990 * modules/findprog-lgpl: New file.
21991 * lib/findprog-lgpl.c: New file.
21992 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21993 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21994 to decide whether to use strdup or xstrdup, concatenated_filename or
21995 xconcatenated_filename.
21997 2008-09-01 Bruno Haible <bruno@clisp.org>
21999 Split module 'concat-filename' into 'concat-filename' (LGPL) and
22000 'xconcat-filename' (GPL).
22001 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22002 (License): Change to LGPLv2+.
22003 * modules/xconcat-filename: New file.
22004 * lib/concat-filename.h (concatenated_filename): Change specification.
22005 (xconcatenated_filename): New declaration.
22006 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22007 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22009 * lib/xconcat-filename.c: New file.
22010 * NEWS: Mention the change.
22011 * lib/findprog.c: Include concat-filename.h, not filename.h.
22012 (find_in_path): Use xconcatenated_filename instead of
22013 concatenated_filename.
22014 * lib/javacomp.c: Include concat-filename.h, not filename.h.
22015 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22016 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22017 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22018 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22019 instead of concatenated_filename.
22020 * lib/javaexec.c: Include concat-filename.h, not filename.h.
22021 (execute_java_class): Use xconcatenated_filename instead of
22022 concatenated_filename.
22023 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22024 * modules/javacomp (Depends-on): Likewise.
22025 * modules/javaexec (Depends-on): Likewise.
22027 2008-09-01 Bruno Haible <bruno@clisp.org>
22029 Split module 'filename' into 'filename' and 'concat-filename'.
22030 * modules/filename: Keep only lib/filename.h.
22031 (License): Change to LGPLv2+.
22032 * modules/concat-filename: New file, extracted from modules/filename.
22033 * lib/filename.h (concatenated_filename): Remove declaration.
22034 * lib/concat-filename.h: New file, extracted from lib/filename.h.
22035 * lib/concat-filename.c: Include concat-filename.h.
22036 * NEWS: Mention the change.
22038 2008-09-01 Simon Josefsson <simon@josefsson.org>
22040 * lib/bitrotate.h (rotl8, rotr8): Add.
22042 * modules/bitrotate (configure.ac): Need
22043 AC_REQUIRE([AC_C_INLINE]).
22044 (Description): Mention stdint.h. Reported by Bruno Haible
22047 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
22048 Paolo Bonzini <bonzini@gnu.org>.
22050 2008-08-31 Bruno Haible <bruno@clisp.org>
22052 Assume Solaris specific bi-arch conventions on Solaris systems.
22053 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22054 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22055 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22056 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22057 like acl_libdirstem.
22058 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22060 * NEWS: Mention the change.
22061 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22063 2008-08-31 Jim Meyering <meyering@redhat.com>
22065 * lib/strftime.h: Add comments describing the two added arguments.
22067 remove duplicate #include directives
22068 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22069 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22071 2008-08-31 Bruno Haible <bruno@clisp.org>
22073 New module 'sigpipe-die'.
22074 * modules/sigpipe-die: New file.
22075 * lib/sigpipe-die.h: New file.
22076 * lib/sigpipe-die.c: New file.
22077 * MODULES.html.sh (Signal handling): Add sigpipe-die.
22079 2008-08-31 Bruno Haible <bruno@clisp.org>
22081 Don't override previously installed signal handlers.
22082 * lib/fatal-signal.c (saved_sigactions): New variable.
22083 (uninstall_handlers): Reset the signal to the saved handler, not
22084 to SIG_DFL (except when ignored).
22085 (install_handlers): Save the previous handlers.
22087 2008-08-30 Bruno Haible <bruno@clisp.org>
22089 * gnulib-tool (func_reset_sigpipe): New function.
22090 (func_get_automake_snippet, func_modules_transitive_closure,
22091 func_import): Invoke it before a join command that reads from stdin,
22092 to avoid "echo: write error: Broken pipe" error messages on stderr.
22093 Reported by Sam Steingold <sds@gnu.org>.
22095 2008-08-30 Bruno Haible <bruno@clisp.org>
22097 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22098 Code copied from m4/open.m4.
22099 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22100 access and the filename ends in a slash. Code copied from lib/open.c.
22101 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22102 * tests/test-fopen.c (main): Check against bug with trailing slash.
22104 2008-08-29 Bruno Haible <bruno@clisp.org>
22106 Avoid some "gcc -pedantic" warnings.
22107 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22108 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22109 * lib/dirent.in.h: Likewise.
22110 * lib/fcntl.in.h: Likewise.
22111 * lib/float.in.h: Likewise.
22112 * lib/iconv.in.h: Likewise.
22113 * lib/inttypes.in.h: Likewise.
22114 * lib/locale.in.h: Likewise.
22115 * lib/math.in.h: Likewise.
22116 * lib/netinet_in.in.h: Likewise.
22117 * lib/search.in.h: Likewise.
22118 * lib/signal.in.h: Likewise.
22119 * lib/stdarg.in.h: Likewise.
22120 * lib/stdint.in.h: Likewise.
22121 * lib/stdio.in.h: Likewise.
22122 * lib/stdlib.in.h: Likewise.
22123 * lib/string.in.h: Likewise.
22124 * lib/strings.in.h: Likewise.
22125 * lib/sys_select.in.h: Likewise.
22126 * lib/sys_socket.in.h: Likewise.
22127 * lib/sys_stat.in.h: Likewise.
22128 * lib/sys_time.in.h: Likewise.
22129 * lib/sysexits.in.h: Likewise.
22130 * lib/time.in.h: Likewise.
22131 * lib/unistd.in.h: Likewise.
22132 * lib/wchar.in.h: Likewise.
22133 * lib/wctype.in.h: Likewise.
22134 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22135 * modules/fchdir (Makefile.am): Likewise.
22136 * modules/fcntl (Makefile.am): Likewise.
22137 * modules/float (Makefile.am): Likewise.
22138 * modules/iconv_open (Makefile.am): Likewise.
22139 * modules/inttypes (Makefile.am): Likewise.
22140 * modules/locale (Makefile.am): Likewise.
22141 * modules/math (Makefile.am): Likewise.
22142 * modules/netinet_in (Makefile.am): Likewise.
22143 * modules/search (Makefile.am): Likewise.
22144 * modules/signal (Makefile.am): Likewise.
22145 * modules/stdarg (Makefile.am): Likewise.
22146 * modules/stdint (Makefile.am): Likewise.
22147 * modules/stdio (Makefile.am): Likewise.
22148 * modules/stdlib (Makefile.am): Likewise.
22149 * modules/string (Makefile.am): Likewise.
22150 * modules/strings (Makefile.am): Likewise.
22151 * modules/sys_select (Makefile.am): Likewise.
22152 * modules/sys_socket (Makefile.am): Likewise.
22153 * modules/sys_stat (Makefile.am): Likewise.
22154 * modules/sys_time (Makefile.am): Likewise.
22155 * modules/sysexits (Makefile.am): Likewise.
22156 * modules/time (Makefile.am): Likewise.
22157 * modules/unistd (Makefile.am): Likewise.
22158 * modules/wchar (Makefile.am): Likewise.
22159 * modules/wctype (Makefile.am): Likewise.
22160 Reported by Reuben Thomas <rrt@sc3d.org>.
22162 2008-08-29 Bruno Haible <bruno@clisp.org>
22164 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22167 2008-08-29 Simon Josefsson <simon@josefsson.org>
22169 * MODULES.html.sh (Misc): Add bitrotate.
22171 * modules/bitrotate: New file.
22173 * lib/bitrotate.h: New file.
22175 * modules/bitrotate-tests: New file.
22177 * tests/test-bitrotate.c: New file.
22179 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22180 on the bitrotate module.
22182 * lib/arctwo.c: Use new bitrotate module.
22184 2008-08-29 Jim Meyering <meyering@redhat.com>
22186 bootstrap: merge changes from coreutils
22187 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22188 of copied files. Remove a kludge, now that this is fixed.
22189 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22190 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22191 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22193 2008-08-29 Bruno Haible <bruno@clisp.org>
22195 * MODULES.html.sh: Remove --cvs-urls option.
22197 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
22199 maint.mk: adjust to file name change
22200 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22202 2008-08-28 Jim Meyering <meyering@redhat.com>
22204 * modules/getndelim2 (License): Relicense to LGPLv2+.
22205 Approved by Richard Stallman for the version of 1995, and by
22206 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22208 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
22210 * lib/getdelim.c (flockfile, funlockfile): Make all of them
22211 dummy if one is not available. Do not touch them if
22212 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22213 (getc_maybe_unlocked): New.
22214 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22216 2008-08-26 Eric Blake <ebb9@byu.net>
22218 doc/INSTALL: resync from autoconf
22219 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22220 (INSTALL_PRELUDE): Delete; this is done more efficiently by
22222 * install.texi [!autoconf]: ...here. Resync from autoconf.
22223 * INSTALL: Regenerate.
22224 * INSTALL.ISO: New file.
22225 * INSTALL.UTF-8: Likewise.
22227 2008-08-26 Jim Meyering <meyering@redhat.com>
22229 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22230 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22231 these definitions conditional, so that they may be overridden, too.
22233 2008-08-26 Bruno Haible <bruno@clisp.org>
22235 Generate INSTALL file variants with prettier quotes.
22236 * doc/Makefile (INSTALL_PRELUDE): New macro.
22238 (INSTALL.ISO, INSTALL.UTF-8): New rules.
22240 2008-08-26 Bruno Haible <bruno@clisp.org>
22242 Run makeinfo in an English locale.
22243 * doc/Makefile (MAKEINFO): New variable.
22245 2008-08-26 Bruno Haible <bruno@clisp.org>
22247 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22248 Suggested by Eric Blake.
22250 2008-08-25 Bruno Haible <bruno@clisp.org>
22252 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22254 2008-08-25 Eric Blake <ebb9@byu.net>
22256 c-stack: test that stack overflow can be caught
22257 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22258 that platform allows handling stack overflow; at least OS/2 EMX
22259 has sigaltstack, but crashes before transferring control to
22260 handler on stack overflow.
22261 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22262 check for HAVE_STACK_OVERFLOW_HANDLING.
22263 Reported by Elbert Pol.
22265 2008-08-25 Bruno Haible <bruno@clisp.org>
22267 * doc/posix-functions/strftime.texi: Fix description of strftime
22270 2008-08-24 Bruno Haible <bruno@clisp.org>
22272 * tests/uniwidth/test-uc_width2.c: New file.
22273 * tests/uniwidth/test-uc_width2.sh: New file.
22274 * modules/uniwidth/width-tests (Files): Add the new files.
22275 (TESTS): Add uniwidth/test-uc_width2.sh.
22276 (TESTS_ENVIRONMENT): New variable.
22277 (check_PROGRAMS): Add test-uc_width2.
22278 (test_uc_width2_SOURCES): New variable.
22280 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22281 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22283 Reported by Alexander V. Lukyanov <lav@netis.ru>.
22285 2008-08-22 Eric Blake <ebb9@byu.net>
22287 test-lock, test-tls: mention why a test is skipped
22288 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22290 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22292 count-one-bits: relax license
22293 * modules/count-one-bits (License): Relicense to LGPLv2+.
22294 Suggested by Ludovic Courtès, approved by Ben Pfaff.
22296 2008-08-22 Andreas Schwab <schwab@suse.de>
22298 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22299 Remove spurious space in assignment.
22301 2008-08-21 Simon Josefsson <simon@josefsson.org>
22303 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
22304 Paul Eggert <eggert@CS.UCLA.EDU>.
22306 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
22308 * modules/gettext: Add m4/threadlib.m4.
22310 2008-08-19 Eric Blake <ebb9@byu.net>
22312 test-c-stack: fix compilation failure on FreeBSD 5.0
22313 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22314 headers before <sys/resource.h>.
22315 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22317 Reported by Nelson H. F. Beebe.
22319 strverscmp: migrate from "strverscmp.h" to <string.h>
22320 * modules/string (Makefile.am): Add new hooks.
22321 * modules/strverscmp (Files): Remove strverscmp.h.
22322 (Depends-on): Add string.
22323 (configure.ac): Add indicator.
22324 (Include): Mention new header.
22325 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22327 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22329 * lib/strverscmp.h: Delete.
22330 * lib/string.in.h (strverscmp): Provide declaration, when needed.
22331 * tests/test-strverscmp.c (includes): Adjust client.
22332 * lib/check-version.c (includes): Likewise.
22333 * NEWS: Document the change.
22335 strverscmp: add unit test
22336 * modules/strverscmp-tests: New file.
22337 * tests/test-strverscmp.c: Likewise.
22339 2008-08-19 Simon Josefsson <simon@josefsson.org>
22341 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
22342 regarding Windows crypto stuff, from Mono.
22344 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
22346 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
22347 if present, for intel RND. Return error on failures.
22349 2008-08-18 Ben Pfaff <blp@gnu.org>
22351 gitlog-to-changelog: give better diagnostic for failed pipe-open
22352 * build-aux/gitlog-to-changelog: Improve error message: suggest
22353 that the version of Git may be too old.
22355 2008-08-18 Simon Josefsson <simon@josefsson.org>
22357 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
22358 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
22360 2008-08-18 Bruno Haible <bruno@clisp.org>
22362 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22365 2008-08-18 Bruno Haible <bruno@clisp.org>
22367 * lib/glthread/threadlib.c: Include <pthread.h>.
22369 2008-08-18 Bruno Haible <bruno@clisp.org>
22371 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22372 glthread_recursive_lock_* macros.
22373 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22376 2008-08-18 Bruno Haible <bruno@clisp.org>
22378 * lib/glthread/thread.c: Avoid forcing a context switch right after
22381 2008-08-17 Bruno Haible <bruno@clisp.org>
22383 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22384 * lib/glthread/thread.h: Provide Win32 specific implementation.
22385 * modules/thread (Files): Add lib/glthread/thread.c.
22386 (Depends-on): Add lock.
22387 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22389 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22391 New module 'yield'.
22392 * modules/yield: New file.
22393 * lib/glthread/yield.h: New file.
22394 * m4/yield.m4: New file.
22395 * MODULES.html.sh (Multithreading): Add yield.
22397 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22399 New module 'thread'.
22400 * modules/thread: New file.
22401 * lib/glthread/thread.h: New file.
22402 * m4/thread.m4: New file.
22403 * MODULES.html.sh (Multithreading): Add thread.
22405 2008-08-17 Bruno Haible <bruno@clisp.org>
22407 * lib/glthread/lock.h: Include <stdlib.h> always.
22408 * lib/glthread/tls.h: Likewise.
22409 * lib/glthread/cond.h: Likewise.
22411 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22414 * modules/cond: New file.
22415 * lib/glthread/cond.h: New file.
22416 * lib/glthread/cond.c: New file.
22417 * m4/cond.m4: New file.
22418 * MODULES.html.sh (Multithreading): Add cond.
22420 2008-08-16 Eric Blake <ebb9@byu.net>
22422 c-stack: fix regression on Irix 5.3 from 2008-06-21
22423 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22425 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22426 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22427 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22428 * modules/signal (Makefile.am): Use the value.
22429 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22430 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22431 * doc/posix-headers/signal.texi (signal.h): Document this
22433 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22434 Reported by Tom G. Christensen.
22436 2008-08-17 Bruno Haible <bruno@clisp.org>
22438 New module 'threadlib'.
22439 * modules/threadlib: New file.
22440 * lib/glthread/threadlib.c: New file, extracted from
22441 lib/glthread/lock.c.
22442 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22444 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22445 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22446 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22448 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22449 (gl_DISABLE_THREADS): Remove macro.
22450 * modules/lock (Files): Remove build-aux/config.rpath.
22451 (Depends-on): Remove havelib. Add threadlib.
22452 (configure.ac-early): Remove section.
22453 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22454 * modules/tls (Depends-on): Remove lock. Add threadlib.
22455 (Link): New section, copied from threadlib.
22456 * MODULES.html.sh (Multithreading): Add threadlib.
22458 2008-08-14 Bruno Haible <bruno@clisp.org>
22460 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22461 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22462 glthread_rwlock_unlock, glthread_rwlock_destroy,
22463 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22464 glthread_recursive_lock_destroy): Define as macros always.
22465 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22466 glthread_lock_lock.
22467 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22468 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22469 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22470 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22471 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22472 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22473 (glthread_recursive_lock_lock_func): Renamed from
22474 glthread_recursive_lock_lock.
22475 (glthread_recursive_lock_unlock_func): Renamed from
22476 glthread_recursive_lock_unlock.
22477 (glthread_recursive_lock_destroy_func): Renamed from
22478 glthread_recursive_lock_destroy.
22480 2008-08-14 Bruno Haible <bruno@clisp.org>
22482 * lib/glthread/lock.h: Renamed from lib/lock.h.
22483 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22484 * lib/glthread/tls.h: Renamed from lib/tls.h.
22485 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22486 * lib/fstrcmp.c: Update includes.
22487 * lib/strsignal.c: Update includes.
22488 * modules/lock (Files, Makefile.am): Update.
22489 (Include): Change to "glthread/lock.h".
22490 * modules/tls (Files, Makefile.am): Update.
22491 (Include): Change to "glthread/tls.h".
22492 * tests/test-lock.c: Update includes.
22493 * tests/test-tls.c: Update includes.
22494 * NEWS: Mention the renamed header files.
22496 2008-08-11 Jim Meyering <meyering@redhat.com>
22498 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22500 2008-08-11 Eric Blake <ebb9@byu.net>
22502 test-c-stack: avoid C99-ism
22503 * tests/test-c-stack.c (main): Fix whitespace, move declaration
22505 Reported by Alain Guibert.
22507 2008-08-10 Jim Meyering <meyering@redhat.com>
22509 ensure that return value of uinttostr et al are not ignored
22510 * lib/inttostr.h (__GNUC_PREREQ): Define.
22511 (__attribute_warn_unused_result__): Define.
22512 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22514 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
22516 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22517 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22519 2008-08-07 Jim Meyering <meyering@redhat.com>
22521 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22523 * modules/mkstemp (License): Relicense under LGPLv2+.
22524 * modules/tempname (License): Likewise.
22526 2008-08-06 Bruno Haible <bruno@clisp.org>
22528 * lib/poll.c (poll): Further micro-optimization.
22530 2008-08-06 Jim Meyering <meyering@redhat.com>
22532 inet_pton.c: use locale-independent tolower
22533 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22534 (inet_pton6): Use c_tolower rather than tolower.
22535 * modules/inet_pton (Depends-on): Add c-ctype.
22537 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
22539 * lib/poll.c (poll): Avoid division when timeout is 0, cache
22540 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
22542 2008-08-06 Jim Meyering <meyering@redhat.com>
22544 * modules/inet_pton (License): Relicense under LGPLv2+.
22546 2008-08-03 Bruno Haible <bruno@clisp.org>
22548 Additional non-aborting API for lock and tls.
22549 * lib/lock.h: Include <errno.h>.
22550 (glthread_lock_init): New macro/function.
22551 (gl_lock_init): Define as wrapper around glthread_lock_init.
22552 (glthread_lock_lock): New macro/function.
22553 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22554 (glthread_lock_unlock): New macro/function.
22555 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22556 (glthread_lock_destroy): New macro/function.
22557 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22558 (glthread_rwlock_init): New macro/function.
22559 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22560 (glthread_rwlock_rdlock): New macro/function.
22561 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22562 (glthread_rwlock_wrlock): New macro/function.
22563 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22564 (glthread_rwlock_unlock): New macro/function.
22565 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22566 (glthread_rwlock_destroy): New macro/function.
22567 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22568 (glthread_recursive_lock_init): New macro/function.
22569 (gl_recursive_lock_init): Define as wrapper around
22570 glthread_recursive_lock_init.
22571 (glthread_recursive_lock_lock): New macro/function.
22572 (gl_recursive_lock_lock): Define as wrapper around
22573 glthread_recursive_lock_lock.
22574 (glthread_recursive_lock_unlock): New macro/function.
22575 (gl_recursive_lock_unlock): Define as wrapper around
22576 glthread_recursive_lock_unlock.
22577 (glthread_recursive_lock_destroy): New macro/function.
22578 (gl_recursive_lock_destroy): Define as wrapper around
22579 glthread_recursive_lock_destroy.
22580 (glthread_once): New macro/function.
22581 (gl_once): Define as wrapper around glthread_once.
22582 Update function declarations.
22583 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22584 glthread_rwlock_init. Return error code.
22585 (glthread_rwlock_rdlock_multithreaded): Renamed from
22586 glthread_rwlock_rdlock. Return error code.
22587 (glthread_rwlock_wrlock_multithreaded): Renamed from
22588 glthread_rwlock_wrlock. Return error code.
22589 (glthread_rwlock_unlock_multithreaded): Renamed from
22590 glthread_rwlock_unlock. Return error code.
22591 (glthread_rwlock_destroy_multithreaded): Renamed from
22592 glthread_rwlock_destroy. Return error code.
22593 (glthread_recursive_lock_init_multithreaded): Renamed from
22594 glthread_recursive_lock_init. Return error code.
22595 (glthread_recursive_lock_lock_multithreaded): Renamed from
22596 glthread_recursive_lock_lock. Return error code.
22597 (glthread_recursive_lock_unlock_multithreaded): Renamed from
22598 glthread_recursive_lock_unlock. Return error code.
22599 (glthread_recursive_lock_destroy_multithreaded): Renamed from
22600 glthread_recursive_lock_destroy. Return error code.
22601 (glthread_once_call): Make static.
22602 (glthread_once_multithreaded): Renamed from glthread_once.
22603 * lib/tls.h: Include <errno.h>.
22604 (glthread_tls_key_init): New macro/function.
22605 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22606 (glthread_tls_set): New macro/function.
22607 (gl_tls_set): Define as wrapper around glthread_tls_set.
22608 (glthread_tls_key_destroy): New macro/function.
22609 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22610 Update function declarations.
22611 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22613 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22615 2008-08-04 Eric Blake <ebb9@byu.net>
22617 gnumakefile: use space, not TAB, outside of targets
22618 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22620 2008-08-02 Jim Meyering <meyering@redhat.com>
22622 getdate.y: avoid locale-dependent date parsing failure
22623 In Turkish locales, getdate would fail to recognize keywords
22624 containing a lowercase "i". The solution is not to rely on
22625 locale-sensitive case-conversion.
22626 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22627 (lookup_word): Use c_toupper in place of toupper.
22628 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22629 Reported by Vefa Bicakci <bicave@superonline.com> in
22630 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22631 * modules/getdate (Depends-on): Add c-ctype.
22633 2008-08-02 Bruno Haible <bruno@clisp.org>
22635 * gnulib-tool (func_import): When updating or creating a .gitignore
22636 file, prepend each added line with a slash, and ignore leading slashes
22637 from the existing lines.
22638 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22640 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22642 Portability fix for GNU make 3.79.1.
22643 * top/GNUmakefile: Avoid 'else COND', which older GNU make
22644 versions do not understand.
22646 2008-08-01 Bruno Haible <bruno@clisp.org>
22648 Work around bug of HP-UX 10.20 cc with -0.0 literal.
22649 * tests/test-isnanf.h (zero): New variable.
22650 (main): Avoid literal -0.0f.
22651 * tests/test-isnand.h (zero): New variable.
22652 (main): Avoid literal -0.0.
22653 * tests/test-isnanl.h (zero): New variable.
22654 (main): Avoid literal -0.0L.
22655 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22656 (test_float, test_double, test_long_double): Avoid literals -0.0f,
22658 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22659 (test_signbitd): Avoid literal -0.0.
22660 (test_signbitl): Avoid literal -0.0L.
22661 * tests/test-ceilf1.c (zero): New variable.
22662 (main): Avoid literal -0.0f.
22663 * tests/test-ceill.c (zero): New variable.
22664 (main): Avoid literal -0.0L.
22665 * tests/test-floorf1.c (zero): New variable.
22666 (main): Avoid literal -0.0f.
22667 * tests/test-floorl.c (zero): New variable.
22668 (main): Avoid literal -0.0L.
22669 * tests/test-roundf1.c (zero): New variable.
22670 (main): Avoid literal -0.0f.
22671 * tests/test-round1.c (zero): New variable.
22672 (main): Avoid literal -0.0.
22673 * tests/test-roundl.c (zero): New variable.
22674 (main): Avoid literal -0.0L.
22675 * tests/test-truncf1.c (zero): New variable.
22676 (main): Avoid literal -0.0f.
22677 * tests/test-trunc1.c (zero): New variable.
22678 (main): Avoid literal -0.0.
22679 * tests/test-truncl.c (zero): New variable.
22680 (main): Avoid literal -0.0L.
22681 * tests/test-frexp.c (zero): New variable.
22682 (main): Avoid literal -0.0.
22683 * tests/test-frexpl.c (zero): New variable.
22684 (main): Avoid literal -0.0L.
22685 * tests/test-ldexpl.c (zero): New variable.
22686 (main): Avoid literal -0.0L.
22687 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22688 (zerod, zerol): New variables.
22689 (test_function): Avoid literals -0.0, -0.0L.
22690 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22691 (zerod, zerol): New variables.
22692 (test_function): Avoid literals -0.0, -0.0L.
22693 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22694 (zerod, zerol): New variables.
22695 (test_function): Avoid literals -0.0, -0.0L.
22696 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22697 (zerod, zerol): New variables.
22698 (test_function): Avoid literals -0.0, -0.0L.
22699 * tests/test-strtod.c (zero): New variable.
22700 (main): Avoid literal -0.0.
22701 Reported by Jonathan C. Patschke <jp@centtech.com>.
22703 2008-07-31 Jim Meyering <meyering@redhat.com>
22705 sha256.h: correct definition of SHA224_DIGEST_SIZE
22706 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22707 Reported by Paulie Pena IV <paulie4@gmail.com>.
22708 Define as 224 / 8, rather than as a literal.
22709 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22710 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22711 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22713 2008-07-31 Bruno Haible <bruno@clisp.org>
22715 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22716 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22717 Reported by Jonathan Patschke <jp@centtech.com>.
22719 2008-07-31 Bruno Haible <bruno@clisp.org>
22721 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22722 Reported by Paolo Bonzini <bonzini@gnu.org>.
22724 2008-07-30 Eric Blake <ebb9@byu.net>
22726 test-strtod: allow compilation without -lm
22727 * tests/test-strtod.c (main): Avoid link dependence on fabs.
22728 Reported by Dennis Clarke <blastwave@gmail.com>.
22730 2008-07-28 Jim Meyering <meyering@redhat.com>
22732 bootstrap: work also when there are no .po files in po/
22733 * build-aux/bootstrap (update_po_files): Complete the change
22734 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22736 2008-07-27 Jim Meyering <meyering@redhat.com>
22738 * users.txt: Add zile.
22740 2008-07-26 Ben Pfaff <blp@gnu.org>
22742 Add missing dependencies on new m4/exponent[fdl].m4 files.
22743 * modules/isnanf-nolibm: Add m4/exponentf.m4.
22744 * modules/isnand-nolibm: Add m4/exponentd.m4.
22745 * modules/isnanl-nolibm: Add m4/exponentl.m4.
22746 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22747 m4/isnan[fdl].m4, because the macros actually used moved.
22748 Reported by Jim Meyering.
22750 2008-07-14 Ben Pfaff <blp@gnu.org>
22753 * lib/isinf.c: New file.
22754 * lib/math.in.h: Define isinf macro if we have decided to replace
22756 * m4/isinf.m4: New file.
22757 * m4/math_h.m4: Initialize and substitute variables for isinf
22759 * modules/isinf: New file.
22760 * modules/isinf-tests: New file.
22761 * modules/math: Add substitutions for new module.
22762 * tests/test-isinf.c: New file.
22763 * doc/posix-functions/isinf.texi: Mention new module.
22764 * MODULES.html.sh: Mention new module.
22766 2008-07-14 Ben Pfaff <blp@gnu.org>
22768 Factor out some macros for use by additional modules.
22769 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22771 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22773 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22775 * m4/exponentf.m4: New file.
22776 * m4/exponentd.m4: New file.
22777 * m4/exponentl.m4: New file.
22778 * modules/isnanf: Use new file m4/exponentf.m4.
22779 * modules/isnand: Use new file m4/exponentd.m4.
22780 * modules/isnanl: Use new file m4/exponentl.m4.
22782 2008-07-23 Ulrich Drepper <drepper@redhat.com>
22784 mktime.c: normalize tp->tm_isdst value to -1/0/1.
22785 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22786 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22787 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22789 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22790 readlink on platforms without PATH_MAX.
22792 2008-07-21 Eric Blake <ebb9@byu.net>
22794 Warn, not fail, on stale version.
22795 * top/GNUmakefile (_curr-ver): Tone down previous patch.
22797 Don't allow installation with stale devel version number.
22798 * top/GNUmakefile (_is-install-target): New macro.
22799 (_curr-ver): Forbid installation with stale version number.
22801 2008-07-20 Bruno Haible <bruno@clisp.org>
22803 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22805 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22807 2008-07-20 Bruno Haible <bruno@clisp.org>
22809 * lib/c-stack.h (c_stack_action): Add documentation.
22810 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22812 2008-07-20 Bruno Haible <bruno@clisp.org>
22814 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22815 * modules/readlink (License): Likewise.
22817 2008-07-17 Eric Blake <ebb9@byu.net>
22819 * modules/c-stack (Link): Fix typo.
22821 Make c-stack use libsigsegv, when available.
22822 * modules/c-stack (Depends-on): Add libsigsegv.
22823 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22825 * lib/c-stack.c (SIGSTKSZ): Define fallback.
22826 (segv_handler, overflow_handler, c_stack_action)
22827 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22828 implementation when libsigsegv is available, but only when using
22829 the library is necessary.
22830 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22831 comment, explaining why XSI check fails on Linux.
22832 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22833 * tests/test-c-stack2.sh: Tweak skip message.
22834 * NEWS: Document new link-time requirements.
22836 2008-07-16 Eric Blake <ebb9@byu.net>
22838 c-stack: Expose false positives when not using libsigsegv.
22839 * modules/c-stack-tests (Files): Expand test.
22840 * tests/test-c-stack.c (main): Add means to conditionally trigger
22841 non-overflow SIGSEGV.
22842 * tests/test-c-stack2.sh: New file.
22844 2008-07-14 Bruno Haible <bruno@clisp.org>
22846 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22847 Reported by Eric Blake.
22849 2008-07-14 Sam Steingold <sds@gnu.org>
22850 Bruno Haible <bruno@clisp.org>
22852 New module libsigsegv.
22853 * modules/libsigsegv: New file.
22854 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22856 * MODULES.html.sh (Signal handling): New section.
22858 2008-07-14 Bruno Haible <bruno@clisp.org>
22860 * modules/unictype/ctype-* (Description): Add the word "function".
22861 Improves the resulting doc in MODULES.html.
22863 2008-07-12 Ben Pfaff <blp@gnu.org>
22865 Add longlong module.
22866 * modules/longlong: New file.
22868 2008-07-12 Bruno Haible <bruno@clisp.org>
22870 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22873 2008-07-10 Ben Pfaff <blp@gnu.org>
22876 * doc/posix-functions/isnan.texi: Mention new module.
22877 * lib/math.in.h: Define isnan macro if we have decided to replace
22879 * m4/isnan.m4: New file.
22880 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22881 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22883 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22885 * m4/math_h.m4: Initialize and substitute variables for isnan
22887 * modules/isnan: New file.
22888 * modules/isnan-tests: New file.
22889 * modules/math: Add substitutions for new module.
22890 * tests/test-isnan.c: New file.
22891 * MODULES.html.sh: Mention new module.
22893 2008-07-10 Ben Pfaff <blp@gnu.org>
22896 * lib/isnanf.m4: New file.
22897 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22898 (gl_HAVE_ISNANF_IN_LIBM): New macro.
22899 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22900 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22901 * modules/isnanf: New file.
22902 * modules/isnanf-tests: New file.
22903 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22905 * tests/test-isnanf-nolibm.c: factored most of its contents into
22906 new file tests/test-isnanf.h.
22907 * tests/test-isnanf.h: New file.
22908 * tests/test-isnanf.c: New file.
22909 * MODULES.html.sh: Mention new module.
22910 * doc/glibc-functions/isnanf.texi: Mention new module.
22912 2008-07-10 Ben Pfaff <blp@gnu.org>
22915 * lib/isnand.h: New file.
22916 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22917 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22918 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22919 functionality also.
22920 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22921 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22922 (gl_HAVE_ISNAND_IN_LIBM): New macro.
22923 * modules/isnand: New file.
22924 * modules/isnand-tests: New file.
22925 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22927 * tests/test-isnand-nolibm.c: factored most of its contents into
22928 new file tests/test-isnand.h.
22929 * tests/test-isnand.h: New file.
22930 * tests/test-isnand.c: New file.
22931 * MODULES.html.sh: Mention new module.
22933 2008-07-10 Ben Pfaff <blp@gnu.org>
22935 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22936 * lib/isnand.h: Rename lib/isnand-nolibm.h.
22937 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22938 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22939 * modules/isnanf-nolibm: Update references to renamed files.
22940 * modules/isnand-nolibm: Likewise.
22941 * modules/isnanf-nolibm-tests: Likewise.
22942 * modules/isnand-nolibm-tests: Likewise.
22943 * lib/frexp.c: Likewise.
22944 * lib/isfinite.c: Likewise.
22945 * lib/signbitd.c: Likewise.
22946 * lib/signbitf.c: Likewise.
22947 * lib/vasnprintf.c: Likewise.
22948 * tests/test-ceilf1.c: Likewise.
22949 * tests/test-ceilf2.c: Likewise.
22950 * tests/test-floorf1.c: Likewise.
22951 * tests/test-floorf2.c: Likewise.
22952 * tests/test-frexp.c: Likewise.
22953 * tests/test-round1.c: Likewise.
22954 * tests/test-round2.c: Likewise.
22955 * tests/test-roundf1.c: Likewise.
22956 * tests/test-strtod.c: Likewise.
22957 * tests/test-trunc1.c: Likewise.
22958 * tests/test-trunc2.c: Likewise.
22959 * tests/test-truncf1.c: Likewise.
22960 * tests/test-truncf2.c: Likewise.
22961 * NEWS: Mention the renamed header files.
22963 2008-07-11 Jim Meyering <meyering@redhat.com>
22965 vc-list-files: make the last-resort awk code more portable
22966 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22967 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22968 does not support it.
22970 2008-07-10 Eric Blake <ebb9@byu.net>
22972 Work with tar's bootstrap.
22973 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22974 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22977 2008-07-09 Jim Meyering <meyering@redhat.com>
22979 posix-shell.m4: fix typo that made this test malfunction
22980 * m4/posix-shell.m4: Remove capitalization in variable name.
22982 2008-07-08 Bruno Haible <bruno@clisp.org>
22984 * m4/onceonly.m4: Update comments.
22985 Reported by Ben Pfaff <blp@cs.stanford.edu>.
22987 2008-07-04 Jim Meyering <meyering@redhat.com>
22989 * users.txt: Add vc-dwim.
22990 (bison, coreutils): Use the gitweb URL.
22992 2008-07-03 Jim Meyering <meyering@redhat.com>
22994 * users.txt: Add libffcall. From Sam Steingold.
22996 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22998 getdate.y: do not ignore TZ with relative day, month or year offset
22999 * lib/getdate.y (get_date): Move the tz-handling block to follow the
23000 relative-date-handling, since otherwise, the latter would clobber the
23001 sole output (an updated Start value) of the tz-handling block.
23002 * tests/test-getdate.c: Tests for the fix
23004 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23006 Recognize 'foo_LIBRARIES += libgnu.a'.
23007 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23008 makefile snippet has already specified an installation location,
23011 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
23013 getdate.y: factor out common actions
23014 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23015 Use them in place of open-coded actions.
23017 2008-07-01 Simon Josefsson <simon@josefsson.org>
23019 Add self-test for getdate module.
23020 * modules/getdate-tests: New file.
23021 * tests/test-getdate.c: New file.
23023 2008-06-29 Bruno Haible <bruno@clisp.org>
23025 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23027 Reported by Sylvain Beucler <beuc@beuc.net>.
23029 2008-06-29 Bruno Haible <bruno@clisp.org>
23031 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23032 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23034 2008-06-29 Bruno Haible <bruno@clisp.org>
23036 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23038 Reported by Sylvain Beucler <beuc@beuc.net>.
23040 2008-06-26 Jim Meyering <meyering@redhat.com>
23042 make several modules depend on the "open" module
23043 This provides slightly increased consistency when opening-for-write
23044 the name of a non-directory spelled with a trailing slash.
23045 * modules/chdir-safer: Likewise.
23046 * modules/chown: Likewise.
23047 * modules/clean-temp: Likewise.
23048 * modules/copy-file: Likewise.
23049 * modules/fchdir: Likewise.
23050 * modules/fcntl-safer: Likewise.
23051 * modules/pipe: Likewise.
23052 * modules/utime: Likewise.
23053 Prompted by Eric Blake and Bruno Haible.
23055 2008-06-24 Andreas Schwab <schwab@suse.de>
23057 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23058 literals can be used as initializers for global variables.
23060 2008-06-23 Eric Blake <ebb9@byu.net>
23062 Make gnulib-cache.m4 easier to diff.
23063 * gnulib-tool (func_import): Allow newlines when reading cached
23064 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23066 2008-06-23 Bruno Haible <bruno@clisp.org>
23068 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23069 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23070 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23071 m4/signalblocking.m4.
23072 (gl_PREREQ_SIGACTION): Don't invoke it.
23073 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23074 gl_PREREQ_SIG_HANDLER_H.
23075 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23076 Don't check for sigaction here.
23078 2008-06-23 Bruno Haible <bruno@clisp.org>
23080 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23081 (install_handlers): Don't set the SA_RESETHAND flag.
23083 2008-06-23 Bruno Haible <bruno@clisp.org>
23085 * m4/sigaction.m4: Comment fixes.
23086 * lib/signal.in.h: Likewise.
23088 2008-06-23 Eric Blake <ebb9@byu.net>
23091 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23093 Avoid SA_ namespace.
23094 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23095 Reported by Ralf Wildenhues.
23097 Avoid test failure due to SA_RESTORER.
23098 * tests/test-sigaction.c (SA_MASK): New macro.
23099 (main): Avoid failing due to extension flags being set.
23100 Reported by Jim Meyering.
23102 Revert use of sig-handler.h in sigprocmask.c.
23103 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23104 it requires the existence of struct sigaction.
23105 * lib/sigprocmask.c (handler_t): Restore typedef.
23106 (rpl_signal, old_handlers): Use local type.
23108 2008-06-22 Bruno Haible <bruno@clisp.org>
23110 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23112 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23114 2008-06-22 Bruno Haible <bruno@clisp.org>
23116 * doc/posix-functions/siginterrupt.texi: Move note.
23118 * lib/signal.in.h (SA_RESTART): New macro.
23119 * lib/sigaction.c: Update comment.
23121 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23123 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23124 (gl_PREREQ_SIGPROCMASK): Invoke it.
23125 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23127 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23129 * lib/sigprocmask.c: Update a comment.
23131 2008-06-21 Eric Blake <ebb9@byu.net>
23133 Use sigaction module rather than signal().
23134 * modules/c-stack (Depends-on): Add sigaction.
23135 * modules/fatal-signal (Depends-on): Likewise.
23136 * modules/nanosleep (Depends-on): Likewise.
23137 * modules/sigprocmask (Files): Add sig-handler.h.
23138 * modules/sigaction (Files): Likewise.
23139 * lib/sig-handler.h (get_handler): New file, suggested by Paul
23141 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23142 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23143 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23144 (init_fatal_signals): Likewise.
23145 * lib/nanosleep.c (rpl_nanosleep): Likewise.
23146 (siginterrupt): Delete fallback.
23147 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23149 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23152 New module sigaction, for mingw.
23153 * modules/sigaction: New module...
23154 * modules/sigaction-tests: ...and its test.
23155 * m4/sigaction.m4: New file.
23156 * lib/sigaction.c: Likewise.
23157 * tests/test-sigaction.c: Likewise.
23158 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23159 * modules/signal (Makefile.am): Likewise.
23160 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23162 * doc/posix-headers/signal.texi (signal.h): Mention provided
23164 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23165 that sigaction is preferable.
23166 * doc/posix-functions/sigaction.texi (sigaction): Mention new
23168 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23171 Improve robustness of sigprocmask by overriding signal.
23172 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23174 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23175 (SIGKILL, SIGSTOP): Provide fallbacks.
23176 (rpl_signal): Implement.
23177 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23178 signal can be called inside handlers.
23180 Fix nanosleep module on mingw.
23181 * modules/nanosleep (Depends-on): Add sys_select.
23182 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23184 Fix licensing of sigprocmask.
23185 * modules/raise (License): Relicense as LGPL.
23187 2008-06-21 Bruno Haible <bruno@clisp.org>
23189 * lib/propername.c (proper_name_utf8): Don't use the transliterated
23190 result if it contains question marks.
23191 Reported by Michael Geng <linux@michaelgeng.de>.
23193 2008-06-19 Bruno Haible <bruno@clisp.org>
23196 * doc/gnulib.texi: Include updated-stamp.texi.
23197 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23198 (updated-stamp.texi): New rule.
23199 (gnulib.info): Depend on it.
23200 * doc/.gitignore: Add updated-stamp.texi.
23201 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23203 2008-06-19 Bruno Haible <bruno@clisp.org>
23205 * doc/Makefile (gnulib.info): Update and simplify dependencies.
23206 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23208 2008-06-19 Eric Blake <ebb9@byu.net>
23210 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23211 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23212 Reported by Stepan Kasal.
23214 2008-06-18 Bruno Haible <bruno@clisp.org>
23216 * lib/fatal-signal.c (init_fatal_signals): Add comment.
23217 Reported by Eric Blake.
23219 2008-06-18 Eric Blake <ebb9@byu.net>
23221 Work around cygwin 1.5.25 strsignal bug.
23222 * tests/test-strsignal.c: Allow for const char *.
23223 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23225 2008-06-18 Simon Josefsson <simon@josefsson.org>
23227 * users.txt: Update URL to article and add author/date
23230 2008-06-17 Bruno Haible <bruno@clisp.org>
23232 New macro gl_DISABLE_THREADS.
23233 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23234 if the user did not pass --enable-threads or --disable-threads option.
23235 (gl_DISABLE_THREADS): New macro.
23236 Reported by Eric Blake <ebb9@byu.net>.
23238 2008-06-17 Bruno Haible <bruno@clisp.org>
23240 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23241 when the macro ignores it.
23242 Based on a patch by Eric Blake <ebb9@byu.net>.
23244 2008-06-17 Bruno Haible <bruno@clisp.org>
23246 * modules/tls (License): Change to LGPLv2+.
23247 Reported by Eric Blake.
23249 2008-06-17 Eric Blake <ebb9@byu.net>
23251 Simplify c-stack prerequisites.
23252 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23253 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23254 no longer requires <ucontext.h> to exist. Optimize setrlimit
23256 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23259 Move c-stack test into testsuite.
23260 * modules/c-stack-tests: New file.
23261 * lib/c-stack.c [DEBUG]: Move test program...
23262 * tests/test-c-stack.c: ...into this new file. Skip rather than
23263 fail test if sigaltstack is lacking.
23264 * tests/test-c-stack.sh: New driver file.
23266 2008-06-16 Eric Blake <ebb9@byu.net>
23268 Use raise module consistently.
23269 * modules/fatal-signal (Depends-on): Add raise.
23270 * modules/sigprocmask (Depends-on): Likewise.
23271 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23272 * lib/sigprocmask.c (sigprocmask): Likewise.
23273 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23274 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23276 Fix compliance bug in sigpending.
23277 * lib/sigprocmask.c (sigpending): Return pending array via
23278 parameter, not return value.
23280 2008-06-14 Eric Blake <ebb9@byu.net>
23282 Improve obstack-printf test code.
23283 * tests/test-obstack-printf.c (test_function): Fix comment, and
23284 simplify usage of obstack_* in macros. Add a test for coverage.
23285 Reported by Bruno Haible.
23287 2008-06-14 Bruno Haible <bruno@clisp.org>
23289 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23290 array size as a constant, not as a const variable.
23291 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23292 AC_USE_SYSTEM_EXTENSIONS.
23293 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23294 Test whether the obstack_printf function actually exists.
23295 * modules/obstack-printf (Depends-on): Add extensions.
23296 (Include): Remove obstack.h.
23297 * modules/obstack-printf-posix (Depends-on): Add extensions.
23298 (Include): Remove obstack.h.
23300 2008-06-13 Eric Blake <ebb9@byu.net>
23302 Add obstack-printf and obstack-printf-posix modules.
23303 * modules/obstack-printf: New file.
23304 * modules/obstack-printf-posix: Likewise.
23305 * MODULES.html.sh (Misc): Mention them.
23306 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23308 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23310 * modules/stdio (Makefile.am): Accomodate new modules.
23311 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23312 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23314 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23316 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23317 (gl_REPLACE_OBSTACK_PRINTF): New macros
23318 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23319 * tests/test-obstack-printf.c: New file.
23320 * modules/obstack-printf-tests: Likewise.
23321 * modules/obstack-printf-posix-tests: Likewise.
23323 2008-06-11 Bruno Haible <bruno@clisp.org>
23325 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23326 * lib/open.c: Include errno.h.
23327 (open): Fail when attempting to write to a file that has a trailing
23329 * tests/test-open.c (main): Test against trailing slash bug.
23330 * doc/posix-functions/open.texi: Mention the trailing slash bug.
23332 2008-06-10 Bruno Haible <bruno@clisp.org>
23334 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23335 for $? to work inside the trap command, with various /bin/sh-s.
23336 * tests/test-vc-list-files-cvs.sh: Likewise.
23338 2008-06-10 Bruno Haible <bruno@clisp.org>
23340 * lib/acl-internal.h: Don't include gettext.h here.
23341 * lib/set-mode-acl.c: Include gettext.h here.
23342 * lib/copy-acl.c: Likewise.
23344 2008-06-10 Bruno Haible <bruno@clisp.org>
23346 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23347 * lib/wait-process.c (wait_subprocess): Likewise.
23348 * lib/execute.h (execute): Add termsigp argument.
23349 * lib/execute.c (execute): Likewise.
23350 * lib/csharpcomp.c (compile_csharp_using_pnet,
23351 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23352 * lib/csharpexec.c (execute_csharp_using_pnet,
23353 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23354 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23355 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23356 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23357 is_jikes_present): Update.
23358 * lib/javaexec.c (execute_java_class): Update.
23359 * lib/javaversion.c (execute_and_read_line): Update.
23360 * NEWS: Document the changes.
23361 Reported by Eric Blake.
23363 2008-06-10 Eric Blake <ebb9@byu.net>
23365 Add missing include.
23366 * tests/test-strstr.c (includes): Add <signal.h>.
23367 * tests/test-strcasestr.c (includes): Likewise.
23368 * tests/test-memmem.c (includes): Likewise.
23370 2008-06-10 Bruno Haible <bruno@clisp.org>
23372 * lib/wait-process.c (wait_subprocess): Add an assertion.
23374 2008-06-10 Bruno Haible <bruno@clisp.org>
23376 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23378 2008-06-10 Bruno Haible <bruno@clisp.org>
23380 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23382 * tests/test-strcasestr.c (main): Likewise.
23383 * tests/test-strstr.c (main): Likewise.
23385 2008-06-09 Bruno Haible <bruno@clisp.org>
23387 Work around the Solaris 10 ACE ACLs ABI change.
23388 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23389 declare if ACL_NO_TRIVIAL is present.
23390 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23391 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23392 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23393 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23394 define if ACL_NO_TRIVIAL is present.
23395 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23396 and use the current ABI.
23397 (file_has_acl): Use same #if condition as elsewhere.
23398 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23399 in use, and use the current ABI.
23400 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23401 Reported by Jim Meyering.
23403 2008-06-09 Eric Blake <ebb9@byu.net>
23405 Work around environments that (stupidly) ignore SIGALRM.
23406 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23407 before using alarm().
23408 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23409 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23410 Reported by Ian Beckwith <ianb@erislabs.net>.
23412 Produce autobuild blurb earlier in log.
23413 * modules/autobuild (configure.ac-early): Move AB_INIT here.
23415 2008-06-09 Jim Meyering <meyering@redhat.com>
23416 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
23418 utimens.c: correct kernel bug work-around
23419 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
23420 failure, not success, and the kernel bug we're trying to work
23421 around affects not just the utimensat call, but also the fallback
23423 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23425 [HAVE_FUTIMENS]: Use the same work-around, here.
23427 2008-06-09 Jim Meyering <meyering@redhat.com>
23429 add more guards around definition of ACE_-related code
23430 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23431 ALLOW and ACE_OWNER are also defined.
23433 2008-06-08 Bruno Haible <bruno@clisp.org>
23435 * lib/acl-internal.h: Add me as co-author.
23436 * lib/file-has-acl.c: Likewise.
23437 * lib/set-mode-acl.c: Likewise.
23438 * lib/copy-acl.c: Likewise.
23440 2008-06-08 Bruno Haible <bruno@clisp.org>
23442 Add support for AIX ACLs.
23443 * lib/acl-internal.h (acl_nontrivial): New declaration.
23444 * lib/file-has-acl.c (acl_nontrivial): New function.
23445 (file_has_acl): Add implementation using AIX 4 ACL API.
23446 * lib/set-mode-acl.c (qset_acl): Likewise.
23447 * lib/copy-acl.c (qcopy_acl): Likewise.
23449 2008-06-08 Bruno Haible <bruno@clisp.org>
23451 Add support for HP-UX ACLs.
23452 * lib/acl-internal.h (acl_nontrivial): New declaration.
23453 * lib/file-has-acl.c (acl_nontrivial): New function.
23454 (file_has_acl): Add implementation using HP-UX 11 ACL API.
23455 * lib/set-mode-acl.c (qset_acl): Likewise.
23456 * lib/copy-acl.c (qcopy_acl): Likewise.
23458 2008-06-08 Bruno Haible <bruno@clisp.org>
23460 Add support for Cygwin ACLs.
23461 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23462 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23463 the chmod_or_fchmod call.
23464 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23466 2008-06-08 Bruno Haible <bruno@clisp.org>
23468 Fix bug with setuid modes in Solaris 10+ code.
23469 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23470 succeeded, when the mode contains some special bits.
23472 2008-06-08 Bruno Haible <bruno@clisp.org>
23474 Add support for Solaris 7..10 ACLs.
23475 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23477 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23479 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23480 * lib/set-mode-acl.c (qset_acl): Likewise.
23481 * lib/copy-acl.c (qcopy_acl): Likewise.
23483 2008-06-08 Bruno Haible <bruno@clisp.org>
23485 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23487 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23488 (acl_access_nontrivial): Remove MacOS X case.
23489 (file_has_acl): Use acl_extended_nontrivial.
23490 * lib/copy-acl.c (qcopy_acl): Likewise.
23492 2008-06-08 Bruno Haible <bruno@clisp.org>
23494 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23496 2008-06-08 Jim Meyering <meyering@redhat.com>
23498 * modules/acl (Maintainer): Add Bruno Haible.
23500 2008-06-07 Bruno Haible <bruno@clisp.org>
23502 Improve support for Tru64 ACLs.
23503 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23506 2008-06-07 Bruno Haible <bruno@clisp.org>
23508 Add support for MacOS X ACLs.
23509 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23510 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23511 * lib/set-mode-acl.c (qset_acl): Likewise.
23512 * lib/copy-acl.c (qcopy_acl): Likewise.
23514 2008-06-07 Bruno Haible <bruno@clisp.org>
23516 Fix memory leak introduced on 2008-05-22.
23517 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23520 2008-06-07 Bruno Haible <bruno@clisp.org>
23522 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23523 to construct an empty ACL.
23525 2008-06-07 Bruno Haible <bruno@clisp.org>
23527 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23529 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23531 2008-06-07 Bruno Haible <bruno@clisp.org>
23533 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23534 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23536 2008-06-07 Bruno Haible <bruno@clisp.org>
23538 * doc/posix-functions/_setjmp.texi: Explain the use of this function
23539 regardless of POSIX.
23540 * doc/posix-functions/_longjmp.texi: Likewise.
23541 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23542 SystemV platform in this case.
23544 2008-06-06 Eric Blake <ebb9@byu.net>
23546 Document abort() bugs.
23547 * doc/posix-functions/abort.texi (abort): Mention anomalies.
23549 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23550 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23552 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23553 siglongjmp, but only as a macro.
23554 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23556 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23558 Tweak documentation to cover cygwin argz bugs.
23559 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23560 argz bug fix; no code change needed since no cygwin releases
23561 occurred between the last fix and the bug being tested.
23562 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23563 module and recently fixed cygwin bugs.
23564 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23565 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23566 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23567 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23568 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23570 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23571 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23572 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23573 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23574 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23575 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23578 Avoid gcc warning on cygwin.
23579 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23580 !ACL_NO_TRIVIAL]: Avoid unused variable.
23582 2008-06-05 Eric Blake <ebb9@byu.net>
23584 Be tolerant of UNKNOWN version in gnulib-tool test dir.
23585 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23586 git-version-gen fails to come up with a version.
23587 Reported by Simon Josefsson.
23589 2008-06-05 Jim Meyering <meyering@redhat.com>
23590 Paul Eggert <eggert@cs.ucla.edu>
23592 utimens.c: work around a probable Linux kernel bug
23593 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23594 appears to be a kernel bug that causes utimensat to return 280
23595 instead of 0, indicating success.
23597 2008-06-04 Bruno Haible <bruno@clisp.org>
23599 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23602 2008-06-04 Bruno Haible <bruno@clisp.org>
23604 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23605 * lib/file-has-acl.c (acl_access_nontrivial): New function.
23606 (file_has_acl): Use it. Save errno afterwards.
23607 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23609 2008-06-03 Bruno Haible <bruno@clisp.org>
23611 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23612 draft code. Simplify #ifs.
23613 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23614 Put Solaris code after POSIX-draft code. Fix comments regarding
23615 Solaris 10, HP-UX. Mention Cygwin.
23616 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23618 2008-06-03 Eric Blake <ebb9@byu.net>
23620 Provide fallback for older kernels.
23621 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23622 Provide runtime fallback if kernel lacks support.
23623 Reported by Mike Frysinger.
23625 2008-06-02 Bruno Haible <bruno@clisp.org>
23627 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23630 2008-06-02 Bruno Haible <bruno@clisp.org>
23632 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23633 * lib/copy-acl.c (qcopy_acl): Update comment.
23635 2008-06-02 Bruno Haible <bruno@clisp.org>
23637 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23640 2008-06-02 Bruno Haible <bruno@clisp.org>
23642 * tests/test-file-has-acl.sh: Use different code for Cygwin.
23643 * tests/test-set-mode-acl.sh: Likewise.
23644 * tests/test-copy-acl.sh: Likewise.
23645 * tests/test-copy-file.sh: Likewise.
23647 2008-06-02 Bruno Haible <bruno@clisp.org>
23649 * tests/test-file-has-acl.sh: Remove unused code.
23651 2008-06-01 Bruno Haible <bruno@clisp.org>
23653 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23654 (copy_acl): Just a wrapper around qcopy_acl that emits the error
23656 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23658 2008-06-01 Bruno Haible <bruno@clisp.org>
23660 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23661 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23662 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23664 * modules/acl-tests (configure.ac): Remove tests now contained in
23667 2008-06-02 Jim Meyering <meyering@redhat.com>
23669 announce-gen: use a better key-server host name
23670 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23671 it may be more consistently reliable. Suggested by Werner Koch
23672 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23674 2008-06-01 Bruno Haible <bruno@clisp.org>
23676 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23677 Reported by Voroskoi Andras <voroskoi@gmail.com>.
23679 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
23681 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23683 2008-06-01 Bruno Haible <bruno@clisp.org>
23686 * tests/test-file-has-acl.sh: New file.
23687 * tests/test-file-has-acl.c: New file.
23688 * tests/test-set-mode-acl.sh: New file.
23689 * tests/test-set-mode-acl.c: New file.
23690 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23691 * tests/test-copy-acl.c: New file.
23692 * modules/acl-tests: New file, based on modules/copy-file-tests.
23693 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23694 (Depends-on): Add acl-tests.
23695 (configure.ac): Remove checks.
23696 (Makefile.am): Don't create test-sameacls program here any more.
23698 2008-06-01 Bruno Haible <bruno@clisp.org>
23700 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23701 * tests/test-sameacls.c: Include progname.h.
23702 (main): Invoke set_program_name. Portability fixes for MacOS X,
23705 2008-06-01 Bruno Haible <bruno@clisp.org>
23707 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23709 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23711 2008-06-01 Bruno Haible <bruno@clisp.org>
23713 * modules/rpmatch (Depends-on): Add strdup.
23715 2008-06-01 Bruno Haible <bruno@clisp.org>
23717 * lib/pipe.c: Include unistd-safer.h.
23718 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23719 * modules/pipe (Depends-on): Add unistd-safer.
23721 2008-05-30 Simon Josefsson <simon@josefsson.org>
23723 * modules/autobuild (configure.ac): Call AB_INIT.
23725 2008-05-30 Simon Josefsson <simon@josefsson.org>
23727 * tests/test-getaddrinfo.c: Don't print debug messages by default.
23728 Suggested by Bruno Haible <bruno@clisp.org>.
23730 2008-05-30 Simon Josefsson <simon@josefsson.org>
23732 * tests/test-base64.c: Cast size_t to unsigned long when invoking
23733 printf. Use %lu instead of %d. Reported by Bruno Haible
23736 2008-05-29 Eric Blake <ebb9@byu.net>
23738 Prefer new POSIX 200x interfaces over futimesat.
23739 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23740 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23742 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23744 2008-05-28 Bruno Haible <bruno@clisp.org>
23746 * modules/stpcpy (License): Change to LGPLv2+.
23747 Requested by David Lutterkort <dlutter@redhat.com>.
23749 2008-05-27 Bruno Haible <bruno@clisp.org>
23751 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23753 Reported by Jose E. Marchesi <jemarch@gnu.org>.
23755 2008-05-27 Bruno Haible <bruno@clisp.org>
23757 * modules/iconv_open (Link): New section, from module 'iconv'.
23758 * modules/striconv (Link): Likewise.
23759 * modules/striconveh (Link): Likewise.
23760 * modules/xstriconv (Link): Likewise.
23761 * modules/unicodeio (Link): Likewise.
23762 * modules/propername (Link): Likewise.
23763 Reported by Jim Meyering.
23765 2008-05-26 Jim Meyering <meyering@redhat.com>
23767 sha256: do not artificially restrict buffer length to be < 2^32
23768 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23769 uint32_t to size_t.
23770 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23773 avoid unaligned access errors, e.g., on sparc
23774 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23775 direct access through a possibly-unaligned uint64* pointer.
23776 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23777 direct access through a possibly-unaligned uint32* pointer.
23778 Prompted by this patch from Tom "spot" Callaway:
23779 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23781 sha512.c: fix typo in comment
23782 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23784 2008-05-25 Bruno Haible <bruno@clisp.org>
23786 * lib/set-mode-acl.c: Renamed from lib/acl.c.
23787 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23788 (Makefile.am): Update lib_SOURCES.
23790 2008-05-25 Bruno Haible <bruno@clisp.org>
23792 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23794 2008-05-25 Jim Meyering <meyering@redhat.com>
23796 useless-if-before-free: freed expr may have white-space differences
23797 * build-aux/useless-if-before-free: Recognize cases in which the
23798 freed expression differs from the tested one in embedded white
23799 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
23800 $1 was used, so we can't make any regexp shy. Improved tests now
23803 useless-if-before-free: accept white space in the expression.
23804 * build-aux/useless-if-before-free: For now, any white space
23805 in the expression must be identical in the free argument.
23807 useless-if-before-free: efficiency tweak
23808 * build-aux/useless-if-before-free: Make the expression-matching
23810 Make the *outer* regexp shy, not the expr-matching one.
23812 update code-in-comment to accept cast of free arg
23813 * build-aux/useless-if-before-free: Update regexp.
23815 2008-05-25 Bruno Haible <bruno@clisp.org>
23817 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23818 * modules/copy-file-tests (Files, Makefile.am): Update.
23819 * tests/test-copy-file.c (func_test_copy): Update.
23821 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
23823 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23825 2008-05-23 Bruno Haible <bruno@clisp.org>
23827 Improve support for ACLs on OSF/1.
23828 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23829 Remove fallback for unknown flavors of ACLs.
23831 2008-05-22 Bruno Haible <bruno@clisp.org>
23833 Add support for ACLs on OSF/1.
23834 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23836 (acl_free_text): New macro fallback.
23837 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23839 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23840 acl_free_text function. Require AC_C_INLINE.
23842 2008-05-22 Bruno Haible <bruno@clisp.org>
23844 Make copy_acl work on MacOS X 10.5.
23845 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23846 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23847 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23848 If MODE_INSIDE_ACL, don't assume that every system has the same text
23849 representation for ACLs as FreeBSD.
23850 * lib/copy-acl.c (copy_acl): Add support for platforms with
23852 * lib/file-has-acl.c (file_has_acl): Likewise.
23853 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23854 FreeBSD, MacOS X, or IRIX, respectively.
23856 2008-05-22 Bruno Haible <bruno@clisp.org>
23858 * lib/acl.h: Don't include <sys/acl.h>.
23859 (GETACLCNT): Move fallback to lib/acl-internal.h.
23860 * lib/acl-internal.h: Include <sys/acl.h> here.
23861 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23863 2008-05-22 Bruno Haible <bruno@clisp.org>
23865 Split off copy_acl function to separate file.
23866 * lib/copy-acl.c: New file, extracted from lib/acl.c.
23867 * lib/acl.c (copy_acl): Moved function to separate file.
23868 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23869 * modules/acl (Files): Add lib/copy-acl.c.
23870 (Makefiles.am): Augment lib_SOURCES.
23872 2008-05-22 Bruno Haible <bruno@clisp.org>
23874 * modules/copy-file-tests: New file.
23875 * tests/test-copy-file.sh: New file.
23876 * tests/test-copy-file.c: New file.
23877 * tests/test-copy-file-sameacls.c: New file.
23879 2008-05-22 Eric Blake <ebb9@byu.net>
23882 * tests/test-memcmp.c (main): Pass NULL indirectly.
23884 2008-05-21 Bruno Haible <bruno@clisp.org>
23886 Add reference doc about ACLs.
23887 * doc/acl-resources.txt: New file.
23888 * doc/acl-cygwin.txt: New file.
23890 2008-05-21 Bruno Haible <bruno@clisp.org>
23892 Avoid one more warning from gcc.
23893 * lib/vasnprintf.c (IF_LINT): Update comments.
23894 (VASNPRINTF): Use it also for the 'prefix' array initializer.
23896 2008-05-21 Jim Meyering <meyering@redhat.com>
23898 avoid a warning from gcc
23899 * lib/vasnprintf.c (IF_LINT): Define.
23900 (scale10_round_decimal_long_double):
23901 Use it to avoid a "may be used uninitialized" warning.
23902 (scale10_round_decimal_double): Likewise.
23904 2008-05-21 Simon Josefsson <simon@josefsson.org>
23906 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23909 2008-05-20 Bruno Haible <bruno@clisp.org>
23911 * tests/test-memcmp.c (main): Test also the sign of the result. Test
23912 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23914 2008-05-20 Simon Josefsson <simon@josefsson.org>
23916 * modules/memcmp-tests: New file.
23917 * tests/test-memcmp.c: New file.
23919 2008-05-19 Bruno Haible <bruno@clisp.org>
23921 * modules/propername (Notice, configure.ac): Put quoted "..." into
23923 * lib/propername.h: Update comments accordingly.
23924 Reported by Eric Blake.
23926 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
23928 * modules/getpass-gnu (Depends-on): Add fseeko.
23930 2008-05-19 Simon Josefsson <simon@josefsson.org>
23932 * modules/base64-tests: New file.
23934 2008-05-19 Bo Borgerson <gigabo@gmail.com>
23936 * lib/base64.c (base64_decode_ctx): If a decode context structure
23937 was passed in use it to ignore newlines. If a context structure
23938 was _not_ passed in, continue to treat newlines as garbage (this
23939 is the historical behavior). Formerly base64_decode.
23940 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23941 takes a decode context structure.
23942 * lib/base64.h (base64_decode): Macro for four-argument calls.
23943 (base64_decode_alloc): Likewise.
23944 * lib/base64.c (base64_decode_ctx): If a decode context structure
23945 was passed in use it to ignore newlines. If a context structure
23946 was _not_ passed in, continue to treat newlines as garbage (this
23947 is the historical behavior). Formerly base64_decode.
23948 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23949 takes a decode context structure.
23950 * lib/base64.h (base64_decode): Macro for four-argument calls.
23951 (base64_decode_alloc): Likewise.
23953 2008-05-19 Jim Meyering <meyering@redhat.com>
23955 avoid a warning from gcc
23956 * lib/trim.c (IF_LINT): Define.
23957 (trim2): Use it to avoid a "may be used uninitialized" warning.
23960 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23962 2008-05-19 Bruno Haible <bruno@clisp.org>
23964 * doc/glibc-functions/getpass.texi: Document limits of other
23967 2008-05-19 Simon Josefsson <simon@josefsson.org>
23968 Bruno Haible <bruno@clisp.org>
23970 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23972 2008-05-18 Bruno Haible <bruno@clisp.org>
23974 * modules/propername: New file, from GNU gettext.
23975 * lib/propername.h: New file, from GNU gettext.
23976 * lib/propername.c: New file, from GNU gettext.
23977 * MODULES.html.sh (Internationalization functions): Add propername.
23979 2008-05-16 Jim Meyering <meyering@redhat.com>
23980 Bruno Haible <bruno@clisp.org>
23982 Avoid some warnings from "gcc -Wshadow".
23983 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23985 2008-05-15 Eric Blake <ebb9@byu.net>
23987 Extend previous patch to cygwin 1.7.0.
23988 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23989 fast implementation in cygwin >= 1.7.0.
23990 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23991 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23993 2008-05-15 Bruno Haible <bruno@clisp.org>
23995 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23996 implementation in glibc >= 2.9.
23997 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23998 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24000 2008-05-15 Bruno Haible <bruno@clisp.org>
24002 * MODULES.html.sh (Internationalization functions): Remove linebreak.
24003 (Unicode string functions): Add unilbrk/*.
24004 Reported by Karl Berry.
24006 2008-05-15 Eric Blake <ebb9@byu.net>
24008 Fix violation of <stdbool.h> replacement in regex.
24009 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24010 * lib/regexec.c (re_search_internal): Likewise.
24011 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24013 2008-05-15 Jim Meyering <meyering@redhat.com>
24015 avoid distracting test output when git or cvs is not found
24016 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24017 * tests/test-vc-list-files-git.sh: Likewise.
24019 2008-05-15 Eric Blake <ebb9@byu.net>
24021 Glibc finally accepted the memmem speedup code, bugzilla #5514.
24022 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24024 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24025 * doc/posix-functions/strstr.texi (strstr): Likewise.
24026 * lib/str-two-way.h (MAX): Sychronize with glibc.
24028 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
24030 * lib/regcomp.c (optimize_utf8): Add a note on why we test
24032 (calc_first): Initialize constraint field.
24033 (duplicate_node_closure): Use it instead of special casing ANCHORS.
24035 (duplicate_node): Merge constraint field for all node types.
24036 (calc_eclosure_iter): Look at constraint field for all node types.
24037 * lib/regex_internal.c (create_cd_newstate): Don't look at
24040 2008-05-14 Bruno Haible <bruno@clisp.org>
24042 Help GCC to do better code generation.
24043 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24044 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24045 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24046 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24047 Declare with attribute 'malloc' if supported.
24049 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
24051 use "echo STR|wc -c" rather than unportable "expr length STR"
24052 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24053 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24055 2008-05-14 Jim Meyering <meyering@redhat.com>
24057 use dd ibs=$n count=1 ... rather than less-portable head -c$n
24058 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24059 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24060 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24063 2008-05-14 Eric Blake <ebb9@byu.net>
24065 Avoid quadratic growth in gl_LIBSOURCES.
24066 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24067 Suggested by Bruno Haible.
24070 * modules/xmemdup0-tests: New file.
24071 * tests/test-xmemdup0.c: Likewise.
24073 2008-05-13 Eric Blake <ebb9@byu.net>
24075 Split xmemdup0 into its own module.
24076 * modules/xmemdup0: New file.
24077 * lib/xmemdup0.h: Likewise.
24078 * lib/xmemdup0.c: Likewise.
24079 * MODULES.html.sh (Memory management functions): Add xmemdup0.
24080 * lib/xalloc.h (xmemdup0): Remove.
24081 * lib/xmalloc.c (xmemdup0): Likewise.
24083 2008-05-13 Eric Blake <ebb9@byu.net>
24084 Bruno Haible <bruno@clisp.org>
24086 Reduce number of forks required during autoconf.
24087 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24088 and gl_LIBSOURCES_DIR.
24089 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24090 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24091 m4_syscmd per file.
24092 <m4_foreach_w>: Move...
24093 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24095 2008-05-13 Eric Blake <ebb9@byu.net>
24097 * gnulib-tool: Fix various comment typos.
24099 2008-05-12 Bruno Haible <bruno@clisp.org>
24101 Tailor the linebreaking algorithm.
24102 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24104 2008-05-12 Bruno Haible <bruno@clisp.org>
24106 Update to Unicode 5.0.0.
24107 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24108 LBP_JV, LBP_JT. Redistribute values.
24109 (unilbrk_table): Change size.
24110 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24111 Unicode TR#14 rev. 22.
24112 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24113 LBP_JV, LBP_JT. Redistribute values.
24114 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24115 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24117 * lib/unilbrk/lbrkprop1.h: Regenerated.
24118 * lib/unilbrk/lbrkprop2.h: Regenerated.
24119 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24120 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24121 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24123 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24125 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24127 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24128 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24129 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24130 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24131 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24132 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24134 2008-05-11 Bruno Haible <bruno@clisp.org>
24136 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24138 2008-05-11 Bruno Haible <bruno@clisp.org>
24140 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24141 * modules/unilbrk/gen-lbrk: New file.
24143 2008-05-11 Bruno Haible <bruno@clisp.org>
24145 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24146 * m4/sha512.m4 (gl_SHA512): Likewise.
24148 2008-05-11 Jim Meyering <meyering@redhat.com>
24150 New modules: crypto/sha256, crypto/sha512 (from coreutils)
24151 * modules/crypto/sha256: New file.
24152 * modules/crypto/sha512: Likewise.
24153 * lib/sha256.c: Likewise.
24154 * lib/sha256.h: Likewise.
24155 * lib/sha512.c: Likewise.
24156 * lib/sha512.h: Likewise.
24157 * lib/u64.h: Likewise.
24158 * m4/sha256.m4: Likewise.
24159 * m4/sha512.m4: Likewise.
24160 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24162 2008-05-10 Bruno Haible <bruno@clisp.org>
24164 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24165 (Input/Output <stdio.h>): Add xprintf.
24166 (Signal handling <signal.h>): Add strsignal.
24167 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24168 (Core language properties): Add func.
24169 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24170 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24172 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24173 (Input/output): New section.
24174 (File system functions): Add openat-die, stat-macros.
24175 (Networking functions): Add sockets.
24176 (Unicode string functions): Add unictype/*.
24177 (Support for building libraries and executables): Add gperf.
24178 (Support for building documentation): Add agpl-3.0.
24179 (Misc): Add nocrash.
24181 2008-05-10 Bruno Haible <bruno@clisp.org>
24183 * modules/unictype/gen-ctype: New file.
24185 2008-05-10 Jim Meyering <meyering@redhat.com>
24187 Make chdir-safer.c more efficient on a system with no symlinks.
24188 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24189 also if ELOOP is zero. Suggested by Bruno Haible.
24191 Make chdir-safer.c slightly safer.
24192 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24193 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24195 Avoid compile failure on systems without ELOOP (like mingw).
24196 * lib/chdir-safer.c (ELOOP): Define if not already defined.
24197 Reported by Bruno Haible.
24199 2008-05-10 Bruno Haible <bruno@clisp.org>
24201 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24202 (is_utf8_encoding): Use a case-insensitive comparison.
24203 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24206 2008-05-10 Bruno Haible <bruno@clisp.org>
24208 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24209 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24210 * lib/unilbrk/ulc-common.h (iconv_string_length,
24211 iconv_string_keeping_offsets): Remove declarations.
24212 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24213 Don't include <iconv.h>, streq.h, xsize.h.
24214 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24216 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24217 <iconv.h>, streq.h, xsize.h.
24218 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24220 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24221 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24222 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24223 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24225 2008-05-10 Bruno Haible <bruno@clisp.org>
24227 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24228 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24230 * modules/unilbrk/u32-width-linebreaks-tests: New file.
24231 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24233 * modules/unilbrk/u16-width-linebreaks-tests: New file.
24234 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24236 * modules/unilbrk/u8-width-linebreaks-tests: New file.
24237 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24239 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24240 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24242 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24243 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24245 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24246 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24248 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24249 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24251 2008-05-10 Bruno Haible <bruno@clisp.org>
24253 Split up 'linebreak' module.
24254 * lib/unilbrk.h: New file, based on lib/linebreak.h.
24255 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24256 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24258 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24259 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24260 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24262 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24264 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24266 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24267 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24268 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24270 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24272 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24274 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24276 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24278 * modules/unilbrk/base: New file.
24279 * modules/unilbrk/tables: New file.
24280 * modules/unilbrk/u8-possible-linebreaks: New file.
24281 * modules/unilbrk/u16-possible-linebreaks: New file.
24282 * modules/unilbrk/u32-possible-linebreaks: New file.
24283 * modules/unilbrk/ulc-common: New file.
24284 * modules/unilbrk/ulc-possible-linebreaks: New file.
24285 * modules/unilbrk/u8-width-linebreaks: New file.
24286 * modules/unilbrk/u16-width-linebreaks: New file.
24287 * modules/unilbrk/u32-width-linebreaks: New file.
24288 * modules/unilbrk/ulc-width-linebreaks: New file.
24289 * lib/linebreak.h: Remove file.
24290 * lib/linebreak.c: Remove file.
24291 * m4/linebreak.m4: Remove file.
24292 * modules/linebreak: Remove file.
24293 * NEWS: Mention the changes.
24295 2008-05-09 Eric Blake <ebb9@byu.net>
24298 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24300 * lib/xmalloc.c (xmemdup0): New C implementation.
24302 2008-05-08 Bruno Haible <bruno@clisp.org>
24304 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24306 2008-05-07 Eric Blake <ebb9@byu.net>
24308 Support cross-compilation of <wctype.h>.
24309 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24312 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
24314 * build-aux/vc-list-files: Add support for bzr.
24316 2008-05-03 Jim Meyering <meyering@redhat.com>
24318 avoid failed assertion with tight malloc
24319 * tests/test-getndelim2.c: Correct an off-by-one assertion.
24321 2008-05-03 Simon Josefsson <simon@josefsson.org>
24323 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24324 are needed from arpa/inet.h.
24325 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24326 Reported by Bruno Haible.
24328 2008-05-02 Jim Meyering <meyering@redhat.com>
24330 avoid compilation error on FreeBSD 6
24331 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24333 2008-05-01 Jim Meyering <meyering@redhat.com>
24335 useless-if-before-free: correct --help's exit status description
24336 * build-aux/useless-if-before-free (usage): Like grep, exit 0
24337 for one or more matches, etc. Reported by Bruno Haible.
24339 vc-list-files: make the stand-alone gnulib test work
24340 * modules/vc-list-files-tests (configure.ac):
24341 Define and AC_SUBST abs_aux_dir.
24342 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24343 $(abs_top_srcdir) to each script and having each of them
24344 duplicate the work of setting PATH, set PATH here, using
24345 the new variable, abs_aux_dir instead.
24346 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24347 * tests/test-vc-list-files-git.sh: Likewise.
24348 Reported by Bruno Haible.
24350 2008-05-01 Bruno Haible <bruno@clisp.org>
24352 * lib/getndelim2.c (getndelim2): Fix newsize computation during
24353 reallocation. Rename 'done' to 'found_delimiter'.
24355 2008-05-01 Jim Meyering <meyering@redhat.com>
24357 vc-list-files: accommodate /bin/sh like the one from Solaris 10
24358 * build-aux/vc-list-files: Use `...`, not $(...).
24360 2008-04-30 Jim Meyering <meyering@redhat.com>
24362 add tests for vc-list-files
24363 * modules/vc-list-files-tests: New module.
24364 * tests/test-vc-list-files-cvs.sh: New file.
24365 * tests/test-vc-list-files-git.sh: New file.
24367 avoid a warning from gcc
24368 * lib/getndelim2.c (IF_LINT): Define.
24369 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24371 vc-list-files: work properly with build-aux/cvsu, too
24372 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24373 to all cvs-based clauses.
24375 vc-list-files: work properly in the CVS+awk case, too
24376 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24378 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24379 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24380 take more than one file argument, so . Add quotes, just in case $dir
24381 ever contains a shell meta-character. Prompted by Soren Hansen in
24382 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24384 2008-04-29 Eric Blake <ebb9@byu.net>
24386 Optimize getndelim2 to use block operations when possible.
24387 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24388 freadseek, and memchr2.
24389 * lib/getndelim2.c (getndelim2): Use them for block reads.
24391 2008-04-29 Bruno Haible <bruno@clisp.org>
24393 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24394 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24395 * modules/inet_ntop (Depends-on): Add extensions.
24396 * modules/inet_pton (Depends-on): Likewise.
24397 Reported by Simon Josefsson.
24399 2008-04-29 Jim Meyering <meyering@redhat.com>
24401 When the is more than one match in a block, match all of them.
24402 * build-aux/useless-if-before-free: Iterate through each block
24403 until there are no more matches.
24405 Fix broken useless-if-before-free script.
24406 * build-aux/useless-if-before-free: Fix typo: missing "?" after
24407 the expression to match cast of argument to free-like function.
24409 2008-04-29 Eric Blake <ebb9@byu.net>
24412 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24414 2008-04-29 Jim Meyering <meyering@redhat.com>
24416 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24417 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24418 by gnulib to exist and to declare e.g., inet_ntop.
24419 Don't include "inet_ntop.h", now removed.
24421 * m4/arpa_inet_h.m4: Remove trailing blanks.
24423 2008-04-29 Eric Blake <ebb9@byu.net>
24425 Silence valgrind on safe reads beyond potential array bounds.
24426 * lib/rawmemchr.valgrind: New file.
24427 * lib/strchrnul.valgrind: Likewise.
24428 * modules/rawmemchr (Files): Distribute new file.
24429 * modules/strchrnul (Files): Likewise.
24430 Suggested by Bruno Haible.
24432 2008-04-29 Bruno Haible <bruno@clisp.org>
24434 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24435 (inet_ntop, inet_pton): Change portability warning's wording.
24436 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24437 Invoke gl_CHECK_NEXT_HEADERS.
24438 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24439 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24441 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24442 * modules/arpa_inet (Description): No longer only for systems that
24444 (Depends-on): Add include_next.
24445 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24448 2008-04-29 Jim Meyering <meyering@redhat.com>
24450 * modules/mkdir (License): Re-license as LGPLv2+.
24452 2008-04-29 Bruno Haible <bruno@clisp.org>
24454 * modules/rawmemchr (Maintainer): Set to Eric.
24455 * modules/strchrnul (Maintainer): Likewise.
24457 2008-04-29 Simon Josefsson <simon@josefsson.org>
24459 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24460 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24462 * modules/arpa_inet (arpa/inet.h): Use them.
24464 2008-04-28 Eric Blake <ebb9@byu.net>
24467 * modules/getndelim2-tests: New file.
24468 * tests/test-getndelim2.c: Likewise.
24469 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
24471 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24473 * MODULES.html.sh: Document new module.
24475 2008-04-20 Bruno Haible <bruno@clisp.org>
24477 * lib/c-stack.c (die): Use raise.
24478 * modules/c-stack (Depends-on): Add raise.
24480 2008-04-28 Bruno Haible <bruno@clisp.org>
24482 Expect rpmatch to be declared.
24483 * lib/yesno.c (rpmatch): Remove declaration.
24486 * lib/stdlib.in.h (rpmatch): New declaration.
24487 * lib/rpmatch.c: Include <stdlib.h> first.
24488 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24489 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24490 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24492 * modules/rpmatch (Depends-on): Add stdlib, extensions.
24493 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24494 (Include): Set to <stdlib.h>.
24495 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24497 * NEWS: Document the change.
24499 2008-04-28 Bruno Haible <bruno@clisp.org>
24501 Change rpmatch to use nl_langinfo when appropriate.
24502 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24504 (localized_pattern): New function/macro.
24505 (try): Remove match, nomatch arguments. Copy the pattern into safe
24506 memory before caching it.
24507 (rpmatch): Use localized_pattern. Add translator comments.
24508 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24509 Suggested by Eric Blake.
24510 * modules/rpmatch (Depends-on): Add stdbool.
24512 2008-04-28 Eric Blake <ebb9@byu.net>
24514 Add rawmemchr module, matching glibc.
24515 * modules/string (Makefile.am): New indicator.
24516 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24517 * lib/string.in.h (rawmemchr): Declare when appropriate.
24518 * modules/rawmemchr: New file.
24519 * m4/rawmemchr.m4: Likewise.
24520 * lib/rawmemchr.c: Likewise.
24521 * modules/rawmemchr-tests: Likewise.
24522 * tests/test-rawmemchr.c: Likewise.
24523 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24525 * modules/strchrnul (Depends-on): Add rawmemchr.
24526 * lib/strchrnul.c (strchrnul): Optimize a corner case.
24528 Whitespace cleanup.
24529 * tests/test-strchrnul.c: Reindent.
24530 * lib/strchrnul.c: Likewise.
24532 Optimize and test strchrnul.
24533 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24534 * modules/strchrnul-tests: New file.
24535 * tests/test-strchrnul.c: Likewise.
24537 Remove intprops dependency.
24538 * modules/memchr (Depends-on): Remove intprops.
24539 * modules/memrchr (Depends-on): Likewise.
24540 * modules/memchr2 (Depends-on): Likewise.
24541 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24542 * lib/memrchr.c (__memrchr): Likewise.
24543 * lib/memrchr2.c (memchr2): Likewise.
24544 Reported by Simon Josefsson.
24546 2008-04-28 Simon Josefsson <simon@josefsson.org>
24548 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24549 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24551 2008-04-28 Simon Josefsson <simon@josefsson.org>
24553 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24555 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24557 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24559 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24561 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24563 * m4/inet_pton.m4: Don't check for header files.
24565 * m4/inet_ntop.m4: Don't check for header files.
24567 2008-04-28 Simon Josefsson <simon@josefsson.org>
24569 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24570 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24571 trigger for cygwin).
24572 Reported by Bruno Haible <bruno@clisp.org>.
24574 2008-04-28 Bruno Haible <bruno@clisp.org>
24576 * doc/posix-functions/strdup.texi: Mention mingw problem.
24578 2008-04-27 Bruno Haible <bruno@clisp.org>
24580 * modules/stat-time-tests (Depends-on): Add sleep.
24581 * tests/test-stat-time.c (force_unlink): New function.
24583 (test_mtime): Remove the ctime related tests.
24584 (test_ctime): New function, containing the ctime related tests.
24585 (main): Call test_ctime, except on native Windows platforms.
24587 2008-04-27 Bruno Haible <bruno@clisp.org>
24589 * lib/rpmatch.c (rpmatch): Add some comments.
24590 Reported by James Youngman <jay@gnu.org>.
24592 2008-04-27 Bruno Haible <bruno@clisp.org>
24594 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24597 2008-04-27 Bruno Haible <bruno@clisp.org>
24599 Make test-yesno.sh work on mingw.
24600 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24601 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24602 (main): Set stdin to binary mode.
24603 * modules/yesno-tests (Depends-on): Add binary-io.
24605 2008-04-27 Bruno Haible <bruno@clisp.org>
24607 Fix 'isfinite' on x86, x86_64, ia64 platforms.
24608 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24609 argument that lie outside the IEEE 854 domain.
24610 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24611 (gl_ISFINITE): Use it.
24612 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24614 2008-04-27 Bruno Haible <bruno@clisp.org>
24616 Allow local renaming in config.h.
24617 * lib/memrchr.c (memrchr): Don't undefine outside libc.
24619 2008-04-27 Bruno Haible <bruno@clisp.org>
24621 * lib/memchr.c (__memchr): Change type of 'i'.
24622 * lib/memchr2.c (memchr2): Likewise.
24624 2008-04-26 Eric Blake <ebb9@byu.net>
24625 and Bruno Haible <bruno@clisp.org>
24627 Optimize and test memrchr.
24628 * modules/memrchr (Depends-on): Add intprops.
24629 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24630 * modules/memrchr-tests: New file.
24631 * tests/test-memrchr.c: New file.
24633 2008-04-26 Bruno Haible <bruno@clisp.org>
24635 Add tentative support for DragonFly BSD.
24636 * lib/stdio-impl.h: Add macros for DragonFly BSD.
24637 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24639 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24640 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24641 * lib/fpurge.c (fpurge): Likewise.
24642 * lib/freadable.c (freaadable): Likewise.
24643 * lib/freadahead.c (freadahead): Likewise.
24644 * lib/freading.c (freading): Likewise.
24645 * lib/freadptr.c (freadptr): Likewise.
24646 * lib/freadseek.c (freadptrinc): Likewise.
24647 * lib/fseeko.c (fseeko): Likewise.
24648 * lib/fseterr.c (fseterr): Likewise.
24649 * lib/fwritable.c (fwritable): Likewise.
24650 * lib/fwriting.c (fwriting): Likewise.
24652 2008-04-26 Bruno Haible <bruno@clisp.org>
24654 * lib/stdio-impl.h: New file.
24655 * lib/fbufmode.c: Include stdio-impl.h.
24656 (fbufmode): Use fp_, remove redundant #defines.
24657 * lib/fflush.c: Include stdio-impl.h.
24658 (clear_ungetc_buffer): Remove redundant #defines.
24659 * lib/fpurge.c: Include stdio-impl.h.
24660 (fpurge): Remove redundant #defines.
24661 * lib/freadable.c: Include stdio-impl.h.
24662 (freadable): Remove redundant #defines.
24663 * lib/freadahead.c: Include stdio-impl.h.
24664 (freadahead): Remove redundant #defines.
24665 * lib/freading.c: Include stdio-impl.h.
24666 (freading): Remove redundant #defines.
24667 * lib/freadptr.c: Include stdio-impl.h.
24668 (freadptr): Remove redundant #defines.
24669 * lib/freadseek.c: Include stdio-impl.h.
24670 (freadptrinc): Remove redundant #defines.
24671 * lib/fseeko.c: Include stdio-impl.h.
24672 (rpl_fseeko): Remove redundant #defines.
24673 * lib/fseterr.c: Include stdio-impl.h.
24674 (fseterr): Remove redundant #defines.
24675 * lib/fwritable.c: Include stdio-impl.h.
24676 (fwritable: Remove redundant #defines.
24677 * lib/fwriting.c: Include stdio-impl.h.
24678 (fwriting): Remove redundant #defines.
24679 * modules/fbufmode (Files): Add lib/stdio-impl.h.
24680 * modules/fflush (Files): Likewise.
24681 * modules/fpurge (Files): Likewise.
24682 * modules/freadable (Files): Likewise.
24683 * modules/freadahead (Files): Likewise.
24684 * modules/freading (Files): Likewise.
24685 * modules/freadptr (Files): Likewise.
24686 * modules/freadseek (Files): Likewise.
24687 * modules/fseeko (Files): Likewise.
24688 * modules/fseterr (Files): Likewise.
24689 * modules/fwritable (Files): Likewise.
24690 * modules/fwriting (Files): Likewise.
24692 2008-04-26 Bruno Haible <bruno@clisp.org>
24694 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24695 restore_seek_optimization, update_fpos_cache): New functions, extracted
24697 (rpl_fflush): Use them.
24698 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24699 (gl_REPLACE_FFLUSH): Use it.
24701 2008-04-26 Bruno Haible <bruno@clisp.org>
24703 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24705 * tests/test-xstrtoimax.sh: Likewise.
24706 * tests/test-xstrtoumax.sh: Likewise.
24707 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24709 2008-04-26 Bruno Haible <bruno@clisp.org>
24711 * modules/memchr-tests: New file.
24712 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24714 2008-04-26 Eric Blake <ebb9@byu.net>
24715 Bruno Haible <bruno@clisp.org>
24717 * lib/memchr.c: Include intprops.h.
24718 (__memchr): Optimize parallel detection of matching bytes. Rename local
24719 variables. Add explanatory comments.
24721 2008-04-26 Bruno Haible <bruno@clisp.org>
24723 Fix module 'memchr', broken since 2000-10-28.
24724 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24726 2008-04-26 Bruno Haible <bruno@clisp.org>
24728 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24731 2008-04-25 Eric Blake <ebb9@byu.net>
24733 Use native fstatat on cygwin 1.7.0.
24734 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24737 2008-04-23 Eric Blake <ebb9@byu.net>
24739 Improve memchr2 performance.
24740 * lib/memchr2.c (memchr2): Further optimize parallel detection of
24742 * modules/memchr2 (Depends-on): Use intprops.h.
24744 2008-04-23 Simon Josefsson <simon@josefsson.org>
24746 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24747 an inline function instead of a CPP macro. Patch by Ben Pfaff
24748 <blp@cs.stanford.edu>.
24750 2008-04-23 Simon Josefsson <simon@josefsson.org>
24752 * lib/arpa_inet.in.h: New file.
24754 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24755 (Makefile.am): Sed in substitute header file.
24757 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24758 gl_ARPA_INET_MODULE_INDICATOR. Use them.
24760 * modules/inet_ntop (configure.ac): Use
24761 gl_ARPA_INET_MODULE_INDICATOR.
24763 * modules/inet_pton (configure.ac): Use
24764 gl_ARPA_INET_MODULE_INDICATOR.
24766 2008-04-22 Jim Meyering <meyering@redhat.com>
24768 * modules/verify (License): Re-license as LGPLv2+.
24770 2008-04-22 Simon Josefsson <simon@josefsson.org>
24772 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24773 parameter to void* as per POSIX standard (MinGW uses char*).
24775 2008-04-21 Bruno Haible <bruno@clisp.org>
24777 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24778 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24779 Define to replacements if REPLACE_ISWCNTRL is 1.
24780 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24781 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24782 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24783 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24785 * doc/posix-functions/iswalpha.texi: Likewise.
24786 * doc/posix-functions/iswblank.texi: Likewise.
24787 * doc/posix-functions/iswcntrl.texi: Likewise.
24788 * doc/posix-functions/iswdigit.texi: Likewise.
24789 * doc/posix-functions/iswgraph.texi: Likewise.
24790 * doc/posix-functions/iswlower.texi: Likewise.
24791 * doc/posix-functions/iswprint.texi: Likewise.
24792 * doc/posix-functions/iswpunct.texi: Likewise.
24793 * doc/posix-functions/iswspace.texi: Likewise.
24794 * doc/posix-functions/iswupper.texi: Likewise.
24795 * doc/posix-functions/iswxdigit.texi: Likewise.
24796 Reported by Alain Guibert.
24798 2008-04-21 Bruno Haible <bruno@clisp.org>
24800 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24801 Patch by Alain Guibert.
24803 2008-04-21 Bruno Haible <bruno@clisp.org>
24805 Fix test failures on mingw.
24806 * tests/test-xstrtol.c (print_no_progname): New function.
24807 (main): Install it in error_print_progname hook.
24808 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24809 * tests/test-xstrtoimax.sh: Likewise.
24810 * tests/test-xstrtoumax.sh: Likewise.
24812 2008-04-21 Bruno Haible <bruno@clisp.org>
24814 Fix test failure on mingw.
24815 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24817 2008-04-21 Bruno Haible <bruno@clisp.org>
24819 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24820 Actually assign a value.
24822 2008-04-20 Bruno Haible <bruno@clisp.org>
24824 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24826 * lib/canonicalize.c (canonicalize_file_name): Elide if the
24827 'canonicalize-lgpl' module is also used.
24828 * lib/canonicalize-lgpl.c: Undo last change.
24829 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24831 2008-04-20 Bruno Haible <bruno@clisp.org>
24833 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24834 config.h. Provide _mkdir based fallback for mingw.
24835 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24836 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24837 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24838 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24839 rather than defining mkdir in config.h.
24840 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24841 (gl_SYS_STAT_H_DEFAULTS): New macro.
24842 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24843 HAVE_IO_H any more.
24844 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24845 HAVE_DECL_MKDIR and HAVE_IO_H.
24847 2008-04-20 Bruno Haible <bruno@clisp.org>
24849 * lib/isapipe.c: Port to native Windows platforms.
24851 2008-04-20 Bruno Haible <bruno@clisp.org>
24853 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24855 2008-04-21 Eric Blake <ebb9@byu.net>
24857 Work around preprocessors that don't handle UINTMAX_MAX.
24858 * lib/memchr2.c (memchr2): Avoid embedded #if.
24859 Reported by Alain Guibert, fix suggested by Bruno Haible.
24861 2008-04-21 Simon Josefsson <simon@josefsson.org>
24863 * doc/posix-functions/strftime.texi (strftime): Explain better
24864 Windows incompatibility. Suggested by Micah Cowan
24865 <micah@cowan.name>.
24867 2008-04-20 Bruno Haible <bruno@clisp.org>
24869 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24872 2008-04-20 Bruno Haible <bruno@clisp.org>
24874 Fix test failure on platforms with non-GNU iconv.
24875 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24876 (U_TO_U8): Use it, rather than u16_to_u8.
24877 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24878 units at the end of the input string.
24879 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24881 2008-04-20 Bruno Haible <bruno@clisp.org>
24883 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24884 when the resulting length is 0.
24885 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24887 2008-04-20 Bruno Haible <bruno@clisp.org>
24889 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24891 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24893 2008-04-20 Bruno Haible <bruno@clisp.org>
24895 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24896 * modules/tsearch-tests (configure.ac): Test for initstate function.
24898 2008-04-20 Bruno Haible <bruno@clisp.org>
24900 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24901 for nlink_t if missing.
24902 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24904 2008-04-19 Bruno Haible <bruno@clisp.org>
24906 Work around snprintf bug on Linux libc5.
24907 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24908 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24910 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24911 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24913 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24914 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24915 * modules/snprintf (Files): Add m4/printf.m4.
24916 * modules/vsnprintf (Files): Likewise.
24917 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24918 * doc/posix-functions/vsnprintf.texi: Likewise.
24920 2008-04-19 Bruno Haible <bruno@clisp.org>
24922 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24923 from 0.0058 to less than 10^-7.
24925 2008-04-19 Bruno Haible <bruno@clisp.org>
24927 Fix rounding when a precision is given.
24928 * lib/vasnprintf.c (is_borderline): New function.
24929 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24931 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24933 * tests/test-vasprintf-posix.c (test_function): Likewise.
24934 * tests/test-snprintf-posix.h (test_function): Likewise.
24935 * tests/test-sprintf-posix.h (test_function): Likewise.
24936 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24937 * tests/test-printf-posix.h (test_function): Likewise.
24938 * tests/test-printf-posix.output: Update.
24939 Reported by John Darrington <john@darrington.wattle.id.au> via
24940 Ben Pfaff <blp@cs.stanford.edu>.
24942 2008-04-18 Simon Josefsson <simon@josefsson.org>
24944 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24945 Suggested by Bruno Haible <bruno@clisp.org>.
24947 2008-04-17 Bruno Haible <bruno@clisp.org>
24949 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24950 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24952 Patch by Bruce Merry <bmerry@gmail.com>.
24954 2008-04-17 Simon Josefsson <simon@josefsson.org>
24956 * doc/posix-functions/strftime.texi (strftime): Mention that %e
24957 doesn't work under Windows.
24959 2008-04-16 Bruno Haible <bruno@clisp.org>
24961 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24963 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24964 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24965 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24966 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24967 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24968 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24969 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24971 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24972 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24973 Northern Sotho, Uighur.
24975 2008-04-16 Bruno Haible <bruno@clisp.org>
24977 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24978 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24979 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24980 Reported by Daniel Bergström <daniel@octocode.com>.
24982 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
24983 Bruno Haible <bruno@clisp.org>
24985 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24987 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24988 New functions, mostly extracted from gl_locale_name_default.
24989 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24991 2008-04-16 Eric Blake <ebb9@byu.net>
24993 Adjust strtod detection to catch glibc 2.7 bug.
24994 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24995 Reported by John Gatewood Ham.
24997 2008-04-16 Bruno Haible <bruno@clisp.org>
24999 Add tentative support for Linux libc5.
25000 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25001 * lib/fpurge.c (fpurge): Likewise.
25002 * lib/freadable.c (freadable): Likewise.
25003 * lib/freadahead.c (freadahead): Likewise.
25004 * lib/freading.c (freading): Likewise.
25005 * lib/freadptr.c (freadptr): Likewise.
25006 * lib/freadseek.c (freadptrinc): Likewise.
25007 * lib/fseeko.c (rpl_fseeko): Likewise.
25008 * lib/fseterr.c (fseterr): Likewise.
25009 * lib/fwritable.c (fwritable): Likewise.
25010 * lib/fwriting.c (fwriting): Likewise.
25011 Reported by Alain Guibert <alguibert+bts@free.fr>.
25013 2008-04-15 Bruno Haible <bruno@clisp.org>
25015 * modules/mathl (configure.ac): Define module indicator.
25017 2008-04-15 Bruno Haible <bruno@clisp.org>
25019 * lib/logl.c (logl): Remove unused variables.
25021 2008-04-15 Bruno Haible <bruno@clisp.org>
25023 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25026 2008-04-15 Bruno Haible <bruno@clisp.org>
25028 * lib/trim.c (trim2): Fix argument of isspace() macro.
25030 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
25032 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25034 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25036 2008-04-14 Bruno Haible <bruno@clisp.org>
25038 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25039 AC_LANG_PROGRAM argument.
25040 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25041 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25042 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25043 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25044 * m4/math_h.m4 (gl_MATH_H): Likewise.
25045 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25046 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25047 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25048 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25049 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25050 * m4/regex.m4 (gl_REGEX): Likewise.
25051 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25052 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25053 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25054 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25055 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25056 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25057 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25058 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25060 2008-04-14 Jim Meyering <meyering@redhat.com>
25062 test-strtod: fix typos: s/abs/fabs/
25063 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25065 2008-04-13 Bruno Haible <bruno@clisp.org>
25067 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25068 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25069 module is also used and while not building the reloc-wrapper.
25071 2008-04-13 Bruno Haible <bruno@clisp.org>
25073 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25075 2008-04-13 Bruno Haible <bruno@clisp.org>
25077 Fix AIX compilation failure introduced on 2008-04-02.
25078 * tests/test-frexp.c (exp): Undefine before redefining.
25079 * tests/test-frexpl.c (exp): Likewise.
25081 2008-04-13 Bruno Haible <bruno@clisp.org>
25083 Work around a HP-UX stdio bug.
25084 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25085 * tests/test-ftello.c (main): Likewise.
25086 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25087 * doc/posix-functions/ftello.texi: Likewise.
25089 2008-04-13 Bruno Haible <bruno@clisp.org>
25091 Make test-signbit pass on HP-UX/hppa.
25092 * tests/test-signbit.c (minus_zerol): New variable.
25093 (test_signbitl): Use it.
25095 2008-04-13 Bruno Haible <bruno@clisp.org>
25097 Make truncl work on OSF/1 4.0.
25098 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25099 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25100 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25101 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25103 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25105 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25107 2008-04-13 Bruno Haible <bruno@clisp.org>
25109 * lib/unictype.h: Remove trailing comma from enumeration definitions.
25111 2008-04-13 Bruno Haible <bruno@clisp.org>
25113 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25114 expression, so as to avoid HP-UX 11 cc compiler bug.
25116 2008-04-13 Bruno Haible <bruno@clisp.org>
25118 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25120 2008-04-13 Bruno Haible <bruno@clisp.org>
25122 * lib/git-merge-changelog.c: Remove empty declaration outside of
25125 2008-04-13 Bruno Haible <bruno@clisp.org>
25127 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25129 2008-04-13 Bruno Haible <bruno@clisp.org>
25131 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25132 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25133 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25134 also if it exists but lacks definitions of the SHUT_* macros.
25135 * modules/sys_socket (Description): Update.
25136 Reported by Elbert Pol <e.pol@chello.nl>.
25138 2008-04-13 Bruno Haible <bruno@clisp.org>
25140 * lib/localcharset.c (OS2): Don't redefine if already defined.
25141 Reported by Elbert Pol <e.pol@chello.nl>.
25143 2008-04-13 Bruno Haible <bruno@clisp.org>
25145 * lib/binary-io.h [__EMX__]: Include <io.h>.
25146 Reported by Elbert Pol <e.pol@chello.nl>.
25148 2008-04-12 Bruno Haible <bruno@clisp.org>
25150 * lib/fpucw.h: Enable the definitions also for x86_64.
25151 Needed for NetBSD/x86_64.
25152 Reported by Thomas Klausner <tk@giga.or.at>.
25154 2008-04-12 Bruno Haible <bruno@clisp.org>
25156 * tests/test-strtod.c: Include isnand.h.
25157 (main): Use isnand instead of isnan.
25158 Reported by Jim Meyering.
25160 2008-04-12 Bruno Haible <bruno@clisp.org>
25162 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25163 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25165 2008-04-12 Jim Meyering <meyering@redhat.com>
25167 * m4/math_h.m4 (gl_MATH_H): Fix typos.
25169 2008-04-12 Bruno Haible <bruno@clisp.org>
25171 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25172 Reported by Elbert Pol <e.pol@chello.nl>.
25174 2008-04-12 Eric Blake <ebb9@byu.net>
25176 Work around Solaris 10 math.h bug.
25177 * m4/math_h.m4 (gl_MATH_H): Check for bug.
25178 (gl_MATH_H_DEFAULTS): Set up default.
25179 * modules/math (Makefile.am): Replace new indicators.
25180 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25181 * tests/test-math.c (main): Test this.
25182 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25183 * doc/posix-headers/math.texi (math.h): Mention bug.
25184 Reported by Nelson H. F. Beebe and Jim Meyering.
25186 2008-04-11 Bruno Haible <bruno@clisp.org>
25188 Adapt to future versions of Apple GCC.
25189 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25190 Reported by Peter O'Gorman <peter@pogma.com>.
25192 2008-04-11 Bruno Haible <bruno@clisp.org>
25194 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25196 2008-04-11 Bruno Haible <bruno@clisp.org>
25198 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25200 * modules/getaddrinfo-tests (Makefile.am): Define
25201 test_getaddrinfo_LDADD.
25203 2008-04-11 Bruno Haible <bruno@clisp.org>
25205 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25206 (init): Fix syntax error.
25207 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25210 2008-04-11 Bruno Haible <bruno@clisp.org>
25212 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25213 * modules/glob (Depends-on): Add stdbool.
25215 2008-04-11 Bruno Haible <bruno@clisp.org>
25217 * lib/trim.c: Include <string.h>.
25219 2008-04-11 Eric Blake <ebb9@byu.net>
25221 Avoid compile failure on OS/2.
25222 * lib/regex_internal.h (internal_function): Disable optimization
25223 on OS/2 (__EMX__), where it caused compiler error.
25224 Reported by Elbert Pol.
25226 2008-04-11 Bruno Haible <bruno@clisp.org>
25228 Flush the standard error stream before aborting. Needed on mingw.
25229 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25230 * tests/test-array_list.c (ASSERT): Likewise.
25231 * tests/test-array_oset.c (ASSERT): Likewise.
25232 * tests/test-avltree_list.c (ASSERT): Likewise.
25233 * tests/test-avltree_oset.c (ASSERT): Likewise.
25234 * tests/test-avltreehash_list.c (ASSERT): Likewise.
25235 * tests/test-binary-io.c (ASSERT): Likewise.
25236 * tests/test-byteswap.c (ASSERT): Likewise.
25237 * tests/test-c-ctype.c (ASSERT): Likewise.
25238 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25239 * tests/test-c-strcasestr.c (ASSERT): Likewise.
25240 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25241 * tests/test-c-strstr.c (ASSERT): Likewise.
25242 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25243 * tests/test-canonicalize.c (ASSERT): Likewise.
25244 * tests/test-carray_list.c (ASSERT): Likewise.
25245 * tests/test-ceilf1.c (ASSERT): Likewise.
25246 * tests/test-ceilf2.c (ASSERT): Likewise.
25247 * tests/test-ceill.c (ASSERT): Likewise.
25248 * tests/test-count-one-bits.c (ASSERT): Likewise.
25249 * tests/test-fbufmode.c (ASSERT): Likewise.
25250 * tests/test-fflush2.c (ASSERT): Likewise.
25251 * tests/test-floorf1.c (ASSERT): Likewise.
25252 * tests/test-floorf2.c (ASSERT): Likewise.
25253 * tests/test-floorl.c (ASSERT): Likewise.
25254 * tests/test-fopen.c (ASSERT): Likewise.
25255 * tests/test-fpending.c (ASSERT): Likewise.
25256 * tests/test-fprintf-posix.c (ASSERT): Likewise.
25257 * tests/test-fpurge.c (ASSERT): Likewise.
25258 * tests/test-freadable.c (ASSERT): Likewise.
25259 * tests/test-freadahead.c (ASSERT): Likewise.
25260 * tests/test-freading.c (ASSERT): Likewise.
25261 * tests/test-freadptr.c (ASSERT): Likewise.
25262 * tests/test-freadptr2.c (ASSERT): Likewise.
25263 * tests/test-freadseek.c (ASSERT): Likewise.
25264 * tests/test-freopen.c (ASSERT): Likewise.
25265 * tests/test-frexp.c (ASSERT): Likewise.
25266 * tests/test-frexpl.c (ASSERT): Likewise.
25267 * tests/test-fseek.c (ASSERT): Likewise.
25268 * tests/test-fseeko.c (ASSERT): Likewise.
25269 * tests/test-fstrcmp.c (ASSERT): Likewise.
25270 * tests/test-ftell.c (ASSERT): Likewise.
25271 * tests/test-ftello.c (ASSERT): Likewise.
25272 * tests/test-func.c (ASSERT): Likewise.
25273 * tests/test-fwritable.c (ASSERT): Likewise.
25274 * tests/test-fwriting.c (ASSERT): Likewise.
25275 * tests/test-getdelim.c (ASSERT): Likewise.
25276 * tests/test-getline.c (ASSERT): Likewise.
25277 * tests/test-i-ring.c (ASSERT): Likewise.
25278 * tests/test-iconv-utf.c (ASSERT): Likewise.
25279 * tests/test-iconv.c (ASSERT): Likewise.
25280 * tests/test-isfinite.c (ASSERT): Likewise.
25281 * tests/test-isnand.c (ASSERT): Likewise.
25282 * tests/test-isnanf.c (ASSERT): Likewise.
25283 * tests/test-isnanl.h (ASSERT): Likewise.
25284 * tests/test-ldexpl.c (ASSERT): Likewise.
25285 * tests/test-linked_list.c (ASSERT): Likewise.
25286 * tests/test-linkedhash_list.c (ASSERT): Likewise.
25287 * tests/test-localename.c (ASSERT): Likewise.
25288 * tests/test-lseek.c (ASSERT): Likewise.
25289 * tests/test-mbscasecmp.c (ASSERT): Likewise.
25290 * tests/test-mbscasestr1.c (ASSERT): Likewise.
25291 * tests/test-mbscasestr2.c (ASSERT): Likewise.
25292 * tests/test-mbscasestr3.c (ASSERT): Likewise.
25293 * tests/test-mbscasestr4.c (ASSERT): Likewise.
25294 * tests/test-mbschr.c (ASSERT): Likewise.
25295 * tests/test-mbscspn.c (ASSERT): Likewise.
25296 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25297 * tests/test-mbspbrk.c (ASSERT): Likewise.
25298 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25299 * tests/test-mbsrchr.c (ASSERT): Likewise.
25300 * tests/test-mbsspn.c (ASSERT): Likewise.
25301 * tests/test-mbsstr1.c (ASSERT): Likewise.
25302 * tests/test-mbsstr2.c (ASSERT): Likewise.
25303 * tests/test-mbsstr3.c (ASSERT): Likewise.
25304 * tests/test-memchr2.c (ASSERT): Likewise.
25305 * tests/test-memmem.c (ASSERT): Likewise.
25306 * tests/test-open.c (ASSERT): Likewise.
25307 * tests/test-printf-frexp.c (ASSERT): Likewise.
25308 * tests/test-printf-frexpl.c (ASSERT): Likewise.
25309 * tests/test-printf-posix.c (ASSERT): Likewise.
25310 * tests/test-quotearg.c (ASSERT): Likewise.
25311 * tests/test-rbtree_list.c (ASSERT): Likewise.
25312 * tests/test-rbtree_oset.c (ASSERT): Likewise.
25313 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25314 * tests/test-round1.c (ASSERT): Likewise.
25315 * tests/test-roundf1.c (ASSERT): Likewise.
25316 * tests/test-roundl.c (ASSERT): Likewise.
25317 * tests/test-signbit.c (ASSERT): Likewise.
25318 * tests/test-sleep.c (ASSERT): Likewise.
25319 * tests/test-snprintf-posix.c (ASSERT): Likewise.
25320 * tests/test-snprintf.c (ASSERT): Likewise.
25321 * tests/test-sprintf-posix.c (ASSERT): Likewise.
25322 * tests/test-stat-time.c (ASSERT): Likewise.
25323 * tests/test-strcasestr.c (ASSERT): Likewise.
25324 * tests/test-strerror.c (ASSERT): Likewise.
25325 * tests/test-striconv.c (ASSERT): Likewise.
25326 * tests/test-striconveh.c (ASSERT): Likewise.
25327 * tests/test-striconveha.c (ASSERT): Likewise.
25328 * tests/test-strsignal.c (ASSERT): Likewise.
25329 * tests/test-strstr.c (ASSERT): Likewise.
25330 * tests/test-strtod.c (ASSERT): Likewise.
25331 * tests/test-trunc1.c (ASSERT): Likewise.
25332 * tests/test-trunc2.c (ASSERT): Likewise.
25333 * tests/test-truncf1.c (ASSERT): Likewise.
25334 * tests/test-truncf2.c (ASSERT): Likewise.
25335 * tests/test-truncl.c (ASSERT): Likewise.
25336 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25337 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25338 * tests/test-vasnprintf.c (ASSERT): Likewise.
25339 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25340 * tests/test-vasprintf.c (ASSERT): Likewise.
25341 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25342 * tests/test-vprintf-posix.c (ASSERT): Likewise.
25343 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25344 * tests/test-vsnprintf.c (ASSERT): Likewise.
25345 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25346 * tests/test-wcwidth.c (ASSERT): Likewise.
25347 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25348 * tests/test-xprintf-posix.c (ASSERT): Likewise.
25349 * tests/test-xvasprintf.c (ASSERT): Likewise.
25350 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25351 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25352 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25353 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25354 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25355 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25356 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25357 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25358 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25359 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25360 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25361 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25362 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25363 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25364 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25365 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25366 * tests/unictype/test-block_list.c (ASSERT): Likewise.
25367 * tests/unictype/test-block_of.c (ASSERT): Likewise.
25368 * tests/unictype/test-block_test.c (ASSERT): Likewise.
25369 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25370 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25371 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25372 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25373 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25374 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25375 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25376 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25377 * tests/unictype/test-combining.c (ASSERT): Likewise.
25378 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25379 * tests/unictype/test-digit.c (ASSERT): Likewise.
25380 * tests/unictype/test-mirror.c (ASSERT): Likewise.
25381 * tests/unictype/test-numeric.c (ASSERT): Likewise.
25382 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25383 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25384 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25385 * tests/unictype/test-scripts.c (ASSERT): Likewise.
25386 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25387 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25388 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25389 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25390 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25391 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25392 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25393 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25394 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25395 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25396 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25397 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25398 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25399 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25400 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25401 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25402 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25403 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25404 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25405 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25406 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25407 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25408 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25409 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25410 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25411 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25412 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25413 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25414 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25415 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25416 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25417 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25418 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25419 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25420 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25421 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25422 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25423 Reported by Eric Blake.
25425 2008-04-11 Bruno Haible <bruno@clisp.org>
25427 * lib/wchar.in.h: Tweak comment.
25429 2008-04-11 Bruno Haible <bruno@clisp.org>
25431 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25432 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25434 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25436 2008-04-11 Bruno Haible <bruno@clisp.org>
25438 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25440 2008-04-11 Simon Josefsson <simon@josefsson.org>
25442 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25443 of attempting to use non-existing /dev/*random. Based on patch
25444 from Adam Strzelecki <ono@java.pl> in
25445 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25447 2008-04-08 Bruno Haible <bruno@clisp.org>
25449 Add tentative support for emx+gcc.
25450 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25451 * lib/fpurge.c (fpurge): Likewise.
25452 * lib/freadable.c (freadable): Likewise.
25453 * lib/freadahead.c (freadahead): Likewise.
25454 * lib/freading.c (freading): Likewise.
25455 * lib/freadptr.c (freadptr): Likewise.
25456 * lib/freadseek.c (freadptrinc): Likewise.
25457 * lib/fseeko.c (rpl_fseeko): Likewise.
25458 * lib/fseterr.c (fseterr): Likewise.
25459 * lib/fwritable.c (fwritable): Likewise.
25460 * lib/fwriting.c (fwriting): Likewise.
25461 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25463 2008-04-09 Eric Blake <ebb9@byu.net>
25465 Avoid some autoconf warnings.
25466 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25467 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25468 * m4/afs.m4 (gl_AFS): Likewise.
25469 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25470 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25471 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25472 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25473 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25474 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25475 (AC_CHECK_DECLS_ONCE): Likewise.
25477 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25478 gnulib-tool requires autoconf 2.59 or better.
25479 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25481 2008-04-08 Eric Blake <ebb9@byu.net>
25483 Use 'git describe --match' if present (added in git 1.5.5).
25484 * build-aux/git-version-gen: Limit result to tags that match 'v*'
25487 2008-04-08 Bruno Haible <bruno@clisp.org>
25489 Add tentative support for OpenServer.
25490 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25492 * lib/fpurge.c (fpurge): Likewise.
25493 * lib/freadable.c (freadable): Likewise.
25494 * lib/freadahead.c (freadahead): Likewise.
25495 * lib/freading.c (freading): Likewise.
25496 * lib/freadptr.c (freadptr): Likewise.
25497 * lib/freadseek.c (freadptrinc): Likewise.
25498 * lib/fseeko.c (rpl_fseeko): Likewise.
25499 * lib/fseterr.c (fseterr): Likewise.
25500 * lib/fwritable.c (fwritable): Likewise.
25501 * lib/fwriting.c (fwriting): Likewise.
25502 Reported by Roger Cornelius <rac@tenzing.org> and
25503 Brian K. White <brian@aljex.com>.
25505 2008-04-06 Jim Meyering <meyering@redhat.com>
25507 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25509 2008-04-06 Bruno Haible <bruno@clisp.org>
25511 Avoid possible error with non-ASCII bytes in UTF-8 locales.
25512 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25513 * tests/test-printf-posix.sh: Likewise.
25514 * tests/test-vfprintf-posix.sh: Likewise.
25515 * tests/test-vprintf-posix.sh: Likewise.
25516 * tests/test-xprintf-posix.sh: Likewise.
25518 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25520 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25521 hide error from 'ls', needed on OS/2.
25522 Report by Elbert Pol <elbert.pol@gmail.com>.
25524 2008-04-04 Eric Blake <ebb9@byu.net>
25526 Make test-fseeko.c failures meaningful.
25527 * tests/test-fseeko.c: Print line number on failure.
25528 * tests/test-fseek.c: Likewise.
25529 Reported by Nelson H. F. Beebe.
25531 Improve strtod bug detection check.
25532 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25533 required for Solaris 10.
25534 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25536 2008-04-04 Bruno Haible <bruno@clisp.org>
25538 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25541 2008-04-03 Eric Blake <ebb9@byu.net>
25543 Ensure sane .version contents.
25544 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25546 * build-aux/git-version-gen: Improve documentation.
25548 Make GNU make output nicer.
25549 * top/GNUmakefile [!_have-Makefile]: Add dependency on
25550 MAKECMDGOALS to enforce message for all command line targets. Set
25551 srcdir for use in maint.mk.
25553 Another maintainer tweak.
25554 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25555 a target that regenerates version.
25557 2008-04-03 Jim Meyering <meyering@redhat.com>
25559 vc-list-files: don't cause coreutils "make po-check" failure
25560 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25562 2008-04-03 Eric Blake <ebb9@byu.net>
25564 Allow VPATH usage of vc-list-files.
25565 * build-aux/vc-list-files (scriptversion): Add timestamp.
25566 (options): Add --help, --version, -C.
25567 (CVS): Support installed cvsu.
25569 2008-04-02 Bruno Haible <bruno@clisp.org>
25571 Avoid some "statement with no effect" warnings from gcc.
25572 * tests/test-wctype.c (main): Explicitly ignore unused values.
25573 Reported by Jim Meyering.
25575 2008-04-02 Jim Meyering <meyering@redhat.com>
25577 Avoid some warnings from "gcc -Wshadow".
25578 * tests/test-frexp.c (exp): Define to a different identifier.
25579 * tests/test-frexpl.c (exp): Likewise.
25581 2008-04-03 Jim Meyering <meyering@redhat.com>
25583 bootstrap: remove dangling *.[ch] symlinks from lib
25584 * build-aux/bootstrap [dangling symlink removal]: Move find's
25585 -depth option to precede all others, to avoid a warning.
25586 Remove *.[ch] files too, and from "$source_base" (usually lib/).
25588 2008-04-02 Bruno Haible <bruno@clisp.org>
25590 Avoid some warnings from "gcc -Wshadow".
25591 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25592 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25593 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25594 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25595 Reported by Jim Meyering.
25597 2008-04-01 Bruno Haible <bruno@clisp.org>
25599 Fix test to work on IRIX 6.5 with cc.
25600 * tests/test-math.c (numeric_equal): New function.
25603 2008-04-01 Bruno Haible <bruno@clisp.org>
25605 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25607 2008-04-01 Bruno Haible <bruno@clisp.org>
25609 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25610 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25611 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25612 (Depends-on): Remove math.
25614 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25615 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25616 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25617 (Depends-on): Remove math.
25619 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25620 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25621 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25622 (Depends-on): Remove math.
25623 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25624 (Depends-on): Remove math.
25626 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25627 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25628 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25629 (Depends-on): Remove math.
25630 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25631 (Depends-on): Remove math.
25633 * tests/test-round1.c: Include nan.h.
25634 (main): Use NaNd instead of NAN.
25635 * modules/round-tests (Files): Add tests/nan.h.
25637 * tests/test-trunc1.c: Include nan.h.
25638 (main): Use NaNd instead of NAN.
25639 * modules/trunc-tests (Files): Add tests/nan.h.
25641 * tests/test-roundf1.c: Include nan.h.
25642 (main): Use NaNf instead of NAN.
25643 * modules/roundf-tests (Files): Add tests/nan.h.
25645 * tests/test-truncf1.c: Include nan.h.
25646 (main): Use NaNf instead of NAN.
25647 * modules/truncf-tests (Files): Add tests/nan.h.
25649 * tests/test-ceilf1.c: Include nan.h.
25650 (main): Use NaNf instead of NAN.
25651 * modules/ceilf-tests (Files): Add tests/nan.h.
25653 * tests/test-floorf1.c: Include nan.h.
25654 (main): Use NaNf instead of NAN.
25655 * modules/floorf-tests (Files): Add tests/nan.h.
25657 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25658 (main): Use NaNf instead of NAN.
25659 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25661 * tests/test-isnand.c: Include nan.h instead of <math.h>.
25662 (main): Use NaNd instead of NAN.
25663 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25665 * tests/test-frexp.c: Include nan.h.
25666 (main): Use NaNd instead of NAN.
25667 * modules/frexp-tests (Files): Add tests/nan.h.
25669 * lib/isnan.c: Don't include <math.h>.
25670 (FUNC): Don't use NAN macro.
25671 * modules/isnand-nolibm (Depends-on): Remove math.
25672 * modules/isnanf-nolibm (Depends-on): Remove math.
25673 * modules/isnanl (Depends-on): Remove math.
25674 * modules/isnanl-nolibm (Depends-on): Remove math.
25676 * tests/nan.h: New file.
25678 2008-04-01 Eric Blake <ebb9@byu.net>
25681 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25682 values to be the right type.
25684 For now, cater to gnulib strtod inaccuracies.
25685 * tests/test-strtod.c (main): Allow 1-ulp error on expected
25686 fractional results. While not as nice from a QoI perspective, it
25687 is a quicker patch than correctly implementing decimal to binary
25690 2008-03-31 Eric Blake <ebb9@byu.net>
25692 Guarantee a definition of NAN.
25693 * lib/math.in.h (NAN): Define if missing.
25694 * tests/test-math.c (main): Test it.
25695 * doc/posix-headers/math.texi (math.h): Document this.
25696 * lib/isnan.c (rpl_isnand): Use it.
25697 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25698 * tests/test-floorf1.c (NaN): Likewise.
25699 * tests/test-frexp.c (NaN): Likewise.
25700 * tests/test-isnand.c (NaN): Likewise.
25701 * tests/test-isnanf.c (NaN): Likewise.
25702 * tests/test-round1.c (NaN): Likewise.
25703 * tests/test-roundf1.c (NaN): Likewise.
25704 * tests/test-snprintf-posix.h (NaN): Likewise.
25705 * tests/test-sprintf-posix.h (NaN): Likewise.
25706 * tests/test-trunc1.c (NaN): Likewise.
25707 * tests/test-truncf1.c (NaN): Likewise.
25708 * tests/test-vasnprintf-posix.c (NaN): Likewise.
25709 * tests/test-vasprintf-posix.c (NaN): Likewise.
25710 * modules/isnand-nolibm (Depends-on): Add math.
25711 * modules/isnanf-nolibm (Depends-on): Likewise.
25712 * modules/isnanl (Depends-on): Likewise.
25713 * modules/isnanl-nolibm (Depends-on): Likewise.
25714 * modules/snprintf-posix-tests (Depends-on): Likewise.
25715 * modules/sprintf-posix-tests (Depends-on): Likewise.
25716 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25717 * modules/vsprintf-posix-tests (Depends-on): Likewise.
25718 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25719 * modules/vasprintf-posix-tests (Depends-on): Likewise.
25721 2008-03-31 Bruno Haible <bruno@clisp.org>
25723 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25724 * doc/posix-functions/strtod.texi: Likewise.
25726 2008-03-31 Bruno Haible <bruno@clisp.org>
25728 * tests/test-strtod.c (main): Don't use C99 syntax.
25730 2008-03-31 Bruno Haible <bruno@clisp.org>
25732 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25733 Reported by Eric Blake.
25735 2008-03-31 Jim Meyering <meyering@redhat.com>
25737 Don't compare actual signbit return values.
25738 * tests/test-strtod.c (main): Rather, compare only their
25739 zero/non-zero nature.
25741 2008-03-31 Eric Blake <ebb9@byu.net>
25743 More strtod documentation.
25744 * doc/posix-functions/strtod.texi (strtod): Interpret more test
25745 failures as distinct bugs.
25747 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
25749 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25750 Problem reported by Erik Benada in
25751 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25753 2008-03-30 Bruno Haible <bruno@clisp.org>
25755 * tests/test-strtod.c: Add comments about which assertion fails on which
25757 * doc/posix-functions/strtod.texi: Add info about many more platforms.
25759 2008-03-30 Eric Blake <ebb9@byu.net>
25761 Test signbit behavior on zeros.
25762 * tests/test-signbit.c (test_signbitf): Add tests for zero.
25763 (test_signbitd, test_signbitl): Likewise.
25765 More strtod touchups.
25766 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25767 sign of negative underflow, for now. Use .5, not .1.
25768 * doc/posix-functions/strtod.texi (strtod): Mention these
25770 Reported by Jim Meyering.
25772 2008-03-30 Bruno Haible <bruno@clisp.org>
25774 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25775 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25777 2008-03-30 Bruno Haible <bruno@clisp.org>
25779 Avoid failure when attempting to return empty iconv results on some
25781 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25782 allocation, don't report ENOMEM when the resulting string is empty.
25784 2008-03-30 Bruno Haible <bruno@clisp.org>
25786 Fix buffer overrun.
25787 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25788 Don't consider the width for tmp_length. Check count against tmp_length
25789 before doing the padding. Ensure enough allocation during padding.
25791 2008-03-30 Eric Blake <ebb9@byu.net>
25794 * lib/strtod.c (strtod): Avoid compiler warnings.
25795 Reported by Jim Meyering.
25797 2008-03-30 Bruno Haible <bruno@clisp.org>
25799 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25800 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25801 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25802 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25803 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25804 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25805 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25806 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25808 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25809 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25810 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25811 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25812 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25813 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25814 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25815 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25817 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25818 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25819 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25820 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25821 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25822 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25823 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25824 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25826 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25827 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25829 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25830 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25832 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25833 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25835 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25836 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25837 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25839 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25840 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25841 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25843 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25844 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25845 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25847 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25848 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25849 * modules/vasprintf (Depends-on): Add EOVERFLOW.
25851 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25852 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25853 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25854 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25855 (Depends-on): Add EOVERFLOW.
25856 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25857 (Depends-on): Add EOVERFLOW.
25858 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25859 (Depends-on): Add EOVERFLOW.
25860 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25861 (Depends-on): Add EOVERFLOW.
25862 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25863 (Depends-on): Add EOVERFLOW.
25864 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25865 (Depends-on): Add EOVERFLOW.
25866 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25867 (Depends-on): Add EOVERFLOW.
25868 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25869 (Depends-on): Add EOVERFLOW.
25871 * lib/sprintf.c (EOVERFLOW): Remove fallback.
25872 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25873 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25875 * lib/snprintf.c (EOVERFLOW): Remove fallback.
25876 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25877 * modules/snprintf (Depends-on): Add EOVERFLOW.
25879 * lib/poll.c (EOVERFLOW): Remove fallback.
25880 * modules/poll (Depends-on): Add EOVERFLOW.
25882 * lib/getugroups.c (EOVERFLOW): Remove fallback.
25883 * modules/getugroups (Depends-on): Add EOVERFLOW.
25885 * lib/getdelim.c (EOVERFLOW): Remove fallback.
25886 * modules/getdelim (Depends-on): Add EOVERFLOW.
25888 * lib/ftell.c (EOVERFLOW): Remove fallback.
25889 * modules/ftell (Depends-on): Add EOVERFLOW.
25891 * lib/fprintf.c (EOVERFLOW): Remove fallback.
25892 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25893 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25895 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25897 * modules/EOVERFLOW-tests: New file.
25898 * tests/test-EOVERFLOW.c: New file.
25900 * modules/EOVERFLOW: New file.
25901 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25903 2008-03-30 Bruno Haible <bruno@clisp.org>
25905 Fix bug introduced on 2007-06-10.
25906 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25907 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25909 2008-03-30 Bruno Haible <bruno@clisp.org>
25911 Improve freadseek's efficiency after ungetc.
25912 * lib/freadseek.c: Include freadahead.h.
25913 (freadptrinc): New function, extracted from freadseek.
25914 (freadseek): Use it in a loop. Use freadahead to determine the number
25915 of loop iterations.
25916 * modules/freadseek (Depends-on): Add freadahead.
25917 (configure.ac): Require AC_C_INLINE.
25919 2008-03-30 Bruno Haible <bruno@clisp.org>
25921 * lib/freadseek.c (freadseek): Don't ignore the return value of
25924 2008-03-29 Eric Blake <ebb9@byu.net>
25926 Add hex float support.
25927 * modules/strtod (Depends-on): Add c-ctype.
25928 (Link): Mention POW_LIB.
25929 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
25930 whitespace between 'e' and exponent.
25931 * tests/test-strtod.c (main): Enable hex float tests.
25932 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25935 Document various strtod bugs, with some fixes.
25936 * doc/posix-functions/strtod.texi (strtod): Document bugs with
25937 "-0x", "inf", "nan", and hex constants.
25938 * doc/posix-functions/atof.texi (atof): Likewise.
25939 * modules/stdlib (Makefile.am): Support strtod.
25940 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25941 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25942 detect additional strtod bugs.
25943 * lib/stdlib.in.h (rpl_strtod): Add declarations.
25944 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
25945 bool where appropriate. Parse 'inf' and 'nan'.
25946 * tests/test-strtod.c: New file.
25947 * modules/strtod (Depends-on): Add stdbool, stdlib.
25948 (configure.ac): Turn on module indicator.
25949 * modules/strtod-tests: New module.
25951 2008-03-29 Eric Blake <ebb9@byu.net>
25953 Fix ftell on mingw.
25954 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25955 * modules/ftell-tests (Depends-on): Add binary-io.
25956 * modules/ftello-tests (Depends-on): Likewise.
25957 * tests/test-ftell.c (main): Enhance test to cover behavior after
25958 ungetc. Enforce binary mode.
25959 * tests/test-ftello.c (main): Likewise.
25961 Pass test-freadseek on cygwin.
25962 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25963 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25966 * tests/test-fflush2.c (main): Fix typo.
25968 2008-03-29 Bruno Haible <bruno@clisp.org>
25970 * tests/test-fflush2.c (main): Temporarily disable the contents of
25972 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25973 Reported by Eric Blake.
25975 2008-03-28 Simon Josefsson <simon@josefsson.org>
25977 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25978 (GC_SHA224_DIGEST_SIZE): Add.
25980 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25981 (gc_hash_digest_length): Likewise.
25982 (gc_hash_buffer): Likewise.
25984 2008-03-25 Bruno Haible <bruno@clisp.org>
25986 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25987 detail which gettext release to use.
25988 Reported by Simon Josefsson.
25990 2008-03-26 Jim Meyering <meyering@redhat.com>
25992 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25993 * modules/gnumakefile (clean-GNUmakefile): Also, use
25994 test ... && ... || : syntax rather than if-then ... fi.
25996 gnumakefile: Don't double-quote-expand $(VPATH) value.
25997 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25999 2008-03-24 Eric Blake <ebb9@byu.net>
26001 Alter GNUmakefile to install into top directory.
26002 * modules/maintainer-makefile: Split, and add dependency...
26003 * modules/gnumakefile: to this new module.
26004 * build-aux/GNUmakefile: Move...
26005 * top/GNUmakefile: ...here.
26006 * build-aux/maint.mk: Move...
26007 * top/maint.mk: ...here.
26008 * MODULES.html.sh (Support for maintaining...): Document new
26011 2008-03-23 Bruno Haible <bruno@clisp.org>
26013 * gnulib-tool: New options --vc-files, --no-vc-files.
26014 (func_usage): Document them.
26015 (vc_files): New variable.
26016 (func_import): Consider vc_files.
26017 (func_create_testdir): Set vc_files to empty.
26018 Suggested by Jim Meyering and Karl Berry.
26020 2008-03-23 Bruno Haible <bruno@clisp.org>
26022 Fix regex compilation error on HP-UX 11.
26023 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26024 * modules/regex (Files): Add m4/mbstate_t.m4.
26025 Reported by Ton Voon <ton.voon@altinity.com>.
26027 2008-03-23 Bruno Haible <bruno@clisp.org>
26029 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26031 2008-03-23 Eric Blake <ebb9@byu.net>
26032 Bruno Haible <bruno@clisp.org>
26034 Install files from top/ in the destination directory.
26035 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26036 augmentation also for the files from top/.
26037 (func_import, func_create_testdir): Rewrite file names:
26038 top/filename -> filename.
26040 2008-03-23 Bruno Haible <bruno@clisp.org>
26042 Tweak "gnulib --version" output.
26043 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26045 2008-03-23 Bruno Haible <bruno@clisp.org>
26047 Tweak "gnulib --version" output.
26048 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26049 rather than contents of ChangeLog, when possible.
26051 2008-03-21 Eric Blake <ebb9@byu.net>
26053 More --version tweaks.
26054 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
26055 date of last ChangeLog entry.
26057 2008-03-21 Jim Meyering <meyering@redhat.com>
26059 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26061 2008-03-20 Eric Blake <ebb9@byu.net>
26064 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26066 2008-03-20 Simon Josefsson <simon@josefsson.org>
26068 * build-aux/GNUmakefile: Make git-version-gen optional. Add
26069 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
26071 2008-03-20 Eric Blake <ebb9@byu.net>
26073 Sync GNUmakefile with coreutils.
26074 * build-aux/GNUmakefile (have-Makefile): Rename...
26075 (_have-Makefile): ...to this, for namespace consideration.
26076 (GNUmakefile.cfg): Include, if present.
26077 (_autoreconf): Define a default.
26078 (_is-dist-target): New rule for rebuilds to pick up intra-release
26080 (maint-cfg.mk): Rename...
26081 (cfg.mk): ...to this.
26083 2008-03-18 Jim Meyering <meyering@redhat.com>
26085 New script and module: mktempd
26086 * MODULES.html.sh (maint+release support): Add mktempd.
26087 * build-aux/mktempd: New file.
26088 * modules/mktempd: New file.
26090 2008-03-15 Jim Meyering <meyering@redhat.com>
26093 * lib/sha1.c, lib/md5.c: 63 != ~63.
26094 Reported by Andreas Schwab.
26096 sha1.c, md5.c: Hoist a redundant expression.
26097 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26098 "ctx->buflen" only once, before calling *_process_block.
26099 * lib/md5.c (md5_process_bytes): Likewise.
26101 2008-03-14 Eric Blake <ebb9@byu.net>
26103 Bump copyright year in files generated by gnulib-tool.
26104 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26105 gnulib-tool, rather than hard-coding it.
26107 Fix 'gnulib-tool --version' output to work with git.
26108 * gnulib-tool (func_gnulib_dir): New function, extracted from...
26109 (startup): ...here.
26110 (func_version): Use it to invoke git-version-gen, rather than
26111 relying on CVS keyword expansion. Modernize wording.
26112 (cvsdatestamp, last_checkin_date, version): Kill unused
26115 2008-03-12 Jim Meyering <meyering@redhat.com>
26117 Recognize optional cast of the argument to free.
26118 * build-aux/useless-if-before-free: Update regexps.
26120 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26122 2008-03-11 Bruno Haible <bruno@clisp.org>
26124 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26125 by a single package.
26126 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26127 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26128 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26129 Reported by Sam Steingold <sds@gnu.org>.
26131 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
26133 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26136 2008-03-11 Bruno Haible <bruno@clisp.org>
26138 Avoid conflicts between local macro definitions.
26139 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26140 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26142 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
26143 Bruno Haible <bruno@clisp.org>
26145 Make va_copy work with some version of xlc on AIX 5.1.
26146 * lib/stdarg.in.h: New file.
26147 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26148 On AIX, use a <stdarg.h> file substitute.
26149 * modules/stdarg (Files): Add lib/stdarg.in.h.
26150 (Depends-on): Add include_next.
26151 (Makefile.am): Build a stdarg.h substitute if requested.
26152 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26154 2008-03-10 Bruno Haible <bruno@clisp.org>
26156 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26157 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26158 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26160 2008-03-10 Bruno Haible <bruno@clisp.org>
26162 * modules/stdlib (Depends-on): Add include_next, remove
26165 2008-03-09 Bruno Haible <bruno@clisp.org>
26167 * lib/freadahead.h (freadahead): Document more precisely.
26168 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26169 the sum of both buffer sizes.
26170 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26171 * NEWS: Document the change.
26173 2008-03-09 Bruno Haible <bruno@clisp.org>
26175 Extend freadptr to return also the buffer size.
26176 * lib/freadptr.h (freadptr): Add sizep argument.
26177 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26178 (freadptr): Add sizep argument. Determine buffer size like freadahead
26180 * tests/test-freadptr.c: Don't include freadahead.h.
26181 (main): Adapt for new calling convention of freadptr.
26182 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26183 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26184 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26185 tests/test-freadptr2.sh.
26186 (Depends): Remove freadahead.
26187 (TESTS): Add test-freadptr2.sh.
26188 (check_PROGRAMS): Add test-freadptr2.
26190 2008-03-09 Bruno Haible <bruno@clisp.org>
26192 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26193 Report and solution by Simon Josefsson.
26195 2008-03-06 Bruno Haible <bruno@clisp.org>
26197 Make fflush after ungetc work on BSD platforms.
26198 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26199 * tests/test-fflush2.c: New file.
26200 * tests/test-fflush2.sh: New file.
26201 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26202 tests/test-fflush2.c.
26203 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26204 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26206 2008-03-06 Eric Blake <ebb9@byu.net>
26208 Likewise for ftello.
26209 * modules/ftello (Dependencies): Add extensions.
26210 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26212 2008-03-06 Bruno Haible <bruno@clisp.org>
26214 * modules/fseeko (Dependencies): Add extensions.
26215 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26216 Needed on glibc systems.
26218 2008-03-06 Bruno Haible <bruno@clisp.org>
26220 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26222 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26224 2008-03-06 Bruno Haible <bruno@clisp.org>
26226 * users.txt: Add libgnupdf.
26228 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
26230 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26231 (Header File Substitutes, Function Substitutes,
26232 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26233 (Build robot for gnulib): Fix typo.
26235 2008-03-06 Bruno Haible <bruno@clisp.org>
26237 * doc/gnulib-tool.texi (VCS Issues): Small updates.
26238 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26240 2008-03-06 Bruno Haible <bruno@clisp.org>
26242 * doc/func.texi: New file, extracted from doc/gnulib.texi.
26243 * doc/gnulib.texi: Include it.
26245 2008-03-06 Simon Josefsson <simon@josefsson.org>
26247 * modules/func (License): Change license to unlimited; there was
26248 no LGPL parts in the module anyway.
26250 2008-03-06 Simon Josefsson <simon@josefsson.org>
26252 * modules/__func__: Renamed to modules/func.
26253 * modules/__func__-tests: Renamed to modules/func-tests.
26254 * tests/test-__func__.c: Renamed to tests/test-func.c.
26255 * m4/__func__.m4: Renamed to m4/func.m4.
26256 * doc/gnulib.texi (__func__): Section renamed to func.
26257 Suggested by Eric Blake <ebb9@byu.net>.
26259 2008-03-06 Simon Josefsson <simon@josefsson.org>
26261 * doc/gnulib.texi (__func__): Use C99 terminology when talking
26262 about __func__. Make example self-contained. Suggested by Eric
26263 Blake <ebb9@byu.net>.
26265 * tests/test-__func__.c (main): Avoid extraneous () around __func.
26266 Suggested by Eric Blake <ebb9@byu.net>.
26268 2008-03-06 Simon Josefsson <simon@josefsson.org>
26270 * modules/__func__: New file.
26271 * modules/__func__-tests: New file.
26272 * tests/test-__func__.c: New file.
26273 * m4/__func__.m4: New file.
26274 * doc/gnulib.texi (__func__): Document __func__ module.
26276 2008-03-05 Simon Josefsson <simon@josefsson.org>
26278 * modules/byteswap (License): Re-license as LGPLv2+.
26280 2008-03-05 Simon Josefsson <simon@josefsson.org>
26282 * doc/Makefile: Add pdf target.
26284 2008-03-05 Simon Josefsson <simon@josefsson.org>
26286 * modules/inline (License): Use 'unlimited', since there are only
26287 *.m4 files in this module.
26289 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
26290 Bruno Haible <bruno@clisp.org>
26292 Add support for HP C 7.1 on OpenVMS 8.3.
26293 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26295 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
26297 Update VMS specifics.
26298 * lib/getopt.c [VMS]: Remove include of unixlib.h.
26300 2008-03-02 Jim Meyering <meyering@redhat.com>
26302 Remove the last dependency on the "free" module.
26303 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26304 Reported by Bob Proulx.
26306 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26308 Remove useless "if" tests before free. Deprecate "free" module.
26309 * doc/posix-functions/free.texi: Mention that this
26310 module is no longer useful.
26311 * modules/free (Notice): Say this module is obsolete.
26312 * modules/readutmp (Depends-on): Remove free.
26313 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26314 * lib/putenv.c (putenv): Likewise.
26315 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26316 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26317 * tests/test-c-strcasestr.c (main): Likewise.
26318 * tests/test-c-strstr.c (main): Likewise.
26319 * tests/test-mbscasestr1.c (main): Likewise.
26320 * tests/test-mbscasestr2.c (main): Likewise.
26321 * tests/test-mbsstr1.c (main): Likewise.
26322 * tests/test-mbsstr2.c (main): Likewise.
26323 * tests/test-memmem.c (main): Likewise.
26324 * tests/test-strcasestr.c (main): Likewise.
26325 * tests/test-striconv.c (main): Likewise.
26326 * tests/test-striconveh.c (main): Likewise.
26327 * tests/test-striconveha.c (main): Likewise.
26328 * tests/test-strstr.c (main): Likewise.
26330 * build-aux/git-version-gen: Adjust a comment and the Usage string.
26332 bootstrap: sync from coreutils again
26333 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26335 2008-03-01 Jim Meyering <meyering@redhat.com>
26337 bootstrap: sync from coreutils
26338 * build-aux/bootstrap (update_po_files): Copy a .po file into place
26339 also when the target doesn't exist.
26341 2008-03-01 Eric Blake <ebb9@byu.net>
26343 Fix bugs in last patch.
26344 * lib/memchr2.c (memchr2): Fix typo.
26345 * tests/test-memchr2.c: Test previous bug, and don't use GNU
26347 Reported by Bruce Korb.
26349 New module 'memchr2'.
26350 * modules/memchr2: New file.
26351 * modules/memchr2-tests: Likewise.
26352 * lib/memchr2.h: Likewise.
26353 * lib/memchr2.c: Likewise, based on memchr.c.
26354 * tests/test-memchr2.c: New test.
26355 * MODULES.html.sh (String handling): Add memchr2.
26357 2008-02-29 Bruno Haible <bruno@clisp.org>
26359 * modules/freadseek-tests: New file.
26360 * tests/test-freadseek.sh: New file.
26361 * tests/test-freadseek.c: New file.
26363 New module 'freadseek'.
26364 * modules/freadseek: New file.
26365 * lib/freadseek.h: New file.
26366 * lib/freadseek.c: New file.
26367 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26369 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
26371 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26374 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26375 program_invocation_name and program_invocation_short_name are
26378 2008-02-28 Bruno Haible <bruno@clisp.org>
26380 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26381 * tests/test-freadptr.sh: Also test non-seekable stdin.
26383 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
26385 * build-aux/bootstrap (source_base, m4_base)
26386 (doc_base, tests_base): New variables.
26387 (gnulib_tool_options): Do not hardcode base directories, use
26388 the above variables instead.
26390 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
26392 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26394 2008-02-28 Bruno Haible <bruno@clisp.org>
26396 * modules/freadptr-tests: New file.
26397 * tests/test-freadptr.sh: New file.
26398 * tests/test-freadptr.c: New file.
26400 New module 'freadptr'.
26401 * modules/freadptr: New file.
26402 * lib/freadptr.h: New file.
26403 * lib/freadptr.c: New file.
26404 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26406 2008-02-26 Karl Berry <karl@freefriends.org>
26409 * libltdl/argz.c (argz_add, argz_count): New functions.
26410 * libltdl/argz.in.h: Declare them.
26411 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26413 2008-02-22 Bruno Haible <bruno@clisp.org>
26415 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26416 is a pointer type. Needed for HP-UX 10.
26417 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26418 * doc/posix-functions/gmtime_r.texi: Likewise.
26419 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26421 2008-02-24 Bruno Haible <bruno@clisp.org>
26423 * modules/environ-tests: New file.
26424 * tests/test-environ.c: New file.
26426 New module 'environ'.
26427 * modules/environ: New file.
26428 * lib/unistd.in.h (environ): New declaration.
26429 * m4/environ.m4: New file.
26430 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26432 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26434 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26436 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26437 wrong claim that 'environ' is missing on some systems.
26438 * modules/execute (Depends-on): Add environ.
26439 * lib/execute.c (environ): Remove fallback declaration.
26440 * modules/pipe (Depends-on): Add environ.
26441 * lib/pipe.c (environ): Remove fallback declaration.
26442 * modules/setenv (Depends-on): Add environ.
26443 * lib/setenv.c (environ): Remove fallback declaration.
26444 * modules/unsetenv (Depends-on): Add environ.
26445 * lib/unsetenv.c (environ): Remove fallback declaration.
26446 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26448 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26449 (gl_PREREQ_UNSETENV): Likewise.
26451 2008-02-24 Bruno Haible <bruno@clisp.org>
26453 * doc/posix-functions/environ.texi: Document the MacOS X problem.
26455 2008-02-20 Bob Proulx <bob@proulx.com>
26457 Enable use of older two part flavor 'git describe'.
26458 * build-aux/git-version-gen: If using the older two part flavor of
26459 git version then recreate the third part now present in the
26460 newer three part flavor of git describe.
26462 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
26464 * lib/fts.c (fts_build): Typo correction to comment.
26466 2008-02-17 Bruno Haible <bruno@clisp.org>
26468 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26469 generating no-op conflicts.
26471 2008-02-17 Bruno Haible <bruno@clisp.org>
26474 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26475 result_entries, rather than an index-based loop.
26477 2008-02-17 Bruno Haible <bruno@clisp.org>
26480 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26482 (entry_create): New function.
26483 (entry_hashcode): Use the cached hashcode if possible.
26484 (read_changelog_file, try_split_merged_entry): Use entry_create.
26486 2008-02-17 Bruno Haible <bruno@clisp.org>
26488 Speed up from O(n^2) to O(n) for long ChangeLog files.
26489 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26490 (read_changelog_file): Change implementation of entries_reversed list
26492 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26494 2008-02-17 Bruno Haible <bruno@clisp.org>
26496 New option --split-merged-entry.
26497 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26498 (find_paragraph_end, try_split_merged_entry): New functions.
26499 (long_options): Add option --split-merged-entry.
26500 (usage): Document option --split-merged-entry.
26501 (main): Implement option --split-merged-entry.
26502 Reported by Eric Blake.
26504 2008-02-17 Bruno Haible <bruno@clisp.org>
26506 * lib/git-merge-changelog.c: Include c-strstr.h.
26507 (main): Support the "git pull --rebase" situation.
26508 * modules/git-merge-changelog (Depends-on): Add c-strstr.
26509 Reported by Eric Blake.
26511 2008-02-16 Eric Blake <ebb9@byu.net>
26513 Avoid doubling \ in common case of "c-maybe" quoting style.
26514 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26515 eliding outer quotes.
26516 * lib/quotearg.h: Document this.
26517 * tests/test-quotearg.c (result_strings, inputs, results_g)
26518 (flag_results, locale_results): Test it by adding a new string to
26520 (compare_strings): Test new string.
26522 2008-02-13 Eric Blake <ebb9@byu.net>
26524 Avoid trigraph quoting in default output.
26525 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26526 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26527 unless explicitly requested.
26528 * tests/test-quotearg.c (flag_results, main): Add additional tests.
26530 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
26532 Don't rely on signed integer overflowing to negative value.
26533 * lib/getugroups.c (getugroups): Include <limits.h>.
26534 Instead, compare against INT_MAX, and increment only if the test passes.
26536 2008-02-13 Jim Meyering <meyering@redhat.com>
26537 and Eric Blake <ebb9@byu.net>
26539 Avoid shadowing warning and compile errors on Linux.
26540 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26541 forwarding macros on Linux.
26542 (dcgettext): Define a stub, for Linux.
26543 (results_g, main): Avoid warnings.
26545 2008-02-12 Eric Blake <ebb9@byu.net>
26547 Silence warning in last patch.
26548 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26550 Quotearg part 4: add tests, fix c-maybe colon quoting.
26551 * lib/quotearg.h: Improve documentation.
26552 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26553 escapes when adding outer quotes. When quoting trigraphs, use
26554 valid C notation. When quoting NUL, omit extra characters if next
26555 character is not digit. Alter prototype.
26556 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26558 * modules/quotearg-tests: New module.
26559 * tests/test-quotearg.c: New test.
26561 2008-02-07 Eric Blake <ebb9@byu.net>
26563 Quotearg part 3: add flag to control outer quote elision.
26564 * lib/quotearg.h (c_maybe_quoting_style): New style.
26565 (enum quoting_flags): Better documentation of flags.
26566 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26568 (quotearg_buffer_restyled): Handle new flag to elide outer
26571 Quotearg part 2: add flag that can control NUL elision.
26572 * lib/quotearg.h (set_quoting_flags): New prototype.
26573 * lib/quotearg.c (struct quoting_options): Add flag field.
26574 (set_quoting_flags): New function.
26575 (quotearg_buffer_restyled): Add flags parameter.
26576 (quotearg_alloc_mem): Set the flag if length cannot be returned.
26577 (quotearg_n_options): Set the flag, since length cannot be
26579 (quoting_options_from_style): Default flags correctly.
26581 Quotearg part 1: more wrappers, restore quotearg_char state.
26582 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26583 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26584 (quotearg_colon_mem): New wrappers.
26585 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26586 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26588 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26589 (quotearg_colon_mem): New functions.
26591 2008-02-11 Bruno Haible <bruno@clisp.org>
26593 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26594 library in the current directory: it does not work with parallel make.
26595 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26597 2008-02-11 Bruno Haible <bruno@clisp.org>
26599 * .gitattributes: New file.
26601 2008-02-11 Jim Meyering <meyering@redhat.com>
26603 useless-if-before-free: Fix reversed exit values.
26604 * build-aux/useless-if-before-free: Use correct values
26605 for EXIT_MATCH and EXIT_NO_MATCH.
26607 * build-aux/useless-if-before-free: Close stdout carefully.
26609 2008-02-10 Bruno Haible <bruno@clisp.org>
26611 New module 'git-merge-changelog'.
26612 * modules/git-merge-changelog: New file.
26613 * lib/git-merge-changelog.c: New file.
26615 2008-02-10 Jim Meyering <meyering@redhat.com>
26617 useless-if-before-free: New option: --list (-l).
26619 useless-if-before-free: Don't exit immediately upon open failure.
26620 * build-aux/useless-if-before-free: Exit 2 for errors.
26621 Upon failure to open a file, don't exit immediately.
26622 Rather, just warn and continue with any remaining files.
26624 2008-02-10 Bruno Haible <bruno@clisp.org>
26626 New abstract list operation 'node_set_value'.
26627 * lib/gl_list.h (gl_list_node_set_value): New function.
26628 (struct gl_list_implementation): New field node_set_value.
26629 * lib/gl_list.c (gl_list_node_set_value): New function.
26630 * lib/gl_array_list.c (gl_array_node_set_value): New function.
26631 (gl_array_list_implementation): Update.
26632 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26633 (gl_carray_list_implementation): Update.
26634 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26635 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26636 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26637 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26638 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26639 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26640 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26642 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26643 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26644 (gl_sublist_list_implementation): Update.
26646 2008-02-10 Bruno Haible <bruno@clisp.org>
26648 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26649 Needed when ELEMENT is #defined to 'some_type *'.
26651 2008-02-10 Jim Meyering <meyering@redhat.com>
26653 New script and module: useless-if-before-free
26654 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26655 * build-aux/useless-if-before-free: New file.
26656 * modules/useless-if-before-free: New file.
26658 * build-aux/gitlog-to-changelog: Use committer date, not author date.
26660 xstrtol_error: Fix typo.
26661 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26662 s/exit_failure/exit_status/.
26664 2008-02-09 Jim Meyering <meyering@redhat.com>
26666 New script and module: gitlog-to-changelog
26667 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26668 * modules/gitlog-to-changelog: New file.
26669 * build-aux/gitlog-to-changelog: New file.
26671 2008-02-08 Jim Meyering <meyering@redhat.com>
26673 Avoid two "parameter unused" warnings.
26674 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26677 Use "git COMMAND", not "git-COMMAND".
26678 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26679 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26680 * build-aux/git-version-gen: Use "git status", not "git-status".
26682 2008-02-07 Bruno Haible <bruno@clisp.org>
26684 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26685 Avoids a crash on Windows Vista.
26686 Reported by Adam Strzelecki <ono@java.pl> via
26687 Simon Josefsson <simon@josefsson.org>.
26689 2008-02-06 Bruno Haible <bruno@clisp.org>
26691 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26692 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26693 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26694 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26695 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26696 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26697 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26698 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26699 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26700 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26701 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26702 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26703 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26704 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26705 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26706 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26708 * tests/test-snprintf-posix.h (test_function): Likewise.
26709 * tests/test-sprintf-posix.h (test_function): Likewise.
26710 * tests/test-vasprintf-posix.c (test_function): Likewise.
26711 * doc/posix-functions/fprintf.texi: Update.
26712 * doc/posix-functions/printf.texi: Update.
26713 * doc/posix-functions/snprintf.texi: Update.
26714 * doc/posix-functions/sprintf.texi: Update.
26715 * doc/posix-functions/vfprintf.texi: Update.
26716 * doc/posix-functions/vprintf.texi: Update.
26717 * doc/posix-functions/vsnprintf.texi: Update.
26718 * doc/posix-functions/vsprintf.texi: Update.
26719 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26721 2008-02-06 Bruno Haible <bruno@clisp.org>
26723 Fix bug introduced on 2008-01-26.
26724 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26726 2008-02-06 Bruno Haible <bruno@clisp.org>
26728 Fix bug introduced on 2007-06-10.
26729 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26730 !NEED_PRINTF_FLAG_ZERO.
26732 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
26734 getloadavg: use libperfstat on AIX5
26735 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26737 2008-02-03 Bruno Haible <bruno@clisp.org>
26739 * lib/diffseq.h: Add comments about required #includes.
26740 Reported by Michael Biggs <gnulib@doubleplum.net>.
26742 2008-02-01 Bruno Haible <bruno@clisp.org>
26744 * users.txt: Add gnuit.
26746 2008-01-31 Bruno Haible <bruno@clisp.org>
26748 * lib/md4.c (set_uint32): Mark as inline.
26749 * lib/md5.c (set_uint32): Likewise.
26750 * lib/sha1.c (set_uint32): Likewise.
26751 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26752 * m4/md5.m4 (gl_MD5): Likewise.
26753 * m4/sha1.m4 (gl_SHA1): Likewise.
26755 2008-01-31 Jim Meyering <meyering@redhat.com>
26757 Use "sizeof VAR", rather than a literal "4".
26758 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26759 * lib/md4.c (md4_read_ctx): Likewise.
26760 * lib/sha1.c (sha1_read_ctx): Likewise.
26762 2008-01-31 Simon Josefsson <simon@josefsson.org>
26764 * tests/test-sha1.c: New file, based on test-md5.c.
26766 * modules/crypto/sha1-tests: New file.
26768 2008-01-31 Simon Josefsson <simon@josefsson.org>
26770 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26772 2008-01-31 Jim Meyering <meyering@redhat.com>
26774 Prefer "sizeof v" over the equivalent "4".
26775 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26776 * lib/md5.c (set_uint32): Likewise.
26777 * lib/sha1.c (set_uint32): Likewise.
26779 2008-01-31 Simon Josefsson <simon@josefsson.org>
26781 * lib/sha1.c (set_uint32): Mark function as static.
26783 2008-01-31 Simon Josefsson <simon@josefsson.org>
26785 md2: clarify comments to say that alignment is not required.
26786 * lib/md2.h: Remove warning about alignment in comment.
26787 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26788 never been required.
26790 2008-01-31 Simon Josefsson <simon@josefsson.org>
26792 md4: adapt alignment constraint fix from sha1.
26793 * lib/md4.c (set_uint32): New function, from sha1.c
26794 (md4_read_ctx): Use it.
26795 (md4_finish_ctx): Doc fix.
26796 * lib/md4.h: Doc fix.
26798 2008-01-31 Simon Josefsson <simon@josefsson.org>
26800 md5: adapt alignment constraint fix from sha1.
26801 * lib/md5.c (set_uint32): New function, from sha1.c
26802 (md5_read_ctx): Use it.
26803 (md5_finish_ctx): Doc fix.
26804 * lib/md5.h: Doc fix.
26806 2008-01-30 Peter Palfrader <weasel@debian.org>
26808 sha1: remove the result buffer alignment constraint
26809 * lib/sha1.c (set_uint32): New function.
26810 (sha1_read_ctx): Rewrite to remove the result buffer alignment
26812 (sha1_finish_ctx): Remove comment warning about alignment constraint.
26813 * lib/sha1.h: Likewise.
26815 2008-01-30 Andreas Schwab <schwab@suse.de>
26816 Bruno Haible <bruno@clisp.org>
26818 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26819 correct definition of LDBL_MIN_EXP.
26821 2008-01-30 Karl Berry <karl@gnu.org>
26823 * config/srclist-update: try to preserve x bit on updates.
26824 * config/srclistvars.sh: update for karl.
26826 2008-01-29 Jim Meyering <meyering@redhat.com>
26828 vasnprintf.c: Avoid warning about unused label
26829 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26830 "overflow" label definition and associated code with the
26831 same cpp condition that guards the sole use of that label.
26833 2008-01-26 Bruno Haible <bruno@clisp.org>
26835 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26836 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26837 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26838 * lib/isnanl-nolibm.h (isnanl): Likewise.
26839 Reported by Paul Eggert <eggert@cs.ucla.edu>.
26841 2008-01-26 Bruno Haible <bruno@clisp.org>
26843 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26844 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26846 2008-01-26 Bruno Haible <bruno@clisp.org>
26848 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26849 GCC >= 4.0 built-in.
26850 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26852 2008-01-26 Bruno Haible <bruno@clisp.org>
26854 Rename isnan, applicable to 'double' only, to isnand.
26855 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26856 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26857 (configure.ac): Update.
26858 (Include): Replace "isnan.h" with "isnand.h".
26859 * m4/isnand.m4: Renamed from m4/isnan.m4.
26860 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26861 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26862 instead of isnan.c.
26863 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26864 instead of HAVE_ISNAN_IN_LIBC.
26865 (isnand): Renamed from isnan.
26866 * lib/isnand.c: New file.
26867 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26868 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26869 (Makefile.am): Update.
26870 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26871 Include isnand.h instead of isnan.h.
26872 (main): Test isnand instead of isnan.
26873 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26875 * modules/frexp (Depends-on): Likewise.
26876 * modules/frexp-tests (Depends-on): Likewise.
26877 * modules/frexp-nolibm (Depends-on): Likewise.
26878 * modules/frexp-nolibm-tests (Depends-on): Likewise.
26879 * modules/isfinite (Depends-on): Likewise.
26880 * modules/round-tests (Depends-on): Likewise.
26881 * modules/signbit (Depends-on): Likewise.
26882 * modules/signbit-tests (Depends-on): Likewise.
26883 * modules/snprintf-posix (Depends-on): Likewise.
26884 * modules/sprintf-posix (Depends-on): Likewise.
26885 * modules/trunc-tests (Depends-on): Likewise.
26886 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26887 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26888 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26889 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26890 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26891 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26892 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26893 * modules/vasnprintf-posix (Depends-on): Likewise.
26894 * modules/vasprintf-posix (Depends-on): Likewise.
26895 * modules/vfprintf-posix (Depends-on): Likewise.
26896 * modules/vsnprintf-posix (Depends-on): Likewise.
26897 * modules/vsprintf-posix (Depends-on): Likewise.
26898 * lib/frexp.c: Include isnand.h instead of isnan.h.
26899 (ISNAN): Set to isnand instead of isnan.
26900 * lib/isfinite.c: Include isnand.h instead of isnan.h.
26901 (gl_isfinited): Use isnand instead of isnan.
26902 * lib/signbitd.c: Include isnand.h instead of isnan.h.
26903 (gl_signbitd): Use isnand instead of isnan.
26904 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26905 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26906 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26907 (main): Use isnand instead of isnan.
26908 * tests/test-round1.c: Include isnand.h.
26909 (main): Use isnand instead of isnan.
26910 * tests/test-round2.c: Include isnand.h instead of isnan.h.
26911 (ISNAN): Set to isnand instead of isnan.
26912 * tests/test-trunc1.c: Include isnand.h.
26913 (main): Use isnand instead of isnan.
26914 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26915 (equal): Use isnand instead of isnan.
26916 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26918 * NEWS: Mention the change.
26920 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
26921 Bruno Haible <bruno@clisp.org>
26923 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26924 the GCC builtins for signbits are present and set
26925 REPLACE_SIGNBIT_USING_GCC if so.
26926 * lib/math.in.h (signbit): Define using GCC builtins if
26927 REPLACE_SIGNBIT_USING_GCC is set.
26928 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26929 REPLACE_SIGNBIT_USING_GCC.
26930 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26932 2008-01-25 Jim Meyering <meyering@redhat.com>
26934 Prefer <config.h> over "config.h". See autoconf doc for explanation.
26935 * lib/poll.c: Include <config.h>, not "config.h".
26936 * tests/test-getaddrinfo.c: Likewise.
26938 2008-01-25 Simon Josefsson <simon@josefsson.org>
26940 * modules/sockets-tests: New file.
26942 2008-01-24 Simon Josefsson <simon@josefsson.org>
26944 * modules/sockets: New module, can be used to call WSA_Startup and
26945 WSA_Cleanup when needed.
26947 * lib/sockets.h, lib/sockets.c: New files.
26949 * m4/sockets.m4: New file.
26951 * tests/test-sockets.c: New file.
26953 2008-01-19 Bruno Haible <bruno@clisp.org>
26955 * doc/posix-headers: Renamed from doc/headers.
26956 * doc/posix-functions: Renamed from doc/functions.
26957 * doc/gnulib.texi: Update.
26959 2008-01-19 Bruno Haible <bruno@clisp.org>
26961 * doc/glibc-functions/strcasestr.texi: Include contents of
26962 doc/functions/strcasestr.texi, fixing the list of platforms.
26963 * doc/functions/strcasestr.texi: Remove file.
26965 2008-01-19 Bruno Haible <bruno@clisp.org>
26967 * doc/glibc-functions/memmem.texi: Include contents of
26968 doc/functions/memmem.texi.
26969 * doc/functions/memmem.texi: Remove file.
26971 2008-01-18 Bruno Haible <bruno@clisp.org>
26973 * doc/glibc-functions/*.texi: New files.
26974 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26975 to use the new files.
26977 2008-01-17 Bruno Haible <bruno@clisp.org>
26979 * tests/test-gethostname.c (main): Fix printf statement.
26981 2008-01-17 Simon Josefsson <simon@josefsson.org>
26983 * modules/gethostname-tests: New file.
26985 * tests/test-gethostname.c: New file.
26987 2008-01-17 Simon Josefsson <simon@josefsson.org>
26989 * lib/gethostname.c: Include string.h unconditionally, strncpy is
26990 used by the UNAME case. Reported by Bruno Haible
26993 2008-01-17 Eric Blake <ebb9@byu.net>
26995 Convert c-strcasestr to be more efficient.
26996 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26997 (Depends-on): Add c-strcase, remove malloca, strnlen.
26998 * tests/test-c-strcasestr.c (main): Enhance test.
26999 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27001 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
27003 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27004 Use it in creating po/Makevars.
27006 2008-01-15 Simon Josefsson <simon@josefsson.org>
27008 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27009 Applications that requires it should initialize libgcrypt
27012 2008-01-16 Simon Josefsson <simon@josefsson.org>
27014 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27016 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
27018 Fix problem with getdate on mingw32 reported by Simon Josefsson
27019 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27020 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27021 tzname", when deciding whether to declare tzname.
27022 * lib/strftime.c (tzname): Likewise.
27024 2008-01-15 Bruno Haible <bruno@clisp.org>
27026 Work around a MacOS X 10.5 bug in frexpl().
27027 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27028 * doc/functions/frexpl.texi: Document the bug.
27029 Reported by Elias Pipping <pipping@gentoo.org>.
27031 2008-01-14 Eric Blake <ebb9@byu.net>
27033 Touch up previous patch.
27034 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27035 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27037 Convert strcasestr module to use Two-Way algorithm.
27038 * modules/strcasestr-simple: New module, based on the old
27039 strcasestr, but with Two-Way rather than KMP.
27040 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27041 * lib/string.in.h (rpl_strcasestr): Declare.
27042 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27044 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27045 * modules/string (Makefile.am): Support strcasestr.
27046 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27047 * modules/strcasestr-tests (Depends-on): Check for alarm.
27048 * tests/test-strcasestr.c: Augment test.
27049 * lib/str-two-way.h: Clean up stray macro.
27050 * NEWS: Document new module.
27051 * MODULES.html.sh (string handling): Likewise.
27052 * doc/functions/strcasestr.texi: New file.
27053 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
27054 here, since it is not a POSIX function.
27056 2008-01-14 Colin Watson <cjwatson@debian.org>
27057 Bruno Haible <bruno@clisp.org>
27059 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27060 works fine; if not, set REPLACE_STRSIGNAL.
27061 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27062 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27064 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27065 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27066 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27068 2008-01-14 Bruno Haible <bruno@clisp.org>
27070 * modules/strsignal (Include): Change to <string.h>.
27072 2008-01-14 Colin Watson <cjwatson@debian.org>
27074 * modules/argp (Notice): Add a notice recommending to change
27076 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27078 2008-01-13 Colin Watson <cjwatson@debian.org>
27080 * modules/strsignal-tests: New file.
27081 * tests/test-strsignal.c: New file.
27083 * lib/strsignal.c: New file, from glibc with modifications.
27084 * lib/siglist.h: New file, from glibc with modifications.
27085 * lib/string.in.h (strsignal): New declaration.
27086 * m4/strsignal.m4: New file.
27087 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27088 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27089 * modules/strsignal: New file.
27090 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27091 HAVE_DECL_STRSIGNAL.
27093 2008-01-13 Bruno Haible <bruno@clisp.org>
27095 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27096 locale encoding is not ASCII. Needed for OpenBSD 4.0.
27097 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27098 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27100 2008-01-13 Bruno Haible <bruno@clisp.org>
27102 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27103 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27104 * lib/argp.h (__attribute__): Likewise.
27105 * lib/c-stack.c (__attribute__): Likewise.
27106 * lib/error.h (__attribute__): Likewise.
27107 * lib/fts.c (__attribute__): Likewise.
27108 * lib/openat.h (__attribute__): Likewise.
27109 * lib/stdio.in.h (__attribute__): Likewise.
27110 * lib/string.in.h (__attribute__): Likewise.
27111 * lib/utimens.c (__attribute__): Likewise.
27112 * lib/vasnprintf.h (__attribute__): Likewise.
27113 * lib/xalloc.h (__attribute__): Likewise.
27114 * lib/xprintf.h (__attribute__): Likewise.
27115 * lib/xstrtol.h (__attribute__): Likewise.
27116 * lib/xvasprintf.h (__attribute__): Likewise.
27118 2008-01-12 Bruno Haible <bruno@clisp.org>
27120 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27121 * doc/glibc-headers/a.out.texi: New file.
27122 * doc/glibc-headers/aliases.texi: New file.
27123 * doc/glibc-headers/alloca.texi: New file.
27124 * doc/glibc-headers/ar.texi: New file.
27125 * doc/glibc-headers/argp.texi: New file.
27126 * doc/glibc-headers/argz.texi: New file.
27127 * doc/glibc-headers/byteswap.texi: New file.
27128 * doc/glibc-headers/crypt.texi: New file.
27129 * doc/glibc-headers/endian.texi: New file.
27130 * doc/glibc-headers/envz.texi: New file.
27131 * doc/glibc-headers/err.texi: New file.
27132 * doc/glibc-headers/error.texi: New file.
27133 * doc/glibc-headers/execinfo.texi: New file.
27134 * doc/glibc-headers/fpu_control.texi: New file.
27135 * doc/glibc-headers/fstab.texi: New file.
27136 * doc/glibc-headers/fts.texi: New file.
27137 * doc/glibc-headers/getopt.texi: New file.
27138 * doc/glibc-headers/ieee754.texi: New file.
27139 * doc/glibc-headers/ifaddrs.texi: New file.
27140 * doc/glibc-headers/libintl.texi: New file.
27141 * doc/glibc-headers/mcheck.texi: New file.
27142 * doc/glibc-headers/mntent.texi: New file.
27143 * doc/glibc-headers/obstack.texi: New file.
27144 * doc/glibc-headers/paths.texi: New file.
27145 * doc/glibc-headers/printf.texi: New file.
27146 * doc/glibc-headers/pty.texi: New file.
27147 * doc/glibc-headers/resolv.texi: New file.
27148 * doc/glibc-headers/shadow.texi: New file.
27149 * doc/glibc-headers/sysexits.texi: New file.
27150 * doc/glibc-headers/ttyent.texi: New file.
27152 2008-01-12 Jim Meyering <meyering@redhat.com>
27154 announce-gen: emit Gnulib's git-based version string.
27155 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27156 New option --gnulib-version=V, where V is expected to be
27157 the output of running git describe in the gnulib directory.
27158 (get_tool_versions): Request feedback on xdelta. I suspect it's
27159 not useful, and plan to stop publishing an xdelta file with each
27162 * build-aux/announce-gen: Also check for lzma-compressed files.
27164 2008-01-11 Bruno Haible <bruno@clisp.org>
27166 * tests/test-memmem.c (main): Increase maximum allowed time.
27167 * tests/test-strstr.c (main): Likewise.
27169 2008-01-11 Bruno Haible <bruno@clisp.org>
27171 * doc/functions/memmem.texi: Add more precisions about platforms.
27172 * doc/functions/strstr.texi: Likewise.
27174 2008-01-10 Eric Blake <ebb9@byu.net>
27176 * m4/strstr.m4: Delete cruft from copy-n-paste.
27177 Reported by Bruno Haible.
27179 2008-01-10 Bruno Haible <bruno@clisp.org>
27181 Make c-strstr rely on strstr.
27182 * lib/c-strstr.c: Don't include str-kmp.h.
27183 (c_strstr): Define in terms of strstr.
27184 * modules/c-strstr (Files): Remove lib/str-kmp.h.
27185 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27187 2008-01-10 Bruno Haible <bruno@clisp.org>
27189 * doc/gnulib.texi (String Functions in C Locale): New section.
27190 * doc/c-ctype.texi: New file.
27191 * doc/c-strcase.texi: New file.
27192 * doc/c-strcaseeq.texi: New file.
27193 * doc/c-strcasestr.texi: New file.
27194 * doc/c-strstr.texi: New file.
27195 * doc/c-strtod.texi: New file.
27196 * doc/c-strtold.texi: New file.
27198 2008-01-10 Eric Blake <ebb9@byu.net>
27200 * lib/relocatable.h: Fix a comment.
27202 2008-01-10 Eric Blake <ebb9@byu.net>
27204 Share two-way algorithm.
27205 * lib/str-two-way.h: New file, merged from...
27206 * lib/memmem.c: ...here...
27207 * lib/strstr.c: ...and here.
27208 * modules/memmem (Files): Use it.
27209 * modules/strstr (Files): Likewise.
27211 Avoid quadratic strstr implementations.
27212 * lib/strstr.c: New file.
27213 * m4/strstr.m4: Likewise.
27214 * modules/strstr: Likewise.
27215 * modules/strstr-tests: Likewise.
27216 * tests/test-strstr.c: Likewise.
27217 * lib/string.in.h (rpl_strstr): Declare.
27218 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27219 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27220 * modules/string (Makefile.am): Likewise.
27221 * MODULES.html.sh (string handling): Mention new module.
27222 * doc/functions/strstr.texi (strstr): Document the bug.
27224 2008-01-10 Bruno Haible <bruno@clisp.org>
27226 * lib/relocatable.h (relocate): State whether result is freshly
27228 * lib/relocatable.c (relocate): Return a freshly allocated string
27229 instead of a pointer to a privately held string.
27230 Reported by Sylvain Beucler <beuc@gnu.org>.
27232 2008-01-10 Colin Watson <cjwatson@debian.org>
27234 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27235 s/S_ISNLK/S_ISLNK/.
27237 2008-01-09 Bruno Haible <bruno@clisp.org>
27239 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27241 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27242 if it's only a guess.
27243 * modules/memmem: Simplify by depending on memmem-simple.
27245 2008-01-09 Bruno Haible <bruno@clisp.org>
27247 Work around OpenBSD 4.0 tdelete() bug.
27248 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27249 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27250 macros and don't redefine the enum values.
27251 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27252 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27253 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27255 2008-01-09 Bruno Haible <bruno@clisp.org>
27257 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27258 (main): Don't perform the tests if setlocale did not install a UTF-8
27259 locale. Needed on OpenBSD 4.0.
27260 * modules/wcwidth-tests (Depends-on): Add localcharset.
27262 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
27264 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27265 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27266 * NEWS: announce this.
27267 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27269 2008-01-09 Simon Josefsson <simon@josefsson.org>
27270 and Eric Blake <ebb9@byu.net>
27272 Add memmem-simple module.
27273 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27274 (gl_FUNC_MEMMEM): Separate performance from presence checks.
27275 * modules/memmem-simple: New file.
27276 * modules/memmem (Description): Tweak.
27277 * MODULES.html.sh (string handling): Mention new module.
27278 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27279 addressed by memmem-simple.
27280 * NEWS: Document the difference.
27282 2008-01-09 Eric Blake <ebb9@byu.net>
27284 Give gcc some memmem optimization hints.
27285 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27286 (strcasestr): Declare as pure.
27287 * modules/memmem (Maintainer): Claim my implementation.
27289 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27291 Support AIX 6.1 and higher.
27292 * build-aux/config.libpath: Likewise.
27293 * build-aux/config.rpath: Likewise.
27295 2008-01-08 Jim Meyering <meyering@redhat.com>
27296 Bruno Haible <bruno@clisp.org>
27298 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27299 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27300 Reported by Peter Fales in
27301 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27303 2008-01-08 Bruno Haible <bruno@clisp.org>
27305 * modules/unictype/category-of (Depends-on): Add
27306 unictype/category-none.
27307 * modules/unictype/category-and-tests (Depends-on): Add
27308 unictype/category-{L,N,Lu,Nd}.
27309 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27310 * modules/unictype/category-or-tests (Depends-on): Add
27311 unictype/category-{L,N}.
27312 * modules/unictype/category-name-tests (Depends-on): Add
27313 unictype/category-{Z,Nl}.
27314 Reported by Simon Josefsson.
27316 2008-01-08 Bruno Haible <bruno@clisp.org>
27318 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27320 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27321 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27322 Reported by Peter Miller <millerp@canb.auug.org.au>.
27324 2008-01-08 Eric Blake <ebb9@byu.net>
27326 Rewrite memmem to guarantee linear complexity without malloc.
27327 * lib/memmem.c (memmem): Use Two-Way rather than
27328 Knuth-Morris-Pratt, to allow O(1) space usage.
27329 (critical_factorization, two_way_short_needle)
27330 (two_way_long_needle): New functions.
27331 (knuth_morris_pratt): Delete.
27332 * modules/memmem (Depends-on): No longer need malloca or stdbool.
27334 * tests/test-memmem.c (main): Add tests for periodic needle and
27335 sublinear performance.
27336 * doc/functions/memmem.texi (memmem): Document other deficiencies
27337 in cygwin and older glibc.
27339 2008-01-08 Bruno Haible <bruno@clisp.org>
27341 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27344 2008-01-08 Mike Frysinger <vapier@gentoo.org>
27346 Add a configure time option: --disable-acl.
27347 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27348 AC_ARG_ENABLE(acl).
27350 2008-01-06 Simon Josefsson <simon@josefsson.org>
27352 * tests/test-localename.c: Don't include obsolete "setenv.h".
27354 * modules/localename-tests (Depends-on): Need unsetenv.
27356 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27358 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27360 2008-01-06 Colin Watson <cjwatson@debian.org>
27362 * users.txt: Add man-db.
27364 2008-01-07 Bruno Haible <bruno@clisp.org>
27366 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27367 previous section name.
27369 2008-01-07 Bruno Haible <bruno@clisp.org>
27371 * lib/progname.c (set_program_name): Don't strip off a leading
27372 "lt-" prefix outside a .libs directory.
27373 Suggested by Paul Eggert.
27375 2008-01-01 Sylvain Beucler <beuc@gnu.org>
27376 Bruno Haible <bruno@clisp.org>
27378 Improve memory cleanup in 'relocatable' module.
27379 * lib/relocatable.h (compute_curr_prefix): Change return type to
27381 * lib/relocatable.c (compute_curr_prefix): Change return type to
27382 'char *'. Free curr_installdir after use.
27383 (relocate): Free curr_prefix_better after use.
27384 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27386 2008-01-01 Bruno Haible <bruno@clisp.org>
27388 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27389 failure on older glibc systems.
27390 Reported by Peter Fales <psfales@alcatel-lucent.com>.
27392 2008-01-05 Eric Blake <ebb9@byu.net>
27394 Avoid quadratic system memmem.
27395 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27396 Reported by Ralf Wildenhues.
27398 Fix memmem test for mingw.
27399 * modules/memmem-tests (configure.ac): Check for alarm.
27400 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27402 * doc/functions/memmem.texi: New file.
27403 * doc/gnulib.texi (Function Substitutes): Add memmem.
27404 Reported by Bruno Haible.
27406 2008-01-04 Bruno Haible <bruno@clisp.org>
27408 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27409 Require gl_HEADER_STRINGS_H_DEFAULTS, not
27410 gl_HEADER_STRING_H_DEFAULTS.
27412 2008-01-04 Eric Blake <ebb9@byu.net>
27414 Shorten duration of memmem test.
27415 * tests/test-memmem.c (main): Use alarm to declare failure if test
27416 is taking too long.
27417 Reported by Ralf Wildenhues.
27419 2007-12-21 Simon Josefsson <simon@josefsson.org>
27421 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27422 string, needed by strerror.
27424 2008-01-03 Colin Watson <cjwatson@debian.org>
27425 Bruno Haible <bruno@clisp.org>
27427 * doc/gnulib-tool.texi (Localization): New section.
27429 2008-01-02 Bruno Haible <bruno@clisp.org>
27431 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27432 variables to 'unsigned char *' type.
27433 Reported by Paul Eggert.
27435 2008-01-02 Jim Meyering <jim@meyering.net>
27437 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27439 2007-12-31 Jim Meyering <jim@meyering.net>
27441 Avoid use of private FTS type name.
27442 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27444 2007-12-30 Karl Berry <karl@gnu.org>
27446 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27447 work around defect in Texinfo and/or the standalone Info browser.
27449 2007-12-30 Bruno Haible <bruno@clisp.org>
27451 Unify 5 copies of the KMP code.
27452 * lib/str-kmp.h: New file.
27453 * lib/c-strcasestr.c: Include str-kmp.h.
27454 (knuth_morris_pratt): Remove function.
27455 (c_strcasestr): Update.
27456 * lib/c-strstr.c: Include str-kmp.h.
27457 (knuth_morris_pratt): Remove function.
27458 (c_strcasestr): Update.
27459 * lib/mbscasestr.c: Include str-kmp.h.
27460 (knuth_morris_pratt_unibyte): Remove function.
27461 * lib/mbsstr.c: Include str-kmp.h.
27462 (knuth_morris_pratt_unibyte): Remove function.
27463 * lib/strcasestr.c: Include str-kmp.h.
27464 (knuth_morris_pratt): Remove function.
27465 (strcasestr): Update.
27466 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27467 * modules/c-strstr (Files): Likewise.
27468 * modules/mbscasestr (Files): Likewise.
27469 * modules/mbsstr (Files): Likewise.
27470 * modules/strcasestr (Files): Likewise.
27471 Suggested by Paul Eggert.
27473 2007-12-30 Bruno Haible <bruno@clisp.org>
27475 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27478 2007-12-30 Bruno Haible <bruno@clisp.org>
27480 * lib/xmalloca.h: Include xalloc.h.
27481 (xnmalloca): New macro.
27483 2007-12-30 Bruno Haible <bruno@clisp.org>
27485 * lib/malloca.h (nmalloca): New macro.
27486 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27487 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27488 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27489 knuth_morris_pratt_multibyte): Likewise.
27490 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27491 knuth_morris_pratt_multibyte): Likewise.
27492 * lib/memmem.c (knuth_morris_pratt): Likewise.
27493 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27495 2007-12-25 Bruno Haible <bruno@clisp.org>
27497 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27498 * lib/glob.c: Don't include openat.h.
27499 (link_exists2_p): Add back the code that deals with the
27500 !GLOB_ALTDIRFUNC case.
27501 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27502 let it do the filename concatenation.
27503 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27504 * modules/glob (Depends-on): Remove openat.
27506 2007-12-31 Bruno Haible <bruno@clisp.org>
27508 * modules/dirfd (License): Change to LGPLv2+.
27509 Approved by Jim Meyering.
27511 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
27513 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27514 when multiplying M by sizeof (size_t).
27516 2007-12-10 Martin Lambers <marlam@marlam.de>
27518 Override getpagesize on mingw.
27519 * lib/getpagesize.c: New file.
27520 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27521 * modules/getpagesize (Files): Add lib/getpagesize.c.
27522 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27523 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27524 REPLACE_GETPAGESIZE.
27525 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27527 2007-12-25 Bruno Haible <bruno@clisp.org>
27529 * modules/localcharset (Notice): New field.
27530 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27531 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27533 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
27534 Bruno Haible <bruno@clisp.org>
27536 Avoid using the syntax symbol() in formatted documentation.
27537 * MODULES.html.sh (func_module): When replacing symbol() with a
27538 hyperlink, remove the parentheses. Show an error if some remain.
27539 Recognize and render the '...' syntax.
27540 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27541 Rework. Add paragraph about GCC's inlining.
27542 * doc/alloca.texi: Likewise.
27543 * doc/error.texi: Remove parentheses from symbol reference.
27544 * doc/gnulib-intro.texi: Likewise.
27545 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27546 * modules/fnmatch (Description): Reword to say "the ... function".
27547 * modules/full-read (Description): Likewise.
27548 * modules/full-write (Description): Likewise.
27549 * modules/safe-read (Description): Likewise.
27550 * modules/safe-write (Description): Likewise.
27551 * modules/strchrnul (Description): Likewise.
27552 * modules/trim (Description): Likewise.
27553 * modules/error (Description): Remove parentheses from symbol
27555 * modules/verror (Description): Likewise.
27556 Reported by Karl Berry.
27558 2007-12-25 Bruno Haible <bruno@clisp.org>
27560 Fixup after 2007-10-16 commit.
27561 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27563 2007-12-24 Bruno Haible <bruno@clisp.org>
27565 Make --enable-relocatable work with DESTDIR.
27566 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27567 to compute installdir from destprog.
27568 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27569 also set the RELOC_DESTDIR variable.
27570 Reported by Левашев Иван <octagram@bluebottle.com>.
27572 2007-12-24 Bruno Haible <bruno@clisp.org>
27574 Fix link error due to xalloc_die().
27575 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27577 * lib/relocwrapper.c: Update comments.
27578 * build-aux/install-reloc: Remove xreadlink.c from file list.
27579 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27581 Reported by Левашев Иван <octagram@bluebottle.com>.
27583 2007-12-24 Bruno Haible <bruno@clisp.org>
27585 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27586 * lib/setenv.h: Remove file.
27587 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27589 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27590 (Depends-on): Add stdlib.
27591 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27593 (Include): Replace setenv.h with <stdlib.h>.
27594 * modules/unsetenv: New file.
27595 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27596 * lib/unsetenv.c: Include <stdlib.h> first.
27597 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27598 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27599 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27600 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27601 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27602 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27603 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27604 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27605 * doc/functions/unsetenv.texi: Update.
27606 * modules/xsetenv (Depends-on): Add unsetenv.
27607 * modules/getdate (Depends-on): Likewise.
27608 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27609 * lib/xsetenv.c: Don't include setenv.h.
27610 * lib/getdate.y: Likewise.
27611 * lib/relocwrapper.c: Likewise.
27612 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27613 (Depends-on): Add stdlib.
27614 * NEWS: Mention the changes.
27615 Reported by Левашев Иван <octagram@bluebottle.com>.
27617 2007-12-23 Bruno Haible <bruno@clisp.org>
27619 * lib/memmem.c (memmem): Use lowercase variable names. Tab
27622 2007-12-23 Bruno Haible <bruno@clisp.org>
27624 * lib/c-strcasestr.c: Add more comments.
27625 * lib/c-strstr.c: Likewise.
27626 * lib/mbscasestr.c: Likewise.
27627 * lib/mbsstr.c: Likewise.
27628 * lib/strcasestr.c: Likewise.
27629 * lib/memmem.c: Likewise.
27631 2007-12-23 Bruno Haible <bruno@clisp.org>
27633 * tests/test-memmem.c: Include <string.h> first.
27635 2007-12-22 Bruno Haible <bruno@clisp.org>
27637 * gnulib-tool (func_create_testdir): Change $auxdir while generating
27638 the contents of $testsbase.
27639 Reported by Ralf Wildenhues.
27641 2007-12-22 Bruno Haible <bruno@clisp.org>
27643 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27644 two variables local_ldadd_before, local_ldadd_last.
27646 2007-12-20 Eric Blake <ebb9@byu.net>
27648 Work around circular library issue when cross-compiling.
27649 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27650 that progname.o does not need to pull in rpl_memcmp.
27652 2007-12-19 Eric Blake <ebb9@byu.net>
27654 Fix memmem to avoid O(n^2) worst-case complexity.
27655 * lib/memmem.c (knuth_morris_pratt): New function.
27656 (memmem): Use it if first few naive iterations fail.
27657 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27658 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27659 * modules/memchr (License): Likewise.
27660 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27662 * tests/test-memmem.c: Rewrite, borrowing ideas from
27663 test-mbsstr1.c; the old version wouldn't even compile!
27664 * modules/memmem-tests: New file.
27665 * lib/string.in.h (rpl_memmem): Add declaration.
27666 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27667 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27670 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
27672 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27673 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27674 before any system include files, and undef after them all. This
27675 should fix a problem on VMS reported by John E. Malmberg in
27676 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27678 2007-12-17 Eric Blake <ebb9@byu.net>
27680 Revert addition of verify, for BSD/OS.
27681 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27682 can't handle large files, for the sake of obsolete platforms.
27683 * modules/fseeko (Depends-on): Remove verify.
27684 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27685 * doc/functions/ftello.texi (ftello): Likewise.
27686 * doc/functions/fgetpos.texi (fgetpos): Likewise.
27687 Reported by Larry Jones.
27689 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
27691 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27692 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27694 2007-12-17 Jim Meyering <meyering@redhat.com>
27696 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27697 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27698 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27699 * modules/getcwd (Depends-on): Add openat.
27700 Reported by Petr Salinger.
27702 2007-12-17 Bruno Haible <bruno@clisp.org>
27704 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27705 avoid a segmentation fault of the configure test on x86_64 systems.
27707 2007-12-15 Jim Meyering <meyering@redhat.com>
27709 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27711 2007-12-13 Eric Blake <ebb9@byu.net>
27713 Another fseek test.
27714 * tests/test-fseek.c (main): Also test ungetc handling.
27715 * tests/test-fseeko.c (main): Likewise.
27716 * modules/fseeko (Depends-on): Add verify.
27717 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27719 Reported by Larry Jones.
27721 Fix fseeko on mingw.
27722 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27725 Beef up fseek tests.
27726 * tests/test-fseek.c (main): Also test eof handling.
27727 * tests/test-fseeko.c (main): Likewise.
27728 Reported by Larry Jones.
27730 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
27732 Fix fseeko on BSD-based platforms.
27733 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27736 2007-12-12 Eric Blake <ebb9@byu.net>
27738 Allow circular dependency of separate libtests.a
27739 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27742 2007-12-11 Eric Blake <ebb9@byu.net>
27744 Fix bug with -0.0L in previous patch.
27745 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27746 * tests/test-isnan.c (main): Also test on zeroes.
27747 * tests/test-isnanf.c (main): Likewise.
27748 * tests/test-isnanl.h (main): Likewise.
27750 Detect pseudo-denormals on x86 even when cross-compiling.
27751 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27752 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27753 invalid bit patterns that happen to satisfy ==.
27755 Avoid link failures with separate libtests.a.
27756 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27757 last, to satisfy circular dependencies.
27759 2007-12-11 Eric Blake <ebb9@byu.net>
27760 and Bruno Haible <bruno@clisp.org>
27762 Fix OpenBSD 4.0 <float.h> handling of long double.
27763 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27764 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27765 * doc/headers/float.texi (float.h): Document OpenBSD bug.
27767 2007-12-11 Jim Meyering <meyering@redhat.com>
27769 * users.txt: Add libvirt.
27771 Support versions of autoconf prior to 2.59c.
27772 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27773 if it is not already defined.
27775 2007-12-09 Bruno Haible <bruno@clisp.org>
27777 Let 'gnulib-tool --import' collect sources needed for the tests in
27778 tests/ rather than in lib/.
27779 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27780 argument. If true, add rules to generate libtests.a, and put libtests.a
27781 into $(LDADD). Consider source files in subdirectories and set
27783 (func_emit_initmacro_start, func_emit_initmacro_end,
27784 func_emit_initmacro_done): Pass all arguments explicitly.
27785 (func_import): Determine two module lists main_modules,
27786 testsrelated_modules. Determine use_libtests. Determine two variables
27787 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27788 instead of just sed_transform_lib_file. Determine two variables
27789 main_files and testsrelated_files. Compute 'files' as the union of
27790 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27791 func_add_or_update. In the generated gnulib-comp.m4, collect the
27792 object files for tests/ in different variables than those for lib/.
27793 Substitute LIBTESTS_LIBDEPS.
27794 (func_create_testdir): Combine the uses_subdirs results from
27795 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27797 2007-12-09 Bruno Haible <bruno@clisp.org>
27799 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27800 the build-aux directory.
27802 2007-12-09 Bruno Haible <bruno@clisp.org>
27804 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27805 introduced on 2006-09-09.
27807 2007-12-07 Jim Meyering <meyering@redhat.com>
27809 Let these macros work also with autoconf-2.59.
27810 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
27811 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27812 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27814 2007-12-06 Jim Meyering <meyering@redhat.com>
27816 Avoid a configure-time syntax error in gl_FUNC_ACL.
27817 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27818 function in each branch, before testing the cache variable.
27820 2007-12-04 Eric Blake <ebb9@byu.net>
27822 Make scripts executable.
27823 * build-aux/config.guess: Add execute permissions.
27824 * build-aux/config.sub: Likewise.
27825 * build-aux/gendocs.sh: Likewise.
27827 Fix frexp on mingw.
27828 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27830 * doc/functions/frexp.texi (frexp): Document the bug.
27832 Make cygwin fseeko check more reliable.
27833 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27834 version numbers, rather than unrelated feature check.
27835 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27836 * doc/functions/ftello.texi (ftello): Likewise.
27837 Reported by Bruno Haible.
27839 * m4/strerror.m4: Bump version number.
27841 2007-12-03 Bruno Haible <bruno@clisp.org>
27843 * doc/functions/mprotect.texi: Mention the mingw problem.
27845 2007-12-03 Eric Blake <ebb9@byu.net>
27847 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27848 REPLACE_STRERROR is initialized before this macro.
27850 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
27852 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
27853 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27854 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
27855 put -lsec in even for programs other than 'ls'. This fixes a problem
27856 for gettext reported by Bruno Haible in
27857 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27858 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27859 Add support for Solaris 10. This isn't efficient, but should get the
27862 2007-12-03 James Youngman <jay@gnu.org>
27864 * doc/regexprops-generic.texi: change "an close-group" to "a
27865 close-group" and "illegal" to "not allowed".
27867 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27869 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27870 pr_byname.h. Needed for the rare case when the maintainer has done
27871 "make maintainer-clean" in the source directory and then attempts a
27872 build outside the source directory.
27873 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27876 2007-12-02 Martin Lambers <marlam@marlam.de>
27877 Bruno Haible <bruno@clisp.org>
27879 * lib/getpagesize.h: Remove file.
27880 * lib/unistd.in.h: Include declaration of getpagesize here.
27881 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27882 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27884 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27885 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27886 * modules/getpagesize (Files): Remove lib/getpagesize.h.
27887 (Depends-on): Add unistd.
27888 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27889 (Include): Use <unistd.h> instead of getpagesize.h.
27890 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27891 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27892 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27893 gl_GETPAGESIZE invocation, already handled by module dependency.
27894 * lib/pagealign_alloc.c: Don't include getpagesize.h.
27896 2007-12-02 Bruno Haible <bruno@clisp.org>
27898 * modules/strings-tests: New file.
27899 * tests/test-strings.c: New file.
27901 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27902 * lib/strings.in.h: New file.
27903 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27904 * m4/strings_h.m4: New file.
27905 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27906 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27907 * modules/strings: New file.
27908 * modules/string (Makefile.am): Update.
27909 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27910 Reported by Karl Berry.
27912 2007-12-01 Eric Blake <ebb9@byu.net>
27914 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27915 accomodate fix in cygwin 1.5.25.
27917 2007-12-01 Jim Meyering <meyering@redhat.com>
27919 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27920 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27921 that would inhibit utf8-optimization of a regexp containing line-
27922 or buffer-anchors, e.g., `^', `$'.
27924 2007-11-30 Bruno Haible <bruno@clisp.org>
27926 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27927 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27928 glthread_recursive_lock_init.
27929 * lib/lock.c (glthread_recursive_lock_init)
27930 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27931 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27933 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
27935 New function qset_acl, like set_acl but with syscall semantics.
27936 * lib/acl.h (qset_acl): New decl.
27937 * lib/acl.c (qset_acl): New function.
27938 (set_acl): Use new function. Use more-consistent diagnostics.
27940 2007-11-28 Jim Meyering <meyering@redhat.com>
27942 * modules/physmem (License): Change from GPL to LGPLv2+.
27944 2007-11-26 Bruno Haible <bruno@clisp.org>
27946 * lib/vasnprintf.c (decode_long_double): Don't abort if the
27947 'long double' type has excess precision.
27948 Reported by Jim Meyering in
27949 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27951 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27953 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27954 Sync from <http://gnu.org/licenses>.
27955 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27956 with license text from same location.
27957 * doc/maintain.texi, doc/standards.texi: Sync from
27958 <http://savannah.gnu.org/projects/gnustandards>.
27960 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
27961 and Jim Meyering <meyering@redhat.com>
27963 Adjust getdate' grammar to accept a slightly more regular language.
27964 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27965 Before, the former was rejected.
27966 * lib/getdate.y (digits_to_date_time): New function, factored
27968 (number): ...here. Just call digits_to_date_time.
27969 (hybrid): New non-terminal to handle an <unsigned number,
27970 signed relative offset> sequence consistently.
27972 2007-11-18 Jim Meyering <meyering@redhat.com>
27974 Pull my changes from coreutils:
27975 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27976 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27977 use of $gnulib_tool_option_extras, so that it's separated from the
27978 preceding argument.
27980 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27981 * build-aux/bootstrap (cp_mark_as_generated): Create any required
27982 parent destination directories before copying a file into place.
27984 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
27986 bootstrap: work also with 4-argument variant of AC_INIT
27987 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27989 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
27991 Port test-getaddrinfo to Solaris.
27992 Problem reported by Bruno Haible in
27993 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27994 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27995 explanation of setting 'hints'.
27996 Don't reject an implementation merely because it returns EAI_SERVICE.
27997 (EAI_SERVICE): Define to 0 if not defined.
27999 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
28001 The license of gnu-make and posix-shell is now "GPLed build tool".
28002 * modules/gnu-make (License): Likewise.
28003 * modules/posix-shell (License): Likewise.
28005 New module posix-shell, for determining a POSIX shell
28006 or perhaps something that is close enough to a POSIX shell.
28007 * m4/posix-shell.m4: New file.
28008 * modules/posix-shell: New file.
28010 * MODULES.html.sh: Mention new module.
28012 New module gnu-make, for determining whether we're using GNU Make.
28013 * m4/gnu-make.m4: New file.
28014 * modules/gnu-make: New file.
28015 * MODULES.html.sh: Mention new module.
28017 2007-11-14 Jim Meyering <meyering@redhat.com>
28019 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28020 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28021 use this macro to create a function _definition_.
28022 Remove useless "#undef ARGMATCH_DIE".
28024 2007-11-14 Bruno Haible <bruno@clisp.org>
28026 * lib/config.charset: Update for OpenBSD 4.1.
28027 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28029 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
28031 Document 64-bit #if problems in stdint.texi.
28032 * doc/headers/stdint.texi (stdint.h): Mention problems with
28033 64-bit-#if, and how to work around them.
28035 Don't insist on 'long long int' support in the preprocessor. It
28036 breaks too many things. For example, PRIdMAX still uses a 'long
28037 long int' format with the latest Sun compiler, even though
28038 HAVE_LONG_LONG_INT isn't defined due to that compiler's
28039 preprocessor problem. This causes the latest coreutils to dump
28040 core on Solaris 10 sparc with the Sun C compiler.
28041 Instead, fix the 2007-10-16 problem in a different way, by evaluating
28042 the troublesome expressions at configure-time, not at #if-time.
28043 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28045 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28046 compile-time C checks, done at 'configure'-time.
28047 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28048 * modules/inttypes (Makefile): Substitute the new symbols that
28049 gl_INTTYPES_H now generates.
28050 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28052 2007-11-12 Bruno Haible <bruno@clisp.org>
28054 Tests for Unicode character classification functions.
28056 * modules/unictype/bidicategory-byname-tests: New file.
28057 * modules/unictype/bidicategory-name-tests: New file.
28058 * modules/unictype/bidicategory-of-tests: New file.
28059 * modules/unictype/bidicategory-test-tests: New file.
28060 * modules/unictype/block-list-tests: New file.
28061 * modules/unictype/block-of-tests: New file.
28062 * modules/unictype/block-test-tests: New file.
28063 * modules/unictype/category-C-tests: New file.
28064 * modules/unictype/category-Cc-tests: New file.
28065 * modules/unictype/category-Cf-tests: New file.
28066 * modules/unictype/category-Cn-tests: New file.
28067 * modules/unictype/category-Co-tests: New file.
28068 * modules/unictype/category-Cs-tests: New file.
28069 * modules/unictype/category-L-tests: New file.
28070 * modules/unictype/category-Ll-tests: New file.
28071 * modules/unictype/category-Lm-tests: New file.
28072 * modules/unictype/category-Lo-tests: New file.
28073 * modules/unictype/category-Lt-tests: New file.
28074 * modules/unictype/category-Lu-tests: New file.
28075 * modules/unictype/category-M-tests: New file.
28076 * modules/unictype/category-Mc-tests: New file.
28077 * modules/unictype/category-Me-tests: New file.
28078 * modules/unictype/category-Mn-tests: New file.
28079 * modules/unictype/category-N-tests: New file.
28080 * modules/unictype/category-Nd-tests: New file.
28081 * modules/unictype/category-Nl-tests: New file.
28082 * modules/unictype/category-No-tests: New file.
28083 * modules/unictype/category-P-tests: New file.
28084 * modules/unictype/category-Pc-tests: New file.
28085 * modules/unictype/category-Pd-tests: New file.
28086 * modules/unictype/category-Pe-tests: New file.
28087 * modules/unictype/category-Pf-tests: New file.
28088 * modules/unictype/category-Pi-tests: New file.
28089 * modules/unictype/category-Po-tests: New file.
28090 * modules/unictype/category-Ps-tests: New file.
28091 * modules/unictype/category-S-tests: New file.
28092 * modules/unictype/category-Sc-tests: New file.
28093 * modules/unictype/category-Sk-tests: New file.
28094 * modules/unictype/category-Sm-tests: New file.
28095 * modules/unictype/category-So-tests: New file.
28096 * modules/unictype/category-Z-tests: New file.
28097 * modules/unictype/category-Zl-tests: New file.
28098 * modules/unictype/category-Zp-tests: New file.
28099 * modules/unictype/category-Zs-tests: New file.
28100 * modules/unictype/category-and-not-tests: New file.
28101 * modules/unictype/category-and-tests: New file.
28102 * modules/unictype/category-byname-tests: New file.
28103 * modules/unictype/category-name-tests: New file.
28104 * modules/unictype/category-none-tests: New file.
28105 * modules/unictype/category-of-tests: New file.
28106 * modules/unictype/category-or-tests: New file.
28107 * modules/unictype/category-test-withtable-tests: New file.
28108 * modules/unictype/combining-class-tests: New file.
28109 * modules/unictype/ctype-alnum-tests: New file.
28110 * modules/unictype/ctype-alpha-tests: New file.
28111 * modules/unictype/ctype-blank-tests: New file.
28112 * modules/unictype/ctype-cntrl-tests: New file.
28113 * modules/unictype/ctype-digit-tests: New file.
28114 * modules/unictype/ctype-graph-tests: New file.
28115 * modules/unictype/ctype-lower-tests: New file.
28116 * modules/unictype/ctype-print-tests: New file.
28117 * modules/unictype/ctype-punct-tests: New file.
28118 * modules/unictype/ctype-space-tests: New file.
28119 * modules/unictype/ctype-upper-tests: New file.
28120 * modules/unictype/ctype-xdigit-tests: New file.
28121 * modules/unictype/decimal-digit-tests: New file.
28122 * modules/unictype/digit-tests: New file.
28123 * modules/unictype/mirror-tests: New file.
28124 * modules/unictype/numeric-tests: New file.
28125 * modules/unictype/property-alphabetic-tests: New file.
28126 * modules/unictype/property-ascii-hex-digit-tests: New file.
28127 * modules/unictype/property-bidi-arabic-digit-tests: New file.
28128 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28129 * modules/unictype/property-bidi-block-separator-tests: New file.
28130 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28131 * modules/unictype/property-bidi-common-separator-tests: New file.
28132 * modules/unictype/property-bidi-control-tests: New file.
28133 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28134 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28135 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28136 * modules/unictype/property-bidi-european-digit-tests: New file.
28137 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28138 * modules/unictype/property-bidi-left-to-right-tests: New file.
28139 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28140 * modules/unictype/property-bidi-other-neutral-tests: New file.
28141 * modules/unictype/property-bidi-pdf-tests: New file.
28142 * modules/unictype/property-bidi-segment-separator-tests: New file.
28143 * modules/unictype/property-bidi-whitespace-tests: New file.
28144 * modules/unictype/property-byname-tests: New file.
28145 * modules/unictype/property-combining-tests: New file.
28146 * modules/unictype/property-composite-tests: New file.
28147 * modules/unictype/property-currency-symbol-tests: New file.
28148 * modules/unictype/property-dash-tests: New file.
28149 * modules/unictype/property-decimal-digit-tests: New file.
28150 * modules/unictype/property-default-ignorable-code-point-tests: New file.
28151 * modules/unictype/property-deprecated-tests: New file.
28152 * modules/unictype/property-diacritic-tests: New file.
28153 * modules/unictype/property-extender-tests: New file.
28154 * modules/unictype/property-format-control-tests: New file.
28155 * modules/unictype/property-grapheme-base-tests: New file.
28156 * modules/unictype/property-grapheme-extend-tests: New file.
28157 * modules/unictype/property-grapheme-link-tests: New file.
28158 * modules/unictype/property-hex-digit-tests: New file.
28159 * modules/unictype/property-hyphen-tests: New file.
28160 * modules/unictype/property-id-continue-tests: New file.
28161 * modules/unictype/property-id-start-tests: New file.
28162 * modules/unictype/property-ideographic-tests: New file.
28163 * modules/unictype/property-ids-binary-operator-tests: New file.
28164 * modules/unictype/property-ids-trinary-operator-tests: New file.
28165 * modules/unictype/property-ignorable-control-tests: New file.
28166 * modules/unictype/property-iso-control-tests: New file.
28167 * modules/unictype/property-join-control-tests: New file.
28168 * modules/unictype/property-left-of-pair-tests: New file.
28169 * modules/unictype/property-line-separator-tests: New file.
28170 * modules/unictype/property-logical-order-exception-tests: New file.
28171 * modules/unictype/property-lowercase-tests: New file.
28172 * modules/unictype/property-math-tests: New file.
28173 * modules/unictype/property-non-break-tests: New file.
28174 * modules/unictype/property-not-a-character-tests: New file.
28175 * modules/unictype/property-numeric-tests: New file.
28176 * modules/unictype/property-other-alphabetic-tests: New file.
28177 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28178 * modules/unictype/property-other-grapheme-extend-tests: New file.
28179 * modules/unictype/property-other-id-continue-tests: New file.
28180 * modules/unictype/property-other-id-start-tests: New file.
28181 * modules/unictype/property-other-lowercase-tests: New file.
28182 * modules/unictype/property-other-math-tests: New file.
28183 * modules/unictype/property-other-uppercase-tests: New file.
28184 * modules/unictype/property-paired-punctuation-tests: New file.
28185 * modules/unictype/property-paragraph-separator-tests: New file.
28186 * modules/unictype/property-pattern-syntax-tests: New file.
28187 * modules/unictype/property-pattern-white-space-tests: New file.
28188 * modules/unictype/property-private-use-tests: New file.
28189 * modules/unictype/property-punctuation-tests: New file.
28190 * modules/unictype/property-quotation-mark-tests: New file.
28191 * modules/unictype/property-radical-tests: New file.
28192 * modules/unictype/property-sentence-terminal-tests: New file.
28193 * modules/unictype/property-soft-dotted-tests: New file.
28194 * modules/unictype/property-space-tests: New file.
28195 * modules/unictype/property-terminal-punctuation-tests: New file.
28196 * modules/unictype/property-test-tests: New file.
28197 * modules/unictype/property-titlecase-tests: New file.
28198 * modules/unictype/property-unassigned-code-value-tests: New file.
28199 * modules/unictype/property-unified-ideograph-tests: New file.
28200 * modules/unictype/property-uppercase-tests: New file.
28201 * modules/unictype/property-variation-selector-tests: New file.
28202 * modules/unictype/property-white-space-tests: New file.
28203 * modules/unictype/property-xid-continue-tests: New file.
28204 * modules/unictype/property-xid-start-tests: New file.
28205 * modules/unictype/property-zero-width-tests: New file.
28206 * modules/unictype/scripts-tests: New file.
28207 * modules/unictype/syntax-c-ident-tests: New file.
28208 * modules/unictype/syntax-c-whitespace-tests: New file.
28209 * modules/unictype/syntax-java-ident-tests: New file.
28210 * modules/unictype/syntax-java-whitespace-tests: New file.
28211 * tests/unictype/test-bidi_byname.c: New file.
28212 * tests/unictype/test-bidi_name.c: New file.
28213 * tests/unictype/test-bidi_of.c: New file.
28214 * tests/unictype/test-bidi_test.c: New file.
28215 * tests/unictype/test-block_list.c: New file.
28216 * tests/unictype/test-block_of.c: New file.
28217 * tests/unictype/test-block_test.c: New file.
28218 * tests/unictype/test-categ_and.c: New file.
28219 * tests/unictype/test-categ_and_not.c: New file.
28220 * tests/unictype/test-categ_byname.c: New file.
28221 * tests/unictype/test-categ_name.c: New file.
28222 * tests/unictype/test-categ_none.c: New file.
28223 * tests/unictype/test-categ_of.c: New file.
28224 * tests/unictype/test-categ_or.c: New file.
28225 * tests/unictype/test-categ_test_withtable.c: New file.
28226 * tests/unictype/test-combining.c: New file.
28227 * tests/unictype/test-decdigit.c: New file.
28228 * tests/unictype/test-digit.c: New file.
28229 * tests/unictype/test-mirror.c: New file.
28230 * tests/unictype/test-numeric.c: New file.
28231 * tests/unictype/test-pr_byname.c: New file.
28232 * tests/unictype/test-pr_test.c: New file.
28233 * tests/unictype/test-predicate-part1.h: New file.
28234 * tests/unictype/test-predicate-part2.h: New file.
28235 * tests/unictype/test-scripts.c: New file.
28236 * tests/unictype/test-sy_c_ident.c: New file.
28237 * tests/unictype/test-sy_java_ident.c: New file.
28239 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28241 * tests/unictype/test-categ_Cc.c: Likewise.
28242 * tests/unictype/test-categ_Cf.c: Likewise.
28243 * tests/unictype/test-categ_Cn.c: Likewise.
28244 * tests/unictype/test-categ_Co.c: Likewise.
28245 * tests/unictype/test-categ_Cs.c: Likewise.
28246 * tests/unictype/test-categ_L.c: Likewise.
28247 * tests/unictype/test-categ_Ll.c: Likewise.
28248 * tests/unictype/test-categ_Lm.c: Likewise.
28249 * tests/unictype/test-categ_Lo.c: Likewise.
28250 * tests/unictype/test-categ_Lt.c: Likewise.
28251 * tests/unictype/test-categ_Lu.c: Likewise.
28252 * tests/unictype/test-categ_M.c: Likewise.
28253 * tests/unictype/test-categ_Mc.c: Likewise.
28254 * tests/unictype/test-categ_Me.c: Likewise.
28255 * tests/unictype/test-categ_Mn.c: Likewise.
28256 * tests/unictype/test-categ_N.c: Likewise.
28257 * tests/unictype/test-categ_Nd.c: Likewise.
28258 * tests/unictype/test-categ_Nl.c: Likewise.
28259 * tests/unictype/test-categ_No.c: Likewise.
28260 * tests/unictype/test-categ_P.c: Likewise.
28261 * tests/unictype/test-categ_Pc.c: Likewise.
28262 * tests/unictype/test-categ_Pd.c: Likewise.
28263 * tests/unictype/test-categ_Pe.c: Likewise.
28264 * tests/unictype/test-categ_Pf.c: Likewise.
28265 * tests/unictype/test-categ_Pi.c: Likewise.
28266 * tests/unictype/test-categ_Po.c: Likewise.
28267 * tests/unictype/test-categ_Ps.c: Likewise.
28268 * tests/unictype/test-categ_S.c: Likewise.
28269 * tests/unictype/test-categ_Sc.c: Likewise.
28270 * tests/unictype/test-categ_Sk.c: Likewise.
28271 * tests/unictype/test-categ_Sm.c: Likewise.
28272 * tests/unictype/test-categ_So.c: Likewise.
28273 * tests/unictype/test-categ_Z.c: Likewise.
28274 * tests/unictype/test-categ_Zl.c: Likewise.
28275 * tests/unictype/test-categ_Zp.c: Likewise.
28276 * tests/unictype/test-categ_Zs.c: Likewise.
28277 * tests/unictype/test-ctype_alnum.c: Likewise.
28278 * tests/unictype/test-ctype_alpha.c: Likewise.
28279 * tests/unictype/test-ctype_blank.c: Likewise.
28280 * tests/unictype/test-ctype_cntrl.c: Likewise.
28281 * tests/unictype/test-ctype_digit.c: Likewise.
28282 * tests/unictype/test-ctype_graph.c: Likewise.
28283 * tests/unictype/test-ctype_lower.c: Likewise.
28284 * tests/unictype/test-ctype_print.c: Likewise.
28285 * tests/unictype/test-ctype_punct.c: Likewise.
28286 * tests/unictype/test-ctype_space.c: Likewise.
28287 * tests/unictype/test-ctype_upper.c: Likewise.
28288 * tests/unictype/test-ctype_xdigit.c: Likewise.
28289 * tests/unictype/test-decdigit.h: Likewise.
28290 * tests/unictype/test-digit.h: Likewise.
28291 * tests/unictype/test-numeric.h: Likewise.
28292 * tests/unictype/test-pr_alphabetic.c: Likewise.
28293 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28294 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28295 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28296 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28297 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28298 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28299 * tests/unictype/test-pr_bidi_control.c: Likewise.
28300 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28301 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28302 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28303 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28304 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28305 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28306 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28307 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28308 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28309 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28310 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28311 * tests/unictype/test-pr_combining.c: Likewise.
28312 * tests/unictype/test-pr_composite.c: Likewise.
28313 * tests/unictype/test-pr_currency_symbol.c: Likewise.
28314 * tests/unictype/test-pr_dash.c: Likewise.
28315 * tests/unictype/test-pr_decimal_digit.c: Likewise.
28316 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28317 * tests/unictype/test-pr_deprecated.c: Likewise.
28318 * tests/unictype/test-pr_diacritic.c: Likewise.
28319 * tests/unictype/test-pr_extender.c: Likewise.
28320 * tests/unictype/test-pr_format_control.c: Likewise.
28321 * tests/unictype/test-pr_grapheme_base.c: Likewise.
28322 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28323 * tests/unictype/test-pr_grapheme_link.c: Likewise.
28324 * tests/unictype/test-pr_hex_digit.c: Likewise.
28325 * tests/unictype/test-pr_hyphen.c: Likewise.
28326 * tests/unictype/test-pr_id_continue.c: Likewise.
28327 * tests/unictype/test-pr_id_start.c: Likewise.
28328 * tests/unictype/test-pr_ideographic.c: Likewise.
28329 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28330 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28331 * tests/unictype/test-pr_ignorable_control.c: Likewise.
28332 * tests/unictype/test-pr_iso_control.c: Likewise.
28333 * tests/unictype/test-pr_join_control.c: Likewise.
28334 * tests/unictype/test-pr_left_of_pair.c: Likewise.
28335 * tests/unictype/test-pr_line_separator.c: Likewise.
28336 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28337 * tests/unictype/test-pr_lowercase.c: Likewise.
28338 * tests/unictype/test-pr_math.c: Likewise.
28339 * tests/unictype/test-pr_non_break.c: Likewise.
28340 * tests/unictype/test-pr_not_a_character.c: Likewise.
28341 * tests/unictype/test-pr_numeric.c: Likewise.
28342 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28343 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28344 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28345 * tests/unictype/test-pr_other_id_continue.c: Likewise.
28346 * tests/unictype/test-pr_other_id_start.c: Likewise.
28347 * tests/unictype/test-pr_other_lowercase.c: Likewise.
28348 * tests/unictype/test-pr_other_math.c: Likewise.
28349 * tests/unictype/test-pr_other_uppercase.c: Likewise.
28350 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28351 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28352 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28353 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28354 * tests/unictype/test-pr_private_use.c: Likewise.
28355 * tests/unictype/test-pr_punctuation.c: Likewise.
28356 * tests/unictype/test-pr_quotation_mark.c: Likewise.
28357 * tests/unictype/test-pr_radical.c: Likewise.
28358 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28359 * tests/unictype/test-pr_soft_dotted.c: Likewise.
28360 * tests/unictype/test-pr_space.c: Likewise.
28361 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28362 * tests/unictype/test-pr_titlecase.c: Likewise.
28363 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28364 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28365 * tests/unictype/test-pr_uppercase.c: Likewise.
28366 * tests/unictype/test-pr_variation_selector.c: Likewise.
28367 * tests/unictype/test-pr_white_space.c: Likewise.
28368 * tests/unictype/test-pr_xid_continue.c: Likewise.
28369 * tests/unictype/test-pr_xid_start.c: Likewise.
28370 * tests/unictype/test-pr_zero_width.c: Likewise.
28371 * tests/unictype/test-sy_c_whitespace.c: Likewise.
28372 * tests/unictype/test-sy_java_whitespace.c: Likewise.
28374 2007-11-12 Bruno Haible <bruno@clisp.org>
28376 Unicode character classification functions.
28377 * lib/unictype.h: New file.
28378 * modules/unictype/base: New file.
28379 * modules/unictype/category-L: New file.
28380 * modules/unictype/category-Lu: New file.
28381 * modules/unictype/category-Ll: New file.
28382 * modules/unictype/category-Lt: New file.
28383 * modules/unictype/category-Lm: New file.
28384 * modules/unictype/category-Lo: New file.
28385 * modules/unictype/category-M: New file.
28386 * modules/unictype/category-Mn: New file.
28387 * modules/unictype/category-Mc: New file.
28388 * modules/unictype/category-Me: New file.
28389 * modules/unictype/category-N: New file.
28390 * modules/unictype/category-Nd: New file.
28391 * modules/unictype/category-Nl: New file.
28392 * modules/unictype/category-No: New file.
28393 * modules/unictype/category-P: New file.
28394 * modules/unictype/category-Pc: New file.
28395 * modules/unictype/category-Pd: New file.
28396 * modules/unictype/category-Ps: New file.
28397 * modules/unictype/category-Pe: New file.
28398 * modules/unictype/category-Pi: New file.
28399 * modules/unictype/category-Pf: New file.
28400 * modules/unictype/category-Po: New file.
28401 * modules/unictype/category-S: New file.
28402 * modules/unictype/category-Sm: New file.
28403 * modules/unictype/category-Sc: New file.
28404 * modules/unictype/category-Sk: New file.
28405 * modules/unictype/category-So: New file.
28406 * modules/unictype/category-Z: New file.
28407 * modules/unictype/category-Zs: New file.
28408 * modules/unictype/category-Zl: New file.
28409 * modules/unictype/category-Zp: New file.
28410 * modules/unictype/category-C: New file.
28411 * modules/unictype/category-Cc: New file.
28412 * modules/unictype/category-Cf: New file.
28413 * modules/unictype/category-Cs: New file.
28414 * modules/unictype/category-Co: New file.
28415 * modules/unictype/category-Cn: New file.
28416 * modules/unictype/category-or: New file.
28417 * modules/unictype/category-of: New file.
28418 * modules/unictype/category-test: New file.
28419 * modules/unictype/category-test-withtable: New file.
28420 * modules/unictype/category-byname: New file.
28421 * modules/unictype/category-none: New file.
28422 * modules/unictype/category-and: New file.
28423 * modules/unictype/category-and-not: New file.
28424 * modules/unictype/category-name: New file.
28425 * modules/unictype/combining-class: New file.
28426 * modules/unictype/category-all: New file.
28427 * modules/unictype/bidicategory-all: New file.
28428 * modules/unictype/bidicategory-byname: New file.
28429 * modules/unictype/bidicategory-name: New file.
28430 * modules/unictype/bidicategory-of: New file.
28431 * modules/unictype/bidicategory-test: New file.
28432 * modules/unictype/decimal-digit: New file.
28433 * modules/unictype/digit: New file.
28434 * modules/unictype/numeric: New file.
28435 * modules/unictype/mirror: New file.
28436 * modules/unictype/property-white-space: New file.
28437 * modules/unictype/property-alphabetic: New file.
28438 * modules/unictype/property-other-alphabetic: New file.
28439 * modules/unictype/property-not-a-character: New file.
28440 * modules/unictype/property-default-ignorable-code-point: New file.
28441 * modules/unictype/property-other-default-ignorable-code-point: New
28443 * modules/unictype/property-deprecated: New file.
28444 * modules/unictype/property-logical-order-exception: New file.
28445 * modules/unictype/property-variation-selector: New file.
28446 * modules/unictype/property-private-use: New file.
28447 * modules/unictype/property-unassigned-code-value: New file.
28448 * modules/unictype/property-uppercase: New file.
28449 * modules/unictype/property-other-uppercase: New file.
28450 * modules/unictype/property-lowercase: New file.
28451 * modules/unictype/property-other-lowercase: New file.
28452 * modules/unictype/property-titlecase: New file.
28453 * modules/unictype/property-soft-dotted: New file.
28454 * modules/unictype/property-id-start: New file.
28455 * modules/unictype/property-other-id-start: New file.
28456 * modules/unictype/property-id-continue: New file.
28457 * modules/unictype/property-other-id-continue: New file.
28458 * modules/unictype/property-xid-start: New file.
28459 * modules/unictype/property-xid-continue: New file.
28460 * modules/unictype/property-pattern-white-space: New file.
28461 * modules/unictype/property-pattern-syntax: New file.
28462 * modules/unictype/property-join-control: New file.
28463 * modules/unictype/property-grapheme-base: New file.
28464 * modules/unictype/property-grapheme-extend: New file.
28465 * modules/unictype/property-other-grapheme-extend: New file.
28466 * modules/unictype/property-grapheme-link: New file.
28467 * modules/unictype/property-bidi-control: New file.
28468 * modules/unictype/property-bidi-left-to-right: New file.
28469 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28470 * modules/unictype/property-bidi-arabic-right-to-left: New file.
28471 * modules/unictype/property-bidi-european-digit: New file.
28472 * modules/unictype/property-bidi-eur-num-separator: New file.
28473 * modules/unictype/property-bidi-eur-num-terminator: New file.
28474 * modules/unictype/property-bidi-arabic-digit: New file.
28475 * modules/unictype/property-bidi-common-separator: New file.
28476 * modules/unictype/property-bidi-block-separator: New file.
28477 * modules/unictype/property-bidi-segment-separator: New file.
28478 * modules/unictype/property-bidi-whitespace: New file.
28479 * modules/unictype/property-bidi-non-spacing-mark: New file.
28480 * modules/unictype/property-bidi-boundary-neutral: New file.
28481 * modules/unictype/property-bidi-pdf: New file.
28482 * modules/unictype/property-bidi-embedding-or-override: New file.
28483 * modules/unictype/property-bidi-other-neutral: New file.
28484 * modules/unictype/property-hex-digit: New file.
28485 * modules/unictype/property-ascii-hex-digit: New file.
28486 * modules/unictype/property-ideographic: New file.
28487 * modules/unictype/property-unified-ideograph: New file.
28488 * modules/unictype/property-radical: New file.
28489 * modules/unictype/property-ids-binary-operator: New file.
28490 * modules/unictype/property-ids-trinary-operator: New file.
28491 * modules/unictype/property-zero-width: New file.
28492 * modules/unictype/property-space: New file.
28493 * modules/unictype/property-non-break: New file.
28494 * modules/unictype/property-iso-control: New file.
28495 * modules/unictype/property-format-control: New file.
28496 * modules/unictype/property-dash: New file.
28497 * modules/unictype/property-hyphen: New file.
28498 * modules/unictype/property-punctuation: New file.
28499 * modules/unictype/property-line-separator: New file.
28500 * modules/unictype/property-paragraph-separator: New file.
28501 * modules/unictype/property-quotation-mark: New file.
28502 * modules/unictype/property-sentence-terminal: New file.
28503 * modules/unictype/property-terminal-punctuation: New file.
28504 * modules/unictype/property-currency-symbol: New file.
28505 * modules/unictype/property-math: New file.
28506 * modules/unictype/property-other-math: New file.
28507 * modules/unictype/property-paired-punctuation: New file.
28508 * modules/unictype/property-left-of-pair: New file.
28509 * modules/unictype/property-combining: New file.
28510 * modules/unictype/property-composite: New file.
28511 * modules/unictype/property-decimal-digit: New file.
28512 * modules/unictype/property-numeric: New file.
28513 * modules/unictype/property-diacritic: New file.
28514 * modules/unictype/property-extender: New file.
28515 * modules/unictype/property-ignorable-control: New file.
28516 * modules/unictype/property-test: New file.
28517 * modules/unictype/property-byname: New file.
28518 * modules/unictype/property-all: New file.
28519 * modules/unictype/scripts: New file.
28520 * modules/unictype/scripts-all: New file.
28521 * modules/unictype/block-of: New file.
28522 * modules/unictype/block-test: New file.
28523 * modules/unictype/block-list: New file.
28524 * modules/unictype/block-all: New file.
28525 * modules/unictype/syntax-c-whitespace: New file.
28526 * modules/unictype/syntax-java-whitespace: New file.
28527 * modules/unictype/syntax-c-ident: New file.
28528 * modules/unictype/syntax-java-ident: New file.
28529 * modules/unictype/ctype-alnum: New file.
28530 * modules/unictype/ctype-alpha: New file.
28531 * modules/unictype/ctype-cntrl: New file.
28532 * modules/unictype/ctype-digit: New file.
28533 * modules/unictype/ctype-graph: New file.
28534 * modules/unictype/ctype-lower: New file.
28535 * modules/unictype/ctype-print: New file.
28536 * modules/unictype/ctype-punct: New file.
28537 * modules/unictype/ctype-space: New file.
28538 * modules/unictype/ctype-upper: New file.
28539 * modules/unictype/ctype-xdigit: New file.
28540 * modules/unictype/ctype-blank: New file.
28541 * lib/unictype/bidi_byname.c: New file.
28542 * lib/unictype/bidi_name.c: New file.
28543 * lib/unictype/bidi_of.c: New file.
28544 * lib/unictype/bidi_test.c: New file.
28545 * lib/unictype/bitmap.h: New file.
28546 * lib/unictype/block_test.c: New file.
28547 * lib/unictype/blocks.c: New file.
28548 * lib/unictype/categ_C.c: New file.
28549 * lib/unictype/categ_Cc.c: New file.
28550 * lib/unictype/categ_Cf.c: New file.
28551 * lib/unictype/categ_Cn.c: New file.
28552 * lib/unictype/categ_Co.c: New file.
28553 * lib/unictype/categ_Cs.c: New file.
28554 * lib/unictype/categ_L.c: New file.
28555 * lib/unictype/categ_Ll.c: New file.
28556 * lib/unictype/categ_Lm.c: New file.
28557 * lib/unictype/categ_Lo.c: New file.
28558 * lib/unictype/categ_Lt.c: New file.
28559 * lib/unictype/categ_Lu.c: New file.
28560 * lib/unictype/categ_M.c: New file.
28561 * lib/unictype/categ_Mc.c: New file.
28562 * lib/unictype/categ_Me.c: New file.
28563 * lib/unictype/categ_Mn.c: New file.
28564 * lib/unictype/categ_N.c: New file.
28565 * lib/unictype/categ_Nd.c: New file.
28566 * lib/unictype/categ_Nl.c: New file.
28567 * lib/unictype/categ_No.c: New file.
28568 * lib/unictype/categ_P.c: New file.
28569 * lib/unictype/categ_Pc.c: New file.
28570 * lib/unictype/categ_Pd.c: New file.
28571 * lib/unictype/categ_Pe.c: New file.
28572 * lib/unictype/categ_Pf.c: New file.
28573 * lib/unictype/categ_Pi.c: New file.
28574 * lib/unictype/categ_Po.c: New file.
28575 * lib/unictype/categ_Ps.c: New file.
28576 * lib/unictype/categ_S.c: New file.
28577 * lib/unictype/categ_Sc.c: New file.
28578 * lib/unictype/categ_Sk.c: New file.
28579 * lib/unictype/categ_Sm.c: New file.
28580 * lib/unictype/categ_So.c: New file.
28581 * lib/unictype/categ_Z.c: New file.
28582 * lib/unictype/categ_Zl.c: New file.
28583 * lib/unictype/categ_Zp.c: New file.
28584 * lib/unictype/categ_Zs.c: New file.
28585 * lib/unictype/categ_and.c: New file.
28586 * lib/unictype/categ_and_not.c: New file.
28587 * lib/unictype/categ_byname.c: New file.
28588 * lib/unictype/categ_name.c: New file.
28589 * lib/unictype/categ_none.c: New file.
28590 * lib/unictype/categ_of.c: New file.
28591 * lib/unictype/categ_or.c: New file.
28592 * lib/unictype/categ_test.c: New file.
28593 * lib/unictype/combining.c: New file.
28594 * lib/unictype/ctype_alnum.c: New file.
28595 * lib/unictype/ctype_alpha.c: New file.
28596 * lib/unictype/ctype_blank.c: New file.
28597 * lib/unictype/ctype_cntrl.c: New file.
28598 * lib/unictype/ctype_digit.c: New file.
28599 * lib/unictype/ctype_graph.c: New file.
28600 * lib/unictype/ctype_lower.c: New file.
28601 * lib/unictype/ctype_print.c: New file.
28602 * lib/unictype/ctype_punct.c: New file.
28603 * lib/unictype/ctype_space.c: New file.
28604 * lib/unictype/ctype_upper.c: New file.
28605 * lib/unictype/ctype_xdigit.c: New file.
28606 * lib/unictype/decdigit.c: New file.
28607 * lib/unictype/digit.c: New file.
28608 * lib/unictype/identsyntaxmap.h: New file.
28609 * lib/unictype/mirror.c: New file.
28610 * lib/unictype/numeric.c: New file.
28611 * lib/unictype/pr_alphabetic.c: New file.
28612 * lib/unictype/pr_ascii_hex_digit.c: New file.
28613 * lib/unictype/pr_bidi_arabic_digit.c: New file.
28614 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28615 * lib/unictype/pr_bidi_block_separator.c: New file.
28616 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28617 * lib/unictype/pr_bidi_common_separator.c: New file.
28618 * lib/unictype/pr_bidi_control.c: New file.
28619 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28620 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28621 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28622 * lib/unictype/pr_bidi_european_digit.c: New file.
28623 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28624 * lib/unictype/pr_bidi_left_to_right.c: New file.
28625 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28626 * lib/unictype/pr_bidi_other_neutral.c: New file.
28627 * lib/unictype/pr_bidi_pdf.c: New file.
28628 * lib/unictype/pr_bidi_segment_separator.c: New file.
28629 * lib/unictype/pr_bidi_whitespace.c: New file.
28630 * lib/unictype/pr_byname.c: New file.
28631 * lib/unictype/pr_byname.gperf: New file.
28632 * lib/unictype/pr_combining.c: New file.
28633 * lib/unictype/pr_composite.c: New file.
28634 * lib/unictype/pr_currency_symbol.c: New file.
28635 * lib/unictype/pr_dash.c: New file.
28636 * lib/unictype/pr_decimal_digit.c: New file.
28637 * lib/unictype/pr_default_ignorable_code_point.c: New file.
28638 * lib/unictype/pr_deprecated.c: New file.
28639 * lib/unictype/pr_diacritic.c: New file.
28640 * lib/unictype/pr_extender.c: New file.
28641 * lib/unictype/pr_format_control.c: New file.
28642 * lib/unictype/pr_grapheme_base.c: New file.
28643 * lib/unictype/pr_grapheme_extend.c: New file.
28644 * lib/unictype/pr_grapheme_link.c: New file.
28645 * lib/unictype/pr_hex_digit.c: New file.
28646 * lib/unictype/pr_hyphen.c: New file.
28647 * lib/unictype/pr_id_continue.c: New file.
28648 * lib/unictype/pr_id_start.c: New file.
28649 * lib/unictype/pr_ideographic.c: New file.
28650 * lib/unictype/pr_ids_binary_operator.c: New file.
28651 * lib/unictype/pr_ids_trinary_operator.c: New file.
28652 * lib/unictype/pr_ignorable_control.c: New file.
28653 * lib/unictype/pr_iso_control.c: New file.
28654 * lib/unictype/pr_join_control.c: New file.
28655 * lib/unictype/pr_left_of_pair.c: New file.
28656 * lib/unictype/pr_line_separator.c: New file.
28657 * lib/unictype/pr_logical_order_exception.c: New file.
28658 * lib/unictype/pr_lowercase.c: New file.
28659 * lib/unictype/pr_math.c: New file.
28660 * lib/unictype/pr_non_break.c: New file.
28661 * lib/unictype/pr_not_a_character.c: New file.
28662 * lib/unictype/pr_numeric.c: New file.
28663 * lib/unictype/pr_other_alphabetic.c: New file.
28664 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28665 * lib/unictype/pr_other_grapheme_extend.c: New file.
28666 * lib/unictype/pr_other_id_continue.c: New file.
28667 * lib/unictype/pr_other_id_start.c: New file.
28668 * lib/unictype/pr_other_lowercase.c: New file.
28669 * lib/unictype/pr_other_math.c: New file.
28670 * lib/unictype/pr_other_uppercase.c: New file.
28671 * lib/unictype/pr_paired_punctuation.c: New file.
28672 * lib/unictype/pr_paragraph_separator.c: New file.
28673 * lib/unictype/pr_pattern_syntax.c: New file.
28674 * lib/unictype/pr_pattern_white_space.c: New file.
28675 * lib/unictype/pr_private_use.c: New file.
28676 * lib/unictype/pr_punctuation.c: New file.
28677 * lib/unictype/pr_quotation_mark.c: New file.
28678 * lib/unictype/pr_radical.c: New file.
28679 * lib/unictype/pr_sentence_terminal.c: New file.
28680 * lib/unictype/pr_soft_dotted.c: New file.
28681 * lib/unictype/pr_space.c: New file.
28682 * lib/unictype/pr_terminal_punctuation.c: New file.
28683 * lib/unictype/pr_test.c: New file.
28684 * lib/unictype/pr_titlecase.c: New file.
28685 * lib/unictype/pr_unassigned_code_value.c: New file.
28686 * lib/unictype/pr_unified_ideograph.c: New file.
28687 * lib/unictype/pr_uppercase.c: New file.
28688 * lib/unictype/pr_variation_selector.c: New file.
28689 * lib/unictype/pr_white_space.c: New file.
28690 * lib/unictype/pr_xid_continue.c: New file.
28691 * lib/unictype/pr_xid_start.c: New file.
28692 * lib/unictype/pr_zero_width.c: New file.
28693 * lib/unictype/scripts.c: New file.
28694 * lib/unictype/sy_c_ident.c: New file.
28695 * lib/unictype/sy_c_whitespace.c: New file.
28696 * lib/unictype/sy_java_ident.c: New file.
28697 * lib/unictype/sy_java_whitespace.c: New file.
28699 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28701 * lib/unictype/blocks.h: Likewise.
28702 * lib/unictype/categ_C.h: Likewise.
28703 * lib/unictype/categ_Cc.h: Likewise.
28704 * lib/unictype/categ_Cf.h: Likewise.
28705 * lib/unictype/categ_Cn.h: Likewise.
28706 * lib/unictype/categ_Co.h: Likewise.
28707 * lib/unictype/categ_Cs.h: Likewise.
28708 * lib/unictype/categ_L.h: Likewise.
28709 * lib/unictype/categ_Ll.h: Likewise.
28710 * lib/unictype/categ_Lm.h: Likewise.
28711 * lib/unictype/categ_Lo.h: Likewise.
28712 * lib/unictype/categ_Lt.h: Likewise.
28713 * lib/unictype/categ_Lu.h: Likewise.
28714 * lib/unictype/categ_M.h: Likewise.
28715 * lib/unictype/categ_Mc.h: Likewise.
28716 * lib/unictype/categ_Me.h: Likewise.
28717 * lib/unictype/categ_Mn.h: Likewise.
28718 * lib/unictype/categ_N.h: Likewise.
28719 * lib/unictype/categ_Nd.h: Likewise.
28720 * lib/unictype/categ_Nl.h: Likewise.
28721 * lib/unictype/categ_No.h: Likewise.
28722 * lib/unictype/categ_P.h: Likewise.
28723 * lib/unictype/categ_Pc.h: Likewise.
28724 * lib/unictype/categ_Pd.h: Likewise.
28725 * lib/unictype/categ_Pe.h: Likewise.
28726 * lib/unictype/categ_Pf.h: Likewise.
28727 * lib/unictype/categ_Pi.h: Likewise.
28728 * lib/unictype/categ_Po.h: Likewise.
28729 * lib/unictype/categ_Ps.h: Likewise.
28730 * lib/unictype/categ_S.h: Likewise.
28731 * lib/unictype/categ_Sc.h: Likewise.
28732 * lib/unictype/categ_Sk.h: Likewise.
28733 * lib/unictype/categ_Sm.h: Likewise.
28734 * lib/unictype/categ_So.h: Likewise.
28735 * lib/unictype/categ_Z.h: Likewise.
28736 * lib/unictype/categ_Zl.h: Likewise.
28737 * lib/unictype/categ_Zp.h: Likewise.
28738 * lib/unictype/categ_Zs.h: Likewise.
28739 * lib/unictype/categ_of.h: Likewise.
28740 * lib/unictype/combining.h: Likewise.
28741 * lib/unictype/ctype_alnum.h: Likewise.
28742 * lib/unictype/ctype_alpha.h: Likewise.
28743 * lib/unictype/ctype_blank.h: Likewise.
28744 * lib/unictype/ctype_cntrl.h: Likewise.
28745 * lib/unictype/ctype_digit.h: Likewise.
28746 * lib/unictype/ctype_graph.h: Likewise.
28747 * lib/unictype/ctype_lower.h: Likewise.
28748 * lib/unictype/ctype_print.h: Likewise.
28749 * lib/unictype/ctype_punct.h: Likewise.
28750 * lib/unictype/ctype_space.h: Likewise.
28751 * lib/unictype/ctype_upper.h: Likewise.
28752 * lib/unictype/ctype_xdigit.h: Likewise.
28753 * lib/unictype/decdigit.h: Likewise.
28754 * lib/unictype/digit.h: Likewise.
28755 * lib/unictype/mirror.h: Likewise.
28756 * lib/unictype/numeric.h: Likewise.
28757 * lib/unictype/pr_alphabetic.h: Likewise.
28758 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28759 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28760 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28761 * lib/unictype/pr_bidi_block_separator.h: Likewise.
28762 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28763 * lib/unictype/pr_bidi_common_separator.h: Likewise.
28764 * lib/unictype/pr_bidi_control.h: Likewise.
28765 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28766 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28767 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28768 * lib/unictype/pr_bidi_european_digit.h: Likewise.
28769 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28770 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28771 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28772 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28773 * lib/unictype/pr_bidi_pdf.h: Likewise.
28774 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28775 * lib/unictype/pr_bidi_whitespace.h: Likewise.
28776 * lib/unictype/pr_combining.h: Likewise.
28777 * lib/unictype/pr_composite.h: Likewise.
28778 * lib/unictype/pr_currency_symbol.h: Likewise.
28779 * lib/unictype/pr_dash.h: Likewise.
28780 * lib/unictype/pr_decimal_digit.h: Likewise.
28781 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28782 * lib/unictype/pr_deprecated.h: Likewise.
28783 * lib/unictype/pr_diacritic.h: Likewise.
28784 * lib/unictype/pr_extender.h: Likewise.
28785 * lib/unictype/pr_format_control.h: Likewise.
28786 * lib/unictype/pr_grapheme_base.h: Likewise.
28787 * lib/unictype/pr_grapheme_extend.h: Likewise.
28788 * lib/unictype/pr_grapheme_link.h: Likewise.
28789 * lib/unictype/pr_hex_digit.h: Likewise.
28790 * lib/unictype/pr_hyphen.h: Likewise.
28791 * lib/unictype/pr_id_continue.h: Likewise.
28792 * lib/unictype/pr_id_start.h: Likewise.
28793 * lib/unictype/pr_ideographic.h: Likewise.
28794 * lib/unictype/pr_ids_binary_operator.h: Likewise.
28795 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28796 * lib/unictype/pr_ignorable_control.h: Likewise.
28797 * lib/unictype/pr_iso_control.h: Likewise.
28798 * lib/unictype/pr_join_control.h: Likewise.
28799 * lib/unictype/pr_left_of_pair.h: Likewise.
28800 * lib/unictype/pr_line_separator.h: Likewise.
28801 * lib/unictype/pr_logical_order_exception.h: Likewise.
28802 * lib/unictype/pr_lowercase.h: Likewise.
28803 * lib/unictype/pr_math.h: Likewise.
28804 * lib/unictype/pr_non_break.h: Likewise.
28805 * lib/unictype/pr_not_a_character.h: Likewise.
28806 * lib/unictype/pr_numeric.h: Likewise.
28807 * lib/unictype/pr_other_alphabetic.h: Likewise.
28808 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28809 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28810 * lib/unictype/pr_other_id_continue.h: Likewise.
28811 * lib/unictype/pr_other_id_start.h: Likewise.
28812 * lib/unictype/pr_other_lowercase.h: Likewise.
28813 * lib/unictype/pr_other_math.h: Likewise.
28814 * lib/unictype/pr_other_uppercase.h: Likewise.
28815 * lib/unictype/pr_paired_punctuation.h: Likewise.
28816 * lib/unictype/pr_paragraph_separator.h: Likewise.
28817 * lib/unictype/pr_pattern_syntax.h: Likewise.
28818 * lib/unictype/pr_pattern_white_space.h: Likewise.
28819 * lib/unictype/pr_private_use.h: Likewise.
28820 * lib/unictype/pr_punctuation.h: Likewise.
28821 * lib/unictype/pr_quotation_mark.h: Likewise.
28822 * lib/unictype/pr_radical.h: Likewise.
28823 * lib/unictype/pr_sentence_terminal.h: Likewise.
28824 * lib/unictype/pr_soft_dotted.h: Likewise.
28825 * lib/unictype/pr_space.h: Likewise.
28826 * lib/unictype/pr_terminal_punctuation.h: Likewise.
28827 * lib/unictype/pr_titlecase.h: Likewise.
28828 * lib/unictype/pr_unassigned_code_value.h: Likewise.
28829 * lib/unictype/pr_unified_ideograph.h: Likewise.
28830 * lib/unictype/pr_uppercase.h: Likewise.
28831 * lib/unictype/pr_variation_selector.h: Likewise.
28832 * lib/unictype/pr_white_space.h: Likewise.
28833 * lib/unictype/pr_xid_continue.h: Likewise.
28834 * lib/unictype/pr_xid_start.h: Likewise.
28835 * lib/unictype/pr_zero_width.h: Likewise.
28836 * lib/unictype/scripts.h: Likewise.
28837 * lib/unictype/scripts_byname.gperf: Likewise.
28838 * lib/unictype/sy_c_ident.h: Likewise.
28839 * lib/unictype/sy_c_whitespace.h: Likewise.
28840 * lib/unictype/sy_java_ident.h: Likewise.
28841 * lib/unictype/sy_java_whitespace.h: Likewise.
28843 * lib/unictype/Makefile: New file.
28844 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28846 * lib/unictype/3level.h: New file, copied from glibc.
28847 * lib/unictype/3levelbit.h: New file.
28849 2007-11-11 Bruno Haible <bruno@clisp.org>
28851 * modules/gperf: New file.
28852 * modules/iconv_open (Depends-on): Add it.
28853 (Makefile.am): Remove the GPERF definition.
28855 2007-11-11 Bruno Haible <bruno@clisp.org>
28857 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28858 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28860 2007-11-11 Bruno Haible <bruno@clisp.org>
28862 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28863 (usage): Remove function.
28865 2007-11-11 Bruno Haible <bruno@clisp.org>
28867 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28868 gl_FUNC_CEILF_LIBS.
28869 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28871 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28872 gl_FUNC_CEILL_LIBS.
28873 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28874 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28875 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28877 2007-11-11 Bruno Haible <bruno@clisp.org>
28879 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28880 roundf were declared but do not exist on functions.
28881 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28882 roundl were declared but do not exist on functions.
28883 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28884 HAVE_FLOORL_AND_CEILL, respectively.
28885 Needed for Sun C on Solaris 10.
28887 2007-11-11 Bruno Haible <bruno@clisp.org>
28889 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28890 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28891 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28892 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28893 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28894 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28895 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28897 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28898 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28899 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28900 of HAVE_DECL_ROUND*.
28901 * modules/math (Makefile.am): Update.
28903 2007-11-10 Bruno Haible <bruno@clisp.org>
28905 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28906 ptrdiff_t as m4/intl.m4.
28908 2007-11-10 Jim Meyering <meyering@redhat.com>
28910 Avoid link failure for the argmatch test.
28911 * tests/test-argmatch.c (usage): Define function to avoid a link
28912 failure: argmatch_die requires a usage function.
28914 2007-11-09 Bruno Haible <bruno@clisp.org>
28916 * doc/functions/snprintf.texi: Mention BeOS deficiency.
28917 * doc/functions/vsnprintf.texi: Likewise.
28918 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28919 with a size argument < 2.
28921 2007-11-09 Bruno Haible <bruno@clisp.org>
28923 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28924 buffer. Fixes an inefficiency introduced on 2007-11-03.
28926 2007-11-09 Bruno Haible <bruno@clisp.org>
28928 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28929 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28931 2007-11-08 Jim Meyering <meyering@redhat.com>
28933 Change cache variable name prefix "jm_" to "gl_" everywhere.
28934 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28935 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28936 * m4/uptime.m4: s/gl_/jm_/
28938 2007-11-07 Bruno Haible <bruno@clisp.org>
28940 Update to GNU gettext 0.17.
28941 * m4/intl.m4: Update to GNU gettext 0.17.
28942 * m4/po.m4: Likewise.
28943 * modules/gettext (Files): Remove m4/ulonglong.m4.
28944 (configure.ac): Require gettext infrastructure from version 0.17.
28946 2007-11-06 Bruno Haible <bruno@clisp.org>
28948 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28949 symbolic values are not defined in a public header.
28950 * lib/freadable.c (freadable) [QNX]: Likewise.
28951 * lib/freadahead.c (freadahead) [QNX]: Likewise.
28952 * lib/freading.c (freading) [QNX]: Likewise.
28953 * lib/fseterr.c (fseterr) [QNX]: Likewise.
28954 * lib/fwritable.c (fwritable) [QNX]: Likewise.
28955 * lib/fwriting.c (fwriting) [QNX]: Likewise.
28956 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28957 Reported by Alain Magloire.
28959 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28961 2007-11-05 Bruno Haible <bruno@clisp.org>
28963 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28964 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28965 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28966 Reported by Eric Blake.
28968 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28969 Bruno Haible <bruno@clisp.org>
28971 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28972 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28973 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28974 (malloc): Undefine also before including <stdlib.h>.
28975 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28976 Needed on OSF/1 4.0.
28978 2007-11-05 Jim Meyering <meyering@redhat.com>
28980 git-version-gen: sync from coreutils.
28981 * build-aux/git-version-gen: Add comments.
28982 Change the first '-' to '.' in the snapshot version string,
28983 e.g., 6.9-377-08144 -> 6.9.377-08144
28984 Remove first parameter.
28985 Don't declare a version "-dirty" merely because a time
28988 2007-11-04 Bruno Haible <bruno@clisp.org>
28990 * lib/lock.h: Protect all macro definitions containing an 'if'
28991 statement through a "do { ... } while (0)".
28992 * lib/tls.h: Likewise.
28994 2007-11-04 Bruno Haible <bruno@clisp.org>
28996 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28998 2007-11-04 Bruno Haible <bruno@clisp.org>
29000 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29001 * modules/fprintf-posix (Depends-on): Add nocrash.
29002 * modules/snprintf-posix (Depends-on): Likewise.
29003 * modules/sprintf-posix (Depends-on): Likewise.
29004 * modules/vasnprintf-posix (Depends-on): Likewise.
29005 * modules/vasprintf-posix (Depends-on): Likewise.
29006 * modules/vfprintf-posix (Depends-on): Likewise.
29007 * modules/vsnprintf-posix (Depends-on): Likewise.
29008 * modules/vsprintf-posix (Depends-on): Likewise.
29009 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29010 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29011 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29012 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29013 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29014 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29015 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29017 2007-11-04 Bruno Haible <bruno@clisp.org>
29019 * modules/nocrash: New file.
29020 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29021 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29023 2007-11-04 Bruno Haible <bruno@clisp.org>
29025 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29026 precision handling.
29027 * tests/test-vasprintf-posix.c (test_function): Likewise.
29028 * tests/test-snprintf-posix.h (test_function): Likewise.
29029 * tests/test-sprintf-posix.h (test_function): Likewise.
29031 Fix *printf behaviour for large precisions on mingw and BeOS.
29032 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29033 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29034 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29035 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29036 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29037 gl_PRINTF_PRECISION and test its result. Invoke
29038 gl_PREREQ_VASNPRINTF_PRECISION.
29039 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29040 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29041 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29042 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29043 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29044 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29045 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29046 * doc/functions/fprintf.texi: Update.
29047 * doc/functions/printf.texi: Update.
29048 * doc/functions/snprintf.texi: Update.
29049 * doc/functions/sprintf.texi: Update.
29050 * doc/functions/vfprintf.texi: Update.
29051 * doc/functions/vprintf.texi: Update.
29052 * doc/functions/vsnprintf.texi: Update.
29053 * doc/functions/vsprintf.texi: Update.
29055 2007-11-04 Bruno Haible <bruno@clisp.org>
29057 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29059 2007-11-04 Bruno Haible <bruno@clisp.org>
29061 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29062 Reported by Sylvain Beucler <beuc@gnu.org>.
29064 2007-11-03 Bruno Haible <bruno@clisp.org>
29066 * tests/test-fprintf-posix2.sh: New file.
29067 * tests/test-fprintf-posix2.c: New file.
29068 * modules/fprintf-posix-tests (Files): Add them.
29069 (TESTS): Add test-fprintf-posix2.sh.
29070 (configure.ac): Check for getrlimit and setrlimit.
29071 (check_PROGRAMS): Add test-fprintf-posix2.
29073 * tests/test-printf-posix2.sh: New file.
29074 * tests/test-printf-posix2.c: New file.
29075 * modules/printf-posix-tests (Files): Add them.
29076 (TESTS): Add test-printf-posix2.sh.
29077 (configure.ac): Check for getrlimit and setrlimit.
29078 (check_PROGRAMS): Add test-printf-posix2.
29080 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29081 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29082 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29083 (decode_double): New function, copied from decode_long_double.
29084 (scale10_round_decimal_decoded): New function, extracted from
29085 scale10_round_decimal_long_double.
29086 (scale10_round_decimal_long_double): Use it.
29087 (scale10_round_decimal_double): New function.
29088 (floorlog10): New function.
29089 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29090 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29091 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29092 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29093 gl_PRINTF_ENOMEM and test its result. Invoke
29094 gl_PREREQ_VASNPRINTF_ENOMEM.
29095 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29096 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29097 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29098 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29099 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29100 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29101 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29102 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29103 * modules/snprintf-posix (Depends-on): Likewise.
29104 * modules/sprintf-posix (Depends-on): Likewise.
29105 * modules/vasnprintf-posix (Depends-on): Likewise.
29106 * modules/vasprintf-posix (Depends-on): Likewise.
29107 * modules/vfprintf-posix (Depends-on): Likewise.
29108 * modules/vsnprintf-posix (Depends-on): Likewise.
29109 * modules/vsprintf-posix (Depends-on): Likewise.
29110 * doc/functions/fprintf.texi: Update.
29111 * doc/functions/printf.texi: Update.
29112 * doc/functions/snprintf.texi: Update.
29113 * doc/functions/sprintf.texi: Update.
29114 * doc/functions/vfprintf.texi: Update.
29115 * doc/functions/vprintf.texi: Update.
29116 * doc/functions/vsnprintf.texi: Update.
29117 * doc/functions/vsprintf.texi: Update.
29119 2007-11-03 Bruno Haible <bruno@clisp.org>
29121 * modules/frexp-nolibm-tests: New file.
29123 * modules/frexp-nolibm: New file.
29124 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29126 2007-11-03 Bruno Haible <bruno@clisp.org>
29128 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29129 value is C99 compliant.
29130 Needed for OSF/1 5.1.
29132 2007-11-03 Bruno Haible <bruno@clisp.org>
29134 Fix out-of-memory handling of vasnprintf.
29135 * lib/printf-parse.c: Include <errno.h>.
29136 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29137 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29140 2007-11-02 Eric Blake <ebb9@byu.net>
29142 Fix tests on cygwin.
29143 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29145 2007-11-01 Bruno Haible <bruno@clisp.org>
29147 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29149 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29150 needed for POSIX compatibility.
29152 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
29154 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29155 for compatibility with GNU.
29157 2007-11-01 Bruno Haible <bruno@clisp.org>
29159 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29160 (putenv): Renamed from rpl_putenv. Change argument type from
29161 'const char *' to 'char *'.
29162 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29163 of defining putenv in config.h, just set REPLACE_PUTENV.
29164 * modules/putenv (Depends-on): Add stdlib.
29165 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29166 (Include): Use <stdlib.h>.
29167 * lib/stdlib.in.h (putenv): New declaration.
29168 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29170 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29172 Needed for MacOS X 10.5.0.
29173 Reported by Peter O'Gorman <peter@pogma.com>.
29175 2007-11-01 Jim Meyering <meyering@redhat.com>
29177 Treat an empty date string exactly like "0".
29178 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29179 if the remaining date string (to be parsed) is empty, use "0".
29180 Reported by Mischa Molhoek and discussed in this thread:
29181 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29183 2007-10-31 Bruno Haible <bruno@clisp.org>
29185 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29186 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29187 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29188 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29189 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29190 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29192 2007-10-31 Bruno Haible <bruno@clisp.org>
29194 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29195 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29196 (AC_TYPE_LONG_LONG_INT): Use it.
29197 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29199 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29201 * modules/stdint (Files): Remove m4/ulonglong.m4.
29202 * modules/strtoull (Files): Use m4/longlong.m4 instead of
29204 * modules/strtoumax (Files): Likewise.
29206 2007-10-30 Bruno Haible <bruno@clisp.org>
29208 * modules/xvasprintf-posix: New file.
29209 Suggested by Eric Blake.
29211 2007-10-30 Bruno Haible <bruno@clisp.org>
29213 * modules/xprintf-posix-tests: New file.
29214 * tests/test-xprintf-posix.sh: New file.
29215 * tests/test-xprintf-posix.c: New file.
29216 * tests/test-xfprintf-posix.c: New file.
29218 * modules/xprintf-posix: New file.
29220 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29222 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29223 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29224 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29226 2007-10-29 Bruno Haible <bruno@clisp.org>
29228 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29229 contain the special marker '_cv_'.
29230 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29231 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29232 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29233 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29234 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29235 Reported by Ralf Wildenhues.
29237 2007-10-29 Bruno Haible <bruno@clisp.org>
29239 * gnulib-tool (func_import): When --lgpl is not specified, set
29240 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29242 Reported by Simon Josefsson.
29244 2007-10-28 Bruno Haible <bruno@clisp.org>
29246 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29247 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29248 HAVE_DECL_ISFINITE.
29249 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29250 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29251 HAVE_DECL_ISFINITE.
29253 2007-10-28 Bruno Haible <bruno@clisp.org>
29255 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29256 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29258 2007-10-28 Bruno Haible <bruno@clisp.org>
29260 Fix link errors with Sun C 5.0 on Solaris 10.
29261 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29262 function is declared but not present in the compiler's libm.
29263 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29264 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29265 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29266 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29267 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29268 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29269 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29270 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29271 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29272 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29273 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29276 2007-10-28 Bruno Haible <bruno@clisp.org>
29278 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29279 gl_FUNC_FLOORL. Cache the result.
29280 (gl_FUNC_FLOORL): Use it.
29281 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29282 gl_FUNC_CEILL. Cache the result.
29283 (gl_FUNC_CEILL): Use it.
29285 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29286 gl_FUNC_FLOOR. Cache the result.
29287 (gl_FUNC_FLOOR): Use it.
29288 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29289 gl_FUNC_CEIL. Cache the result.
29290 (gl_FUNC_CEIL): Use it.
29292 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29293 gl_FUNC_FLOORF. Cache the result.
29294 (gl_FUNC_FLOORF): Use it.
29295 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29296 gl_FUNC_CEILF. Cache the result.
29297 (gl_FUNC_CEILF): Use it.
29299 2007-10-28 Bruno Haible <bruno@clisp.org>
29301 * gnulib-tool: Allow specifying the LGPL version number through
29302 --lgpl=2 or --lgpl=3.
29303 (func_usage): Document --lgpl with argument.
29304 Handle --lgpl=... arguments.
29305 (func_import): Recognize also gl_LGPL calls with an argument. When
29306 --lgpl=2 is used and the module's license is just LGPL, report an
29307 error. Set sed_transform_lib_file according to the lgpl variable. In
29308 the generated files, use --lgpl or gl_LGPL invocations with argument,
29310 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29312 * doc/gnulib-tool.texi (Modified imports): Update explanation of
29315 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29316 Bruno Haible <bruno@clisp.org>
29318 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29319 (u16_uctomb_aux): Likewise.
29320 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29322 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29324 2007-10-28 Bruno Haible <bruno@clisp.org>
29326 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29327 Invoke AM_GETTEXT_OPTION if it exists.
29328 * modules/vasprintf: Likewise.
29329 * modules/verror: Likewise.
29330 * modules/xprintf: Likewise.
29331 * modules/xvasprintf: Likewise.
29333 2007-10-27 Ben Pfaff <blp@gnu.org>
29335 * lib/math.in.h: Define isfinite macro and prototypes for
29336 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29338 * m4/math_h.m4: New substitutions for isfinite module.
29339 * lib/isfinite.c: New file.
29340 * m4/isfinite.m4: New file.
29341 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29342 * modules/isfinite: New file.
29343 * modules/isfinite-tests: New file.
29344 * tests/tests-isfinite.c: New file.
29345 * doc/functions/isfinite.texi: Mention isfinite module.
29346 * MODULES.html.sh: Mention new module.
29348 2007-10-27 Ben Pfaff <blp@gnu.org>
29350 Ralf Wildenhues reported that Tru64 4.0D declares the round
29351 functions but does not have definitions.
29352 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29353 cannot be found in any library, set the output variable to
29354 "missing" instead of "".
29355 * m4/round.m4: Also use our substitute if we cannot find round in
29356 any library, even if it is declared.
29357 * m4/roundf.m4: Likewise for roundf.
29358 * m4/roundl.m4: Likewise for roundl.
29359 * lib/math.in.h: Undefine roundf, round, roundl before defining
29360 their replacements, to allow for hypothetical systems where these
29361 may be defined as macros but not available in libraries.
29363 2007-10-27 Bruno Haible <bruno@clisp.org>
29365 * doc/gnulib.texi: Invoke @firstparagraphindent.
29366 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29368 (Source changes): New section.
29370 2007-10-26 Bruno Haible <bruno@clisp.org>
29372 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29373 borrowed from autoconf.
29375 2007-10-26 Bruno Haible <bruno@clisp.org>
29377 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29378 strerror returned the empty string. Needed on HP-UX 11.00.
29380 2007-10-24 Micah Cowan <micah@cowan.name>
29382 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
29383 * build-aux/bootstrap: Remove support for now-unnecessary option,
29384 --cvs-user, and envvars CVS_USER, CVS_RSH.
29386 2007-10-24 Jim Meyering <meyering@redhat.com>
29388 Avoid diagnostics from sha1sum when there is no cached checksum.
29389 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29390 if the po.s1 file hasn't been created yet.
29392 * build-aux/bootstrap: Sync from coreutils:
29393 2007-10-24 Jim Meyering <meyering@redhat.com>
29394 Get gnulib from the git repository, not from an obsolete cvs one.
29395 * build-aux/bootstrap: Suggestion from Micah Cowan.
29396 2007-10-04 Jim Meyering <jim@meyering.net>
29397 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29398 (update_po_files): Work also when there are no .po files in po/.
29400 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
29402 * README: Append ".git" to git and cg examples.
29403 Problem reported by Benoit Sigoure.
29405 2007-10-23 Micah Cowan <micah@cowan.name>
29407 * users.txt: Add wget.
29409 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29411 Fix linking of some unistdio tests on FreeBSD.
29412 * modules/unistdio/u16-vsnprintf-tests
29413 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29414 * modules/unistdio/u16-vsprintf-tests
29415 (test_u16_vsnprintf1_LDADD): Likewise.
29416 * modules/unistdio/u32-vsnprintf-tests
29417 (test_u32_vsnprintf1_LDADD): Likewise.
29418 * modules/unistdio/u32-vsprintf-tests
29419 (test_u32_vsprintf1_LDADD): Likewise.
29420 * modules/unistdio/u8-vsnprintf-tests
29421 (test_u8_vsnprintf1_LDADD): Likewise.
29422 * modules/unistdio/u8-vsprintf-tests
29423 (test_u8_vsprintf1_LDADD): Likewise.
29424 * modules/unistdio/ulc-vsnprintf-tests
29425 (test_ulc_vsnprintf1_LDADD): Likewise.
29426 * modules/unistdio/ulc-vsprintf-tests
29427 (test_ulc_vsprintf1_LDADD): Likewise.
29429 Fix linking of some uniconv tests on FreeBSD.
29430 * modules/uniconv/u16-conv-from-enc-tests
29431 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29432 * modules/uniconv/u16-conv-to-enc-tests
29433 (test_u16_conv_to_enc_LDADD): Likewise.
29434 * modules/uniconv/u16-strconv-from-enc-tests
29435 (test_u16_strconv_from_enc_LDADD): Likewise.
29436 * modules/uniconv/u16-strconv-to-enc-tests
29437 (test_u16_strconv_to_enc_LDADD): Likewise.
29438 * modules/uniconv/u32-conv-from-enc-tests
29439 (test_u32_conv_from_enc_LDADD): Likewise.
29440 * modules/uniconv/u32-conv-to-enc-tests
29441 (test_u32_conv_to_enc_LDADD): Likewise.
29442 * modules/uniconv/u32-strconv-from-enc-tests
29443 (test_u32_strconv_from_enc_LDADD): Likewise.
29444 * modules/uniconv/u32-strconv-to-enc-tests
29445 (test_u32_strconv_to_enc_LDADD): Likewise.
29446 * modules/uniconv/u8-conv-from-enc-tests
29447 (test_u8_conv_from_enc_LDADD): Likewise.
29448 * modules/uniconv/u8-conv-to-enc-tests
29449 (test_u8_conv_to_enc_LDADD): Likewise.
29450 * modules/uniconv/u8-strconv-from-enc-tests
29451 (test_u8_strconv_from_enc_LDADD): Likewise.
29452 * modules/uniconv/u8-strconv-to-enc-tests
29453 (test_u8_strconv_to_enc_LDADD): Likewise.
29455 2007-10-22 Bruno Haible <bruno@clisp.org>
29457 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29460 2007-10-22 Eric Blake <ebb9@byu.net>
29462 Tweak x*printf documentation.
29463 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29464 variable name and comments.
29465 Suggested by Bruno Haible.
29467 2007-10-22 Bruno Haible <bruno@clisp.org>
29469 * lib/acl.c (copy_acl): Fix file name in comment.
29471 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29473 Fix Tru64 problem with stdbool.h.
29474 * lib/stdbool.in.h (false, true):
29475 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29476 Don't declare as an enum in this situation; it runs afoul of Tru64.
29477 Problem reported by Steven M. Schweda in
29478 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29480 2007-10-22 Eric Blake <ebb9@byu.net>
29482 Also wrap vf?printf.
29483 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29484 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29485 (xvprintf, xvfprintf): New functions.
29487 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29489 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29490 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29492 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29493 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29495 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29497 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
29500 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29503 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29504 Undef `sys' after including sys/table.h, for Tru64 4.0D.
29506 * tests/test-i-ring.c: Work for C89.
29508 2007-10-22 Bruno Haible <bruno@clisp.org>
29510 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29511 -1u, in preprocessor expression, so that we don't test for the bug
29512 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
29513 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29515 2007-10-22 Eric Blake <ebb9@byu.net>
29517 * tests/test-yesno.sh: Silence stderr during test.
29519 2007-10-22 Simon Josefsson <simon@josefsson.org>
29521 * modules/crypto/gc-camellia: New file.
29523 * m4/gc-camellia.m4: New file.
29525 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29527 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29529 2007-10-22 Simon Josefsson <simon@josefsson.org>
29531 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29532 --help to stdout. Reported by sms@antinode.org (Steven
29535 2007-10-22 Simon Josefsson <simon@josefsson.org>
29537 * users.txt: Fix link to libksba.
29539 2007-10-21 Ben Pfaff <blp@gnu.org>
29541 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29542 round.c roundf implementation that depends on floorf and ceilf to
29543 be tested unconditionally.
29545 2007-10-21 Ben Pfaff <blp@gnu.org>
29547 * m4/check-libm-func.m4: Removed.
29548 * m4/check-math-lib.m4: New file.
29549 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29550 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29551 definition and lack of AC_LIBOBJ([roundf]).
29552 * m4/roundl.m4: Ditto, and similarly for roundl.
29553 * modules/round: Reference new m4 file.
29554 * modules/roundf: Ditto.
29555 * modules/roundl: Ditto.
29556 * tests/test-round2.c (main): Use ROUND instead of round.
29557 Bug report from Bruno Haible.
29559 2007-10-21 Bruno Haible <bruno@clisp.org>
29561 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29564 2007-10-21 Bruno Haible <bruno@clisp.org>
29566 * tests/test-wcwidth.c (main): Allow negative result for some control
29569 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29570 Needed on OSF/1 5.1.
29572 2007-10-21 Bruno Haible <bruno@clisp.org>
29574 * tests/test-floorf1.c: Include isnanf.h.
29575 (main): Use isnanf() instead of isnan().
29576 * tests/test-ceilf1.c: Include isnanf.h.
29577 (main): Use isnanf() instead of isnan().
29578 * tests/test-truncf1.c: Include isnanf.h.
29579 (main): Use isnanf() instead of isnan().
29580 * tests/test-roundf1.c: Include isnanf.h.
29581 (main): Use isnanf() instead of isnan().
29583 2007-10-21 Eric Blake <ebb9@byu.net>
29585 * users.txt: Update URL for m4.
29587 2007-10-21 Bruno Haible <bruno@clisp.org>
29589 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29591 2007-10-21 Bruno Haible <bruno@clisp.org>
29593 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29594 Git's management files if the CVS files are not present.
29596 2007-10-20 Bruno Haible <bruno@clisp.org>
29598 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29601 2007-10-20 Ben Pfaff <blp@gnu.org>
29603 * lib/math.in.h: Declare round, roundf, roundl if we are providing
29605 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29606 * lib/round.c: New file.
29607 * lib/roundf.c: New file.
29608 * lib/roundl.c: New file.
29609 * m4/round.m4: New file.
29610 * m4/roundf.m4: New file.
29611 * m4/roundl.m4: New file.
29612 * m4/check-libm-func-m4: New file.
29613 * modules/math: Replace round, roundf, roundl related @VARS@ in
29615 * modules/round: New file.
29616 * modules/round-tests: New file.
29617 * modules/roundf: New file.
29618 * modules/roundf-tests: New file.
29619 * modules/roundl: New file.
29620 * modules/roundl-tests: New file.
29621 * tests/test-round1.c: New file.
29622 * tests/test-round2.c: New file.
29623 * tests/test-roundf1.c: New file.
29624 * tests/test-roundf2.c: New file.
29625 * tests/test-roundl.c: New file.
29626 * doc/functions/round.texi: Mention round module.
29627 * doc/functions/roundf.texi: Mention roundf module.
29628 * doc/functions/roundl.texi: Mention roundl module.
29629 * MODULES.html.sh: Mention new modules.
29630 Thanks to Bruno Haible for suggestions.
29632 2007-10-20 Jim Meyering <meyering@redhat.com>
29634 * lib/xprintf.c: Include <config.h> unconditionally.
29636 Change xprintf's license to GPL.
29637 * modules/xprintf (License): s/LGPL/GPL/, since this module
29638 depends on modules (exit and exitfail) which are GPL.
29639 Suggestion from Bruno Haible.
29642 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29643 Use a clearer diagnostic.
29644 Patch from Bruno Haible.
29646 2007-10-20 Bruno Haible <bruno@clisp.org>
29648 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29649 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29650 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29652 2007-10-20 Bruno Haible <bruno@clisp.org>
29654 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29655 precision in the comparison result > x - 1 or similar.
29656 * tests/test-ceilf2.c (correct_result_p): Likewise.
29657 * tests/test-truncf2.c (correct_result_p): Likewise.
29658 * tests/test-trunc2.c (correct_result_p): Likewise.
29659 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29661 2007-10-20 Bruno Haible <bruno@clisp.org>
29663 * modules/ceil: New file.
29664 * m4/ceil.m4: New file.
29665 * doc/functions/ceil.texi: Mention the 'ceil' module.
29667 2007-10-20 Bruno Haible <bruno@clisp.org>
29669 * modules/floor: New file.
29670 * m4/floor.m4: New file.
29671 * doc/functions/floor.texi: Mention the 'floor' module.
29673 2007-10-20 Bruno Haible <bruno@clisp.org>
29675 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29677 * modules/floorf-tests (Depends-on): Likewise.
29678 * modules/truncf-tests (Depends-on): Likewise.
29679 * modules/trunc-tests (Depends-on): Likewise.
29680 Reported by Ben Pfaff.
29682 2007-10-19 Jim Meyering <meyering@redhat.com>
29684 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29685 Don't bother testing specific errno values. Just test ferror.
29687 New module: xprintf
29688 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29690 2007-10-19 Bruno Haible <bruno@clisp.org>
29692 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29694 * modules/javaexec (Makefile.am): Likewise.
29695 * modules/relocatable-prog (Makefile.am): Likewise.
29696 Suggested by Jim Meyering.
29698 2007-10-18 Bruno Haible <bruno@clisp.org>
29700 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29701 Reported by Jim Meyering.
29703 2007-10-18 Eric Blake <ebb9@byu.net>
29705 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29707 2007-10-18 Bruno Haible <bruno@clisp.org>
29709 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29710 the format string into writable memory. Needed in Fortify conditions.
29712 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
29713 Bruno Haible <bruno@clisp.org>
29715 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29716 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29717 * modules/trim (Depends-on): Add mbchar.
29718 (configure.ac): Add gl_FUNC_MBRTOWC.
29719 (Makefile.am): Augment lib_SOURCES.
29721 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
29723 Modify glob.c to use fstatat and dirfd, to simplify it.
29724 Suggested by Eric Blake.
29725 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29726 Don't include <stdbool.h>; not used.
29727 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29728 (link_exists_p): Simplify implementation, since we can now assume
29730 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
29732 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29734 * gnulib-tool (func_get_dependencies): Fix sed script to
29737 2007-10-17 Bruno Haible <bruno@clisp.org>
29739 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29740 allow locale names without encoding suffix.
29741 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29742 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29744 2007-10-16 Bruno Haible <bruno@clisp.org>
29746 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29747 * lib/getgroups.c (getgroups): Likewise.
29748 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29750 2007-10-16 Bruno Haible <bruno@clisp.org>
29752 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29753 * modules/malloc-posix (License): Likewise.
29754 * modules/realloc-posix (License): Likewise.
29755 * modules/calloc-posix (License): Likewise.
29756 * modules/intprops (License): Change from GPL to LGPL, with
29757 Paul Eggert's approval.
29759 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29761 Merge glibc changes into lib/glob.c.
29763 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29764 2007-10-15 04:59:03 UTC. Here are the changes:
29766 2007-10-14 Ulrich Drepper <drepper@redhat.com>
29768 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29770 * lib/glob.c: Add some branch prediction throughout.
29772 2007-10-07 Ulrich Drepper <drepper@redhat.com>
29775 * lib/glob.c (glob): Recognize patterns starting \/.
29777 2007-02-14 Jakub Jelinek <jakub@redhat.com>
29780 * lib/glob.c (attribute_hidden): Define if not defined.
29781 (glob): Unescape dirname, filename or username when needed and not
29782 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
29783 is NULL. Handle unescaped [ in pattern without closing ].
29784 Don't pass GLOB_CHECK down to recursive glob for directories.
29785 (__glob_pattern_type): New function.
29786 (__glob_pattern_p): Implement using __glob_pattern_type.
29787 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29788 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29789 Remove unreachable code.
29791 2006-09-30 Ulrich Drepper <drepper@redhat.com>
29793 * lib/glob.c (glob_in_dir): Add some comments and asserts to
29794 explain why there are no leaks.
29796 2006-09-25 Jakub Jelinek <jakub@redhat.com>
29799 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29800 time, rather allocate increasingly bigger arrays of pointers, if
29801 possible with alloca, if too large with malloc.
29803 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29805 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29806 Problem reported by H.Merijn Brand in
29807 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29808 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29809 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29811 2007-10-15 Bruno Haible <bruno@clisp.org>
29813 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29814 with explicit rpl_ prefix.
29815 * lib/fopen.c (fopen): Likewise.
29816 * lib/freopen.c (freopen): Likewise.
29817 * lib/iconv.c (iconv): Likewise.
29818 * lib/iconv_close.c (iconv_close): Likewise.
29820 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29822 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29824 2007-10-15 Bruno Haible <bruno@clisp.org>
29826 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29827 <stddef.h> instead of <stdlib.h> since we only need NULL.
29828 Reported by Ben Pfaff <blp@cs.stanford.edu>.
29830 2007-10-15 Bruno Haible <bruno@clisp.org>
29832 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29833 Replace paragraph talking about LIBOBJS.
29834 Reported by Colin Watson <cjwatson@debian.org>.
29836 2007-10-15 Bruno Haible <bruno@clisp.org>
29838 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29839 <stdlib.h> before using NULL.
29841 2007-10-15 Simon Josefsson <simon@josefsson.org>
29843 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29844 Reported by Albert Chin <china@thewrittenword.com>.
29846 2007-10-14 Bruno Haible <bruno@clisp.org>
29848 * modules/iconv_open-utf-tests: New file.
29849 * tests/test-iconv-utf.c: New file.
29851 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29852 * modules/iconv_open-utf: New file.
29853 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29854 (iconv, iconv_close): New declarations.
29855 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29857 (iconv_open): Add special handling of conversion between UTF-8 and
29858 UTF-{16,32}{BE,LE}.
29859 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29860 * lib/iconv_close.c: New file.
29861 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29862 gl_FUNC_ICONV_OPEN.
29863 (gl_FUNC_ICONV_OPEN): Use it.
29864 (gl_FUNC_ICONV_OPEN_UTF): New macro.
29865 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29866 and REPLACE_ICONV_UTF.
29867 * modules/iconv_open (Depends-on): Add c-strcase.
29868 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29870 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29872 2007-10-13 Albert Chin <china@thewrittenword.com>
29873 Bruno Haible <bruno@clisp.org>
29875 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29876 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29878 2007-10-13 Bruno Haible <bruno@clisp.org>
29880 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29881 defined, use the ISO C99 inline semantics.
29882 * lib/argp.h (ARGP_EI): Likewise.
29884 2007-10-13 Bruno Haible <bruno@clisp.org>
29886 Handle 'inline' change in gcc 4.3.0.
29887 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29888 argp_fmtstream_write, argp_fmtstream_set_lmargin,
29889 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29890 argp_fmtstream_point): Disable 'extern' declaration if the function
29891 definition is going to be provided inline.
29892 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29893 semantics, not the ISO C99 inline semantics.
29894 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29895 'extern' declaration if the function definition is going to be provided
29897 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29898 the GNU C inline semantics, not the ISO C99 inline semantics. With
29899 GCC 4.2, avoid a warning.
29901 2007-10-13 Bruno Haible <bruno@clisp.org>
29903 * lib/freading.h (freading): Enable the use of __freading for
29905 * lib/freading.c (freading): Likewise.
29907 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
29909 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29910 "warning: C99 inline functions are not supported; using GNU89".
29912 2007-10-12 Bruno Haible <bruno@clisp.org>
29914 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29916 * tests/test-ceilf2.c: New file.
29917 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29919 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29920 * modules/ceilf-tests: Update.
29922 2007-10-12 Bruno Haible <bruno@clisp.org>
29924 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29926 * tests/test-floorf2.c: New file.
29927 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29929 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29930 * modules/floorf-tests: Update.
29932 2007-10-12 Bruno Haible <bruno@clisp.org>
29934 * tests/test-trunc2.c: New file.
29935 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29937 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29938 * modules/trunc-tests: Update.
29940 2007-10-12 Bruno Haible <bruno@clisp.org>
29942 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29944 * tests/test-truncf2.c: New file.
29945 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29947 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29948 * modules/truncf-tests: Update.
29950 2007-10-11 Eric Blake <ebb9@byu.net>
29952 Don't claim strerror is broken on Interix.
29953 * doc/functions/strerror.texi (strerror): Known broken systems are
29954 now Solaris 8, and not Interix.
29955 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29956 Interix on cross-compile.
29957 Reported by Martin Koeppe in
29958 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29960 2007-10-11 Bruno Haible <bruno@clisp.org>
29962 * modules/i-ring-tests: New file.
29963 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29966 2007-10-11 Bruno Haible <bruno@clisp.org>
29968 * modules/filenamecat-tests: New file.
29969 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29970 * lib/filenamecat.c: Remove test code.
29972 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
29974 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29976 * lib/strerror.c: Include <string.h> always, to test interface,
29977 and to remove the need for the dummy.
29978 Include intprops.h to compute width instead of doing it ourselves
29979 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29980 (strerror): Define it to return NULL if there's no system strerror.
29981 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29982 Omit !HAVE_STRERROR code. We don't need to worry about supporting
29983 ancient pre-strerror Unix systems well any more. Saying "unknown
29984 system error" is enough.
29985 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29986 simpler strerror.c implementation.
29987 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29988 Simplify the tests to reflect the simpler strerror implementation.
29989 * modules/strerror (Depends-on): Add intprops.
29991 2007-10-09 Eric Blake <ebb9@byu.net>
29993 Silence test-fpending.
29994 * modules/fpending-tests (Files): Add wrapper script.
29995 * tests/test-fpending.sh: New file.
29997 2007-10-09 Bruno Haible <bruno@clisp.org>
29999 * MODULES.html.sh (func_module): Don't create a hyperlink for
30000 function names like 'printf_frexp'.
30001 (Misc): Add crc, memxor.
30002 (Characteristics of floating types): New section.
30003 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30004 isnanf-nolibm, signbit, trunc, truncf, truncl.
30005 (Enhancements for ISO C 99 functions): New subsection Input/output.
30006 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30007 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30008 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30009 (Compatibility checks for POSIX:2001 functions): Add clock-time.
30010 (Enhancements for POSIX:2001 functions): Add chdir-long.
30011 (File system functions): Add areadlink, chdir-safer, read-file.
30012 Remove cycle-check.
30013 (File system as inode set): New section.
30014 (Date and time): Add gethrxtime.
30015 (Multithreading): Add openmp.
30016 (Internationalization functions): Add localename.
30017 (Unicode string functions): Add unistr/u*-mbsnlen.
30018 (Support for maintaining and releasing projects): Add git-version-gen.
30019 (Lone files): Remove directories.
30021 2007-10-08 Ben Pfaff <blp@gnu.org>
30023 * lib/xmalloca.h: Fix typo in comment.
30025 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
30027 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30028 when avoiding problems with integer overflow. Use a portable test
30031 2007-10-08 Simon Josefsson <simon@josefsson.org>
30033 * modules/dummy (License): Change to LGPLv2+.
30034 * modules/float (License): Likewise
30035 * modules/realloc (License): Likewise
30036 * modules/stdlib (License): Likewise
30038 2007-10-07 Bruno Haible <bruno@clisp.org>
30040 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30041 * floor.c (TWO_MANT_DIG): Likewise.
30042 * ceil.c (TWO_MANT_DIG): Likewise.
30043 Reported by Ben Pfaff.
30045 2007-10-07 Bruno Haible <bruno@clisp.org>
30047 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30048 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30049 * lib/frexp.c (FUNC): Likewise.
30050 * lib/printf-frexp.h (printf_frexp): Likewise.
30051 * lib/printf-frexpl.h (printf_frexpl): Likewise.
30052 * lib/printf-frexp.c (FUNC): Likewise.
30053 Suggested by Jim Meyering.
30055 2007-10-07 Jim Meyering <meyering@redhat.com>
30057 Make xnanosleep's integer overflow test more robust.
30058 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30059 so that gcc-4.3.0 doesn't optimize away this test for overflow.
30061 2007-10-07 Bruno Haible <bruno@clisp.org>
30063 * NEWS: Mention the license change.
30065 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30066 abbreviations in the modules files.
30068 Change copyright notice from GPLv2+ to GPLv3+.
30069 * README: Change copyright notice.
30070 * MODULES.html.sh: Likewise.
30071 * build-aux/bootstrap.conf: Likewise.
30072 * build-aux/config.libpath: Likewise.
30073 * build-aux/csharpcomp.sh.in: Likewise.
30074 * build-aux/csharpexec.sh.in: Likewise.
30075 * build-aux/install-reloc: Likewise.
30076 * build-aux/javacomp.sh.in: Likewise.
30077 * build-aux/javaexec.sh.in: Likewise.
30078 * build-aux/ldd.sh.in: Likewise.
30079 * build-aux/reloc-ldflags: Likewise.
30080 * build-aux/relocatable.sh.in: Likewise.
30081 * build-aux/x-to-1.in: Likewise.
30082 * check-module: Likewise.
30083 * config/srclistvars.sh: Likewise.
30084 * gnulib-tool: Likewise.
30085 * lib/acl-internal.h: Likewise.
30086 * lib/acl.c: Likewise.
30087 * lib/acl.h: Likewise.
30088 * lib/acl_entries.c: Likewise.
30089 * lib/areadlink-with-size.c: Likewise.
30090 * lib/areadlink.c: Likewise.
30091 * lib/areadlink.h: Likewise.
30092 * lib/argmatch.c: Likewise.
30093 * lib/argmatch.h: Likewise.
30094 * lib/argp-ba.c: Likewise.
30095 * lib/argp-eexst.c: Likewise.
30096 * lib/argp-fmtstream.c: Likewise.
30097 * lib/argp-fmtstream.h: Likewise.
30098 * lib/argp-fs-xinl.c: Likewise.
30099 * lib/argp-help.c: Likewise.
30100 * lib/argp-namefrob.h: Likewise.
30101 * lib/argp-parse.c: Likewise.
30102 * lib/argp-pin.c: Likewise.
30103 * lib/argp-pv.c: Likewise.
30104 * lib/argp-pvh.c: Likewise.
30105 * lib/argp-xinl.c: Likewise.
30106 * lib/argp.h: Likewise.
30107 * lib/at-func.c: Likewise.
30108 * lib/atanl.c: Likewise.
30109 * lib/backupfile.c: Likewise.
30110 * lib/backupfile.h: Likewise.
30111 * lib/basename.c: Likewise.
30112 * lib/binary-io.h: Likewise.
30113 * lib/byteswap.in.h: Likewise.
30114 * lib/c-stack.c: Likewise.
30115 * lib/c-stack.h: Likewise.
30116 * lib/c-strcasestr.c: Likewise.
30117 * lib/c-strcasestr.h: Likewise.
30118 * lib/c-strstr.c: Likewise.
30119 * lib/c-strstr.h: Likewise.
30120 * lib/c-strtod.c: Likewise.
30121 * lib/calloc.c: Likewise.
30122 * lib/canon-host.c: Likewise.
30123 * lib/canon-host.h: Likewise.
30124 * lib/canonicalize-lgpl.c: Likewise.
30125 * lib/canonicalize.c: Likewise.
30126 * lib/canonicalize.h: Likewise.
30127 * lib/ceil.c: Likewise.
30128 * lib/ceilf.c: Likewise.
30129 * lib/ceill.c: Likewise.
30130 * lib/chdir-long.c: Likewise.
30131 * lib/chdir-long.h: Likewise.
30132 * lib/chdir-safer.c: Likewise.
30133 * lib/chdir-safer.h: Likewise.
30134 * lib/chown.c: Likewise.
30135 * lib/classpath.c: Likewise.
30136 * lib/classpath.h: Likewise.
30137 * lib/clean-temp.c: Likewise.
30138 * lib/clean-temp.h: Likewise.
30139 * lib/cloexec.c: Likewise.
30140 * lib/close-stream.c: Likewise.
30141 * lib/closein.c: Likewise.
30142 * lib/closein.h: Likewise.
30143 * lib/closeout.c: Likewise.
30144 * lib/closeout.h: Likewise.
30145 * lib/concat-filename.c: Likewise.
30146 * lib/copy-file.c: Likewise.
30147 * lib/copy-file.h: Likewise.
30148 * lib/count-one-bits.h: Likewise.
30149 * lib/crc.c: Likewise.
30150 * lib/crc.h: Likewise.
30151 * lib/creat-safer.c: Likewise.
30152 * lib/csharpcomp.c: Likewise.
30153 * lib/csharpcomp.h: Likewise.
30154 * lib/csharpexec.c: Likewise.
30155 * lib/csharpexec.h: Likewise.
30156 * lib/cycle-check.c: Likewise.
30157 * lib/cycle-check.h: Likewise.
30158 * lib/diacrit.c: Likewise.
30159 * lib/diacrit.h: Likewise.
30160 * lib/diffseq.h: Likewise.
30161 * lib/dirchownmod.c: Likewise.
30162 * lib/dirent.in.h: Likewise.
30163 * lib/dirfd.c: Likewise.
30164 * lib/dirfd.h: Likewise.
30165 * lib/dirname.c: Likewise.
30166 * lib/dirname.h: Likewise.
30167 * lib/dummy.c: Likewise.
30168 * lib/dup-safer.c: Likewise.
30169 * lib/dup2.c: Likewise.
30170 * lib/eealloc.h: Likewise.
30171 * lib/error.c: Likewise.
30172 * lib/error.h: Likewise.
30173 * lib/euidaccess.c: Likewise.
30174 * lib/exclude.c: Likewise.
30175 * lib/exclude.h: Likewise.
30176 * lib/execute.c: Likewise.
30177 * lib/execute.h: Likewise.
30178 * lib/exitfail.c: Likewise.
30179 * lib/exitfail.h: Likewise.
30180 * lib/expl.c: Likewise.
30181 * lib/fatal-signal.c: Likewise.
30182 * lib/fatal-signal.h: Likewise.
30183 * lib/fbufmode.c: Likewise.
30184 * lib/fbufmode.h: Likewise.
30185 * lib/fchdir.c: Likewise.
30186 * lib/fchmodat.c: Likewise.
30187 * lib/fchownat.c: Likewise.
30188 * lib/fcntl--.h: Likewise.
30189 * lib/fcntl-safer.h: Likewise.
30190 * lib/fcntl.in.h: Likewise.
30191 * lib/fd-safer.c: Likewise.
30192 * lib/fflush.c: Likewise.
30193 * lib/file-has-acl.c: Likewise.
30194 * lib/file-set.c: Likewise.
30195 * lib/file-type.c: Likewise.
30196 * lib/file-type.h: Likewise.
30197 * lib/fileblocks.c: Likewise.
30198 * lib/filemode.c: Likewise.
30199 * lib/filemode.h: Likewise.
30200 * lib/filename.h: Likewise.
30201 * lib/filenamecat.c: Likewise.
30202 * lib/filenamecat.h: Likewise.
30203 * lib/findprog.c: Likewise.
30204 * lib/findprog.h: Likewise.
30205 * lib/float.in.h: Likewise.
30206 * lib/floor.c: Likewise.
30207 * lib/floorf.c: Likewise.
30208 * lib/floorl.c: Likewise.
30209 * lib/fopen-safer.c: Likewise.
30210 * lib/fopen.c: Likewise.
30211 * lib/fpending.c: Likewise.
30212 * lib/fpending.h: Likewise.
30213 * lib/fprintf.c: Likewise.
30214 * lib/fprintftime.h: Likewise.
30215 * lib/fpucw.h: Likewise.
30216 * lib/fpurge.c: Likewise.
30217 * lib/fpurge.h: Likewise.
30218 * lib/freadable.c: Likewise.
30219 * lib/freadable.h: Likewise.
30220 * lib/freadahead.c: Likewise.
30221 * lib/freadahead.h: Likewise.
30222 * lib/freading.c: Likewise.
30223 * lib/freading.h: Likewise.
30224 * lib/free.c: Likewise.
30225 * lib/freopen.c: Likewise.
30226 * lib/frexp.c: Likewise.
30227 * lib/frexpl.c: Likewise.
30228 * lib/fseek.c: Likewise.
30229 * lib/fseterr.c: Likewise.
30230 * lib/fseterr.h: Likewise.
30231 * lib/fstatat.c: Likewise.
30232 * lib/fstrcmp.c: Likewise.
30233 * lib/fstrcmp.h: Likewise.
30234 * lib/fsusage.c: Likewise.
30235 * lib/fsusage.h: Likewise.
30236 * lib/ftell.c: Likewise.
30237 * lib/ftello.c: Likewise.
30238 * lib/fts-cycle.c: Likewise.
30239 * lib/fts.c: Likewise.
30240 * lib/fts_.h: Likewise.
30241 * lib/full-read.c: Likewise.
30242 * lib/full-read.h: Likewise.
30243 * lib/full-write.c: Likewise.
30244 * lib/full-write.h: Likewise.
30245 * lib/fwritable.c: Likewise.
30246 * lib/fwritable.h: Likewise.
30247 * lib/fwriteerror.c: Likewise.
30248 * lib/fwriteerror.h: Likewise.
30249 * lib/fwriting.c: Likewise.
30250 * lib/fwriting.h: Likewise.
30251 * lib/gcd.c: Likewise.
30252 * lib/gcd.h: Likewise.
30253 * lib/getcwd.c: Likewise.
30254 * lib/getdate.h: Likewise.
30255 * lib/getdate.y: Likewise.
30256 * lib/getdomainname.c: Likewise.
30257 * lib/getdomainname.h: Likewise.
30258 * lib/getgroups.c: Likewise.
30259 * lib/gethostname.c: Likewise.
30260 * lib/gethrxtime.c: Likewise.
30261 * lib/gethrxtime.h: Likewise.
30262 * lib/getloadavg.c: Likewise.
30263 * lib/getndelim2.c: Likewise.
30264 * lib/getndelim2.h: Likewise.
30265 * lib/getnline.c: Likewise.
30266 * lib/getnline.h: Likewise.
30267 * lib/getopt.c: Likewise.
30268 * lib/getopt.in.h: Likewise.
30269 * lib/getopt1.c: Likewise.
30270 * lib/getopt_int.h: Likewise.
30271 * lib/getpagesize.h: Likewise.
30272 * lib/getsubopt.c: Likewise.
30273 * lib/gettime.c: Likewise.
30274 * lib/getugroups.c: Likewise.
30275 * lib/getugroups.h: Likewise.
30276 * lib/getusershell.c: Likewise.
30277 * lib/gl_anyavltree_list1.h: Likewise.
30278 * lib/gl_anyavltree_list2.h: Likewise.
30279 * lib/gl_anyhash_list1.h: Likewise.
30280 * lib/gl_anyhash_list2.h: Likewise.
30281 * lib/gl_anylinked_list1.h: Likewise.
30282 * lib/gl_anylinked_list2.h: Likewise.
30283 * lib/gl_anyrbtree_list1.h: Likewise.
30284 * lib/gl_anyrbtree_list2.h: Likewise.
30285 * lib/gl_anytree_list1.h: Likewise.
30286 * lib/gl_anytree_list2.h: Likewise.
30287 * lib/gl_anytree_oset.h: Likewise.
30288 * lib/gl_anytreehash_list1.h: Likewise.
30289 * lib/gl_anytreehash_list2.h: Likewise.
30290 * lib/gl_array_list.c: Likewise.
30291 * lib/gl_array_list.h: Likewise.
30292 * lib/gl_array_oset.c: Likewise.
30293 * lib/gl_array_oset.h: Likewise.
30294 * lib/gl_avltree_list.c: Likewise.
30295 * lib/gl_avltree_list.h: Likewise.
30296 * lib/gl_avltree_oset.c: Likewise.
30297 * lib/gl_avltree_oset.h: Likewise.
30298 * lib/gl_avltreehash_list.c: Likewise.
30299 * lib/gl_avltreehash_list.h: Likewise.
30300 * lib/gl_carray_list.c: Likewise.
30301 * lib/gl_carray_list.h: Likewise.
30302 * lib/gl_linked_list.c: Likewise.
30303 * lib/gl_linked_list.h: Likewise.
30304 * lib/gl_linkedhash_list.c: Likewise.
30305 * lib/gl_linkedhash_list.h: Likewise.
30306 * lib/gl_list.c: Likewise.
30307 * lib/gl_list.h: Likewise.
30308 * lib/gl_oset.c: Likewise.
30309 * lib/gl_oset.h: Likewise.
30310 * lib/gl_rbtree_list.c: Likewise.
30311 * lib/gl_rbtree_list.h: Likewise.
30312 * lib/gl_rbtree_oset.c: Likewise.
30313 * lib/gl_rbtree_oset.h: Likewise.
30314 * lib/gl_rbtreehash_list.c: Likewise.
30315 * lib/gl_rbtreehash_list.h: Likewise.
30316 * lib/gl_sublist.c: Likewise.
30317 * lib/gl_sublist.h: Likewise.
30318 * lib/group-member.c: Likewise.
30319 * lib/group-member.h: Likewise.
30320 * lib/hard-locale.c: Likewise.
30321 * lib/hard-locale.h: Likewise.
30322 * lib/hash-pjw.c: Likewise.
30323 * lib/hash-pjw.h: Likewise.
30324 * lib/hash-triple.c: Likewise.
30325 * lib/hash.c: Likewise.
30326 * lib/hash.h: Likewise.
30327 * lib/human.c: Likewise.
30328 * lib/human.h: Likewise.
30329 * lib/i-ring.c: Likewise.
30330 * lib/i-ring.h: Likewise.
30331 * lib/idcache.c: Likewise.
30332 * lib/imaxabs.c: Likewise.
30333 * lib/imaxdiv.c: Likewise.
30334 * lib/inet_pton.c: Likewise.
30335 * lib/inet_pton.h: Likewise.
30336 * lib/intprops.h: Likewise.
30337 * lib/inttostr.c: Likewise.
30338 * lib/inttostr.h: Likewise.
30339 * lib/inttypes.in.h: Likewise.
30340 * lib/isapipe.c: Likewise.
30341 * lib/isdir.c: Likewise.
30342 * lib/isnan.c: Likewise.
30343 * lib/isnan.h: Likewise.
30344 * lib/isnanf.c: Likewise.
30345 * lib/isnanf.h: Likewise.
30346 * lib/isnanl-nolibm.h: Likewise.
30347 * lib/isnanl.c: Likewise.
30348 * lib/isnanl.h: Likewise.
30349 * lib/javacomp.c: Likewise.
30350 * lib/javacomp.h: Likewise.
30351 * lib/javaexec.c: Likewise.
30352 * lib/javaexec.h: Likewise.
30353 * lib/javaversion.c: Likewise.
30354 * lib/javaversion.h: Likewise.
30355 * lib/javaversion.java: Likewise.
30356 * lib/lbrkprop.h: Likewise.
30357 * lib/lchmod.h: Likewise.
30358 * lib/lchown.c: Likewise.
30359 * lib/ldexpl.c: Likewise.
30360 * lib/linebreak.c: Likewise.
30361 * lib/linebreak.h: Likewise.
30362 * lib/linebuffer.c: Likewise.
30363 * lib/linebuffer.h: Likewise.
30364 * lib/locale.in.h: Likewise.
30365 * lib/logl.c: Likewise.
30366 * lib/long-options.c: Likewise.
30367 * lib/long-options.h: Likewise.
30368 * lib/lstat.c: Likewise.
30369 * lib/lstat.h: Likewise.
30370 * lib/math.in.h: Likewise.
30371 * lib/mbchar.c: Likewise.
30372 * lib/mbchar.h: Likewise.
30373 * lib/mbfile.h: Likewise.
30374 * lib/mbiter.h: Likewise.
30375 * lib/mbscasecmp.c: Likewise.
30376 * lib/mbscasestr.c: Likewise.
30377 * lib/mbschr.c: Likewise.
30378 * lib/mbscspn.c: Likewise.
30379 * lib/mbslen.c: Likewise.
30380 * lib/mbsncasecmp.c: Likewise.
30381 * lib/mbsnlen.c: Likewise.
30382 * lib/mbspbrk.c: Likewise.
30383 * lib/mbspcasecmp.c: Likewise.
30384 * lib/mbsrchr.c: Likewise.
30385 * lib/mbssep.c: Likewise.
30386 * lib/mbsspn.c: Likewise.
30387 * lib/mbsstr.c: Likewise.
30388 * lib/mbstok_r.c: Likewise.
30389 * lib/mbswidth.c: Likewise.
30390 * lib/mbswidth.h: Likewise.
30391 * lib/mbuiter.h: Likewise.
30392 * lib/memcasecmp.c: Likewise.
30393 * lib/memcasecmp.h: Likewise.
30394 * lib/memchr.c: Likewise.
30395 * lib/memcmp.c: Likewise.
30396 * lib/memcoll.c: Likewise.
30397 * lib/memcoll.h: Likewise.
30398 * lib/memcpy.c: Likewise.
30399 * lib/memrchr.c: Likewise.
30400 * lib/mkancesdirs.c: Likewise.
30401 * lib/mkdir-p.c: Likewise.
30402 * lib/mkdir-p.h: Likewise.
30403 * lib/mkdir.c: Likewise.
30404 * lib/mkdirat.c: Likewise.
30405 * lib/mkdtemp.c: Likewise.
30406 * lib/mkstemp-safer.c: Likewise.
30407 * lib/mkstemp.c: Likewise.
30408 * lib/modechange.c: Likewise.
30409 * lib/modechange.h: Likewise.
30410 * lib/mountlist.c: Likewise.
30411 * lib/mountlist.h: Likewise.
30412 * lib/mpsort.c: Likewise.
30413 * lib/nanosleep.c: Likewise.
30414 * lib/obstack.c: Likewise.
30415 * lib/obstack.h: Likewise.
30416 * lib/open-safer.c: Likewise.
30417 * lib/open.c: Likewise.
30418 * lib/openat-die.c: Likewise.
30419 * lib/openat-priv.h: Likewise.
30420 * lib/openat-proc.c: Likewise.
30421 * lib/openat.c: Likewise.
30422 * lib/openat.h: Likewise.
30423 * lib/pagealign_alloc.c: Likewise.
30424 * lib/pagealign_alloc.h: Likewise.
30425 * lib/physmem.c: Likewise.
30426 * lib/physmem.h: Likewise.
30427 * lib/pipe-safer.c: Likewise.
30428 * lib/pipe.c: Likewise.
30429 * lib/pipe.h: Likewise.
30430 * lib/posixtm.c: Likewise.
30431 * lib/posixtm.h: Likewise.
30432 * lib/posixver.c: Likewise.
30433 * lib/printf-frexp.c: Likewise.
30434 * lib/printf-frexp.h: Likewise.
30435 * lib/printf-frexpl.c: Likewise.
30436 * lib/printf-frexpl.h: Likewise.
30437 * lib/printf.c: Likewise.
30438 * lib/progname.c: Likewise.
30439 * lib/progname.h: Likewise.
30440 * lib/progreloc.c: Likewise.
30441 * lib/putenv.c: Likewise.
30442 * lib/quote.c: Likewise.
30443 * lib/quote.h: Likewise.
30444 * lib/quotearg.c: Likewise.
30445 * lib/quotearg.h: Likewise.
30446 * lib/raise.c: Likewise.
30447 * lib/readline.c: Likewise.
30448 * lib/readline.h: Likewise.
30449 * lib/readlink.c: Likewise.
30450 * lib/readtokens.c: Likewise.
30451 * lib/readtokens.h: Likewise.
30452 * lib/readtokens0.c: Likewise.
30453 * lib/readtokens0.h: Likewise.
30454 * lib/readutmp.c: Likewise.
30455 * lib/readutmp.h: Likewise.
30456 * lib/realloc.c: Likewise.
30457 * lib/relocwrapper.c: Likewise.
30458 * lib/rename-dest-slash.c: Likewise.
30459 * lib/rename.c: Likewise.
30460 * lib/rmdir.c: Likewise.
30461 * lib/rpmatch.c: Likewise.
30462 * lib/safe-read.c: Likewise.
30463 * lib/safe-read.h: Likewise.
30464 * lib/safe-write.c: Likewise.
30465 * lib/safe-write.h: Likewise.
30466 * lib/same-inode.h: Likewise.
30467 * lib/same.c: Likewise.
30468 * lib/same.h: Likewise.
30469 * lib/save-cwd.c: Likewise.
30470 * lib/save-cwd.h: Likewise.
30471 * lib/savedir.c: Likewise.
30472 * lib/savedir.h: Likewise.
30473 * lib/savewd.c: Likewise.
30474 * lib/savewd.h: Likewise.
30475 * lib/search.in.h: Likewise.
30476 * lib/setenv.c: Likewise.
30477 * lib/setenv.h: Likewise.
30478 * lib/settime.c: Likewise.
30479 * lib/sh-quote.c: Likewise.
30480 * lib/sh-quote.h: Likewise.
30481 * lib/sig2str.c: Likewise.
30482 * lib/sig2str.h: Likewise.
30483 * lib/signal.in.h: Likewise.
30484 * lib/signbitd.c: Likewise.
30485 * lib/signbitf.c: Likewise.
30486 * lib/signbitl.c: Likewise.
30487 * lib/sigprocmask.c: Likewise.
30488 * lib/sincosl.c: Likewise.
30489 * lib/sleep.c: Likewise.
30490 * lib/sprintf.c: Likewise.
30491 * lib/sqrtl.c: Likewise.
30492 * lib/stat-time.h: Likewise.
30493 * lib/stdio--.h: Likewise.
30494 * lib/stdio-safer.h: Likewise.
30495 * lib/stdlib--.h: Likewise.
30496 * lib/stdlib-safer.h: Likewise.
30497 * lib/stdlib.in.h: Likewise.
30498 * lib/stpcpy.c: Likewise.
30499 * lib/stpncpy.c: Likewise.
30500 * lib/strchrnul.c: Likewise.
30501 * lib/strcspn.c: Likewise.
30502 * lib/strerror.c: Likewise.
30503 * lib/strftime.c: Likewise.
30504 * lib/strftime.h: Likewise.
30505 * lib/striconveh.c: Likewise.
30506 * lib/striconveh.h: Likewise.
30507 * lib/striconveha.c: Likewise.
30508 * lib/striconveha.h: Likewise.
30509 * lib/stripslash.c: Likewise.
30510 * lib/strnlen1.c: Likewise.
30511 * lib/strnlen1.h: Likewise.
30512 * lib/strtod.c: Likewise.
30513 * lib/strtoimax.c: Likewise.
30514 * lib/strtok_r.c: Likewise.
30515 * lib/strtol.c: Likewise.
30516 * lib/strtoll.c: Likewise.
30517 * lib/strtoul.c: Likewise.
30518 * lib/strtoull.c: Likewise.
30519 * lib/sysexits.in.h: Likewise.
30520 * lib/tempname.c: Likewise.
30521 * lib/tempname.h: Likewise.
30522 * lib/timespec.h: Likewise.
30523 * lib/tls.c: Likewise.
30524 * lib/tls.h: Likewise.
30525 * lib/tmpdir.c: Likewise.
30526 * lib/tmpdir.h: Likewise.
30527 * lib/tmpfile-safer.c: Likewise.
30528 * lib/tmpfile.c: Likewise.
30529 * lib/trigl.c: Likewise.
30530 * lib/trigl.h: Likewise.
30531 * lib/trim.c: Likewise.
30532 * lib/trim.h: Likewise.
30533 * lib/trunc.c: Likewise.
30534 * lib/truncf.c: Likewise.
30535 * lib/truncl.c: Likewise.
30536 * lib/tsearch.c: Likewise.
30537 * lib/unicodeio.c: Likewise.
30538 * lib/unicodeio.h: Likewise.
30539 * lib/unistd--.h: Likewise.
30540 * lib/unistd-safer.h: Likewise.
30541 * lib/unistdio/ulc-fprintf.c: Likewise.
30542 * lib/unistdio/ulc-vfprintf.c: Likewise.
30543 * lib/unlinkdir.c: Likewise.
30544 * lib/unlinkdir.h: Likewise.
30545 * lib/unlocked-io.h: Likewise.
30546 * lib/unsetenv.c: Likewise.
30547 * lib/userspec.c: Likewise.
30548 * lib/utime.c: Likewise.
30549 * lib/utimecmp.c: Likewise.
30550 * lib/utimecmp.h: Likewise.
30551 * lib/utimens.c: Likewise.
30552 * lib/verify.h: Likewise.
30553 * lib/verror.c: Likewise.
30554 * lib/verror.h: Likewise.
30555 * lib/version-etc-fsf.c: Likewise.
30556 * lib/version-etc.c: Likewise.
30557 * lib/version-etc.h: Likewise.
30558 * lib/vfprintf.c: Likewise.
30559 * lib/vprintf.c: Likewise.
30560 * lib/vsprintf.c: Likewise.
30561 * lib/w32spawn.h: Likewise.
30562 * lib/wait-process.c: Likewise.
30563 * lib/wait-process.h: Likewise.
30564 * lib/wcwidth.c: Likewise.
30565 * lib/write-any-file.c: Likewise.
30566 * lib/xalloc-die.c: Likewise.
30567 * lib/xalloc.h: Likewise.
30568 * lib/xasprintf.c: Likewise.
30569 * lib/xgetcwd.c: Likewise.
30570 * lib/xgetcwd.h: Likewise.
30571 * lib/xgetdomainname.c: Likewise.
30572 * lib/xgetdomainname.h: Likewise.
30573 * lib/xgethostname.c: Likewise.
30574 * lib/xmalloc.c: Likewise.
30575 * lib/xmalloca.c: Likewise.
30576 * lib/xmalloca.h: Likewise.
30577 * lib/xmemcoll.c: Likewise.
30578 * lib/xnanosleep.c: Likewise.
30579 * lib/xreadlink.c: Likewise.
30580 * lib/xreadlink.h: Likewise.
30581 * lib/xsetenv.c: Likewise.
30582 * lib/xsetenv.h: Likewise.
30583 * lib/xstriconv.c: Likewise.
30584 * lib/xstriconv.h: Likewise.
30585 * lib/xstrndup.c: Likewise.
30586 * lib/xstrndup.h: Likewise.
30587 * lib/xstrtod.c: Likewise.
30588 * lib/xstrtod.h: Likewise.
30589 * lib/xstrtol-error.c: Likewise.
30590 * lib/xstrtol.c: Likewise.
30591 * lib/xstrtol.h: Likewise.
30592 * lib/xtime.h: Likewise.
30593 * lib/xvasprintf.c: Likewise.
30594 * lib/xvasprintf.h: Likewise.
30595 * lib/yesno.c: Likewise.
30596 * lib/yesno.h: Likewise.
30597 * posix-modules: Likewise.
30598 * tests/test-alloca-opt.c: Likewise.
30599 * tests/test-arcfour.c: Likewise.
30600 * tests/test-arctwo.c: Likewise.
30601 * tests/test-argmatch.c: Likewise.
30602 * tests/test-argp-2.sh: Likewise.
30603 * tests/test-argp.c: Likewise.
30604 * tests/test-arpa_inet.c: Likewise.
30605 * tests/test-array_list.c: Likewise.
30606 * tests/test-array_oset.c: Likewise.
30607 * tests/test-atexit.c: Likewise.
30608 * tests/test-avltree_list.c: Likewise.
30609 * tests/test-avltree_oset.c: Likewise.
30610 * tests/test-avltreehash_list.c: Likewise.
30611 * tests/test-base64.c: Likewise.
30612 * tests/test-binary-io.c: Likewise.
30613 * tests/test-byteswap.c: Likewise.
30614 * tests/test-c-ctype.c: Likewise.
30615 * tests/test-c-strcasecmp.c: Likewise.
30616 * tests/test-c-strcasestr.c: Likewise.
30617 * tests/test-c-strncasecmp.c: Likewise.
30618 * tests/test-c-strstr.c: Likewise.
30619 * tests/test-canonicalize-lgpl.c: Likewise.
30620 * tests/test-canonicalize.c: Likewise.
30621 * tests/test-carray_list.c: Likewise.
30622 * tests/test-ceilf.c: Likewise.
30623 * tests/test-ceill.c: Likewise.
30624 * tests/test-count-one-bits.c: Likewise.
30625 * tests/test-crc.c: Likewise.
30626 * tests/test-dirname.c: Likewise.
30627 * tests/test-fbufmode.c: Likewise.
30628 * tests/test-fcntl.c: Likewise.
30629 * tests/test-fflush.c: Likewise.
30630 * tests/test-floorf.c: Likewise.
30631 * tests/test-floorl.c: Likewise.
30632 * tests/test-fopen.c: Likewise.
30633 * tests/test-fprintf-posix.c: Likewise.
30634 * tests/test-fprintf-posix.h: Likewise.
30635 * tests/test-fpurge.c: Likewise.
30636 * tests/test-freadable.c: Likewise.
30637 * tests/test-freadahead.c: Likewise.
30638 * tests/test-freading.c: Likewise.
30639 * tests/test-freopen.c: Likewise.
30640 * tests/test-frexp.c: Likewise.
30641 * tests/test-frexpl.c: Likewise.
30642 * tests/test-fseek.c: Likewise.
30643 * tests/test-fseeko.c: Likewise.
30644 * tests/test-fseterr.c: Likewise.
30645 * tests/test-fstrcmp.c: Likewise.
30646 * tests/test-ftell.c: Likewise.
30647 * tests/test-ftello.c: Likewise.
30648 * tests/test-fwritable.c: Likewise.
30649 * tests/test-fwriting.c: Likewise.
30650 * tests/test-getaddrinfo.c: Likewise.
30651 * tests/test-getpass.c: Likewise.
30652 * tests/test-gettimeofday.c: Likewise.
30653 * tests/test-hmac-md5.c: Likewise.
30654 * tests/test-hmac-sha1.c: Likewise.
30655 * tests/test-iconv.c: Likewise.
30656 * tests/test-iconvme.c: Likewise.
30657 * tests/test-inttypes.c: Likewise.
30658 * tests/test-isnan.c: Likewise.
30659 * tests/test-isnanf.c: Likewise.
30660 * tests/test-isnanl-nolibm.c: Likewise.
30661 * tests/test-isnanl.c: Likewise.
30662 * tests/test-isnanl.h: Likewise.
30663 * tests/test-ldexpl.c: Likewise.
30664 * tests/test-linked_list.c: Likewise.
30665 * tests/test-linkedhash_list.c: Likewise.
30666 * tests/test-locale.c: Likewise.
30667 * tests/test-localename.c: Likewise.
30668 * tests/test-lock.c: Likewise.
30669 * tests/test-lseek.c: Likewise.
30670 * tests/test-malloca.c: Likewise.
30671 * tests/test-math.c: Likewise.
30672 * tests/test-mbscasecmp.c: Likewise.
30673 * tests/test-mbscasestr1.c: Likewise.
30674 * tests/test-mbscasestr2.c: Likewise.
30675 * tests/test-mbscasestr3.c: Likewise.
30676 * tests/test-mbscasestr4.c: Likewise.
30677 * tests/test-mbschr.c: Likewise.
30678 * tests/test-mbscspn.c: Likewise.
30679 * tests/test-mbsncasecmp.c: Likewise.
30680 * tests/test-mbspbrk.c: Likewise.
30681 * tests/test-mbspcasecmp.c: Likewise.
30682 * tests/test-mbsrchr.c: Likewise.
30683 * tests/test-mbsspn.c: Likewise.
30684 * tests/test-mbsstr1.c: Likewise.
30685 * tests/test-mbsstr2.c: Likewise.
30686 * tests/test-mbsstr3.c: Likewise.
30687 * tests/test-md5.c: Likewise.
30688 * tests/test-memmem.c: Likewise.
30689 * tests/test-netinet_in.c: Likewise.
30690 * tests/test-open.c: Likewise.
30691 * tests/test-printf-frexp.c: Likewise.
30692 * tests/test-printf-frexpl.c: Likewise.
30693 * tests/test-printf-posix.c: Likewise.
30694 * tests/test-printf-posix.h: Likewise.
30695 * tests/test-rbtree_list.c: Likewise.
30696 * tests/test-rbtree_oset.c: Likewise.
30697 * tests/test-rbtreehash_list.c: Likewise.
30698 * tests/test-read-file.c: Likewise.
30699 * tests/test-rijndael.c: Likewise.
30700 * tests/test-search.c: Likewise.
30701 * tests/test-signbit.c: Likewise.
30702 * tests/test-sleep.c: Likewise.
30703 * tests/test-snprintf-posix.c: Likewise.
30704 * tests/test-snprintf-posix.h: Likewise.
30705 * tests/test-snprintf.c: Likewise.
30706 * tests/test-sprintf-posix.c: Likewise.
30707 * tests/test-sprintf-posix.h: Likewise.
30708 * tests/test-stat-time.c: Likewise.
30709 * tests/test-stdbool.c: Likewise.
30710 * tests/test-stdint.c: Likewise.
30711 * tests/test-stdio.c: Likewise.
30712 * tests/test-stdlib.c: Likewise.
30713 * tests/test-stpncpy.c: Likewise.
30714 * tests/test-strcasestr.c: Likewise.
30715 * tests/test-striconv.c: Likewise.
30716 * tests/test-striconveh.c: Likewise.
30717 * tests/test-striconveha.c: Likewise.
30718 * tests/test-string.c: Likewise.
30719 * tests/test-sys_select.c: Likewise.
30720 * tests/test-sys_socket.c: Likewise.
30721 * tests/test-sys_stat.c: Likewise.
30722 * tests/test-sys_time.c: Likewise.
30723 * tests/test-sysexits.c: Likewise.
30724 * tests/test-time.c: Likewise.
30725 * tests/test-tls.c: Likewise.
30726 * tests/test-trunc.c: Likewise.
30727 * tests/test-truncf.c: Likewise.
30728 * tests/test-truncl.c: Likewise.
30729 * tests/test-unistd.c: Likewise.
30730 * tests/test-vasnprintf-posix.c: Likewise.
30731 * tests/test-vasnprintf-posix2.c: Likewise.
30732 * tests/test-vasnprintf.c: Likewise.
30733 * tests/test-vasprintf-posix.c: Likewise.
30734 * tests/test-vasprintf.c: Likewise.
30735 * tests/test-verify.c: Likewise.
30736 * tests/test-vfprintf-posix.c: Likewise.
30737 * tests/test-vprintf-posix.c: Likewise.
30738 * tests/test-vsnprintf-posix.c: Likewise.
30739 * tests/test-vsnprintf.c: Likewise.
30740 * tests/test-vsprintf-posix.c: Likewise.
30741 * tests/test-wchar.c: Likewise.
30742 * tests/test-wctype.c: Likewise.
30743 * tests/test-wcwidth.c: Likewise.
30744 * tests/test-xstrtol.c: Likewise.
30745 * tests/test-xvasprintf.c: Likewise.
30746 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30747 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30748 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30749 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30750 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30751 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30752 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30753 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30754 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30755 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30756 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30757 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30758 * tests/uniname/test-uninames.c: Likewise.
30759 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30760 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30761 * tests/unistdio/test-u16-printf1.h: Likewise.
30762 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30763 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30764 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30765 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30766 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30767 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30768 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30769 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30770 * tests/unistdio/test-u32-printf1.h: Likewise.
30771 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30772 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30773 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30774 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30775 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30776 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30777 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30778 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30779 * tests/unistdio/test-u8-printf1.h: Likewise.
30780 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30781 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30782 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30783 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30784 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30785 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30786 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30787 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30788 * tests/unistdio/test-ulc-printf1.h: Likewise.
30789 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30790 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30791 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30792 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30793 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30794 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30795 * tests/uniwidth/test-u16-strwidth.c: Likewise.
30796 * tests/uniwidth/test-u16-width.c: Likewise.
30797 * tests/uniwidth/test-u32-strwidth.c: Likewise.
30798 * tests/uniwidth/test-u32-width.c: Likewise.
30799 * tests/uniwidth/test-u8-strwidth.c: Likewise.
30800 * tests/uniwidth/test-u8-width.c: Likewise.
30801 * tests/uniwidth/test-uc_width.c: Likewise.
30802 * config/srclist-update: Likewise.
30803 (fixlicense): Update to GPLv3+.
30805 Change copyright notice from LGPLv2.1+ to LGPLv3+.
30806 * tests/test-tsearch.c: Change copyright notice.
30808 Change copyright notice from LGPLv2.0+ to LGPLv3+.
30809 * lib/c-strcaseeq.h: Change copyright notice.
30810 * lib/streq.h: Likewise.
30811 * lib/uniconv.h: Likewise.
30812 * lib/uniconv/u-conv-from-enc.h: Likewise.
30813 * lib/uniconv/u-conv-to-enc.h: Likewise.
30814 * lib/uniconv/u-strconv-from-enc.h: Likewise.
30815 * lib/uniconv/u-strconv-to-enc.h: Likewise.
30816 * lib/uniconv/u16-conv-from-enc.c: Likewise.
30817 * lib/uniconv/u16-conv-to-enc.c: Likewise.
30818 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30819 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30820 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30821 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30822 * lib/uniconv/u32-conv-from-enc.c: Likewise.
30823 * lib/uniconv/u32-conv-to-enc.c: Likewise.
30824 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30825 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30826 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30827 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30828 * lib/uniconv/u8-conv-from-enc.c: Likewise.
30829 * lib/uniconv/u8-conv-to-enc.c: Likewise.
30830 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30831 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30832 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30833 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30834 * lib/uniname.h: Likewise.
30835 * lib/uniname/uniname.c: Likewise.
30836 * lib/unistdio.h: Likewise.
30837 * lib/unistdio/u-asnprintf.h: Likewise.
30838 * lib/unistdio/u-asprintf.h: Likewise.
30839 * lib/unistdio/u-printf-args.c: Likewise.
30840 * lib/unistdio/u-printf-args.h: Likewise.
30841 * lib/unistdio/u-printf-parse.h: Likewise.
30842 * lib/unistdio/u-snprintf.h: Likewise.
30843 * lib/unistdio/u-sprintf.h: Likewise.
30844 * lib/unistdio/u-vasprintf.h: Likewise.
30845 * lib/unistdio/u-vsnprintf.h: Likewise.
30846 * lib/unistdio/u-vsprintf.h: Likewise.
30847 * lib/unistdio/u16-asnprintf.c: Likewise.
30848 * lib/unistdio/u16-asprintf.c: Likewise.
30849 * lib/unistdio/u16-printf-parse.c: Likewise.
30850 * lib/unistdio/u16-snprintf.c: Likewise.
30851 * lib/unistdio/u16-sprintf.c: Likewise.
30852 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30853 * lib/unistdio/u16-u16-asprintf.c: Likewise.
30854 * lib/unistdio/u16-u16-snprintf.c: Likewise.
30855 * lib/unistdio/u16-u16-sprintf.c: Likewise.
30856 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30857 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30858 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30859 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30860 * lib/unistdio/u16-vasnprintf.c: Likewise.
30861 * lib/unistdio/u16-vasprintf.c: Likewise.
30862 * lib/unistdio/u16-vsnprintf.c: Likewise.
30863 * lib/unistdio/u16-vsprintf.c: Likewise.
30864 * lib/unistdio/u32-asnprintf.c: Likewise.
30865 * lib/unistdio/u32-asprintf.c: Likewise.
30866 * lib/unistdio/u32-printf-parse.c: Likewise.
30867 * lib/unistdio/u32-snprintf.c: Likewise.
30868 * lib/unistdio/u32-sprintf.c: Likewise.
30869 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30870 * lib/unistdio/u32-u32-asprintf.c: Likewise.
30871 * lib/unistdio/u32-u32-snprintf.c: Likewise.
30872 * lib/unistdio/u32-u32-sprintf.c: Likewise.
30873 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30874 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30875 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30876 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30877 * lib/unistdio/u32-vasnprintf.c: Likewise.
30878 * lib/unistdio/u32-vasprintf.c: Likewise.
30879 * lib/unistdio/u32-vsnprintf.c: Likewise.
30880 * lib/unistdio/u32-vsprintf.c: Likewise.
30881 * lib/unistdio/u8-asnprintf.c: Likewise.
30882 * lib/unistdio/u8-asprintf.c: Likewise.
30883 * lib/unistdio/u8-printf-parse.c: Likewise.
30884 * lib/unistdio/u8-snprintf.c: Likewise.
30885 * lib/unistdio/u8-sprintf.c: Likewise.
30886 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30887 * lib/unistdio/u8-u8-asprintf.c: Likewise.
30888 * lib/unistdio/u8-u8-snprintf.c: Likewise.
30889 * lib/unistdio/u8-u8-sprintf.c: Likewise.
30890 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30891 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30892 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30893 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30894 * lib/unistdio/u8-vasnprintf.c: Likewise.
30895 * lib/unistdio/u8-vasprintf.c: Likewise.
30896 * lib/unistdio/u8-vsnprintf.c: Likewise.
30897 * lib/unistdio/u8-vsprintf.c: Likewise.
30898 * lib/unistdio/ulc-asnprintf.c: Likewise.
30899 * lib/unistdio/ulc-asprintf.c: Likewise.
30900 * lib/unistdio/ulc-printf-parse.c: Likewise.
30901 * lib/unistdio/ulc-snprintf.c: Likewise.
30902 * lib/unistdio/ulc-sprintf.c: Likewise.
30903 * lib/unistdio/ulc-vasnprintf.c: Likewise.
30904 * lib/unistdio/ulc-vasprintf.c: Likewise.
30905 * lib/unistdio/ulc-vsnprintf.c: Likewise.
30906 * lib/unistdio/ulc-vsprintf.c: Likewise.
30907 * lib/unistr.h: Likewise.
30908 * lib/unistr/u-cpy-alloc.h: Likewise.
30909 * lib/unistr/u-cpy.h: Likewise.
30910 * lib/unistr/u-endswith.h: Likewise.
30911 * lib/unistr/u-move.h: Likewise.
30912 * lib/unistr/u-set.h: Likewise.
30913 * lib/unistr/u-startswith.h: Likewise.
30914 * lib/unistr/u-stpcpy.h: Likewise.
30915 * lib/unistr/u-stpncpy.h: Likewise.
30916 * lib/unistr/u-strcat.h: Likewise.
30917 * lib/unistr/u-strcpy.h: Likewise.
30918 * lib/unistr/u-strcspn.h: Likewise.
30919 * lib/unistr/u-strdup.h: Likewise.
30920 * lib/unistr/u-strlen.h: Likewise.
30921 * lib/unistr/u-strncat.h: Likewise.
30922 * lib/unistr/u-strncpy.h: Likewise.
30923 * lib/unistr/u-strnlen.h: Likewise.
30924 * lib/unistr/u-strpbrk.h: Likewise.
30925 * lib/unistr/u-strspn.h: Likewise.
30926 * lib/unistr/u-strstr.h: Likewise.
30927 * lib/unistr/u-strtok.h: Likewise.
30928 * lib/unistr/u16-check.c: Likewise.
30929 * lib/unistr/u16-chr.c: Likewise.
30930 * lib/unistr/u16-cmp.c: Likewise.
30931 * lib/unistr/u16-cpy-alloc.c: Likewise.
30932 * lib/unistr/u16-cpy.c: Likewise.
30933 * lib/unistr/u16-endswith.c: Likewise.
30934 * lib/unistr/u16-mblen.c: Likewise.
30935 * lib/unistr/u16-mbsnlen.c: Likewise.
30936 * lib/unistr/u16-mbtouc-aux.c: Likewise.
30937 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30938 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30939 * lib/unistr/u16-mbtouc.c: Likewise.
30940 * lib/unistr/u16-mbtoucr.c: Likewise.
30941 * lib/unistr/u16-move.c: Likewise.
30942 * lib/unistr/u16-next.c: Likewise.
30943 * lib/unistr/u16-prev.c: Likewise.
30944 * lib/unistr/u16-set.c: Likewise.
30945 * lib/unistr/u16-startswith.c: Likewise.
30946 * lib/unistr/u16-stpcpy.c: Likewise.
30947 * lib/unistr/u16-stpncpy.c: Likewise.
30948 * lib/unistr/u16-strcat.c: Likewise.
30949 * lib/unistr/u16-strchr.c: Likewise.
30950 * lib/unistr/u16-strcmp.c: Likewise.
30951 * lib/unistr/u16-strcpy.c: Likewise.
30952 * lib/unistr/u16-strcspn.c: Likewise.
30953 * lib/unistr/u16-strdup.c: Likewise.
30954 * lib/unistr/u16-strlen.c: Likewise.
30955 * lib/unistr/u16-strmblen.c: Likewise.
30956 * lib/unistr/u16-strmbtouc.c: Likewise.
30957 * lib/unistr/u16-strncat.c: Likewise.
30958 * lib/unistr/u16-strncmp.c: Likewise.
30959 * lib/unistr/u16-strncpy.c: Likewise.
30960 * lib/unistr/u16-strnlen.c: Likewise.
30961 * lib/unistr/u16-strpbrk.c: Likewise.
30962 * lib/unistr/u16-strrchr.c: Likewise.
30963 * lib/unistr/u16-strspn.c: Likewise.
30964 * lib/unistr/u16-strstr.c: Likewise.
30965 * lib/unistr/u16-strtok.c: Likewise.
30966 * lib/unistr/u16-to-u32.c: Likewise.
30967 * lib/unistr/u16-to-u8.c: Likewise.
30968 * lib/unistr/u16-uctomb-aux.c: Likewise.
30969 * lib/unistr/u16-uctomb.c: Likewise.
30970 * lib/unistr/u32-check.c: Likewise.
30971 * lib/unistr/u32-chr.c: Likewise.
30972 * lib/unistr/u32-cmp.c: Likewise.
30973 * lib/unistr/u32-cpy-alloc.c: Likewise.
30974 * lib/unistr/u32-cpy.c: Likewise.
30975 * lib/unistr/u32-endswith.c: Likewise.
30976 * lib/unistr/u32-mblen.c: Likewise.
30977 * lib/unistr/u32-mbsnlen.c: Likewise.
30978 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30979 * lib/unistr/u32-mbtouc.c: Likewise.
30980 * lib/unistr/u32-mbtoucr.c: Likewise.
30981 * lib/unistr/u32-move.c: Likewise.
30982 * lib/unistr/u32-next.c: Likewise.
30983 * lib/unistr/u32-prev.c: Likewise.
30984 * lib/unistr/u32-set.c: Likewise.
30985 * lib/unistr/u32-startswith.c: Likewise.
30986 * lib/unistr/u32-stpcpy.c: Likewise.
30987 * lib/unistr/u32-stpncpy.c: Likewise.
30988 * lib/unistr/u32-strcat.c: Likewise.
30989 * lib/unistr/u32-strchr.c: Likewise.
30990 * lib/unistr/u32-strcmp.c: Likewise.
30991 * lib/unistr/u32-strcpy.c: Likewise.
30992 * lib/unistr/u32-strcspn.c: Likewise.
30993 * lib/unistr/u32-strdup.c: Likewise.
30994 * lib/unistr/u32-strlen.c: Likewise.
30995 * lib/unistr/u32-strmblen.c: Likewise.
30996 * lib/unistr/u32-strmbtouc.c: Likewise.
30997 * lib/unistr/u32-strncat.c: Likewise.
30998 * lib/unistr/u32-strncmp.c: Likewise.
30999 * lib/unistr/u32-strncpy.c: Likewise.
31000 * lib/unistr/u32-strnlen.c: Likewise.
31001 * lib/unistr/u32-strpbrk.c: Likewise.
31002 * lib/unistr/u32-strrchr.c: Likewise.
31003 * lib/unistr/u32-strspn.c: Likewise.
31004 * lib/unistr/u32-strstr.c: Likewise.
31005 * lib/unistr/u32-strtok.c: Likewise.
31006 * lib/unistr/u32-to-u16.c: Likewise.
31007 * lib/unistr/u32-to-u8.c: Likewise.
31008 * lib/unistr/u32-uctomb.c: Likewise.
31009 * lib/unistr/u8-check.c: Likewise.
31010 * lib/unistr/u8-chr.c: Likewise.
31011 * lib/unistr/u8-cmp.c: Likewise.
31012 * lib/unistr/u8-cpy-alloc.c: Likewise.
31013 * lib/unistr/u8-cpy.c: Likewise.
31014 * lib/unistr/u8-endswith.c: Likewise.
31015 * lib/unistr/u8-mblen.c: Likewise.
31016 * lib/unistr/u8-mbsnlen.c: Likewise.
31017 * lib/unistr/u8-mbtouc-aux.c: Likewise.
31018 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31019 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31020 * lib/unistr/u8-mbtouc.c: Likewise.
31021 * lib/unistr/u8-mbtoucr.c: Likewise.
31022 * lib/unistr/u8-move.c: Likewise.
31023 * lib/unistr/u8-next.c: Likewise.
31024 * lib/unistr/u8-prev.c: Likewise.
31025 * lib/unistr/u8-set.c: Likewise.
31026 * lib/unistr/u8-startswith.c: Likewise.
31027 * lib/unistr/u8-stpcpy.c: Likewise.
31028 * lib/unistr/u8-stpncpy.c: Likewise.
31029 * lib/unistr/u8-strcat.c: Likewise.
31030 * lib/unistr/u8-strchr.c: Likewise.
31031 * lib/unistr/u8-strcmp.c: Likewise.
31032 * lib/unistr/u8-strcpy.c: Likewise.
31033 * lib/unistr/u8-strcspn.c: Likewise.
31034 * lib/unistr/u8-strdup.c: Likewise.
31035 * lib/unistr/u8-strlen.c: Likewise.
31036 * lib/unistr/u8-strmblen.c: Likewise.
31037 * lib/unistr/u8-strmbtouc.c: Likewise.
31038 * lib/unistr/u8-strncat.c: Likewise.
31039 * lib/unistr/u8-strncmp.c: Likewise.
31040 * lib/unistr/u8-strncpy.c: Likewise.
31041 * lib/unistr/u8-strnlen.c: Likewise.
31042 * lib/unistr/u8-strpbrk.c: Likewise.
31043 * lib/unistr/u8-strrchr.c: Likewise.
31044 * lib/unistr/u8-strspn.c: Likewise.
31045 * lib/unistr/u8-strstr.c: Likewise.
31046 * lib/unistr/u8-strtok.c: Likewise.
31047 * lib/unistr/u8-to-u16.c: Likewise.
31048 * lib/unistr/u8-to-u32.c: Likewise.
31049 * lib/unistr/u8-uctomb-aux.c: Likewise.
31050 * lib/unistr/u8-uctomb.c: Likewise.
31051 * lib/unitypes.h: Likewise.
31052 * lib/uniwidth.h: Likewise.
31053 * lib/uniwidth/cjk.h: Likewise.
31054 * lib/uniwidth/u16-strwidth.c: Likewise.
31055 * lib/uniwidth/u16-width.c: Likewise.
31056 * lib/uniwidth/u32-strwidth.c: Likewise.
31057 * lib/uniwidth/u32-width.c: Likewise.
31058 * lib/uniwidth/u8-strwidth.c: Likewise.
31059 * lib/uniwidth/u8-width.c: Likewise.
31060 * lib/uniwidth/width.c: Likewise.
31062 2007-10-07 Bruno Haible <bruno@clisp.org>
31064 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31065 The file is still under LGPL (see modules/inttypes).
31067 2007-10-06 Bruno Haible <bruno@clisp.org>
31069 * modules/trunc (Dependencies): Add 'extensions'.
31070 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31071 Reported by Ben Pfaff <blp@gnu.org>.
31073 2007-10-06 Bruno Haible <bruno@clisp.org>
31075 * modules/freopen-tests: New file.
31076 * tests/test-freopen.c: New file.
31078 * modules/fopen-tests: New file.
31079 * tests/test-fopen.c: New file.
31081 * modules/fopen: New file.
31082 * lib/fopen.c: New file.
31083 * m4/fopen.m4: New file.
31084 * modules/freopen: New file.
31085 * lib/freopen.c: New file.
31086 * m4/freopen.m4: New file.
31087 * lib/stdio.in.h (fopen, freopen): New declarations.
31088 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31089 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31090 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31091 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31092 * doc/functions/fopen.texi: Mention the 'fopen' module.
31093 * doc/functions/freopen.texi: Mention the 'freopen' module.
31095 2007-10-06 Bruno Haible <bruno@clisp.org>
31097 * modules/open-tests: New file.
31098 * tests/test-open.c: New file.
31100 * modules/open: New file.
31101 * lib/open.c: New file.
31102 * m4/open.m4: New file.
31103 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31105 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31106 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31108 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31109 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31111 * doc/functions/open.texi: Mention the 'open' module.
31113 2007-10-04 Bruno Haible <bruno@clisp.org>
31115 * modules/ceill-tests: New file.
31116 * tests/test-ceill.c: New file.
31118 * modules/ceill: New file.
31119 * lib/ceill.c: Replace entire file.
31120 * m4/ceill.m4: New file.
31121 * lib/math.in.h (ceill): Replace declaration.
31122 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31123 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31124 * doc/functions/ceill.texi: Mention the 'ceill' module.
31125 * modules/mathl (Files): Remove lib/ceill.c.
31126 (Depends-on): Add ceill.
31128 2007-10-04 Bruno Haible <bruno@clisp.org>
31130 * modules/ceilf-tests: New file.
31131 * tests/test-ceilf.c: New file.
31133 * modules/ceilf: New file.
31134 * lib/ceil.c: New file.
31135 * lib/ceilf.c: New file.
31136 * m4/ceilf.m4: New file.
31137 * lib/math.in.h (ceilf): New declaration.
31138 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31140 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31142 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31144 2007-10-04 Bruno Haible <bruno@clisp.org>
31146 * modules/floorl-tests: New file.
31147 * tests/test-floorl.c: New file.
31149 * modules/floorl: New file.
31150 * lib/floorl.c: Replace entire file.
31151 * m4/floorl.m4: New file.
31152 * lib/math.in.h (floorl): Replace declaration.
31153 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31154 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31155 * doc/functions/floorl.texi: Mention the 'floorl' module.
31156 * modules/mathl (Files): Remove lib/floorl.c.
31157 (Depends-on): Add floorl.
31159 2007-10-04 Bruno Haible <bruno@clisp.org>
31161 * modules/floorf-tests: New file.
31162 * tests/test-floorf.c: New file.
31164 * modules/floorf: New file.
31165 * lib/floor.c: New file.
31166 * lib/floorf.c: New file.
31167 * m4/floorf.m4: New file.
31168 * lib/math.in.h (floorf): New declaration.
31169 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31171 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31173 * doc/functions/floorf.texi: Mention the 'floorf' module.
31175 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
31176 Bruno Haible <bruno@clisp.org>
31178 Advertise for the Git server instead of the CVS server.
31179 * doc/gnulib-intro.texi (Steady Development): Mention the Git
31180 repository instead of the CVS one.
31181 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31182 about all VCS systems generically.
31183 * doc/gnulib.texi (Introduction): Capitalize `Git'.
31185 2007-10-04 Bruno Haible <bruno@clisp.org>
31187 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31189 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31191 2007-10-04 Bruno Haible <bruno@clisp.org>
31193 * modules/truncl-tests: New file.
31194 * tests/test-truncl.c: New file.
31196 * modules/truncl: New file.
31197 * lib/truncl.c: New file.
31198 * m4/truncl.m4: New file.
31199 * lib/math.in.h (truncl): New declaration.
31200 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31202 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31204 * doc/functions/truncl.texi: Mention the 'truncl' module.
31206 2007-10-04 Bruno Haible <bruno@clisp.org>
31208 * modules/truncf-tests: New file.
31209 * tests/test-truncf.c: New file.
31211 * modules/truncf: New file.
31212 * lib/trunc.c: Make paramerizable through USE_* macros.
31213 * lib/truncf.c: New file.
31214 * m4/truncf.m4: New file.
31215 * lib/math.in.h (truncf): New declaration.
31216 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31218 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31220 * doc/functions/truncf.texi: Mention the 'truncf' module.
31222 2007-10-03 Bruno Haible <bruno@clisp.org>
31224 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31225 augmentation also for tests modules.
31226 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31227 * modules/atexit-tests (Makefile.am): Likewise.
31228 * modules/binary-io-tests (Makefile.am): Likewise.
31229 * modules/c-strcase-tests (Makefile.am): Likewise.
31230 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31231 * modules/canonicalize-tests (Makefile.am): Likewise.
31232 * modules/closein-tests (Makefile.am): Likewise.
31233 * modules/fprintf-posix-tests (Makefile.am): Likewise.
31234 * modules/freadahead-tests (Makefile.am): Likewise.
31235 * modules/fseek-tests (Makefile.am): Likewise.
31236 * modules/fseeko-tests (Makefile.am): Likewise.
31237 * modules/ftell-tests (Makefile.am): Likewise.
31238 * modules/ftello-tests (Makefile.am): Likewise.
31239 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31240 * modules/isnanl-tests (Makefile.am): Likewise.
31241 * modules/lseek-tests (Makefile.am): Likewise.
31242 * modules/mbscasecmp-tests (Makefile.am): Likewise.
31243 * modules/mbscasestr-tests (Makefile.am): Likewise.
31244 * modules/mbschr-tests (Makefile.am): Likewise.
31245 * modules/mbscspn-tests (Makefile.am): Likewise.
31246 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31247 * modules/mbspbrk-tests (Makefile.am): Likewise.
31248 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31249 * modules/mbsrchr-tests (Makefile.am): Likewise.
31250 * modules/mbsspn-tests (Makefile.am): Likewise.
31251 * modules/mbsstr-tests (Makefile.am): Likewise.
31252 * modules/printf-posix-tests (Makefile.am): Likewise.
31253 * modules/snprintf-posix-tests (Makefile.am): Likewise.
31254 * modules/sprintf-posix-tests (Makefile.am): Likewise.
31255 * modules/tsearch-tests (Makefile.am): Likewise.
31256 * modules/uniname/uniname-tests (Makefile.am): Likewise.
31257 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31258 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31259 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31260 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31261 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31262 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31263 * modules/vprintf-posix-tests (Makefile.am): Likewise.
31264 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31265 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31266 * modules/xstrtoimax-tests (Makefile.am): Likewise.
31267 * modules/xstrtol-tests (Makefile.am): Likewise.
31268 * modules/xstrtoumax-tests (Makefile.am): Likewise.
31269 * modules/yesno-tests (Makefile.am): Likewise.
31271 2007-10-03 Bruno Haible <bruno@clisp.org>
31273 * modules/trunc-tests: New file.
31274 * tests/test-trunc.c: New file.
31276 * modules/trunc: New file.
31277 * lib/trunc.c: New file.
31278 * m4/trunc.m4: New file.
31279 * lib/math.in.h (trunc): New declaration.
31280 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31282 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31284 * doc/functions/trunc.texi: Mention the 'trunc' module.
31286 2007-10-03 Bruno Haible <bruno@clisp.org>
31288 * tests/test-fpending.c: New file, mostly copied
31289 from coreutils/lib/t-fpending.c.
31290 * modules/fpending-tests: New file.
31292 2007-10-03 Bruno Haible <bruno@clisp.org>
31294 Port the stdio extensions to QNX (untested).
31295 * lib/fseterr.c (fseterr): Add support for QNX.
31296 * lib/fbufmode.c (fbufmode): Likewise.
31297 * lib/freadable.c (freadable): Likewise.
31298 * lib/fwritable.c (fwritable): Likewise.
31299 * lib/freading.c (freading): Likewise.
31300 * lib/fwriting.c (fwriting): Likewise.
31301 * lib/freadahead.c (freadahed): Likewise.
31302 * lib/fpurge.c (fpurge): Likewise.
31303 * lib/fseeko.c (rpl_fseeko): Likewise.
31305 2007-10-03 Bruno Haible <bruno@clisp.org>
31306 Jim Meyering <jim@meyering.net>
31307 Eric Blake <ebb9@byu.net>
31309 * doc/relocatable.texi: Use @command instead of @program.
31311 2007-10-02 Jim Meyering <jim@meyering.net>
31313 Perform one more "_.h" -> ".in.h" substitution.
31314 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31315 instead of unistd_.h here, too.
31317 2007-10-01 Bruno Haible <bruno@clisp.org>
31319 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31320 Needed for the alloca-opt module.
31322 2007-09-30 Bruno Haible <bruno@clisp.org>
31324 * lib/alloca.in.h: Renamed from lib/alloca_.h.
31325 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31327 * lib/argz.in.h: Renamed from lib/argz_.h.
31328 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31329 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31330 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31332 * lib/dirent.in.h: Renamed from lib/dirent_.h.
31333 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31335 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31336 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31338 * lib/float.in.h: Renamed from lib/float_.h.
31339 * modules/float (Files, Makefile.am): Use float.in.h instead of
31341 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31342 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31344 * lib/getopt.in.h: Renamed from lib/getopt_.h.
31345 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31347 * lib/glob.in.h: Renamed from lib/glob_.h.
31348 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31349 * lib/iconv.in.h: Renamed from lib/iconv_.h.
31350 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31352 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31353 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31355 * lib/locale.in.h: Renamed from lib/locale_.h.
31356 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31358 * lib/math.in.h: Renamed from lib/math_.h.
31359 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31360 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31361 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31362 of netinet_in_.h. Add dependency.
31363 * lib/poll.in.h: Renamed from lib/poll_.h.
31364 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31365 * lib/search.in.h: Renamed from lib/search_.h.
31366 * modules/search (Files, Makefile.am): Use search.in.h instead of
31368 * lib/signal.in.h: Renamed from lib/signal_.h.
31369 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31371 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31372 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31374 * lib/stdint.in.h: Renamed from lib/stdint_.h.
31375 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31377 * lib/stdio.in.h: Renamed from lib/stdio_.h.
31378 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31380 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31381 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31383 * lib/string.in.h: Renamed from lib/string_.h.
31384 * modules/string (Files, Makefile.am): Use string.in.h instead of
31386 * doc/gnulib-tool.texi (Initial import): Update.
31387 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31388 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31389 of sys_select_.h. Add dependency.
31390 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31391 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31393 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31394 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31396 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31397 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31399 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31400 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31402 * lib/time.in.h: Renamed from lib/time_.h.
31403 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31404 * lib/unistd.in.h: Renamed from lib/unistd_.h.
31405 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31407 * lib/wchar.in.h: Renamed from lib/wchar_.h.
31408 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31410 * lib/wctype.in.h: Renamed from lib/wctype_.h.
31411 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31413 * build-aux/bootstrap (slurp): Update.
31414 * lib/.cppi-disable: Update.
31416 2007-09-30 Bruno Haible <bruno@clisp.org>
31418 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31421 2007-09-30 Bruno Haible <bruno@clisp.org>
31423 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31425 2007-09-29 Bruno Haible <bruno@clisp.org>
31427 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31429 2007-09-29 Bruno Haible <bruno@clisp.org>
31431 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31432 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31433 * build-aux/install-reloc: Compile also areadlink.c.
31434 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31436 2007-09-29 Bruno Haible <bruno@clisp.org>
31438 * gnulib-tool (func_emit_initmacro_done): Indentation.
31440 2007-09-29 Bruno Haible <bruno@clisp.org>
31442 * README: Add CVS checkout update instructions.
31443 Info from Bob Proulx <bob@proulx.com>.
31445 2007-09-28 Eric Blake <ebb9@byu.net>
31447 Provide move-if-change.
31448 * build-aux/move-if-change: New file, based on best practice
31449 rather than any canonical upstream location.
31451 2007-09-28 Jim Meyering <jim@meyering.net>
31453 Fix canonicalize loop-detection corner case.
31454 Do not attempt to stat the symlink values stored via seen_triple.
31455 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31456 on linux-2.6.18, (but not 2.6.22).
31457 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31458 triple_compare. The former compares dev,ino,filename, while the latter
31459 would actually stat dirname(filename) when dev and ino were equal.
31460 * lib/hash-triple.c: Install <string.h>.
31462 (triple_compare_ino_str): New function.
31463 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31465 2007-09-28 Eric Blake <ebb9@byu.net>
31467 Enforce that AC_REPLACE_FUNCS files exist.
31468 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31469 override check for typos.
31471 Fix test-closein on Solaris 10.
31472 * tests/test-closein.c (main): Don't assume stdin can be inherited
31473 closed on all systems.
31474 * tests/test-closein.sh: Likewise.
31475 Reported by Piotr Tarnowski.
31477 2007-09-28 Jim Meyering <jim@meyering.net>
31479 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31481 2007-09-27 Jim Meyering <jim@meyering.net>
31483 canonicalize: Avoid a false-positive cycle failure.
31484 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31485 Sort. Remove cycle-check.
31486 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31488 (seen_triple): New function.
31489 (canonicalize_filename_mode): Use it instead of cycle-check.
31490 * tests/test-canonicalize.c: Add a test for this bug.
31491 * tests/test-canonicalize.sh: Set up and run the test.
31493 New module, file-set, from coreutils.
31494 * modules/file-set: Define it.
31495 * lib/file-set.c, lib/file-set.h: Implement.
31497 New module, hash-triple, from coreutils.
31498 * modules/hash-triple: Define it.
31499 * lib/hash-triple.c, lib/hash-triple.h: Implement.
31501 2007-09-25 Eric Blake <ebb9@byu.net>
31503 Fix strerror on Interix.
31504 * lib/string_.h (strerror): Declare replacement.
31505 * doc/functions/strerror.texi (strerror): Document the Interix
31507 * modules/string (Makefile.am): Support new hooks.
31508 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31509 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31510 gl_FUNC_STRERROR_SEPARATE.
31511 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31512 * lib/strerror.c (rpl_strerror): Provide replacement.
31513 * modules/strerror (Depends-on): Add string.
31514 (configure.ac): Detect use of module.
31515 * tests/test-strerror.c: New file.
31516 * modules/strerror-tests: New test module.
31517 * modules/argp (Depends-on): Add strerror.
31518 * modules/error (Depends-on): Likewise.
31519 Reported by Martin Koeppe.
31521 2007-09-24 Bruno Haible <bruno@clisp.org>
31523 * README: Update git instructions.
31525 2007-09-24 Eric Blake <ebb9@byu.net>
31527 Revert fpending breakage from 2007-09-08.
31528 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31531 2007-09-24 Jim Meyering <jim@meyering.net>
31533 filenamecat.c: Add a test.
31534 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31535 showing how the function works when DIR is the empty string.
31537 2007-09-21 Simon Josefsson <simon@josefsson.org>
31539 * tests/test-canonicalize.sh: Turn on executable bit.
31541 2007-09-19 Eric Blake <ebb9@byu.net>
31543 * README: Update CVS instructions.
31545 2007-09-18 Bruno Haible <bruno@clisp.org>
31547 * modules/areadlink: New file.
31548 * lib/areadlink.h (areadlink): New declaration.
31549 * lib/areadlink.c: New file, based on lib/xreadlink.c.
31551 2007-09-17 Jim Meyering <jim@meyering.net>
31553 * lib/savewd.c (ESTALE) [!defined]: Define.
31554 Reported to be required on Interix by Martin Koeppe.
31556 2007-09-17 Bruno Haible <bruno@clisp.org>
31558 * gnulib-tool (func_version): Use $version.
31560 2007-09-16 Bruno Haible <bruno@clisp.org>
31562 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31563 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31564 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31565 Reported by Greg Schafer <gschafer@zip.com.au>.
31567 2007-09-15 Bruno Haible <bruno@clisp.org>
31569 * gnulib-tool (sed): Try a little harder to make bash understand the
31571 Reported by Bruce Korb <bruce.korb@gmail.com>.
31573 2007-09-13 Eric Blake <ebb9@byu.net>
31575 * ChangeLog: Remove conflict markers.
31577 2007-09-13 Simon Josefsson <simon@josefsson.org>
31579 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31580 Reported by Bruno Haible <bruno@clisp.org>.
31582 2007-09-12 Bruno Haible <bruno@clisp.org>
31584 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31585 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31588 2007-09-12 Eric Blake <ebb9@byu.net>
31590 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31591 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31592 Autoconf definition.
31593 * modules/euidaccess (Depends-on): Add extensions, for
31594 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31595 * modules/fnmatch (Depends-on): Likewise.
31596 * modules/getaddrinfo (Depends-on): Likewise.
31597 * modules/getdelim (Depends-on): Likewise.
31598 * modules/getline (Depends-on): Likewise.
31599 * modules/getsubopt (Depends-on): Likewise.
31600 * modules/gettext (Depends-on): Likewise.
31601 * modules/group-member (Depends-on): Likewise.
31602 * modules/mbchar (Depends-on): Likewise.
31603 * modules/memmem (Depends-on): Likewise.
31604 * modules/mempcpy (Depends-on): Likewise.
31605 * modules/memrchr (Depends-on): Likewise.
31606 * modules/pagealign_alloc (Depends-on): Likewise.
31607 * modules/readutmp (Depends-on): Likewise.
31608 * modules/stpcpy (Depends-on): Likewise.
31609 * modules/stpncpy (Depends-on): Likewise.
31610 * modules/strchrnul (Depends-on): Likewise.
31611 * modules/strndup (Depends-on): Likewise.
31612 * modules/strsep (Depends-on): Likewise.
31613 * modules/strverscmp (Depends-on): Likewise.
31614 * modules/vasprintf (Depends-on): Likewise.
31615 * modules/wcwidth (Depends-on): Likewise.
31616 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31617 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31618 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31619 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31620 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31621 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31622 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31623 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31624 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31625 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31626 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31627 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31628 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31629 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31630 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31631 * m4/readutmp.m4 (gl_READUTMP): Likewise.
31632 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31633 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31634 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31635 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31636 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31637 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31638 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31639 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31640 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31641 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31642 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31643 so that lock.m4 can be used in gettext without extensions module.
31645 2007-09-11 Bruno Haible <bruno@clisp.org>
31647 * m4/isc-posix.m4: Remove file.
31648 Suggested by Eric Blake.
31650 2007-09-11 Eric Blake <ebb9@byu.net>
31652 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31654 2007-09-10 Bruno Haible <bruno@clisp.org>
31656 * posix-modules: Fix typo in error message.
31657 Reported by Matt <mkraai@beckman.com>.
31659 2007-09-09 Bruno Haible <bruno@clisp.org>
31661 * doc/functions/getdelim.texi: Update list of platforms lacking the
31663 * doc/functions/getline.texi: Likewise.
31665 2007-09-09 Jim Meyering <jim@meyering.net>
31667 * lib/hash.c (hash_initialize): Detect calloc failure.
31668 Reported by Bruno Haible.
31670 2007-09-09 Bruno Haible <bruno@clisp.org>
31672 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31673 malloc or realloc fails.
31675 2007-09-09 Bruno Haible <bruno@clisp.org>
31677 * modules/getcwd (Depends-on): Add malloc-posix.
31678 * modules/glob (Depends-on): Likewise.
31679 * modules/putenv (Depends-on): Likewise.
31680 * modules/strdup (Depends-on): Likewise.
31681 * modules/getdelim (Depends-on): Add realloc-posix.
31682 * modules/read-file (Depends-on): Likewise.
31684 2007-09-09 Bruno Haible <bruno@clisp.org>
31686 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31687 (gl_FUNC_MALLOC_POSIX): Require it.
31688 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31689 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31690 * modules/realloc (Files): Add m4/malloc.m4.
31691 * modules/calloc (Files): Likewise.
31693 2007-09-09 Bruno Haible <bruno@clisp.org>
31695 * modules/malloc-posix: New file.
31696 * modules/malloc (Depends-on): Add malloc-posix.
31697 * lib/malloc.c: Include errno.h.
31698 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31699 and a POSIX-compatible malloc into a single function. Set ENOMEM
31700 when returning NULL.
31701 * m4/malloc.m4: New file.
31702 * doc/functions/malloc.texi: Mention the malloc-posix module.
31703 * lib/stdlib_.h (malloc): New declaration.
31704 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31705 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31706 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31707 and HAVE_MALLOC_POSIX.
31709 2007-09-09 Bruno Haible <bruno@clisp.org>
31711 * modules/realloc-posix: New file.
31712 * modules/realloc (Depends-on): Add realloc-posix.
31713 * lib/realloc.c: Include errno.h.
31714 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31715 and a POSIX-compatible realloc into a single function. Set ENOMEM
31716 when returning NULL.
31717 * m4/realloc.m4: New file.
31718 * doc/functions/realloc.texi: Mention the realloc-posix module.
31719 * lib/stdlib_.h (realloc): New declaration.
31720 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31721 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31722 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31723 and HAVE_REALLOC_POSIX.
31725 2007-09-09 Bruno Haible <bruno@clisp.org>
31727 * modules/calloc-posix: New file.
31728 * modules/calloc (Depends-on): Add calloc-posix.
31729 * lib/calloc.c: Include errno.h.
31730 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31731 and a POSIX-compatible calloc into a single function. Set ENOMEM
31732 when returning NULL.
31733 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31734 * doc/functions/calloc.texi: Mention the calloc-posix module.
31735 * lib/stdlib_.h (calloc): New declaration.
31736 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31737 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31738 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31739 and HAVE_CALLOC_POSIX.
31741 2007-09-09 Bruno Haible <bruno@clisp.org>
31743 Allow for modules to show an arbitrary notice.
31744 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31745 * gnulib-tool: New option --extract-notice.
31746 (func_usage): Document it.
31747 (sed_extract_prog): Update.
31748 (func_get_notice): New function.
31749 (func_modules_notice): New function.
31750 (func_import, func_create_testdir): Invoke it.
31751 Suggested by Jim Meyering.
31753 2007-09-09 Bruno Haible <bruno@clisp.org>
31755 * gnulib-tool: New options --verbose, --quiet.
31756 (func_usage): Document them.
31757 (verbose): New variable.
31758 (func_execute_command): New function.
31759 (func_import): Don't show the module list and the file list if
31761 (func_create_testdir): Likewise. Use func_execute_command.
31762 (func_create_megatestdir): Use func_execute_command.
31764 2007-09-08 Bruno Haible <bruno@clisp.org>
31766 * gnulib-tool (func_import): Prefer rsync over wget when available,
31767 for fetching the PO files.
31769 2007-09-08 Bruno Haible <bruno@clisp.org>
31771 * posix-modules: New file. Portions copied from gnulib-tool.
31772 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31774 2007-09-08 Jim Meyering <jim@meyering.net>
31776 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31777 * lib/fpending.h: Rename from __fpending.h.
31778 * lib/fpending.c: Rename from __fpending.c.
31779 Include "fpending.h", not "__fpending.h".
31780 * lib/__fpending.h, lib/__fpending.c: Remove files.
31781 * modules/fpending (Files): Reflect new file names.
31782 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31784 2007-09-08 Bruno Haible <bruno@clisp.org>
31786 * m4/inttypes-h.m4: Remove stub file.
31788 2007-09-07 Simon Josefsson <simon@josefsson.org>
31790 * doc/headers/stdint.texi: Discuss #include_next issue.
31792 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
31794 * build-aux/bootstrap: Remove obsolete comment about wget --help.
31796 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31798 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31801 2007-09-03 Jim Meyering <jim@meyering.net>
31803 New module: git-version-gen.
31804 * modules/git-version-gen: New file.
31806 Import changes from coreutils for bootstrap script.
31808 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31810 bootstrap: uses rsync to download the .po files
31811 * build-aux/bootstrap (po_download_command_format): New global.
31812 (download_po_files): Use rsync.
31813 (update_po_files): Don't remove .po files after download,
31814 so future rsync runs can take advantage of the copies.
31816 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31818 Solve the unnecessary-.po-file-regeneration problem once and for all.
31819 * build-aux/bootstrap (download_po_files): New function, renamed from
31820 get_translations. Now, downloads, but doesn't update LINGUAS.
31821 (update_po_files): New function.
31823 bootstrap: Ignore more.
31824 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31825 uniwidth to e.g., lib/.gitignore.
31826 (slurp): Handle the sys_stat_.h -> sys mapping, too.
31828 * build-aux/bootstrap: New setting: vc_ignore.
31829 (insert_sorted_if_absent): Create $file if absent.
31830 Adapt to new, possibly empty, list: $vc_ignore.
31832 bootstrap: generate more ignorable names
31833 * build-aux/bootstrap (slurp): When generating ignorable names,
31834 also map .sin to .sed, .gperf to .c, and .y to .c.
31836 2007-09-03 Jim Meyering <jim@meyering.net>
31838 * build-aux/git-version-gen: New file, from coreutils. For details, see
31839 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31841 2007-09-02 Bruno Haible <bruno@clisp.org>
31843 Fix mis-recognition of 'mcs' on QNX 6.
31844 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31845 output contains the string "Mono".
31846 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31847 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31849 2007-09-01 Bruno Haible <bruno@clisp.org>
31851 Fix collision between uniwidth/* and linebreak modules.
31852 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31853 u32_width): Remove declarations.
31854 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31855 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31856 streq3, streq2, streq1, streq0): Remove functions.
31857 (STREQ): Remove macro.
31858 (is_cjk_encoding): Remove function.
31859 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31860 (uc_width, u8_width, u16_width, u32_width): Remove functions.
31861 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31862 * NEWS: Document the change.
31864 2007-09-01 Bruno Haible <bruno@clisp.org>
31866 * lib/streq.h: Add double-inclusion guard.
31868 2007-09-01 Karl Berry <karl@gnu.org>
31870 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31872 2007-08-28 Jim Meyering <jim@meyering.net>
31874 Rename mreadlink_with_size to areadlink_with_size.
31875 * NEWS: Document the change.
31876 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31877 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31878 * lib/mreadlink.h: Rename this to...
31879 * lib/areadlink.h: ...this.
31880 * modules/mreadlink-with-size: Rename this to...
31881 * modules/areadlink-with-size: ...this.
31882 * lib/canonicalize.c: Reflect the renaming.
31883 * modules/canonicalize: Likewise.
31885 2007-08-26 Bruno Haible <bruno@clisp.org>
31887 * gnulib-tool (func_import): When deciding which files to remove,
31888 consider also dangling symbolic links.
31889 Reported by Eric Blake.
31891 2007-08-26 Bruno Haible <bruno@clisp.org>
31893 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31895 2007-08-23 Simon Josefsson <simon@josefsson.org>
31897 * lib/readline.c: Don't include getline.h, the prototype is now
31900 2007-08-23 Jim Meyering <jim@meyering.net>
31903 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31904 around the funlockfile call, since funlockfile never sets errno.
31905 Don't set errno upon failed realloc.
31907 2007-08-22 Eric Blake <ebb9@byu.net>
31910 * lib/getdelim.c (getdelim): Revert regression that required *n to
31911 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
31912 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31913 getdelim, rather than whether implementation is missing.
31914 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31915 * lib/stdio_.h (getline): Also declare if replacement is
31917 * doc/functions/getdelim.texi: New file.
31918 * doc/functions/getline.texi: Likewise.
31919 * doc/gnulib.texi (Function Substitutes): Add new files.
31920 Reported by Bruno Haible.
31922 2007-08-22 Ludovic Courtès <ludo@gnu.org>
31924 * users.txt: Add Guile.
31926 2007-08-22 Eric Blake <ebb9@byu.net>
31928 * tests/test-getdelim.c (main): Use remove, not unlink.
31929 * tests/test-getline.c (main): Likewise.
31931 Move getline and getdelim into stdio.h, per POSIX 200x.
31932 * modules/getline (Files): Remove getline.h.
31933 (Depends-on): Add stdio.
31934 (configure.ac): Add module indicator.
31935 * modules/getdelim (Files): Remove getdelim.h.
31936 (Depends-on): Add stdio.
31937 (configure.ac): Add module indicator.
31938 * modules/stdio (Makefile.am): Work with new indicators.
31939 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31940 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31941 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31942 * lib/getdelim.h: Delete.
31943 * lib/getline.h: Delete.
31944 * lib/stdio_.h (getdelim, getline): Declare.
31945 * modules/getdelim-tests: New module.
31946 * modules/getline-tests: Likewise.
31947 * tests/test-getdelim.c: New file.
31948 * tests/test-getline.c: Likewise.
31949 * NEWS: Document the change.
31950 * lib/getline.c: Update choice of header.
31951 * lib/csharpcomp.c: Likewise.
31952 * lib/getpass.c: Likewise.
31953 * lib/javacomp.c: Likewise.
31954 * lib/javaversion.c: Likewise.
31955 * lib/yesno.c: Likewise.
31956 * lib/getdelim.c: Likewise.
31957 (getdelim): Set errno on failure, and avoid memory leak.
31959 2007-08-19 Bruno Haible <bruno@clisp.org>
31961 * modules/closein (Depends-on): Add freadahead.
31962 * lib/closein.c: Include freadahead.h.
31963 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31966 2007-08-19 Bruno Haible <bruno@clisp.org>
31968 * modules/freadahead-tests: New file.
31969 * tests/test-freadahead.sh: New file.
31970 * tests/test-freadahead.c: New file.
31972 * modules/freadahead: New file.
31973 * lib/freadahead.h: New file.
31974 * lib/freadahead.c: New file.
31975 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31976 fbufmode, fpurge, freadable, fwritable.
31978 2007-08-19 Eric Blake <ebb9@byu.net>
31980 Test yesno in combination with closein.
31981 * lib/yesno.c (yesno): Document use of stdin.
31982 * modules/yesno-tests (Files): New module.
31983 * tests/test-yesno.c (main): New file.
31984 * tests/test-yesno.sh: Likewise.
31986 2007-08-19 Bruno Haible <bruno@clisp.org>
31988 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31989 * lib/fseeko.c (rpl_fseeko): Likewise.
31990 * lib/fseterr.c (fseterr): Likewise.
31992 2007-08-19 Bruno Haible <bruno@clisp.org>
31994 * tests/test-lseek.c (main): Disable a test for BeOS.
31995 * doc/functions/lseek.texi: Document the BeOS bug.
31997 2007-08-19 Bruno Haible <bruno@clisp.org>
31998 Eric Blake <ebb9@byu.net>
32000 * lib/lseek.c: Include <sys/stat.h>.
32001 (rpl_lseek): Add workaround code also for Unix platforms.
32003 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32004 * doc/functions/lseek.texi: Document BeOS definiency.
32006 2007-08-18 Bruno Haible <bruno@clisp.org>
32008 * modules/fstrcmp-tests: New file.
32009 * tests/test-fstrcmp.c: New file.
32011 2007-08-18 Bruno Haible <bruno@clisp.org>
32013 * modules/fstrcmp: New file, from GNU gettext with modifications.
32014 * lib/fstrcmp.h: New file, from GNU gettext.
32015 * lib/fstrcmp.c: New file, from GNU gettext.
32016 * MODULES.html.sh (String handling): Add fstrcmp.
32018 2007-08-18 Bruno Haible <bruno@clisp.org>
32020 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32022 (diag, compareseq): Remove const from the ctxt argument.
32023 (USE_HEURISTIC): Undefine at the end.
32025 2007-08-18 Jim Meyering <jim@meyering.net>
32027 New file: lib/idcache.h
32028 * NEWS: Mention the addition.
32029 * modules/idcache (Files): Add lib/idcache.h
32030 * lib/idcache.c: Include "idcache.h".
32031 Don't include <sys/types.h>.
32032 Add a FIXME comment.
32033 Move file-scoped "static" declarations to the top.
32034 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
32036 2007-08-17 Bruno Haible <bruno@clisp.org>
32037 and Paul Eggert <eggert@cs.ucla.edu>
32039 * MODULES.html.sh: Add diffseq.
32040 * modules/diffseq: New file.
32041 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32042 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32044 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
32046 Import changes from coreutils for bootstrap script.
32048 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
32050 * build-aux/bootstrap (slurp): Work even in environments where
32051 "ls" defaults to "ls -A". Put in a FIXME, though, since the
32052 current code does not slurp files whose names start with ".", and
32053 this looks like it might be a troublesome area.
32055 2007-07-11 Jim Meyering <jim@meyering.net>
32057 If there's a GPL vN copyright comment, require that N == 3.
32059 2007-07-08 Jim Meyering <jim@meyering.net>
32061 Run the coreutils-specific code only if tests/Makefile.am.in exists.
32062 * build-aux/bootstrap (mam_template): Move definition out of loop.
32064 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32066 * build-aux/bootstrap (symlink_to_dir): Rename function from
32067 symlink_to_gnulib. Add a directory parameter. Update all
32069 (cp_mark_as_generated): Also check for -- and link to -- files in
32072 2007-07-08 Jim Meyering <jim@meyering.net>
32074 Adapt to deeper hierarchy in gnulib.
32075 * build-aux/bootstrap (symlink_to_dir): If the destination
32076 directory doesn't exist, create it. This is required at least for
32077 "lib/uniwidth/cjk.h".
32079 2007-05-15 Jim Meyering <jim@meyering.net>
32081 * build-aux/bootstrap: Now that generated Makefile.am files
32082 are no longer under version control, they must be created at
32085 2007-08-14 Ben Pfaff <blp@gnu.org>
32087 * lib/count-one-bits.h: Add comments. From Bruno Haible.
32089 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
32091 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32092 given the changes below.
32093 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
32094 even on hosts that have padding bits beyond the supported 64.
32096 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
32098 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32099 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32100 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
32102 (xstrtol_error): Remove.
32103 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32104 but with a different signature.
32105 (ATTRIBUTE_NORETURN, __attribute__): New macros.
32106 * lib/xstrtol-error.c: Include exitfail.h.
32107 (xstrtol_fatal): New function, with a different signature from the
32108 old xstrtol_error, so that the caller need not worry about passing
32109 in an exit status, or about storage management of the option argument.
32110 (xstrtol_error): Now a static function. Redo signature to
32111 implement xstrtol_fatal. Output the correct number of hyphens in
32112 front of the option so that the caller need not worry about
32113 storage management.
32115 (_): Remove; not used now.
32116 * modules/xstrtol: Depend on getopt.
32117 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32118 of old STRTOL_FATAL_ERROR macro.
32119 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32121 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32122 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32124 2007-08-08 Eric Blake <ebb9@byu.net>
32126 * lib/xstrtol-error.c: Add missing include.
32128 Move xstrtol messages into gnulib domain, when --pobase is used.
32129 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32130 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32131 * modules/xstrtol (Files): Distribute new file.
32132 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32133 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32134 * tests/test-xstrtol.c: ...into new file.
32135 * tests/test-xstrtoul.c: Also test xstrtoul.
32136 * tests/test-xstrtoimax.c: Also test xstrtoimax.
32137 * tests/test-xstrtoumax.c: Also test xstrtoumax.
32138 * tests/test-xstrtol.sh: Drive the tests.
32139 * tests/test-xstrtoimax.sh: Likewise.
32140 * tests/test-xstrtoumax.sh: Likewise.
32141 * modules/xstrtol-tests: New module.
32142 * modules/xstrtoimax-tests: Likewise.
32143 * modules/xstrtoumax-tests: Likewise.
32145 2007-08-08 Jim Meyering <jim@meyering.net>
32147 New function: mfile_name_concat.
32148 * lib/filenamecat.c (mfile_name_concat): New function, just like
32149 file_name_concat, but return NULL upon failure rather than exiting
32151 * lib/filenamecat.h: Declare it.
32153 2007-08-07 Bruno Haible <bruno@clisp.org>
32155 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32156 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32158 Reported by Eric Blake.
32160 2007-08-07 Simon Josefsson <simon@josefsson.org>
32162 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32163 * modules/crypto/arcfour (License): Likewise.
32164 * modules/crypto/des-tests (License): Likewise.
32165 * modules/crypto/gc-arctwo-tests (License): Likewise.
32166 * modules/crypto/gc-des-tests (License): Likewise.
32167 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32168 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32169 * modules/crypto/gc-md2-tests (License): Likewise.
32170 * modules/crypto/gc-md4-tests (License): Likewise.
32171 * modules/crypto/gc-md5-tests (License): Likewise.
32172 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32173 * modules/crypto/gc-rijndael-tests (License): Likewise.
32174 * modules/crypto/gc-sha1-tests (License): Likewise.
32175 * modules/crypto/gc-tests (License): Likewise.
32176 * modules/crypto/hmac-md5 (License): Likewise.
32177 * modules/crypto/hmac-sha1 (License): Likewise.
32178 * modules/crypto/md2-tests (License): Likewise.
32179 * modules/crypto/md4-tests (License): Likewise.
32180 * modules/crypto/md5 (License): Likewise.
32181 * modules/crypto/rijndael (License): Likewise.
32182 * modules/crypto/sha1 (License): Likewise.
32183 * modules/memxor (License): Likewise.
32185 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
32186 and Bruno Haible <bruno@clisp.org>
32188 * NEWS: Describe interface changes to human, xstrtol.
32189 * lib/human.h: Include <xstrtol.h>.
32190 (human_options): Return enum strtol_error, not int. Remove
32191 bool arg; take int * instead.
32192 * lib/human.c: Don't include "gettext.h".
32193 (_): Remove; no longer used.
32194 Don't include <xstrtol.h>, since human.h does it.
32195 (human_options): Adjust to abovementioned interface changes.
32196 Do not report error to stderr; that's now the caller's
32198 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32200 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32201 Str, Argument_type_string. All uses changed. Put " argument"
32202 in diagnostics to make them clearer. Change wording of suffix
32203 message for clarity.
32204 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32205 Argument_type_string.
32206 (STRTOL_FATAL_WARN): Remove; no longer used.
32207 * modules/human (Depends-on): Remove gettext-h.
32209 2007-08-06 Simon Josefsson <simon@josefsson.org>
32211 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32213 2007-07-31 Bruno Haible <bruno@clisp.org>
32215 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32216 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32217 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32219 2007-07-31 Bruno Haible <bruno@clisp.org>
32221 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32222 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32224 2007-07-30 Bruno Haible <bruno@clisp.org>
32226 * modules/base64 (License): Use the synonymous term "LGPLv2+".
32227 * modules/c-ctype (License): Likewise.
32228 * modules/c-strcase (License): Likewise.
32229 * modules/check-version (License): Likewise.
32230 * modules/iconv (License): Likewise.
32231 * modules/iconv_open (License): Likewise.
32232 * modules/read-file (License): Likewise.
32233 * modules/striconv (License): Likewise.
32234 * modules/strverscmp (License): Likewise.
32235 * modules/vasprintf (License): Likewise.
32236 * modules/crypto/des (License): Likewise.
32237 * modules/crypto/gc (License): Likewise.
32238 * modules/crypto/gc-arcfour (License): Likewise.
32239 * modules/crypto/gc-arctwo (License): Likewise.
32240 * modules/crypto/gc-des (License): Likewise.
32241 * modules/crypto/gc-hmac-md5 (License): Likewise.
32242 * modules/crypto/gc-hmac-sha1 (License): Likewise.
32243 * modules/crypto/gc-md2 (License): Likewise.
32244 * modules/crypto/gc-md4 (License): Likewise.
32245 * modules/crypto/gc-md5 (License): Likewise.
32246 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32247 * modules/crypto/gc-random (License): Likewise.
32248 * modules/crypto/gc-rijndael (License): Likewise.
32249 * modules/crypto/gc-sha1 (License): Likewise.
32250 * modules/crypto/md2 (License): Likewise.
32251 * modules/crypto/md4 (License): Likewise.
32253 2007-07-30 Jim Meyering <jim@meyering.net>
32255 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32256 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32257 it has valid stat data. This bug would cause du not to count the
32258 sizes of inaccessible directories.
32259 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32260 in <http://bugzilla.redhat.com/250077>.
32262 2007-07-25 Peter O'Gorman <peter@pogma.com>
32263 Bruno Haible <bruno@clisp.org>
32265 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32266 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32267 #include_next, gives a diagnostic about it, but reports no error in
32269 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32271 2007-07-24 Ben Pfaff <blp@gnu.org>
32273 Improve name: "count-one-bits" is better than "popcount".
32274 * MODULES.html.sh: Update name.
32275 * lib/popcount.h: Renamed lib/count-one-bits.h.
32276 (popcount): Renamed count_one_bits.
32277 (popcountl): Renamed count_one_bits_l.
32278 (popcountll): Renamed count_one_bits_ll.
32279 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32280 * modules/popcount: Renamed module/count-one-bits.
32281 * modules/popcount-tests: Renamed module/count-one-bits-tests.
32282 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32284 2007-07-23 Ben Pfaff <blp@gnu.org>
32286 * lib/popcount.h (popcount32): Reduce size of constants, to allow
32287 better code generation, and add U to large constants to avoid
32288 warnings, in non-GCC case.
32289 Suggested by Bruno Haible.
32291 2007-07-23 Ben Pfaff <blp@gnu.org>
32293 * lib/popcount.h: Use verify_true instead of if...abort.
32294 * modules/popcount: Depend on verify module.
32295 Suggested by Jim Meyering.
32297 2007-07-23 Bruno Haible <bruno@clisp.org>
32299 * gnulib-tool (func_import): Create a .cvsignore file also when the
32300 directory is not yet in CVS but the toplevel directory is. When
32301 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32302 Reported by Karl Berry.
32304 2007-07-22 Ben Pfaff <blp@gnu.org>
32306 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32308 Suggested by Eric Blake.
32310 2007-07-22 Ben Pfaff <blp@gnu.org>
32312 New module: popcount.
32313 * MODULES.html.sh: Add popcount.
32314 * modules/popcount: New file.
32315 * modules/popcount-tests: New file.
32316 * tests/test-popcount.c: New file.
32317 * lib/popcount.h: New file.
32318 * m4/popcount.m4: New file.
32320 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
32322 * build-aux/announce-gen: Update to GPLv3.
32324 * build-aux/config.guess: Update from config.
32326 2007-07-21 Bruno Haible <bruno@clisp.org>
32328 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32329 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32331 2007-07-20 Jim Meyering <jim@meyering.net>
32333 * check-module: Diagnose a self-dependency.
32335 2007-07-19 Bruno Haible <bruno@clisp.org>
32337 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32339 Reported by Eric Blake.
32341 2007-07-18 Bruno Haible <bruno@clisp.org>
32343 * gnulib-tool: New options --po-base, --po-domain.
32344 (func_usage): Document them.
32345 (pobase, po_domain): New variables.
32346 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32347 DEFAULT_TEXT_DOMAIN.
32348 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32349 (func_import): Consider pobase and po_domain. Create a po/ directory.
32350 (func_create_testdir): Set pobase and po_domain to empty.
32351 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32352 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32354 2007-07-18 Bruno Haible <bruno@clisp.org>
32356 * gnulib-tool (func_get_automake_snippet): Synthesize also an
32357 EXTRA_DIST augmentation for files in build-aux/.
32359 2007-07-16 Bruno Haible <bruno@clisp.org>
32361 * modules/lseek (License): Use the synonymous term "LGPLv2+".
32362 * modules/getdelim (License): Likewise.
32364 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32366 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32367 * modules/d-type (License): Likewise.
32368 * modules/extensions (License): Likewise.
32369 * modules/fnmatch (License): Likewise.
32370 * modules/fseeko (License): Likewise.
32371 * modules/getaddrinfo (License): Likewise.
32372 * modules/getline (License): Likewise.
32373 * modules/getlogin_r (License): Likewise.
32374 * modules/getpass (License): Likewise.
32375 * modules/gettimeofday (License): Likewise.
32376 * modules/glob (License): Likewise.
32377 * modules/inet_ntop (License): Likewise.
32378 * modules/malloc (License): Likewise.
32379 * modules/malloca (License): Likewise.
32380 * modules/memmem (License): Likewise.
32381 * modules/mempcpy (License): Likewise.
32382 * modules/memset (License): Likewise.
32383 * modules/minmax (License): Likewise.
32384 * modules/mktime (License): Likewise.
32385 * modules/netinet_in (License): Likewise.
32386 * modules/pathmax (License): Likewise.
32387 * modules/poll (License): Likewise.
32388 * modules/regex (License): Likewise.
32389 * modules/snprintf (License): Likewise.
32390 * modules/stdbool (License): Likewise.
32391 * modules/stdint (License): Likewise.
32392 * modules/stdio (License): Likewise.
32393 * modules/strcase (License): Likewise.
32394 * modules/strcasestr (License): Likewise.
32395 * modules/strdup (License): Likewise.
32396 * modules/string (License): Likewise.
32397 * modules/strndup (License): Likewise.
32398 * modules/strnlen (License): Likewise.
32399 * modules/strpbrk (License): Likewise.
32400 * modules/strptime (License): Likewise.
32401 * modules/strsep (License): Likewise.
32402 * modules/sys_select (License): Likewise.
32403 * modules/sys_socket (License): Likewise.
32404 * modules/sys_stat (License): Likewise.
32405 * modules/sys_time (License): Likewise.
32406 * modules/time (License): Likewise.
32407 * modules/time_r (License): Likewise.
32408 * modules/timegm (License): Likewise.
32409 * modules/unistd (License): Likewise.
32410 * modules/vsnprintf (License): Likewise.
32411 * modules/wctype (License): Likewise.
32413 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32415 * modules/argz (License): LGPLv2+.
32417 2007-07-15 Karl Berry <karl@gnu.org>
32419 * doc/gnulib.texi: revise node structure per new fdl.texi.
32421 2007-07-14 Bruno Haible <bruno@clisp.org>
32423 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32425 * lib/uniname/uninames.h: Regenerated.
32427 2007-07-14 Karl Berry <karl@gnu.org>
32429 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32430 omitting sectioning and index commands.
32432 2007-07-13 Bruno Haible <bruno@clisp.org>
32434 New gnulib-tool option --more-symlinks.
32435 * gnulib-tool (func_usage): Document --more-symlinks.
32436 (do_copyrights): New variable.
32437 Recognize option --more-symlinks.
32438 (func_import): Don't add a copyright notice transform to
32439 sed_transform_lib_file if do_copyrights is empty.
32441 2007-07-13 Bruno Haible <bruno@clisp.org>
32443 * lib/vasnprintf.c (decimal_point_char): Define also if
32444 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32445 && !NEED_PRINTF_DIRECTIVE_A.
32446 Reported by Clemens Koller <clemens.koller@anagramm.de> via
32447 Gary V. Vaughan <gary@gnu.org>.
32449 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
32451 * lib/inttypes_.h: Undo previous change, since it was fixed
32452 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32454 2007-07-13 Bruno Haible <bruno@clisp.org>
32456 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32457 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32459 2007-07-13 Jim Meyering <jim@meyering.net>
32461 df: Don't fail for Tru64's "file-on-file mount".
32462 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32463 so we fall through and use statfs instead. Details here:
32464 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32465 Reported by Albert Chin.
32467 2007-07-13 Bruno Haible <bruno@clisp.org>
32469 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32470 * modules/configmake (License): Likewise.
32471 * modules/gettext (License): Likewise.
32472 * modules/gettext-h (License): Likewise.
32473 * modules/include_next (License): Likewise.
32474 * modules/link-warning (License): Likewise.
32475 * modules/localcharset (License): Likewise.
32476 * modules/localename (License): Likewise.
32477 * modules/lock (License): Likewise.
32478 * modules/relocatable-lib-lgpl (License): Likewise.
32479 * modules/size_max (License): Likewise.
32480 * modules/vasnprintf (License): Likewise.
32481 * modules/wchar (License): Likewise.
32482 * modules/xsize (License): Likewise.
32484 2007-07-13 Bruno Haible <bruno@clisp.org>
32486 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32487 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32489 2007-07-12 Bruno Haible <bruno@clisp.org>
32491 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32492 in the modules files.
32494 2007-07-11 Karl Berry <karl@gnu.org>
32496 * MODULES.html.sh (func_module): use
32497 sed -e '\|^'"${includefile}"'$|d'
32498 instead of /.../d, to avoid errors on $includefile's containing /.
32500 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
32502 * gnulib-tool (func_import): Avoid duplication of --avoid
32504 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32505 names to `_' in variable names.
32507 2007-07-10 Eric Blake <ebb9@byu.net>
32509 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32510 * NEWS: Document this change.
32512 2007-07-08 Bruno Haible <bruno@clisp.org>
32514 Update to Unicode 5.0.
32515 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32516 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32517 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32518 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32519 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32520 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32521 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32522 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32523 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32524 U+10A3F, U+1D242..U+1D244.
32525 (nonspacing_table_ind): Update.
32526 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32527 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32529 2007-07-08 Bruno Haible <bruno@clisp.org>
32531 Update to Unicode 5.0.
32532 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32533 code transform. Extend the name index field of unicode_name_to_code and
32534 unicode_code_to_name from 16 to 24 bits.
32535 * lib/uniname/uniname.c (unicode_character_name,
32536 unicode_name_character): Add the range 0x12xxx to the code transform.
32537 * lib/uniname/uninames.h: Regenerated.
32538 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32540 2007-07-07 Bruno Haible <bruno@clisp.org>
32542 * modules/wcwidth-tests: New file.
32543 * tests/test-wcwidth.c: New file.
32545 Work around MacOS X wcwidth() bug.
32546 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32547 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32548 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32549 original wcwidth in non-UTF-8 locales.
32550 * modules/wcwidth (Depends-on): Add localcharset, streq,
32552 * doc/functions/wcwidth.texi: Update.
32554 2007-07-07 Bruno Haible <bruno@clisp.org>
32556 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32557 (wcwidth): New declaration.
32558 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32560 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32561 here. Prepare for creating <wchar.h> unconditionally.
32562 * modules/wchar (Depends-on): Add link-warning.
32563 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32564 REPLACE_WCWIDTH, and GL_LINK_WARNING.
32565 * lib/wcwidth.h: Remove file.
32566 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32567 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32568 * modules/wcwidth (Files): Remove lib/wcwidth.h.
32569 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32570 (Include): Replace wcwidth.h with <wchar.h>.
32571 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32572 * lib/mbchar.h: Don't include wcwidth.h.
32573 * lib/mbswidth.c: Likewise.
32574 * NEWS: Mention the change.
32576 2007-07-07 Bruno Haible <bruno@clisp.org>
32578 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32579 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32580 definition with an external declaration.
32581 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32582 defined as a function. Remove AC_C_INLINE requirement.
32583 * modules/wcwidth (Files): Add lib/wcwidth.c.
32584 (Makefile.am): Remove redundant statement.
32586 2007-07-07 Bruno Haible <bruno@clisp.org>
32588 * MODULES.html.sh (Unicode string functions): Add the new modules.
32590 * tests/uniwidth/test-u32-strwidth.c: New file.
32591 * modules/uniwidth/u32-strwidth-tests: New file.
32593 * lib/uniwidth/u32-strwidth.c: New file.
32594 * modules/uniwidth/u32-strwidth: New file.
32596 * tests/uniwidth/test-u16-strwidth.c: New file.
32597 * modules/uniwidth/u16-strwidth-tests: New file.
32599 * lib/uniwidth/u16-strwidth.c: New file.
32600 * modules/uniwidth/u16-strwidth: New file.
32602 * tests/uniwidth/test-u8-strwidth.c: New file.
32603 * modules/uniwidth/u8-strwidth-tests: New file.
32605 * lib/uniwidth/u8-strwidth.c: New file.
32606 * modules/uniwidth/u8-strwidth: New file.
32608 * tests/uniwidth/test-u32-width.c: New file.
32609 * modules/uniwidth/u32-width-tests: New file.
32611 * lib/uniwidth/u32-width.c: New file.
32612 * modules/uniwidth/u32-width: New file.
32614 * tests/uniwidth/test-u16-width.c: New file.
32615 * modules/uniwidth/u16-width-tests: New file.
32617 * lib/uniwidth/u16-width.c: New file.
32618 * modules/uniwidth/u16-width: New file.
32620 * tests/uniwidth/test-u8-width.c: New file.
32621 * modules/uniwidth/u8-width-tests: New file.
32623 * lib/uniwidth/u8-width.c: New file.
32624 * modules/uniwidth/u8-width: New file.
32626 * tests/uniwidth/test-uc_width.c: New file.
32627 * modules/uniwidth/width-tests: New file.
32629 * lib/uniwidth/width.c: New file, from GNU libiconv.
32630 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32631 * modules/uniwidth/width: New file.
32633 * lib/uniwidth.h: New file, from GNU libiconv.
32634 * modules/uniwidth/base: New file.
32636 2007-07-07 Bruno Haible <bruno@clisp.org>
32638 * lib/uniname.h: New file, from GNU gettext.
32639 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32640 * lib/uniname/uninames.h: New file, from GNU gettext.
32641 * lib/uniname/uniname.c: New file, from GNU gettext.
32642 * tests/uniname/test-uninames.sh: New file.
32643 * tests/uniname/test-uninames.c: New file, from GNU gettext.
32644 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32645 * modules/uniname/base: New file.
32646 * modules/uniname/uniname: New file.
32647 * modules/uniname/uniname-tests: New file.
32648 * MODULES.html.sh (Unicode string functions): Add the new modules.
32650 2007-07-06 Bruno Haible <bruno@clisp.org>
32652 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32654 2007-07-06 Bruno Haible <bruno@clisp.org>
32656 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32657 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32658 includes <cygwin/sys_time.h> which includes <sys/select.h> which
32659 include <sys/time.h>.
32660 Reported by Eric Blake.
32662 2007-07-06 Eric Blake <ebb9@byu.net>
32664 Fix testing canonicalize on cygwin.
32665 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32666 Revert patch from 2007-06-19.
32667 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32668 canonicalize module is also in use.
32669 * tests/test-canonicalize.c: New file.
32670 * tests/test-canonicalize.sh: Likewise.
32671 * modules/canonicalize-tests: Likewise.
32673 2007-07-06 Jim Meyering <jim@meyering.net>
32675 * lib/getugroups.c (getugroups): Detect getgrent failure.
32676 Adjust comment to reflect reality: this function may return -1.
32678 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
32680 * build-aux/bootstrap (TP_URL,get_translations): Update to use
32681 the new TP address.
32683 (gnulib_mk): New variable.
32685 2007-07-05 Jim Meyering <jim@meyering.net>
32687 Don't let endgrent clobber errno, no matter how improbable.
32688 * lib/getugroups.c (getugroups): Save and restore errno around
32691 Close the group DB even when failing with 2^31 or more members.
32692 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32694 2007-07-04 Jim Meyering <jim@meyering.net>
32696 * lib/getugroups.h: New file.
32697 * lib/getugroups.c: Include "getugroups.h".
32698 Remove uses of "register" keyword.
32699 Move local variable, "cp", down into scope where used.
32700 Give "username" parameter the "const" attribute.
32701 * modules/getugroups (Files): Add lib/getugroups.h
32703 2007-07-04 Karl Berry <karl@gnu.org>
32705 * MODULES.html.sh (func_all_modules): Complete rename of
32706 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32708 2007-07-02 Bruno Haible <bruno@clisp.org>
32710 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32711 mode, when inttypes.h comes from gnulib.
32712 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32714 2007-07-02 Simon Josefsson <simon@josefsson.org>
32716 * NEWS: Mention lgpl module name change.
32718 * modules/lgpl-2.1: Renamed from lgpl.
32720 * NEWS: Mention gpl module name change.
32722 * modules/gpl-3.0: New file, based on gpl-2.0.
32724 * modules/gpl-2.0: Renamed from gpl.
32726 * modules/gpl: Fix filename, doc/gpl.texi is now found at
32729 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
32731 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32732 #define __STDC_LIMIT_MACROS temporarily while including
32733 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32734 Problem reported by Joel E. Denny in
32735 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32737 2007-07-01 Bruno Haible <bruno@clisp.org>
32739 * lib/unistdio.h: New file.
32740 * lib/unistdio/u-asnprintf.h: New file.
32741 * lib/unistdio/u-asprintf.h: New file.
32742 * lib/unistdio/u-printf-args.c: New file.
32743 * lib/unistdio/u-printf-args.h: New file.
32744 * lib/unistdio/u-printf-parse.h: New file.
32745 * lib/unistdio/u-snprintf.h: New file.
32746 * lib/unistdio/u-sprintf.h: New file.
32747 * lib/unistdio/u-vasprintf.h: New file.
32748 * lib/unistdio/u-vsnprintf.h: New file.
32749 * lib/unistdio/u-vsprintf.h: New file.
32750 * lib/unistdio/ulc-asnprintf.c: New file.
32751 * lib/unistdio/ulc-asprintf.c: New file.
32752 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32753 * lib/unistdio/ulc-printf-parse.c: New file.
32754 * lib/unistdio/ulc-snprintf.c: New file.
32755 * lib/unistdio/ulc-sprintf.c: New file.
32756 * lib/unistdio/ulc-vasnprintf.c: New file.
32757 * lib/unistdio/ulc-vasprintf.c: New file.
32758 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32759 * lib/unistdio/ulc-vsnprintf.c: New file.
32760 * lib/unistdio/ulc-vsprintf.c: New file.
32761 * lib/unistdio/u8-asnprintf.c: New file.
32762 * lib/unistdio/u8-asprintf.c: New file.
32763 * lib/unistdio/u8-printf-parse.c: New file.
32764 * lib/unistdio/u8-snprintf.c: New file.
32765 * lib/unistdio/u8-sprintf.c: New file.
32766 * lib/unistdio/u8-vasnprintf.c: New file.
32767 * lib/unistdio/u8-vasprintf.c: New file.
32768 * lib/unistdio/u8-vsnprintf.c: New file.
32769 * lib/unistdio/u8-vsprintf.c: New file.
32770 * lib/unistdio/u8-u8-asnprintf.c: New file.
32771 * lib/unistdio/u8-u8-asprintf.c: New file.
32772 * lib/unistdio/u8-u8-snprintf.c: New file.
32773 * lib/unistdio/u8-u8-sprintf.c: New file.
32774 * lib/unistdio/u8-u8-vasnprintf.c: New file.
32775 * lib/unistdio/u8-u8-vasprintf.c: New file.
32776 * lib/unistdio/u8-u8-vsnprintf.c: New file.
32777 * lib/unistdio/u8-u8-vsprintf.c: New file.
32778 * lib/unistdio/u16-asnprintf.c: New file.
32779 * lib/unistdio/u16-asprintf.c: New file.
32780 * lib/unistdio/u16-printf-parse.c: New file.
32781 * lib/unistdio/u16-snprintf.c: New file.
32782 * lib/unistdio/u16-sprintf.c: New file.
32783 * lib/unistdio/u16-vasnprintf.c: New file.
32784 * lib/unistdio/u16-vasprintf.c: New file.
32785 * lib/unistdio/u16-vsnprintf.c: New file.
32786 * lib/unistdio/u16-vsprintf.c: New file.
32787 * lib/unistdio/u16-u16-asnprintf.c: New file.
32788 * lib/unistdio/u16-u16-asprintf.c: New file.
32789 * lib/unistdio/u16-u16-snprintf.c: New file.
32790 * lib/unistdio/u16-u16-sprintf.c: New file.
32791 * lib/unistdio/u16-u16-vasnprintf.c: New file.
32792 * lib/unistdio/u16-u16-vasprintf.c: New file.
32793 * lib/unistdio/u16-u16-vsnprintf.c: New file.
32794 * lib/unistdio/u16-u16-vsprintf.c: New file.
32795 * lib/unistdio/u32-asnprintf.c: New file.
32796 * lib/unistdio/u32-asprintf.c: New file.
32797 * lib/unistdio/u32-printf-parse.c: New file.
32798 * lib/unistdio/u32-snprintf.c: New file.
32799 * lib/unistdio/u32-sprintf.c: New file.
32800 * lib/unistdio/u32-vasnprintf.c: New file.
32801 * lib/unistdio/u32-vasprintf.c: New file.
32802 * lib/unistdio/u32-vsnprintf.c: New file.
32803 * lib/unistdio/u32-vsprintf.c: New file.
32804 * lib/unistdio/u32-u32-asnprintf.c: New file.
32805 * lib/unistdio/u32-u32-asprintf.c: New file.
32806 * lib/unistdio/u32-u32-snprintf.c: New file.
32807 * lib/unistdio/u32-u32-sprintf.c: New file.
32808 * lib/unistdio/u32-u32-vasnprintf.c: New file.
32809 * lib/unistdio/u32-u32-vasprintf.c: New file.
32810 * lib/unistdio/u32-u32-vsnprintf.c: New file.
32811 * lib/unistdio/u32-u32-vsprintf.c: New file.
32812 * tests/unistdio/test-ulc-asnprintf1.c: New file.
32813 * tests/unistdio/test-ulc-asnprintf1.h: New file.
32814 * tests/unistdio/test-ulc-printf1.h: New file.
32815 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32816 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32817 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32818 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32819 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32820 * tests/unistdio/test-ulc-vasprintf1.c: New file.
32821 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32822 * tests/unistdio/test-ulc-vsprintf1.c: New file.
32823 * tests/unistdio/test-u8-asnprintf1.c: New file.
32824 * tests/unistdio/test-u8-asnprintf1.h: New file.
32825 * tests/unistdio/test-u8-printf1.h: New file.
32826 * tests/unistdio/test-u8-vasnprintf1.c: New file.
32827 * tests/unistdio/test-u8-vasnprintf2.c: New file.
32828 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32829 * tests/unistdio/test-u8-vasnprintf3.c: New file.
32830 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32831 * tests/unistdio/test-u8-vasprintf1.c: New file.
32832 * tests/unistdio/test-u8-vsnprintf1.c: New file.
32833 * tests/unistdio/test-u8-vsprintf1.c: New file.
32834 * tests/unistdio/test-u16-asnprintf1.c: New file.
32835 * tests/unistdio/test-u16-asnprintf1.h: New file.
32836 * tests/unistdio/test-u16-printf1.h: New file.
32837 * tests/unistdio/test-u16-vasnprintf1.c: New file.
32838 * tests/unistdio/test-u16-vasnprintf2.c: New file.
32839 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32840 * tests/unistdio/test-u16-vasnprintf3.c: New file.
32841 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32842 * tests/unistdio/test-u16-vasprintf1.c: New file.
32843 * tests/unistdio/test-u16-vsnprintf1.c: New file.
32844 * tests/unistdio/test-u16-vsprintf1.c: New file.
32845 * tests/unistdio/test-u32-asnprintf1.c: New file.
32846 * tests/unistdio/test-u32-asnprintf1.h: New file.
32847 * tests/unistdio/test-u32-printf1.h: New file.
32848 * tests/unistdio/test-u32-vasnprintf1.c: New file.
32849 * tests/unistdio/test-u32-vasnprintf2.c: New file.
32850 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32851 * tests/unistdio/test-u32-vasnprintf3.c: New file.
32852 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32853 * tests/unistdio/test-u32-vasprintf1.c: New file.
32854 * tests/unistdio/test-u32-vsnprintf1.c: New file.
32855 * tests/unistdio/test-u32-vsprintf1.c: New file.
32856 * modules/unistdio/base: New file.
32857 * modules/unistdio/u-printf-args: New file.
32858 * modules/unistdio/ulc-asnprintf: New file.
32859 * modules/unistdio/ulc-asprintf: New file.
32860 * modules/unistdio/ulc-fprintf: New file.
32861 * modules/unistdio/ulc-printf-parse: New file.
32862 * modules/unistdio/ulc-snprintf: New file.
32863 * modules/unistdio/ulc-sprintf: New file.
32864 * modules/unistdio/ulc-vasnprintf: New file.
32865 * modules/unistdio/ulc-vasprintf: New file.
32866 * modules/unistdio/ulc-vfprintf: New file.
32867 * modules/unistdio/ulc-vsnprintf: New file.
32868 * modules/unistdio/ulc-vsprintf: New file.
32869 * modules/unistdio/u8-asnprintf: New file.
32870 * modules/unistdio/u8-asprintf: New file.
32871 * modules/unistdio/u8-printf-parse: New file.
32872 * modules/unistdio/u8-snprintf: New file.
32873 * modules/unistdio/u8-sprintf: New file.
32874 * modules/unistdio/u8-vasnprintf: New file.
32875 * modules/unistdio/u8-vasprintf: New file.
32876 * modules/unistdio/u8-vsnprintf: New file.
32877 * modules/unistdio/u8-vsprintf: New file.
32878 * modules/unistdio/u8-u8-asnprintf: New file.
32879 * modules/unistdio/u8-u8-asprintf: New file.
32880 * modules/unistdio/u8-u8-snprintf: New file.
32881 * modules/unistdio/u8-u8-sprintf: New file.
32882 * modules/unistdio/u8-u8-vasnprintf: New file.
32883 * modules/unistdio/u8-u8-vasprintf: New file.
32884 * modules/unistdio/u8-u8-vsnprintf: New file.
32885 * modules/unistdio/u8-u8-vsprintf: New file.
32886 * modules/unistdio/u16-asnprintf: New file.
32887 * modules/unistdio/u16-asprintf: New file.
32888 * modules/unistdio/u16-printf-parse: New file.
32889 * modules/unistdio/u16-snprintf: New file.
32890 * modules/unistdio/u16-sprintf: New file.
32891 * modules/unistdio/u16-vasnprintf: New file.
32892 * modules/unistdio/u16-vasprintf: New file.
32893 * modules/unistdio/u16-vsnprintf: New file.
32894 * modules/unistdio/u16-vsprintf: New file.
32895 * modules/unistdio/u16-u16-asnprintf: New file.
32896 * modules/unistdio/u16-u16-asprintf: New file.
32897 * modules/unistdio/u16-u16-snprintf: New file.
32898 * modules/unistdio/u16-u16-sprintf: New file.
32899 * modules/unistdio/u16-u16-vasnprintf: New file.
32900 * modules/unistdio/u16-u16-vasprintf: New file.
32901 * modules/unistdio/u16-u16-vsnprintf: New file.
32902 * modules/unistdio/u16-u16-vsprintf: New file.
32903 * modules/unistdio/u32-asnprintf: New file.
32904 * modules/unistdio/u32-asprintf: New file.
32905 * modules/unistdio/u32-printf-parse: New file.
32906 * modules/unistdio/u32-snprintf: New file.
32907 * modules/unistdio/u32-sprintf: New file.
32908 * modules/unistdio/u32-vasnprintf: New file.
32909 * modules/unistdio/u32-vasprintf: New file.
32910 * modules/unistdio/u32-vsnprintf: New file.
32911 * modules/unistdio/u32-vsprintf: New file.
32912 * modules/unistdio/u32-u32-asnprintf: New file.
32913 * modules/unistdio/u32-u32-asprintf: New file.
32914 * modules/unistdio/u32-u32-snprintf: New file.
32915 * modules/unistdio/u32-u32-sprintf: New file.
32916 * modules/unistdio/u32-u32-vasnprintf: New file.
32917 * modules/unistdio/u32-u32-vasprintf: New file.
32918 * modules/unistdio/u32-u32-vsnprintf: New file.
32919 * modules/unistdio/u32-u32-vsprintf: New file.
32920 * modules/unistdio/ulc-asnprintf-tests: New file.
32921 * modules/unistdio/ulc-vasnprintf-tests: New file.
32922 * modules/unistdio/ulc-vasprintf-tests: New file.
32923 * modules/unistdio/ulc-vsnprintf-tests: New file.
32924 * modules/unistdio/ulc-vsprintf-tests: New file.
32925 * modules/unistdio/u8-asnprintf-tests: New file.
32926 * modules/unistdio/u8-vasnprintf-tests: New file.
32927 * modules/unistdio/u8-vasprintf-tests: New file.
32928 * modules/unistdio/u8-vsnprintf-tests: New file.
32929 * modules/unistdio/u8-vsprintf-tests: New file.
32930 * modules/unistdio/u16-asnprintf-tests: New file.
32931 * modules/unistdio/u16-vasnprintf-tests: New file.
32932 * modules/unistdio/u16-vasprintf-tests: New file.
32933 * modules/unistdio/u16-vsnprintf-tests: New file.
32934 * modules/unistdio/u16-vsprintf-tests: New file.
32935 * modules/unistdio/u32-asnprintf-tests: New file.
32936 * modules/unistdio/u32-vasnprintf-tests: New file.
32937 * modules/unistdio/u32-vasprintf-tests: New file.
32938 * modules/unistdio/u32-vsnprintf-tests: New file.
32939 * modules/unistdio/u32-vsprintf-tests: New file.
32940 * MODULES.html.sh (Unicode string functions): Add the new modules.
32942 2007-07-01 Bruno Haible <bruno@clisp.org>
32944 * lib/sprintf.c (sprintf): Limit the available length estimation,
32945 to avoid address wraparound.
32946 * lib/vsprintf.c (vsprintf): Likewise.
32947 * modules/sprintf-posix (Dependencies): Add stdint.
32948 * modules/vsprintf-posix (Dependencies): Likewise.
32950 2007-07-01 Bruno Haible <bruno@clisp.org>
32952 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32953 Windows PATH as well. Conservative double-quoting. Comments.
32955 2007-07-01 Bruno Haible <bruno@clisp.org>
32956 Eric Blake <ebb9@byu.net>
32957 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32959 * gnulib-tool (self_abspathname): Fix algorithm to cope with
32960 empty components in $PATH, denoting '.'.
32962 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32964 * gnulib-tool: Fix indentation.
32965 (func_create_megatestdir): Likewise.
32966 Report by Bruno Haible.
32968 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32970 Sync from Automake.
32971 * build-aux/gnupload: Fix shell portability issues with for loops.
32972 Report by Karl Berry.
32974 2007-06-29 Simon Josefsson <simon@josefsson.org>
32976 * build-aux/maint.mk (POURL): Use translationproject.org.
32978 2007-06-27 Simon Josefsson <simon@josefsson.org>
32979 Bruno Haible <bruno@clisp.org>
32981 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32982 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32983 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32984 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32985 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32987 2007-06-27 Bruno Haible <bruno@clisp.org>
32989 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32990 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32992 2007-06-26 Karl Berry <karl@gnu.org>
32994 * MODULES.html.sh: remove xreadlink-with-size.
32996 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32998 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32999 method that I hope also handles the double-include problem noted
33001 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33003 2007-06-23 Bruno Haible <bruno@clisp.org>
33005 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33006 Don't let the 'mostlyclean' target fail if the last subdirectory could
33008 Reported by Karl Berry.
33010 2007-06-23 Bruno Haible <bruno@clisp.org>
33012 * gnulib-tool (echo): Add a speedier workaround for ksh.
33013 * tests/test-echo.sh: Likewise.
33015 2007-06-23 Bruno Haible <bruno@clisp.org>
33017 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33018 * tests/test-echo.sh: Likewise.
33020 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33022 * gnulib-tool (IFS): Initialize early, so we don't set it to
33024 (self_abspathname): Rewrite algorithm to set it, reindent.
33025 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33026 (func_create_megatestdir): Merge some sed scripts.
33028 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
33030 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33031 exposed by Sun Studio 11 cc on Solaris 8.
33033 2007-06-22 Bruno Haible <bruno@clisp.org>
33035 * gnulib-tool (echo): Ensure the echo primitive does not interpret
33037 * tests/test-echo.sh: New file.
33039 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33041 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33042 simplify `sed_replace_build_aux' scripts, they are portable but
33043 echoing them with `echo' is not.
33044 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33046 2007-06-21 Karl Berry <karl@gnu.org>
33048 * config/srclist.txt: guess we can't handle the licenses via
33049 srclist at the moment.
33051 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
33053 * MODULES.html.sh: Add include_next.
33054 * modules/include_next: New file.
33056 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
33058 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33060 (gl_CHECK_NEXT_HEADERS): New macro.
33061 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33062 the obsolescent gl_ABSOLUTE_HEADER.
33063 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33064 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33065 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33066 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33067 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33068 * m4/math_h.m4 (gl_MATH_H): Likewise.
33069 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33070 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33071 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33072 * m4/stdint.m4 (gl_STDINT_H): Likewise.
33073 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33074 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33075 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33076 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33077 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33078 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33079 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33080 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33081 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33082 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33083 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33084 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33085 * m4/inttypes.m4 (gl_INTTYPES_H): Define
33086 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33087 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33088 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33089 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33090 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33091 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33092 * lib/float_.h: Likewise.
33093 * lib/inttypes_.h: Likewise.
33094 * lib/math_.h: Likewise.
33095 * lib/search_.h: Likewise.
33096 * lib/signal_.h: Likewise.
33097 * lib/stdint_.h: Likewise.
33098 * lib/stdio_.h: Likewise.
33099 * lib/stdlib_.h: Likewise.
33100 * lib/string_.h: Likewise.
33101 * lib/sys_stat_.h: Likewise.
33102 * lib/sys_time_.h: Likewise.
33103 * lib/time_.h: Likewise.
33104 * lib/unistd_.h: Likewise.
33105 * lib/wchar_.h: Likewise.
33106 * lib/wctype_.h: Likewise.
33107 * lib/dirent_.h: Likewise.
33108 * lib/iconv_.h: Likewise.
33109 * lib/locale_.h: Likewise.
33110 * lib/netinet_in_.h: Likewise.
33111 * lib/sys_select_.h: Likewise.
33112 * lib/sys_socket_.h: Likewise.
33113 * lib/sysexits_.h: Likewise.
33114 * modules/fcntl (Depends-on): Depend on include_next, not
33116 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33117 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33118 * modules/fchdir: Likewise.
33119 * modules/float: Likewise.
33120 * modules/iconv_open: Likewise.
33121 * modules/inttypes: Likewise.
33122 * modules/locale: Likewise.
33123 * modules/math: Likewise.
33124 * modules/netinet_in: Likewise.
33125 * modules/search: Likewise.
33126 * modules/signal: Likewise.
33127 * modules/stdint: Likewise.
33128 * modules/stdio: Likewise.
33129 * modules/stdlib: Likewise.
33130 * modules/string: Likewise.
33131 * modules/sys_select: Likewise.
33132 * modules/sys_socket: Likewise.
33133 * modules/sys_stat: Likewise.
33134 * modules/sys_time: Likewise.
33135 * modules/sysexits: Likewise.
33136 * modules/time: Likewise.
33137 * modules/unistd: Likewise.
33138 * modules/wchar: Likewise.
33139 * modules/wctype: Likewise.
33140 * modules/sys_stat: Change maintainer to "all".
33141 * modules/unistd: Likewise.
33143 2007-06-20 Karl Berry <karl@gnu.org>
33145 * config/srclist.txt: track www changes in license files.
33147 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
33149 * build-aux/bootstrap: Remove stray dot.
33150 Make sure build_aux settings are honored when linking
33151 gnulib_extra_files.
33153 2007-06-19 Eric Blake <ebb9@byu.net>
33155 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33156 Allow compilation on cygwin.
33158 2007-06-19 Jim Meyering <jim@meyering.net>
33160 xreadlink-with-size: Remove module. No longer used.
33161 Ex-callers now use xreadlink or mreadlink-with-size.
33162 * modules/xreadlink-with-size: Remove module.
33163 * lib/xreadlink-with-size.c: Remove file.
33164 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33165 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
33166 just before the function definition *is* accurate.
33168 Eliminate one way canonicalize_filename_mode could exit.
33169 * lib/canonicalize.c (canonicalize_filename_mode):
33170 Use mreadlink_with_size, not xreadlink_with_size.
33172 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
33174 Detect porting problems to FreeBSD/arm, which has time_t wider than
33175 long int. Original problem reported for GNU diff by Xin Li in
33176 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33177 * modules/getdate (Depends-on): Add intprops, verify.
33178 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
33179 is an integer type no wider than long int.
33181 2007-06-18 Jim Meyering <jim@meyering.net>
33183 New module: mreadlink-with-size.
33184 * MODULES.html.sh: Add mreadlink-with-size.
33185 * modules/mreadlink-with-size: New module
33186 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33187 not xreadlink-with-size.
33188 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33190 2007-06-16 Bruno Haible <bruno@clisp.org>
33192 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33193 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33194 Reported by Gary V. Vaughan <gary@gnu.org>.
33196 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
33198 Revamp lchown so that it lives in unistd.h where it belongs.
33199 * lib/lchown.h: Remove.
33200 * lib/dirchownmod.c: Don't include lib/lchown.h.
33201 * lib/fchownat.c: Likewise.
33202 * lib/openat.c: Likewise.
33203 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33204 does not follow symlinks.
33205 (EOPNOTSUPP): Define if not defined.
33206 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33208 (lchown): New decl.
33209 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33210 Do not check for lchown decl.
33211 Set REPLACE_LCHOWN.
33212 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33214 * modules/chown: Make it clear it follows symlinks.
33215 * modules/lchown: Make it clear it doesn't follow symlinks.
33216 (Files): Remove lib/lchown.h
33217 (Depends-on): Add unistd.
33218 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33219 (Include): Include <unistd.h>, not "lchown.h".
33220 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33223 2007-06-15 Jim Meyering <jim@meyering.net>
33225 Change license (GPL to LGPL) of fsusage and dependents.
33226 * modules/fsusage (License): Change to LGPL.
33227 * modules/full-read (License): Likewise.
33228 * modules/full-write (License): Likewise.
33229 * modules/safe-read (License): Likewise.
33230 * modules/safe-write (License): Likewise.
33232 2007-06-14 Ben Pfaff <blp@gnu.org>
33234 Missing part of allocsa -> malloca transition.
33235 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33238 2007-06-12 Bruno Haible <bruno@clisp.org>
33240 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33241 to ia64, x86_64, i386.
33242 Reported by Eric Blake.
33244 2007-06-12 Bruno Haible <bruno@clisp.org>
33246 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33247 cross-compiling to x86_64.
33249 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
33251 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33252 glitch reported by Ralf Wildenhues in
33253 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33255 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33258 2007-06-11 Bruno Haible <bruno@clisp.org>
33260 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33261 replacement string.
33262 Reported by Eric Blake.
33264 2007-06-10 Bruno Haible <bruno@clisp.org>
33266 Prepare vasnprintf code for use with Unicode strings.
33267 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33268 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33270 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33271 a_u32_string variants.
33272 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33273 * lib/printf-args.c: Don't include config.h and the specification
33274 header if PRINTF_FETCHARGS is already defined.
33275 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33276 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33277 TYPE_U16_STRING, TYPE_U32_STRING.
33278 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33279 u16_directive, u16_directives, u32_directive, u32_directives): New
33281 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33283 * lib/printf-parse.c: Don't include config.h and the specification
33284 header if PRINTF_PARSE is already defined. Eliminate the set of
33285 parameters for WIDE_CHAR_VERSION; the user of this file must provide
33286 them now. Include c-ctype.h.
33287 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33288 directive and CHAR_T_ONLY_ASCII.
33289 * lib/vasnprintf.c: Don't include config.h and the specification header
33290 if VASNPRINTF is already defined.
33291 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33292 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33293 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33294 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33295 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33296 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33298 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33299 pad_ourselves also in this case, with the 'c' and 's' directives, and
33300 with a different notion of "width".
33301 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33303 2007-06-10 Bruno Haible <bruno@clisp.org>
33305 * modules/unistr/u32-mbsnlen: New file.
33306 * lib/unistr/u32-mbsnlen.c: New file.
33308 * modules/unistr/u16-mbsnlen: New file.
33309 * lib/unistr/u16-mbsnlen.c: New file.
33311 * modules/unistr/u8-mbsnlen: New file.
33312 * lib/unistr/u8-mbsnlen.c: New file.
33314 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33317 2007-06-10 Bruno Haible <bruno@clisp.org>
33319 * lib/string_.h (mbsnlen): New declaration.
33320 * lib/mbsnlen.c: New file.
33321 * m4/mbsnlen.m4: New file.
33322 * modules/mbsnlen: New file.
33323 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33324 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33325 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33327 2007-06-10 Bruno Haible <bruno@clisp.org>
33329 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33331 2007-06-10 Bruno Haible <bruno@clisp.org>
33333 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33334 * lib/mbuiter.h: Likewise.
33336 2007-06-10 Bruno Haible <bruno@clisp.org>
33338 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33341 2007-06-10 Karl Berry <karl@gnu.org>
33343 * config/srclist.txt: remove gettext entries, Bruno prefers
33344 to update individually.
33346 2007-06-10 Bruno Haible <bruno@clisp.org>
33348 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33349 'maxlen'. Ensure only length + width bytes are allocated, not
33350 length + 1 + width.
33352 2007-06-09 Bruno Haible <bruno@clisp.org>
33354 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33355 (CHAR_T): Remove macro.
33356 (VASNPRINTF): Update.
33358 2007-06-09 Bruno Haible <bruno@clisp.org>
33360 * MODULES.html.sh (Unicode string functions): Add the new modules.
33362 * modules/uniconv/u32-conv-to-enc: New file.
33363 * lib/uniconv/u32-conv-to-enc.c: New file.
33364 * modules/uniconv/u32-conv-to-enc-tests: New file.
33365 * tests/uniconv/test-u32-conv-to-enc.c: New file.
33367 * modules/uniconv/u16-conv-to-enc: New file.
33368 * lib/uniconv/u16-conv-to-enc.c: New file.
33369 * lib/uniconv/u-conv-to-enc.h: New file.
33370 * modules/uniconv/u16-conv-to-enc-tests: New file.
33371 * tests/uniconv/test-u16-conv-to-enc.c: New file.
33373 * modules/uniconv/u8-conv-to-enc: New file.
33374 * lib/uniconv/u8-conv-to-enc.c: New file.
33375 * modules/uniconv/u8-conv-to-enc-tests: New file.
33376 * tests/uniconv/test-u8-conv-to-enc.c: New file.
33378 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33379 u32_conv_to_encoding): New declarations.
33381 2007-06-09 Bruno Haible <bruno@clisp.org>
33383 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33385 2007-06-09 Bruno Haible <bruno@clisp.org>
33387 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33388 * modules/malloca: Renamed from modules/allocsa, updated.
33389 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33390 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33391 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33392 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33393 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33394 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33395 * modules/xmalloca: Renamed from modules/xallocsa, updated.
33396 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33397 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33398 * modules/c-strcasestr (Depends-on): Update.
33399 * lib/c-strcasestr.c: Update.
33400 * modules/c-strstr (Depends-on): Update.
33401 * lib/c-strstr.c: Update.
33402 * modules/canonicalize-lgpl (Depends-on): Update.
33403 * lib/canonicalize-lgpl.c: Update.
33404 * modules/clean-temp (Depends-on): Update.
33405 * lib/clean-temp.c: Update.
33406 * modules/csharpcomp (Depends-on): Update.
33407 * lib/csharpcomp.c: Update.
33408 * modules/csharpexec (Depends-on): Update.
33409 * lib/csharpexec.c: Update.
33410 * modules/javacomp (Depends-on): Update.
33411 * lib/javacomp.c: Update.
33412 * modules/javaexec (Depends-on): Update.
33413 * lib/javaexec.c: Update.
33414 * modules/mbscasestr (Depends-on): Update.
33415 * lib/mbscasestr.c: Update.
33416 * modules/mbsstr (Depends-on): Update.
33417 * lib/mbsstr.c: Update.
33418 * modules/setenv (Depends-on): Update.
33419 * lib/setenv.c: Update.
33420 * modules/strcasestr (Depends-on): Update.
33421 * lib/strcasestr.c: Update.
33422 * modules/striconveha (Depends-on): Update.
33423 * lib/striconveha.c: Update.
33424 * modules/relocatable-prog-wrapper (Files): Update.
33425 * lib/relocwrapper.c: Update.
33426 * build-aux/install-reloc: Update.
33427 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33429 2007-06-08 Bruno Haible <bruno@clisp.org>
33432 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33433 * lib/fpurge.c (fpurge): Likewise.
33434 * lib/freading.c (freading): Likewise.
33435 * lib/fseeko.c (rpl_fseeko): Likewise.
33436 * lib/fseterr.c (fseterr): Likewise.
33437 * lib/fwriting.c (fwriting): Likewise.
33438 * tests/test-fflush.c (main): Avoid a failure on uClibc.
33440 2007-06-08 Bruno Haible <bruno@clisp.org>
33442 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33443 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33444 * modules/gettext (Files): Add m4/intlmacosx.m4.
33446 2007-06-07 Bruno Haible <bruno@clisp.org>
33448 * modules/localename-tests: New file.
33449 * tests/test-localename.c: New file.
33451 New module 'localename'.
33452 * lib/localename.h: New file.
33453 * lib/localename.c: New file, from GNU gettext.
33454 * m4/localename.m4: New file.
33455 * modules/localename: New file.
33457 2007-06-07 Bruno Haible <bruno@clisp.org>
33459 Work around the lack of <wchar.h> on some builds of uClibc.
33460 * doc/headers/wchar.texi: Update.
33461 * lib/wchar_.h: Include <wchar.h> only if it exists.
33462 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33463 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33464 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33466 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33467 * modules/mbfile (Depends-on): Add wchar.
33468 * modules/mbiter (Depends-on): Likewise.
33469 * modules/mbuiter (Depends-on): Likewise.
33470 Reported by Simon Josefsson.
33472 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
33474 Work around problem reported by Steven M. Schweda in
33475 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33476 Tru64 5.1B with the Compaq compiler environment installed declares
33477 an 'isblank' function but does not define it in the C library.
33478 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33479 * lib/regex_internal.h (isblank): Likewise.
33480 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33481 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33483 2007-06-05 Bruno Haible <bruno@clisp.org>
33485 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33487 * modules/printf-safe: New file.
33488 * modules/fprintf-posix (Depends-on): Add printf-safe.
33489 * modules/printf-posix (Depends-on): Likewise.
33490 * modules/snprintf-posix (Depends-on): Likewise.
33491 * modules/sprintf-posix (Depends-on): Likewise.
33492 * modules/vasnprintf-posix (Depends-on): Likewise.
33493 * modules/vasprintf-posix (Depends-on): Likewise.
33494 * modules/vfprintf-posix (Depends-on): Likewise.
33495 * modules/vprintf-posix (Depends-on): Likewise.
33496 * modules/vsnprintf-posix (Depends-on): Likewise.
33497 * modules/vsprintf-posix (Depends-on): Likewise.
33498 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33499 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33500 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33501 "no" on i386, x86_64, ia64.
33502 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33503 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33504 on i386, x86_64, ia64.
33505 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33506 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33507 on i386, x86_64, ia64.
33508 * tests/test-vasnprintf-posix.c: Include float.h.
33509 (LDBL80_WORDS): New macro.
33510 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33511 on i386, x86_64, ia64.
33512 * tests/test-vasprintf-posix.c: Include float.h.
33513 (LDBL80_WORDS): New macro.
33514 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33515 on i386, x86_64, ia64.
33516 * tests/test-snprintf-posix.c: Include float.h.
33517 * tests/test-sprintf-posix.c: Likewise.
33518 * tests/test-vsnprintf-posix.c: Likewise.
33519 * tests/test-vsprintf-posix.c: Likewise.
33521 2007-06-05 Bruno Haible <bruno@clisp.org>
33523 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33524 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33525 non-IEEE numbers on i386, x86_64, ia64.
33526 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33527 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33528 * tests/test-isnanl.h: Include float.h.
33529 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33531 2007-06-05 Bruno Haible <bruno@clisp.org>
33533 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33534 also the %a / %A. Handle the %a / %A code before this extra handling.
33536 2007-06-05 Bruno Haible <bruno@clisp.org>
33538 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33539 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33541 2007-06-05 Bruno Haible <bruno@clisp.org>
33543 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33544 typo in variable name.
33546 2007-06-05 Eric Blake <ebb9@byu.net>
33548 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33549 Reported by Simon Josefsson.
33551 2007-06-04 Bruno Haible <bruno@clisp.org>
33553 Avoid test failures on some PowerPC platforms.
33554 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33555 Define differently for PowerPC.
33556 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33557 Reported by Gary V. Vaughan <gary@gnu.org>.
33559 2007-06-02 Bruno Haible <bruno@clisp.org>
33561 Fix test-stdint failure on FreeBSD/ia64.
33562 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33563 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33564 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33565 * doc/headers/stdint.texi: Update.
33567 2007-06-01 Bruno Haible <bruno@clisp.org>
33569 * tests/test-binary-io.c (main): Pass a third argument to open().
33570 Reported by Gary V. Vaughan <gary@gnu.org>.
33572 2007-06-01 Bruno Haible <bruno@clisp.org>
33574 * doc/functions/frexpl.texi: Update for mingw.
33576 2007-06-01 Bruno Haible <bruno@clisp.org>
33578 * tests/test-lseek.c (main): Disable test of errno for invalid third
33580 * doc/functions/lseek.texi: Update.
33581 Reported by Gary V. Vaughan <gary@gnu.org>.
33583 2007-05-28 Bruno Haible <bruno@clisp.org>
33585 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33587 2007-05-31 Eric Blake <ebb9@byu.net>
33589 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33592 2007-05-30 Eric Blake <ebb9@byu.net>
33593 and Bruno Haible <bruno@clisp.org>
33595 Work around mingw test failures exposed by m4-1.4.9b.
33596 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33597 * tests/test-unistd.c: Disable uid_t and git_t tests for the
33600 2007-05-30 Bruno Haible <bruno@clisp.org>
33602 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33603 assuming that they are closed. Needed on HP-UX 11.
33605 2007-05-29 Bruno Haible <bruno@clisp.org>
33607 Fix a problem with #include_next.
33608 * lib/dirent_.h: Split the double-inclusion guard.
33609 * lib/fcntl_.h: Likewise.
33610 * lib/float_.h: Likewise.
33611 * lib/iconv_.h: Likewise.
33612 * lib/inttypes_.h: Likewise.
33613 * lib/locale_.h: Likewise.
33614 * lib/math_.h: Likewise.
33615 * lib/netinet_in_.h: Likewise.
33616 * lib/search_.h: Likewise.
33617 * lib/signal_.h: Likewise.
33618 * lib/stdint_.h: Likewise.
33619 * lib/stdio_.h: Likewise.
33620 * lib/stdlib_.h: Likewise.
33621 * lib/string_.h: Likewise.
33622 * lib/sys_select_.h: Likewise.
33623 * lib/sys_socket_.h: Likewise.
33624 * lib/sys_stat_.h: Likewise.
33625 * lib/sys_time_.h: Likewise.
33626 * lib/sysexits_.h: Likewise.
33627 * lib/time_.h: Likewise.
33628 * lib/unistd_.h: Likewise.
33629 * lib/wchar_.h: Likewise.
33630 * lib/wctype_.h: Likewise.
33632 2007-05-29 Bruno Haible <bruno@clisp.org>
33634 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33637 2007-05-29 Bruno Haible <bruno@clisp.org>
33639 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33641 Reported by Eric Blake.
33643 2007-05-29 Bruno Haible <bruno@clisp.org>
33645 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33648 2007-05-29 Eric Blake <ebb9@byu.net>
33649 Bruno Haible <bruno@clisp.org>
33651 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33654 2007-05-28 Eric Blake <ebb9@byu.net>
33656 * modules/closein-tests (test_closein_LDADD): Support test on
33657 cygwin with libtool.
33659 2007-05-28 Bruno Haible <bruno@clisp.org>
33661 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33662 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33663 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33664 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33665 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33666 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33667 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33668 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33669 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33671 2007-05-28 Eric Blake <ebb9@byu.net>
33673 Unconditionally include <config.h> in unit tests.
33674 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33675 * tests/test-allocsa.c, tests/test-arcfour.c,
33676 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33677 tests/test-array_list.c, tests/test-array_oset.c,
33678 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33679 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33680 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33681 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33682 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33683 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33684 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33685 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33686 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33687 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33688 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33689 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33690 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33691 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33692 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33693 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33694 test-md5.c, test-memmem.c, test-printf-posix.c,
33695 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33696 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33697 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33698 test-strcasestr.c, test-striconv.c, test-striconveh.c,
33699 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33700 test-vasnprintf-posix2.c, test-vasnprintf.c,
33701 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33702 test-vfprintf-posix.c, test-vprintf-posix.c,
33703 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33704 test-xvasprintf.c: Likewise.
33706 2007-05-28 Bruno Haible <bruno@clisp.org>
33708 * gnulib-tool (func_import): Remember the --with-tests command-line
33709 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33710 Reported by Eric Blake.
33712 2007-05-28 Bruno Haible <bruno@clisp.org>
33714 * modules/ftell-tests: New file.
33715 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33716 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33718 * lib/ftell.c: New file.
33719 * modules/ftell: New file.
33720 * m4/ftell.m4: New file.
33721 * doc/functions/ftell.texi: Update.
33722 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33724 * lib/stdio_.h (rpl_ftell): New declaration.
33725 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33728 2007-05-28 Eric Blake <ebb9@byu.net>
33730 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33732 2007-05-28 Bruno Haible <bruno@clisp.org>
33734 * modules/fseek-tests: New file.
33735 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33736 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33738 * lib/fseek.c: New file.
33739 * modules/fseek: New file.
33740 * m4/fseek.m4: New file.
33741 * doc/functions/fseek.texi: Update.
33742 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33744 * lib/stdio_.h (rpl_fseek): New declaration.
33745 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33748 2007-05-28 Bruno Haible <bruno@clisp.org>
33750 * lib/stdio_.h (fflush): More comments.
33752 2007-05-28 Bruno Haible <bruno@clisp.org>
33754 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33757 2007-05-28 Eric Blake <ebb9@byu.net>
33759 Improve lseek module.
33760 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33761 * lib/unistd_.h (lseek): Scale back link warning message.
33762 * tests/test-lseek.c: Beef up test.
33763 * tests/test-lseek.sh: Exercise more facets of lseek.
33764 Reported by Bruno Haible.
33766 2007-05-28 Bruno Haible <bruno@clisp.org>
33768 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33771 2007-05-27 Bruno Haible <bruno@clisp.org>
33773 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33775 2007-05-27 Bruno Haible <bruno@clisp.org>
33777 * modules/openmp: New file.
33778 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33781 2007-05-26 Bruno Haible <bruno@clisp.org>
33783 * modules/chdir-long (Depends-on): Add fchdir.
33784 * modules/chdir-safer (Depends-on): Likewise.
33785 * modules/fts (Depends-on): Likewise.
33786 * modules/fts-lgpl (Depends-on): Likewise.
33787 * modules/openat (Depends-on): Likewise.
33788 * modules/savewd (Depends-on): Likewise.
33790 2007-05-24 Eric Blake <ebb9@byu.net>
33792 Fix lseek on mingw.
33793 * modules/lseek: New module.
33794 * m4/lseek.m4: New file.
33795 * lib/lseek.c: New file.
33796 * modules/lseek-tests: New file.
33797 * tests/test-lseek.c: New file.
33798 * tests/test-lseek.sh: New file.
33799 * MODULES.html.sh: Document lseek module.
33800 * modules/fflush (Depends-on): Add lseek, fseeko.
33801 * modules/fseeko (Depends-on): Likewise.
33802 * modules/ftello (Depends-on): Likewise.
33803 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33805 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33807 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33808 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33809 * lib/ftello.c (rpl_ftello): Likewise.
33810 * tests/test-fseeko.c (main): Test this.
33811 * tests/test-fseeko.sh: Likewise.
33812 * tests/test-ftello.c (main): Likewise.
33813 * tests/test-ftello.sh: Likewise.
33814 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33815 implies replacing fseek.
33816 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33818 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33819 * modules/unistd (Makefile.am): Likewise.
33820 * lib/unistd_.h (lseek): Declare a replacement.
33821 * doc/functions/lseek.texi (lseek): Document this fix.
33822 * doc/functions/fseek.texi (fseek): Likewise.
33823 * doc/functions/ftell.texi (ftell): Likewise.
33825 2007-05-24 Bruno Haible <bruno@clisp.org>
33827 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33828 in the printed representation of a NaN.
33829 * tests/test-vasprintf-posix.c (test_function): Likewise.
33830 * tests/test-snprintf-posix.h (test_function): Likewise.
33831 * tests/test-sprintf-posix.h (test_function): Likewise.
33832 Reported by Eric Blake.
33834 2007-05-23 Eric Blake <ebb9@byu.net>
33836 Fix fseeko/ftello on cygwin 1.5.24.
33837 * doc/functions/fseeko.texi (fseeko): Document the fix.
33838 * doc/functions/ftello.texi (ftello): Document the fix.
33839 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33840 * doc/functions/stdout.text (stdout): New file.
33841 * doc/functions/stderr.text (stderr): New file.
33842 * doc/gnulib.texi (Function Substitutes): Use new files.
33843 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33845 * tests/test-ftello.c (main): Likewise for ftello.
33846 * tests/test-fseeko.sh: New file.
33847 * tests/test-ftello.sh: New file.
33848 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33849 with seekable stdin.
33850 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33851 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33852 (gl_REPLACE_FSEEKO): New macro.
33853 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33854 * modules/fseeko (Files): Distribute fseeko.c.
33855 * modules/ftello (Files): Distribute ftello.c.
33856 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33858 * lib/ftello.c (rpl_ftello): New file.
33859 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33861 (gl_STDIN_LARGE_OFFSET): New macro.
33862 * modules/stdio (Makefile.am): Perform the replacement.
33863 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33865 2007-05-23 Bruno Haible <bruno@clisp.org>
33867 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33868 GNULIB_POSIXCHECK is defined.
33870 2007-05-21 Bruno Haible <bruno@clisp.org>
33872 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33873 Check also the output for NaN arguments. When cross-compiling, guess
33875 * lib/vasnprintf.c: Update comments.
33876 * tests/test-vasnprintf-posix.c (strisnan): New function.
33877 (test_function): Use it.
33878 * tests/test-vasprintf-posix.c (strisnan): New function.
33879 (test_function): Use it.
33880 * tests/test-snprintf-posix.h (strisnan): New function.
33881 (test_function): Use it.
33882 * tests/test-sprintf-posix.h (strisnan): New function.
33883 (test_function): Use it.
33884 Reported by Eric Blake.
33886 2007-05-20 Bruno Haible <bruno@clisp.org>
33888 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33889 numbers that fails on BeOS.
33890 * doc/functions/frexpl.texi: Update.
33892 2007-05-20 Jim Meyering <jim@meyering.net>
33894 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33895 forced upon us by glibc-2.6.
33897 2007-05-20 Bruno Haible <bruno@clisp.org>
33899 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33900 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33901 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33902 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33903 NEED_PRINTF_INFINITE.
33904 (is_infinitel): New function.
33905 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33906 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33907 gl_PREREQ_VASNPRINTF_INFINITE.
33908 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33909 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33910 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33911 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33912 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33913 gl_PREREQ_VASNPRINTF_INFINITE.
33914 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33915 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33916 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33917 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33918 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33919 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33920 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33921 * doc/functions/fprintf.texi: Update.
33922 * doc/functions/printf.texi: Update.
33923 * doc/functions/snprintf.texi: Update.
33924 * doc/functions/sprintf.texi: Update.
33925 * doc/functions/vfprintf.texi: Update.
33926 * doc/functions/vprintf.texi: Update.
33927 * doc/functions/vsnprintf.texi: Update.
33928 * doc/functions/vsprintf.texi: Update.
33930 2007-05-20 Bruno Haible <bruno@clisp.org>
33932 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33933 was not found in libc.
33934 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33936 2007-05-20 Bruno Haible <bruno@clisp.org>
33938 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33939 printed as "-nan" instead of "nan".
33940 * tests/test-vasprintf-posix.c (test_function): Likewise.
33941 * tests/test-snprintf-posix.h (test_function): Likewise.
33942 * tests/test-sprintf-posix.h (test_function): Likewise.
33943 Needed for HP-UX 11.
33945 2007-05-20 Jim Meyering <jim@meyering.net>
33947 Fix buggy test for the fchownat-deref bug.
33948 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33949 symlink required for the run-test. Without it, this test would
33950 always declare that fchownat doesn't work, and client code would
33951 unnecessarily use the replacement function with fixed libc.
33952 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33953 Reported by Greg Schafer.
33955 2007-05-19 Bruno Haible <bruno@clisp.org>
33957 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33958 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33959 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33960 Needed for IRIX 6.5 and Solaris 2.5.1.
33962 2007-05-19 Bruno Haible <bruno@clisp.org>
33964 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33965 (test_function): Skip tests involving -0.0 on platforms where
33967 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33968 (test_function): Skip tests involving -0.0 on platforms where
33970 * tests/test-snprintf-posix.h (have_minus_zero): New function.
33971 (test_function): Skip tests involving -0.0 on platforms where
33973 * tests/test-sprintf-posix.h (have_minus_zero): New function.
33974 (test_function): Skip tests involving -0.0 on platforms where
33976 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33978 * tests/test-printf-posix.h (test_function): Likewise.
33979 * tests/test-printf-posix.output: Remove all -0.0 related results.
33980 Needed for IRIX 6.5.
33982 2007-05-19 Bruno Haible <bruno@clisp.org>
33984 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33985 printed as "nan0x7fffffff" instead of "nan".
33986 * tests/test-vasprintf-posix.c (test_function): Likewise.
33987 * tests/test-snprintf-posix.h (test_function): Likewise.
33988 * tests/test-sprintf-posix.h (test_function): Likewise.
33989 * tests/test-fprintf-posix.h (NaN): Remove macro.
33990 (test_function): Remove all NaN related tests.
33991 * tests/test-printf-posix.h (NaN): Remove macro.
33992 (test_function): Remove all NaN related tests.
33993 * tests/test-printf-posix.output: Remove all NaN related results.
33994 Needed for IRIX 6.5.
33996 2007-05-19 Bruno Haible <bruno@clisp.org>
33998 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33999 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34001 2007-05-19 Bruno Haible <bruno@clisp.org>
34003 * lib/float_.h: New file.
34004 * m4/float_h.m4: New file.
34005 * modules/float: New file.
34006 * modules/isnanl (Dependencies): Add float.
34007 * modules/isnanl-nolibm (Dependencies): Likewise.
34008 * modules/mathl (Dependencies): Likewise.
34009 * modules/printf-frexpl (Dependencies): Likewise.
34010 * modules/signbit (Dependencies): Likewise.
34011 * modules/vasnprintf (Dependencies): Likewise.
34012 * doc/headers/float.texi: Update.
34014 2007-05-19 Jim Meyering <jim@meyering.net>
34016 * lib/utimens.c (gl_futimens): Rename from futimens,
34017 now that glibc-2.6 declares futimens.
34018 * lib/utimens.h: Likewise.
34020 2007-05-19 Bruno Haible <bruno@clisp.org>
34022 Avoid test failures on mingw.
34023 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34024 * tests/test-printf-posix.sh: Likewise.
34025 * tests/test-vfprintf-posix.sh: Likewise.
34026 * tests/test-vprintf-posix.sh: Likewise.
34028 2007-05-19 Bruno Haible <bruno@clisp.org>
34030 Fix *printf result for NaN, Inf, -0.0 on mingw.
34031 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34032 * lib/vasnprintf.c: Include math.h and isnan.h.
34033 (is_infinite_or_zero): New function.
34034 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34035 values in the %f, %F, %e, %E, %g, %G directives.
34036 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34037 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34038 gl_PRINTF_INFINITE and test its result. Invoke
34039 gl_PREREQ_VASNPRINTF_INFINITE.
34040 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34041 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34042 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34043 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34044 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34045 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34046 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34047 * doc/functions/fprintf.texi: Update.
34048 * doc/functions/printf.texi: Update.
34049 * doc/functions/snprintf.texi: Update.
34050 * doc/functions/sprintf.texi: Update.
34051 * doc/functions/vfprintf.texi: Update.
34052 * doc/functions/vprintf.texi: Update.
34053 * doc/functions/vsnprintf.texi: Update.
34054 * doc/functions/vsprintf.texi: Update.
34056 2007-05-19 Bruno Haible <bruno@clisp.org>
34058 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34059 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34060 Instead of multiplying with 10^k, set extra_zeroes to k.
34061 (scale10_round_long_double): Remove function.
34063 2007-05-18 Bruno Haible <bruno@clisp.org>
34065 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34066 introduced on 2007-05-06.
34068 2007-05-18 Bruno Haible <bruno@clisp.org>
34070 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34072 * tests/test-vasprintf-posix.c (test_function): Likewise.
34073 * tests/test-snprintf-posix.h (test_function): Likewise.
34074 * tests/test-sprintf-posix.h (test_function): Likewise.
34076 2007-05-18 Bruno Haible <bruno@clisp.org>
34078 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34079 (strmatch): New function.
34080 (test_function): Test the %f directive on numbers of various exponents.
34081 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34082 (strmatch): New function.
34083 (test_function): Test the %f directive on numbers of various exponents.
34084 * tests/test-snprintf-posix.h (strmatch): New function.
34085 (test_function): Test the %f directive on numbers of various exponents.
34086 * tests/test-sprintf-posix.h (strmatch): New function.
34087 (test_function): Test the %f directive on numbers of various exponents.
34088 * tests/test-snprintf-posix.c (SIZEOF): New macro.
34089 * tests/test-sprintf-posix.c (SIZEOF): New macro.
34090 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34091 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34093 2007-05-18 Bruno Haible <bruno@clisp.org>
34095 Add support for 'long double' number output.
34096 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34097 * lib/vasnprintf.c: Include math.h and float+.h.
34098 (mp_limb_t): New type.
34099 (GMP_LIMB_BITS): New macro.
34100 (mp_twolimb_t): New type.
34101 (GMP_TWOLIMB_BITS): New macro.
34103 (multiply, divide, convert_to_decimal, decode_long_double,
34104 scale10_round_long_double, scale10_round_decimal_long_double,
34105 floorlog10l): New functions.
34106 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34107 for the %f, %F, %e, %E, %g, %G directives.
34108 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34109 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34110 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34111 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34112 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34113 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34114 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34115 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34116 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34117 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34118 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34119 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34120 * modules/snprintf-posix (Depends-on): Likewise.
34121 * modules/sprintf-posix (Depends-on): Likewise.
34122 * modules/vasnprintf-posix (Depends-on): Likewise.
34123 * modules/vasprintf-posix (Depends-on): Likewise.
34124 * modules/vfprintf-posix (Depends-on): Likewise.
34125 * modules/vsnprintf-posix (Depends-on): Likewise.
34126 * modules/vsprintf-posix (Depends-on): Likewise.
34127 * modules/vasnprintf (Files): Add lib/float+.h.
34128 * doc/functions/fprintf.texi: Update.
34129 * doc/functions/printf.texi: Update.
34130 * doc/functions/snprintf.texi: Update.
34131 * doc/functions/sprintf.texi: Update.
34132 * doc/functions/vfprintf.texi: Update.
34133 * doc/functions/vprintf.texi: Update.
34134 * doc/functions/vsnprintf.texi: Update.
34135 * doc/functions/vsprintf.texi: Update.
34137 2007-05-18 Bruno Haible <bruno@clisp.org>
34139 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34141 2007-05-18 Bruno Haible <bruno@clisp.org>
34143 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34144 for printing 64-bit integers. Needed for mingw.
34146 2007-05-18 Bruno Haible <bruno@clisp.org>
34148 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34149 gl_FUNC_FREXPL_WORKS.
34150 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34152 2007-05-18 Bruno Haible <bruno@clisp.org>
34154 * modules/frexpl-nolibm-tests: New file.
34156 * modules/frexpl-nolibm: New file.
34157 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34159 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
34161 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34162 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
34163 GCC 4.2, which otherwise issues a lot of warnings.
34164 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34165 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34167 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34168 * modules/iconv_open (iconv.h): Likewise.
34169 * modules/locale (locale.h): Likewise.
34170 * modules/netinet_in (netinet/in.h): Likewise.
34171 * modules/sys_select (sys_select.h): Likewise.
34172 * modules/sys_socket (sys/socket.h): Likewise.
34173 * modules/sys_stat (sys/stat.h): Likewise.
34174 * modules/sysexits (sysexits.h): Likewise.
34175 * modules/unistd (unistd.h): Likewise.
34177 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34179 * modules/closein-tests (Makefile.am): Distribute
34182 2007-05-17 Bruno Haible <bruno@clisp.org>
34184 * tests/test-printf-posix.output: Renamed from
34185 tests/test-fprintf-posix.out.
34186 * modules/fprintf-posix-tests: Update.
34187 * modules/printf-posix-tests: Update.
34188 * modules/vfprintf-posix-tests: Update.
34189 * modules/vprintf-posix-tests: Update.
34190 * tests/test-fprintf-posix.sh: Update.
34191 * tests/test-printf-posix.sh: Update.
34192 * tests/test-vfprintf-posix.sh: Update.
34193 * tests/test-vprintf-posix.sh: Update.
34194 Reported by Ralf Wildenhues.
34196 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
34198 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34199 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
34200 GCC 4.2, which otherwise issues a lot of warnings.
34201 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34202 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34203 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34204 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34205 it should no longer be needed.
34206 * lib/string_.h: Likewise.
34207 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34208 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34209 * modules/inttypes (inttypes.h): Likewise.
34210 * modules/math (math.h): Likewise.
34211 * modules/search (search.h): Likewise.
34212 * modules/signal (signal.h): Likewise.
34213 * modules/stdint (stdint.h): Likewise.
34214 * modules/stdio (stdio.h): Likewise.
34215 * modules/stdlib (stdlib.h): Likewise.
34216 * modules/string (string.h): Likewise.
34217 * modules/sys_time (sys/time.h): Likewise.
34218 * modules/time (time.h): Likewise.
34219 * modules/wchar (wchar.h): Likewise.
34220 * modules/wctype (wtype.h): Likewise.
34222 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
34224 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34226 2007-05-13 Bruno Haible <bruno@clisp.org>
34228 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34229 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34230 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34231 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34232 (gl_PREREQ_STRTOK_R): Don't require it here.
34234 2007-05-13 Bruno Haible <bruno@clisp.org>
34236 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34237 when used in C++ mode.
34239 2007-05-12 Bruno Haible <bruno@clisp.org>
34241 * lib/linebuffer.h: Tweak doc.
34242 * lib/linebuffer.c: Likewise.
34244 2007-05-12 James Youngman <jay@gnu.org>
34246 * lib/linebuffer.c (readlinebuffer_delim): New function,
34247 like readlinebuffer, but use a caller-specified delimiter.
34248 (readlinebuffer): Just call readlinebuffer_delim with '\n'
34250 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34252 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
34254 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34255 * modules/openat (Files): Remove openat-die.c.
34256 (Depends-on): Add openat-die.
34257 * modules/openat-die: New module.
34259 2007-05-06 Bruno Haible <bruno@clisp.org>
34261 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34262 Update with info about Cygwin.
34263 * doc/functions/fprintf.texi: Update.
34264 * doc/functions/printf.texi: Update.
34265 * doc/functions/snprintf.texi: Update.
34266 * doc/functions/sprintf.texi: Update.
34267 * doc/functions/vfprintf.texi: Update.
34268 * doc/functions/vprintf.texi: Update.
34269 * doc/functions/vsnprintf.texi: Update.
34270 * doc/functions/vsprintf.texi: Update.
34271 Reported by Eric Blake.
34273 2007-05-06 Bruno Haible <bruno@clisp.org>
34275 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34276 padding ourselves for the floating-point directives.
34277 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34278 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34279 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34280 gl_PRINTF_FLAG_ZERO and test its result. Invoke
34281 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34282 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34283 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34284 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34285 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34286 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34287 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34288 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34289 * tests/test-snprintf-posix.h (test_function): Also check the width
34290 and some flags in the %f directive.
34291 * tests/test-sprintf-posix.h (test_function): Likewise.
34292 * tests/test-vasnprintf-posix.c (test_function): Likewise.
34293 * tests/test-vasprintf-posix.c (test_function): Likewise.
34294 * doc/functions/fprintf.texi: Update.
34295 * doc/functions/printf.texi: Update.
34296 * doc/functions/snprintf.texi: Update.
34297 * doc/functions/sprintf.texi: Update.
34298 * doc/functions/vfprintf.texi: Update.
34299 * doc/functions/vprintf.texi: Update.
34300 * doc/functions/vsnprintf.texi: Update.
34301 * doc/functions/vsprintf.texi: Update.
34303 2007-05-06 Bruno Haible <bruno@clisp.org>
34305 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34306 pass the ' flag character to sprintf or snprintf.
34307 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34308 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34309 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34310 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34311 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34312 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34313 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34314 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34315 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34316 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34317 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34318 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34319 * tests/test-snprintf-posix.h (test_function): Also check the grouping
34321 * tests/test-sprintf-posix.h (test_function): Likewise.
34322 * tests/test-vasnprintf-posix.c (test_function): Likewise.
34323 * tests/test-vasprintf-posix.c (test_function): Likewise.
34324 * doc/functions/fprintf.texi: Update.
34325 * doc/functions/printf.texi: Update.
34326 * doc/functions/snprintf.texi: Update.
34327 * doc/functions/sprintf.texi: Update.
34328 * doc/functions/vfprintf.texi: Update.
34329 * doc/functions/vprintf.texi: Update.
34330 * doc/functions/vsnprintf.texi: Update.
34331 * doc/functions/vsprintf.texi: Update.
34333 2007-05-01 Bruno Haible <bruno@clisp.org>
34335 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34337 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
34339 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34340 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
34342 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
34344 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34345 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
34346 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34348 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
34350 * lib/argp-help.c (struct hol_entry): New member `ord'.
34351 (HOL_ENTRY_PTRCMP): Use ord for comparison
34352 (hol_sort): Initialize ord.
34354 2007-05-01 Bruno Haible <bruno@clisp.org>
34356 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34357 Reported by Eric Blake.
34358 * doc/gnulib.texi (Function Substitutes): Update.
34360 2007-05-01 Bruno Haible <bruno@clisp.org>
34362 * doc/functions.texi: Remove file, now redundant through
34363 doc/functions/*.texi.
34365 2007-05-01 Bruno Haible <bruno@clisp.org>
34367 * modules/argp (Depends-on): Add sleep.
34369 2007-05-01 Bruno Haible <bruno@clisp.org>
34371 * modules/sleep-tests: New file.
34372 * tests/test-sleep.c: New file.
34374 * modules/sleep: New file.
34375 * lib/sleep.c: New file.
34376 * m4/sleep.m4: New file.
34377 * lib/unistd_.h (sleep): New declaration.
34378 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34380 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34381 * doc/functions/sleep.texi: Document the sleep module.
34383 2007-05-01 Bruno Haible <bruno@clisp.org>
34385 * lib/sigprocmask.h: Remove file.
34386 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34387 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34388 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34389 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34390 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34391 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34392 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34393 HAVE_SIGSET_T as a shell variable.
34394 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34395 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34396 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34397 (Depends-on): Add signal. Remove verify.
34398 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34399 (Include): Mention <signal.h> instead of sigprocmask.h.
34400 * NEWS: Mention the change.
34401 * lib/fatal-signal.c: Don't include sigprocmask.h.
34403 2007-05-01 Bruno Haible <bruno@clisp.org>
34405 * modules/signal: New file.
34406 * lib/signal_.h: New file.
34407 * m4/signal_h.m4: New file.
34409 2007-05-01 Bruno Haible <bruno@clisp.org>
34411 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34412 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34413 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34414 HAVE_WCTYPE_CTMP_BUG into wctype.h.
34416 2007-05-01 Bruno Haible <bruno@clisp.org>
34418 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34420 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34421 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34422 * modules/sys_stat (Makefile.am): Substitute their values into
34425 2007-05-01 Bruno Haible <bruno@clisp.org>
34427 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34428 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34429 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34431 2007-05-01 Bruno Haible <bruno@clisp.org>
34433 * doc/header/assert.texi: Undo last change: don't mention the gnulib
34434 'assert' module here.
34436 2007-05-01 Bruno Haible <bruno@clisp.org>
34438 * doc/functions/*.texi: New files.
34439 * doc/functions/google-ranking.txt: New file.
34440 * doc/gnulib.texi (Function Substitutes): New chapter.
34441 (ctime, inet_ntoa): Remove sections.
34442 * doc/ctime.texi: Remove file.
34443 * doc/inet_ntoa.texi: Remove file.
34444 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34446 (%.info): New rule, specifying a --reference-limit.
34448 2007-05-01 Bruno Haible <bruno@clisp.org>
34450 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34452 2007-05-01 Bruno Haible <bruno@clisp.org>
34454 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34455 the portability of 'mkdir' to mingw systems.
34457 2007-05-01 Bruno Haible <bruno@clisp.org>
34459 * doc/headers/google-ranking.txt: New file.
34461 2007-04-30 Eric Blake <ebb9@byu.net>
34463 Prefer fseeko to fseek.
34464 * modules/getpass (Depends-on): Add fseeko.
34465 * lib/getpass.c (getpass): Use fseeko, not fseek.
34467 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
34469 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34470 assumes the sorting is stable, while most qsort implementations
34471 are not. Use argument addresses to ensure they never compare as
34474 * tests/test-argp-2.sh (usage-indent test): Fix output
34475 (func_compare): Restore diff options
34476 * tests/test-argp.c: Restore #include "progname.h"
34478 2007-04-29 Bruno Haible <bruno@clisp.org>
34480 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34481 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34482 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34483 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34484 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34485 (configure.ac): Define CHECK_SNPRINTF_POSIX.
34486 (TESTS, check_PROGRAMS): Add test-snprintf.
34487 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34488 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34489 (TESTS, check_PROGRAMS): Add test-vsnprintf.
34490 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34491 assertions that fail on HP-UX, OSF/1, or IRIX.
34492 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34494 2007-04-29 Bruno Haible <bruno@clisp.org>
34496 * MODULES.html.sh (posix_functions): Remove 'contents'.
34498 2007-04-29 Karl Berry <karl@gnu.org>
34500 * config/srclist.txt (gendocs_template_min): new entry.
34502 2007-04-29 Bruno Haible <bruno@clisp.org>
34504 Work around fpurge bug on BSD systems.
34505 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34506 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34507 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34508 fpurge to rpl_fpurge if the system already has this function.
34509 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34510 the case where the system already has this function. Correct invariants
34512 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34515 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
34517 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
34518 proposed by Sven Verdoolaege.
34520 * tests/test-argp.c: Fix option ordering. Test deeply clustered
34522 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34523 (usage and help tests): Update
34525 2007-04-29 Bruno Haible <bruno@clisp.org>
34527 * tests/test-fflush.c (main): Use a file of size 17, not 10.
34528 Print more information in case of failure. Disable a test on BeOS.
34530 2007-04-29 Bruno Haible <bruno@clisp.org>
34532 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34533 This helps debugging on systems on which no gdb is available.
34535 2007-04-29 Bruno Haible <bruno@clisp.org>
34537 * lib/freading.h: Improve comments.
34538 * lib/fwriting.h: Likewise.
34539 * tests/test-freading.c (main): Don't check freading immediately after
34540 repositioning. Needed for glibc.
34542 2007-04-29 Bruno Haible <bruno@clisp.org>
34544 * lib/freading.c (freading): Trivial simplification.
34546 2007-04-28 Bruno Haible <bruno@clisp.org>
34548 * tests/test-fwriting.c (main): Also test the interaction between
34549 fflush and fwriting.
34550 * modules/fwriting-tests (Depends-on): Add fflush.
34552 * tests/test-freading.c (main): Also test the interaction between
34553 fflush and freading.
34554 * modules/freading-tests (Depends-on): Add fflush.
34556 2007-04-28 Bruno Haible <bruno@clisp.org>
34558 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34560 Suggested by Eric Blake.
34562 2007-04-28 Jim Meyering <jim@meyering.net>
34564 Avoid false-negative in gl_STDINT_H's C99 conformance test.
34565 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34566 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34568 2007-04-27 Eric Blake <ebb9@byu.net>
34570 * doc/headers/assert.texi (assert.h): Document assert module use.
34572 2007-04-27 Bruno Haible <bruno@clisp.org>
34574 * doc/headers/*.texi: New files.
34575 * doc/gnulib.texi (Header File Substitutes): New chapter.
34576 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34578 (standards.info ,standards.html, standards.dvi): Update dependencies.
34579 (mostlyclean, clean): New targets.
34581 2007-04-27 Bruno Haible <bruno@clisp.org>
34583 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34584 * modules/sysexits (Files, Makefile.am): Update.
34586 * lib/sys_socket_.h: Renamed from lib/socket_.h.
34587 * modules/sys_socket (Files, Makefile.am): Update.
34589 * lib/sys_stat_.h: Renamed from lib/stat_.h.
34590 * modules/sys_stat (Files, Makefile.am): Update.
34592 2007-04-27 Eric Blake <ebb9@byu.net>
34594 * lib/freading.h: Improve comments.
34595 * lib/fwriting.h: Likewise.
34596 * lib/fflush.c: Likewise.
34598 Fix closein for mingw.
34599 * modules/closein-tests: Add tests for closein.
34600 * tests/test-closein.c: New file.
34601 * tests/test-closein.sh: Likewise.
34602 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34603 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34605 2007-04-27 Bruno Haible <bruno@clisp.org>
34607 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34609 * lib/math_.h [__DECC]: Likewise.
34610 * lib/stdio_.h [__DECC]: Likewise.
34611 * lib/stdlib_.h [__DECC]: Likewise.
34612 * lib/string_.h [__DECC]: Likewise.
34613 * lib/time_.h [__DECC]: Likewise.
34614 * lib/wchar_.h [__DECC]: Likewise.
34615 * lib/wctype_.h [__DECC]: Likewise.
34617 2007-04-27 Bruno Haible <bruno@clisp.org>
34619 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34621 2007-04-27 Bruno Haible <bruno@clisp.org>
34623 * lib/fflush.c: Add comments.
34624 * modules/fpurge-tests (Depends-on): Add fflush.
34625 * modules/freadable-tests (Depends-on): Likewise.
34626 * modules/fwritable-tests (Depends-on): Likewise.
34628 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
34630 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34631 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
34632 Report by Bruno Haible <bruno@clisp.org>.
34634 2007-04-26 Eric Blake <ebb9@byu.net>
34636 Fix fflush on mingw.
34637 * modules/fflush (Depends-on): Add freading.
34638 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34641 2007-04-26 Eric Blake <ebb9@byu.net>
34642 and Bruno Haible <bruno@clisp.org>
34644 Implement freading and fwriting.
34645 * lib/freading.c: New file.
34646 * lib/freading.h: Likewise.
34647 * m4/freading.m4: Likewise.
34648 * modules/freading: Likewise.
34649 * modules/freading-tests: Likewise.
34650 * tests/test-freading.c: Likewise.
34651 * lib/fwriting.c: New file.
34652 * lib/fwriting.h: Likewise.
34653 * m4/fwriting.m4: Likewise.
34654 * modules/fwriting: Likewise.
34655 * modules/fwriting-tests: Likewise.
34656 * tests/test-fwriting.c: Likewise.
34657 * MODULES.html.sh (File stream based Input/Output): Mention them.
34659 2007-04-26 Bruno Haible <bruno@clisp.org>
34661 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34662 'long' when we assume it.
34663 Suggested by Eric Blake.
34665 2007-04-26 Bruno Haible <bruno@clisp.org>
34667 Ensure fseeko, ftello are declared on glibc systems.
34668 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34669 * modules/fseeko (configure.ac-early): Likewise.
34670 * modules/ftello (configure.ac-early): Likewise.
34671 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34672 AC_FUNC_FSEEKO for this.
34673 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34674 (gl_CHECK_FSEEKO): Remove macro.
34676 2007-04-26 Bruno Haible <bruno@clisp.org>
34678 * tests/test-fflush.c (main): Also check the ftell result after
34679 fflush and fseek/fseeko.
34680 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34681 file descriptor position cache in the stream.
34682 * lib/fseeko.c (rpl_fseeko): Likewise.
34684 2007-04-26 Bruno Haible <bruno@clisp.org>
34686 * modules/fflush-tests (Depends-on): Add fseeko.
34688 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
34689 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34691 * lib/argz_.h: ensure error_t definition is obtained in same
34692 mechanism system argz.h would have.
34693 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34694 argz facilities are known bad. Err on the side of caution if
34697 2007-04-25 Eric Blake <ebb9@byu.net>
34699 * lib/fpurge.c (includes): Use stdlib.h for free.
34700 * tests/test-fflush.c (main): Also test fflush-fseeko.
34702 2007-04-25 Bruno Haible <bruno@clisp.org>
34704 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34705 * lib/fseeko.c: New file.
34706 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34707 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34708 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34710 (gl_FUNC_FSEEKO): Invoke it.
34711 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34712 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34713 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34715 2007-04-25 Bruno Haible <bruno@clisp.org>
34717 * modules/fflush (Depends-on): Add ftello.
34719 2007-04-25 Bruno Haible <bruno@clisp.org>
34721 * modules/ftello-tests: New file.
34722 * tests/test-ftello.c: New file.
34724 * modules/ftello: New file.
34725 * m4/ftello.m4: New file.
34726 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34728 * lib/stdio_.h (ftello): New declaration.
34729 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34732 2007-04-25 Bruno Haible <bruno@clisp.org>
34734 * modules/fseeko-tests: New file.
34735 * tests/test-fseeko.c: New file.
34737 * modules/fseeko: New file.
34738 * m4/fseeko.m4: New file.
34739 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34741 * lib/stdio_.h (fseeko): New declaration.
34742 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34745 2007-04-25 Bruno Haible <bruno@clisp.org>
34747 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34749 2007-04-25 Bruno Haible <bruno@clisp.org>
34751 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34752 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34753 * tests/test-unistd.c: Likewise.
34754 * tests/test-fcntl.c: Likewise.
34756 2007-04-23 Eric Blake <ebb9@byu.net>
34758 * lib/fflush.c: Fix missing include.
34759 Reported by Bruno Haible.
34761 2007-04-23 Bruno Haible <bruno@clisp.org>
34763 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34764 Reported by Eric Blake.
34766 2007-04-23 Bruno Haible <bruno@clisp.org>
34768 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34770 2007-04-23 Bruno Haible <bruno@clisp.org>
34772 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34774 2007-04-23 Bruno Haible <bruno@clisp.org>
34776 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34777 Needed on HP-UX 11.
34779 2007-04-16 Eric Blake <ebb9@byu.net>
34781 Make fflush rely on fpurge.
34782 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34783 open coding all variants.
34784 * modules/fflush (Depends-on): Add fpurge and unistd.
34785 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34786 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34788 Fix --with-tests compilation on cygwin.
34789 * modules/argmatch-tests (Makefile.am): List gnulib library first
34791 * modules/argp-tests (Makefile.am): Likewise.
34792 * modules/array-list-tests (Makefile.am): Likewise.
34793 * modules/array-oset-tests (Makefile.am): Likewise.
34794 * modules/avltree-list-tests (Makefile.am): Likewise.
34795 * modules/avltree-oset-tests (Makefile.am): Likewise.
34796 * modules/avltreehash-list-tests (Makefile.am): Likewise.
34797 * modules/carray-list-tests (Makefile.am): Likewise.
34798 * modules/dirname-tests (Makefile.am): Likewise.
34799 * modules/frexp-tests (Makefile.am): Likewise.
34800 * modules/isnanl-tests (Makefile.am): Likewise.
34801 * modules/linked-list-tests (Makefile.am): Likewise.
34802 * modules/linkedhash-list-tests (Makefile.am): Likewise.
34803 * modules/lock-tests (Makefile.am): Likewise.
34804 * modules/rbtree-list-tests (Makefile.am): Likewise.
34805 * modules/rbtree-oset-tests (Makefile.am): Likewise.
34806 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34807 * modules/tls-tests (Makefile.am): Likewise.
34808 * modules/tsearch-tests (Makefile.am): Likewise.
34809 * modules/xvasprintf-tests (Makefile.am): Likewise.
34811 Fix fpurge for cygwin.
34812 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34814 * modules/fpurge-tests (Depends-on): Clean up trash.
34816 2007-04-16 Simon Josefsson <simon@josefsson.org>
34818 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34820 * m4/autobuild.m4: Re-indent.
34822 2007-04-13 Bruno Haible <bruno@clisp.org>
34824 * modules/fpurge-tests: New file.
34825 * tests/test-fpurge.c: New file.
34827 * modules/fpurge: New file.
34828 * lib/fpurge.h: New file.
34829 * lib/fpurge.c: New file.
34830 * m4/fpurge.m4: New file.
34832 2007-04-13 Bruno Haible <bruno@clisp.org>
34834 * modules/fbufmode-tests: New file.
34835 * tests/test-fbufmode.c: New file.
34837 * modules/fbufmode: New file.
34838 * lib/fbufmode.h: New file.
34839 * lib/fbufmode.c: New file.
34840 * m4/fbufmode.m4: New file.
34842 2007-04-13 Bruno Haible <bruno@clisp.org>
34844 * modules/fwritable-tests: New file.
34845 * tests/test-fwritable.c: New file.
34847 * modules/fwritable: New file.
34848 * lib/fwritable.h: New file.
34849 * lib/fwritable.c: New file.
34850 * m4/fwritable.m4: New file.
34852 2007-04-13 Bruno Haible <bruno@clisp.org>
34854 * modules/freadable-tests: New file.
34855 * tests/test-freadable.c: New file.
34857 * modules/freadable: New file.
34858 * lib/freadable.h: New file.
34859 * lib/freadable.c: New file.
34860 * m4/freadable.m4: New file.
34862 2007-04-13 Bruno Haible <bruno@clisp.org>
34864 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34867 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
34869 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34870 gzip bootstrap.conf to avoid dragging in i18n machinery.
34871 (gnulib_tool_option): Use it.
34873 2007-04-13 Bruno Haible <bruno@clisp.org>
34875 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34877 * tests/test-vasprintf-posix.c (test_function): Likewise.
34878 * tests/test-snprintf-posix.h (test_function): Likewise.
34879 * tests/test-sprintf-posix.h (test_function): Likewise.
34880 * tests/test-fprintf-posix.h (test_function): Likewise.
34881 * tests/test-printf-posix.h (test_function): Likewise.
34882 * tests/test-fprintf-posix.out: Likewise.
34884 2007-04-13 Bruno Haible <bruno@clisp.org>
34886 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34887 * modules/tls-tests (configure.ac): Likewise.
34888 Reported by Arto C. Nirkko <anirkko@insel.ch>.
34890 2007-04-13 Bruno Haible <bruno@clisp.org>
34892 * lib/tls.c (glthread_tls_get): Fix return type.
34893 Patch by Arto C. Nirkko <anirkko@insel.ch>.
34895 2007-04-12 Eric Blake <ebb9@byu.net>
34897 * modules/gettime (Depends-on): Remove gettime.
34898 Reported by Dmitry V. Levin.
34900 2007-04-12 Bruno Haible <bruno@clisp.org>
34902 * modules/fflush (Include): Mention <stdio.h>.
34903 * modules/strtoimax (Include): Mention <inttypes.h>.
34904 * modules/strtoumax (Include): Likewise.
34906 2007-04-12 Eric Blake <ebb9@byu.net>
34908 * .cvsignore: New file.
34909 * .gitignore: Likewise.
34911 2007-04-12 Bruno Haible <bruno@clisp.org>
34913 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34914 not before, since $(LDADD) often contains libgnu.a.
34915 * modules/striconv-tests (test_striconv_LDADD): Likewise.
34916 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34917 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34920 2007-04-12 Eric Blake <ebb9@byu.net>
34922 Work around glibc's failure to flush stdin on fclose.
34923 * lib/closein.c (close_stdin): Flush stdin before closing.
34925 Work around glibc's failure to reset seekable stdin on exit.
34926 * modules/closein: New module.
34927 * lib/closein.c: New file.
34928 * lib/closein.h: Likewise.
34929 * m4/closein.m4: Likewise.
34930 * MODULES.html.sh (File stream based Input/Output): Document it.
34932 2007-04-12 Simon Josefsson <simon@josefsson.org>
34934 * gnulib-tool: Rename generated 'autobuild' script to
34935 'do-autobuild' in --create-megatestdir output.
34937 * doc/gnulib.texi (Build robot for gnulib): Fix.
34939 2007-04-12 Simon Josefsson <simon@josefsson.org>
34941 * modules/sysexits (Depends-on): Add absolute-header.
34943 2007-04-12 Eric Blake <ebb9@byu.net>
34945 No need to preserve errno on success.
34946 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34947 Reported by Bruno Haible.
34949 2007-04-12 Simon Josefsson <simon@josefsson.org>
34951 * MODULES.html.sh (Support for maintaining and releasing
34952 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
34954 2007-04-12 Simon Josefsson <simon@josefsson.org>
34956 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34958 2007-04-12 Simon Josefsson <simon@josefsson.org>
34960 * modules/autobuild: New module.
34962 * m4/autobuild.m4: New file.
34964 2007-04-11 Bruno Haible <bruno@clisp.org>
34966 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34967 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34968 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34969 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34970 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34977 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34978 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34979 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34980 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34981 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34982 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34983 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34984 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34985 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34986 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34987 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34988 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34989 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34990 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34991 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34992 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34993 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34994 Reported by Eric Blake.
34996 2007-04-11 Bruno Haible <bruno@clisp.org>
34998 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35000 2007-04-10 Bruno Haible <bruno@clisp.org>
35002 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35003 for NaN and Infinity. Needed on FreeBSD 6.1.
35004 * tests/test-vasnprintf-posix.c (test_function): Undo last change
35005 regarding results for "%010a" of Infinity and NaN.
35006 * tests/test-vasprintf-posix.c (test_function): Likewise.
35007 * tests/test-snprintf-posix.h (test_function): Likewise.
35008 * tests/test-sprintf-posix.h (test_function): Likewise.
35009 * tests/test-fprintf-posix.h (test_function): Likewise.
35010 * tests/test-printf-posix.h (test_function): Likewise.
35011 * tests/test-fprintf-posix.out: Likewise.
35013 2007-04-10 Bruno Haible <bruno@clisp.org>
35015 * modules/locale-tests: New file.
35016 * tests/test-locale.c: New file.
35018 * modules/locale: New file.
35019 * lib/locale_.h: New file.
35020 * m4/locale_h.m4: New file.
35022 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
35023 Bruno Haible <bruno@clisp.org>
35025 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35026 be determined, test for availability of the copysignf, copysign,
35027 copysignl functions.
35028 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35029 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35030 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35032 2007-04-09 Eric Blake <ebb9@byu.net>
35034 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35035 * modules/stdio (Makefile.am): Support fflush.
35036 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35037 * modules/fflush: New file.
35038 * lib/fflush.c: Likewise.
35039 * m4/fflush.m4: Likewise.
35040 * modules/fflush-tests: New test.
35041 * tests/test-fflush.c: Likewise.
35042 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35044 2007-04-06 Bruno Haible <bruno@clisp.org>
35046 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35047 (VASNPRINTF): Use signbit for faster determination whether to print a
35049 * modules/vasnprintf (Files): Remove lib/float+.h.
35050 * modules/fprintf-posix (Depends-on): Add signbit.
35051 * modules/snprintf-posix (Depends-on): Likewise.
35052 * modules/sprintf-posix (Depends-on): Likewise.
35053 * modules/vasnprintf-posix (Depends-on): Likewise.
35054 * modules/vasprintf-posix (Depends-on): Likewise.
35055 * modules/vfprintf-posix (Depends-on): Likewise.
35056 * modules/vsnprintf-posix (Depends-on): Likewise.
35057 * modules/vsprintf-posix (Depends-on): Likewise.
35059 2007-04-06 Bruno Haible <bruno@clisp.org>
35061 * tests/test-frexp.c (main): Test also the sign bit of zero results.
35062 * tests/test-frexpl.c (main): Likewise.
35063 * tests/test-ldexpl.c (main): Likewise.
35064 * modules/frexp-tests (Depends-on): Add signbit.
35065 * modules/frexpl-tests (Depdends-on): Likewise.
35066 * modules/ldexpl-tests (Depdends-on): Likewise.
35068 2007-04-06 Bruno Haible <bruno@clisp.org>
35070 * modules/signbit-tests: New file.
35071 * tests/test-signbit.c: New file.
35073 * modules/signbit: New file.
35074 * lib/signbitf.c: New file.
35075 * lib/signbitd.c: New file.
35076 * lib/signbitl.c: New file.
35077 * m4/signbit.m4: New file.
35078 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35079 (signbit): New macro.
35080 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35082 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35083 REPLACE_FREXPL into math.h.
35085 2007-04-06 Bruno Haible <bruno@clisp.org>
35087 * modules/isnanf-nolibm-tests: New file.
35088 * tests/test-isnanf.c: New file.
35090 * modules/isnanf-nolibm: New file.
35091 * lib/isnanf.h: New file.
35092 * lib/isnanf.c: New file.
35093 * lib/isnan.c: Consider the USE_FLOAT macro.
35094 * m4/isnanf.m4: New file.
35096 2007-04-06 Bruno Haible <bruno@clisp.org>
35098 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35099 (Link): New section.
35101 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35103 2007-04-06 Bruno Haible <bruno@clisp.org>
35105 Assume the 'long double' type.
35106 * m4/longdouble.m4: Remove file.
35107 * config/srclist.txt: Don't mention longdouble.m4.
35108 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35109 * lib/float+.h: Likewise.
35110 * lib/frexp.c: Likewise.
35111 * lib/printf-args.h: Likewise.
35112 * lib/printf-args.c: Likewise.
35113 * lib/printf-frexp.c: Likewise.
35114 * lib/printf-parse.c: Likewise.
35115 * lib/vasnprintf.c: Likewise.
35116 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35117 * m4/intl.m4: Likewise.
35118 * m4/isnanl.m4: Likewise.
35119 * m4/printf.m4: Likewise.
35120 * m4/printf-frexpl.m4: Likewise.
35121 * m4/vasnprintf.m4: Likewise.
35122 * modules/allocsa (Files): Remove m4/longdouble.m4.
35123 * modules/gettext (Files): Likewise.
35124 * modules/relocatable-prog-wrapper (Files): Likewise.
35125 * modules/vasnprintf (Files): Likewise.
35126 * modules/isnanl (Files): Likewise.
35127 (Include): Simplify.
35128 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35129 (Include): Simplify.
35130 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35131 (Include): Simplify.
35132 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35133 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35134 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35135 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35136 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35137 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35138 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35139 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35140 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35141 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35142 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35143 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35144 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35145 * tests/test-isnanl.c: Likewise.
35146 * tests/test-snprintf-posix.h: Likewise.
35147 * tests/test-sprintf-posix.h: Likewise.
35148 * tests/test-vasnprintf-posix.c: Likewise.
35149 * tests/test-vasnprintf-posix2.c: Likewise.
35150 * tests/test-vasprintf-posix.c: Likewise.
35152 2007-04-06 Bruno Haible <bruno@clisp.org>
35154 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35155 * lib/math_.h [__DECC]: Include the overridden include file through
35156 #include_next, outside the double-inclusion guard.
35157 * lib/stdio_.h [__DECC]: Likewise.
35158 * lib/stdlib_.h [__DECC]: Likewise.
35159 * lib/string_.h [__DECC]: Likewise.
35160 * lib/time_.h [__DECC]: Likewise.
35161 * lib/wchar_.h [__DECC]: Likewise.
35162 * lib/wctype_.h [__DECC]: Likewise.
35163 * lib/inttypes_.h [__DECC]: Likewise.
35164 Reported by Albert Chin <china@thewrittenword.com> in
35165 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35167 2007-04-04 Eric Blake <ebb9@byu.net>
35169 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35172 2007-04-04 Bruno Haible <bruno@clisp.org>
35174 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35175 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35177 2007-04-04 Bruno Haible <bruno@clisp.org>
35179 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35180 results for "%010a" of Infinity and NaN.
35181 * tests/test-vasprintf-posix.c (test_function): Likewise.
35182 * tests/test-snprintf-posix.h (test_function): Likewise.
35183 * tests/test-sprintf-posix.h (test_function): Likewise.
35184 * tests/test-fprintf-posix.h (test_function): Remove these tests.
35185 * tests/test-printf-posix.h (test_function): Likewise.
35186 * tests/test-fprintf-posix.out: Update.
35187 Needed for FreeBSD 6.1.
35189 2007-04-04 Bruno Haible <bruno@clisp.org>
35191 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35192 directly used by the gnulib modules nor by gnulib-tool.
35194 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
35196 * DEPENDENCIES: Give overall description of version dependency
35197 desirability. Use more-typical names for apps.
35198 Add shell, coreutils, diffutils, grep, tar, gzip.
35200 2007-04-04 Simon Josefsson <simon@josefsson.org>
35202 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
35204 2007-04-04 Karl Berry <karl@gnu.org>
35206 * MODULES.html.sh (func_module): missing '.
35208 2007-04-03 Bruno Haible <bruno@clisp.org>
35210 * modules/argmatch-tests (Makefile.am): New variable
35211 test_argmatch_LDADD.
35212 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35213 * modules/array-list-tests (Makefile.am): New variable
35214 test_array_list_LDADD.
35215 * modules/array-oset-tests (Makefile.am): New variable
35216 test_array_oset_LDADD.
35217 * modules/avltree-list-tests (Makefile.am): New variable
35218 test_avltree_list_LDADD.
35219 * modules/avltree-oset-tests (Makefile.am): New variable
35220 test_avltree_oset_LDADD.
35221 * modules/avltreehash-list-tests (Makefile.am): New variable
35222 test_avltreehash_list_LDADD.
35223 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35224 test_canonicalize_lgpl_LDADD.
35225 * modules/carray-list-tests (Makefile.am): New variable
35226 test_carray_list_LDADD.
35227 * modules/dirname-tests (Makefile.am): New variable
35228 test_dirname_LDADD.
35229 * modules/linked-list-tests (Makefile.am): New variable
35230 test_linked_list_LDADD.
35231 * modules/linkedhash-list-tests (Makefile.am): New variable
35232 test_linkedhash_list_LDADD.
35233 * modules/rbtree-list-tests (Makefile.am): New variable
35234 test_rbtree_list_LDADD.
35235 * modules/rbtree-oset-tests (Makefile.am): New variable
35236 test_rbtree_oset_LDADD.
35237 * modules/rbtreehash-list-tests (Makefile.am): New variable
35238 test_rbtreehash_list_LDADD.
35239 * modules/xvasprintf-tests (Makefile.am): New variable
35240 test_xvasprintf_LDADD.
35241 Reported by Eric Blake.
35243 2007-04-03 Eric Blake <ebb9@byu.net>
35245 * DEPENDENCIES: Weaken m4 requirements.
35247 2007-04-03 Bruno Haible <bruno@clisp.org>
35249 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35250 * modules/isnanl-tests (configure.ac): Likewise.
35252 2007-04-03 Ben Pfaff <blp@gnu.org>
35254 * modules/iconv_open: Add $(srcdir)/ to source directory
35255 references in Makefile fragments that call gperf, to fix VPATH
35258 2007-04-03 Bruno Haible <bruno@clisp.org>
35260 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35261 * lib/ldexpl.c: Undo last change.
35263 2007-04-03 Bruno Haible <bruno@clisp.org>
35265 * modules/printf-frexpl (Depends-on): Undo last change.
35266 (Files): Add m4/ldexpl.m4.
35268 2007-04-03 Bruno Haible <bruno@clisp.org>
35270 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35271 * modules/isnanl (Link): New section.
35273 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35274 * modules/frexp (Link): New section.
35276 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35277 * modules/frexpl (Link): New section.
35279 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35280 * modules/ldexpl (Link): New section.
35282 2007-04-03 Bruno Haible <bruno@clisp.org>
35284 * modules/TEMPLATE-EXTENDED: New file.
35285 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35287 2007-04-03 Bruno Haible <bruno@clisp.org>
35289 * DEPENDENCIES: New file.
35290 Suggested by Simon Josefsson.
35292 2007-04-03 Bruno Haible <bruno@clisp.org>
35294 * doc/gnulib.texi: Escape @.
35296 2007-04-03 James Youngman <jay@gnu.org>
35297 and Paul Eggert <eggert@cs.ucla.edu>
35299 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35300 birthtime on all systems that have birthtime, not just those which
35301 use st_birthtimensec rather than st_birthtim. Putting zero in
35302 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35303 that the birth time is not available for files on an NFS mount.
35305 2007-04-03 Simon Josefsson <simon@josefsson.org>
35307 * modules/memxor: Move back from crypto/, suggested by Bruno.
35308 * modules/crypto/hmac-sha1: Fix memxor dependency.
35310 * modules/crypto/gc: Moved from ../.
35312 2007-04-02 Eric Blake <ebb9@byu.net>
35314 * lib/ldexpl.c (includes): Avoid libm.
35316 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35318 2007-04-02 Bruno Haible <bruno@clisp.org>
35320 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35323 2007-04-02 Bruno Haible <bruno@clisp.org>
35325 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35326 x86 or x86_64 platforms running MacOS X.
35327 Reported by Ryan Schmidt <@ryandesign.com>.
35329 2007-04-02 Bruno Haible <bruno@clisp.org>
35331 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35334 2007-04-01 Simon Josefsson <simon@josefsson.org>
35336 * modules/crypto/arcfour: Moved from ../.
35337 * modules/crypto/arcfour-tests: Moved from ../.
35338 * modules/crypto/arctwo: Moved from ../.
35339 * modules/crypto/arctwo-tests: Moved from ../.
35340 * modules/crypto/des: Moved from ../.
35341 * modules/crypto/des-tests: Moved from ../.
35342 * modules/crypto/gc-arcfour: Moved from ../.
35343 * modules/crypto/gc-arcfour-tests: Moved from ../.
35344 * modules/crypto/gc-arctwo: Moved from ../.
35345 * modules/crypto/gc-arctwo-tests: Moved from ../.
35346 * modules/crypto/gc-des: Moved from ../.
35347 * modules/crypto/gc-des-tests: Moved from ../.
35348 * modules/crypto/gc-hmac-md5: Moved from ../.
35349 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35350 * modules/crypto/gc-hmac-sha1: Moved from ../.
35351 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35352 * modules/crypto/gc-md2: Moved from ../.
35353 * modules/crypto/gc-md2-tests: Moved from ../.
35354 * modules/crypto/gc-md4: Moved from ../.
35355 * modules/crypto/gc-md4-tests: Moved from ../.
35356 * modules/crypto/gc-md5: Moved from ../.
35357 * modules/crypto/gc-md5-tests: Moved from ../.
35358 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35359 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35360 * modules/crypto/gc-random: Moved from ../.
35361 * modules/crypto/gc-rijndael: Moved from ../.
35362 * modules/crypto/gc-rijndael-tests: Moved from ../.
35363 * modules/crypto/gc-sha1: Moved from ../.
35364 * modules/crypto/gc-sha1-tests: Moved from ../.
35365 * modules/crypto/gc-tests: Moved from ../.
35366 * modules/crypto/hmac-md5: Moved from ../.
35367 * modules/crypto/hmac-md5-tests: Moved from ../.
35368 * modules/crypto/hmac-sha1: Moved from ../.
35369 * modules/crypto/hmac-sha1-tests: Moved from ../.
35370 * modules/crypto/md2: Moved from ../.
35371 * modules/crypto/md2-tests: Moved from ../.
35372 * modules/crypto/md4: Moved from ../.
35373 * modules/crypto/md4-tests: Moved from ../.
35374 * modules/crypto/md5: Moved from ../.
35375 * modules/crypto/md5-tests: Moved from ../.
35376 * modules/crypto/memxor: Moved from ../.
35377 * modules/crypto/rijndael: Moved from ../.
35378 * modules/crypto/rijndael-tests: Moved from ../.
35379 * modules/crypto/sha1: Moved from ../.
35381 2007-03-30 James Youngman <jay@gnu.org>
35383 * tests/test-stat-time.c (prepare_test): use chmod() rather than
35384 rename() to change the ctime of a file (because ctime is unaffected
35385 by rename on jfs2 on AIX 5.1).
35386 (main): Start by doing cleanup, in case a previous run failed leaving
35389 2007-03-31 Bruno Haible <bruno@clisp.org>
35391 Support old proprietary implementations of iconv.
35392 * modules/iconv_open: New file.
35393 * lib/iconv_.h: New file.
35394 * m4/iconv_h.m4: New file.
35395 * lib/iconv_open.c: New file.
35396 * lib/iconv_open-aix.gperf: New file.
35397 * lib/iconv_open-hpux.gperf: New file.
35398 * lib/iconv_open-irix.gperf: New file.
35399 * lib/iconv_open-osf.gperf: New file.
35400 * m4/iconv_open.m4: New file.
35401 * modules/linebreak (Depends-on): Add iconv_open.
35402 * modules/striconv (Depends-on): Likewise.
35403 * modules/striconveh (Depends-on): Likewise.
35404 * modules/unicodeio (Depends-on): Likewise.
35405 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35407 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35408 conversion if cd is (iconv_t)(-1).
35409 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35412 2007-03-31 Bruno Haible <bruno@clisp.org>
35414 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35415 work on Solaris either. Protect also second use of "autodetect_jp".
35417 2007-03-31 Bruno Haible <bruno@clisp.org>
35419 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35420 the function is not present.
35422 2007-03-31 Bruno Haible <bruno@clisp.org>
35424 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35425 the function is not present.
35427 2007-03-31 Bruno Haible <bruno@clisp.org>
35429 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35430 a bug in HP-UX iconv_open().
35432 2007-03-31 Bruno Haible <bruno@clisp.org>
35434 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35435 (Mathematics <math.h>): New section, add fpieee.
35436 (Input/output <stdio.h>): Add fseterr.
35437 (Mathematics <math.h>): New section, add printf-frexp.
35438 (Container data structures): Add sublist.
35439 (Core language properties): Add fpucw, inline.
35440 (Functions for greatest-width integer types <inttypes.h>): Add
35441 imaxabs, imaxdiv, inttypes.
35442 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35443 isnanl-nolibm, ldexp.
35444 (Mathematics <math.h>): New section, add printf-frexpl.
35445 (Support for systems lacking POSIX:2001): Add fprintf-posix,
35446 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35447 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35448 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35449 (Unicode string functions): Add unistr/u*-mbtoucr.
35450 (Java): Add javacomp-script, javaexec-script.
35451 (C#): Add csharpcomp-script, csharpexec-script.
35452 (Support for building libraries and executables): Add havelib,
35454 (Support for maintaining and releasing projects): Renamed from
35455 'Support for maintaining and release projects'. Add announce-gen.
35457 2007-03-31 Bruno Haible <bruno@clisp.org>
35459 * README: Talk primarily about git.
35460 (git and CVS): Renamed from CVS.
35461 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35462 gnulib is available through git.
35463 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35465 2007-03-30 Bruno Haible <bruno@clisp.org>
35467 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35468 * lib/poll_.h: Likewise.
35469 * lib/stat_.h: Likewise.
35470 * lib/sys_time_.h: Likewise.
35471 * lib/sysexit_.h: Likewise.
35472 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35473 * lib/stdbool_.h: Likewise.
35474 * lib/byteswap_.h: Add double-inclusion guard.
35476 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
35478 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35480 2007-03-30 Karl Berry <karl@gnu.org>
35482 * config/srclist-update: double space after USA in the license
35483 substitution, since that's how it's usually (?) written.
35485 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
35487 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35488 reported by Bruno Haible.
35490 2007-03-29 Bruno Haible <bruno@clisp.org>
35492 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35493 a bug in AIX iconv().
35495 2007-03-29 Bruno Haible <bruno@clisp.org>
35497 * modules/ldexpl-tests: New file.
35498 * tests/test-ldexpl.c: New file.
35500 2007-03-29 Bruno Haible <bruno@clisp.org>
35502 * lib/ldexpl.c: Include fpucw.h.
35503 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35505 * modules/ldexpl (Depends-on): Add fpucw.
35507 2007-03-29 Bruno Haible <bruno@clisp.org>
35509 * modules/ldexpl: New file.
35510 * m4/ldexpl.m4: New file.
35511 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35513 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35515 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35517 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35518 gl_FUNC_LDEXPL_WORKS.
35519 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35520 * modules/mathl (Files): Remove lib/ldexpl.c.
35521 (Depends-on): Add ldexpl.
35523 2007-03-29 Bruno Haible <bruno@clisp.org>
35525 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35527 2007-03-29 Bruno Haible <bruno@clisp.org>
35529 * tests/test-striconveh.c (main): Don't assume that a direct conversion
35530 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35531 and possibly also HP-UX.
35532 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35533 work on AIX, IRIX, HP-UX, OSF/1.
35534 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35535 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35536 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35537 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35538 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35539 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35541 2007-03-29 Bruno Haible <bruno@clisp.org>
35543 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35545 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35547 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35548 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35550 2007-03-29 Eric Blake <ebb9@byu.net>
35552 * lib/acl-internal.h: Remove redundant include.
35553 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35554 Cygwin when a file is locked.
35556 2007-03-29 Bruno Haible <bruno@clisp.org>
35558 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35560 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35562 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35564 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35565 try to remove a parent directory if the child couldn't be removed
35566 (except for the first rmdir, which could fail because the child
35567 doesn't exist). Problem reported by Jeff Blaine in
35568 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35570 2007-03-28 Bruno Haible <bruno@clisp.org>
35572 * lib/striconveh.c (utf8conv_carefully): New function.
35573 (mem_cd_iconveh_internal): Invoke it.
35575 2007-03-28 Bruno Haible <bruno@clisp.org>
35577 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35578 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35580 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35581 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35584 2007-03-28 Bruno Haible <bruno@clisp.org>
35586 * modules/unistr/u8-mbtoucr: New file.
35587 * lib/unistr/u8-mbtoucr.c: New file.
35588 * modules/unistr/u16-mbtoucr: New file.
35589 * lib/unistr/u16-mbtoucr.c: New file.
35590 * modules/unistr/u16-mbtoucr: New file.
35591 * lib/unistr/u16-mbtoucr.c: New file.
35592 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35594 2007-03-27 Simon Josefsson <simon@josefsson.org>
35595 Bruno Haible <bruno@clisp.org>
35597 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35598 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
35599 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35601 * m4/stdio_h.m4: Add stubs for vasprintf too.
35603 * modules/stdio: Support vasprintf in sed command.
35605 * modules/vasprintf: Depend on stdio for prototypes. Remove
35606 vasprintf.h. Add stdio module indicator.
35608 * lib/stdio_.h: Declare asprintf and vasprintf, based on
35611 * lib/vasprintf.h: File removed.
35613 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35614 * lib/vasprintf.c: Ditto.
35615 * lib/xvasprintf.c: Ditto.
35616 * tests/test-vasprintf-posix.c: Ditto.
35617 * tests/test-vasprintf.c: Ditto.
35619 2007-03-27 Bruno Haible <bruno@clisp.org>
35621 Make vasnprintf multithread-safe.
35622 * lib/vasnprintf.c (decimal_point_char): New function.
35623 (VASNPRINTF): Use it.
35624 Suggested by Simon Josefsson.
35626 2007-03-27 Eric Blake <ebb9@byu.net>
35628 Support sub-second birthtime on cygwin.
35629 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35630 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35631 (get_stat_birthtime): Also work with st_birthtim.
35633 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
35635 * lib/stat-time.h (USE_BIRTHTIME): Remove.
35636 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35637 (get_stat_birthtime_ns): Do not try to use "spare" fields.
35638 (get_stat_birthtime_ns): Simplify compile-time tests.
35639 (get_stat_birthtime): Change the API to look like
35640 get_stat_mtime etc., except return a negative tv_nsec on error.
35641 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35642 Don't check for "spare" fields.
35643 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35644 or for struct stat.st_birthtime, as these tests aren't used.
35645 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35647 2007-03-27 Bruno Haible <bruno@clisp.org>
35649 * lib/stat-time.h: Include <sys/stat.h>.
35651 2007-03-27 James Youngman <jay@gnu.org>
35653 * lib/stat-time.h (get_stat_birthtime): New function for
35654 retrieving st_birthtime as provided by UFS2 (hence *BSD).
35655 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35657 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35658 * modules/stat-time-test: New file.
35659 * tests/test-stat-time.c: New test, devised by Bruno Haible.
35661 2007-03-26 Bruno Haible <bruno@clisp.org>
35663 Better support of signalling NaNs.
35664 * lib/atanl.c: Include isnanl.h.
35665 (atanl): Perform test for NaN at the beginning of the function and
35666 through a call to isnanl.
35667 * lib/cosl.c: Include isnanl.h.
35668 (cosl): Perform test for NaN at the beginning of the function and
35669 through a call to isnanl.
35670 * lib/ldexpl.c: Include isnanl.h.
35671 (ldexpl): Perform test for NaN through a call to isnanl.
35672 * lib/logl.c: Include isnanl.h.
35673 (logl): Perform test for NaN at the beginning of the function and
35674 through a call to isnanl.
35675 * lib/sinl.c: Include isnanl.h.
35676 (sinl): Perform test for NaN at the beginning of the function and
35677 through a call to isnanl.
35678 * lib/sqrtl.c: Include isnanl.h.
35679 (sqrtl): Perform test for NaN at the beginning of the function and
35680 through a call to isnanl.
35681 * lib/tanl.c: Include isnanl.h.
35682 (tanl): Perform test for NaN at the beginning of the function and
35683 through a call to isnanl.
35684 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35685 * modules/mathl (Depends-on): Add isnanl.
35687 2007-03-26 Eric Blake <ebb9@byu.net>
35689 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35690 regression in logic sense of previous patch.
35692 2007-03-26 Bruno Haible <bruno@clisp.org>
35694 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35695 unportable shell command "if ! ...".
35696 Reported by Ralf Wildenhues.
35698 2007-03-25 Bruno Haible <bruno@clisp.org>
35700 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35701 <sysexits.h> file, and only add EX_CONFIG.
35702 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35703 absolute file name and whether it is sufficient. Substitute also
35704 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35705 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35706 ABSOLUTE_SYSEXITS_H into sysexits.h.
35708 2007-03-25 Bruno Haible <bruno@clisp.org>
35710 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35713 2007-03-25 Bruno Haible <bruno@clisp.org>
35715 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35716 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35718 2007-03-25 Bruno Haible <bruno@clisp.org>
35720 * lib/vasnprintf.c: Include langinfo.h.
35721 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35723 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35724 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35725 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35726 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35727 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35728 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35729 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35730 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35731 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35732 Reported by Simon Josefsson.
35734 2007-03-25 Bruno Haible <bruno@clisp.org>
35736 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35737 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35738 * modules/vasnprintf (Depends-on): Add stdint.
35740 2007-03-25 Bruno Haible <bruno@clisp.org>
35742 * modules/fpieee: New file.
35743 * m4/fpieee.m4: New file.
35744 * modules/isnan-nolibm (Depends-on): Add fpieee.
35745 * modules/isnanl-nolibm (Depends-on): Add fpieee.
35746 * modules/isnanl (Depends-on): Add fpieee.
35748 2007-03-25 Bruno Haible <bruno@clisp.org>
35750 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35752 2007-03-25 Bruno Haible <bruno@clisp.org>
35754 Avoid test failures on IRIX 6.5.
35755 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35757 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35761 2007-03-25 Bruno Haible <bruno@clisp.org>
35763 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35764 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35765 exists but doesn't work.
35766 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35767 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35768 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35769 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35771 2007-03-25 Bruno Haible <bruno@clisp.org>
35773 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35774 returns inf. Needed on IRIX 6.5.
35776 2007-03-25 Bruno Haible <bruno@clisp.org>
35778 * tests/test-frexpl.c: Include isnanl-nolibm.h.
35779 (main): Use isnanl instead of x != x idiom.
35780 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35782 * tests/test-frexp.c: Include isnan.h.
35783 (main): Use isnan instead of x != x idiom.
35784 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35786 2007-03-25 Bruno Haible <bruno@clisp.org>
35788 * tests/test-frexp.c (NaN): New function/macro.
35789 (main): Use it instead of 0.0 / 0.0.
35790 * tests/test-isnan.c (NaN): New function/macro.
35791 (main): Use it instead of 0.0 / 0.0.
35792 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35793 (test_function): Use it instead of 0.0 / 0.0.
35794 * tests/test-vasprintf-posix.c (NaN): New function/macro.
35795 (test_function): Use it instead of 0.0 / 0.0.
35796 * tests/test-snprintf-posix.h (NaN): New function/macro.
35797 (test_function): Use it instead of 0.0 / 0.0.
35798 * tests/test-sprintf-posix.h (NaN): New function/macro.
35799 (test_function): Use it instead of 0.0 / 0.0.
35800 * tests/test-fprintf-posix.h (NaN): New function/macro.
35801 (test_function): Use it instead of 0.0 / 0.0.
35802 * tests/test-printf-posix.h (NaN): New function/macro.
35803 (test_function): Use it instead of 0.0 / 0.0.
35805 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35807 2007-03-25 Bruno Haible <bruno@clisp.org>
35809 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35811 2007-03-25 Bruno Haible <bruno@clisp.org>
35813 * lib/regexec.c (merge_state_with_log): Make static.
35815 2007-03-25 Bruno Haible <bruno@clisp.org>
35817 * lib/trigl.c (kernel_rem_pio2): Make static.
35819 2007-03-25 Bruno Haible <bruno@clisp.org>
35821 * lib/sincosl.c (sincosl_table): Make static.
35823 2007-03-25 Bruno Haible <bruno@clisp.org>
35825 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35826 if the compiler does not support C99.
35828 2007-03-25 Bruno Haible <bruno@clisp.org>
35830 * modules/time (Makefile.am): Ensure all rule action lines start with a
35833 2007-03-24 Bruno Haible <bruno@clisp.org>
35835 * modules/tsearch-tests: New file.
35836 * tests/test-tsearch.sh: New file.
35837 * tests/test-tsearch.c: New file, mostly copied from glibc.
35839 * modules/search-tests: New file.
35840 * tests/test-search.c: New file.
35842 * modules/search: New file.
35843 * lib/search_.h: New file, incorporating lib/tsearch.h.
35844 * m4/search_h.m4: New file.
35845 * lib/tsearch.h: Remove file.
35846 * lib/tsearch.c: Include search.h instead of tsearch.h.
35847 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35849 * modules/tsearch (Files): Remove lib/tsearch.h.
35850 (Depends-on): Add search.
35851 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35852 (Include): Change tsearch.h into search.h.
35854 2007-03-24 Bruno Haible <bruno@clisp.org>
35856 * modules/fpucw: New file.
35857 * lib/fpucw.h: New file.
35858 * lib/frexp.c: Include fpucw.h.
35859 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35861 * lib/printf-frexp.c: Include fpucw.h.
35862 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35864 * lib/vasnprintf.c: Include fpucw.h.
35865 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35866 'long double' calculations.
35867 * tests/test-frexpl.c: Include fpucw.h.
35868 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35869 * tests/test-printf-frexpl.c: Include fpucw.h.
35870 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35871 * modules/frexpl (Depends-on): Add fpucw.
35872 * modules/printf-frexpl (Depends-on): Likewise.
35873 * modules/fprintf-posix (Depends-on): Likewise.
35874 * modules/snprintf-posix (Depends-on): Likewise.
35875 * modules/sprintf-posix (Depends-on): Likewise.
35876 * modules/vasnprintf-posix (Depends-on): Likewise.
35877 * modules/vasprintf-posix (Depends-on): Likewise.
35878 * modules/vfprintf-posix (Depends-on): Likewise.
35879 * modules/vsnprintf-posix (Depends-on): Likewise.
35880 * modules/vsprintf-posix (Depends-on): Likewise.
35881 * modules/frexpl-tests (Depends-on): Likewise.
35882 * modules/printf-frexpl-tests (Depends-on): Likewise.
35884 2007-03-24 Bruno Haible <bruno@clisp.org>
35886 * lib/float+.h: New file.
35887 * lib/isnan.c: Include float+.h.
35889 (FUNC): Compare only SIZE bytes of the value.
35890 * lib/vasnprintf.c: Include float+.h.
35891 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35892 SIZEOF_LDBL or SIZEOF_DBL bytes.
35893 * modules/isnan-nolibm (Files): Add lib/float+.h.
35894 * modules/isnanl-nolibm (Files): Add lib/float+.h.
35895 * modules/isnanl (Files): Add lib/float+.h.
35896 * modules/vasnprintf (Files): Add lib/float+.h.
35898 2007-03-24 Bruno Haible <bruno@clisp.org>
35900 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35901 include isnanl-nolibm.h.
35903 2007-03-24 Bruno Haible <bruno@clisp.org>
35905 * tests/test-read-file.c (main): Don't produce spurious output for
35906 expected situations. Make the test fail if it encountered unexpected
35909 2007-03-24 Bruno Haible <bruno@clisp.org>
35911 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35912 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35914 2007-03-24 Bruno Haible <bruno@clisp.org>
35916 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35918 2007-03-24 Bruno Haible <bruno@clisp.org>
35920 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35921 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35923 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35924 * modules/utf8-ucs4: Turn into a symbolic link to module
35927 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35929 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35930 unistr/u8-mbtouc-unsafe.
35932 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35933 * modules/utf16-ucs4: Turn into a symbolic link to module
35936 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35938 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35939 unistr/u16-mbtouc-unsafe.
35941 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35942 * modules/ucs4-utf8: Turn into a symbolic link to module
35945 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35946 * modules/ucs4-utf16: Turn into a symbolic link to module
35949 2007-03-24 Bruno Haible <bruno@clisp.org>
35951 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35952 Enable the function only if HAVE_INLINE.
35953 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35954 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35955 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35956 Enable the function only if HAVE_INLINE.
35957 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35958 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35959 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35960 Enable the function only if HAVE_INLINE.
35961 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35962 Enable the function only if HAVE_INLINE.
35963 * modules/utf8-ucs4: Update.
35964 * modules/utf8-ucs4-unsafe: Update.
35965 * modules/utf16-ucs4: Update.
35966 * modules/utf16-ucs4-unsafe: Update.
35967 * modules/ucs4-utf8: Update.
35968 * modules/ucs4-utf16: Update.
35970 2007-03-24 Bruno Haible <bruno@clisp.org>
35972 * lib/utf8-ucs4.h: Remove file.
35973 * lib/utf8-ucs4-unsafe.h: Remove file.
35974 * lib/utf16-ucs4.h: Remove file.
35975 * lib/utf16-ucs4-unsafe.h: Remove file.
35976 * lib/ucs4-utf8.h: Remove file.
35977 * lib/ucs4-utf16.h: Remove file.
35978 * lib/unistr.h: Include their previous contents.
35979 * m4/utf-ucs4.m4: Remove file.
35980 * m4/ucs4-utf.m4: Remove file.
35981 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35982 (Depends-on): Add unistr/base.
35983 (configure.ac): Remove gl_UTF_UCS4.
35984 (Makefile.am): Update.
35985 (Include): Change to unistr.h.
35986 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35987 (Depends-on): Add unistr/base.
35988 (configure.ac): Remove gl_UTF_UCS4.
35989 (Makefile.am): Update.
35990 (Include): Change to unistr.h.
35991 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35992 (Depends-on): Add unistr/base.
35993 (configure.ac): Remove gl_UTF_UCS4.
35994 (Makefile.am): Update.
35995 (Include): Change to unistr.h.
35996 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35997 (Depends-on): Add unistr/base.
35998 (configure.ac): Remove gl_UTF_UCS4.
35999 (Makefile.am): Update.
36000 (Include): Change to unistr.h.
36001 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36002 (Depends-on): Add unistr/base.
36003 (configure.ac): Remove gl_UCS4_UTF.
36004 (Makefile.am): Update.
36005 (Include): Change to unistr.h.
36006 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36007 (Depends-on): Add unistr/base.
36008 (configure.ac): Remove gl_UCS4_UTF.
36009 (Makefile.am): Update.
36010 (Include): Change to unistr.h.
36011 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36012 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36013 utf8-ucs4-unsafe.h.
36014 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36015 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36016 utf16-ucs4-unsafe.h.
36017 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36018 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36019 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36020 * lib/unistr/u8-strchr.c: Likewise.
36021 * lib/unistr/u8-strrchr.c: Likewise.
36022 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36023 * lib/unistr/u16-strchr.c: Likewise.
36024 * lib/unistr/u16-strrchr.c: Likewise.
36025 * lib/striconveh.c: Update.
36026 * lib/linebreak.c: Update.
36028 2007-03-24 Bruno Haible <bruno@clisp.org>
36030 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36031 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36033 2007-03-22 Bruno Haible <bruno@clisp.org>
36035 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36037 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
36039 * MODULES.html.sh (File system functions): New module write-any-file.
36040 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36041 * m4/write-any-file.m4: New files.
36043 2007-03-23 Eric Blake <ebb9@byu.net>
36045 * gnulib-tool: Rearrange space-tab sequences, since some editors
36048 2007-03-23 Eric Blake <ebb9@byu.net>
36050 * lib/version-etc.c (version_etc_va): Update license wording to
36051 be more concise. Recommended by Richard Stallman.
36053 2007-03-22 Bruno Haible <bruno@clisp.org>
36055 * lib/poll.c (MSG_PEEK): New fallback definition.
36057 2007-03-22 Bruno Haible <bruno@clisp.org>
36059 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36060 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36062 Fixes a compilation error on BeOS.
36064 2007-03-22 Bruno Haible <bruno@clisp.org>
36066 * modules/frexpl-tests: New file.
36067 * tests/test-frexpl.c: New file.
36069 * modules/frexpl: New file.
36070 * m4/frexpl.m4: New file.
36071 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36072 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36073 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36074 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36075 (Depends-on): Add frexpl. Remove isnanl-nolibm.
36076 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36078 2007-03-22 Bruno Haible <bruno@clisp.org>
36080 * lib/frexpl.c: Share code with lib/frexp.c.
36081 * modules/mathl (Files): Add lib/frexp.c.
36082 (Depends-on): Add isnanl-nolibm.
36084 2007-03-22 Bruno Haible <bruno@clisp.org>
36086 * modules/printf-frexp (Files): Add m4/frexp.m4.
36087 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36088 only if the found frexp function actually works.
36090 2007-03-22 Bruno Haible <bruno@clisp.org>
36092 * lib/frexp.c: Remove older implementation that uses divisions.
36094 2007-03-21 Bruno Haible <bruno@clisp.org>
36096 * modules/frexp-tests: New file.
36097 * tests/test-frexp.c: New file.
36099 * modules/frexp: New file.
36100 * lib/frexp.c: New file.
36101 * m4/frexp.m4: New file.
36102 * lib/math_.h (frexp): New declaration.
36103 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36105 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36107 2007-03-21 Bruno Haible <bruno@clisp.org>
36109 * modules/isnanl-tests: New file.
36110 * tests/test-isnanl.c: New file.
36112 * modules/isnanl: New file.
36113 * lib/isnanl.h: New file.
36114 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36115 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36116 gl_FUNC_ISNANL_WORKS.
36117 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36120 2007-03-21 Bruno Haible <bruno@clisp.org>
36122 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36125 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36126 * lib/vasnprintf.c: Update.
36127 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36128 tests/test-isnanl.h, remove tests/test-isnanl.c.
36129 (Makefile.am): Update.
36130 * tests/test-isnanl-nolibm.c: New file.
36131 * tests/test-isnanl.h: New file.
36132 * tests/test-isnanl.c: Remove file.
36134 2007-03-21 Jim Meyering <jim@meyering.net>
36136 When trying to open ".", treat ESTALE like EACCES.
36137 * lib/savewd.c (savewd_save): Resort to forking not just upon
36138 failure with EACCES, but also when errno is ESTALE.
36140 2007-03-20 Bruno Haible <bruno@clisp.org>
36142 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36143 Needed on AIX 5.1. Reported by Matthew Woehlke.
36145 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36147 Suggestions by Bruno Haible:
36148 * lib/acl-internal.h: Include "gettext.h" rather than rolling
36150 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36151 * modules/acl (Depends-on): Add gettext.
36153 2007-03-19 Bruno Haible <bruno@clisp.org>
36155 * modules/iconvme: Remove file.
36156 * lib/iconvme.h: Remove file.
36157 * lib/iconvme.c: Remove file.
36158 * m4/iconvme.m4: Remove file.
36160 2007-03-19 Bruno Haible <bruno@clisp.org>
36162 * doc/relocatable-maint.texi: Break long shell script line.
36163 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36165 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36167 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36168 handle file_has_acl.
36169 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36170 * lib/acl.c: Move header inclusions and related macro defns into
36171 lib/acl-internal.h.
36172 (S_ISLNK): Remove defn, since that's now done for us.
36173 (file_has_acl): Move to lib/file-has-acl.c.
36174 Call acl_trivial if available. This is the crucial part of the fix.
36175 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
36176 shared within the library. Rewrite a bit, partly to make it compatible
36177 with the GNU coding style.
36178 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36179 Remove unnecessary double-quotes.
36180 Don't test for acl_to_text; the build will catch that.
36181 Replace acl_entries if it doesn't exist and it is needed.
36182 Check for -lsec and acl_trivial (as used on Solaris 10).
36183 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36184 lib/file-has-acl.c.
36185 (Depends-on): Add sys_stat, for S_ISLNK.
36187 2007-03-19 Ben Pfaff <blp@gnu.org>
36189 * doc/gnulib.texi: Fix typos.
36190 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36192 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36194 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36195 If size is zero here, buf must be zero.
36197 2007-03-19 Simon Josefsson <simon@josefsson.org>
36199 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
36202 2007-03-18 Bruno Haible <bruno@clisp.org>
36204 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36205 Suggested by Eric Blake.
36207 2007-03-18 Ben Pfaff <blp@gnu.org>
36209 * doc/relocatable.texi: Recommend using as prefix a directory
36210 that does not exist and will never be created. Based on
36211 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36214 2007-03-17 Bruno Haible <bruno@clisp.org>
36216 * lib/fchownat.c: Include lchown.h.
36218 2007-03-17 Bruno Haible <bruno@clisp.org>
36220 Fix endless loop when the given allocated size was > INT_MAX.
36221 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36222 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36223 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36224 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36225 * lib/sprintf.c (sprintf): Likewise.
36227 2007-03-17 Bruno Haible <bruno@clisp.org>
36229 * tests/test-argp-2.sh (func_compare): Output a context diff.
36231 2007-03-17 Bruno Haible <bruno@clisp.org>
36233 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36234 locale's decimal-point character.
36236 2007-03-17 Bruno Haible <bruno@clisp.org>
36238 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36239 before comparing it. Needed because on some platforms (e.g. x86) a
36240 'long double' occupies less bytes than sizeof (long double).
36242 2007-03-17 Bruno Haible <bruno@clisp.org>
36244 * tests/test-crc.c (main): Make printf statements 64-bit clean.
36245 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36246 * tests/test-getaddrinfo.c (simple): Likewise.
36247 * tests/test-read-file.c (main): Likewise.
36249 2007-03-17 Bruno Haible <bruno@clisp.org>
36251 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36253 2007-03-17 Bruno Haible <bruno@clisp.org>
36255 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36258 2007-03-17 Bruno Haible <bruno@clisp.org>
36260 * tests/test-c-strcasecmp.c: Include c-strcase.h.
36261 * tests/test-c-strncasecmp.c: Likewise.
36263 2007-03-17 Bruno Haible <bruno@clisp.org>
36265 * modules/stdlib (Depends-on): Add unistd.
36266 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36267 Needed for MacOS X 10.3.
36269 2007-03-17 Bruno Haible <bruno@clisp.org>
36271 * lib/unistr/u-strdup.h: Include <stdlib.h>.
36273 2007-03-17 Bruno Haible <bruno@clisp.org>
36275 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36277 2007-03-17 Bruno Haible <bruno@clisp.org>
36279 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36280 to reflect files copied from gnulib (with or without modifications).
36281 Suggested by Jim Meyering.
36283 2007-03-17 Eric Blake <ebb9@byu.net>
36285 * NEWS: Document stdlib change from 2007-02-18.
36287 2007-03-17 Jim Meyering <jim@meyering.net>
36289 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36290 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36291 someone uses a name containing shell meta-characters.
36292 Reported by Alfred M. Szmidt.
36294 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
36296 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
36298 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
36299 and copy gettext configuration files only if configure.ac contains
36300 a use of AM_GNU_GETTEXT_VERSION.
36302 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
36304 * build-aux/bootstrap (gnulib_name): New variable.
36305 (gnulib_tool_options): Use it.
36307 2007-03-13 Simon Josefsson <simon@josefsson.org>
36309 * tests/test-des.c: Use new namespace.
36311 2007-03-15 Bruno Haible <bruno@clisp.org>
36313 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36314 Reported by James Youngman <jay@gnu.org>.
36316 2007-03-15 Bruno Haible <bruno@clisp.org>
36318 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36319 declared prototype. Needed with cc on OSF/1 5.1.
36321 2007-03-15 Bruno Haible <bruno@clisp.org>
36323 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36324 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36325 (struct gl_list_implementation): Add dispose_fn argument to the
36326 'create_empty', 'create' methods.
36327 (struct gl_list_impl_base): Add field 'dispose_fn'.
36328 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36330 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36331 dispose_fn argument.
36332 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36333 dispose_fn on the dropped values.
36334 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36335 dispose_fn argument.
36336 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36338 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36339 (gl_tree_remove_node): Call dispose_fn on the dropped value.
36340 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36341 (gl_tree_remove_node): Call dispose_fn on the dropped value.
36342 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36344 (gl_tree_list_free): Call dispose_fn on the dropped values.
36345 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36346 the dropped values.
36347 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36348 Add dispose_fn argument.
36349 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36350 Call dispose_fn on the dropped values.
36351 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36352 Add dispose_fn argument.
36353 (gl_sublist_create): Initialize the 'dispose_fn' field.
36354 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36355 * tests/test-array_list.c (main): Update.
36356 * tests/test-carray_list.c (main): Update.
36357 * tests/test-avltree_list.c (main): Update.
36358 * tests/test-rbtree_list.c (main): Update.
36359 * tests/test-avltreehash_list.c (main): Update.
36360 * tests/test-rbtreehash_list.c (main): Update.
36361 * tests/test-linked_list.c (main): Update.
36362 * tests/test-linkedhash_list.c (main): Update.
36363 * tests/test-array_oset.c (main): Update.
36365 2007-03-15 Bruno Haible <bruno@clisp.org>
36367 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36368 (gl_oset_create_empty): Add dispose_fn argument.
36369 (struct gl_oset_implementation): Add dispose_fn argument to
36370 'create_empty' method.
36371 (struct gl_oset_impl_base): Add dispose_fn field.
36372 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36373 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36374 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36376 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36377 (gl_tree_oset_free): Call dispose_fn on the dropped values.
36378 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36380 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36382 * tests/test-array_oset.c (main): Update.
36383 * tests/test-avltree_oset.c (main): Update.
36384 * tests/test-rbtree_oset.c (main): Update.
36385 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36387 2007-03-13 Bruno Haible <bruno@clisp.org>
36389 * tests/test-stdbool.c (i): Update after last patch.
36391 2007-03-12 Bruno Haible <bruno@clisp.org>
36393 * lib/quotearg.c: Include <wctype.h> early, before the definition of
36394 the iswprint macro. Needed on Solaris 2.5.1.
36396 2007-03-12 Bruno Haible <bruno@clisp.org>
36398 * tests/test-printf-frexp.c (main): Declare x as volatile.
36400 2007-03-12 Simon Josefsson <simon@josefsson.org>
36402 * doc/gnulib.texi (Build robot for gnulib): New section.
36404 2007-03-12 Jim Meyering <jim@meyering.net>
36406 * build-aux/bootstrap: New file.
36407 * build-aux/bootstrap.conf: New file, from coreutils.
36409 2007-03-11 Bruno Haible <bruno@clisp.org>
36411 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36413 2007-03-12 Simon Josefsson <simon@josefsson.org>
36415 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36416 avoid collisions with 'des_setkey'. Reported by Bruno Haible
36417 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
36419 2007-03-11 Bruno Haible <bruno@clisp.org>
36421 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36422 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36424 2007-03-11 Bruno Haible <bruno@clisp.org>
36426 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36427 formula. Needed for SunPRO C 5.0.
36429 2007-03-11 Bruno Haible <bruno@clisp.org>
36431 * modules/long-options (Depends-on): Add getopt.
36433 2007-03-11 Bruno Haible <bruno@clisp.org>
36435 * modules/modechange (Depends-on): Add stdbool.
36437 2007-03-11 Bruno Haible <bruno@clisp.org>
36439 * modules/i-ring (Depends-on): Add stdbool.
36441 2007-03-11 Bruno Haible <bruno@clisp.org>
36443 * modules/gc-des (Depends-on): Add stdbool.
36445 2007-03-11 Bruno Haible <bruno@clisp.org>
36447 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36449 2007-03-11 Bruno Haible <bruno@clisp.org>
36451 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36453 2007-03-11 Bruno Haible <bruno@clisp.org>
36455 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36457 2007-03-11 Bruno Haible <bruno@clisp.org>
36459 * lib/vasnprintf.c (sprintf): Undefine.
36461 2007-03-11 Bruno Haible <bruno@clisp.org>
36463 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36464 initializers in SunPRO C and Compaq C compilers.
36466 2007-03-11 Bruno Haible <bruno@clisp.org>
36468 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36469 decrementing code ANSI C compliant.
36471 2007-03-11 Bruno Haible <bruno@clisp.org>
36473 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36474 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36476 2007-03-11 Bruno Haible <bruno@clisp.org>
36478 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36479 <stdbool.h> substitute doesn't pass.
36481 2007-03-11 Bruno Haible <bruno@clisp.org>
36483 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36485 2007-03-11 Bruno Haible <bruno@clisp.org>
36487 * gnulib-tool (func_create_megatestdir): Create also an autobuild
36488 script, for submission to autobuild.josefsson.org.
36490 2007-03-10 Bruno Haible <bruno@clisp.org>
36492 * modules/canonicalize-lgpl-tests: New file.
36493 * tests/test-canonicalize-lgpl.sh: New file.
36494 * tests/test-canonicalize-lgpl.c: New file.
36496 * modules/c-strcase-tests: New file.
36497 * tests/test-c-strcase.sh: New file.
36498 * tests/test-c-strcasecmp.c: New file.
36499 * tests/test-c-strncasecmp.c: New file.
36501 * modules/atexit-tests: New file.
36502 * tests/test-atexit.sh: New file.
36503 * tests/test-atexit.c: New file.
36505 2007-03-10 Bruno Haible <bruno@clisp.org>
36507 * tests/test-binary-io.sh: Use temporary filenames that are not so
36508 likely to clash with those of other tests (in a parallel make).
36509 * tests/test-binary-io.c: Likewise.
36511 2007-03-10 Bruno Haible <bruno@clisp.org>
36513 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36514 fallback; use #error instead.
36515 Suggested by Simon Josefsson.
36517 2007-03-10 Bruno Haible <bruno@clisp.org>
36519 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36520 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36521 first and the last.
36523 2007-03-10 Bruno Haible <bruno@clisp.org>
36525 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36527 2007-03-10 Bruno Haible <bruno@clisp.org>
36529 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36531 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36532 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36533 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36535 2007-03-10 Bruno Haible <bruno@clisp.org>
36537 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36539 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36542 2007-03-09 Eric Blake <ebb9@byu.net>
36543 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
36545 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36546 types are not being provided by gnulib.
36547 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36548 types are supported.
36550 2007-03-10 Bruno Haible <bruno@clisp.org>
36552 * lib/stdio_.h (__attribute__): New macro.
36553 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36554 vsprintf): Specify __attribute__ __format__ for GCC.
36555 Suggested by Eric Blake.
36557 2007-03-09 Bruno Haible <bruno@clisp.org>
36559 * modules/printf-posix-tests: New file.
36560 * tests/test-printf-posix.sh: New file.
36561 * tests/test-printf-posix.c: New file.
36563 * modules/printf-posix: New file.
36564 * lib/printf.c: New file.
36565 * m4/printf-posix-rpl.m4: New file.
36566 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36568 * lib/stdio_.h (printf): New declaration.
36569 (format, __format__, ____printf____, ____scanf____, ____strftime____,
36570 ____strfmon____): New macros.
36571 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36574 2007-03-09 Bruno Haible <bruno@clisp.org>
36576 * tests/test-vasnprintf-posix2.sh: New file.
36577 * tests/test-vasnprintf-posix2.c: New file.
36578 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36579 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36580 (Makefile.am): Activate test-vasnprintf-posix2.sh.
36582 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36583 a locale dependent decimal point, rather than always '.'.
36585 2007-03-09 Eric Blake <ebb9@byu.net>
36587 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36588 spite of platforms like Tandem/NSK that define it to -1.
36590 2007-03-08 Bruno Haible <bruno@clisp.org>
36592 * modules/vprintf-posix-tests: New file.
36593 * tests/test-vprintf-posix.sh: New file.
36594 * tests/test-vprintf-posix.c: New file.
36595 * tests/test-printf-posix.h: New file.
36597 * modules/vprintf-posix: New file.
36598 * lib/vprintf.c: New file.
36599 * m4/vprintf-posix.m4: New file.
36600 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36602 * lib/stdio_.h (vprintf): New declaration.
36603 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36606 2007-03-08 Bruno Haible <bruno@clisp.org>
36608 * modules/fprintf-posix-tests: New file.
36609 * tests/test-fprintf-posix.sh: New file.
36610 * tests/test-fprintf-posix.c: New file.
36612 * modules/fprintf-posix: New file.
36613 * lib/fprintf.c: New file.
36614 * m4/fprintf-posix.m4: New file.
36615 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36617 * lib/stdio_.h (fprintf): New declaration.
36618 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36621 2007-03-08 Bruno Haible <bruno@clisp.org>
36623 * modules/vfprintf-posix-tests: New file.
36624 * tests/test-vfprintf-posix.sh: New file.
36625 * tests/test-vfprintf-posix.c: New file.
36626 * tests/test-fprintf-posix.h: New file.
36627 * tests/test-fprintf-posix.out: New file.
36629 * modules/vfprintf-posix: New file.
36630 * lib/vfprintf.c: New file.
36631 * m4/vfprintf-posix.m4: New file.
36632 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36634 * lib/stdio_.h (vfprintf): New declaration.
36635 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36638 2007-03-08 Bruno Haible <bruno@clisp.org>
36640 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36642 2007-03-08 Bruno Haible <bruno@clisp.org>
36644 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36645 instead of 'expr' invocations.
36646 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36647 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36648 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36649 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36650 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36651 Suggested by Paul Eggert.
36653 2007-03-08 Bruno Haible <bruno@clisp.org>
36655 * modules/fseterr-tests: New file.
36656 * tests/test-fseterr.c: New file.
36658 * modules/fseterr: New file.
36659 * lib/fseterr.h: New file.
36660 * lib/fseterr.c: New file.
36662 2007-03-08 Bruno Haible <bruno@clisp.org>
36664 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36665 * lib/getopt_.h: Likewise.
36666 * lib/mbswidth.h: Likewise.
36667 * lib/setenv.h: Likewise.
36668 * lib/vasnprintf.h: Likewise.
36669 * lib/vasprintf.h: Likewise.
36670 * lib/verror.h: Likewise.
36671 * lib/xsetenv.h: Likewise.
36672 * lib/xvasprintf.h: Likewise.
36674 2007-03-08 Jim Meyering <jim@meyering.net>
36676 * users.txt: Add parted.
36678 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36680 2007-03-07 Bruno Haible <bruno@clisp.org>
36682 * m4/printf.m4: Make the shell script snippets copy&pastable.
36684 2007-03-02 Bruno Haible <bruno@clisp.org>
36686 * lib/netinet_in_.h: New file.
36687 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36688 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36689 * modules/netinet_in (Files): Add lib/netinet_in_.h.
36690 (Depends-on): Add absolute-header.
36691 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36694 2007-03-03 Bruno Haible <bruno@clisp.org>
36696 * lib/sys_select_.h: New file.
36697 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36698 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36699 * modules/sys_select (Files): Add lib/sys_select_.h.
36700 (Depends-on): Add absolute-header.
36701 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36704 2007-03-02 Bruno Haible <bruno@clisp.org>
36706 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36707 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36709 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36710 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36711 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36712 * modules/sys_socket (Depends-on): Add absolute-header.
36713 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36714 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36715 (Include): Remove requirement of inclusion of <sys/types.h>.
36717 2007-03-02 Bruno Haible <bruno@clisp.org>
36719 * lib/byteswap_.h (bswap_32): Fix formula.
36721 2007-03-06 Bruno Haible <bruno@clisp.org>
36723 * modules/sprintf-posix-tests: New file.
36724 * tests/test-sprintf-posix.c: New file.
36726 * modules/sprintf-posix: New file.
36727 * lib/sprintf.c: New file.
36728 * m4/sprintf-posix.m4: New file.
36729 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36731 * lib/stdio_.h (sprintf): New declaration.
36732 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36735 2007-03-06 Bruno Haible <bruno@clisp.org>
36737 * modules/vsprintf-posix-tests: New file.
36738 * tests/test-vsprintf-posix.c: New file.
36739 * tests/test-sprintf-posix.h: New file.
36741 * modules/vsprintf-posix: New file.
36742 * lib/vsprintf.c: New file.
36743 * m4/vsprintf-posix.m4: New file.
36744 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36746 * lib/stdio_.h (vsprintf): New declaration.
36747 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36750 2007-03-06 Bruno Haible <bruno@clisp.org>
36752 * modules/vsnprintf (Depend-on): Remove minmax.
36754 2007-03-06 Bruno Haible <bruno@clisp.org>
36756 * modules/snprintf-posix-tests: New file.
36757 * tests/test-snprintf-posix.c: New file.
36759 * modules/snprintf-posix: New file.
36760 * m4/snprintf-posix.m4: New file.
36761 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36763 (gl_FUNC_SNPRINTF): Invoke it.
36764 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36765 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36767 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36769 2007-03-06 Bruno Haible <bruno@clisp.org>
36771 * modules/vsnprintf-posix-tests: New file.
36772 * tests/test-vsnprintf-posix.c: New file.
36773 * tests/test-snprintf-posix.h: New file.
36775 * modules/vsnprintf-posix: New file.
36776 * m4/vsnprintf-posix.m4: New file.
36777 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36779 (gl_FUNC_VSNPRINTF): Invoke it.
36780 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36781 * lib/stdio_.h (vsnprintf): Define as a replacement if
36782 REPLACE_VSNPRINTF is set.
36783 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36785 2007-03-06 Bruno Haible <bruno@clisp.org>
36787 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36788 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36790 2007-03-06 Bruno Haible <bruno@clisp.org>
36792 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36793 (asinl): Declare also if HAVE_DECL_ASINL is set.
36794 (atanl): Declare also if HAVE_DECL_ATANL is set.
36795 (ceill): Declare also if HAVE_DECL_CEILL is set.
36796 (cosl): Declare also if HAVE_DECL_COSL is set.
36797 (expl): Declare also if HAVE_DECL_EXPL is set.
36798 (floorl): Declare also if HAVE_DECL_FLOORL is set.
36799 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36800 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36801 (logl): Declare also if HAVE_DECL_LOGL is set.
36802 (sinl): Declare also if HAVE_DECL_SINL is set.
36803 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36804 (tanl): Declare also if HAVE_DECL_TANL is set.
36805 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36806 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36807 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36808 declaration of frexpl, ldexpl.
36809 * modules/printf-frexpl (Depends-on): Add math.
36810 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36812 2007-03-05 Bruno Haible <bruno@clisp.org>
36814 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36815 frexpl and ldexpl are declared.
36816 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36818 2007-03-05 Bruno Haible <bruno@clisp.org>
36820 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36821 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36823 2007-03-05 Bruno Haible <bruno@clisp.org>
36825 * lib/stdio_.h: Include <stddef.h>.
36827 2007-03-05 Bruno Haible <bruno@clisp.org>
36829 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36831 2007-03-05 Bruno Haible <bruno@clisp.org>
36833 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36834 NetBSD 4, from Ralf Wildenhues.
36836 2007-03-04 Bruno Haible <bruno@clisp.org>
36838 * lib/vasprintf.h: Update #if logic for the case when the functions
36839 exist but are overridden.
36841 2007-03-04 Bruno Haible <bruno@clisp.org>
36843 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36844 implementations: glibc-2.4 and MacOS X 10.3.
36845 * tests/test-vasnprintf-posix.c (test_function): Test also the case
36846 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36847 * tests/test-vasprintf-posix.c (test_function): Likewise.
36849 2007-03-04 Bruno Haible <bruno@clisp.org>
36851 * modules/vasprintf-posix-tests: New file.
36852 * tests/test-vasprintf-posix.c: New file.
36854 * modules/vasprintf-posix: New file.
36855 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36857 * m4/vasprintf-posix.m4: New file.
36858 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36860 (gl_FUNC_VASPRINTF): Invoke it.
36861 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36863 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36865 2007-03-04 Bruno Haible <bruno@clisp.org>
36867 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36868 REPLACE_GETTIMEOFDAY.
36869 * modules/sys_time (Makefile.am): Likewise.
36870 * m4/sys_time_h.m4: Likewise.
36871 * m4/gettimeofday.m4: Likewise.
36873 2007-03-04 Bruno Haible <bruno@clisp.org>
36875 * modules/vasnprintf-posix-tests: New file.
36876 * tests/test-vasnprintf-posix.c: New file.
36878 * modules/vasnprintf-posix: New file.
36879 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36881 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36882 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36883 REPLACE_VASNPRINTF is defined.
36884 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36885 gl_FUNC_VASNPRINTF.
36886 (gl_FUNC_VASNPRINTF): Invoke it.
36887 * m4/vasnprintf-posix.m4: New file.
36888 * m4/printf.m4: New file.
36890 2007-03-04 Bruno Haible <bruno@clisp.org>
36892 Compile progreloc.c only if --enable-relocatable is specified.
36893 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36894 if --enable-relocatable was specified.
36895 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36898 2007-03-04 Jim Meyering <jim@meyering.net>
36900 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36901 Use it consistently, rather than enumerating errno constants.
36903 2007-03-04 Bruno Haible <bruno@clisp.org>
36905 * modules/xvasprintf-tests: New file.
36906 * tests/test-xvasprintf.c: New file.
36908 * modules/vasprintf-tests: New file.
36909 * tests/test-vasprintf.c: New file.
36911 * modules/vasnprintf-tests: New file.
36912 * tests/test-vasnprintf.c: New file.
36914 * modules/vsnprintf-tests: New file.
36915 * tests/test-vsnprintf.c: New file.
36917 * modules/snprintf-tests: New file.
36918 * tests/test-snprintf.c: New file.
36920 2007-03-04 Bruno Haible <bruno@clisp.org>
36922 Compile relocatable.c only if --enable-relocatable is specified.
36923 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36924 gl_RELOCATABLE_LIBRARY.
36925 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36926 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36927 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36928 gl_RELOCATABLE_LIBRARY.
36929 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36930 (Makefile.am): Remove lib_SOURCES.
36931 * modules/relocatable-lib-lgpl (configure.ac): Invoke
36932 gl_RELOCATABLE_LIBRARY.
36933 (Makefile.am): Remove lib_SOURCES.
36934 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36936 * modules/relocatable-prog-wrapper (configure.ac): Invoke
36937 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36939 2007-03-04 Bruno Haible <bruno@clisp.org>
36941 * modules/argmatch-tests: New file.
36942 * tests/test-argmatch.c: New file.
36944 * tests/test-allocsa.c (main): Halve the number of loop runs.
36946 * modules/alloca-opt-tests: New file.
36947 * tests/test-alloca-opt.c: New file.
36949 2007-03-04 Jim Meyering <jim@meyering.net>
36951 Work around difference between Linux ACLs and Solaris 10 ZFS.
36952 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36955 2007-03-03 Bruno Haible <bruno@clisp.org>
36957 * modules/relocatable-prog (Depends-on): Add back progreloc's
36958 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36960 2007-03-03 Bruno Haible <bruno@clisp.org>
36962 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36963 * modules/relocatable-lib: New file.
36965 2007-03-03 Bruno Haible <bruno@clisp.org>
36967 * modules/relocatable-prog: Renamed from modules/relocatable.
36968 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36970 2007-03-03 Bruno Haible <bruno@clisp.org>
36972 * modules/relocatable-script (Files): Add doc/relocatable.texi,
36973 m4/relocatable-lib.m4.
36974 (Depends-on): Remove 'relocatable'.
36975 (configure.ac): Add gl_RELOCATABLE_NOP.
36977 2007-03-03 Bruno Haible <bruno@clisp.org>
36979 * modules/relocatable-prog-wrapper: New file.
36980 * modules/relocatable (Depends-on): Add it. Remove all other
36981 dependencies except progname.
36982 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36984 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36985 (gl_FUNC_STRERROR): Nop.
36986 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36988 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36989 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36991 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36992 (gl_FUNC_READLINK): Update.
36994 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36996 2007-03-03 Bruno Haible <bruno@clisp.org>
36998 * lib/xreadlink.c: Include <unistd.h> unconditionally.
36999 * modules/xreadlink (Depends-on): Add unistd.
37000 * modules/xreadlink-with-size (Depends-on): Likewise.
37002 2007-03-03 Bruno Haible <bruno@clisp.org>
37004 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37005 extracted from gt_FUNC_SETENV.
37006 (gt_FUNC_SETENV): Remove macro.
37007 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37008 remove gt_FUNC_SETENV.
37010 2007-03-03 Bruno Haible <bruno@clisp.org>
37012 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37013 ENABLE_RELOCATABLE here.
37014 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37016 2007-03-03 Bruno Haible <bruno@clisp.org>
37018 * modules/rbtreehash-list-tests (Depends-on): Add progname.
37019 * tests/test-rbtreehash_list.c: Include progname.h.
37020 (main): Call set_program_name.
37022 * modules/rbtree-oset-tests (Depends-on): Add progname.
37023 * tests/test-rbtree_oset.c: Include progname.h.
37024 (main): Call set_program_name.
37026 * modules/rbtree-list-tests (Depends-on): Add progname.
37027 * tests/test-rbtree_list.c: Include progname.h.
37028 (main): Call set_program_name.
37030 * modules/linked-list-tests (Depends-on): Add progname.
37031 * tests/test-linked_list.c: Include progname.h.
37032 (main): Call set_program_name.
37034 2007-03-03 Bruno Haible <bruno@clisp.org>
37036 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37037 All uses of __restrict changed to _Restrict_.
37038 * lib/glob_.h (__restrict): Remove macro.
37040 2007-03-02 Bruno Haible <bruno@clisp.org>
37042 * modules/gettext (configure.ac): Require gettext infrastructure
37043 from version 0.16.1.
37045 2007-03-02 Bruno Haible <bruno@clisp.org>
37047 * modules/linkedhash-list-tests (Depends-on): Add progname.
37048 * tests/test-linkedhash_list.c: Include progname.h.
37049 (main): Call set_program_name.
37051 * modules/carray-list-tests (Depends-on): Add progname.
37052 * tests/test-carray_list.c: Include progname.h.
37053 (main): Call set_program_name.
37055 * modules/avltreehash-list-tests (Depends-on): Add progname.
37056 * tests/test-avltreehash_list.c: Include progname.h.
37057 (main): Call set_program_name.
37059 * modules/avltree-oset-tests (Depends-on): Add progname.
37060 * tests/test-avltree_oset.c: Include progname.h.
37061 (main): Call set_program_name.
37063 * modules/avltree-list-tests (Depends-on): Add progname.
37064 * tests/test-avltree_list.c: Include progname.h.
37065 (main): Call set_program_name.
37067 * modules/array-oset-tests (Depends-on): Add progname.
37068 * tests/test-array_oset.c: Include progname.h.
37069 (main): Call set_program_name.
37071 * modules/array-list-tests (Depends-on): Add progname.
37072 * tests/test-array_list.c: Include progname.h.
37073 (main): Call set_program_name.
37075 * modules/argp-tests (Depends-on): Add progname.
37076 * tests/test-argp.c: Include argp.h first. Include progname.h.
37077 (main): Call set_program_name.
37079 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
37081 * doc/gnulib-tool.texi (Initial import): Reword description of
37082 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37083 limited effect even if defined after the first system include.
37085 2007-03-01 Bruno Haible <bruno@clisp.org>
37087 * build-aux/config.libpath: Update to libtool-1.5.22.
37088 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37090 2007-03-01 Bruno Haible <bruno@clisp.org>
37092 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37094 Reported by Ralf Wildenhues.
37096 2007-03-01 Bruno Haible <bruno@clisp.org>
37098 * build-aux/install-reloc: Remove object files left over by some
37100 Reported by Ralf Wildenhues.
37102 2007-03-01 Bruno Haible <bruno@clisp.org>
37104 * build-aux/install-reloc: Break long lines.
37106 2007-03-01 Bruno Haible <bruno@clisp.org>
37108 * doc/relocatable.texi: Document that it may not work on OpenBSD.
37109 Reported by Ralf Wildenhues.
37111 2007-03-01 Bruno Haible <bruno@clisp.org>
37113 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37114 include ordering constraints.
37116 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
37118 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37119 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37120 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37121 as another example.
37122 * lib/time_.h: Fix misspelling.
37123 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37124 Require gl_HEADER_TIME_H_DEFAULTS.
37125 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37126 * m4/time_r.m4 (gl_TIME_R): Likewise.
37127 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37129 2007-03-01 Bruno Haible <bruno@clisp.org>
37131 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37132 * m4/utimens.m4 (gl_UTIMENS): Likewise.
37134 2007-03-01 Jim Meyering <jim@meyering.net>
37136 * modules/xreadlink (Maintainer): Add my name.
37137 * modules/xreadlink-with-size (Depends-on): Alphabetize.
37139 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
37140 Bruno Haible <bruno@clisp.org>
37142 * build-aux/install-reloc: Compile also c-ctype.c.
37143 * build-aux/relocatable.sh.in: New file.
37144 * doc/relocatable.texi: New file.
37145 * doc/relocatable-maint.texi: New file.
37146 * doc/gnulib.texi: Include relocatable-maint.texi.
37147 * lib/progreloc.c: Include unistd.h unconditionally.
37148 * lib/relocwrapper.c: Include unistd.h unconditionally.
37150 (add_dotbin): Use c_tolower.
37151 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37152 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37153 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37154 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37155 to m4/relocatable-lib.m4.
37156 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37157 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37158 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37159 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37160 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37161 * modules/relocatable: New file.
37162 * modules/relocatable-lib: New file.
37163 * modules/relocatable-script: New file.
37165 2007-02-28 Bruno Haible <bruno@clisp.org>
37167 Import --enable-relocatable infrastructure.
37168 * build-aux/config.libpath: New file, from GNU gettext.
37169 * build-aux/install-reloc: New file, from GNU gettext.
37170 * build-aux/reloc-ldflags: New file, from GNU gettext.
37171 * lib/relocatable.h: New file, from GNU gettext.
37172 * lib/relocatable.c: New file, from GNU gettext.
37173 * lib/relocwrapper.c: New file, from GNU gettext.
37174 * m4/relocatable.m4: New file, from GNU gettext.
37176 2007-02-28 Bruno Haible <bruno@clisp.org>
37178 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37180 * modules/xreadlink: New file, from GNU gettext with modifications.
37181 * lib/xreadlink.c: New file, from GNU gettext.
37182 * lib/xreadlink.h: Add comments.
37183 (xreadlink): New declaration.
37185 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37186 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37187 lib/xreadlink-with-size.c.
37188 (configure.ac): Remove gl_XREADLINK invocation.
37189 (Makefile.am): Augment lib_SOURCES.
37190 * m4/xreadlink.m4: Remove file.
37191 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37192 (xreadlink_with_size): Renamed from xreadink.
37193 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37194 * modules/canonicalize (Depends-on): Replace xreadlink with
37195 xreadlink-with-size.
37196 * lib/canonicalize.c (canonicalize_filename_mode): Update.
37198 2007-02-25 Jim Meyering <jim@meyering.net>
37200 * build-aux/announce-gen: When complaining about excess arguments,
37203 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
37205 * README: Document signed integer overflow situation more
37208 2007-02-25 Bruno Haible <bruno@clisp.org>
37210 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37211 'a' or 'A' conversion.
37213 2007-02-25 Bruno Haible <bruno@clisp.org>
37215 * modules/filename: Renamed from modules/pathname.
37216 (Files): Replace lib/pathname.h with lib/filename.h. Replace
37217 lib/concatpath.c with lib/concat-filename.c.
37218 (Makefile.am): Update.
37219 (Include): Replace pathname.h with filename.h.
37220 * lib/filename.h: Renamed from lib/pathname.h.
37221 (concatenated_filename): Renamed from concatenated_pathname.
37222 * lib/concat-filename.c: Renamed from lib/concatpath.c.
37223 (concatenated_filename): Renamed from concatenated_pathname.
37224 * lib/findprog.c: Include filename.h instead of pathname.h.
37225 (find_in_path): Update.
37226 * lib/javacomp.c: Include filename.h instead of pathname.h.
37227 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37228 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37229 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37230 is_oldgcj_14_13_usable, is_javac_usable): Update.
37231 * lib/javaexec.c: Include filename.h instead of pathname.h.
37232 (execute_java_class): Update.
37233 * modules/findprog: Update.
37234 * modules/javacomp: Update.
37235 * modules/javaexec: Update.
37236 * MODULES.html.sh (File system functions): Add 'filename', remove
37239 2007-02-25 Bruno Haible <bruno@clisp.org>
37241 * modules/printf-frexpl-tests: New file.
37242 * tests/test-printf-frexpl.c: New file.
37244 * modules/printf-frexpl: New file.
37245 * lib/printf-frexpl.h: New file.
37246 * lib/printf-frexpl.c: New file.
37247 * m4/printf-frexpl.m4: New file.
37249 2007-02-25 Bruno Haible <bruno@clisp.org>
37251 * modules/printf-frexp-tests: New file.
37252 * tests/test-printf-frexp.c: New file.
37254 * modules/printf-frexp: New file.
37255 * lib/printf-frexp.h: New file.
37256 * lib/printf-frexp.c: New file.
37257 * m4/printf-frexp.m4: New file.
37259 2007-02-25 Bruno Haible <bruno@clisp.org>
37261 Assume automake >= 1.10 for the tests.
37262 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37263 * modules/arctwo-tests: Likewise.
37264 * modules/argp-tests: Likewise.
37265 * modules/avltree-list-tests: Likewise.
37266 * modules/avltree-oset-tests: Likewise.
37267 * modules/avltreehash-list-tests: Likewise.
37268 * modules/carray-list-tests: Likewise.
37269 * modules/crc-tests: Likewise.
37270 * modules/des-tests: Likewise.
37271 * modules/gc-arcfour-tests: Likewise.
37272 * modules/gc-arctwo-tests: Likewise.
37273 * modules/gc-des-tests: Likewise.
37274 * modules/gc-hmac-md5-tests: Likewise.
37275 * modules/gc-hmac-sha1-tests: Likewise.
37276 * modules/gc-md2-tests: Likewise.
37277 * modules/gc-md4-tests: Likewise.
37278 * modules/gc-md5-tests: Likewise.
37279 * modules/gc-pbkdf2-sha1-tests: Likewise.
37280 * modules/gc-rijndael-tests: Likewise.
37281 * modules/gc-sha1-tests: Likewise.
37282 * modules/gc-tests: Likewise.
37283 * modules/getaddrinfo-tests: Likewise.
37284 * modules/hmac-md5-tests: Likewise.
37285 * modules/hmac-sha1-tests: Likewise.
37286 * modules/linked-list-tests: Likewise.
37287 * modules/linkedhash-list-tests: Likewise.
37288 * modules/lock-tests: Likewise.
37289 * modules/md2-tests: Likewise.
37290 * modules/md4-tests: Likewise.
37291 * modules/md5-tests: Likewise.
37292 * modules/rbtree-list-tests: Likewise.
37293 * modules/rbtree-oset-tests: Likewise.
37294 * modules/rbtreehash-list-tests: Likewise.
37295 * modules/read-file-tests: Likewise.
37296 * modules/rijndael-tests: Likewise.
37297 * modules/stdint-tests: Likewise.
37298 * modules/tls-tests: Likewise.
37300 2007-02-24 Bruno Haible <bruno@clisp.org>
37302 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37303 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37304 function; instead check whether isnan with a double argument links.
37305 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37306 function; instead check whether isnan with a 'long double' argument
37308 Reported by Eric Blake <ebb9@byu.net>.
37310 2007-02-24 Bruno Haible <bruno@clisp.org>
37312 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37314 * lib/isnanl.c: Remove all code. Just include isnan.c.
37315 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37317 2007-02-25 Jim Meyering <jim@meyering.net>
37319 Avoid conflicting types for 'unsetenv' on FreeBSD.
37320 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37321 conflicting with FreeBSD's (5.0 and 6.1) function declaration
37324 2007-02-24 Bruno Haible <bruno@clisp.org>
37326 * modules/isnanl-nolibm-tests: New file.
37327 * tests/test-isnanl.c: New file.
37329 * modules/isnanl-nolibm: New file.
37330 * lib/isnanl.h: New file.
37331 * lib/isnanl.c: New file.
37332 * m4/isnanl.m4: New file.
37334 2007-02-24 Bruno Haible <bruno@clisp.org>
37336 * modules/isnan-nolibm-tests: New file.
37337 * tests/test-isnan.c: New file.
37339 * modules/isnan-nolibm: New file.
37340 * lib/isnan.h: New file.
37341 * lib/isnan.c: New file.
37342 * m4/isnan.m4: New file.
37344 2007-02-24 Bruno Haible <bruno@clisp.org>
37346 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37347 assume that an exponent fits in 20 bits.
37349 2007-02-24 Jim Meyering <jim@meyering.net>
37351 * m4/regex.m4: Update the description of the configure-time option,
37352 --without-included-regex, to state accurately what the defaults are,
37353 and perhaps to give people an idea why using this option is risky.
37355 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
37357 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37358 loops on small arguments. This attempts to avoid the problem
37359 Bruno Haible reported for AIX 4.3.2 in
37360 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37362 2007-02-23 Bruno Haible <bruno@clisp.org>
37364 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37365 Needed for help2man.
37367 2007-02-23 Karl Berry <karl@gnu.org>
37369 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37370 exists, foo.h should be cvs-ignored, not committed.
37372 2007-02-23 Eric Blake <ebb9@byu.net>
37374 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
37375 * lib/stat-time.h (includes): Likewise.
37376 * lib/utimecmp.c (includes): Likewise.
37377 * lib/utimens.h (includes): Likewise.
37378 * lib/getdate.y (includes): Also include "timespec.h" for use
37379 internal to the module.
37380 * modules/utimens (Depends-on): Revert yesterday's patch.
37381 * modules/nanosleep (Depends-on): Add missing dependency.
37383 2007-02-22 Bruno Haible <bruno@clisp.org>
37385 * lib/glob.c: Don't include getlogin_r.h.
37387 2007-02-22 Jim Meyering <jim@meyering.net>
37389 * modules/utimens (Depends-on): Add timespec, required for
37390 utimens.h's inclusion of timespec.h.
37392 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
37394 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37395 long unreadable paths in GNU/Linux. Problem reported by Andreas
37397 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37398 I'll try to think of a better way to fix the Solaris problem.
37400 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37401 like glibc; on Solaris 10, it fails with errno == EINVAL.
37402 POSIX says the behavior is unspecified if the first argument is NULL,
37403 so play it safe and never pass NULL to the system getcwd.
37405 2007-02-21 Jim Meyering <jim@meyering.net>
37407 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37408 of gettimeofday. It would conflict with the one now always
37409 provided via sys_time_.h. Reported by Matthew Woehlke, as
37410 an IRIX 6.5 build failure.
37412 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
37414 Minor fixups to port to Solaris 10 with Sun C 5.8.
37415 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37416 * modules/getcwd (Depends-on): Add dirfd.
37417 * lib/putenv.c (putenv): #undef it.
37418 (rpl_putenv): New decl.
37419 (malloc, free): Include <stdlib.h> rather than prototyping separately.
37421 2007-02-20 Bruno Haible <bruno@clisp.org>
37423 * modules/stdio-tests: New file.
37424 * tests/test-stdio.c: New file.
37426 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37427 (Depends-on): Add stdio.
37428 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37429 (Include): Use <stdio.h> instead of vsnprintf.h.
37430 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37431 HAVE_DECL_VSNPRINTF.
37432 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37434 * modules/snprintf (Files): Remove lib/snprintf.h.
37435 (Depends-on): Add stdio.
37436 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37437 (Include): Use <stdio.h> instead of snprintf.h.
37438 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37439 HAVE_DECL_SNPRINTF.
37440 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37441 * lib/getaddrinfo.c: Likewise.
37443 * modules/stdio: New file.
37444 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37445 * lib/snprintf.h: Remove file.
37446 * lib/vsnprintf.h: Remove file.
37447 * lib/.cppi-disable: Remove snprintf.h.
37448 * m4/stdio_h.m4: New file.
37449 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37451 2007-02-20 Jim Meyering <jim@meyering.net>
37453 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37454 used by e.g., mingw. From Bruno Haible.
37456 2007-02-19 Bruno Haible <bruno@clisp.org>
37458 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37460 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37462 2007-02-19 Bruno Haible <bruno@clisp.org>
37464 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37467 2007-02-19 Bruno Haible <bruno@clisp.org>
37469 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37471 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37473 2007-02-19 Jim Meyering <jim@meyering.net>
37475 Don't use FD after a successful "fdopendir (fd)".
37476 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37477 Reset it by calling dirfd on the just-obtained DIR*.
37479 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37480 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37482 2007-02-18 Bruno Haible <bruno@clisp.org>
37484 * lib/readlink.c: Include <unistd.h>.
37485 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37487 * modules/readlink (Depends-on): Add unistd.
37488 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37489 (Include): Add <unistd.h>.
37491 * lib/getlogin_r.h: Remove file.
37492 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37493 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37494 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37495 HAVE_DECL_GETLOGIN_R.
37496 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37497 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37498 (Include): Use <unistd.h> instead of getlogin_r.h.
37500 * lib/getcwd.h: Remove file.
37501 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37502 * lib/xgetcwd.c: Likewise.
37503 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37504 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37505 * modules/getcwd (Files): Remove lib/getcwd.h.
37506 (Depends-on): Add unistd.
37507 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37508 (Include): Use <unistd.h> instad of getcwd.h.
37510 * lib/ftruncate.c: Include <unistd.h> first.
37511 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37512 Set HAVE_FTRUNCATE.
37513 * modules/ftruncate (Depends-on): Add unistd.
37514 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37516 * lib/fchdir.c: Include <unistd.h> first.
37517 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37518 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37519 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37520 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37521 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37523 * lib/dup2.c: Include <unistd.h> first.
37524 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37526 * modules/dup2 (Depends-on): Add unistd.
37527 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37529 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37530 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37531 REPLACE_CHOWN. Don't define chown as a macro here.
37532 * modules/chown (Depends-on): Add unistd.
37533 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37535 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37536 Add definition for GL_LINK_WARNING.
37537 (chown, dup2): New declarations.
37538 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37540 (ftruncate): New declaration.
37541 (getcwd): New declaration, taken from old getcwd.h.
37542 (getlogin_r): New declaration, taken from old getlogin_r.h.
37543 (readlink): New declaration.
37544 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37545 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37546 (gl_PREREQ_UNISTD): Remove macro.
37547 (gl_UNISTD_MODULE_INDICATOR): New macro.
37548 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37549 many new variables. Don't set UNISTD_H.
37550 * modules/unistd (Description): Change.
37551 (Depends-on): Add link-warning.
37552 (configure.ac): Update.
37553 (Makefile.am): Create unistd.h always. Substitute many new variables
37556 2007-02-18 Bruno Haible <bruno@clisp.org>
37558 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37559 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37561 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37562 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37563 * lib/getsubopt.h: Remove file.
37564 * modules/getsubopt (Files): Remove lib/getsubopt.h.
37565 (Depends-on): Add stdlib.
37566 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37567 (Includes): Use <stdlib.h> instead of getsubopt.h.
37568 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37569 Set HAVE_GETSUBOPT.
37570 * lib/getsubopt.c: Don't include getsubopt.h.
37572 2007-02-18 Bruno Haible <bruno@clisp.org>
37574 * modules/fchdir (Depends-on): Add dup2.
37576 2007-02-18 Bruno Haible <bruno@clisp.org>
37578 * lib/stdlib_.h: Handle glibc's special invocation convention
37581 2007-02-18 Bruno Haible <bruno@clisp.org>
37583 * modules/stdlib-tests: New file.
37584 * tests/test-stdlib.c: New file.
37586 * modules/mkstemp (Files): Remove lib/mkstemp.h.
37587 (Depends-on): Add stdlib.
37588 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37589 (Includes): Use <stdlib.h> instead of mkstemp.h.
37590 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37591 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37592 * lib/mkstemp.c: Don't include mkstemp.h.
37593 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37594 * lib/stdlib--.h: Don't include mkstemp.h.
37596 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37597 (Depends-on): Add stdlib.
37598 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37599 (Includes): Use <stdlib.h> instead of mkdtemp.h.
37600 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37602 * lib/mkdtemp.c: Don't include mkdtemp.h.
37603 * lib/clean-temp.c: Don't include mkdtemp.h.
37605 * modules/exit (Files): Remove lib/exit.h.
37606 (Depends-on): Add stdlib.
37607 (Makefile.am): Remove lib_SOURCES.
37608 (Include): Use <stdlib.h> instead of exit.h.
37609 * lib/argmatch.c: Don't include exit.h.
37610 * lib/execute.c: Likewise.
37611 * lib/pagealign_alloc.c: Likewise.
37612 * lib/pipe.c: Likewise.
37613 * lib/wait-process.c: Likewise.
37614 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37615 * lib/exitfail.c: Likewise.
37616 * lib/savewd.c: Likewise.
37617 * lib/xsetenv.c: Likewise.
37619 * modules/stdlib: New file.
37620 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37621 and extra comments about mkstemp().
37622 * lib/exit.h: Remove file.
37623 * lib/mkdtemp.h: Remove file.
37624 * lib/mkstemp.h: Remove file.
37625 * m4/stdlib_h.m4: New file.
37626 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37628 2007-02-18 Bruno Haible <bruno@clisp.org>
37630 * modules/math-tests: New file.
37631 * tests/test-math.c: New file.
37633 * modules/math: New file.
37634 * modules/mathl (Files): Remove lib/mathl.h.
37635 (Depends-on): Add math.
37636 (Makefile.am): Don't mention mathl.h.
37637 (Include): Use <math.h> instead of mathl.h.
37638 * lib/math_.h: New file.
37639 * lib/mathl.h: Remove file.
37640 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37642 * lib/asinl.c: Likewise.
37643 * lib/atanl.c: Likewise.
37644 * lib/ceill.c: Likewise.
37645 * lib/cosl.c: Likewise.
37646 * lib/expl.c: Likewise.
37647 * lib/floorl.c: Likewise.
37648 * lib/frexpl.c: Likewise.
37649 * lib/ldexpl.c: Likewise.
37650 * lib/logl.c: Likewise.
37651 * lib/sincosl.c: Likewise.
37652 * lib/sinl.c: Likewise.
37653 * lib/sqrtl.c: Likewise.
37654 * lib/tanl.c: Likewise.
37655 * lib/trigl.c: Likewise.
37656 * m4/math_h.m4: New file.
37657 * MODULES.html.sh (Mathematics): Add math.
37659 2007-02-17 Bruno Haible <bruno@clisp.org>
37661 * modules/wctype-tests: New file.
37662 * tests/test-wctype.c: New file.
37664 * modules/wchar-tests: New file.
37665 * tests/test-wchar.c: New file.
37667 * modules/unistd-tests: New file.
37668 * tests/test-unistd.c: New file.
37670 * modules/time-tests: New file.
37671 * tests/test-time.c: New file.
37673 * modules/sysexits-tests: New file.
37674 * tests/test-sysexits.c: New file.
37676 * modules/sys_time-tests: New file.
37677 * tests/test-sys_time.c: New file.
37679 * modules/sys_stat-tests: New file.
37680 * tests/test-sys_stat.c: New file.
37682 * modules/sys_socket-tests: New file.
37683 * tests/test-sys_socket.c: New file.
37685 * modules/sys_select-tests: New file.
37686 * tests/test-sys_select.c: New file.
37688 * modules/string-tests: New file.
37689 * tests/test-string.c: New file.
37691 * modules/stdbool-tests: New file.
37692 * tests/test-stdbool.c: New file.
37694 * modules/netinet_in-tests: New file.
37695 * tests/test-netinet_in.c: New file.
37697 * modules/inttypes-tests: New file.
37698 * tests/test-inttypes.c: New file.
37700 * modules/fcntl-tests: New file.
37701 * tests/test-fcntl.c: New file.
37703 * modules/byteswap-tests: New file.
37704 * tests/test-byteswap.c: New file.
37706 * modules/arpa_inet-tests: New file.
37707 * tests/test-arpa_inet.c: New file.
37709 2007-02-17 Bruno Haible <bruno@clisp.org>
37711 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37712 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37713 if the corresponding module is not enabled. Emit link warnings if
37714 the function is used nevertheless.
37715 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37716 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37717 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37718 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37719 * modules/inttypes (Depends-on): Add link-warning.
37720 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37721 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37722 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37723 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37724 * modules/imaxdiv (configure.ac): Likewise.
37725 * modules/strtoimax (configure.ac): Likewise.
37726 * modules/strtoumax (configure.ac): Likewise.
37728 2007-02-17 Bruno Haible <bruno@clisp.org>
37730 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37731 gl_STRING_MODULE_INDICATOR_DEFAULTS.
37732 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37733 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37735 2007-02-17 Bruno Haible <bruno@clisp.org>
37737 * modules/link-warning: New file.
37738 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37739 * lib/string_.h (GL_LINK_WARNING): Remove definition.
37740 * modules/string (Depends-on): Add link-warning.
37741 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37743 * MODULES.html.sh (Support for building libraries and executables): Add
37746 2007-02-17 Bruno Haible <bruno@clisp.org>
37748 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37749 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37750 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37753 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
37754 Bruno Haible <bruno@clisp.org>
37756 * modules/tmpfile: New file.
37757 * lib/tmpfile.c: New file.
37758 * m4/tmpfile.m4: New file.
37759 * MODULES.html.sh (func_all_modules): New section "Input/output".
37761 2007-02-15 Bruno Haible <bruno@clisp.org>
37763 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37764 (supports_delete_on_close): New function.
37765 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37767 2007-02-14 Bruno Haible <bruno@clisp.org>
37769 * modules/mbspcasecmp-tests: New file.
37770 * tests/test-mbspcasecmp.sh: New file.
37771 * tests/test-mbspcasecmp.c: New file.
37773 New module mbspcasecmp.
37774 * modules/mbspcasecmp: New file.
37775 * lib/mbspcasecmp.c: New file.
37776 * lib/string_.h (strncasecmp): Change warning message.
37777 (mbspcasecmp): New declaration.
37778 * m4/mbspcasecmp.m4: New file.
37779 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37780 GNULIB_MBSPCASECMP.
37781 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37782 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37784 2007-02-14 Bruno Haible <bruno@clisp.org>
37786 * modules/mbsncasecmp-tests: New file.
37787 * tests/test-mbsncasecmp.sh: New file.
37788 * tests/test-mbsncasecmp.c: New file.
37790 New module mbsncasecmp.
37791 * modules/mbsncasecmp: New file.
37792 * lib/mbsncasecmp.c: New file.
37793 * lib/string_.h (mbsncasecmp): New declaration.
37794 * m4/mbsncasecmp.m4: New file.
37795 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37796 GNULIB_MBSNCASECMP.
37797 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37798 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37800 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
37802 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37803 Verify that it doesn't overlap with our flags.
37804 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37805 do not have the desired effect in multibyte locales; instead, use
37807 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37808 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
37809 we don't require GNU fnmatch ourselves (if our users require it, they
37810 should do so explicitly).
37812 Fix regex code so it doesn't rely on strcasecmp.
37813 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37814 Otherwise, include gnulib's langinfo.h.
37815 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37816 undesirable behavior in non-C locales. Instead, rely on localecharset.
37817 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37818 * modules/regex (FILES): Remove m4/codeset.m4.
37819 (Depends-on): Add localcharset. Remove strcase.
37821 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37823 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37824 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37826 2007-02-13 Bruno Haible <bruno@clisp.org>
37828 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37829 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37831 2007-02-12 Bruno Haible <bruno@clisp.org>
37833 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37834 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37835 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37836 time warning rather than a link error.
37838 2007-02-12 Bruno Haible <bruno@clisp.org>
37840 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37841 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37842 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37844 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37846 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37849 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37851 New module 'time', so that apps can include <time.h> as per
37852 POSIX and GNU instead of separate include files like time_r.h
37853 and timegm.h. This implementation tries out a simpler approach
37854 for replacing decls in standard include files (as compared to
37855 the string module), somewhat as an experiment.
37857 * config/srclist.txt: Comment out mktime.c for now.
37858 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37859 since it doesn't apply any more. Use generic wording instead.
37860 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37862 * lib/time_.h, m4/time_h.m4, modules/time: New files.
37863 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37864 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37865 Don't include <sys/types.h>; no longer needed since we assume C89.
37866 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37867 * lib/strftime.c: Likewise.
37868 * lib/time_r.c: Likewise.
37869 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37870 * lib/nanosleep.c: Include <time.h> first, to check interface.
37871 * lib/strptime.c: Likewise.
37872 * lib/time_r.c: Likewise.
37873 * lib/timegm.c: Likewise.
37874 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37876 * lib/timegm.c: Don't include timegm.h; no longer needed.
37877 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37878 time.h now handles any problems in that area.
37879 (struct timespec, nanosleep): Remove; time.h now arranges for these.
37880 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37881 that time.h defines struct timespec.
37882 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37883 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
37885 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37886 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37887 needed. Set REPLACE_LOCALTIME.
37888 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37889 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37890 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37891 nanosleep; time_h.m4 now does that. Don't require
37892 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37893 module handles this now.
37894 * modules/getdate (Depends-on): Remove timespec. Add time.
37895 * modules/nanosleep (Depends-on): Likewise.
37896 * modules/stat-time (Depends-on): Likewise.
37897 * modules/nanosleep (Include): Include time.h, not timespec.h.
37898 * modules/strptime (Files): Remove lib/strptime.h.
37899 (Depends-on): Add extensions, time.
37900 (Include): Include time.h, not strptime.h.
37901 * modules/time_r (Files): Remove lib/time_r.h.
37902 (Depends-on): Add time.
37903 (Include): Include time.h, not time_r.h.
37904 * modules/timegm: Likewise.
37905 * modules/timespec (Description): Now does timespec-related decls
37906 of our own, instead of struct timespec itself.
37907 (Depends-on): Add time; remove extensions.
37908 (Maintainer): Add self.
37909 * modules/utimecmp (Depends-on): Add time; remove timespec.
37910 * modules/utimens (Depends-on): Likewise.
37911 * modules/xnanosleep (Depends-on): Likewise.
37913 2007-02-11 Bruno Haible <bruno@clisp.org>
37915 * lib/c-strstr.c: Include allocsa.h.
37916 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37917 * lib/c-strcasestr.c: Include allocsa.h.
37918 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37919 * lib/strcasestr.c: Include allocsa.h.
37920 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37921 * lib/mbsstr.c: Include allocsa.h.
37922 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37923 allocsa/freesa instead of malloc/free.
37924 * lib/mbscasestr.c: Include allocsa.h.
37925 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37926 allocsa/freesa instead of malloc/free.
37927 * modules/c-strstr (Depends-on): Add allocsa.
37928 * modules/c-strcasestr (Depends-on): Likewise.
37929 * modules/strcasestr (Depends-on): Likewise.
37930 * modules/mbsstr (Depends-on): Likewise.
37931 * modules/mbscasestr (Depends-on): Likewise.
37933 2007-02-11 Bruno Haible <bruno@clisp.org>
37935 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37937 * modules/mbsspn-tests: New file.
37938 * tests/test-mbsspn.sh: New file.
37939 * tests/test-mbsspn.c: New file.
37941 2007-02-11 Bruno Haible <bruno@clisp.org>
37943 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37945 * modules/mbspbrk-tests: New file.
37946 * tests/test-mbspbrk.sh: New file.
37947 * tests/test-mbspbrk.c: New file.
37949 2007-02-11 Bruno Haible <bruno@clisp.org>
37951 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37954 * modules/mbscspn-tests: New file.
37955 * tests/test-mbscspn.sh: New file.
37956 * tests/test-mbscspn.c: New file.
37958 2007-02-11 Bruno Haible <bruno@clisp.org>
37960 * modules/mbscasecmp-tests: New file.
37961 * tests/test-mbscasecmp.sh: New file.
37962 * tests/test-mbscasecmp.c: New file.
37964 2007-02-11 Bruno Haible <bruno@clisp.org>
37966 Ensure O(n) worst-case complexity of mbscasestr.
37967 * lib/mbscasestr.c: Include stdbool.h.
37968 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37970 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37971 the bookkeeping indicates that it's worth it.
37972 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37974 * modules/mbscasestr-tests: New file.
37975 * tests/test-mbscasestr1.c: New file.
37976 * tests/test-mbscasestr2.sh: New file.
37977 * tests/test-mbscasestr2.c: New file.
37978 * tests/test-mbscasestr3.sh: New file.
37979 * tests/test-mbscasestr3.c: New file.
37980 * tests/test-mbscasestr4.sh: New file.
37981 * tests/test-mbscasestr4.c: New file.
37982 * m4/locale-tr.m4: New file.
37984 2007-02-11 Bruno Haible <bruno@clisp.org>
37986 Ensure O(n) worst-case complexity of mbsstr.
37987 * lib/mbsstr.c: Include stdbool.h.
37988 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37990 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37991 bookkeeping indicates that it's worth it.
37992 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37994 * modules/mbsstr-tests: New file.
37995 * tests/test-mbsstr1.c: New file.
37996 * tests/test-mbsstr2.sh: New file.
37997 * tests/test-mbsstr2.c: New file.
37998 * tests/test-mbsstr3.sh: New file.
37999 * tests/test-mbsstr3.c: New file.
38000 * m4/locale-fr.m4: New file.
38002 2007-02-11 Bruno Haible <bruno@clisp.org>
38004 * lib/mbsrchr.c (mbsrchr): Fix bug.
38006 * modules/mbsrchr-tests: New file.
38007 * tests/test-mbsrchr.sh: New file.
38008 * tests/test-mbsrchr.c: New file.
38010 2007-02-11 Bruno Haible <bruno@clisp.org>
38012 * lib/mbschr.c (mbschr): Fix bug.
38014 * modules/mbschr-tests: New file.
38015 * tests/test-mbschr.sh: New file.
38016 * tests/test-mbschr.c: New file.
38017 * m4/locale-zh.m4: New file.
38019 2007-02-11 Bruno Haible <bruno@clisp.org>
38021 Support for copying multibyte string iterators.
38022 * lib/mbiter.h: Include <string.h>.
38023 (mbiter_multi_copy): New function.
38024 (mbi_copy): New macro.
38025 * lib/mbuiter.h: Include <string.h>.
38026 (mbuiter_multi_copy): New function.
38027 (mbui_copy): New macro.
38029 2007-02-11 Bruno Haible <bruno@clisp.org>
38032 * modules/mbslen: New file.
38033 * lib/mbslen.c: New file.
38034 * lib/string_.h (mbslen): New declaration.
38035 * m4/mbslen.m4: New file.
38036 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38038 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38039 * MODULES.html.sh (Internationalization functions): Add mbslen.
38041 2007-02-11 Bruno Haible <bruno@clisp.org>
38043 Ensure O(n) worst-case complexity of strcasestr substitute.
38044 * lib/strcasestr.c: Include stdbool.h.
38045 (knuth_morris_pratt): New function.
38046 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38047 bookkeeping indicates that it's worth it.
38048 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38050 * modules/strcasestr-tests: New file.
38051 * tests/test-strcasestr.c: New file.
38053 2007-02-11 Bruno Haible <bruno@clisp.org>
38055 Ensure O(n) worst-case complexity of c_strcasestr.
38056 * lib/c-strcasestr.c: Include stdbool.h, string.h.
38057 (knuth_morris_pratt): New function.
38058 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38059 the bookkeeping indicates that it's worth it.
38060 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38062 * modules/c-strcasestr-tests: New file.
38063 * tests/test-c-strcasestr.c: New file.
38065 2007-02-11 Bruno Haible <bruno@clisp.org>
38067 Ensure O(n) worst-case complexity of c_strstr.
38068 * lib/c-strstr.c: Include stdbool.h, string.h.
38069 (knuth_morris_pratt): New function.
38070 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38071 bookkeeping indicates that it's worth it.
38072 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38074 * lib/c-strstr.c: Complete rewrite for maintainability.
38076 * modules/c-strstr-tests: New file.
38077 * tests/test-c-strstr.c: New file.
38079 2007-02-11 Bruno Haible <bruno@clisp.org>
38081 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38082 5.2.1 and earlier, whereby \055 was treated just like the range
38084 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38086 2007-02-08 Bruno Haible <bruno@clisp.org>
38088 * modules/regex (Depends-on): Add stdbool.
38089 Reported by Dalibor Topic <robilad@kaffe.org>.
38091 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
38093 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38094 Prefer returning from main to exiting from it.
38095 Remove unnecessary parens after sizeof.
38097 2007-02-05 Bruno Haible <bruno@clisp.org>
38100 * modules/mbssep: New file.
38101 * lib/mbssep.c: New file.
38102 * lib/string_.h (strsep): Add a conditional link warning.
38103 (mbssep): New declaration.
38104 * m4/mbssep.m4: New file.
38105 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38107 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38108 * MODULES.html.sh (Internationalization functions): Add mbssep.
38110 2007-02-05 Bruno Haible <bruno@clisp.org>
38112 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38113 Optimize search in case of 1 delimiter.
38115 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
38117 * lib/acl.h: Include sys/types.h before sys/acl.h.
38119 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
38121 Merge upstream fix for glibc bugzilla #3957:
38123 2007-02-05 Jakub Jelinek <jakub@redhat.com>
38125 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38126 bit for RE_HAT_LISTS_NOT_NEWLINE.
38127 (build_charclass_op): Remove bogus comment.
38129 2007-02-05 Simon Josefsson <simon@josefsson.org>
38131 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38133 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
38135 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38136 * lib/memmem.c [!defined _LIBC]: Include config.h.
38138 2007-02-04 Bruno Haible <bruno@clisp.org>
38140 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38143 2007-02-04 Bruno Haible <bruno@clisp.org>
38145 New module mbstok_r.
38146 * modules/mbstok_r: New file.
38147 * lib/mbstok_r.c: New file.
38148 * lib/string_.h (strtok_r): Change argument names to match the
38149 comments. Add a conditional link warning.
38150 (mbstok_r): New declaration.
38151 * m4/mbstok_r.m4: New file.
38152 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38154 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38155 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38157 2007-02-04 Bruno Haible <bruno@clisp.org>
38160 * modules/mbsspn: New file.
38161 * lib/mbsspn.c: New file.
38162 * lib/string_.h (strspn): Add a conditional link warning.
38163 (mbsspn): New declaration.
38164 * m4/mbsspn.m4: New file.
38165 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38167 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38168 * MODULES.html.sh (Internationalization functions): Add mbsspn.
38170 2007-02-04 Bruno Haible <bruno@clisp.org>
38172 New module mbspbrk.
38173 * modules/mbspbrk: New file.
38174 * lib/mbspbrk.c: New file.
38175 * lib/string_.h (strpbrk): Add a conditional link warning.
38176 (mbspbrk): New declaration.
38177 * m4/mbspbrk.m4: New file.
38178 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38180 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38181 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38183 2007-02-04 Bruno Haible <bruno@clisp.org>
38185 New module mbscspn.
38186 * modules/mbscspn: New file.
38187 * lib/mbscspn.c: New file.
38188 * lib/string_.h (strcspn): Add a conditional link warning.
38189 (mbscspn): New declaration.
38190 * m4/mbscspn.m4: New file.
38191 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38193 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38194 * MODULES.html.sh (Internationalization functions): Add mbscspn.
38196 2007-02-04 Bruno Haible <bruno@clisp.org>
38198 New module mbscasestr, reduced goal of strcasestr.
38199 * modules/mbscasestr: New file.
38200 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38201 (mbscasestr): Renamed from strcasestr.
38202 * lib/strcasestr.c: Don't include mbuiter.h.
38203 (strcasestr): Remove support for multibyte locales.
38204 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38205 Change the conditional link warning.
38206 (mbscasestr): New declaration.
38207 * m4/mbscasestr.m4: New file.
38208 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38209 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38210 REPLACE_STRCASESTR.
38211 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38212 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38213 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38214 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38215 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38216 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38217 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38218 (Depends-on): Remove mbuiter.
38219 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38221 2007-02-04 Bruno Haible <bruno@clisp.org>
38223 Simplify handling of strncasecmp.
38224 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38225 the conditional link warning.
38226 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38227 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38228 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38229 * modules/strcase (configure.ac): Don't invoke
38230 gl_STRING_MODULE_INDICATOR.
38231 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38233 2007-02-04 Bruno Haible <bruno@clisp.org>
38235 New module mbscasecmp, reduced goal of strcasecmp.
38236 * modules/mbscasecmp: New file.
38237 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38238 (mbscasecmp): Renamed from strcasecmp.
38239 * lib/strcasecmp.c: Don't include mbuiter.h.
38240 (strcasecmp): Remove support for multibyte locales.
38241 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38242 Change the conditional link warning.
38243 (mbscasecmp): New declaration.
38244 * m4/mbscasecmp.m4: New file.
38245 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38246 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38247 REPLACE_STRCASECMP.
38248 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38249 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38251 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38252 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38253 * modules/strcase (Files): Remove m4/mbrtowc.m4.
38254 (Depends-on): Remove mbuiter.
38255 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38257 2007-02-04 Bruno Haible <bruno@clisp.org>
38259 New module mbsstr. Remove module strstr.
38260 * modules/mbsstr: New file.
38261 * modules/strstr: Remove file.
38262 * lib/mbsstr.c: Renamed from lib/strstr.c.
38263 (mbsstr): Renamed from strstr.
38264 * lib/string_.h (strstr): Remove declaration. Change the conditional
38266 (mbsstr): New declaration.
38267 * m4/mbsstr.m4: New file.
38268 * m4/strstr.m4: Remove file.
38269 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38271 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38272 Don't initialize GNULIB_STRSTR.
38273 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38274 substitute GNULIB_STRSTR and REPLACE_STRSTR.
38275 * MODULES.html.sh (Internationalization functions): Add mbsstr.
38276 (Support for systems lacking ANSI C 89): Remove strstr.
38278 2007-02-04 Bruno Haible <bruno@clisp.org>
38280 New module mbsrchr.
38281 * modules/mbsrchr: New file.
38282 * lib/mbsrchr.c: New file.
38283 * lib/string_.h (strrchr): Add a conditional link warning.
38284 (mbsrchr): New declaration.
38285 * m4/mbsrchr.m4: New file.
38286 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38288 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38289 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38291 2007-02-04 Bruno Haible <bruno@clisp.org>
38294 * modules/mbschr: New file.
38295 * lib/mbschr.c: New file.
38296 * lib/string_.h (strchr): Add a conditional link warning.
38297 (mbschr): New declaration.
38298 * m4/mbschr.m4: New file.
38299 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38301 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38302 * MODULES.html.sh (Internationalization functions): Add mbschr.
38304 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
38306 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38308 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38310 2007-02-04 Bruno Haible <bruno@clisp.org>
38312 New module description section 'configure.ac-early'.
38313 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38314 (func_get_autoconf_early_snippet): New function.
38315 (func_import, func_create_testdir): Use it. Remove special cases for
38316 modules 'extensions' and 'lock'.
38317 * modules/extensions (configure.ac-early): Require
38318 gl_USE_SYSTEM_EXTENSIONS.
38319 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38321 2007-02-04 Bruno Haible <bruno@clisp.org>
38323 Make use of gcj-4.3's -fsource and -ftarget option.
38324 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38325 and if so try the options -fsource and -ftarget.
38326 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38327 source_version, ftarget_option, target_version arguments.
38328 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38329 (is_envjavac_oldgcj_14_14_usable): Renamed from
38330 is_envjavac_gcj_14_14_usable.
38331 (is_envjavac_oldgcj_14_13_usable): Renamed from
38332 is_envjavac_gcj_14_13_usable.
38333 (is_gcj_present): Update.
38334 (is_gcj_43, is_gcj43_usable): New functions.
38335 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38336 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38337 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38338 try the options -fsource and -ftarget.
38340 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
38342 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38343 checking code. Set N = ceil (1.5 * N) rather than to a slightly
38346 2007-02-03 Jim Meyering <jim@meyering.net>
38348 Give tools a better chance to allocate space for very large buffers.
38349 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38351 Make pwd and readlink work also when run with an unreadable parent dir
38352 on systems with openat support.
38353 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38354 provided getcwd function, even when we have openat support.
38355 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38357 2007-02-02 Bruno Haible <bruno@clisp.org>
38359 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38360 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38361 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38362 portability problems if one of these functions is only used on specific
38364 Reported by Paul Eggert.
38366 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
38368 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38369 is causing more trouble than it's curing.
38370 * lib/regex_internal.h (__mempcpy): Remove.
38371 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38372 (and make the code a tad smaller to boot).
38373 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38375 2007-02-02 Jim Meyering <jim@meyering.net>
38377 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38378 section, not in the Makefile.am: one.
38380 2007-02-02 Eric Blake <ebb9@byu.net>
38382 * lib/strchrnul.c: Always include config.h first.
38384 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38385 gnulib strstr is not necessary here.
38387 2007-02-02 Simon Josefsson <simon@josefsson.org>
38389 * m4/socklen.m4: Fix typo.
38391 2007-02-02 Eric Blake <ebb9@byu.net>
38393 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38394 * modules/netinet_in (Makefile.am): Likewise.
38396 2007-02-01 Bruno Haible <bruno@clisp.org>
38398 * lib/string_.h (GL_LINK_WARNING): New macro.
38399 (strcasecmp, strstr, strcasestr): If provided by the system,
38400 conditionally define as a macro that leads to a warning instead of to
38402 (strncasecmp): Conditionally define as a macro that leads to a warning.
38404 2007-02-01 Karl Berry <karl@gnu.org>
38406 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38408 2007-02-01 Bruno Haible <bruno@clisp.org>
38410 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38413 2007-02-01 Eric Blake <ebb9@byu.net>
38415 * modules/regex (Depends-on): Revert dependence on mempcpy.
38416 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38417 module's definition of mempcpy.
38418 Reported by Paul Eggert.
38420 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
38422 * lib/string_.h: If the gnulib module XYZ is not present, undefine
38423 the symbol XYZ before redefining it. This fixes a problem with
38424 programs that don't use XYZ, when compiled on systems that define
38425 XYZ to something else.
38427 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
38429 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38430 occurs when "mkdir -m foo" creates a setgid directory that is (1)
38431 writeable to group or other and (2) is intended to have a special
38432 mode bit that is set or cleared. In such a case, the directory
38433 should be neither group- nor other-writeable until the special
38434 mode bits are right.
38436 2007-01-31 Eric Blake <ebb9@byu.net>
38438 * modules/mountlist (Depends-on): Add strstr.
38440 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38442 * modules/string (Makefile.am): Remove redundant replacement.
38443 * modules/regex (Depends-on): Add mempcpy.
38445 2007-01-31 Bruno Haible <bruno@clisp.org>
38447 New module description field 'Link'.
38448 * gnulib-tool (func_usage): Document --extract-link-directive.
38449 (sed_extract_prog): Recognize 'Link' directive.
38450 (func_get_link_directive): New function.
38451 (func_import): Show summary of link directives.
38452 Handle --extract-link-directive option.
38453 * modules/acl (Link): New section.
38454 * modules/clock-time (Link): New section.
38455 * modules/euidaccess (Link): New section.
38456 * modules/gettext (Link): New section.
38457 * modules/iconv (Link): New section.
38458 * modules/lock (Link): New section.
38459 * modules/nanosleep (Link): New section.
38460 * modules/readline (Link): New section.
38462 2007-01-27 Bruno Haible <bruno@clisp.org>
38464 Enforce the use of gnulib modules for unportable <string.h> functions.
38465 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38466 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38467 (gl_HEADER_STRING_H_BODY): Require it.
38468 * lib/string_.h: If the gnulib module XYZ is not present, redefine
38469 the symbol XYZ to one that gives a link error.
38470 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38471 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38472 * modules/mempcpy (configure.ac): Likewise.
38473 * modules/memrchr (configure.ac): Likewise.
38474 * modules/stpcpy (configure.ac): Likewise.
38475 * modules/stpncpy (configure.ac): Likewise.
38476 * modules/strcase (configure.ac): Likewise.
38477 * modules/strcasestr (configure.ac): Likewise.
38478 * modules/strchrnul (configure.ac): Likewise.
38479 * modules/strdup (configure.ac): Likewise.
38480 * modules/strndup (configure.ac): Likewise.
38481 * modules/strnlen (configure.ac): Likewise.
38482 * modules/strpbrk (configure.ac): Likewise.
38483 * modules/strsep (configure.ac): Likewise.
38484 * modules/strstr (configure.ac): Likewise.
38485 * modules/strtok_r (configure.ac): Likewise.
38487 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
38489 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38491 2007-01-30 Jim Meyering <jim@meyering.net>
38493 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38495 2007-01-29 Bruno Haible <bruno@clisp.org>
38497 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38498 * lib/execute.c: Likewise.
38499 * lib/pipe.c: Likewise.
38500 * lib/printf-args.h: Likewise.
38501 * lib/printf-args.c: Likewise.
38502 * lib/printf-parse.c: Likewise.
38503 * lib/vasnprintf.c: Likewise.
38505 2007-01-29 Eric Blake <ebb9@byu.net>
38507 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38510 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
38512 * lib/strptime.h (strptime): Use 'restrict' for args where
38513 POSIX requires this.
38514 * lib/strptime.c (strptime): Likewise.
38515 Change license notice from LGPL to GPL, since gnulib-tool will
38516 change this as needed.
38517 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38519 Include "strptime.h" first, to check interface.
38520 Do not #undef _LIBC and _NL_CURRENT.
38521 Do not include <stdlib.h>; no longer needed.
38522 Include "time_r.h" and declare ptime_locale_status
38523 only if _LIBC is not defined.
38524 (__P): Remove unused macro.
38525 (match_string): Bring back glibc version, but use it only if _LIBC
38527 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38528 Remove unnecessary assertion and abort() call.
38529 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38530 * m4/strptime.m4: Fix serial number comment.
38531 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38532 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38533 (Depends-on): Add time_r.
38535 2007-01-29 Bruno Haible <bruno@clisp.org>
38537 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38539 * modules/strptime (Depends-on): Add stdbool.
38540 * lib/strptime.h: Include <time.h> always. Add comments.
38542 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
38544 * modules/strptime: New file.
38545 * lib/strptime.h: New file.
38546 * lib/strptime.c: New file.
38547 * m4/strptime.m4: New file.
38549 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
38551 * MODULES.html.sh: New module mpsort.
38552 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38554 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38555 a circularity problem with HP-UX ia64 reported by Bob Proulx in
38556 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38558 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38560 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38562 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38563 the parameter matches the prototype.
38565 2007-01-28 Jim Meyering <jim@meyering.net>
38567 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38568 sys/time.h here, reverting that part of the previous patch:
38569 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38571 2007-01-28 Bruno Haible <bruno@clisp.org>
38573 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38574 value of $(SYS_TIME_H).
38575 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38576 remove it conditionally, too. [added by Jim Meyering]
38577 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38578 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38579 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38580 GETTIMEOFDAY_REPLACEMENT to 1.
38582 2007-01-28 Bruno Haible <bruno@clisp.org>
38584 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38585 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38586 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38587 Set UNISTD_H instead of UNISTD_H2.
38588 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38590 2007-01-28 Bruno Haible <bruno@clisp.org>
38592 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38593 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38595 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38597 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38598 (func_create_testdir): Ensure C locale for `grep' and `tr'
38600 (func_create_megatestdir): Avoid one `grep'. Fix bug in
38601 ACLOCAL_AMFLAGS parsing state machine.
38603 2007-01-27 Bruno Haible <bruno@clisp.org>
38605 * modules/unistr/base: Update.
38607 2007-01-27 Bruno Haible <bruno@clisp.org>
38609 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38610 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38611 * modules/unistr/u32-mbtouc-unsafe: Renamed from
38612 modules/unistr/u32-mbtouc.
38613 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38614 * lib/unistr.h: Update.
38615 * lib/linebreak.c: Update.
38616 * modules/unistr/u32-mbtouc: Renamed from
38617 modules/unistr/u32-mbtouc-safe.
38618 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38619 * lib/unistr.h: Update.
38620 * lib/unistr/u32-to-u8.c: Update.
38621 * lib/unistr/u32-to-u16.c: Update.
38623 2007-01-27 Bruno Haible <bruno@clisp.org>
38625 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38626 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38627 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38628 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38629 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38630 * modules/unistr/u16-mbtouc-unsafe: Renamed from
38631 modules/unistr/u16-mbtouc.
38632 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38633 * lib/unistr.h: Update.
38634 * lib/linebreak.c: Update.
38635 * modules/linebreak: Update.
38636 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38637 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38638 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38639 * modules/unistr/u16-mbtouc: Renamed from
38640 modules/unistr/u16-mbtouc-safe.
38641 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38642 * lib/unistr.h: Update.
38643 * lib/unistr/u16-to-u8.c: Update.
38644 * modules/unistr/u16-to-u8: Update.
38645 * lib/unistr/u16-to-u32.c: Update.
38646 * modules/unistr/u16-to-u32: Update.
38648 2007-01-27 Bruno Haible <bruno@clisp.org>
38650 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38651 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38652 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38653 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38654 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38655 * modules/unistr/u8-mbtouc-unsafe: Renamed from
38656 modules/unistr/u8-mbtouc.
38657 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38658 * lib/unistr.h: Update.
38659 * lib/striconveh.c: Update.
38660 * modules/striconveh: Update.
38661 * lib/linebreak.c: Update.
38662 * modules/linebreak: Update.
38663 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38664 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38665 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38666 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38667 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38668 * lib/unistr.h: Update.
38669 * lib/striconveh.c: Update.
38670 * modules/striconveh: Update.
38671 * lib/unistr/u8-to-u16.c: Update.
38672 * modules/unistr/u8-to-u16: Update.
38673 * lib/unistr/u8-to-u32.c: Update.
38674 * modules/unistr/u8-to-u32: Update.
38676 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38679 * lib/argz.c: Do not include strings.h nor memory.h, include
38680 string.h unconditionally. Patch by Simon Josefsson.
38682 2007-01-27 Bruno Haible <bruno@clisp.org>
38684 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38685 from gl_HEADER_STRING_H_BODY.
38686 (gl_HEADER_STRING_H_BODY): Require it.
38687 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38688 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38689 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38690 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38691 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38692 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38693 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38694 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38695 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38696 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38697 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38698 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38699 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38700 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38701 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38703 2007-01-27 Bruno Haible <bruno@clisp.org>
38705 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38706 check_PROGRAMS into noinst_PROGRAMS.
38707 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38708 check_PROGRAMS in this case.
38709 (func_import): Set for_test to false.
38710 (func_create_testdir): Set for_test to true.
38712 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38713 Bruno Haible <bruno@clisp.org>
38715 * modules/strcasestr (Files): Remove lib/strcasestr.h.
38716 (Depends-on): Add string.
38717 (Includes): Use <string.h> instead of strcasestr.h.
38718 * modules/string (Makefile.am): Also substitute the value of
38719 REPLACE_STRCASESTR.
38720 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38721 assume strcasestr is declared in <string.h> not <strings.h>. Also
38722 set REPLACE_STRCASESTR.
38723 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38724 REPLACE_STRCASESTR.
38725 * lib/strcasestr.h: Remove file.
38726 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38727 * lib/string_.h (strcasestr): New declaration.
38729 2007-01-27 Bruno Haible <bruno@clisp.org>
38731 * lib/string_.h: Use 'extern'.
38733 2007-01-27 Jim Meyering <jim@meyering.net>
38735 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38736 of set-but-not-used local, "q".
38738 * lib/mempcpy.c: Include <config.h> before <string.h>.
38739 This fixes a compilation error on HP-UX, due to the system's
38740 "restrict"-using mempcpy prototype.
38742 2007-01-26 Bruno Haible <bruno@clisp.org>
38744 Small optimization.
38745 * lib/javacomp.c: Include c-strstr.h.
38746 (is_envjavac_gcj): Use c_strstr instead of strstr.
38747 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38749 2007-01-26 Bruno Haible <bruno@clisp.org>
38751 * MODULES.html.sh (Unicode string functions): Add the new modules.
38753 * modules/uniconv/u32-strconv-to-locale: New file.
38754 * lib/uniconv/u32-strconv-to-locale.c: New file.
38756 * modules/uniconv/u16-strconv-to-locale: New file.
38757 * lib/uniconv/u16-strconv-to-locale.c: New file.
38759 * modules/uniconv/u8-strconv-to-locale: New file.
38760 * lib/uniconv/u8-strconv-to-locale.c: New file.
38762 * modules/uniconv/u32-strconv-from-locale: New file.
38763 * lib/uniconv/u32-strconv-from-locale.c: New file.
38765 * modules/uniconv/u16-strconv-from-locale: New file.
38766 * lib/uniconv/u16-strconv-from-locale.c: New file.
38768 * modules/uniconv/u8-strconv-from-locale: New file.
38769 * lib/uniconv/u8-strconv-from-locale.c: New file.
38771 * modules/uniconv/u32-strconv-to-enc: New file.
38772 * lib/uniconv/u32-strconv-to-enc.c: New file.
38773 * modules/uniconv/u32-strconv-to-enc-tests: New file.
38774 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38776 * modules/uniconv/u16-strconv-to-enc: New file.
38777 * lib/uniconv/u16-strconv-to-enc.c: New file.
38778 * lib/uniconv/u-strconv-to-enc.h: New file.
38779 * modules/uniconv/u16-strconv-to-enc-tests: New file.
38780 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38782 * modules/uniconv/u8-strconv-to-enc: New file.
38783 * lib/uniconv/u8-strconv-to-enc.c: New file.
38784 * modules/uniconv/u8-strconv-to-enc-tests: New file.
38785 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38787 * modules/uniconv/u32-strconv-from-enc: New file.
38788 * lib/uniconv/u32-strconv-from-enc.c: New file.
38789 * modules/uniconv/u32-strconv-from-enc-tests: New file.
38790 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38792 * modules/uniconv/u16-strconv-from-enc: New file.
38793 * lib/uniconv/u16-strconv-from-enc.c: New file.
38794 * modules/uniconv/u16-strconv-from-enc-tests: New file.
38795 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38797 * modules/uniconv/u8-strconv-from-enc: New file.
38798 * lib/uniconv/u8-strconv-from-enc.c: New file.
38799 * lib/uniconv/u-strconv-from-enc.h: New file.
38800 * modules/uniconv/u8-strconv-from-enc-tests: New file.
38801 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38803 * modules/uniconv/u32-conv-from-enc: New file.
38804 * lib/uniconv/u32-conv-from-enc.c: New file.
38805 * modules/uniconv/u32-conv-from-enc-tests: New file.
38806 * tests/uniconv/test-u32-conv-from-enc.c: New file.
38808 * modules/uniconv/u16-conv-from-enc: New file.
38809 * lib/uniconv/u16-conv-from-enc.c: New file.
38810 * lib/uniconv/u-conv-from-enc.h: New file.
38811 * modules/uniconv/u16-conv-from-enc-tests: New file.
38812 * tests/uniconv/test-u16-conv-from-enc.c: New file.
38814 * modules/uniconv/u8-conv-from-enc: New file.
38815 * lib/uniconv/u8-conv-from-enc.c: New file.
38816 * modules/uniconv/u8-conv-from-enc-tests: New file.
38817 * tests/uniconv/test-u8-conv-from-enc.c: New file.
38819 * modules/uniconv/base: New file.
38820 * lib/uniconv.h: New file.
38822 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
38824 * doc/gnulib-tool.texi (Initial import): Update to match current
38825 behavior with strdup module.
38826 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38827 * lib/memmem.h: Remove; all uses removed. This is now done
38829 * lib/mempcpy.h: Likewise.
38830 * lib/memrchr.h: Likewise.
38831 * lib/stpcpy.h: Likewise.
38832 * lib/stpncpy.h: Likewise.
38833 * lib/strcase.h: Likewise.
38834 * lib/strchrnul.h: Likewise.
38835 * lib/strdup.h: Likewise.
38836 * lib/strndup.h: Likewise.
38837 * lib/strnlen.h: Likewise.
38838 * lib/strpbrk.h: Likewise.
38839 * lib/strsep.h: Likewise.
38840 * lib/strstr.h: Likewise.
38841 * lib/strtok_r.h: Likewise.
38842 * lib/string_.h: New file.
38843 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38844 Rely on <string.h> instead.
38845 * lib/canon-host.c: Likewise.
38846 * lib/chdir-long.c: Likewise.
38847 * lib/concatpath.c: Likewise.
38848 * lib/exclude.c: Likewise.
38849 * lib/fchdir.c: Likewise.
38850 * lib/getaddrinfo.c: Likewise.
38851 * lib/getcwd.c: Likewise.
38852 * lib/getsubopt.c: Likewise.
38853 * lib/glob.c: Likewise.
38854 * lib/hard-locale.c: Likewise.
38855 * lib/iconvme.c: Likewise.
38856 * lib/javacomp.c: Likewise.
38857 * lib/mempcpy.c: Likewise.
38858 * lib/memrchr.c: Likewise.
38859 * lib/regex_internal.h: Likewise.
38860 * lib/stpncpy.c: Likewise.
38861 * lib/strcasecmp.c: Likewise.
38862 * lib/strchrnul.c: Likewise.
38863 * lib/strdup.c: Likewise.
38864 * lib/striconv.c: Likewise.
38865 * lib/striconveh.c: Likewise.
38866 * lib/striconveha.c: Likewise.
38867 * lib/strncasecmp.c: Likewise.
38868 * lib/strndup.c: Likewise.
38869 * lib/strnlen.c: Likewise.
38870 * lib/strsep.c: Likewise.
38871 * lib/strstr.c: Likewise.
38872 * lib/strtok_r.c: Likewise.
38873 * lib/userspec.c: Likewise.
38874 * lib/w32spawn.h: Likewise.
38875 * lib/xstrndup.c: Likewise.
38876 * lib/mountlist.c (strstr): Remove decl.
38877 * m4/string_h.m4: New file.
38878 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38879 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38880 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38881 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38882 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38883 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38884 Set REPLACE_STRCASECMP if necessary.
38885 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38886 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38887 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38888 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38889 HAVE_DECL_STRDUP if necessary.
38890 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38891 since gl_FUNC_STRNDUP does that now.
38892 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38893 Check for decl here...
38894 (gl_PREREQ_STRNLEN): ... not here.
38895 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38896 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38897 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38898 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38900 * modules/string: New file.
38901 * modules/memmem (Files): Remove special-purpose include file.
38902 (Depends-on): Add string.
38903 (Include): Include <string.h>, not the removed file.
38904 * modules/mempcpy: Likewise.
38905 * modules/memrchr: Likewise.
38906 * modules/stpcpy: Likewise.
38907 * modules/stpncpy: Likewise.
38908 * modules/strcase: Likewise.
38909 * modules/strchrnul: Likewise.
38910 * modules/strdup: Likewise.
38911 * modules/strndup: Likewise.
38912 * modules/strnlen: Likewise.
38913 * modules/strpbrk: Likewise.
38914 * modules/strsep: Likewise.
38915 * modules/strstr: Likewise.
38916 * modules/strtok_r: Likewise.
38917 * tests/test-dirname.c: Don't include "strdup.h", since
38918 <string.h> now suffices.
38919 * tests/test-memmem.c: Don't include "memmem.h", since
38920 <string.h> now suffices.
38922 2007-01-25 Bruno Haible <bruno@clisp.org>
38924 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38927 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38928 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38929 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38930 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38932 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38933 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38934 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38935 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38936 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38937 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38939 2007-01-24 Bruno Haible <bruno@clisp.org>
38941 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38942 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38943 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38944 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38946 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38947 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38948 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38949 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38950 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38951 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38953 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38955 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38956 Reported by Ralf Wildenhues.
38958 2007-01-24 Bruno Haible <bruno@clisp.org>
38960 Drop AC_REQUIRE calls that are redundant with the module dependencies.
38961 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38963 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38964 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38965 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38967 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
38969 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38970 Don't use 'exit'; just return from 'main'.
38971 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38973 * lib/fnmatch_.h: Readjust white space and comments to match
38974 glibc, to avoid spurious diffs.
38976 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38978 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38979 2004-12-01 change by Jakub Jelinek, since this code won't compile
38980 if !LIBC. Problem reported by Bob Proulx.
38982 2007-01-23 Bruno Haible <bruno@clisp.org>
38984 * lib/striconveh.c: Include c-strcaseeq.h.
38985 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38986 * modules/striconveh (Depends-on): Add c-strcaseeq.
38988 2007-01-23 Bruno Haible <bruno@clisp.org>
38990 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38992 * modules/c-strcaseeq: New file.
38993 * lib/c-strcaseeq.h: New file.
38995 * modules/streq: New file.
38996 * lib/streq.h: New file.
38998 2007-01-23 Bruno Haible <bruno@clisp.org>
39000 * modules/striconveha-tests: New file.
39001 * tests/test-striconveha.c: New file.
39003 * lib/striconveha.h: Include <stdbool.h>.
39004 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39005 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39006 (mem_iconveha_notranslit): Renamed from mem_iconveha.
39007 (mem_iconveha): New function.
39008 (str_iconveha_notranslit): Renamed from str_iconveha.
39009 (str_iconveha): New function.
39010 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39013 2007-01-23 Bruno Haible <bruno@clisp.org>
39015 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39016 encodings without forgiving before trying any encoding with handler.
39017 (str_iconveha): Try all encodings without forgiving before trying any
39018 encoding with handler.
39020 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
39022 Import the following changes from libc.
39024 2005-10-14 Ulrich Drepper <drepper@redhat.com>
39026 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39028 2004-12-01 Jakub Jelinek <jakub@redhat.com>
39030 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39031 normal_bracket label.
39033 2004-09-01 Jakub Jelinek <jakub@redhat.com>
39036 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39037 to normal_bracket after fetching the next character.
39039 2007-01-22 Bruno Haible <bruno@clisp.org>
39041 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39043 * lib/striconveh.c (iconv_carefully_1): New function.
39044 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39046 (str_cd_iconveh): Update.
39047 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39048 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39049 * tests/test-striconveh.c (MAGIC): New macro.
39050 (new_offsets): New function.
39051 (main): Test call with and without offsets.
39053 2007-01-22 Bruno Haible <bruno@clisp.org>
39055 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39056 * modules/sys_select (Makefile.am): Likewise.
39057 * modules/sys_socket (Makefile.am): Likewise.
39058 * modules/sys_time (Makefile.am): Likewise.
39060 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
39062 * modules/gettimeofday (License): Change from GPL to LGPL, since
39063 gettimeofday is a library function.
39065 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39067 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39069 2007-01-21 Bruno Haible <bruno@clisp.org>
39071 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39073 2007-01-21 Bruno Haible <bruno@clisp.org>
39075 * modules/striconveha: New file.
39076 * lib/striconveha.h: New file.
39077 * lib/striconveha.c: New file.
39078 * MODULES.html.sh (Internationalization functions): Add striconveha.
39079 * lib/striconv.c (str_iconv): Optimize the case of an empty input
39081 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39083 2007-01-21 Bruno Haible <bruno@clisp.org>
39085 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39086 * lib/striconveh.c (str_iconveh): Likewise.
39088 2007-01-21 Bruno Haible <bruno@clisp.org>
39090 * lib/striconveh.h (mem_iconveh): New declaration.
39091 * lib/striconveh.c (mem_iconveh): New function.
39092 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39094 2007-01-21 Bruno Haible <bruno@clisp.org>
39096 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39098 * lib/striconveh.h (mem_cd_iconveh): Change specification.
39099 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39100 original result buffer.
39101 (str_cd_iconveh): Update.
39102 * tests/test-striconveh.c (main): Update.
39104 * lib/striconv.h (mem_cd_iconv): Change specification.
39105 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39107 (str_cd_iconv): Update.
39108 * tests/test-striconv.c (main): Update.
39110 2007-01-21 Bruno Haible <bruno@clisp.org>
39112 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39114 2007-01-20 Jim Meyering <jim@meyering.net>
39116 * lib/userspec.c (parse_with_separator): If a user or group string
39117 starts with "+", skip the corresponding name-to-ID look-up, since
39118 such a look-up must fail: user and group names may not include "+".
39120 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
39122 * lib/poll.c: Include sys/time.h and time.h unconditionally,
39123 since we now assume the sys_time module.
39124 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39125 check for sys/time.h; no longer needed.
39126 * modules/poll (Depends-on): Depend on sys_time.
39128 2007-01-18 Bruno Haible <bruno@clisp.org>
39130 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39131 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39133 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39136 * tests/test-gettimeofday.c: Include <time.h>.
39137 (dummy): Remove variable.
39139 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39140 gl_HEADER_SYS_TIME_H.
39141 (gl_HEADER_SYS_TIME_H): New macro.
39143 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39144 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39145 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39146 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39147 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39148 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39149 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39150 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39151 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39152 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39153 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39155 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39156 last change; it caused a compilation error when cross-compiling to
39159 2007-01-18 Jim Meyering <jim@meyering.net>
39161 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39162 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39163 than the race-prone "test -d sys || mkdir sys".
39164 (configure.ac): Use AC_PROG_MKDIR_P.
39165 * modules/sys_select: Likewise.
39166 * modules/sys_socket: Likewise.
39167 * modules/sys_time: Likewise.
39169 2007-01-18 Eric Blake <ebb9@byu.net>
39171 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39172 replace gettimeofday.
39173 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39174 name, to avoid infinite recursion.
39176 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
39178 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39180 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39181 assume timespec.h defines struct timeval.
39182 * lib/settime.c: Likewise.
39183 * lib/utimens.c: Likewise.
39184 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39185 since we now assume the gettimeofday module.
39186 * lib/tempname.c (__gen_tempname): Likewise.
39187 * lib/gettimeofday.h: Remove.
39188 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39189 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39190 Include <time.h>, for 'time()'.
39191 (localtime_buffer_addr): Also use this workaround if
39192 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
39193 to simplify the uses. All uses changed.
39194 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39195 that #undef is inside {}, and 'const' follows type name consistently.
39196 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39197 (gettimeofday): Do not use the maximum possible value for
39198 tv->tv_usec, since that might break usages other than ls.c.
39199 Instead, we'll leave ls.c alone. This undoes today's patch
39200 by Bruno. Add a compile-time warning for 1s-clock resolution;
39201 we've never observed the problem but might as well keep the
39203 * lib/nanosleep.c: Include timespec.h first, for interface check.
39204 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39205 now assume the sys_time module.
39206 * lib/tempname.c: Likewise.
39207 * lib/timespec.h: Likewise.
39208 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39210 * lib/strftime.c: Likewise.
39211 * lib/timespec.h: Likewise.
39212 * lib/posixtm.c: Include posixtm.h first, for interface check.
39213 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39214 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39215 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39216 * lib/sys_time_.h: New file.
39217 * lib/timespec.h (struct timespec): Use long int, not long.
39218 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39219 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39220 Remove obsolescent call to AC_HEADER_TIME.
39221 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39222 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39223 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39224 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39226 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39227 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39228 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39229 into the sys_time module. Check for gettimeofday just once.
39230 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
39231 for gettimeofday signature to just check the signature. Merely
39232 compile it, since linking doesn't test signature. Improve test for
39233 whether gettimeofday.o is actually needed.
39234 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39235 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
39236 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
39237 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39238 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39239 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39240 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39241 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39242 than worrying about sys/time.h.
39243 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39244 Don't bother worrying about TIME_WITH_SYS_TIME.
39245 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39246 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39247 * m4/sys_time_h.m4: New file.
39248 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39249 Don't include sys/time.h. Return from main rather than exiting.
39250 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39252 * modules/gethrxtime (Depends-on): Add sys_time.
39253 * modules/gettime (Depends-on): Likewise.
39254 * modules/gettimeofday (Depends-on): Likewise.
39255 * modules/nanosleep (Depends-on): Likewise.
39256 * modules/settime (Depends-on): Likewise.
39257 * modules/tempname (Depends-on): Likewise.
39258 * modules/utimens (Depends-on): Likewise.
39259 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39260 (Include:) Change back to <sys/time.h>.
39261 (Maintainer:) Add self.
39262 * modules/sys_time: New file.
39263 * modules/tempname (Depends-on): Add gettimeofday.
39264 * tests/test-gettimeofday.c: Include <sys/time.h>
39265 rather than gettimeofday.h.
39267 2007-01-17 Bruno Haible <bruno@clisp.org>
39269 * gnulib-tool (func_get_license): Revert last patch. Instead, let
39270 the license default to GPL.
39271 (func_create_testdir): Don't complain if a module is LGPL and its
39272 tests module depends on GPLed modules.
39274 2007-01-17 Bruno Haible <bruno@clisp.org>
39276 * lib/gettimeofday.c (gettimeofday): Add code for the case
39277 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39278 maximum possible value for tv->tv_usec, rather than the minimum one.
39280 2005-10-08 Martin Lambers <marlam@marlam.de>
39281 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
39282 2007-01-16 Bruno Haible <bruno@clisp.org>
39284 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39285 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39286 gl_FUNC_GETTIMEOFDAY.
39287 (Include): Add gettimeofday.h.
39288 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39289 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39290 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39291 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39292 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39293 * lib/gettimeofday.h: New file.
39294 * lib/gettimeofday.c: Include <sys/timeb.h>.
39295 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39296 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39297 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39298 fall back on time().
39300 * tests/test-gettimeofday.c: New file.
39301 * modules/gettimeofday-tests: New file.
39303 2007-01-16 Eric Blake <ebb9@byu.net>
39305 * modules/fnmatch (Depends-on): Depend on wchar.
39306 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39307 * m4/fnmatch.m4: Likewise.
39308 * modules/mbchar (Makefile.am): Assume <wchar.h>.
39309 * m4/mbchar.m4: Likewise.
39310 * modules/mbswidth (Depends-on): Depend on wchar.
39311 * lib/mbswidth.c: Assume <wchar.h>.
39312 * m4/mbswidth.m4: Likewise.
39313 * modules/quotearg (Depends-on): Depend on wchar.
39314 * lib/quotearg.c: Assume <wchar.h>.
39315 * m4/quotearg.m4: Likewise.
39316 * modules/regex (Depends-on): Depend on wchar.
39317 * lib/regex_internal.h: Assume <wchar.h>.
39318 * m4/regex.m4: Likewise.
39319 * modules/stdint (Depends-on): Depend on wchar.
39320 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39321 * m4/stdint.m4: Likewise.
39322 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39323 * modules/strftime (Depends-on): Depend on wchar.
39324 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39325 * modules/strtol (Depends-on): Depend on wchar.
39326 * lib/strtol.c: Assume <wchar.h>.
39327 * modules/wcwidth (Depends-on): Depend on wchar.
39328 * lib/wcwidth.h: Assume <wchar.h>.
39329 * m4/wcwidth.m4: Likewise.
39331 2007-01-16 Bruno Haible <bruno@clisp.org>
39333 * modules/csharpexec-script: New, created from...
39334 * modules/csharpexec: ... this.
39336 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
39338 * modules/javaexec-script: New, created from...
39339 * modules/javaexec: ... this.
39341 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39343 * modules/poll (Dependencies): Add sys_select.
39345 2007-01-15 Jim Meyering <jim@meyering.net>
39347 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39348 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39349 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
39350 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39352 2007-01-15 Bruno Haible <bruno@clisp.org>
39354 * modules/striconveh: New file.
39355 * lib/striconveh.h: New file.
39356 * lib/striconveh.c: New file.
39357 * MODULES.html.sh (Internationalization functions): Add striconveh.
39359 * modules/striconveh-tests: New file.
39360 * tests/test-striconveh.c: New file.
39362 2007-01-15 Bruno Haible <bruno@clisp.org>
39364 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39365 not from GNU libiconv or GNU libc.
39367 2007-01-15 Bruno Haible <bruno@clisp.org>
39369 * doc/gnulib-intro.texi (Copyright): Explain the different license
39370 terms for module descriptions, autoconf macros, tests, documentation.
39372 2007-01-14 Bruno Haible <bruno@clisp.org>
39374 * modules/striconv-tests: New file.
39375 * tests/test-striconv.c: New file.
39377 2007-01-14 Bruno Haible <bruno@clisp.org>
39379 * modules/iconv-tests: New file.
39380 * tests/test-iconv.c: New file.
39382 2007-01-14 Bruno Haible <bruno@clisp.org>
39384 * gnulib-tool (func_get_license): For test modules, use the license of
39387 2007-01-14 Bruno Haible <bruno@clisp.org>
39389 * modules/iconv (Include): Clarify that <iconv.h> can only be included
39390 if iconv is found to exist.
39392 2007-01-14 Bruno Haible <bruno@clisp.org>
39394 * modules/c-ctype-tests: New file.
39395 * tests/test-c-ctype.c: New file.
39397 2007-01-14 Bruno Haible <bruno@clisp.org>
39399 * modules/binary-io-tests: New file.
39400 * tests/test-binary-io.sh: New file.
39401 * tests/test-binary-io.c: New file.
39403 2007-01-14 Bruno Haible <bruno@clisp.org>
39405 * modules/array-oset-tests: New file.
39406 * tests/test-array_oset.c: New file.
39408 2007-01-14 Bruno Haible <bruno@clisp.org>
39410 * modules/array-list-tests: New file.
39411 * tests/test-array_list.c: New file.
39413 2007-01-14 Bruno Haible <bruno@clisp.org>
39415 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39417 Reported by Simon Josefsson in
39418 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39420 2007-01-14 Bruno Haible <bruno@clisp.org>
39422 * modules/allocsa-tests: New file.
39423 * tests/test-allocsa.c: New file.
39425 2007-01-14 Bruno Haible <bruno@clisp.org>
39427 * modules/fchdir (Depends-on): Add absolute-header.
39428 * modules/unistd (Depends-on): Likewise.
39430 2006-12-30 Bruno Haible <bruno@clisp.org>
39432 * modules/fchdir: New file.
39433 * modules/unistd (Files): Add lib/unistd_.h.
39434 (Makefile.am): Generate unistd.h from unistd_.h.
39435 * lib/fchdir.c: New file.
39436 * lib/dirent_.h: New file.
39437 * lib/unistd_.h: New file.
39438 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39439 * m4/fchdir.m4: New file.
39440 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39441 (gl_HEADER_UNISTD): Invoke it.
39442 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39444 * lib/backupfile.c (opendir, closedir): Undefine.
39445 * lib/chown.c (open, close): Undefine.
39446 * lib/clean-temp.c (open, close): Undefine.
39447 * lib/copy-file.c (open, close): Undefine.
39448 * lib/execute.c (open, close): Undefine.
39449 * lib/fsusage.c (open, close): Undefine.
39450 * lib/gc-gnulib.c (open, close): Undefine.
39451 * lib/getcwd.c (opendir, closedir): Undefine.
39452 * lib/glob.c (opendir, closedir): Undefine.
39453 * lib/javacomp.c (open, close): Undefine.
39454 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39455 * lib/openat-proc.c (open, close): Undefine.
39456 * lib/pagealign_alloc.c (open, close): Undefine.
39457 * lib/pipe.c (open, close): Undefine.
39458 * lib/progreloc.c (open, close): Undefine.
39459 * lib/savedir.c (opendir, closedir): Undefine.
39460 * lib/utime.c (open, close): Undefine.
39461 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39463 2007-01-10 Bruno Haible <bruno@clisp.org>
39465 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39467 2007-01-12 Eric Blake <ebb9@byu.net>
39469 Provide a robust <wchar.h>. Further simplifications are now
39470 possible in other modules, but not included here.
39471 * modules/wchar: New module.
39472 * m4/wchar.m4: New file.
39473 * lib/wchar_.h: Likewise.
39474 * modules/mbchar (Depends-on): Depend on wchar, as the first use
39476 * MODULES.html.sh (Extended multibyte and wide character utilities):
39479 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
39481 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39482 to a reasonable default for memory allocation.
39483 (xreadlink): Don't allocate a huge buffer, to work around a buggy
39484 file system that reports garbage st_size values for symlinks.
39485 Problem reported by Liyang Hu.
39487 2007-01-11 Simon Josefsson <simon@josefsson.org>
39489 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39490 Emacs .#* auto-save files).
39492 2007-01-11 Bruno Haible <bruno@clisp.org>
39494 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39497 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
39499 Use @...@ consistently in lib/wctype_.h.
39500 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39501 on it being set to 1 or 0.
39502 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39503 go back to AC_SUBSTing it.
39504 * modules/wctype (Makefile.am): Undo previous change.
39506 2007-01-10 Eric Blake <ebb9@byu.net>
39508 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39509 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39510 * modules/wctype (Makefile.am): Likewise.
39511 Reported by Chris McGuire.
39513 2007-01-10 Jim Meyering <jim@meyering.net>
39515 fts.c: a small readability/maintainability improvement
39516 * lib/fts.c (fts_read): Make this code slightly more readable and
39517 maintainable by hoisting the "sp->fts_cur = p" assignments to
39518 immediately follow the statements that set P. Derived from
39519 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39521 2007-01-10 Eric Blake <ebb9@byu.net>
39523 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39524 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39525 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39526 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39527 Reported by Chris McGuire.
39529 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39531 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39534 2007-01-09 Bruno Haible <bruno@clisp.org>
39536 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39537 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39539 (func_module): Use them.
39541 2007-01-09 Bruno Haible <bruno@clisp.org>
39543 * modules/unistr/base: New file.
39544 * lib/unistr.h: New file.
39546 * modules/unistr/u8-to-u16: New file.
39547 * lib/unistr/u8-to-u16.c: New file.
39549 * modules/unistr/u8-to-u32: New file.
39550 * lib/unistr/u8-to-u32.c: New file.
39552 * modules/unistr/u16-to-u8: New file.
39553 * lib/unistr/u16-to-u8.c: New file.
39555 * modules/unistr/u16-to-u32: New file.
39556 * lib/unistr/u16-to-u32.c: New file.
39558 * modules/unistr/u32-to-u8: New file.
39559 * lib/unistr/u32-to-u8.c: New file.
39561 * modules/unistr/u32-to-u16: New file.
39562 * lib/unistr/u32-to-u16.c: New file.
39564 * modules/unistr/u8-check: New file.
39565 * modules/unistr/u16-check: New file.
39566 * modules/unistr/u32-check: New file.
39567 * lib/unistr/u8-check.c: New file.
39568 * lib/unistr/u16-check.c: New file.
39569 * lib/unistr/u32-check.c: New file.
39571 * modules/unistr/u8-chr: New file.
39572 * modules/unistr/u16-chr: New file.
39573 * modules/unistr/u32-chr: New file.
39574 * lib/unistr/u8-chr.c: New file.
39575 * lib/unistr/u16-chr.c: New file.
39576 * lib/unistr/u32-chr.c: New file.
39578 * modules/unistr/u8-cmp: New file.
39579 * modules/unistr/u16-cmp: New file.
39580 * modules/unistr/u32-cmp: New file.
39581 * lib/unistr/u8-cmp.c: New file.
39582 * lib/unistr/u16-cmp.c: New file.
39583 * lib/unistr/u32-cmp.c: New file.
39585 * modules/unistr/u8-cpy: New file.
39586 * modules/unistr/u16-cpy: New file.
39587 * modules/unistr/u32-cpy: New file.
39588 * lib/unistr/u8-cpy.c: New file.
39589 * lib/unistr/u16-cpy.c: New file.
39590 * lib/unistr/u32-cpy.c: New file.
39591 * lib/unistr/u-cpy.h: New file.
39593 * modules/unistr/u8-cpy-alloc: New file.
39594 * modules/unistr/u16-cpy-alloc: New file.
39595 * modules/unistr/u32-cpy-alloc: New file.
39596 * lib/unistr/u8-cpy-alloc.c: New file.
39597 * lib/unistr/u16-cpy-alloc.c: New file.
39598 * lib/unistr/u32-cpy-alloc.c: New file.
39599 * lib/unistr/u-cpy-alloc.h: New file.
39601 * modules/unistr/u8-endswith: New file.
39602 * modules/unistr/u16-endswith: New file.
39603 * modules/unistr/u32-endswith: New file.
39604 * lib/unistr/u8-endswith.c: New file.
39605 * lib/unistr/u16-endswith.c: New file.
39606 * lib/unistr/u32-endswith.c: New file.
39607 * lib/unistr/u-endswith.h: New file.
39609 * modules/unistr/u8-mblen: New file.
39610 * modules/unistr/u16-mblen: New file.
39611 * modules/unistr/u32-mblen: New file.
39612 * lib/unistr/u8-mblen.c: New file.
39613 * lib/unistr/u16-mblen.c: New file.
39614 * lib/unistr/u32-mblen.c: New file.
39616 * modules/unistr/u8-mbtouc: New file.
39617 * modules/unistr/u16-mbtouc: New file.
39618 * modules/unistr/u32-mbtouc: New file.
39619 * lib/unistr/u8-mbtouc.c: New file.
39620 * lib/unistr/u16-mbtouc.c: New file.
39621 * lib/unistr/u32-mbtouc.c: New file.
39623 * modules/unistr/u8-mbtouc-safe: New file.
39624 * modules/unistr/u16-mbtouc-safe: New file.
39625 * modules/unistr/u32-mbtouc-safe: New file.
39626 * lib/unistr/u8-mbtouc-safe.c: New file.
39627 * lib/unistr/u16-mbtouc-safe.c: New file.
39628 * lib/unistr/u32-mbtouc-safe.c: New file.
39630 * modules/unistr/u8-move: New file.
39631 * modules/unistr/u16-move: New file.
39632 * modules/unistr/u32-move: New file.
39633 * lib/unistr/u8-move.c: New file.
39634 * lib/unistr/u16-move.c: New file.
39635 * lib/unistr/u32-move.c: New file.
39636 * lib/unistr/u-move.h: New file.
39638 * modules/unistr/u8-next: New file.
39639 * modules/unistr/u16-next: New file.
39640 * modules/unistr/u32-next: New file.
39641 * lib/unistr/u8-next.c: New file.
39642 * lib/unistr/u16-next.c: New file.
39643 * lib/unistr/u32-next.c: New file.
39645 * modules/unistr/u8-prev: New file.
39646 * modules/unistr/u16-prev: New file.
39647 * modules/unistr/u32-prev: New file.
39648 * lib/unistr/u8-prev.c: New file.
39649 * lib/unistr/u16-prev.c: New file.
39650 * lib/unistr/u32-prev.c: New file.
39652 * modules/unistr/u8-set: New file.
39653 * modules/unistr/u16-set: New file.
39654 * modules/unistr/u32-set: New file.
39655 * lib/unistr/u8-set.c: New file.
39656 * lib/unistr/u16-set.c: New file.
39657 * lib/unistr/u32-set.c: New file.
39658 * lib/unistr/u-set.h: New file.
39660 * modules/unistr/u8-startswith: New file.
39661 * modules/unistr/u16-startswith: New file.
39662 * modules/unistr/u32-startswith: New file.
39663 * lib/unistr/u8-startswith.c: New file.
39664 * lib/unistr/u16-startswith.c: New file.
39665 * lib/unistr/u32-startswith.c: New file.
39666 * lib/unistr/u-startswith.h: New file.
39668 * modules/unistr/u8-stpcpy: New file.
39669 * modules/unistr/u16-stpcpy: New file.
39670 * modules/unistr/u32-stpcpy: New file.
39671 * lib/unistr/u8-stpcpy.c: New file.
39672 * lib/unistr/u16-stpcpy.c: New file.
39673 * lib/unistr/u32-stpcpy.c: New file.
39674 * lib/unistr/u-stpcpy.h: New file.
39676 * modules/unistr/u8-stpncpy: New file.
39677 * modules/unistr/u16-stpncpy: New file.
39678 * modules/unistr/u32-stpncpy: New file.
39679 * lib/unistr/u8-stpncpy.c: New file.
39680 * lib/unistr/u16-stpncpy.c: New file.
39681 * lib/unistr/u32-stpncpy.c: New file.
39682 * lib/unistr/u-stpncpy.h: New file.
39684 * modules/unistr/u8-strcat: New file.
39685 * modules/unistr/u16-strcat: New file.
39686 * modules/unistr/u32-strcat: New file.
39687 * lib/unistr/u8-strcat.c: New file.
39688 * lib/unistr/u16-strcat.c: New file.
39689 * lib/unistr/u32-strcat.c: New file.
39690 * lib/unistr/u-strcat.h: New file.
39692 * modules/unistr/u8-strchr: New file.
39693 * modules/unistr/u16-strchr: New file.
39694 * modules/unistr/u32-strchr: New file.
39695 * lib/unistr/u8-strchr.c: New file.
39696 * lib/unistr/u16-strchr.c: New file.
39697 * lib/unistr/u32-strchr.c: New file.
39699 * modules/unistr/u8-strcmp: New file.
39700 * modules/unistr/u16-strcmp: New file.
39701 * modules/unistr/u32-strcmp: New file.
39702 * lib/unistr/u8-strcmp.c: New file.
39703 * lib/unistr/u16-strcmp.c: New file.
39704 * lib/unistr/u32-strcmp.c: New file.
39706 * modules/unistr/u8-strcpy: New file.
39707 * modules/unistr/u16-strcpy: New file.
39708 * modules/unistr/u32-strcpy: New file.
39709 * lib/unistr/u8-strcpy.c: New file.
39710 * lib/unistr/u16-strcpy.c: New file.
39711 * lib/unistr/u32-strcpy.c: New file.
39712 * lib/unistr/u-strcpy.h: New file.
39714 * modules/unistr/u8-strcspn: New file.
39715 * modules/unistr/u16-strcspn: New file.
39716 * modules/unistr/u32-strcspn: New file.
39717 * lib/unistr/u8-strcspn.c: New file.
39718 * lib/unistr/u16-strcspn.c: New file.
39719 * lib/unistr/u32-strcspn.c: New file.
39720 * lib/unistr/u-strcspn.h: New file.
39722 * modules/unistr/u8-strdup: New file.
39723 * modules/unistr/u16-strdup: New file.
39724 * modules/unistr/u32-strdup: New file.
39725 * lib/unistr/u8-strdup.c: New file.
39726 * lib/unistr/u16-strdup.c: New file.
39727 * lib/unistr/u32-strdup.c: New file.
39728 * lib/unistr/u-strdup.h: New file.
39730 * modules/unistr/u8-strlen: New file.
39731 * modules/unistr/u16-strlen: New file.
39732 * modules/unistr/u32-strlen: New file.
39733 * lib/unistr/u8-strlen.c: New file.
39734 * lib/unistr/u16-strlen.c: New file.
39735 * lib/unistr/u32-strlen.c: New file.
39736 * lib/unistr/u-strlen.h: New file.
39738 * modules/unistr/u8-strmblen: New file.
39739 * modules/unistr/u16-strmblen: New file.
39740 * modules/unistr/u32-strmblen: New file.
39741 * lib/unistr/u8-strmblen.c: New file.
39742 * lib/unistr/u16-strmblen.c: New file.
39743 * lib/unistr/u32-strmblen.c: New file.
39745 * modules/unistr/u8-strmbtouc: New file.
39746 * modules/unistr/u16-strmbtouc: New file.
39747 * modules/unistr/u32-strmbtouc: New file.
39748 * lib/unistr/u8-strmbtouc.c: New file.
39749 * lib/unistr/u16-strmbtouc.c: New file.
39750 * lib/unistr/u32-strmbtouc.c: New file.
39752 * modules/unistr/u8-strncat: New file.
39753 * modules/unistr/u16-strncat: New file.
39754 * modules/unistr/u32-strncat: New file.
39755 * lib/unistr/u8-strncat.c: New file.
39756 * lib/unistr/u16-strncat.c: New file.
39757 * lib/unistr/u32-strncat.c: New file.
39758 * lib/unistr/u-strncat.h: New file.
39760 * modules/unistr/u8-strncmp: New file.
39761 * modules/unistr/u16-strncmp: New file.
39762 * modules/unistr/u32-strncmp: New file.
39763 * lib/unistr/u8-strncmp.c: New file.
39764 * lib/unistr/u16-strncmp.c: New file.
39765 * lib/unistr/u32-strncmp.c: New file.
39767 * modules/unistr/u8-strncpy: New file.
39768 * modules/unistr/u16-strncpy: New file.
39769 * modules/unistr/u32-strncpy: New file.
39770 * lib/unistr/u8-strncpy.c: New file.
39771 * lib/unistr/u16-strncpy.c: New file.
39772 * lib/unistr/u32-strncpy.c: New file.
39773 * lib/unistr/u-strncpy.h: New file.
39775 * modules/unistr/u8-strnlen: New file.
39776 * modules/unistr/u16-strnlen: New file.
39777 * modules/unistr/u32-strnlen: New file.
39778 * lib/unistr/u8-strnlen.c: New file.
39779 * lib/unistr/u16-strnlen.c: New file.
39780 * lib/unistr/u32-strnlen.c: New file.
39781 * lib/unistr/u-strnlen.h: New file.
39783 * modules/unistr/u8-strpbrk: New file.
39784 * modules/unistr/u16-strpbrk: New file.
39785 * modules/unistr/u32-strpbrk: New file.
39786 * lib/unistr/u8-strpbrk.c: New file.
39787 * lib/unistr/u16-strpbrk.c: New file.
39788 * lib/unistr/u32-strpbrk.c: New file.
39789 * lib/unistr/u-strpbrk.h: New file.
39791 * modules/unistr/u8-strrchr: New file.
39792 * modules/unistr/u16-strrchr: New file.
39793 * modules/unistr/u32-strrchr: New file.
39794 * lib/unistr/u8-strrchr.c: New file.
39795 * lib/unistr/u16-strrchr.c: New file.
39796 * lib/unistr/u32-strrchr.c: New file.
39798 * modules/unistr/u8-strspn: New file.
39799 * modules/unistr/u16-strspn: New file.
39800 * modules/unistr/u32-strspn: New file.
39801 * lib/unistr/u8-strspn.c: New file.
39802 * lib/unistr/u16-strspn.c: New file.
39803 * lib/unistr/u32-strspn.c: New file.
39804 * lib/unistr/u-strspn.h: New file.
39806 * modules/unistr/u8-strstr: New file.
39807 * modules/unistr/u16-strstr: New file.
39808 * modules/unistr/u32-strstr: New file.
39809 * lib/unistr/u8-strstr.c: New file.
39810 * lib/unistr/u16-strstr.c: New file.
39811 * lib/unistr/u32-strstr.c: New file.
39812 * lib/unistr/u-strstr.h: New file.
39814 * modules/unistr/u8-strtok: New file.
39815 * modules/unistr/u16-strtok: New file.
39816 * modules/unistr/u32-strtok: New file.
39817 * lib/unistr/u8-strtok.c: New file.
39818 * lib/unistr/u16-strtok.c: New file.
39819 * lib/unistr/u32-strtok.c: New file.
39820 * lib/unistr/u-strtok.h: New file.
39822 * modules/unistr/u8-uctomb: New file.
39823 * modules/unistr/u16-uctomb: New file.
39824 * modules/unistr/u32-uctomb: New file.
39825 * lib/unistr/u8-uctomb.c: New file.
39826 * lib/unistr/u16-uctomb.c: New file.
39827 * lib/unistr/u32-uctomb.c: New file.
39829 * MODULES.html.sh (Unicode string functions): Add the new modules.
39831 2007-01-08 Bruno Haible <bruno@clisp.org>
39833 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39834 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39837 2007-01-08 Karl Berry <karl@gnu.org>
39839 * doc/error.texi: mention that main() fns must set program_name
39840 when progname is used.
39842 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
39844 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39845 WCTYPE_H is empty, for the benefit of builds from non-distclean
39846 directories. Problem reported by Eric Blake in
39847 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39849 2007-01-08 Bruno Haible <bruno@clisp.org>
39851 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39852 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39853 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39854 PROVIDE_CANONICALIZE_FILENAME_MODE.
39855 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39857 2007-01-08 Bruno Haible <bruno@clisp.org>
39859 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39860 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39861 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39862 * lib/fts.c: Likewise.
39863 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39865 2006-12-25 Bruno Haible <bruno@clisp.org>
39867 * modules/utf8-ucs4-safe: New file.
39868 * lib/utf8-ucs4-safe.h: New file.
39869 * lib/unistr/utf8-ucs4-safe.c: New file.
39871 * modules/utf16-ucs4-safe: New file.
39872 * lib/utf16-ucs4-safe.h: New file.
39873 * lib/unistr/utf16-ucs4-safe.c: New file.
39875 * MODULES.html.sh (Unicode string functions): Add the new modules.
39877 2007-01-08 Bruno Haible <bruno@clisp.org>
39879 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39880 (Depends-on): Add unitypes.
39881 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39882 (u8_mbtouc_aux): Move out to separate file.
39883 (u8_mbtouc): Use ucs4_t, uint8_t types.
39884 * lib/unistr/utf8-ucs4.c: New file.
39886 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39887 (Depends-on): Add unitypes.
39888 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39889 (u16_mbtouc_aux): Move out to separate file.
39890 (u16_mbtouc): Use ucs4_t, uint16_t types.
39891 * lib/unistr/utf16-ucs4.c: New file.
39893 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39894 (Depends-on): Add unitypes.
39895 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39896 (u8_uctomb_aux): Move out to separate file.
39897 (u8_uctomb): Use ucs4_t, uint8_t types.
39898 * lib/unistr/ucs4-utf8.c: New file.
39900 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39901 (Depends-on): Add unitypes.
39902 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39903 (u16_uctomb_aux): Move out to separate file.
39904 (u16_uctomb): Use ucs4_t, uint16_t types.
39905 * lib/unistr/ucs4-utf16.c: New file.
39907 2006-12-25 Bruno Haible <bruno@clisp.org>
39909 * modules/unitypes: New file.
39910 * lib/unitypes.h: New file.
39911 * MODULES.html.sh (func_all_modules): New section "Unicode string
39912 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39913 this section. Add unitypes.
39915 2007-01-08 Bruno Haible <bruno@clisp.org>
39917 Avoid variable names that conflict with those from libtool.
39918 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39919 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39920 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39921 library_names_spec to acl_library_names_spec, hardcode_* to
39923 Reported by Ralf Wildenhues.
39925 2007-01-08 Bruno Haible <bruno@clisp.org>
39927 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39929 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39931 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39932 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39934 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39936 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39937 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39938 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39939 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39941 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39943 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39944 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39945 GC_USE_<algorithm>.
39946 * lib/gc-libgcrypt.c: Likewise.
39947 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39948 * modules/gc-arctwo (configure.ac): Likewise.
39949 * modules/gc-des (configure.ac): Likewise.
39950 * modules/gc-hmac-md5 (configure.ac): Likewise.
39951 * modules/gc-hmac-sha1 (configure.ac): Likewise.
39952 * modules/gc-md2 (configure.ac): Likewise.
39953 * modules/gc-md4 (configure.ac): Likewise.
39954 * modules/gc-md5 (configure.ac): Likewise.
39955 * modules/gc-random (configure.ac): Likewise.
39956 * modules/gc-rijndael (configure.ac): Likewise.
39957 * modules/gc-sha1 (configure.ac): Likewise.
39959 2007-01-08 Bruno Haible <bruno@clisp.org>
39961 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39963 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39965 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39967 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39968 * modules/fcntl-safer (configure.ac): Likewise.
39969 * modules/fopen-safer (configure.ac): Likewise.
39970 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39971 GNULIB_FWRITEERROR macro definition.
39973 2007-01-08 Bruno Haible <bruno@clisp.org>
39975 * m4/gnulib-common.m4: New file.
39976 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39977 (func_get_filelist): Add m4/gnulib-common.m4.
39979 2007-01-08 Bruno Haible <bruno@clisp.org>
39981 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39984 2007-01-08 Jim Meyering <jim@meyering.net>
39986 Use a more robust test for a "can't happen" condition.
39987 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39988 narrowed the st_size value. Presuming the "can't happen" condition
39989 is true, that narrowing could conceivably convert an invalid st_size
39990 value into a valid one. Instead, use a change based on Matthew
39991 Woehlke's original patch.
39993 Slight readability improvement: use an assert-like macro
39994 in place of literal "abort ()" uses.
39995 * lib/fts.c (fts_assert): Define.
39996 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39997 Use this macro instead of a bare 'abort'.
39999 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
40001 Don't worry about using IRIX 5.3's wctype.h broken definitions;
40002 simply work around them.
40003 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40004 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40005 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40007 Don't bother to define as macros, since the standard doesn't require it.
40008 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40009 longer worry about IRIX 5.3.
40010 (HAVE_WCTYPE_CTMP_BUG): Remove.
40012 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
40014 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40015 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
40016 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40017 Problems reported by Georg Schwarz for IRIX 5.3.
40019 * gnulib-tool (autoconf_minversion): Take the maximum version number
40020 found, not the minimum. Problem reported by James Youngman.
40022 2007-01-03 Karl Berry <karl@gnu.org>
40024 * doc/error.texi: new file, explaining interaction with progname.
40025 * doc/gnulib.texi: include it. Update copyright.
40027 2007-01-03 Simon Josefsson <simon@josefsson.org>
40029 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40030 AC_CANONICAL_HOST, to improve autobuild outputs.
40032 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
40033 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40035 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40036 sockets, server sockets, and other file descriptors. Count errors
40037 to compute the return value. Reorder the code a bit to be easier
40038 to follow. Don't set event bits that were not requested (except
40039 POLLERR and POLLHUP).
40041 2007-01-01 Bruno Haible <bruno@clisp.org>
40043 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40045 2007-01-03 Jim Meyering <jim@meyering.net>
40047 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
40049 2007-01-02 Bruno Haible <bruno@clisp.org>
40051 * modules/settime (Include): Require timespec.h.
40052 * modules/nanosleep (Include): Likewise.
40054 2007-01-01 Bruno Haible <bruno@clisp.org>
40056 * gnulib-tool (func_emit_copyright_notice): Bump year.
40057 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40059 2007-01-01 Bruno Haible <bruno@clisp.org>
40061 Improve support for OpenBSD.
40062 * build-aux/config.rpath (libname_spec): Export.
40063 (library_names_spec): New variable. Export.
40064 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40065 library_names_spec from the config.rpath output. Locate shared library
40066 through the name pattern in library_names_spec.
40068 2007-01-01 Eric Blake <ebb9@byu.net>
40070 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40072 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
40074 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40075 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
40076 assume the C locale, and avoid an "eval" that could cause trouble.
40077 Problem with SORT reported by Bob Proulx.
40079 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40080 Define. Trivial patch from Henning Nielsen Lund, originally
40081 sent to bug-grep@gnu.org today.
40083 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
40085 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40086 struct stat. Problem reported by Henning Nielsen Lund.
40087 * lib/acl.c: Include acl.h first, to check interface. Don't
40088 bother to include sys/types.h and sys/stat.h again.
40090 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
40092 Import the following change from libc; problem reported by
40095 2005-10-13 Ulrich Drepper <drepper@redhat.com>
40098 * lib/argp.h: Remove __NTH for __argp_usage inline function.
40100 2006-12-28 Jim Meyering <jim@meyering.net>
40102 * build-aux/announce-gen: Do not assume that the package
40103 builds any of tar.gz, tar.bz2, and .xdelta files.
40104 Suggestion from Simon Josefsson.
40106 2006-12-28 Simon Josefsson <simon@josefsson.org>
40108 * modules/announce-gen: New file.
40110 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
40112 * lib/mbchar.h: Just include <wctype.h>; the wctype module
40113 handles its gotchas now.
40114 * lib/mbswidth.c: Likewise.
40115 * lib/wcwidth.h: Likewise.
40116 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40117 and iswcntrl; the wctype module does this stuff now.
40118 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40119 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40120 * modules/mbchar (Depends-on): Add wctype.
40121 * modules/mbswidth (Depends-on): Likewise.
40122 * modules/wcwidth (Depends-on): Likewise.
40124 2006-12-27 Eric Blake <ebb9@byu.net>
40126 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40127 module uses more than what <wctype.h> is required to provide.
40129 2006-12-26 Eric Blake <ebb9@byu.net>
40131 * gnulib-tool (sed_extract_prog): Avoid space-tab.
40133 2006-12-26 Eric Blake <ebb9@byu.net>
40135 * modules/absolute-header: New module.
40136 * modules/fcntl (Depends-on): Depend on it.
40137 * modules/inttypes (Depends-on): Likewise.
40138 * modules/stdint (Depends-on): Likewise.
40139 * modules/sys_stat (Depends-on): Likewise.
40140 * modules/wctype (Depends-on): Likewise.
40141 * MODULES.html.sh (Support for building libraries and
40142 executables): Document it.
40144 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
40146 * gnulib-tool (SED): Remove, undoing previous change.
40147 The problem was that it broke coreutils on Solaris, because
40148 "sed --posix" leaked into a makefile.
40149 (sed): New alias, if 'alias' and GNU sed.
40151 2006-12-24 Jim Meyering <jim@meyering.net>
40153 Work around an fchownat bug in glibc-2.4:
40154 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40155 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40156 in spite of the -P option.
40157 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40159 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40160 * modules/openat (Files): Add lib/fchownat.c.
40161 * lib/openat.c (fchownat): Don't define here. Move to...
40162 * lib/fchownat.c: ...this new file.
40164 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
40166 Fix bug reported by Bruno Haible in
40167 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40168 where quotearg.c didn't compile on Mac OS X 10.2 because it
40169 lacks <wchar.h> and wint_t.
40170 * lib/wctype_.h (__wctype_wint_t): New type.
40171 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40172 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40173 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40174 Arg is now of type __wctype_wint_t, not wint_t.
40175 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40176 substitute HAVE_WINT_T.
40177 * modules/wctype (Files): Add m4/wint_t.m4.
40178 (wctype.h): Substitute HAVE_WINT_T.
40180 2006-12-23 Bruno Haible <bruno@clisp.org>
40182 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40184 2006-12-23 Bruno Haible <bruno@clisp.org>
40186 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40188 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40191 2006-12-22 Bruno Haible <bruno@clisp.org>
40193 * lib/copy-file.c: Include acl.h.
40194 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40195 Close the file descriptors only after being done with copy_acl.
40196 * modules/copy-file (Depends-on): Add acl.
40198 2006-12-22 Bruno Haible <bruno@clisp.org>
40200 * gnulib-tool (SED): New variable.
40201 Use $SED instead of sed everywhere.
40203 2006-12-22 Bruno Haible <bruno@clisp.org>
40205 * modules/no-c++: New file.
40206 * m4/no-c++.m4: New file.
40207 * MODULES.html.sh (Support for building libraries and executables):
40210 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
40212 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40213 Include <limits.h>, and use its INT_MAX to rewrite the
40214 j loop so that it does not overflow 'int'. Problem reported by
40216 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40217 Play it safe by shifting left by 1 rather than multiplying by 2,
40218 as GCC is less likely to optimize this away when the value
40219 is signed (when it assumes overflow leads to undefined behavior).
40220 Also, don't assume time_t uses two's complement.
40222 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
40224 * MODULES.html.sh: New module wctype.
40225 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40226 * lib/fnmatch.c: Don't bother to include <wchar.h> before
40227 <wctype.h>, since the new wctype module should fix this.
40228 * lib/quotearg.c: Include <wctype.h> unconditionally, since
40229 the wctype module should arrange for it.
40230 * lib/regex_internal.h: Likewise.
40231 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40232 since the wctype module should handle this now.
40233 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40234 * modules/fnmatch (Depends-on): Add wctype.
40235 * modules/quotearg (Depends-on): Likewise.
40236 * modules/regex (Depends-on): Likewise.
40238 2006-12-19 Bruno Haible <bruno@clisp.org>
40240 * lib/strdup.h [C++]: Wrap definitions in extern "C".
40241 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40243 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40245 * modules/savewd (Depends-on): Fix dependency on fcntl.
40247 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
40249 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40250 conforms to C99, rather than relying on the user's environment
40251 setting of STDINT_H.
40253 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
40254 and Eric Blake <ebb9@byu.net>
40256 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40257 This is more consistent with the other defines here.
40258 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40259 Port to z/OS. Problem reported by Paul Gilmartin.
40260 Change local vars to use gl_ prefix rather than ac_.
40261 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40262 with other defines.
40263 * modules/double-slash-root: New module.
40264 * modules/dirname (Files): Remove m4/double-slash-root.m4.
40265 (Depends-on): Add double-slash-root.
40266 * MODULES.html.sh (File system functions): Mention new module.
40268 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
40270 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40271 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40272 This is for the benefit of gzip, which doesn't do i18n.
40274 2006-12-12 Jim Meyering <jim@meyering.net>
40276 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40277 Reported by Andreas Schwab <schwab@suse.de>.
40279 2006-12-12 Bruno Haible <bruno@clisp.org>
40281 Merge these changes.
40282 2006-09-05 Bruno Haible <bruno@clisp.org>
40283 * lib/iconvme.c (iconv_string): No need to save and restore errno when
40284 iconv_alloc succeeded.
40285 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40286 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40287 test for " && dest " at the end - dest is always != NULL there. Call
40288 iconv with 4xNULL arguments initially, to reset the state. Call iconv
40289 with 2xNULL arguments, also to flush the state storage. Handle the
40290 IRIX iconv behaviour. Realloc the final result, to throw away unused
40293 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
40295 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40296 and fchmodat unconditionally, since glibc 2.4 has them.
40297 Problem reported by Arkadiusz Miskiewicz.
40299 2006-12-10 Bruno Haible <bruno@clisp.org>
40301 * gnulib-tool (func_import): Show the include files only for those
40302 modules that are copied and specified.
40303 Reported by Karl Berry.
40305 2006-12-08 Jim Meyering <jim@meyering.net>
40307 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40308 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
40310 * build-aux/announce-gen: Add two new options, both optional:
40311 --bootstrap-tools=TOOL_LIST
40312 a comma-separated list of tools, e.g.,
40313 autoconf,automake,bison,gnulib
40314 --gnulib-snapshot-date=DATE
40315 if gnulib is in the bootstrap tool list,
40316 then report this as the snapshot date.
40317 If not specified, use the current date/time.
40318 If you specify a date here, be sure it's UTC.
40320 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40322 * tests/test-argp-2.sh: Fix test to match actual output.
40323 (func_compare): Fix sed script to be portable.
40325 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
40327 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40328 workaround for this case. It is not autoconfigured now; offhand
40329 it's hard to see how to autoconfigure it.
40331 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
40333 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40334 a directory that is about to be chowned. Such a directory's
40335 initial file permissions should permit the owner only and this
40336 should not be changed until after the chown, since the group and
40337 other bits would be incorrect if they granted permission before
40340 Fix porting problem for iswctype reported by Georg Schwarz in:
40341 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40342 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40343 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40344 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40345 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40347 2006-12-03 Jim Meyering <jim@meyering.net>
40349 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40350 p->fts_statp may not yet be defined.
40351 (fts_read): Instead, set it in the caller, once p->fts_statp is
40352 sure to be defined, and corresponds to a top-level directory.
40353 This bug made du -x fail. Here's the coreutils test case:
40354 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40355 Reported by Mike Frysinger.
40357 2006-12-01 Jim Meyering <jim@meyering.net>
40359 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40360 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40361 Reported by Simon Josefsson.
40363 2006-11-30 Jim Meyering <jim@meyering.net>
40365 * m4/warning.m4: Use the all-permissive copyright notice
40366 recommended by RMS (rather than LGPL).
40367 * m4/vararrays.m4: Likewise.
40368 * m4/flexmember.m4: Likewise.
40370 2006-11-29 Bruno Haible <bruno@clisp.org>
40372 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40373 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40375 Reported by Simon Josefsson <simon@josefsson.org>.
40377 2006-11-28 James Youngman <jay@gnu.org>
40379 * README: Advise users that they might find the bug-gnulib@gnu.org
40380 and autotools-announce@gnu.org mailing lists useful.
40382 2006-11-28 Bruno Haible <bruno@clisp.org>
40384 * m4/ptrdiff_max.m4: Remove file.
40386 2006-11-21 Bruno Haible <bruno@clisp.org>
40388 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40390 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40391 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40393 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40394 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40396 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40398 2006-11-28 Jim Meyering <jim@meyering.net>
40400 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40401 warning from "gcc -Wshadow" about shadowing the builtin.
40403 2006-11-27 Bruno Haible <bruno@clisp.org>
40405 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40407 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40409 2006-11-27 Bruno Haible <bruno@clisp.org>
40410 Paul Eggert <eggert@cs.ucla.edu>
40412 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40414 2006-11-26 Bruno Haible <bruno@clisp.org>
40416 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40417 noinst_LTLIBRARIES.
40419 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
40420 Bruno Haible <bruno@clisp.org>
40422 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40423 if compiling with "gcc -ansi".
40425 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
40427 Fix some incompatibilities with gcc -ansi -pedantic.
40428 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40429 if compiling pedantically with GCC, unless it's C99 or later.
40430 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40431 it mishandles gcc -ansi -pedantic as well.
40432 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40434 * lib/regexec.c (check_node_accept_bytes): Don't use auto
40435 initializers for struct if -pedantic, unless it's C99 or later.
40437 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
40439 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40440 Don't close an fd more than once. Identical atimes indicate
40441 success, not failure.
40443 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
40445 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40447 2006-11-23 Jim Meyering <jim@meyering.net>
40449 * build-aux/announce-gen: New file. From coreutils.
40451 2006-11-22 Jim Meyering <jim@meyering.net>
40453 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40454 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40455 (fts_read): Use a temporary to narrow the overused st_size member
40456 before using it in a switch statement. Reported by Matthew Woehlke.
40458 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40459 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40461 2006-11-20 Bruno Haible <bruno@clisp.org>
40463 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40464 changequote instead of pairs of brackets.
40465 Reported by Andreas Schwab <schwab@suse.de>.
40467 2006-11-21 Jim Meyering <jim@meyering.net>
40469 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40470 so as to remain compatible with older compilers.
40471 Patch from Michael Deutschmann.
40473 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40475 * MODULES.html.sh (File system functions): Add openat.
40477 * lib/openat.h (rpl_fstatat): New macro, if
40478 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40479 (fstatat): Define to rpl_fstatat under the same conditions,
40480 unless COMPILING_FSTATAT.
40481 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40482 seems to have the bug.
40483 * lib/fstatat.c: New file.
40484 * modules/openat (Files): Add it.
40486 2006-11-20 Bruno Haible <bruno@clisp.org>
40488 * Makefile: New file.
40490 2006-11-20 Jim Meyering <jim@meyering.net>
40492 The beginnings of syntax-related checks for gnulib.
40493 * lib/Makefile: New file.
40494 * lib/t-idcache: New script. Ensure that the two halves of
40495 idcache.c stay in sync.
40497 * lib/idcache.c: Adjust comments in user- and group- portions to
40498 be more accurate, and to be consistent with one another.
40500 2006-11-20 Jim Meyering <jim@meyering.net>
40502 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40503 continue using the flexible array member (thus, this module performs
40504 half as many malloc calls), with the addition that...
40505 (getgroup, getuser): Consistently record a non-match via an empty
40506 "name" string, and map an empty string match to a NULL return value.
40507 * modules/idcache (Depends-on): Re-add flexmember.
40509 * lib/idcache.c (getuser): Remove all uses of the register keyword.
40510 (getuidbyname, getgroup, getgidbyname): Likewise.
40512 Use cleaner syntax: NULL rather than 0.
40513 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40515 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40517 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40518 It mishandled the case where the group was missing.
40519 Problem reported by Greg Schafer.
40520 * modules/idcache: Likewise.
40522 2006-11-18 Jim Meyering <jim@meyering.net>
40524 * check-module (%exempt_header): Add exception for some
40525 conditionally-included headers.
40527 * modules/i-ring (Depends-on): Add verify.
40528 (License): Change to LGPL.
40530 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
40532 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40533 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40534 and inttostr.h. Use snprintf rather than uinttostr, so that
40535 LGPLed code doesn't depend on GPLed.
40537 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
40539 * modules/inline (License): Change from GPL to LGPL.
40541 2006-11-17 Jim Meyering <jim@meyering.net>
40543 * modules/d-type (License): Switch to LGPL.
40545 2006-11-15 Bruno Haible <bruno@clisp.org>
40547 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40549 2006-11-15 Eric Blake <ebb9@byu.net>
40551 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40552 the module dependency.
40554 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40555 Bruno Haible <bruno@clisp.org>
40557 * gnulib-tool (func_create_testdir): Add license consistency check.
40559 2006-11-15 Eric Blake <ebb9@byu.net>
40561 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40562 random "(cached)" in configure output.
40564 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40566 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40567 test for conforming inttypes.h is both announced and cached.
40569 * MODULES.html.sh (seen_modules, seen_files): New variables.
40570 (func_module): Rewrite to use a few less gnulib-tool and sed
40571 invocations. Avoid a couple of quadratic algorithms for ...
40572 (missed_modules, missed_files): ... these, with ...
40573 (func_append, func_tmpdir): ... these new functions, from
40574 gnulib-tool. Analogously, install traps for cleanup.
40576 * tests/test-gc.c (main): Remove unused variables.
40577 * tests/test-read-file.c: Include stdlib.h, for 'free'.
40579 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
40581 * modules/inttostr (License): Change to LGPL.
40583 2006-11-14 Eric Blake <ebb9@byu.net>
40585 * modules/tempname (License): Change to LGPL.
40587 2006-11-14 Eric Blake <ebb9@byu.net>
40589 * doc/functions.texi (Function Portability): *printf functions on
40590 Cygwin now understand all POSIX size specifiers.
40592 2006-11-14 Bruno Haible <bruno@clisp.org>
40594 * modules/c-ctype (License): Change to LGPL.
40596 2006-11-12 Bruno Haible <bruno@clisp.org>
40598 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40599 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40600 for GNOME libraries, for which the include files are installed in
40601 subdirectories of $prefix/include.
40603 2006-11-12 Bruno Haible <bruno@clisp.org>
40605 * m4/lib-link.m4: Require at least autoconf-2.54.
40606 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40607 name to underscores for the --with option.
40609 2006-11-13 Bruno Haible <bruno@clisp.org>
40611 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40612 the tests directory.
40613 Reported by Ralf Wildenhues.
40615 2006-11-13 Bruno Haible <bruno@clisp.org>
40617 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40618 (func_emit_initmacro_end): Undo the override here.
40619 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40620 Works around the famous automake error in coreutils.
40622 2006-11-13 Eric Blake <ebb9@byu.net>
40624 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40625 element, not its node.
40627 2006-11-12 Bruno Haible <bruno@clisp.org>
40629 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40630 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40632 2006-11-12 Bruno Haible <bruno@clisp.org>
40634 * gnulib-tool: New option --local-symlink.
40635 (func_usage): Document it.
40636 (lsymbolic): New variable.
40637 (func_import, func_create_testdir): If --symlink was not specified,
40638 test whether --local-symlink was specified and the file comes from
40639 the local_gnulib_dir.
40641 2006-11-12 Bruno Haible <bruno@clisp.org>
40643 * gnulib-tool (func_ln): New function.
40644 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40646 2006-11-12 Bruno Haible <bruno@clisp.org>
40648 Finish support for source files in subdirectories.
40649 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40650 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40652 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40654 2006-11-12 Bruno Haible <bruno@clisp.org>
40656 * gnulib-tool (func_get_automake_snippet): Synthesize also an
40657 EXTRA_lib_SOURCES augmentation.
40658 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40660 2006-11-12 Jim Meyering <jim@meyering.net>
40662 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40663 file descriptors. This also averts a failure on systems with
40664 native openat support when a traversed directory lacks "x" access.
40665 * lib/fts_.h: Include "i-ring.h"
40666 (struct FTS) [fts_fd_ring]: New member.
40667 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40668 (FCHDIR): Add parentheses.
40669 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40670 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
40671 When descending, rather than simply closing the previous
40672 fts_cwd_fd value, push that file descriptor onto the ring.
40673 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40674 (fts_open): Initialize the new fd_ring member.
40675 (fts_close): Clear the ring.
40676 (fts_safe_changedir): When possible, use our new fd_ring to skip
40677 the diropen and fstat and dev/ino comparison that would normally
40678 accompany a virtual `chdir ("..")'.
40680 * modules/fts (Depends-on): Add i-ring.
40681 * modules/i-ring: New module.
40682 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40683 * m4/i-ring.m4: New file.
40685 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40687 * gnulib-tool (func_create_testdir): Fix replacement of
40688 `build-aux' in configure.ac. Run autotools in gltests
40690 (func_create_testdir, func_create_megatestdir, test): There is
40691 no need for '--force' in most autotool invocations in a new
40692 tree. Actually fail the whole test if any of the tools, or the
40693 configure or make stages fail.
40695 Sync from Automake.
40696 * build-aux/gnupload: Revert last change. Add pointer to upload
40697 instructions of the GNU Maintenance Instructions.
40698 Suggestion by Karl Berry.
40700 2006-11-10 Jim Meyering <jim@meyering.net>
40702 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40704 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40706 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40707 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40708 (bind_textdomain_codeset) [! ENABLE_NLS]:
40709 Evaluate all the arguments. That way, callers get compatible behavior
40710 if the arguments have side effects. Also, it avoids some GCC
40711 diagnostics in some cases; Joel E. Denny reported problems when Bison
40712 was configured with --enable-gcc-warnigs.
40714 2006-11-10 Jim Meyering <jim@meyering.net>
40716 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40717 relevant options in CFLAGS (like -O, -fno-inline) are taken into
40720 2006-11-10 Jim Meyering <jim@meyering.net>
40722 * modules/inline: New file/module.
40723 * modules/xalloc (Files): Remove m4/inline.m4.
40724 (Depends-on): Add inline, instead.
40725 * modules/oset: Likewise.
40726 * modules/list: Likewise.
40728 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40730 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40731 Problem reported by Matthew Woehlke.
40733 2006-11-09 Bruno Haible <bruno@clisp.org>
40735 * lib/tempname.c (gen_tempname): Remove variant that invokes
40737 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40740 2006-11-08 Bruno Haible <bruno@clisp.org>
40742 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40743 to 'yes' instead of 'cross-compiling'.
40745 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
40747 * lib/quotearg.h (quotearg_free): New decl.
40748 * lib/quotearg.c (quotearg_free): New function.
40749 (slot0, nslots, slotvec0, slotvec):
40750 Now file-scope so that quotearg_free can get at them.
40752 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40754 Sync from Automake.
40755 * build-aux/gnupload: Add missing 'gnu' to example URL.
40756 Report by Karl Berry.
40758 2006-11-08 Bruno Haible <bruno@clisp.org>
40760 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40761 Suggested by Paul Eggert.
40763 2006-11-08 Jim Meyering <jim@meyering.net>
40765 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40766 It's already included if !_LIBC.
40767 (fts_safe_changedir): Add a comment.
40769 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40771 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40772 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40775 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40776 definitions up, to avoid colliding with change below.
40777 (static_inline) [HAVE_INLINE]: New macro.
40778 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40779 Provide extern decls when !HAVE_INLINE. Do not define unless
40780 static_inline is defined, either by us or by xmalloc.c. Use
40781 static_inline rather than static inline.
40782 (XCALLOC): Optimize sizeof(T) = 1 case.
40783 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40785 2006-11-07 Bruno Haible <bruno@clisp.org>
40787 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40788 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40790 * modules/xalloc (Files): Add m4/inline.m4.
40792 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40794 * README: Fix typo.
40795 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40796 (Miscellanous Notes): ...from this.
40798 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40800 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40801 Mention that offsetof should be used instead of sizeof.
40804 2006-11-07 Bruno Haible <bruno@clisp.org>
40806 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40808 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40810 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40811 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40812 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40813 (gl_tree_add_before, gl_tree_add_after):
40814 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40815 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40816 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40817 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40818 (gl_linked_add_after, gl_linked_add_at): Likewise.
40819 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40820 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40821 (gl_tree_add_before, gl_tree_add_after): Likewise.
40822 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40823 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40824 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40826 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40828 * lib/gl_oset.h: Use C comment style, not C++ comment style.
40830 2006-11-06 Bruno Haible <bruno@clisp.org>
40832 * m4/inline.m4: New file.
40833 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40834 * modules/list (Files): Add m4/inline.m4.
40835 * modules/oset (Files): Likewise.
40837 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40839 * lib/idcache.c: Include <stddef.h>, for offsetof.
40840 (struct userid.name): Change from char * to a flexible array member.
40842 * modules/idcache (Depends-on): Add flexmember.
40844 * MODULES.html.sh (Core language properties): New module flexmember.
40845 * modules/flexmember, m4/flexmember.m4: New files.
40847 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40848 inline functions that are identical with the old xnmalloc_inline,
40849 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
40850 that we can avoid some unnecessary integer multiplications and
40851 divisions in the common case where the element size is known at
40853 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40855 (xnboundedmalloc): Remove.
40856 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40857 arguments, for consistency with rest of this header.
40858 (xcharalloc): Rewrite using XNMALLOC.
40859 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40860 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
40861 versions have been moved to lib/xalloc.h and renamed to be the
40862 non-*_inline versions.
40863 (xmalloc, xrealloc): Implement without reference to the xnmalloc
40864 and xnrealloc functions, since those functions are now inline and
40866 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40867 renaming described above.
40868 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40869 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
40870 captures the dependency in AC_C_INLINE.
40872 New module canonicalize-lgpl, proposed by Charles Wilson in
40873 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40874 with a few small changes afterwards.
40875 * MODULES.html.sh (File system functions): New module
40877 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40878 and canonicalize_file_name.
40879 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40880 * modules/canonicalize-lgpl: New files.
40882 2006-11-05 Bruno Haible <bruno@clisp.org>
40884 * gnulib-tool (func_import, func_create_testdir): Create directories
40885 also for files in subdirectories of lib/.
40887 2006-11-05 Bruno Haible <bruno@clisp.org>
40889 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40892 2006-11-03 Bruno Haible <bruno@clisp.org>
40894 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40895 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40896 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40897 (xnboundedmalloc): New inline function.
40898 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40899 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40901 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40903 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40904 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40905 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40907 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40908 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40910 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40911 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40912 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40914 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40915 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40916 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40917 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40918 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40919 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40920 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40922 2006-11-03 Bruno Haible <bruno@clisp.org>
40924 * lib/c-ctype.h [C++]: Define functions without name mangling.
40925 * lib/fwriteerror.h [C++]: Likewise.
40926 * lib/gcd.h [C++]: Likewise.
40927 * lib/linebreak.h [C++]: Likewise.
40929 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
40931 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40932 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40933 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40934 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40935 Check for functions and headers just once.
40936 Check for declaration of canonicalize_file_name.
40937 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40939 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
40941 * gnulib-tool (func_import): Fix typo in actioncmd.
40943 2006-11-02 Bruno Haible <bruno@clisp.org>
40945 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40946 newline sequence in the Makefile.am snippet as a space, like "make"
40948 Reported by Roger Persson <perrog@gmail.com>.
40950 2006-11-01 Bruno Haible <bruno@clisp.org>
40952 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40953 already declared in <string.h>.
40954 * lib/strcase.h (strncasecmp): Don't declare it if yes.
40956 2006-11-01 Bruno Haible <bruno@clisp.org>
40958 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40959 * lib/strcase.h: Include <string.h>.
40960 (strcasecmp): Define to rpl_strcasecmp here.
40962 2006-11-01 Bruno Haible <bruno@clisp.org>
40964 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40966 2006-11-01 Eric Blake <ebb9@byu.net>
40968 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40970 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40972 2006-10-29 Bruno Haible <bruno@clisp.org>
40974 Make it compile in C++ mode.
40975 * lib/full-write.c (full_rw): Add a cast.
40977 2006-11-01 Bruno Haible <bruno@clisp.org>
40979 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40980 be POSIX compliant.
40981 Reported by Roger Persson <perrog@gmail.com>.
40983 2006-11-01 Eric Blake <ebb9@byu.net>
40985 * lib/getopt_.h: Fix comments.
40987 2006-10-31 Eric Blake <ebb9@byu.net>
40989 * modules/tmpdir (Depends-on): Add sys_stat.
40990 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40991 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40992 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40993 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40996 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
40998 Avoid some C++ diagnostics reported by Bruno Haible.
40999 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41001 (quotearg_alloc): Use xcharalloc rather than xmalloc.
41002 (struct slotvec): Move to top level.
41003 (quotearg_n_options): Rewrite to avoid xmalloc.
41004 * lib/xalloc.h (xcharalloc): New function.
41005 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41006 [defined __cplusplus]: Add function template that provides result
41007 type propagation. This part of the change is from Bruno Haible.
41009 2006-10-29 Bruno Haible <bruno@clisp.org>
41011 Make it compile in C++ mode.
41012 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41013 * lib/strnlen1.c (strnlen1): Cast memchr result.
41014 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41015 * lib/clean-temp.c (string_equals, string_hash): Add casts.
41016 (create_temp_dir): Rename local variable 'template'.
41017 (compile_csharp_using_sscli): Add cast.
41018 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41019 * lib/findprog.c (find_in_path): Likewise.
41020 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41021 * lib/wait-process.c (register_slave_subprocess): Likewise.
41023 2006-10-22 Bruno Haible <bruno@clisp.org>
41025 * modules/tsearch: New file.
41026 * lib/tsearch.h: New file.
41027 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41028 * m4/tsearch.m4: New file.
41029 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41031 2006-10-29 Eric Blake <ebb9@byu.net>
41033 * lib/arcfour.c: Assume config.h.
41034 * lib/arctwo.c: Likewise.
41035 * lib/base64.c: Likewise.
41036 * lib/check-version.c: Likewise.
41037 * lib/crc.c: Likewise.
41038 * lib/des.c: Likewise.
41039 * lib/gc-gnulib.c: Likewise.
41040 * lib/gc-libgcrypt.c: Likewise.
41041 * lib/gc-pbkdf2-sha1.c: Likewise.
41042 * lib/getaddrinfo.c: Likewise.
41043 * lib/getdelim.c: Likewise.
41044 * lib/getline.c: Likewise.
41045 * lib/hmac-md5.c: Likewise.
41046 * lib/hmac-sha1.c: Likewise.
41047 * lib/iconvme.c: Likewise.
41048 * lib/md2.c: Likewise.
41049 * lib/md4.c: Likewise.
41050 * lib/memxor.c: Likewise.
41051 * lib/read-file.c: Likewise.
41052 * lib/readline.c: Likewise.
41053 * lib/rijndael-alg-fst.c: Likewise.
41054 * lib/rijndael-api-fst.c: Likewise.
41055 * lib/xgetdomainname.c: Likewise.
41057 2006-10-28 Eric Blake <ebb9@byu.net>
41059 * lib/xstrndup.c: Assume config.h.
41061 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
41063 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41064 stat-macros.h is now for our own macros, whereas stat_h is for
41065 macros in the <sys/stat.h> name space.
41066 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41067 (STAT_MACROS_H): Remove.
41068 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41069 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41070 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41071 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41072 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41073 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41074 Move these macros to ...
41075 * lib/stat_.h: here. Don't include stat-macros.h.
41076 * lib/canonicalize.c: Don't include stat-macros.h.
41077 * lib/chown.c: Likewise.
41078 * lib/euidaccess.c: Likewise.
41079 * lib/file-type.c: Likewise.
41080 * lib/filemode.c: Likewise.
41081 * lib/glob.c: Likewise.
41082 * lib/isapipe.c: Likewise.
41083 * lib/lchown.c: Likewise.
41084 * lib/lstat.c: Likewise.
41085 * lib/mkdir-p.c: Likewise.
41086 * lib/rmdir.c: Likewise.
41087 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41088 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41089 unless mkdir isn't declared, to speed up 'configure'.
41090 Always create sys/stat.h, since it's unlikely any real sys/stat.h
41091 would define all the S_* symbols.
41092 * modules/canonicalize (Depends-on):
41093 Depend on sys_stat, not stat-macros.
41094 * modules/chown: Likewise.
41095 * modules/euidaccess: Likewise.
41096 * modules/filemode: Likewise.
41097 * modules/file-type: Likewise.
41098 * modules/glob: Likewise.
41099 * modules/isapipe: Likewise.
41100 * modules/lchown: Likewise.
41101 * modules/lstat: Likewise.
41102 * modules/mkancesdirs: Likewise.
41103 * modules/rmdir: Likewise.
41104 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41105 * modules/modechange: Likewise.
41106 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41107 (configure.ac): Remove gl_STAT_MACROS.
41108 * modules/sys_stat (Depends-on): Remove stat-macros.
41110 2006-10-27 Bruno Haible <bruno@clisp.org>
41112 * m4/signed.m4: Remove file.
41113 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41115 * modules/vasnprintf (Files): Remove m4/signed.m4.
41117 2006-10-27 Bruno Haible <bruno@clisp.org>
41119 Update to GNU gettext 0.16.
41120 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41121 m4/inttypes-h.m4, m4/signed.m4.
41122 * m4/gettext.m4: Update to GNU gettext 0.16.
41123 * m4/intl.m4: New file, from GNU gettext.
41124 * m4/intldir.m4: New file, from GNU gettext.
41125 * config/srclist.txt: Update
41127 2006-10-27 Eric Blake <ebb9@byu.net>
41129 * MODULES.html.sh: Document tempname.
41130 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41132 (Files): Move lib/tempname.c...
41133 * modules/tempname: ...to this new module.
41134 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41135 (gl_PREREQ_TEMPNAME): Move...
41136 * m4/tempname.m4: ...to this new file.
41137 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41138 * modules/sys_stat (Depends-on): Add stat-macros.
41139 * lib/stat_.h (includes): Pick up stat macros.
41140 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41141 if stat macros are broken.
41142 * lib/tempname.c (includes): No need to include "stat-macros.h".
41143 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41144 (direxists, __path_search) [!_LIBC]: Don't compile these in
41145 gnulib; the tmpdir module covers that.
41146 * lib/tempname.h: New file.
41148 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
41150 * COPYING: Explain how gnulib-tool converts licence headers.
41151 Almost all wording by Eric Blake.
41153 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
41155 * lib/mbchar.h (is_basic_table): Make read-only.
41156 * lib/mbchar.c (is_basic_table): Likewise.
41157 Reported by John Darrington.
41159 2006-10-25 Bruno Haible <bruno@clisp.org>
41161 * lib/progname.h (set_program_name): Undefine before defining.
41163 2006-10-25 Bruno Haible <bruno@clisp.org>
41165 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41166 false for non-gcc C++ compilers.
41167 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41169 2006-10-24 Bruno Haible <bruno@clisp.org>
41171 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41172 iconv implementations like Irix iconv.
41174 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41176 * modules/vararrays: New file.
41177 * m4/vararrays.m4: New file, taken from diffutils.
41178 * MODULES.html.sh: New module vararrays.
41180 2006-10-24 Karl Berry <karl@gnu.org>
41182 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41183 Don't call GNU Unix.
41185 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41187 * users.txt: Add Libtool.
41191 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41193 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41194 to gnulib's policy of including config.h unconditionally.
41196 2006-10-24 Bruno Haible <bruno@clisp.org>
41198 * modules/wcwidth (Files): Add m4/wint_t.m4.
41199 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41200 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41202 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41204 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41205 to pacify GCC with some -W flags enabled. Problem reported by
41208 2006-10-24 Jim Meyering <jim@meyering.net>
41210 * MODULES.html.sh: Remove uinttostr. It's not a module.
41211 Reported by Karl Berry.
41213 2006-10-23 Bruno Haible <bruno@clisp.org>
41215 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41217 2006-10-24 Bruno Haible <bruno@clisp.org>
41219 * lib/gl_list.h: Use C comment style, not C++ comment style.
41221 2006-10-23 Eric Blake <ebb9@byu.net>
41223 * lib/getaddrinfo.c (includes): Add missing include.
41225 2006-10-23 Bruno Haible <bruno@clisp.org>
41226 Paul Eggert <eggert@cs.ucla.edu>
41228 Ability to rename obstack_free.
41229 * lib/obstack.h (__obstack_free): New macro. Declare instead of
41231 (obstack_free): Invoke the __obstack_free macro.
41232 * lib/obstack.c (obstack_free): Use __obstack_free macro.
41234 2006-10-23 Bruno Haible <bruno@clisp.org>
41235 Paul Eggert <eggert@cs.ucla.edu>
41237 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41238 __argc, __argv from the declaration. (They are defined as macros on
41241 2006-10-22 Bruno Haible <bruno@clisp.org>
41243 * doc/gnulib-intro.texi: New file.
41244 * doc/gnulib.texi: Include it.
41246 2006-10-21 Bruno Haible <bruno@clisp.org>
41248 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41249 "Introduction", "Miscellanous Notes", "Particular Modules".
41251 2006-10-21 Bruno Haible <bruno@clisp.org>
41253 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41254 Change mostlyclean-local rule to avoid sh syntax error from bash
41255 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41257 2006-10-23 Jim Meyering <jim@meyering.net>
41259 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41260 in place of snprintf.
41262 * modules/inttostr (Files): Add lib/uinttostr.c.
41263 * lib/uinttostr.c (inttostr): New file/function.
41264 * lib/inttostr.h (uinttostr): Declare.
41265 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41266 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41268 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
41270 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
41272 * lib/canonicalize.c (ELOOP): Define if not already defined.
41273 Problem reported by Bruno Haible in
41274 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41276 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
41278 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41279 Problem reported by Perry Smith and Ville Laurikari.
41281 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41284 2006-10-19 Bruno Haible <bruno@clisp.org>
41286 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41289 2006-10-19 Bruno Haible <bruno@clisp.org>
41291 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41294 2006-10-19 Bruno Haible <bruno@clisp.org>
41296 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41298 2006-10-19 Bruno Haible <bruno@clisp.org>
41300 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41303 2006-10-19 Bruno Haible <bruno@clisp.org>
41305 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41308 2006-10-19 Bruno Haible <bruno@clisp.org>
41310 * gnulib-tool (func_create_testdir): Don't include ftruncate and
41311 mountlist by default.
41313 2006-10-16 Bruno Haible <bruno@clisp.org>
41315 * lib/c-strstr.c: Include c-strstr.h.
41317 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
41319 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41322 2006-10-18 Bruno Haible <bruno@clisp.org>
41324 * lib/lock.h [C++]: Wrap definitions in extern "C".
41326 2006-10-18 Bruno Haible <bruno@clisp.org>
41328 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41331 2006-10-18 Bruno Haible <bruno@clisp.org>
41333 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41335 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
41337 * lib/xstrtol.h: Include gettext.h.
41338 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41339 Problem reported by Eric Blake.
41340 * modules/xstrtol (Depends-on): Add gettext-h.
41342 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
41344 * lib/strftime.c (advance): New macro.
41345 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
41346 incomplete type, so you can't add 0 to it. Problem and patch
41347 reported by Eelco Dolstra for dietlibc.
41349 2006-10-18 Jim Meyering <jim@meyering.net>
41351 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41352 type for a local, and rename it: s/up/user_proc/.
41354 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
41356 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41357 READ_UTMP_USER_PROCESS.
41358 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41360 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
41362 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41363 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41365 2006-10-17 Eric Blake <ebb9@byu.net>
41367 * lib/sigprocmask.c (sigprocmask): Fix typo.
41369 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41371 * modules/clean-temp (Makefile.am): Don't add to make output...
41372 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41375 2006-10-17 Bruno Haible <bruno@clisp.org>
41377 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41378 differently if DEFAULT_TEXT_DOMAIN is set.
41380 2006-10-16 Bruno Haible <bruno@clisp.org>
41382 * lib/clean-temp.c: Include fwriteerror.h.
41384 2006-10-16 Bruno Haible <bruno@clisp.org>
41386 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41388 2006-10-16 Bruno Haible <bruno@clisp.org>
41390 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41391 * lib/sigprocmask.h: Include <sys/types.h>.
41392 (sigset_t): Use the system's definition if present.
41394 2006-10-17 Eric Blake <ebb9@byu.net>
41396 * lib/xvasprintf.c (includes): Assume config.h.
41397 * lib/xasprintf.c (includes): Likewise.
41399 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
41401 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41402 at least as wide as intmax_t.
41404 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
41406 (Imported from Automake.)
41407 * build-aux/gnupload: Update to version 1.1 of directive file.
41409 2006-10-16 Eric Blake <ebb9@byu.net>
41411 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41412 match Automake 1.10a.
41414 2006-10-14 Bruno Haible <bruno@clisp.org>
41416 * modules/sigprocmask: New file.
41417 * lib/sigprocmask.h: New file.
41418 * lib/sigprocmask.c: New file.
41419 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41420 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41421 request sigprocmask.o.
41422 (gl_PREREQ_SIGPROCMASK): New macro.
41423 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41424 (Depends-on): Add sigprocmask.
41425 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41426 gt_SIGNALBLOCKING. Test for 'raise' only once.
41427 * lib/fatal-signal.c: Include sigprocmask.h.
41428 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41429 unblock_fatal_signals): Define always.
41430 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41433 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
41435 Sync from Automake.
41436 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41437 which incorrectly sets the mode of an existing destination
41438 directory. In some cases the unpatched install-sh could do the
41439 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41440 system. We hope this is rare in practice, but it's clearly worth
41441 fixing. Problem reported by Alex Unleashed in
41442 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41443 Also, don't bother to check for -m bugs unless we're using -m;
41444 suggested by Stepan Kasal.
41446 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41448 Sync from Automake.
41449 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41450 `-c' flag, so they appear at the same position as in %FASTDEP%
41451 mode in depend2.am. Fixes build failure for FreeBSD's c89,
41452 which ignores unknown options only after the first non-option.
41453 Bug report against M4 by Nelson H. F. Beebe.
41455 2006-10-13 Jim Meyering <jim@meyering.net>
41457 Fix a bug in yesterday's change.
41458 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41459 p->fts_statp->st_dev would be used uninitialized.
41460 Ensures that we always call fts_stat on the very first entry.
41461 Miklos Szeredi reported that find -xdev stopped working.
41463 2006-10-12 Bruno Haible <bruno@clisp.org>
41465 * gnulib-tool (func_get_automake_snippet): Append an automatically
41466 computed EXTRA_DIST augmentation.
41467 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41468 * modules/alloca-opt (Makefile.am): Likewise.
41469 * modules/allocsa (Makefile.am): Likewise.
41470 * modules/arcfour (Makefile.am): Likewise.
41471 * modules/arctwo (Makefile.am): Likewise.
41472 * modules/argmatch (Makefile.am): Likewise.
41473 * modules/argz (Makefile.am): Likewise.
41474 * modules/atexit (Makefile.am): Likewise.
41475 * modules/backupfile (Makefile.am): Likewise.
41476 * modules/byteswap (Makefile.am): Likewise.
41477 * modules/c-strtod (Makefile.am): Likewise.
41478 * modules/c-strtold (Makefile.am): Likewise.
41479 * modules/calloc (Makefile.am): Likewise.
41480 * modules/canon-host (Makefile.am): Likewise.
41481 * modules/canonicalize (Makefile.am): Likewise.
41482 * modules/chdir-long (Makefile.am): Likewise.
41483 * modules/chdir-safer (Makefile.am): Likewise.
41484 * modules/check-version (Makefile.am): Likewise.
41485 * modules/chown (Makefile.am): Likewise.
41486 * modules/cloexec (Makefile.am): Likewise.
41487 * modules/close-stream (Makefile.am): Likewise.
41488 * modules/closeout (Makefile.am): Likewise.
41489 * modules/crc (Makefile.am): Likewise.
41490 * modules/csharpexec (Makefile.am): Likewise.
41491 * modules/cycle-check (Makefile.am): Likewise.
41492 * modules/des (Makefile.am): Likewise.
41493 * modules/dev-ino (Makefile.am): Likewise.
41494 * modules/dirfd (Makefile.am): Likewise.
41495 * modules/dirname (Makefile.am): Likewise.
41496 * modules/dup2 (Makefile.am): Likewise.
41497 * modules/eealloc (Makefile.am): Likewise.
41498 * modules/error (Makefile.am): Likewise.
41499 * modules/euidaccess (Makefile.am): Likewise.
41500 * modules/exclude (Makefile.am): Likewise.
41501 * modules/exitfail (Makefile.am): Likewise.
41502 * modules/fcntl-safer (Makefile.am): Likewise.
41503 * modules/fcntl (Makefile.am): Likewise.
41504 * modules/file-type (Makefile.am): Likewise.
41505 * modules/fileblocks (Makefile.am): Likewise.
41506 * modules/filemode (Makefile.am): Likewise.
41507 * modules/filenamecat (Makefile.am): Likewise.
41508 * modules/fnmatch (Makefile.am): Likewise.
41509 * modules/fopen-safer (Makefile.am): Likewise.
41510 * modules/fpending (Makefile.am): Likewise.
41511 * modules/fprintftime (Makefile.am): Likewise.
41512 * modules/free (Makefile.am): Likewise.
41513 * modules/fsusage (Makefile.am): Likewise.
41514 * modules/ftruncate (Makefile.am): Likewise.
41515 * modules/fts (Makefile.am): Likewise.
41516 * modules/gc-arcfour (Makefile.am): Likewise.
41517 * modules/gc-des (Makefile.am): Likewise.
41518 * modules/gc-hmac-md5 (Makefile.am): Likewise.
41519 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41520 * modules/gc-md4 (Makefile.am): Likewise.
41521 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41522 * modules/gc-sha1 (Makefile.am): Likewise.
41523 * modules/gc (Makefile.am): Likewise.
41524 * modules/getaddrinfo (Makefile.am): Likewise.
41525 * modules/getcwd (Makefile.am): Likewise.
41526 * modules/getdelim (Makefile.am): Likewise.
41527 * modules/getdomainname (Makefile.am): Likewise.
41528 * modules/getgroups (Makefile.am): Likewise.
41529 * modules/gethostname (Makefile.am): Likewise.
41530 * modules/gethrxtime (Makefile.am): Likewise.
41531 * modules/getline (Makefile.am): Likewise.
41532 * modules/getloadavg (Makefile.am): Likewise.
41533 * modules/getlogin_r (Makefile.am): Likewise.
41534 * modules/getndelim2 (Makefile.am): Likewise.
41535 * modules/getopt (Makefile.am): Likewise.
41536 * modules/getpagesize (Makefile.am): Likewise.
41537 * modules/getpass-gnu (Makefile.am): Likewise.
41538 * modules/getpass (Makefile.am): Likewise.
41539 * modules/getsubopt (Makefile.am): Likewise.
41540 * modules/gettime (Makefile.am): Likewise.
41541 * modules/gettimeofday (Makefile.am): Likewise.
41542 * modules/getugroups (Makefile.am): Likewise.
41543 * modules/getusershell (Makefile.am): Likewise.
41544 * modules/glob (Makefile.am): Likewise.
41545 * modules/group-member (Makefile.am): Likewise.
41546 * modules/hard-locale (Makefile.am): Likewise.
41547 * modules/hash (Makefile.am): Likewise.
41548 * modules/hmac-md5 (Makefile.am): Likewise.
41549 * modules/hmac-sha1 (Makefile.am): Likewise.
41550 * modules/human (Makefile.am): Likewise.
41551 * modules/idcache (Makefile.am): Likewise.
41552 * modules/imaxabs (Makefile.am): Likewise.
41553 * modules/imaxdiv (Makefile.am): Likewise.
41554 * modules/inet_ntop (Makefile.am): Likewise.
41555 * modules/inet_pton (Makefile.am): Likewise.
41556 * modules/intprops (Makefile.am): Likewise.
41557 * modules/inttostr (Makefile.am): Likewise.
41558 * modules/inttypes (Makefile.am): Likewise.
41559 * modules/isapipe (Makefile.am): Likewise.
41560 * modules/javaversion (Makefile.am): Likewise.
41561 * modules/lchmod (Makefile.am): Likewise.
41562 * modules/lchown (Makefile.am): Likewise.
41563 * modules/localcharset (Makefile.am): Likewise.
41564 * modules/long-options (Makefile.am): Likewise.
41565 * modules/lstat (Makefile.am): Likewise.
41566 * modules/malloc (Makefile.am): Likewise.
41567 * modules/mathl (Makefile.am): Likewise.
41568 * modules/mbchar (Makefile.am): Likewise.
41569 * modules/md2 (Makefile.am): Likewise.
41570 * modules/md4 (Makefile.am): Likewise.
41571 * modules/md5 (Makefile.am): Likewise.
41572 * modules/memcasecmp (Makefile.am): Likewise.
41573 * modules/memchr (Makefile.am): Likewise.
41574 * modules/memcmp (Makefile.am): Likewise.
41575 * modules/memcoll (Makefile.am): Likewise.
41576 * modules/memcpy (Makefile.am): Likewise.
41577 * modules/memmem (Makefile.am): Likewise.
41578 * modules/memmove (Makefile.am): Likewise.
41579 * modules/mempcpy (Makefile.am): Likewise.
41580 * modules/memrchr (Makefile.am): Likewise.
41581 * modules/memset (Makefile.am): Likewise.
41582 * modules/memxor (Makefile.am): Likewise.
41583 * modules/mkancesdirs (Makefile.am): Likewise.
41584 * modules/mkdir-p (Makefile.am): Likewise.
41585 * modules/mkdir (Makefile.am): Likewise.
41586 * modules/mkdtemp (Makefile.am): Likewise.
41587 * modules/mkstemp (Makefile.am): Likewise.
41588 * modules/mktime (Makefile.am): Likewise.
41589 * modules/modechange (Makefile.am): Likewise.
41590 * modules/mountlist (Makefile.am): Likewise.
41591 * modules/nanosleep (Makefile.am): Likewise.
41592 * modules/obstack (Makefile.am): Likewise.
41593 * modules/openat (Makefile.am): Likewise.
41594 * modules/pagealign_alloc (Makefile.am): Likewise.
41595 * modules/pathmax (Makefile.am): Likewise.
41596 * modules/physmem (Makefile.am): Likewise.
41597 * modules/poll (Makefile.am): Likewise.
41598 * modules/posixtm (Makefile.am): Likewise.
41599 * modules/posixver (Makefile.am): Likewise.
41600 * modules/putenv (Makefile.am): Likewise.
41601 * modules/quote (Makefile.am): Likewise.
41602 * modules/quotearg (Makefile.am): Likewise.
41603 * modules/raise (Makefile.am): Likewise.
41604 * modules/read-file (Makefile.am): Likewise.
41605 * modules/readline (Makefile.am): Likewise.
41606 * modules/readlink (Makefile.am): Likewise.
41607 * modules/readtokens (Makefile.am): Likewise.
41608 * modules/readutmp (Makefile.am): Likewise.
41609 * modules/realloc (Makefile.am): Likewise.
41610 * modules/regex (Makefile.am): Likewise.
41611 * modules/rename-dest-slash (Makefile.am): Likewise.
41612 * modules/rename (Makefile.am): Likewise.
41613 * modules/rijndael (Makefile.am): Likewise.
41614 * modules/rmdir (Makefile.am): Likewise.
41615 * modules/rpmatch (Makefile.am): Likewise.
41616 * modules/safe-read (Makefile.am): Likewise.
41617 * modules/safe-write (Makefile.am): Likewise.
41618 * modules/same-inode (Makefile.am): Likewise.
41619 * modules/same (Makefile.am): Likewise.
41620 * modules/save-cwd (Makefile.am): Likewise.
41621 * modules/savedir (Makefile.am): Likewise.
41622 * modules/setenv (Makefile.am): Likewise.
41623 * modules/settime (Makefile.am): Likewise.
41624 * modules/sha1 (Makefile.am): Likewise.
41625 * modules/sig2str (Makefile.am): Likewise.
41626 * modules/snprintf (Makefile.am): Likewise.
41627 * modules/stat-macros (Makefile.am): Likewise.
41628 * modules/stat-time (Makefile.am): Likewise.
41629 * modules/stdbool (Makefile.am): Likewise.
41630 * modules/stdint (Makefile.am): Likewise.
41631 * modules/stdlib-safer (Makefile.am): Likewise.
41632 * modules/stpcpy (Makefile.am): Likewise.
41633 * modules/stpncpy (Makefile.am): Likewise.
41634 * modules/strcase (Makefile.am): Likewise.
41635 * modules/strcasestr (Makefile.am): Likewise.
41636 * modules/strchrnul (Makefile.am): Likewise.
41637 * modules/strcspn (Makefile.am): Likewise.
41638 * modules/strdup (Makefile.am): Likewise.
41639 * modules/strerror (Makefile.am): Likewise.
41640 * modules/strftime (Makefile.am): Likewise.
41641 * modules/strndup (Makefile.am): Likewise.
41642 * modules/strnlen (Makefile.am): Likewise.
41643 * modules/strpbrk (Makefile.am): Likewise.
41644 * modules/strsep (Makefile.am): Likewise.
41645 * modules/strstr (Makefile.am): Likewise.
41646 * modules/strtod (Makefile.am): Likewise.
41647 * modules/strtoimax (Makefile.am): Likewise.
41648 * modules/strtok_r (Makefile.am): Likewise.
41649 * modules/strtol (Makefile.am): Likewise.
41650 * modules/strtoll (Makefile.am): Likewise.
41651 * modules/strtoul (Makefile.am): Likewise.
41652 * modules/strtoull (Makefile.am): Likewise.
41653 * modules/strtoumax (Makefile.am): Likewise.
41654 * modules/strverscmp (Makefile.am): Likewise.
41655 * modules/sys_socket (Makefile.am): Likewise.
41656 * modules/sys_stat (Makefile.am): Likewise.
41657 * modules/sysexits (Makefile.am): Likewise.
41658 * modules/time_r (Makefile.am): Likewise.
41659 * modules/timegm (Makefile.am): Likewise.
41660 * modules/timespec (Makefile.am): Likewise.
41661 * modules/tmpfile-safer (Makefile.am): Likewise.
41662 * modules/trim (Makefile.am): Likewise.
41663 * modules/unistd-safer (Makefile.am): Likewise.
41664 * modules/unlinkdir (Makefile.am): Likewise.
41665 * modules/unlocked-io (Makefile.am): Likewise.
41666 * modules/userspec (Makefile.am): Likewise.
41667 * modules/utime (Makefile.am): Likewise.
41668 * modules/utimecmp (Makefile.am): Likewise.
41669 * modules/utimens (Makefile.am): Likewise.
41670 * modules/vasnprintf (Makefile.am): Likewise.
41671 * modules/vasprintf (Makefile.am): Likewise.
41672 * modules/vsnprintf (Makefile.am): Likewise.
41673 * modules/xalloc (Makefile.am): Likewise.
41674 * modules/xgetcwd (Makefile.am): Likewise.
41675 * modules/xnanosleep (Makefile.am): Likewise.
41676 * modules/xreadlink (Makefile.am): Likewise.
41677 * modules/xstrtod (Makefile.am): Likewise.
41678 * modules/xstrtol (Makefile.am): Likewise.
41679 * modules/xstrtold (Makefile.am): Likewise.
41680 * modules/yesno (Makefile.am): Likewise.
41681 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41683 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41685 * modules/error (Makefile.am): Distribute files through
41686 EXTRA_DIST, not lib_SOURCES.
41688 2006-10-12 Eric Blake <ebb9@byu.net>
41690 * modules/error (Makefile.am): Distribute files in /lib.
41691 * modules/obstack (Makefile.am): Likewise.
41693 2006-10-12 Bruno Haible <bruno@clisp.org>
41695 * modules/acl (Makefile.am): Distribute all files in lib/ through
41697 * modules/arcfour (Makefile.am): Likewise.
41698 * modules/arctwo (Makefile.am): Likewise.
41699 * modules/argmatch (Makefile.am): Likewise.
41700 * modules/argz (Makefile.am): Likewise.
41701 * modules/atexit (Makefile.am): Likewise.
41702 * modules/backupfile (Makefile.am): Likewise.
41703 * modules/c-strtod (Makefile.am): Likewise.
41704 * modules/c-strtold (Makefile.am): Likewise.
41705 * modules/calloc (Makefile.am): Likewise.
41706 * modules/canon-host (Makefile.am): Likewise.
41707 * modules/canonicalize (Makefile.am): Likewise.
41708 * modules/chdir-long (Makefile.am): Likewise.
41709 * modules/chdir-safer (Makefile.am): Likewise.
41710 * modules/check-version (Makefile.am): Likewise.
41711 * modules/chown (Makefile.am): Likewise.
41712 * modules/cloexec (Makefile.am): Likewise.
41713 * modules/close-stream (Makefile.am): Likewise.
41714 * modules/closeout (Makefile.am): Likewise.
41715 * modules/crc (Makefile.am): Likewise.
41716 * modules/cycle-check (Makefile.am): Likewise.
41717 * modules/des (Makefile.am): Likewise.
41718 * modules/dirfd (Makefile.am): Likewise.
41719 * modules/dirname (Makefile.am): Likewise.
41720 * modules/dup2 (Makefile.am): Likewise.
41721 * modules/euidaccess (Makefile.am): Likewise.
41722 * modules/exclude (Makefile.am): Likewise.
41723 * modules/exitfail (Makefile.am): Likewise.
41724 * modules/fcntl-safer (Makefile.am): Likewise.
41725 * modules/file-type (Makefile.am): Likewise.
41726 * modules/fileblocks (Makefile.am): Likewise.
41727 * modules/filemode (Makefile.am): Likewise.
41728 * modules/filenamecat (Makefile.am): Likewise.
41729 * modules/fnmatch (Makefile.am): Likewise.
41730 * modules/fopen-safer (Makefile.am): Likewise.
41731 * modules/fpending (Makefile.am): Likewise.
41732 * modules/fprintftime (Makefile.am): Likewise.
41733 * modules/free (Makefile.am): Likewise.
41734 * modules/fsusage (Makefile.am): Likewise.
41735 * modules/ftruncate (Makefile.am): Likewise.
41736 * modules/fts (Makefile.am): Likewise.
41737 * modules/gc (Makefile.am): Likewise.
41738 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41739 * modules/getaddrinfo (Makefile.am): Likewise.
41740 * modules/getcwd (Makefile.am): Likewise.
41741 * modules/getdelim (Makefile.am): Likewise.
41742 * modules/getdomainname (Makefile.am): Likewise.
41743 * modules/getgroups (Makefile.am): Likewise.
41744 * modules/gethostname (Makefile.am): Likewise.
41745 * modules/gethrxtime (Makefile.am): Likewise.
41746 * modules/getline (Makefile.am): Likewise.
41747 * modules/getloadavg (Makefile.am): Likewise.
41748 * modules/getlogin_r (Makefile.am): Likewise.
41749 * modules/getopt (Makefile.am): Likewise.
41750 * modules/getpass (Makefile.am): Likewise.
41751 * modules/getpass-gnu (Makefile.am): Likewise.
41752 * modules/getsubopt (Makefile.am): Likewise.
41753 * modules/gettime (Makefile.am): Likewise.
41754 * modules/gettimeofday (Makefile.am): Likewise.
41755 * modules/getugroups (Makefile.am): Likewise.
41756 * modules/getusershell (Makefile.am): Likewise.
41757 * modules/glob (Makefile.am): Likewise.
41758 * modules/group-member (Makefile.am): Likewise.
41759 * modules/hard-locale (Makefile.am): Likewise.
41760 * modules/hash (Makefile.am): Likewise.
41761 * modules/hmac-md5 (Makefile.am): Likewise.
41762 * modules/hmac-sha1 (Makefile.am): Likewise.
41763 * modules/human (Makefile.am): Likewise.
41764 * modules/idcache (Makefile.am): Likewise.
41765 * modules/imaxabs (Makefile.am): Likewise.
41766 * modules/imaxdiv (Makefile.am): Likewise.
41767 * modules/inet_ntop (Makefile.am): Likewise.
41768 * modules/inet_pton (Makefile.am): Likewise.
41769 * modules/inttostr (Makefile.am): Likewise.
41770 * modules/isapipe (Makefile.am): Likewise.
41771 * modules/lchown (Makefile.am): Likewise.
41772 * modules/long-options (Makefile.am): Likewise.
41773 * modules/lstat (Makefile.am): Likewise.
41774 * modules/malloc (Makefile.am): Likewise.
41775 * modules/mathl (Makefile.am): Likewise.
41776 * modules/mbchar (Makefile.am): Likewise.
41777 * modules/md2 (Makefile.am): Likewise.
41778 * modules/md4 (Makefile.am): Likewise.
41779 * modules/md5 (Makefile.am): Likewise.
41780 * modules/memcasecmp (Makefile.am): Likewise.
41781 * modules/memchr (Makefile.am): Likewise.
41782 * modules/memcmp (Makefile.am): Likewise.
41783 * modules/memcoll (Makefile.am): Likewise.
41784 * modules/memcpy (Makefile.am): Likewise.
41785 * modules/memmem (Makefile.am): Likewise.
41786 * modules/memmove (Makefile.am): Likewise.
41787 * modules/mempcpy (Makefile.am): Likewise.
41788 * modules/memrchr (Makefile.am): Likewise.
41789 * modules/memset (Makefile.am): Likewise.
41790 * modules/memxor (Makefile.am): Likewise.
41791 * modules/mkancesdirs (Makefile.am): Likewise.
41792 * modules/mkdir (Makefile.am): Likewise.
41793 * modules/mkdir-p (Makefile.am): Likewise.
41794 * modules/mkdtemp (Makefile.am): Likewise.
41795 * modules/mkstemp (Makefile.am): Likewise.
41796 * modules/mktime (Makefile.am): Likewise.
41797 * modules/modechange (Makefile.am): Likewise.
41798 * modules/mountlist (Makefile.am): Likewise.
41799 * modules/nanosleep (Makefile.am): Likewise.
41800 * modules/openat (Makefile.am): Likewise.
41801 * modules/pagealign_alloc (Makefile.am): Likewise.
41802 * modules/physmem (Makefile.am): Likewise.
41803 * modules/poll (Makefile.am): Likewise.
41804 * modules/posixtm (Makefile.am): Likewise.
41805 * modules/posixver (Makefile.am): Likewise.
41806 * modules/putenv (Makefile.am): Likewise.
41807 * modules/quote (Makefile.am): Likewise.
41808 * modules/quotearg (Makefile.am): Likewise.
41809 * modules/raise (Makefile.am): Likewise.
41810 * modules/read-file (Makefile.am): Likewise.
41811 * modules/readline (Makefile.am): Likewise.
41812 * modules/readlink (Makefile.am): Likewise.
41813 * modules/readtokens (Makefile.am): Likewise.
41814 * modules/readutmp (Makefile.am): Likewise.
41815 * modules/realloc (Makefile.am): Likewise.
41816 * modules/regex (Makefile.am): Likewise.
41817 * modules/rename (Makefile.am): Likewise.
41818 * modules/rename-dest-slash (Makefile.am): Likewise.
41819 * modules/rijndael (Makefile.am): Likewise.
41820 * modules/rmdir (Makefile.am): Likewise.
41821 * modules/rpmatch (Makefile.am): Likewise.
41822 * modules/safe-read (Makefile.am): Likewise.
41823 * modules/safe-write (Makefile.am): Likewise.
41824 * modules/same (Makefile.am): Likewise.
41825 * modules/save-cwd (Makefile.am): Likewise.
41826 * modules/savedir (Makefile.am): Likewise.
41827 * modules/setenv (Makefile.am): Likewise.
41828 * modules/settime (Makefile.am): Likewise.
41829 * modules/sha1 (Makefile.am): Likewise.
41830 * modules/sig2str (Makefile.am): Likewise.
41831 * modules/snprintf (Makefile.am): Likewise.
41832 * modules/stdlib-safer (Makefile.am): Likewise.
41833 * modules/stpcpy (Makefile.am): Likewise.
41834 * modules/stpncpy (Makefile.am): Likewise.
41835 * modules/strcase (Makefile.am): Likewise.
41836 * modules/strcasestr (Makefile.am): Likewise.
41837 * modules/strchrnul (Makefile.am): Likewise.
41838 * modules/strcspn (Makefile.am): Likewise.
41839 * modules/strdup (Makefile.am): Likewise.
41840 * modules/strerror (Makefile.am): Likewise.
41841 * modules/strftime (Makefile.am): Likewise.
41842 * modules/strndup (Makefile.am): Likewise.
41843 * modules/strnlen (Makefile.am): Likewise.
41844 * modules/strpbrk (Makefile.am): Likewise.
41845 * modules/strsep (Makefile.am): Likewise.
41846 * modules/strstr (Makefile.am): Likewise.
41847 * modules/strtod (Makefile.am): Likewise.
41848 * modules/strtoimax (Makefile.am): Likewise.
41849 * modules/strtok_r (Makefile.am): Likewise.
41850 * modules/strtol (Makefile.am): Likewise.
41851 * modules/strtoll (Makefile.am): Likewise.
41852 * modules/strtoul (Makefile.am): Likewise.
41853 * modules/strtoull (Makefile.am): Likewise.
41854 * modules/strtoumax (Makefile.am): Likewise.
41855 * modules/strverscmp (Makefile.am): Likewise.
41856 * modules/time_r (Makefile.am): Likewise.
41857 * modules/timegm (Makefile.am): Likewise.
41858 * modules/tmpfile-safer (Makefile.am): Likewise.
41859 * modules/unistd-safer (Makefile.am): Likewise.
41860 * modules/unlinkdir (Makefile.am): Likewise.
41861 * modules/userspec (Makefile.am): Likewise.
41862 * modules/utime (Makefile.am): Likewise.
41863 * modules/utimecmp (Makefile.am): Likewise.
41864 * modules/utimens (Makefile.am): Likewise.
41865 * modules/vasnprintf (Makefile.am): Likewise.
41866 * modules/vasprintf (Makefile.am): Likewise.
41867 * modules/vsnprintf (Makefile.am): Likewise.
41868 * modules/xalloc (Makefile.am): Likewise.
41869 * modules/xgetcwd (Makefile.am): Likewise.
41870 * modules/xnanosleep (Makefile.am): Likewise.
41871 * modules/xreadlink (Makefile.am): Likewise.
41872 * modules/xstrtod (Makefile.am): Likewise.
41873 * modules/xstrtol (Makefile.am): Likewise.
41874 * modules/xstrtold (Makefile.am): Likewise.
41875 * modules/yesno (Makefile.am): Likewise.
41877 2006-10-12 Jim Meyering <jim@meyering.net>
41879 * m4/getloadavg.m4: Revert the change below.
41881 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41882 lib/getloadavg.c using "ls -L", not "test -f". The latter would
41883 fail with a symlink, which is what coreutils' ./bootstrap now
41884 creates by default.
41886 2006-10-12 Bruno Haible <bruno@clisp.org>
41888 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41890 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41891 MSVC and mingw explicitly.
41893 2006-10-11 Simon Josefsson <jas@extundo.com>
41894 Bruno Haible <bruno@clisp.org>
41896 Add support for multiple gnulib-tool invocations in the scope of a
41897 single configure.ac file.
41898 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41899 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41900 with the same contents as the _LIBADD variable.
41901 (func_emit_initmacro_start, func_emit_initmacro_end,
41902 func_emit_initmacro_done): New functions.
41903 (func_import, func_create_testdir): Invoke them. Allow the identifiers
41904 gl_LIBOBJS and gl_LTLIBOBJS.
41906 2006-10-11 Bruno Haible <bruno@clisp.org>
41908 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41909 (func_create_testdir): Don't create po/Makefile.am, don't invoke
41910 autoreconf. Instead, invoke autopoint explicitly but move back the
41911 *.m4 files from gnulib.
41913 2006-10-11 Bruno Haible <bruno@clisp.org>
41915 * gnulib-tool (func_usage): Make module names after --create-testdir
41917 (func_create_testdir): If no module was specified, use nearly all
41920 2006-10-12 Jim Meyering <jim@meyering.net>
41922 Big performance improvement for fts-based tools that use FTS_NOSTAT.
41923 Avoid spurious inode-mismatch problems on non-POSIX file systems.
41924 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41925 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41926 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41927 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41928 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41929 (fts_set_stat_required): New function.
41930 (fts_open): Defer the calls to fts_stat, if possible or requested.
41931 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41932 into fts_stat itself.
41933 (fts_read): Perform any required (deferred) fts_stat call.
41934 (fts_build): Likewise, for the directory we're about to open and read.
41935 In the readdir loop, carefully decide whether each entry will require
41936 an eventual call to fts_stat, using dirent.d_type info if available.
41937 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41938 a command line argument into this function. Update all callers.
41939 Map a return value of FTS_DOT to FTS_D for a command line argument.
41940 * modules/fts (Depends-on): Add d-type. Alphabetize.
41941 Thanks to Miklos Szeredi for his tenacity and for the initial
41942 bug report about "find" failing on a FUSE-based file system.
41944 * lib/fts.c (fts_open): Use consistent indentation.
41946 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41948 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41949 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41950 reported by Jim Meyering. All uses of cache variables renamed
41951 to match Autoconf's.
41952 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41955 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41956 Fix misspelling in diagnostic.
41958 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41960 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41961 defined. Problem reported by Matthew Woehlke.
41963 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41964 Add support for Tandem NonStop R series.
41965 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41968 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41969 (has_trailing_slash): Omit size arg; all callers changed.
41970 Omit 'inline', since it doesn't help performance and we'd
41971 need to configure it.
41972 Don't count //, ///, etc. as having a trailing slash.
41973 As a side effect, this removes a C99ism reported by Matthew Woehlke.
41974 (rpl_rename_dest_slash): On failure, use rename's errno rather
41975 than (in some cases) an incorrect or junk errno.
41976 Simplify code by removing need to compute length; this does
41977 cause it to make two passes instead of one over the file name,
41980 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41981 change, since Autoconf's version may no longer be appropriate now
41982 that we are using CVS Autoconf's version. Add support for Tandem.
41984 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41985 Bruno Haible <bruno@clisp.org>
41987 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41988 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41989 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41990 gl_AC_TYPE_LONG_LONG.
41992 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41993 instead of HAVE_LONG_LONG.
41994 * lib/printf-args.c (printf_fetchargs): Likewise.
41995 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41996 * lib/vasnprintf.c (VASNPRINTF): Likewise.
41997 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41998 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41999 gl_AC_TYPE_LONG_LONG.
42001 2006-10-11 Bruno Haible <bruno@clisp.org>
42003 * m4/longlong.m4: Add comments.
42004 * m4/ulonglong.m4: Likewise.
42006 2006-10-10 Bruno Haible <bruno@clisp.org>
42008 Make it possible to #define stpcpy, strdup to aliases.
42009 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42010 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42012 2006-10-10 Bruno Haible <bruno@clisp.org>
42014 Make it possible to #define gcd to an alias.
42015 * lib/gcd.c: Include config.h.
42017 2006-10-10 Bruno Haible <bruno@clisp.org>
42019 Make it possible to #define c_isascii to an alias.
42020 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42021 defined. Undefine the macros before defining them, to avoid gcc
42023 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42024 define NO_C_CTYPE_MACROS early.
42026 2006-10-10 Bruno Haible <bruno@clisp.org>
42028 Make it possible to #define set_program_name to an alias.
42029 * lib/progname.c: Don't undefine set_program_name; instead, undefine
42030 ENABLE_RELOCATABLE early.
42032 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
42034 Port to Tandem NSK OSS, which has 64-bit signed int but at most
42035 32-bit unsigned int. Problem reported by Matthew Woehlke in:
42036 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42037 More generally, don't assume that 64-bit signed int is available
42038 if unsigned int is, and vice versa.
42039 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42040 unsigned symbols, not on their signed counterparts.
42041 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42042 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42043 (UINT64_C, UINTMAX_C):
42045 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42046 unsigned counterparts.
42047 (Have_long_long, Unsigned): New macros.
42048 (Int): Renamed from INT.
42049 (strtoimax): Use the new macros.
42050 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42051 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42052 * modules/inttypes (inttypes.h): Substitute
42053 HAVE_UNSIGNED_LONG_LONG_INT.
42054 * modules/stdint (stdint.h): Likewise.
42055 (Files): Add m4/ulonglong.m4.
42057 2006-10-10 Bruno Haible <bruno@clisp.org>
42059 Fix a gcc -Wshadow warning.
42060 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42062 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42063 gl_linked_indexof_from_to): Likewise.
42064 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42066 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42068 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42069 Reported by Eric Blake.
42071 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
42073 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42074 for NetBSD. Problem reported by Bruno Haible.
42076 2006-10-09 Jim Meyering <jim@meyering.net>
42078 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42079 Patch from Bruno Haible.
42081 2006-10-09 Jim Meyering <jim@meyering.net>
42083 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42084 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42085 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42087 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
42089 Don't include <config.h> twice; this doesn't work in some cases,
42090 e.g., when config.h has "#define intmax_t long long int" and
42091 we include <config.h>, <inttypes.h>, <config.h> in that order.
42092 Problem reported by Matthew Woehlke in:
42093 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42094 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42095 * lib/fts-cycle.c: Don't include config.h.
42096 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42097 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42098 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
42099 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42101 * lib/xstrtoumax.c: Likewise.
42102 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42103 __strtol and the like, so that this module is more like its siblings.
42104 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42105 Remove; no longer needed now that we assume gnulib inttypes.h.
42107 2006-10-08 Bruno Haible <bruno@clisp.org>
42109 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42112 2006-10-07 Jim Meyering <jim@meyering.net>
42114 * modules/inttypes (inttypes.h): Revert what seems to have been
42115 an inadvertent part of today's change: use "|", not "/" in the
42116 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42118 2006-10-07 Bruno Haible <bruno@clisp.org>
42120 * modules/sublist: New file.
42122 2006-10-07 Bruno Haible <bruno@clisp.org>
42124 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42125 * modules/argz (argz.h): Likewise.
42126 * modules/arpa_inet (arpa/inet.h): Likewise.
42127 * modules/byteswap (byteswap.h): Likewise.
42128 * modules/configmake (configmake.h): Likewise.
42129 * modules/fcntl (fcntl.h): Likewise.
42130 * modules/fnmatch (fnmatch.h): Likewise.
42131 * modules/getopt (getopt.h): Likewise.
42132 * modules/glob (glob.h): Likewise.
42133 * modules/inttypes (inttypes.h): Likewise.
42134 * modules/netinet_in (netinet/in.h): Likewise.
42135 * modules/poll (poll.h): Likewise.
42136 * modules/stdbool (stdbool.h): Likewise.
42137 * modules/stdint (stdint.h): Likewise.
42138 * modules/sys_select (sys/select.h): Likewise.
42139 * modules/sys_socket (sys/socket.h): Likewise.
42140 * modules/sys_stat (sys/stat.h): Likewise.
42141 * modules/sysexits (sysexits.h): Likewise.
42142 * modules/unistd (unistd.h): Likewise.
42143 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42144 Add a "DO NOT EDIT" comment to the generated file.
42145 (func_import): Likewise for gnulib-comp.m4.
42147 2006-10-07 Bruno Haible <bruno@clisp.org>
42149 * lib/gl_sublist.h: New file.
42150 * lib/gl_sublist.c: New file.
42152 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
42154 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42155 name (relative to the original working directory) and the file
42156 name component (relative to the temporary working directory). All
42158 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42159 * lib/mkdir-p.c (make_dir_parents): Likewise.
42160 * lib/mkdir-p.h (make_dir_parents): Likewise.
42162 2006-10-06 Eric Blake <ebb9@byu.net>
42164 Define several macros for use by the clean-temp module.
42165 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42166 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42167 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42169 * lib/clean-temp.h (close_stream_temp): New declaration.
42170 * lib/clean-temp.c (includes): Pull in headers according to what
42171 other modules are in use.
42172 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42174 2006-10-06 Bruno Haible <bruno@clisp.org>
42176 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42177 instead of fopen, fwriteerror.
42179 2006-10-06 Bruno Haible <bruno@clisp.org>
42181 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42182 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42184 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42185 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42186 Return an error indicator.
42187 Suggested by Eric Blake.
42189 2006-10-06 Bruno Haible <bruno@clisp.org>
42191 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42192 Reported by Eric Blake.
42194 2006-10-06 Bruno Haible <bruno@clisp.org>
42196 * modules/closeout (Description): Mention stderr too.
42198 2006-10-06 Bruno Haible <bruno@clisp.org>
42199 and Paul Eggert <eggert@cs.ucla.edu>
42201 * lib/closeout.c (close_stdout): Also close stderr.
42202 * lib/closeout.h: Update comment.
42204 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
42206 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42207 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42208 * lib/dirchownmod.c: Include lchown.h.
42209 * lib/lchown.c: Don't include files that lchown.h now includes.
42210 Don't declare chown, since lchown.h now does that.
42211 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42212 (lchown): Define to rpl_chown if lchown is declared but
42213 does not exist. Declare using a prototype if lchown is not
42214 declared. Add a copyright notice.
42215 * lib/mkstemp.h: Include <unistd.h>.
42216 * lib/openat.c: Include lchown.h.
42218 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42219 we now test for that separately.
42220 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42221 rather than O_NOFOLLOW, when testing whether it's possible to
42222 avoid a race condition reliably.
42223 * lib/savewd.c (savewd_chdir): Likewise.
42225 Remove macros that are no longer needed now that stdint.h is
42227 * lib/fsusage.c (UINTMAX_MAX): Remove.
42228 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42229 * lib/utimecmp.c (SIZE_MAX): Remove.
42231 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42233 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42234 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
42237 2006-10-05 Bruno Haible <bruno@clisp.org>
42239 * lib/gl_list.h (gl_sortedlist_search_from_to,
42240 gl_sortedlist_indexof_from_to): New declarations.
42241 (gl_list_implementation): New fields sortedlist_search_from_to,
42242 sortedlist_indexof_from_to.
42243 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42245 * lib/gl_list.c (gl_sortedlist_search_from_to,
42246 gl_sortedlist_indexof_from_to): New functions.
42247 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42249 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42250 (gl_array_sortedlist_search_from_to): New function.
42251 (gl_array_list_implementation): Update.
42252 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42254 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42255 (gl_carray_sortedlist_search_from_to): New function.
42256 (gl_carray_list_implementation): Update.
42257 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42258 gl_linked_sortedlist_indexof_from_to): New functions.
42259 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42260 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42261 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42262 gl_tree_sortedlist_indexof_from_to): New functions.
42263 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42264 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42266 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42267 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42270 2006-10-05 Bruno Haible <bruno@clisp.org>
42272 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42273 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42274 (struct gl_list_implementation): Add fields search_from_to,
42275 indexof_from_to. Remove fields search, indexof.
42276 (gl_list_search): Use the search_from_to method.
42277 (gl_list_search_from, gl_list_search_from_to): New functions.
42278 (gl_list_indexof): Use the indexof_from_to method.
42279 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42280 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42281 (gl_list_search_from, gl_list_search_from_to): New functions.
42282 (gl_list_indexof): Use the indexof_from_to method.
42283 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42284 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42285 gl_array_indexof. Add start_index, end_index arguments.
42286 (gl_array_search_from_to): Renamed from gl_array_search. Add
42287 start_index, end_index arguments.
42288 (gl_array_remove, gl_array_list_implementation): Update.
42289 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42290 gl_carray_indexof. Add start_index, end_index arguments.
42291 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42292 start_index, end_index arguments.
42293 (gl_carray_remove, gl_carray_list_implementation): Update.
42294 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42295 gl_linked_search. Add start_index, end_index arguments.
42296 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42297 start_index, end_index arguments.
42298 (gl_linked_remove): Update.
42299 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42300 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42301 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42303 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42304 gl_tree_search. Add start_index, end_index arguments.
42305 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42306 start_index, end_index arguments.
42307 (gl_tree_remove): Update.
42308 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42309 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42310 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42312 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42313 gl_tree_search. Add start_index, end_index arguments.
42314 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42315 start_index, end_index arguments.
42316 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42318 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42320 2006-10-05 Bruno Haible <bruno@clisp.org>
42322 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42324 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42325 fwriteerror_temp): New declarations.
42326 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42327 (descriptors): New variable.
42328 (cleanup): First, close the descriptors.
42329 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42330 fclose_temp, fwriteerror_temp): New functions.
42332 2006-10-04 Jim Meyering <jim@meyering.net>
42334 * lib/fts.c (fts_open): Tiny comment change.
42336 2006-10-04 Bruno Haible <bruno@clisp.org>
42338 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42339 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42341 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42342 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42343 gl_LOCK_EARLY_BODY.
42344 (gl_LOCK): Require gl_LOCK_BODY.
42346 2006-10-04 Bruno Haible <bruno@clisp.org>
42348 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42349 (gl_oset_search_atleast): New declaration.
42350 (struct gl_oset_implementation): Add field 'search_atleast'.
42351 (gl_oset_search_atleast): New inline function.
42352 * lib/gl_oset.c (gl_oset_search_atleast): New function.
42353 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42354 (gl_array_oset_implementation): Update.
42355 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42356 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42357 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42359 2006-10-04 Bruno Haible <bruno@clisp.org>
42361 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42363 2006-10-03 Bruno Haible <bruno@clisp.org>
42365 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42366 from gl_avltreehash_list_implementation.
42368 2006-10-03 Bruno Haible <bruno@clisp.org>
42370 * lib/gl_oset.c (gl_oset_add): Fix return type.
42372 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
42374 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42376 2006-10-02 Eric Blake <ebb9@byu.net>
42378 * modules/strnlen (Depends-on): Add extensions.
42380 2006-10-02 Eric Blake <ebb9@byu.net>
42382 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42383 definition in 2.60+.
42385 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
42387 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42390 2006-10-02 Bruno Haible <bruno@clisp.org>
42392 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42393 to the AUTOMAKE_OPTIONS.
42394 Reported by Jim Meyering.
42396 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
42398 Work around bug in Solaris 10 /proc file system:
42399 /proc/self/fd/NNN/.. isn't the parent directory of
42400 the directory whose file descriptor is NNN. This needs to
42401 be worked around at run time, not compile time, since a
42402 program might be built on Solaris 8, where things work, and
42404 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
42405 to use the following interface instead:
42406 (OPENAT_BUFFER_SIZE): New macro.
42407 (openat_proc_name): New function.
42408 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42409 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42411 * lib/openat-proc.c: New file.
42412 * modules/openat (Files): Add lib/openat-proc.c.
42413 (Depends-on): Add same-inode, stdbool.
42414 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42416 2006-09-29 Bruno Haible <bruno@clisp.org>
42418 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42419 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42420 argument. Set stdout_closed before testing for ferror, not after.
42421 (fwriteerror, fwriteerror_no_ebadf): New functions.
42423 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42425 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42427 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
42429 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42430 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42432 2006-09-28 Jim Meyering <jim@meyering.net>
42434 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42435 Include <unistd.h>.
42437 2006-09-28 Bruno Haible <bruno@clisp.org>
42439 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42440 * modules/linkedhash-list (Depends-on): Likewise.
42441 * modules/rbtreehash-list (Depends-on): Likewise.
42443 2006-09-28 Bruno Haible <bruno@clisp.org>
42445 * lib/strndup.h: Simplify the redefinition of strndup.
42446 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42447 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42449 2006-09-28 Bruno Haible <bruno@clisp.org>
42451 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42452 * lib/gl_linkedhash_list.c: Likewise.
42453 * lib/gl_rbtreehash_list.c: Likewise.
42455 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
42457 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42460 * lib/__fpending.h: Don't include <stdio_ext.h> unless
42461 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
42462 it causes <stdio_ext.h> to cause a compile-time error.
42463 Problem reported by Nelson H. F. Beebe.
42464 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42465 of HAVE_DECL___PENDING.
42467 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42468 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42471 2006-09-27 Jim Meyering <jim@meyering.net>
42473 This file could end up with a definition for a function
42474 named __strndup, rather than rpl_strndup on a system with
42475 incomplete weak_alias support.
42476 * lib/strndup.c (strndup): Rename from __strndup.
42477 Remove #defines that used to map __strndup to strndup.
42478 Don't use K&R prototypes.
42479 Remove LIBC-related code, since this file is not sync'd with glibc.
42480 * lib/strndup.h: Revamp, accordingly.
42481 * m4/strndup.m4: Modernize.
42483 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
42485 * modules/savewd (Depends-on): Add 'raise'.
42486 * lib/savewd.c: Include <signal.h>, for 'raise'.
42488 2006-09-26 Jim Meyering <jim@meyering.net>
42490 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42491 when we detect Darwin 8.7.0's acl_get_file bug.
42492 Rearrange to perform the new (below) run-test while $LIBS
42493 contains any acl-related library. Set USE_ACL at the end.
42494 (gl_ACL_GET_FILE): New function.
42496 2006-09-26 Eric Blake <ebb9@byu.net>
42498 * lib/verror.c: Include <config.h> unconditionally.
42500 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
42502 * modules/clock-time (Maintainer): Add self.
42503 * modules/getlogin_r (Depends-on): Add extensions.
42505 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42507 * modules/clock-time: New module.
42508 * modules/nanosleep (Depends-on): Add clock-time.
42509 * modules/gethrxtime (Depends-on): Likewise.
42510 * modules/gettime (Depends-on): Likewise.
42511 * modules/settime (Depends-on): Likewise.
42513 * modules/fts-lgpl: Depend on openat.
42514 * modules/mkancesdirs: Depend on savewd.
42515 * modules/mkdir-p: Likewise.
42517 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42519 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42521 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42522 `gl_have_arbitrary_file_name_length_limit' to
42523 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42524 actually works between configure runs.
42526 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42527 Bruno Haible <bruno@clisp.org>
42529 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42531 2006-09-25 Jim Meyering <jim@meyering.net>
42533 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42534 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42536 2006-09-25 Eric Blake <ebb9@byu.net>
42538 * gnulib-tool (func_import, func_create_testdir): Fix typos in
42539 exec's in 2006-09-18 patch when shuffling fds.
42541 2006-09-25 Bruno Haible <bruno@clisp.org>
42543 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42544 Reported by Jim Meyering.
42546 2006-09-24 Jim Meyering <jim@meyering.net>
42548 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42549 compare a pointer against a literal "0". That caused failures with
42550 at least HP-UX's hpcc.
42552 2006-09-22 Simon Josefsson <jas@extundo.com>
42556 * modules/gc-hmac-sha1:
42557 * modules/gc-hmac-md5:
42559 * modules/gc-arcfour: Distribute more files.
42561 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42563 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42564 (gl_linked_iterator_from_to): Initialize struct completely.
42565 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42566 (gl_tree_iterator_from_to): Likewise
42567 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42568 * lib/gl_array_list.c [lint] (gl_array_iterator)
42569 (gl_array_iterator_from_to): Likewise.
42570 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42571 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42572 (gl_carray_iterator_from_to): Likewise.
42574 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42575 * lib/md4.c (md4_process_block): Remove unused variable.
42576 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42577 parentheses for clarity.
42579 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42581 * modules/bison-i18n (Depends-on): Add gettext.
42583 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42585 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42586 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42587 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42588 also add missing comma that caused broken test.
42589 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42590 stdlib.h, for `abort'.
42591 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42593 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42594 include unistd.h if present, for `rmdir'.
42595 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42597 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42598 in the process include standard headers for prototypes.
42599 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42600 gets declared on GNU/Linux.
42601 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42602 unistd.h, for `rmdir'.
42603 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42605 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42607 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42609 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42611 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42613 * gnulib-tool (func_version): Create output all at once. This
42614 may help avoid triggering unnecessary SIGPIPEs, and at any
42615 rate it doesn't hurt.
42617 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42618 Bruno Haible <bruno@clisp.org>
42620 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42621 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42622 * m4/signed.m4 (bh_C_SIGNED): Likewise.
42624 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42625 (gl_FUNC_VASPRINTF): Invoke it.
42627 2006-09-22 Bruno Haible <bruno@clisp.org>
42629 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42630 getloadavg.c as first argument.
42632 2006-09-22 Bruno Haible <bruno@clisp.org>
42634 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42635 at the beginning of the gl_INIT macro.
42636 * modules/getloadavg (configure.ac): Pass $gl_source_base to
42639 2006-09-22 Bruno Haible <bruno@clisp.org>
42641 * gnulib-tool (func_create_megatestdir): Don't include the config-h
42643 Suggested by Ralf Wildenhues.
42645 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
42647 Import this patch from libc:
42649 2006-09-06 Jakub Jelinek <jakub@redhat.com>
42651 * lib/regex_internal.c (re_string_reconstruct): Handle
42652 offset < pstr->valid_raw_len && pstr->offsets_needed case.
42653 Ensure no bytes read before raw_mbs array. Pass a saved copy of
42654 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42655 re_string_context_at.
42657 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42659 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42660 gl_REGEX now does it for us.
42661 (gl_REGEX): Add test taken from
42662 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42664 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42665 Check that large offsets work. Modernize Autoconf usages.
42666 Prefer "yes" to mean a good thing rather than a bad.
42667 Don't put "#define mkstemp" in config.h, as this might interfere
42668 with standard system headers that "#define mkstemp mkstemp64".
42670 * modules/mkstemp (Depends-on): Add extensions, so that
42671 mkstemp is visible on some platforms.
42672 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42673 (Include): Change to "mkstemp.h" from <stdlib.h>.
42674 (Files): Add mkstemp.h.
42676 * lib/mkstemp.h: New file, since some standard headers
42678 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42679 Include "mkstemp.h".
42680 Make the _LIBC code resemble glibc original more,
42681 e.g., use K&R style.
42682 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42683 (mkstemp): Remove, since mkstemp.h does this for us.
42684 * lib/stdlib--.h: Include mkstemp.h.
42686 Import this patch from libc:
42688 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42690 * lib/tempname.c (__gen_tempname): Change attempts_min
42691 into a macro. Use preprocessor to decide how to initialize
42692 attempts [Coverity CID 67].
42694 2006-09-20 Bruno Haible <bruno@clisp.org>
42696 * lib/mkdtemp.c: Import from libc.
42697 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42698 * sysdeps/posix/tempname.c (__gen_tempname): Change
42699 attempts_min into a macro. Use preprocessor to decide how to
42700 initialize attempts [Coverity CID 67].
42701 2001-11-27 Paul Eggert <eggert@twinsun.com>
42702 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42703 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42705 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42707 * gnulib-tool (func_exit): New function, to allow to pass the
42708 exit status portably through the trap. Use everywhere.
42709 (--help, --version): Signal a write error.
42710 (trap): catch SIGPIPE, for write errors.
42711 Exit at the end of the trap, with the correct exit status.
42713 2006-09-19 Karl Berry <karl@gnu.org>
42715 * doc/gnulib.texi: note about the license texinfo files.
42717 2006-09-19 Eric Blake <ebb9@byu.net>
42719 * gnulib-tool: Avoid space-tab.
42721 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42723 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42724 that prevented coreutils 6.1 from building. Problem reported
42725 by Petter Reinholdtsen.
42727 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42729 * gnulib-tool (avoidlist): Fix typo that broke options like
42730 --avoid=lock that are used by coreutils bootstrap.
42732 2006-09-18 Mark D. Baushke <mdb@gnu.org>
42734 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42735 more systematically.
42737 2006-09-18 Jim Meyering <jim@meyering.net>
42739 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42741 2006-09-18 Bruno Haible <bruno@clisp.org>
42743 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42745 2006-09-18 Bruno Haible <bruno@clisp.org>
42747 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42748 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42749 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42750 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42751 * m4/gettext.m4: Require autoconf >= 2.52.
42752 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42753 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42754 of gl_cv_header_inttypes_h.
42756 2006-09-18 Bruno Haible <bruno@clisp.org>
42758 * lib/javaversion.c: Include configmake.h.
42760 2006-09-18 Bruno Haible <bruno@clisp.org>
42762 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42763 avoid that the while loops be executed in a subshell.
42765 2006-09-18 Bruno Haible <bruno@clisp.org>
42767 * MODULES.html.sh (func_module): Break long lines.
42768 Suggested by Bruce Korb <bkorb@gnu.org>.
42770 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42772 Speed up by a factor of 1.12.
42773 * gnulib-tool (nl): New variable.
42774 (func_import): Rewrite include directive extraction to only read each
42777 2006-09-17 Bruno Haible <bruno@clisp.org>
42779 * modules/javaversion (Makefile.am): Remove DEFS setting.
42780 (Depends-on): Add configmake, for PKGDATADIR definition.
42782 2006-09-17 Bruno Haible <bruno@clisp.org>
42784 * gnulib-tool (func_create_testdir): Rewrite all files at once.
42786 2006-09-17 Bruno Haible <bruno@clisp.org>
42788 * gnulib-tool (func_append): New function, stolen from libtool.m4.
42789 (func_modules_transitive_closure, func_modules_add_dummy,
42790 func_modules_to_filelist, func_import, func_create_testdir,
42791 func_create_megatestdir, ...): Use it wherever possible.
42792 Suggested by Ralf Wildenhues.
42794 2006-09-16 Karl Berry <karl@gnu.org>
42796 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42797 to avoid sectioning errors.
42798 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42799 [ifinfo]: blank line after @center-ed titles.
42800 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42801 Spell FSF address consistently with others.
42802 (These changes approved by rms.)
42804 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42806 Speed up by a factor of 1.61.
42807 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42808 already checked module names again.
42810 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42812 Speed up by a factor of 1.13.
42813 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42814 for new_files, and the input to func_add_or_update.
42816 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42818 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42819 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42821 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42823 * modules/mkancesdirs (Depends-on): Add fcntl.
42824 * modules/savewd: New file.
42825 * MODULES.html.sh (File system functions): Add savewd.
42827 * modules/configmake (Makefile.am): Add support for the
42828 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42830 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42832 * m4/savewd.m4: New file.
42834 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42836 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42837 (dirchownmod): New arg FD. All callers changed.
42838 Use FD rather than opening the directory ourself, as opening is
42839 now the caller's responsibility.
42840 * lib/dirchownmod.h: Likewise.
42841 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42842 hosts that require <sys/types.h> before <sys/stat.h>. Include
42843 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42844 (test_dir): Remove.
42845 (mkancesdirs): Return length of prefix of FILE that has already
42846 been made, or -2 if there is a child doing the work. Redo
42847 algorithm so that it is O(N) rather than O(N**2). Optimize away
42848 ".", and treat ".." specially since it might stray back into
42849 already-created areas. Use a subprocess if necessary. New arg
42850 WD; all users changed. MAKE_DIR function should now return 1
42851 if it creates a directory that is not readable. Return -2 if
42852 a child process is spun off.
42853 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42854 Adjust signature to match code.
42855 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42856 (make_dir_parents): Use a subprocess if necessary. New arg WD;
42858 * lib/savewd.c, lib/savewd.h: New files.
42860 2006-09-15 Jim Meyering <jim@meyering.net>
42862 * modules/rename-dest-slash: New module.
42863 * MODULES.html.sh (posix_compat): Add it here.
42865 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42867 2006-09-15 Jim Meyering <jim@meyering.net>
42869 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42872 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42874 2006-09-15 Jim Meyering <jim@meyering.net>
42876 * lib/rename-dest-slash.c (has_trailing_slash): Use
42877 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42878 (rpl_rename_dest_slash): Perform the cheaper trailing slash
42879 test before testing whether SRC is a directory.
42880 Suggestions from Bruno Haible.
42882 Avoid a warning about an unused variable.
42883 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42884 into the #ifdef block where it's used.
42886 * lib/rename-dest-slash.c: New file.
42888 2006-09-14 Bruno Haible <bruno@clisp.org>
42890 * lib/allocsa.c: Include <config.h> unconditionally.
42891 * lib/asnprintf.c: Likewise.
42892 * lib/asprintf.c: Likewise.
42893 * lib/c-strcasecmp.c: Likewise.
42894 * lib/c-strcasestr.c: Likewise.
42895 * lib/c-strncasecmp.c: Likewise.
42896 * lib/c-strstr.c: Likewise.
42897 * lib/classpath.c: Likewise.
42898 * lib/clean-temp.c: Likewise.
42899 * lib/concatpath.c: Likewise.
42900 * lib/copy-file.c: Likewise.
42901 * lib/csharpcomp.c: Likewise.
42902 * lib/csharpexec.c: Likewise.
42903 * lib/execute.c: Likewise.
42904 * lib/fatal-signal.c: Likewise.
42905 * lib/findprog.c: Likewise.
42906 * lib/fwriteerror.c: Likewise.
42907 * lib/gl_array_list.c: Likewise.
42908 * lib/gl_array_oset.c: Likewise.
42909 * lib/gl_avltree_list.c: Likewise.
42910 * lib/gl_avltree_oset.c: Likewise.
42911 * lib/gl_avltreehash_list.c: Likewise.
42912 * lib/gl_carray_list.c: Likewise.
42913 * lib/gl_linked_list.c: Likewise.
42914 * lib/gl_linkedhash_list.c: Likewise.
42915 * lib/gl_list.c: Likewise.
42916 * lib/gl_oset.c: Likewise.
42917 * lib/gl_rbtree_list.c: Likewise.
42918 * lib/gl_rbtree_oset.c: Likewise.
42919 * lib/gl_rbtreehash_list.c: Likewise.
42920 * lib/imaxabs.c: Likewise.
42921 * lib/imaxdiv.c: Likewise.
42922 * lib/javacomp.c: Likewise.
42923 * lib/javaexec.c: Likewise.
42924 * lib/javaversion.c: Likewise.
42925 * lib/linebreak.c: Likewise.
42926 * lib/localcharset.c: Likewise.
42927 * lib/lock.c: Likewise.
42928 * lib/mbchar.c: Likewise.
42929 * lib/mbswidth.c: Likewise.
42930 * lib/mkdtemp.c: Likewise.
42931 * lib/pipe.c: Likewise.
42932 * lib/printf-args.c: Likewise.
42933 * lib/printf-parse.c: Likewise.
42934 * lib/progname.c: Likewise.
42935 * lib/progreloc.c: Likewise.
42936 * lib/readlink.c: Likewise.
42937 * lib/sh-quote.c: Likewise.
42938 * lib/stpcpy.c: Likewise.
42939 * lib/stpncpy.c: Likewise.
42940 * lib/strcasecmp.c: Likewise.
42941 * lib/strcasestr.c: Likewise.
42942 * lib/strcspn.c: Likewise.
42943 * lib/striconv.c: Likewise.
42944 * lib/strncasecmp.c: Likewise.
42945 * lib/strnlen1.c: Likewise.
42946 * lib/strstr.c: Likewise.
42947 * lib/strtok_r.c: Likewise.
42948 * lib/tls.c: Likewise.
42949 * lib/tmpdir.c: Likewise.
42950 * lib/unicodeio.c: Likewise.
42951 * lib/unsetenv.c: Likewise.
42952 * lib/vasnprintf.c: Likewise.
42953 * lib/vasprintf.c: Likewise.
42954 * lib/wait-process.c: Likewise.
42955 * lib/xallocsa.c: Likewise.
42956 * lib/xsetenv.c: Likewise.
42957 * lib/xstriconv.c: Likewise.
42959 2006-09-13 Simon Josefsson <jas@extundo.com>
42961 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42962 that internally, suggested by Ralf Wildenhues
42963 <Ralf.Wildenhues@gmx.de>.
42965 2006-09-13 Simon Josefsson <jas@extundo.com>
42967 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42969 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42971 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
42973 * lib/_fpending.c: Include <config.h> unconditionally, since we no
42974 longer worry about uses that don't define HAVE_CONFIG_H.
42975 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42976 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42977 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42978 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42979 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42980 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42981 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42982 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42983 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42984 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42985 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42986 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42987 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42988 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42989 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42990 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42991 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42992 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42993 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42994 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42995 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42996 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42997 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42998 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42999 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43000 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43001 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43002 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43003 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43004 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43005 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43006 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43007 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43008 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43009 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43010 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43011 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43012 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43013 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43014 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43015 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43018 2006-09-13 Eric Blake <ebb9@byu.net>
43020 * lib/getopt.c: Fix typo in last commit.
43022 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
43024 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43027 2006-09-12 Jim Meyering <jim@meyering.net>
43029 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43030 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43031 Reported by Nelson H. F. Beebe.
43033 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
43035 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43036 program_invocation_name and program_invocation_short_name are
43038 * lib/argp-namefrob.h: Move declarations of program_invocation_name
43039 and program_invocation_short_name to argp.h, so they are visible
43041 * lib/argp.h: Likewise
43043 2006-09-10 Bruno Haible <bruno@clisp.org>
43045 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43046 m4/inttypes_h.m4, m4/uintmax_t.m4.
43048 2006-09-10 Bruno Haible <bruno@clisp.org>
43050 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43051 gl_AC_TYPE_UINTMAX_T.
43053 2006-09-10 Bruno Haible <bruno@clisp.org>
43055 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43057 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
43059 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43060 convention. Text proposed by Bruno Haible.
43061 (struct argp_option): Document the use of N_() wrappers.
43063 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43064 '\v', and translate the two parts separately, instead of feeding
43065 the whole string to gettext. This allows to exclude
43066 '\v' from the strings visible to the translator by writing doc
43067 strings as N_("..") "\v" N_("..").
43069 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
43071 * config/srclist.txt: Undo latest change; the bug was fixed.
43073 2006-09-09 Bruno Haible <bruno@clisp.org>
43075 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43076 assignments if building a library without libtool.
43077 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43078 in func_emit_lib_Makefile_am.
43079 (func_import): When building a static library libfoo.a, arrange to
43080 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43081 (func_create_testdir): Likewise.
43082 * modules/gc (configure.ac, Makefile.am): If building statically,
43083 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43084 * modules/iconvme (configure.ac, Makefile.am): Likewise.
43085 * modules/striconv (configure.ac, Makefile.am): Likewise.
43086 Based on a suggestion by Ralf Wildenhues.
43088 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43090 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43091 Check for unistd.h too, since Autoconf doesn't assume POSIX.
43094 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43095 Add year_2050_test to catch glibc bug 2821
43096 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43098 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43099 Prefer #ifdef to #if.
43101 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
43102 Return from 'main' instead of calling 'exit'.
43104 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43106 * lib/mktime.c (guess_time_tm): Fix bug where mktime
43107 returned the maximum time_t value rather than (time_t) -1.
43108 Problem originally reported by William Bardwell
43109 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43111 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43113 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43116 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43118 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43121 2006-09-08 Jim Meyering <jim@meyering.net>
43123 Don't make generated files read-only. That would bother too many
43124 people. However, do retain the ability to work when targets are
43125 read-only: remove the destination and temporary files before writing
43126 them (when generated via sed or echo), or by using the -f option for
43127 both cp and mv commands. Suggestion to use -f from Paul Eggert.
43128 * modules/alloca-opt, modules/argz, modules/arpa_inet:
43129 * modules/byteswap, modules/configmake, modules/fcntl:
43130 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43131 * modules/localcharset, modules/netinet_in, modules/poll:
43132 * modules/stdbool, modules/stdint, modules/sys_select:
43133 * modules/sys_socket, modules/sys_stat, modules/sysexits:
43135 2006-09-08 Jim Meyering <jim@meyering.net>
43137 Avoid new build failure on FreeBSD 6.0.
43138 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43139 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
43140 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43142 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43144 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43146 2006-09-07 Jim Meyering <jim@meyering.net>
43148 Fix global typo in last change: use chmod u-w, not chmod u-x.
43149 Spotted by Paul Eggert and Bruce Korb.
43150 * modules/alloca-opt, modules/argz, modules/arpa_inet:
43151 * modules/byteswap, modules/configmake, modules/fcntl:
43152 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43153 * modules/localcharset, modules/netinet_in, modules/poll:
43154 * modules/stdbool, modules/stdint, modules/sys_select:
43155 * modules/sys_socket, modules/sys_stat, modules/sysexits:
43157 2006-09-06 Jim Meyering <jim@meyering.net>
43159 Make generated files be read-only.
43160 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43161 Ensure that each generated file is now read-only.
43162 * modules/argz: Likewise.
43163 * modules/arpa_inet: Likewise.
43164 * modules/byteswap: Likewise.
43165 * modules/configmake: Likewise.
43166 * modules/fcntl: Likewise.
43167 * modules/fnmatch: Likewise.
43168 * modules/getopt: Likewise.
43169 * modules/glob: Likewise.
43170 * modules/inttypes: Likewise.
43171 * modules/netinet_in: Likewise.
43172 * modules/poll: Likewise.
43173 * modules/stdbool: Likewise.
43174 * modules/stdint: Likewise.
43175 * modules/sys_select: Likewise.
43176 * modules/sys_socket: Likewise.
43177 * modules/sys_stat: Likewise.
43178 * modules/sysexits: Likewise.
43179 * modules/localcharset: Same as above, but continue using temporary
43180 file named "t-$@" (why different?) rather than the "$@-t" used
43183 * modules/sysexits (Makefile.am): Replace literal occurrences
43184 of "sysexit.h" more readable, and more consistent, "$@".
43186 2006-09-06 Bruno Haible <bruno@clisp.org>
43188 * modules/striconv: New file.
43189 * modules/xstriconv: New file.
43190 * MODULES.html.sh (Internationalization functions): Add striconv,
43193 2006-09-06 Bruno Haible <bruno@clisp.org>
43195 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43196 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43197 not using libtool correctly.
43199 2006-09-06 Bruno Haible <bruno@clisp.org>
43201 * lib/striconv.h: New file.
43202 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43204 * lib/xstriconv.h: New file.
43205 * lib/xstriconv.c: New file.
43207 2006-09-06 Bruno Haible <bruno@clisp.org>
43209 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43212 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43214 * lib/argz_.h: Sync from Libtool.
43216 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
43217 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43219 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43221 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
43223 * modules/trim: New file.
43225 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
43227 * lib/trim.h: New file.
43228 * lib/trim.c: New file.
43230 2006-09-05 Bruno Haible <bruno@clisp.org>
43232 * MODULES.html.sh (String handling): Add trim.
43234 2006-09-04 Karl Berry <karl@gnu.org>
43236 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43237 until next release.
43239 2006-09-03 Bruno Haible <bruno@clisp.org>
43241 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43244 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43246 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43247 not gl_GETLOADAVG. Omit unneeded semicolons.
43248 Problems reported by Ralf Wildenhues in
43249 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43250 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
43251 at the end, which is the usual gnulib style.
43253 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43254 of doing all the work ourselves.
43255 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43256 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43258 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43260 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43261 Problem reported by Ralf Wildenhues in
43262 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43264 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43265 HAVE_STRUCT_STATFS_F_FSTYPENAME.
43267 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43269 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43270 yesterday's patch by changing test -n to test -z.
43272 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43274 * modules/getloadavg (Files): Add m4/getloadavg.m4.
43275 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43276 the former is now obsolescent.
43278 * modules/chdir-long (Depends-on): Add fcntl.
43280 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43282 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43283 obsolescent, and programs should use gnulib instead.
43284 * m4/getloadavg.m4: New file, with contents taken from Autoconf
43285 but with prefixes changed.
43287 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43289 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43290 or stdbool.h, because they might not exist while configuring.
43292 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43293 Don't include unistd.h or limits.h; not needed, since chdir-long.h
43295 (O_DIRECTORY): Remove.
43297 2006-08-31 Eric Blake <ebb9@byu.net>
43299 * gnulib-tool: Don't let emacs change spaces to TAB.
43301 2006-08-31 Bruno Haible <bruno@clisp.org>
43303 * gnulib-tool: When calling func_import more than once, do it in a
43305 Reported by Eric Blake <ebb9@byu.net>.
43307 2006-08-31 Bruno Haible <bruno@clisp.org>
43309 * gnulib-tool (nl): Remove variable.
43310 (sed_transform_lib_file): Use more robust test for config-h module.
43311 (func_import): Fix typo in 2006-08-25 patch.
43313 2006-08-31 Bruno Haible <bruno@clisp.org>
43315 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43316 specified, augment Makefile.am variables instead of assigning them.
43318 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43320 Work around a bug in both the Linux and SunOS 64-bit kernels:
43321 nanosleep mishandles sleeps for longer than 2**31 seconds.
43322 Problem reported by Frank v Waveren in
43323 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43324 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43325 Check for nanosleep bug.
43326 (LIB_NANOSLEEP): Append clock_gettime library if needed.
43328 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43330 Work around a bug in both the Linux and SunOS 64-bit kernels:
43331 nanosleep mishandles sleeps for longer than 2**31 seconds.
43332 Problem reported by Frank v Waveren in
43333 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43334 * lib/nanosleep.c (BILLION): New constant.
43335 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43336 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43339 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43341 * modules/nanosleep (Depends-on): Add gettime.
43343 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43344 and Simon Josefsson <jas@extundo.com>
43345 and Oskar Liljeblad <oskar@osk.mine.nu>
43347 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43348 * gnulib-tool (func_import): New license type 'unmodifiable license
43350 * modules/fdl: Use it. Longer description.
43351 * module/gpl, module/lgpl: New files.
43353 2006-08-30 Jim Meyering <jim@meyering.net>
43355 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43356 shadowing the parameter.
43358 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43362 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43364 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43365 sharing with gnulib. Report by Eric Blake.
43367 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43369 * modules/isapipe: New file.
43370 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43372 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43374 * modules/configmake (Makefile.am): Add a comment, and omit
43375 the CONFIGMAKE_ prefix from generated macro names. Suggested
43378 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43380 * m4/isapipe.m4: New file.
43382 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43384 * lib/isapipe.c, lib/isapipe.h: New files.
43386 2006-08-29 Jim Meyering <jim@meyering.net>
43388 * modules/configmake (Makefile.am): Make configmake.h depend on
43389 Makefile. Otherwise, a stale configmake.h could hang around.
43391 2006-08-29 Eric Blake <ebb9@byu.net>
43393 * lib/error.c (error_at_line, print_errno_message): Match libc, after
43394 resolution of upstream bug 3044.
43396 2006-08-29 Bruno Haible <bruno@clisp.org>
43398 * modules/localcharset (Depends-on): Add configmake.
43399 (Makefile.am): Remove setting of LIBDIR through DEFS.
43401 2006-08-29 Bruno Haible <bruno@clisp.org>
43403 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43406 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43408 * modules/fcntl: New file.
43409 * modules/chdir-safer (Depends-on): Add fcntl.
43410 * modules/fts: Likewise.
43411 * modules/mkdir-p: Likewise.
43413 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43414 This undoes the most recent change, since we're now addressing the
43415 problem in a different way.
43417 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43418 into output, since the output might be called Makefile.am even
43419 if $makefile_name is something different.
43420 (func_import): Use $makefile_am rather than
43421 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43424 * modules/inttypes (Files): Add m4/inttypes-h.m4.
43426 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43428 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43429 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
43430 recent change to stdint.m4, since we're now addressing the problem in a
43433 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43435 * m4/fcntl_h.m4: New file.
43437 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43439 * lib/fcntl_.h: New file.
43440 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43442 * lib/dirchownmod.c: Likewise.
43443 * lib/fts.c: Likewise.
43445 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43446 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43447 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43448 just before including <inttypes.h>, to avoid circular inclusion.
43450 2006-08-28 Jim Meyering <jim@meyering.net>
43452 * doc/visibility.texi: Actually read and correct the grammar of the
43453 sentence affected by yesterday's change.
43455 2006-08-28 Eric Blake <ebb9@byu.net>
43457 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43460 2006-08-28 Eric Blake <ebb9@byu.net>
43462 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43464 2006-08-28 Eric Blake <ebb9@byu.net>
43466 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43468 2006-08-28 Bruno Haible <bruno@clisp.org>
43470 * modules/c-strstr: New file, from GNU gettext.
43471 * MODULES.html.sh (String handling): Add c-strstr.
43473 2006-08-28 Bruno Haible <bruno@clisp.org>
43475 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43477 Reported by Eric Blake.
43479 2006-08-28 Bruno Haible <bruno@clisp.org>
43481 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43482 (VASNPRINTF): Return a string of length > INT_MAX without failing.
43483 * lib/vasprintf.c: Include errno.h, limits.h.
43484 (EOVERFLOW): New fallback definition.
43485 (vasprintf): Test here whether the string length is > INT_MAX.
43486 * lib/vsnprintf.c: Include errno.h, limits.h.
43487 (EOVERFLOW): New fallback definition.
43488 (vsnprintf): Fix bug when generated string was too long for the buffer.
43489 Test here whether the string length is > INT_MAX.
43491 2006-08-28 Bruno Haible <bruno@clisp.org>
43493 * lib/inttypes_.h (SCNX*): Remove definitions.
43494 Reported by Eric Blake.
43496 2006-08-28 Bruno Haible <bruno@clisp.org>
43498 * lib/c-strstr.h: New file, from GNU gettext.
43499 * lib/c-strstr.c: New file, from GNU gettext.
43501 2006-08-28 Bruno Haible <bruno@clisp.org>
43503 * gnulib-tool: Reorder some statements.
43505 2006-08-28 Bruno Haible <bruno@clisp.org>
43507 * gnulib-tool: New option --makefile-name.
43508 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43510 (func_import): Write $makefile_name to the cache file, and read it from
43511 there unless explicitly specified. Use $makefile_name as file name
43512 instead of Makefile.am. Adjust the recommendations accordingly.
43514 2006-08-28 Bruno Haible <bruno@clisp.org>
43516 * gnulib-tool (func_verify_module): Check against misapplying patch.
43518 2006-08-28 Bruno Haible <bruno@clisp.org>
43520 * gnulib-tool (func_relativize, func_relconcat): New functions.
43521 Give an error if --local-dir is given with --update.
43522 Remove trailing slashes from $local_gnulib_dir.
43523 (func_import): Store the relativized $local_gnulib_dir in
43524 gnulib-cache.m4, and read it from there if not specified explicitly.
43526 2006-08-28 Bruno Haible <bruno@clisp.org>
43528 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43529 is the current directory. Respect also $local_gnulib_dir.
43531 2006-08-28 Bruno Haible <bruno@clisp.org>
43532 Simon Josefsson <jas@extundo.com>
43535 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43537 2006-08-27 Jim Meyering <jim@meyering.net>
43539 * doc/visibility.texi: Remove duplicate word: "pointer".
43541 2006-08-26 Bruno Haible <bruno@clisp.org>
43543 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43544 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43545 (Makefile.am): Create inttypes.h from inttypes_.h.
43546 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43548 * modules/imaxabs: New file.
43550 * modules/imaxdiv: New file.
43552 2006-08-26 Bruno Haible <bruno@clisp.org>
43554 * m4/inttypes.m4: New file.
43555 * m4/_inttypes_h.m4: Remove file.
43556 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43558 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43560 * m4/imaxabs.m4: New file.
43562 * m4/imaxdiv.m4: New file.
43564 2006-08-26 Bruno Haible <bruno@clisp.org>
43566 * lib/inttypes_.h: New file.
43567 * lib/inttypes.h: Remove file.
43568 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43570 * lib/imaxabs.c: New file.
43572 * lib/imaxdiv.c: New file.
43574 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43576 New config-h module, so that "make" output needn't be cluttered
43577 by -DHAVE_CONFIG_H.
43578 * MODULES.html.sh (Support for building libraries and executables):
43580 * modules/config-h: New file.
43581 * gnulib-tool (nl, sed_transform_lib_file): New vars.
43582 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43583 the config-h module is used.
43585 New configmake module, so that "make" output needn't be cluttered
43586 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43587 * MODULES.html.sh (Support for building libraries and executables):
43589 * modules/configmake: New file.
43591 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43593 * m4/config-h.m4: New file.
43595 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43597 * config/srclist.txt: Add elisp-comp.
43599 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43601 * MODULES.html.sh (Support for building libraries and executables):
43603 * build-aux/elisp-comp: New file.
43604 * modules/elisp-comp: New file.
43606 2006-08-24 Bruno Haible <bruno@clisp.org>
43608 * gnulib-tool (func_create_testdir): Use non-default values of
43609 sourcebase and m4base.
43611 2006-08-24 Bruno Haible <bruno@clisp.org>
43613 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43616 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
43618 * modules/openat (Depends-on): Add lchown.
43620 2006-08-23 Bruno Haible <bruno@clisp.org>
43622 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43623 of gl_LOCK_EARLY instead of gl_LOCK.
43625 2006-08-23 Bruno Haible <bruno@clisp.org>
43627 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43629 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43631 2006-08-23 Bruno Haible <bruno@clisp.org>
43633 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43636 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43637 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43638 (gl_LOCK): New macro.
43640 2006-08-22 Simon Josefsson <jas@extundo.com>
43642 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43645 2006-08-22 Simon Josefsson <jas@extundo.com>
43647 * MODULES.html.sh: Add "Support for maintaining and release
43650 * build-aux/gnupload: New file, from coreutils.
43652 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43654 Avoid the need for AC_LIBSOURCES in m4 macros.
43655 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43656 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43657 * modules/check-version (EXTRA_DIST): Add check-version.h.
43658 * modules/crc (EXTRA_DIST): Add crc.h.
43659 * modules/des (EXTRA_DIST): Add des.h.
43660 * modules/gc (EXTRA_DIST): Add gc.h.
43661 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43662 * modules/getline (EXTRA_DIST): Add getline.h.
43663 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43664 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43665 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43666 * modules/md2 (EXTRA_DIST): Add md2.h.
43667 * modules/md4 (EXTRA_DIST): Add md4.h.
43668 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43669 * modules/read-file (EXTRA_DIST): Add read-file.h.
43670 * modules/readline (EXTRA_DIST): Add readline.h.
43671 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43672 rijndael-api-fst.h.
43674 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43676 * m4/rijndael.m4 (gl_ARCFOUR):
43677 * m4/arctwo.m4 (gl_ARCTWO):
43678 * m4/check-version.m4 (gl_CHECK_VERSION):
43679 * m4/crc.m4 (gl_CRC):
43680 * m4/des.m4 (gl_DES):
43681 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43682 * m4/gc.m4 (gl_GC):
43683 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43684 * m4/getline.m4 (gl_FUNC_GETLINE):
43685 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43686 * m4/hmac-md5.m4 (gl_HMAC_MD5):
43687 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43688 * m4/md2.m4 (gl_MD2):
43689 * m4/md4.m4 (gl_MD4):
43690 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43691 * m4/read-file.m4 (gl_FUNC_READ_FILE):
43692 * m4/readline.m4 (gl_FUNC_READLINE):
43693 * m4/rijndael.m4 (gl_RIJNDAEL):
43694 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43695 to get the necessary .h files and whatnot.
43697 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43699 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43700 gnulib rather than the other way around.
43701 * config/srclistvars.sh (COREUTILS): Remove.
43703 2006-08-22 Jim Meyering <jim@meyering.net>
43705 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43707 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43709 2006-08-22 Eric Blake <ebb9@byu.net>
43711 * modules/regexprops-generic: New file.
43712 * MODULES.html.sh (Support for building documentation): List it.
43714 2006-08-22 Eric Blake <ebb9@byu.net>
43716 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43717 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43718 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43719 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43721 2006-08-22 Bruno Haible <bruno@clisp.org>
43723 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43724 and lib_LTLIBRARIES like the other lib_* variables.
43726 2006-08-22 Bruno Haible <bruno@clisp.org>
43728 * build-aux/x-to-1.in: New file, from GNU gettext.
43730 2006-08-22 Bruno Haible <bruno@clisp.org>
43732 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43735 2006-08-22 Bruno Haible <bruno@clisp.org>
43737 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43740 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43743 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43745 Problem reported by Bruno Haible.
43747 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43749 Avoid the need for AC_LIBSOURCES in m4 macros.
43750 * modules/acl (EXTRA_DIST): Add acl.h.
43751 * modules/argmatch (Files): Add m4/argmatch.m4.
43752 (configure.ac): Add gl_ARGMATCH.
43753 (EXTRA_DIST): Renamed from lib_SOURCES, for
43754 consistency with the other modules. Remove argmatch.c.
43755 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43756 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43757 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43758 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43759 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43760 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43761 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43762 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43763 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43764 * modules/closeout (EXTRA_DIST): Add closeout.h.
43765 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43766 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43767 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43768 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
43769 dirname.h; remove basename.c and stripslash.c.
43770 * modules/exclude (EXTRA_DIST): Add exclude.h.
43771 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43772 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43773 * modules/file-type (EXTRA_DIST): Add file-type.h.
43774 * modules/filemode (EXTRA_DIST): Add filemode.h.
43775 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43776 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43777 * modules/fpending (EXTRA_DIST): Add __fpending.h.
43778 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43779 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43780 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43781 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43782 * modules/getdate (EXTRA_DIST): Add getdate.c.
43783 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43784 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43785 * modules/getpass (EXTRA_DIST): Add getpass.h.
43786 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43787 * modules/group-member (EXTRA_DIST): Add group-member.h.
43788 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43789 * modules/hash (EXTRA_DIST): Add hash.h.
43790 * modules/human (EXTRA_DIST): Add human.h.
43791 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43792 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43793 * modules/lchown (EXTRA_DIST): Add lchown.h.
43794 * modules/long-options (EXTRA_DIST): Add long-options.h.
43795 * modules/lstat (EXTRA_DIST): Add lstat.h.
43796 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43797 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43798 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43799 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43800 * modules/memxor (EXTRA_DIST): Add memxor.h.
43801 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43802 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43803 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43804 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43805 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43806 * modules/physmem (EXTRA_DIST): Add physmem.h.
43807 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43808 * modules/posixver (EXTRA_DIST): Add posixver.h.
43809 * modules/quote (EXTRA_DIST): Add quote.h.
43810 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43811 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43812 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43813 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43814 regex_internal.h regexec.c.
43815 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43816 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43817 * modules/same (EXTRA_DIST): Add same.h.
43818 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43819 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43820 * modules/savedir (EXTRA_DIST): Add savedir.h.
43821 * modules/sha1 (EXTRA_DIST): Add sha1.h.
43822 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43823 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43824 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43825 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43826 * modules/strdup (EXTRA_DIST): Add strdup.h.
43827 * modules/strftime (EXTRA_DIST): Add strftime.h.
43828 * modules/strndup (EXTRA_DIST): Add strndup.h.
43829 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43830 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43831 * modules/time_r (EXTRA_DIST): Add time_r.h.
43832 * modules/timespec (EXTRA_DIST): Add timespec.h.
43833 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43834 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43835 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43836 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43837 * modules/userspec (EXTRA_DIST): Add userspec.h.
43838 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43839 * modules/utimens (EXTRA_DIST): Add utimens.h.
43840 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43841 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43842 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43843 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43844 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43845 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43846 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43847 * modules/yesno (EXTRA_DIST): Add yesno.h.
43849 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43851 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43853 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43854 * m4/dev-ino.m4, same-inode.m4: Remove.
43856 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43857 * m4/acl.m4 (AC_FUNC_ACL):
43858 * m4/backupfile.m4 (gl_BACKUPFILE):
43859 * m4/c-strtod.m4 (gl_C99_STRTOLD):
43860 * m4/canon-host.m4 (gl_CANON_HOST):
43861 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43862 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43863 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43864 * m4/cloexec.m4 (gl_CLOEXEC):
43865 * m4/close-stream.m4 (gl_CLOSE_STREAM):
43866 * m4/closeout.m4 (gl_CLOSEOUT):
43867 * m4/dirfd.m4 (gl_FUNC_DIRFD):
43868 * m4/dirname.m4 (gl_DIRNAME):
43869 * m4/exclude.m4 (gl_EXCLUDE):
43870 * m4/exitfail.m4 (gl_EXITFAIL):
43871 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43872 * m4/file-type.m4 (gl_FILE_TYPE):
43873 * m4/filemode.m4 (gl_FILEMODE):
43874 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43875 * m4/fpending.m4 (gl_FUNC_FPENDING):
43876 * m4/fprintftime.m4 (gl_FPRINTFTIME):
43877 * m4/fts.m4 (gl_FUNC_FTS):
43878 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43879 * m4/getdate.m4 (gl_GETDATE):
43880 * m4/gethrxtime.m4 (gl_GETHRXTIME):
43881 * m4/getpagesize.m4 (gl_GETPAGESIZE):
43882 * m4/getpass.m4 (gl_FUNC_GETPASS):
43883 * m4/gettime.m4 (gl_GETTIME):
43884 * m4/getugroups.m4 (gl_GETUGROUPS):
43885 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43886 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43887 * m4/hard-locale.m4 (gl_HARD_LOCALE):
43888 * m4/hash.m4 (gl_HASH):
43889 * m4/idcache.m4 (gl_IDCACHE):
43890 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43891 * m4/lchown.m4 (gl_FUNC_LCHOWN):
43892 * m4/long-options.m4 (gl_LONG_OPTIONS):
43893 * m4/lstat.m4 (gl_FUNC_LSTAT):
43894 * m4/md5.m4 (gl_MD5):
43895 * m4/memcasecmp.m4 (gl_MEMCASECMP):
43896 * m4/memcoll.m4 (gl_MEMCOLL):
43897 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43898 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43899 * m4/memxor.m4 (gl_MEMXOR):
43900 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43901 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43902 * m4/modechange.m4 (gl_MODECHANGE):
43903 * m4/mountlist.m4 (gl_MOUNTLIST):
43904 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43905 * m4/openat.m4 (gl_FUNC_OPENAT):
43906 * m4/pathmax.m4 (gl_PATHMAX):
43907 * m4/physmem.m4 (gl_PHYSMEM):
43908 * m4/posixtm.m4 (gl_POSIXTM):
43909 * m4/posixver.m4 (gl_POSIXVER):
43910 * m4/quote.m4 (gl_QUOTE):
43911 * m4/quotearg.m4 (gl_QUOTEARG):
43912 * m4/readtokens.m4 (gl_READTOKENS):
43913 * m4/readutmp.m4 (gl_READUTMP):
43914 * m4/regex.m4 (gl_REGEX):
43915 * m4/safe-read.m4 (gl_SAFE_READ):
43916 * m4/safe-write.m4 (gl_SAFE_WRITE):
43917 * m4/same.m4 (gl_SAME):
43918 * m4/save-cwd.m4 (gl_SAVE_CWD):
43919 * m4/savedir.m4 (gl_SAVEDIR):
43920 * m4/settime.m4 (gl_SETTIME):
43921 * m4/sha1.m4 (gl_SHA1):
43922 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43923 * m4/stat-macros.m4 (gl_STAT_MACROS):
43924 * m4/stat-time.m4 (gl_STAT_TIME):
43925 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43926 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43927 * m4/strdup.m4 (gl_FUNC_STRDUP):
43928 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43929 * m4/strndup.m4 (gl_FUNC_STRNDUP):
43930 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43931 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43932 * m4/time_r.m4 (gl_TIME_R):
43933 * m4/timespec.m4 (gl_TIMESPEC):
43934 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43935 * m4/unlinkdir.m4 (gl_UNLINKDIR):
43936 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43937 * m4/userspec.m4 (gl_USERSPEC):
43938 * m4/utimecmp.m4 (gl_UTIMECMP):
43939 * m4/utimens.m4 (gl_UTIMENS):
43940 * m4/xalloc.m4 (gl_XALLOC):
43941 * m4/xgetcwd.m4 (gl_XGETCWD):
43942 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43943 * m4/xreadlink.m4 (gl_XREADLINK):
43944 * m4/xstrtod.m4 (gl_XSTRTOD):
43945 * m4/yesno.m4 (gl_YESNO):
43946 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43947 to get the necessary .h files and whatnot.
43949 2006-08-21 Mark D. Baushke <mdb@gnu.org>
43950 Bruno Haible <bruno@clisp.org>
43952 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43953 /bin/sh understanding of '!' conditional negation.
43955 2006-08-21 Jim Meyering <jim@meyering.net>
43957 * modules/openat (Depends-on): Really alphabetize.
43959 * modules/acl (Depends-on): Add error and quote.
43961 * check-module (find_included_lib_files): Add at-func.c to the
43962 ok-to-include-more-than-once white list.
43964 * modules/openat (Depends-on): Add lstat. Alphabetize.
43966 2006-08-21 Bruno Haible <bruno@clisp.org>
43968 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43969 Emit a pkgdata_DATA variable only if some snippets add contents to it.
43970 Reported by Martin Lambers <marlam@marlam.de>.
43972 2006-08-21 Bruno Haible <bruno@clisp.org>
43974 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43975 specify an installation location, don't emit a noinst_LIBRARIES or
43976 noinst_LTLIBRARIES assignment.
43978 2006-08-21 Bruno Haible <bruno@clisp.org>
43981 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43982 BeOS has mbrtowc() but no <wctype.h>.
43984 2006-08-21 Bruno Haible <bruno@clisp.org>
43987 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43990 2006-08-21 Bruno Haible <bruno@clisp.org>
43993 * lib/mbchar.h: Include <wctype.h> only if it exists.
43995 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43997 Remove files that are no longer needed by their respective modules.
43998 * m4/obstack.m4: Remove.
43999 * m4/strerror_r.m4: Remove.
44000 * m4/uint32_t.m4: Remove.
44001 * m4/uintptr_t.m4: Remove.
44002 * m4/ullong_max.m4: Remove.
44003 * m4/xstrtoimax.m4: Remove.
44004 * m4/xstrtoumax.m4: Remove.
44006 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44007 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44008 dependencies now capture this.
44010 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44011 Do not use AC_LIBSOURCES, since gnulib modules now do this.
44012 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44013 * m4/human.m4 (gl_HUMAN): Likewise.
44014 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44015 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44017 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44019 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44020 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44022 * m4/human.m4 (gl_HUMAN): Likewise.
44023 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44024 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44025 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44026 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44027 * m4/xstrtol (gl_XSTRTOL): Likewise.
44029 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44030 AC_TYPE_LONG_LONG_INT.
44031 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44032 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44033 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44034 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44036 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44039 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44040 (gl_PREREQ_XSTRTOUL): Remove.
44042 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44044 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44047 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
44049 Add and change modules to make it easier for coreutils to use
44051 * modules/backupfile (Files): Remove m4/d-ino.m4.
44052 (Depends-on): Add d-ino.
44053 * modules/cycle-check (Depends-on): Add stdint.
44054 (lib_SOURCES): Add cycle-check.h.
44055 * modules/d-ino: New module.
44056 * modules/d-type: New module.
44057 * modules/error (Files): Remove m4/strerror_r.m4.
44058 * modules/filemode (Files): Add m4/st_dm_mode.m4.
44059 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44060 m4/inttypes_h.m4, m4/uintmax_t.m4.
44061 (Depends-on): Add stdint.
44062 (lib_SOURCES): Add fsusage.h.
44063 * modules/getcwd (Files): Remove d-ino.m4.
44064 (Depends-on): Add d-ino.
44065 * modules/getndelim2 (Depends-on): Add stdint.
44066 * modules/glob (Files): Remove m4/d-type.m4.
44067 (Depends-on): Add d-type.
44068 * modules/host-os: New module.
44069 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44070 m4/inttypes_h.m4, m4/uintmax_t.m4.
44071 * Depends-on: Add stdint.
44072 (lib_SOURCES): Add human.h.
44073 * modules/inttostr (Files): Remove m4/intmax_t.m4,
44074 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44075 m4/uintmax_t.m4, m4/ulonglong.m4.
44076 (Depends-on): Add stdint.
44077 (EXTRA_DIST): Add inttostr.h.
44078 * modules/lchmod: New module.
44079 * modules/link-follow: New module.
44080 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44081 (Depends-on): Add lchmod.
44082 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44083 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44084 (Depends-on): Add stdint.
44085 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44086 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44087 (Depends-on): Add stdint.
44088 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44089 * modules/perl: New module.
44090 * modules/regex (Depends-on): Add stdint.
44091 * modules/rmdir-errno: New module.
44092 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44094 (Depends-on): Add stdint.
44095 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44097 (Depends-on): Add stdint.
44098 * modules/unlink-busy: New module.
44099 * modules/utimecmp (Depends-on): Add stdint.
44100 * modules/uptime: New module.
44101 * modules/winsz-ioctl: New module.
44102 * modules/winsz-termios: New module.
44103 * modules/xnanosleep (Depends-on): Add nanosleep.
44104 * modules/ullong_max: Remove.
44105 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44106 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44107 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44108 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44109 (Depends-on): Add inttypes.
44110 (lib_SOURCES): Add xstrtol.h.
44111 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44112 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44113 * MODULES.html.sh: Move 'assert' into the assert section.
44114 Move 'dummy' into the linking section.
44116 Add section for compatibility checks for POSIX:2001 functions,
44117 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44118 winsz-ioctl, and winsz-termios into it.
44120 Add top-level Misc section and put host-os, perl, and uptime
44123 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
44125 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44126 now assume the stdint module. Do not include inttypes.h.
44127 * lib/fsusage.h: Likewise.
44128 * lib/getndelim2.c: Likewise.
44129 * lib/human.h: Likewise.
44130 * lib/inttostr.h: Likewise.
44131 * lib/obstack.c: Likewise.
44132 * lib/regex_internal.h: Likewise.
44133 * lib/tempname.c: Likewise.
44134 * lib/utimecmp.c: Likewise.
44135 * lib/xstrtol.h: Likewise.
44137 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44139 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44140 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44141 * lib/xtime.h: Likewise.
44143 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
44145 * modules/openat (Files): Add lib/fchmodat.c.
44146 Fixes problem reported by Jay Youngman.
44148 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
44150 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
44151 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
44153 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
44154 Bruno Haible <bruno@clisp.org>
44156 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44157 and is a script that invokes bison. Tighten the code. Add comments.
44159 2006-08-18 Jim Meyering <jim@meyering.net>
44161 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44162 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44163 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
44164 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44166 2006-08-18 Bruno Haible <bruno@clisp.org>
44168 * modules/bison-i18n: New file.
44169 * MODULES.html.sh (Internationalization functions): Add it.
44171 2006-08-18 Bruno Haible <bruno@clisp.org>
44173 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44174 sys/statvfs.h. When getmntinfo was found, check its declaration and
44175 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44177 2006-08-18 Bruno Haible <bruno@clisp.org>
44179 * m4/bison-i18n.m4: New file, from bison.
44181 2006-08-18 Bruno Haible <bruno@clisp.org>
44183 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44184 (ME_DUMMY): Treat "kernfs" as a dummy.
44185 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44187 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
44189 Update from coreutils.
44191 2006-08-15 Jim Meyering <jim@meyering.net>
44193 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44195 2006-01-17 Jim Meyering <jim@meyering.net>
44197 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44199 2006-01-11 Jim Meyering <jim@meyering.net>
44201 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44202 Check for the lchmod function.
44204 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
44206 Update from coreutils.
44208 * lib/__fpending.h: Add copyright notice.
44209 * lib/fprintftime.h: Likewise.
44210 * lib/savedir.c: Use (C) in copyright notice.
44211 * lib/savedir.h: Likewise.
44213 2006-08-15 Jim Meyering <jim@meyering.net>
44215 * lib/at-func.c: New file, with the logic of all emulated at-functions.
44216 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44217 in support of the EXPECTED_ERRNO macro.
44218 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44219 definitions. Instead, define the appropriate symbols and include
44221 * lib/mkdirat.c (mkdirat): Likewise.
44222 * lib/fchmodat.c (fchmodat): Likewise.
44223 (ENOSYS): Remove definition.
44224 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44225 it. Don't include "unistd--.h" -- it wasn't ever used.
44227 2006-01-17 Jim Meyering <jim@meyering.net>
44229 Rewrite fts.c not to change the current working directory,
44230 by using openat, fstatat, fdopendir, etc..
44232 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44233 (HAVE_OPENAT_SUPPORT): Define.
44234 [_LIBC] (fchdir): Don't undef or define; no longer used.
44235 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44236 Now, this `function' always succeeds, and consumes its file descriptor
44237 parameter -- so callers must not close such FDs. Update callers.
44238 (diropen_fd, opendirat, cwd_advance_fd): New functions.
44239 (diropen): Add parameter, SP. Adjust all callers.
44240 Implement using diropen_fd, rather than open.
44241 (fts_open): Initialize new member, fts_cwd_fd.
44242 Remove fts_rft-setting code.
44243 (fts_close): Close fts_cwd_fd, if necessary.
44244 (__opendir2): Define in terms of opendir or opendirat,
44245 depending on whether the FST_NOCHDIR flag is set.
44246 (fts_build): Since fts_safe_changedir consumes its FD, and since
44247 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44248 and close the dup'd file descriptor upon failure.
44249 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44250 (fts_safe_changedir): Tweak semantics to reflect that this function
44251 now calls cwd_advance_fd and hence consumes its FD argument.
44252 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44253 [struct FTS] (fts_rft): Remove now-unused member.
44254 [struct FTS] (fts_cycle.state): Improve comment.
44256 * lib/openat.c (openat_needs_fchdir): New function.
44257 * lib/openat.h (openat_needs_fchdir): Declare it.
44259 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
44261 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44262 Problem and fix reported by Pádraig Brady in
44263 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44265 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44267 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44269 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44271 * lib/memcoll.c (memcoll): Optimize for the common case where the
44272 arguments are bytewise equal.
44274 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44276 * doc/regexprops-generic.texi: Add a copyright notice.
44278 2006-08-15 Bruno Haible <bruno@clisp.org>
44280 * modules/tmpdir (License): Change to LGPL.
44282 2006-08-15 Bruno Haible <bruno@clisp.org>
44284 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44287 2006-08-14 Simon Josefsson <jas@extundo.com>
44289 * config/srclist.txt: Add gnupload.
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 * tests/test-lock.c: Likewise.
44296 * tests/test-stdint.c: Likewise.
44297 * tests/test-tls.c: Likewise.
44299 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44300 prelude-manager. User shorter URLs for GNU projects, without '?'.
44301 Add copyright notice.
44303 * check-module: Add copyright notice. Output a copyright
44304 notice if "--version" is specified.
44305 * modules/COPYING: New file.
44306 * tests/test-getaddrinfo.c: Add copyright notice.
44307 * tests/test-verify.c: Likewise.
44309 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44311 Change copyright notice from LGPL 2 to GPL 2, since that's the
44312 standard form used in the gnulib repository.
44313 * lib/lock.c: LGPL -> GPL.
44314 * lib/lock.h: Likewise.
44315 * lib/strnlen1.c: Likewise.
44316 * lib/strnlen1.h: Likewise.
44317 * lib/tls.c: Likewise.
44318 * lib/tls.h: Likewise.
44319 * lib/tmpdir.c: Likewise.
44321 * lib/TODO: Remove; this belongs only in coreutils.
44323 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44325 Add copyright notices to long-enough files that lack them, since
44326 otherwise the files aren't clearly free. Use the same notice that
44327 getdate.texi already uses.
44328 * doc/alloca-opt.texi: Add copyright notice.
44329 * doc/alloca.texi: Likewise.
44330 * doc/ctime.texi: Likewise.
44331 * doc/functions.texi: Likewise.
44332 * doc/gcd.texi: Likewise.
44333 * doc/gnulib-tool.texi: Likewise.
44334 * doc/inet_ntoa.texi: Likewise.
44335 * doc/visibility.texi: Likewise.
44337 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44338 * doc/quote.texi: Add copyright notice.
44340 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44341 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
44342 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
44343 Mention SunOS 5.11. Mention that everything before SunOS 5.7
44344 is now obsolete, and give a pointer to the Sun list.
44345 Add copyright notice.
44347 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44349 * config/srclistvars.sh: Add copyright notice.
44351 2006-08-14 Eric Blake <ebb9@byu.net>
44353 Import the following change from libc:
44355 2006-08-12 Ulrich Drepper <drepper@redhat.com>
44358 * lib/misc/error.c: Add space between program name and message if file
44361 2006-08-12 Karl Berry <karl@gnu.org>
44363 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44364 remove, these originate in gnulib now.
44366 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44368 * doc/Makefile (standards.info standards.html standards.dvi):
44369 Also depend on make-stds.texi.
44371 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
44373 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44374 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
44376 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44377 in wchar_t. Problem reported by Eric Blake.
44379 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44380 LEN is smaller than SIZE. Suggested by Bruno Haible.
44381 Also, help the compiler to keep LEN in a register.
44383 2006-08-11 Eric Blake <ebb9@byu.net>
44385 * users.txt: Sort. Add tar.
44387 2006-08-11 Bruno Haible <bruno@clisp.org>
44389 * users.txt: New file.
44391 2006-08-11 Bruno Haible <bruno@clisp.org>
44393 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44394 before <wchar.h>. Needed for OSF/1 and BSD/OS.
44396 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
44398 * modules/snprintf (Depends-on): Remove minmax.
44399 (Maintainer): Add self and Bruno.
44401 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
44403 * lib/.cppi-disable: Add snprintf.h, socket_.h.
44404 * lib/snprintf.c: Include <errno.h> and <limits.h>.
44405 (EOVERFLOW): Define if the system does not.
44406 Do not include "minmax.h"; it wasn't used.
44407 (snprintf): Don't assume size_t promotes to an unsigned type.
44408 Fix bug when generated string was too long for the buffer: the
44409 buffer's contents are supposed to be the initial prefix of the
44410 output. Don't assume vasnprintf returns EOVERFLOW if the size
44411 exceeds INT_MAX; do the check ourselves.
44413 Import the following changes from libc:
44415 2006-06-02 Jakub Jelinek <jakub@redhat.com>
44417 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44418 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
44419 set wc to the byte which couldn't be converted.
44420 (re_string_reconstruct): Don't clear valid_raw_len before calling
44421 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
44422 tip_context using re_string_context_at.
44424 2006-05-02 Ulrich Drepper <drepper@redhat.com>
44426 * lib/posix/regex.h: g++ still cannot handled [restrict].
44428 2006-04-21 Ulrich Drepper <drepper@redhat.com>
44430 * lib/posix/regex.h: Remove special handling for VMS.
44432 2006-08-10 Jim Meyering <jim@meyering.net>
44434 * modules/same-inode: New module.
44435 * modules/dev-ino: New module.
44436 * modules/cycle-check: Depend on these modules, rather than simply
44437 including their .h files.
44438 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44439 required via m4/cycle-check.m4.
44440 * modules/same: Depend on new same-inode module, rather than
44441 including same-inode.h.
44442 * modules/chdir-safer: New file.
44444 * modules/chown (Depends-on): Add stat-macros.
44446 2006-08-10 Jim Meyering <jim@meyering.net>
44448 * m4/cycle-check.m4: New file.
44449 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44450 * m4/dev-ino.m4, m4/same-inode.m4: New files.
44452 2006-08-10 Eric Blake <ebb9@byu.net>
44454 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44455 in from original proposal.
44457 2006-08-10 Eric Blake <ebb9@byu.net>
44458 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44460 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44463 2006-08-10 Bruno Haible <bruno@clisp.org>
44465 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44468 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44470 Sync from coreutils.
44472 2006-07-19 Mike Frysinger <vapier@gentoo.org>
44474 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44475 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44477 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44479 * modules/restrict: Remove; no longer needed now that we assume
44480 Autoconf 2.59 or later.
44481 * MODULES.html.sh: Remove 'restrict'.
44482 * modules/argp (Depends-on): Remove 'restrict'.
44483 * modules/base64 (Depends-on): Likewise.
44484 * modules/gc (Depends-on): Likewise.
44485 * modules/getaddrinfo (Depends-on): Likewise.
44486 * modules/glob (Depends-on): Likewise.
44487 * modules/inet_ntop (Depends-on): Likewise.
44488 * modules/inet_pton (Depends-on): Likewise.
44489 * modules/memxor (Depends-on): Likewise.
44490 * modules/regex (Depends-on): Likewise.
44491 * modules/strtok_r (Depends-on): Likewise.
44492 * modules/time_r (Depends-on): Likewise.
44494 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44496 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44497 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44498 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44499 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44500 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44501 * m4/memxor.m4 (gl_MEMXOR): Likewise.
44502 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
44503 gl_C_RESTRICT replaced by AC_C_RESTRICT.
44505 Merge from coreutils.
44506 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44507 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44508 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44509 * m4/time_r.m4 (gl_TIME_R): Likewise.
44511 2006-08-09 Karl Berry <karl@gnu.org>
44513 * config/srclist.txt: no more gettext-tools, per Bruno.
44515 2006-08-08 Eric Blake <ebb9@byu.net>
44517 * modules/verror: New module.
44518 * MODULES.html.sh: Document it.
44520 2006-08-08 Eric Blake <ebb9@byu.net>
44522 * lib/verror.h, lib/verror.c: New files.
44524 2006-08-08 Eric Blake <ebb9@byu.net>
44526 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44527 verror_at_line output complies with GNU Coding Standards even when
44530 2006-08-07 Bruno Haible <bruno@clisp.org>
44532 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44534 Reported by Ralf Wildenhues.
44536 2006-08-07 Bruno Haible <bruno@clisp.org>
44538 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44539 in an AC_DEFUN. Needed so that the autoconf snippets can use
44542 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44544 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44545 Initialize pkgdata_DATA.
44546 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44549 2006-08-06 Eric Blake <ebb9@byu.net>
44551 * lib/error.h: Fold in some upstream changes from glibc.
44552 * lib/error.c: Likewise.
44554 2006-08-04 Bruno Haible <bruno@clisp.org>
44556 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44557 Make the mostlyclean-local rule depend on mostlyclean-generic.
44558 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44560 2006-07-31 Bruno Haible <bruno@clisp.org>
44562 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44563 <stdlib.h>, <string.h>.
44565 2006-07-30 Bruno Haible <bruno@clisp.org>
44567 * modules/readlink (License): Change to LGPL.
44569 2006-07-30 Bruno Haible <bruno@clisp.org>
44571 * modules/javaversion (Makefile.am): Distribute javaversion.java and
44572 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44573 set PKGDATADIR to point to it.
44575 2006-07-30 Bruno Haible <bruno@clisp.org>
44577 * modules/csharpexec (configure.ac): Comment out macro invocation.
44578 * modules/javaexec (configure.ac): Likewise.
44579 * modules/javacomp-script (configure.ac): Likewise.
44581 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44583 2006-07-30 Bruno Haible <bruno@clisp.org>
44585 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44588 2006-07-30 Bruno Haible <bruno@clisp.org>
44590 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44592 2006-07-30 Bruno Haible <bruno@clisp.org>
44594 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44595 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44598 2006-07-29 Bruno Haible <bruno@clisp.org>
44600 Make it possible for gnulib-tool to work with locally modified or
44601 augmented gnulib repositories.
44602 * gnulib-tool (func_usage): Document --local-dir option.
44603 (local_gnulib_dir): New variable.
44604 Handle --local-dir option.
44605 (func_lookup_file): New function.
44606 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44607 (func_get_description, func_get_filelist, func_get_description,
44608 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44609 func_get_automake_snippet, func_get_include_directive,
44610 func_get_license, func_get_maintainer): Use func_lookup_file.
44611 (func_import, func_create_testdir): Use func_lookup_file.
44613 2006-07-29 Bruno Haible <bruno@clisp.org>
44615 * modules/setenv (Depends-on): Add unistd.
44617 2006-07-29 Bruno Haible <bruno@clisp.org>
44619 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44621 2006-07-29 Bruno Haible <bruno@clisp.org>
44623 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44625 2006-07-29 Bruno Haible <bruno@clisp.org>
44627 * gnulib-tool (import, update): If there is no Makefile.am, look at
44628 aclocal.m4, instead of bailing out.
44630 2006-07-29 Bruno Haible <bruno@clisp.org>
44632 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44633 Categorize the options by when they are useful.
44635 2006-07-29 Bruno Haible <bruno@clisp.org>
44637 * gnulib-tool (func_usage): Document option --no-libtool.
44638 Handle option --no-libtool.
44639 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44640 for changed semantics of $libtool variable.
44641 (func_import): Likewise. If libtool is not used, show this through
44642 an option --no-libtool.
44643 (func_create_testdir): Update.
44645 2006-07-29 Bruno Haible <bruno@clisp.org>
44647 * gnulib-tool (func_import): Extend error message about missing
44650 2006-07-29 Bruno Haible <bruno@clisp.org>
44652 * gnulib-tool (func_import): Don't create the $docbase directory if
44653 there is no file to store there.
44655 2006-07-29 Bruno Haible <bruno@clisp.org>
44657 * gnulib-tool (autoconf_minversion): If a --dir option is given and
44658 relevant, look for configure.ac there, not in the current directory.
44659 Also use a simple search for AC_PREREQ, not "autoconf --trace".
44661 2006-07-29 Bruno Haible <bruno@clisp.org>
44663 * gnulib-tool (SORT): New variable.
44664 (func_usage): Undocument --assume-autoconf option.
44665 Remove --assume-autoconf option handling.
44666 (autoconf_minversion): Determine from the contents of configure.ac.
44667 (func_import): Remove autoconf_minversion handling.
44668 Suggested by Eric Blake.
44670 2006-07-29 Bruno Haible <bruno@clisp.org>
44672 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44674 2006-07-29 Bruno Haible <bruno@clisp.org>
44676 * config/srclist.txt (*setenv.[ch]): Remove rules.
44678 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44680 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44682 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44684 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44687 2006-07-28 Simon Josefsson <jas@extundo.com>
44689 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44690 * modules/inet_pton (Depends-on): Likewise.
44692 2006-07-28 Simon Josefsson <jas@extundo.com>
44694 * m4/netinet_in_h.m4: New file.
44696 2006-07-28 Simon Josefsson <jas@extundo.com>
44698 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44701 2006-07-28 Simon Josefsson <jas@extundo.com>
44703 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44706 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
44708 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44709 setgid on directories only if they set these bits.
44710 * lib/modechange.h: Remove obsolete comment about masks.
44712 2006-07-28 Eric Blake <ebb9@byu.net>
44714 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44717 2006-07-28 Bruno Haible <bruno@clisp.org>
44719 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44721 2006-07-28 Bruno Haible <bruno@clisp.org>
44723 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44725 2006-07-28 Bruno Haible <bruno@clisp.org>
44727 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44728 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44730 Avoids link error on FreeBSD 4.x.
44731 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44733 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44735 * lib/mbswidth.c (iswcntrl): Likewise.
44737 2006-07-27 Bruno Haible <bruno@clisp.org>
44739 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44742 2006-07-27 Bruno Haible <bruno@clisp.org>
44744 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44745 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44748 2006-07-26 Eric Blake <ebb9@byu.net>
44750 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44752 2006-07-26 Eric Blake <ebb9@byu.net>
44754 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44755 like mingw that lack mkstemp.
44756 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44757 avoid compilation warning on mingw.
44759 2006-07-26 Bruno Haible <bruno@clisp.org>
44761 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44762 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44763 INT_FAST*_MIN, INTPTR_MIN.
44765 2006-07-25 Bruno Haible <bruno@clisp.org>
44767 * modules/version-etc (Depends-on): Add stdarg.
44769 2006-07-25 Bruno Haible <bruno@clisp.org>
44771 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44774 2006-07-25 Bruno Haible <bruno@clisp.org>
44776 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44777 defined in <stdarg.h> or config.h.
44779 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44781 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44782 (gl_STDIO_SAFER): Remove.
44784 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44786 * MODULES.html.sh (File stream based Input/Output):
44787 Add fopen-safer, tmpfile-safer; remove stdio-safer.
44788 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44789 * modules/fopen-safer, modules/tmpfile-safer: New files.
44790 * modules/stdio-safer: Remove.
44792 2006-07-24 Bruno Haible <bruno@clisp.org>
44794 * modules/tmpdir: New file.
44795 * MODULES.html.sh (File system functions): Add it.
44797 2006-07-24 Bruno Haible <bruno@clisp.org>
44799 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44800 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44802 2006-07-24 Bruno Haible <bruno@clisp.org>
44804 * modules/clean-temp: New file.
44806 2006-07-24 Bruno Haible <bruno@clisp.org>
44808 * m4/tmpdir.m4: New file, from GNU gettext.
44810 2006-07-24 Bruno Haible <bruno@clisp.org>
44812 * lib/tmpdir.h: New file, from GNU gettext.
44813 * lib/tmpdir.c: New file, from GNU gettext.
44815 2006-07-24 Bruno Haible <bruno@clisp.org>
44817 * lib/clean-temp.h: New file, from GNU gettext.
44818 * lib/clean-temp.c: New file, from GNU gettext.
44820 2006-07-23 Eric Blake <ebb9@byu.net>
44822 * modules/stdio-safer (Files): Add tmpfile-safer.c.
44823 (Depends-on): Add binary-io.
44825 2006-07-23 Eric Blake <ebb9@byu.net>
44827 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44829 2006-07-23 Eric Blake <ebb9@byu.net>
44831 * lib/tmpfile-safer.c: New file.
44832 * lib/stdio-safer.h (fopen_safer): Add prototype.
44833 * lib/stdio--.h (tmpfile): Make safer.
44835 2006-07-23 Bruno Haible <bruno@clisp.org>
44837 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44838 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44839 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44840 gl_linked_remove_at): Use it.
44842 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44843 and Simon Josefsson <jas@extundo.com>
44845 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44847 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44849 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44851 * modules/close-stream: New file.
44852 * modules/closeout (Description): Make it clear that it exits
44853 with a diagnostic on error.
44854 (Depends-on): Add close-stream. Remove fpending, stdbool.
44855 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44857 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44859 * m4/close-stream.m4: New file.
44861 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44863 * lib/close-stream.c, lib/close-stream.h: New files.
44865 2006-07-22 Bruno Haible <bruno@clisp.org>
44867 Merge from GNU gettext 0.15.
44869 2006-05-01 Bruno Haible <bruno@clisp.org>
44871 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44873 2006-07-22 Bruno Haible <bruno@clisp.org>
44875 * modules/javaversion: New file.
44876 * MODULES.html.sh (Java): Add javaversion.
44878 2006-03-12 Bruno Haible <bruno@clisp.org>
44880 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44882 2005-12-04 Bruno Haible <bruno@clisp.org>
44884 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44887 2006-06-21 Bruno Haible <bruno@clisp.org>
44889 Avoid warnings from recent versions of mcs.
44890 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44891 -o, -L, -r any more. Use options documented since mcs-1.0
44892 instead. Similarly for -g.
44894 2005-12-04 Bruno Haible <bruno@clisp.org>
44896 * build-aux/csharpcomp.sh.in: Suffix for resources is
44897 .resources, not .resource.
44899 2005-07-09 Bruno Haible <bruno@clisp.org>
44901 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44903 Reported by Mark Junker <mjscod@gmx.de>.
44905 2006-07-22 Bruno Haible <bruno@clisp.org>
44907 * modules/gettext: Upgrade to gettext-0.15.
44908 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44910 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44912 2006-07-22 Bruno Haible <bruno@clisp.org>
44914 Merge from GNU gettext 0.15.
44916 2006-03-25 Bruno Haible <bruno@clisp.org>
44918 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44920 2006-07-21 Bruno Haible <bruno@clisp.org>
44922 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44925 2006-05-09 Bruno Haible <bruno@clisp.org>
44927 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44928 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44929 for the conftestver execution.
44931 2006-05-01 Bruno Haible <bruno@clisp.org>
44933 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44934 optional target-version argument. Verify that the compiler
44935 groks source of the specified source-version, or add -source
44936 option as necessary. Verify that the compiler produces
44937 bytecode in the specified target-version, or add -target and
44938 -source options as necessary. Make the result of the test
44939 available as variable CONF_JAVAC. Also log error output in
44942 2006-03-11 Bruno Haible <bruno@clisp.org>
44944 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44946 2006-05-09 Bruno Haible <bruno@clisp.org>
44948 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44949 CLASSPATH_SEPARATOR to a semicolon.
44951 2006-03-12 Bruno Haible <bruno@clisp.org>
44953 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44954 available as variable CONF_JAVA, for subsequent autoconf
44955 tests. Also log error output in config.log.
44957 2006-07-19 Bruno Haible <bruno@clisp.org>
44959 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44960 that getline works on glibc2 systems. Needed to avoid trouble
44962 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44964 2005-12-04 Bruno Haible <bruno@clisp.org>
44966 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44967 launcher (untested).
44969 2005-12-04 Bruno Haible <bruno@clisp.org>
44971 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44973 2006-07-22 Bruno Haible <bruno@clisp.org>
44975 * gettext.m4: Update from GNU gettext-0.15.
44976 * nls.m4: Likewise.
44978 * inttypes-pri.m4: Likewise.
44979 * inttypes-h.m4: Renamed from inttypes.m4.
44980 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44982 2006-07-22 Bruno Haible <bruno@clisp.org>
44984 Merge from GNU gettext 0.15.
44986 2005-07-05 Bruno Haible <bruno@clisp.org>
44988 * printf-args.c (printf_fetchargs): Work around broken
44989 definition of wint_t on mingw.
44991 2005-02-12 Bruno Haible <bruno@clisp.org>
44993 * xallocsa.h: Add extern "C" for C++.
44995 2006-05-17 Bruno Haible <bruno@clisp.org>
44997 Cygwin portability.
44998 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45000 2006-04-30 Bruno Haible <bruno@clisp.org>
45002 * progreloc.c: Include <mach-o/dyld.h> if available.
45003 (find_executable): Use _NSGetExecutablePath when possible.
45005 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
45007 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45010 2005-12-29 Bruno Haible <bruno@clisp.org>
45012 * progreloc.c (set_program_name_and_installdir): Fix
45015 2005-12-04 Bruno Haible <bruno@clisp.org>
45017 Cygwin portability.
45018 * progreloc.c: Include <windows.h> also on Cygwin.
45019 (find_executable): Add support for Cygwin.
45020 (set_program_name_and_installdir): Handle also platforms with
45023 2006-07-11 Bruno Haible <bruno@clisp.org>
45025 * javacomp.c: Fix a comment.
45026 Reported by Jim Meyering.
45028 2006-04-30 Bruno Haible <bruno@clisp.org>
45030 * javacomp.h (compile_java_class): Add source_version,
45031 target_version arguments.
45032 * javacomp.c: Rewritten to choose only a compiler that
45033 respects the specified source_version and target_version.
45035 2006-06-27 Bruno Haible <bruno@clisp.org>
45037 Assume correct S_ISDIR macro.
45038 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45040 2006-07-22 Bruno Haible <bruno@clisp.org>
45042 * javaversion.h: New file, from GNU gettext.
45043 * javaversion.c: New file, from GNU gettext.
45044 * javaversion.java: New file, from GNU gettext.
45045 * javaversion.class: New file, from GNU gettext.
45047 2006-05-17 Bruno Haible <bruno@clisp.org>
45049 Cygwin portability.
45050 * javaexec.c (execute_java_class): Test for jview program
45053 2006-04-09 Bruno Haible <bruno@clisp.org>
45055 * fatal-signal.c: Don't include string.h.
45056 (at_fatal_signal): Use a copying loop instead of memcpy.
45058 2005-12-04 Bruno Haible <bruno@clisp.org>
45060 * csharpexec.c: Add support for 'clix' launcher (untested).
45061 (execute_csharp_using_sscli): New function.
45062 (execute_csharp_program): Call it.
45064 2006-06-21 Bruno Haible <bruno@clisp.org>
45066 Avoid warnings from recent versions of mcs.
45067 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45068 -o, -L, -r any more. Use options documented since mcs-1.0
45069 instead. Similarly for -g.
45071 2005-07-09 Bruno Haible <bruno@clisp.org>
45073 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45075 Reported by Mark Junker <mjscod@gmx.de>.
45077 2006-06-17 Bruno Haible <bruno@clisp.org>
45079 * config.charset: Update for NetBSD 3.0.
45081 2006-05-17 Bruno Haible <bruno@clisp.org>
45083 Cygwin portability.
45084 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45086 2006-05-16 Bruno Haible <bruno@clisp.org>
45088 * localcharset.c [CYGWIN]: Include <windows.h>.
45089 (get_charset_aliases): For Cygwin, return the same CPxxx
45090 aliases list as under WIN32.
45091 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45092 the environment variables. Fall back to GetACP().
45094 2006-04-05 Bruno Haible <bruno@clisp.org>
45096 * config.charset: Update Juan Manuel Guerrero's address.
45098 2005-02-12 Bruno Haible <bruno@clisp.org>
45100 * allocsa.h: Add extern "C" for C++.
45102 2005-02-10 Bruno Haible <bruno@clisp.org>
45104 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45105 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45107 2006-07-22 Bruno Haible <bruno@clisp.org>
45109 * gettext.h: Update to GNU gettext-0.15.
45111 2006-07-22 Bruno Haible <bruno@clisp.org>
45113 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45114 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45115 lib-prefix.m4, longdouble.m4, ssize_t.m4.
45117 2006-07-21 Eric Blake <ebb9@byu.net>
45119 * modules/stdlib-safer: New file.
45120 * MODULES.html.sh (File stream based Input/Output): Add
45123 2006-07-21 Eric Blake <ebb9@byu.net>
45125 * lib/stdlib-safer.h: New file from coreutils, required by
45128 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
45130 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45132 2006-07-20 Bruno Haible <bruno@clisp.org>
45134 * gnulib-tool: Recognize new option --assume-autoconf.
45135 (autoconf_minversion): New variable.
45136 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45138 2006-07-20 Bruno Haible <bruno@clisp.org>
45140 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45142 2006-07-19 Derek R. Price <derek@ximbiot.com>
45144 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45145 Reindent and repaginate.
45147 2006-07-19 Derek Price <derek@ximbiot.com>
45149 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
45152 2006-07-17 Bruno Haible <bruno@clisp.org>
45154 * modules/list: New file.
45155 * modules/array-list: New file.
45156 * modules/carray-list, modules/carray-list-tests: New files.
45157 * modules/linked-list, modules/linked-list-tests: New files.
45158 * modules/avltree-list, modules/avltree-list-tests: New files.
45159 * modules/rbtree-list, modules/rbtree-list-tests: New files.
45160 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45161 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45162 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45163 * modules/oset: New file.
45164 * modules/array-oset: New file.
45165 * modules/avltree-oset, modules/avltree-oset-tests: New files.
45166 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45167 * tests/test-carray_list.c: New file.
45168 * tests/test-linked_list.c: New file.
45169 * tests/test-avltree_list.c: New file.
45170 * tests/test-rbtree_list.c: New file.
45171 * tests/test-linkedhash_list.c: New file.
45172 * tests/test-avltreehash_list.c: New file.
45173 * tests/test-rbtreehash_list.c: New file.
45174 * tests/test-avltree_oset.c: New file.
45175 * tests/test-rbtree_oset.c: New file.
45176 * MODULES.html.sh (Container data structures): New section.
45178 2006-07-17 Bruno Haible <bruno@clisp.org>
45180 * m4/gl_list.m4: New file.
45182 2006-07-17 Bruno Haible <bruno@clisp.org>
45184 * lib/gl_list.h: New file.
45185 * lib/gl_list.c: New file.
45186 * lib/gl_array_list.h: New file.
45187 * lib/gl_array_list.c: New file.
45188 * lib/gl_carray_list.h: New file.
45189 * lib/gl_carray_list.c: New file.
45190 * lib/gl_linked_list.h: New file.
45191 * lib/gl_linked_list.c: New file.
45192 * lib/gl_anylinked_list1.h: New file.
45193 * lib/gl_anylinked_list2.h: New file.
45194 * lib/gl_avltree_list.h: New file.
45195 * lib/gl_avltree_list.c: New file.
45196 * lib/gl_anyavltree_list1.h: New file.
45197 * lib/gl_anyavltree_list2.h: New file.
45198 * lib/gl_rbtree_list.h: New file.
45199 * lib/gl_rbtree_list.c: New file.
45200 * lib/gl_anyrbtree_list1.h: New file.
45201 * lib/gl_anyrbtree_list2.h: New file.
45202 * lib/gl_anytree_list1.h: New file.
45203 * lib/gl_anytree_list2.h: New file.
45204 * lib/gl_linkedhash_list.h: New file.
45205 * lib/gl_linkedhash_list.c: New file.
45206 * lib/gl_anyhash_list1.h: New file.
45207 * lib/gl_anyhash_list2.h: New file.
45208 * lib/gl_avltreehash_list.h: New file.
45209 * lib/gl_avltreehash_list.c: New file.
45210 * lib/gl_rbtreehash_list.h: New file.
45211 * lib/gl_rbtreehash_list.c: New file.
45212 * lib/gl_anytreehash_list1.h: New file.
45213 * lib/gl_anytreehash_list2.h: New file.
45215 * lib/gl_oset.h: New file.
45216 * lib/gl_oset.c: New file.
45217 * lib/gl_array_oset.h: New file.
45218 * lib/gl_array_oset.c: New file.
45219 * lib/gl_avltree_oset.h: New file.
45220 * lib/gl_avltree_oset.c: New file.
45221 * lib/gl_rbtree_oset.h: New file.
45222 * lib/gl_rbtree_oset.c: New file.
45223 * lib/gl_anytree_oset.h: New file.
45225 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45227 * m4/mkancesdirs.m4: New file.
45228 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45229 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45230 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45233 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45235 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45236 * lib/mkancesdirs.h: New files.
45237 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45238 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45239 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
45240 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45241 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
45242 callers changed. Revamp internals significantly, by not
45243 attempting to create directories that are temporarily more
45244 permissive than the final results. Do not attempt to use
45245 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45246 This removes some race conditions, fixes some bugs, and simplifies
45247 things. Use new dirchownmod function to do owner and mode changes.
45248 * lib/mkdir-p.h: Likewise.
45249 * lib/modechange.c (octal_to_mode): New function.
45250 (struct mode_change): New member mentioned.
45251 (make_node_op_equals): New arg mentioned. All callers changed.
45252 (mode_compile): Keep track of which mode bits the user has explicitly
45254 (mode_adjust): New arg DIR, so that we implement the X op correctly.
45255 New arg PMODE_BITS, to keep track of which mode bits the user
45256 mentioned; it treats S_ISUID and S_ISGID speciall.
45257 All callers changed.
45258 * lib/modechange.h: Likewise.
45260 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45262 * MODULES.html.sh: Add mkancestors.
45263 * modules/mkancesdirs: New module.
45264 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45265 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45266 The chdir-safer and afs files are now orphans; I'll remove them
45267 unless someone speaks up.
45268 Add lib/dirchownmod.c, lib/dirchownmod.h.
45269 (Depends-on): Remove alloca, chown, save-cwd, dirname.
45270 Add lchown, mkancesdirs.
45271 (Maintainer): Add self.
45273 2006-07-15 Karl Berry <karl@gnu.org>
45275 * gnulib-tool: help message wording/arrangement.
45277 2006-07-14 Simon Josefsson <jas@extundo.com>
45279 * doc/gnulib.texi (Libtool and Windows): New section.
45281 2006-07-12 Simon Josefsson <jas@extundo.com>
45283 * modules/gendocs (License): Fix license, approved by Karl.
45285 2006-07-12 Eric Blake <ebb9@byu.net>
45287 * MODULES.html.sh: Add gendocs.
45289 2006-07-11 Eric Blake <ebb9@byu.net>
45291 * modules/fdl: New module, to install doc/fdl.texi.
45292 * MODULES.html.sh: Add new section for documentation modules.
45293 * gnulib-tool: Avoid space-tab.
45294 (--doc-base): New option, to manage files from doc.
45296 2006-07-11 Eric Blake <ebb9@byu.net>
45298 * m4/absolute-header.m4: Fix comments to match recent change.
45300 2006-07-11 Eric Blake <ebb9@byu.net>
45302 * gnulib-tool: List --doc-base before --tests-base.
45304 2006-07-11 Derek R. Price <derek@ximbiot.com>
45306 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45308 2006-07-11 Bruno Haible <bruno@clisp.org>
45310 * README: Mention where to put documentation.
45312 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45314 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45316 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
45318 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45321 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
45323 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45324 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
45325 "no/such/file/stdint.h" when there is no such file, so that
45326 the resulting C code can be parsed by dodgy compilers.
45327 Problems reported by Bob Proulx.
45329 2006-07-10 Derek R. Price <derek@ximbiot.com>
45331 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45332 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
45333 macros into the GNU _D_EXACT_NAMLEN.
45334 * lib/savedir.c: Likewise.
45335 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45337 2006-07-10 Derek R. Price <derek@ximbiot.com>
45338 and Paul Eggert <eggert@cs.ucla.edu>
45340 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45342 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
45343 macros into the GNU _D_EXACT_NAMLEN.
45345 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45347 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45348 around the absolute name, to work around a problem with the HP-UX
45349 11.23 native C compiler, reported by Bob Proulx.
45351 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45353 * doc/maintain.texi, make-stds.texi: Sync from
45354 <http://savannah.gnu.org/projects/gnustandards>.
45356 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45358 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45360 2006-07-09 Jim Meyering <jim@meyering.net>
45362 * m4/glob.m4: Remove a doubled word in a comment.
45364 2006-07-09 Jim Meyering <jim@meyering.net>
45366 * lib/argp-pv.c: Remove a doubled word in a comment.
45367 * lib/check-version.c (check_version): Likewise.
45368 * lib/javacomp.c (compile_java_class): Likewise.
45370 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
45372 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45373 for the benefit of people using Autoconf 2.60. If you want to
45374 support older Autoconf versions you can copy m4/onceonly_2_57.m4
45375 (or m4/onceonly.m4, if pre-2.57) manually.
45377 2006-07-08 Jim Meyering <jim@meyering.net>
45379 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45381 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45382 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45385 2006-07-08 Jim Meyering <jim@meyering.net>
45387 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45389 2006-07-07 Simon Josefsson <jas@extundo.com>
45391 * tests/test-crc.c: Change expected crc value, the test vector
45392 were probably computed using the old broken crc.c?
45394 2006-07-06 Simon Josefsson <jas@extundo.com>
45396 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45397 now the canonical place for the M4 file).
45399 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45400 from the sys_socket dependency now.
45402 * modules/inet_pton (Files): Ditto.
45404 * modules/inet_ntop (Files): Ditto.
45406 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45408 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45409 not gl_PREREQ_GETUSERSHELL.
45411 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45413 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45414 with only one argument, for Autoconf 2.60.
45415 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45416 expand to nothing, so add a shell command to avoid syntax error.
45417 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45419 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45421 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45423 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45425 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45426 no longer needed. Check for isblank decl.
45427 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45428 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45431 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45433 * lib/getloadavg.c: Use __VMS, not VMS.
45434 * lib/getopt.c: Likewise.
45435 * lib/getpagesize.h: Likewise.
45436 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45437 and probably does not work.
45439 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45441 * lib/.cppi-disable: Add wcwidth.
45442 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
45443 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45444 (ISGRAPH): Remove. All uses changed to isgraph.
45445 (FOLD) [!defined _LIBC]: Remove special case.
45446 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45447 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45449 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45452 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45454 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45455 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45456 brackets. Other minor changes to suppress some compiler
45459 2006-07-06 Derek R. Price <derek@ximbiot.com>
45460 and Paul Eggert <eggert@cs.ucla.edu>
45462 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45463 of invoking obsolescent AC_HEADER_DIRENT macro.
45464 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45465 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45466 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45467 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45468 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45469 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45470 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45471 * m4/readdir.m4: Remove; no longer needed.
45473 2006-07-06 Derek R. Price <derek@ximbiot.com>
45474 and Paul Eggert <eggert@cs.ucla.edu>
45476 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45477 Don't worry about this obsolete case any more.
45478 (HAVE_DIR): Remove. All uses removed; we now assume you can read
45480 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45481 worry about this obsolete case any more.
45482 * lib/fts.c: Likewise.
45483 * lib/getcwd.c: Likewise.
45484 * lib/glob.h: Likewise.
45485 * lib/savedir.c: Likewise.
45487 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45489 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45490 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45491 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45494 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45495 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45496 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45498 * m4/getdate.m4 (gl_GETDATE): Likewise.
45499 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45500 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45501 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45502 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45503 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45504 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45505 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45508 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45510 * lib/memcasecmp.c: Include <limits.h>.
45511 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45512 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45513 Don't assume isdigit succeeds only on '0' through '9'.
45515 2006-07-05 Eric Blake <ebb9@byu.net>
45517 * modules/getaddrinfo (Depends-on): Add snprintf.
45519 2006-07-05 Eric Blake <ebb9@byu.net>
45521 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45522 to avoid 'header present but could not be compiled' on cygwin.
45524 2006-07-05 Eric Blake <ebb9@byu.net>
45526 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45527 missing from netdb.h.
45528 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45530 2006-07-05 Derek R. Price <derek@ximbiot.com>
45532 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45534 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45535 * m4/getdate.m4 (gl_GETDATE): Likewise.
45536 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45537 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45538 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45539 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45540 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45542 2006-07-05 Derek R. Price <derek@ximbiot.com>
45544 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45545 All uses of is_space replaced by isspace.
45546 * lib/exit.h: Don't talk about STDC_HEADERS.
45547 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
45548 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45549 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
45550 replaced by isprint etc.
45551 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45552 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45553 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45554 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45555 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45556 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45558 2006-07-05 Bruno Haible <bruno@clisp.org>
45560 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45561 the function exists, before testing against AIX.
45562 Reported by Martin Lambers <marlam@marlam.de>.
45564 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45566 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45567 From Mark D. Baushke.
45569 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45571 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45572 to the absolute name, not just one, to bypass Sun C 5.8's
45573 "warning: #include of /usr/include/... may be non-portable".
45575 2006-07-04 Eric Blake <ebb9@byu.net>
45577 * modules/dirname-tests: New test module.
45578 * tests/test-dirname.c: New file, replacing dirname.c
45579 TEST_DIRNAME section that was recently deleted.
45581 2006-07-04 Bruno Haible <bruno@clisp.org>
45583 Assume ANSI C header files and <ctype.h> functions.
45584 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45585 (mbsnwidth): Use isprint, iscntrl instead.
45587 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45589 Merge from coreutils.
45590 * MODULES.html.sh: Add xstrtold.
45591 * modules/xstrtold: New file.
45592 * modules/cycle-check (Files): Add lib/same-inode.h.
45593 * modules/dirname (Files): Add m4/double-slash-root.m4.
45594 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45595 * modules/mkdir-p (Files): Add lib/same-inode.h.
45596 * modules/same (Files): Add lib/same-inode.h.
45598 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45600 * m4/absolute-header.m4: Renamed from full-header-path.m4.
45601 This is to keep the terminology clean; POSIX talks about
45602 "absolute pathnames", not "full pathnames", but the GNU
45603 Coding Standards say to use "path" for something else;
45604 so use "absolute" to keep both sides happy.
45605 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45606 Set gl_absolute_header, not gl_full_header_path.
45607 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45608 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45611 Merge from coreutils.
45613 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45615 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45616 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45617 want to require the building of c-strtod.o.
45618 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45619 needs -lm directly.
45620 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45622 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45624 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45625 --as-needed option if available. Problem reported by Albert Chin in
45626 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45627 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45628 cc merely issues a bunch of annoying warnings for --as-needed
45629 (this problem was reported by Bob Proulx). Also, try linking with
45630 -lm to detect a bug in binutils 2.16 (this problem was reported
45631 by Ralf Wildenhues).
45633 2006-06-18 Jim Meyering <jim@meyering.net>
45635 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45636 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45638 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45639 also check for glibc-2.4's abort-inducing bug.
45641 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45642 Low-probability clean-up should be to use rmdir to get rid of
45643 the just-created directory, not unlink.
45645 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45646 configure fail, and request a bug report to inform us about it.
45647 Add a comment that, barring reports to the contrary, in 2007 we'll
45648 assume ftruncate is universally available.
45650 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45652 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45654 2006-03-12 Jim Meyering <jim@meyering.net>
45656 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45657 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45658 * m4/same.m4 (gl_SAME): Likewise.
45659 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45661 2006-03-11 Eric Blake <ebb9@byu.net>
45663 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45664 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45665 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45666 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45668 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45670 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45671 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
45672 reported by Mark D. Baushke, one in
45673 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45675 Merge from coreutils.
45677 * lib/.cppi-disable: Add stdint_.h.
45678 * lib/.cvsignore: Add stdint.h.
45680 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45682 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45683 both double and long double versions.
45684 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
45685 * lib/xstrtold.c: New file.
45686 * lib/xstrtod.h (xstrtold): New decl.
45688 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
45690 * lib/filemode.c (setst): Remove.
45691 (strmode): Rewrite to avoid setst. This makes the code shorter,
45692 (arguably) clearer, and the generated code is a bit smaller on my
45693 Debian GNU/Linux stable x86 host.
45695 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45697 * lib/filemode.c: Include "filemode.h" first, to test the interface.
45698 Assume that filemode.h includes sys/types.h and sys/stat.h.
45699 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45700 (ftypelet): Reorder to put common cases first, for efficiency.
45701 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
45703 (strmode): Renamed from mode_string, and now stores 12 bytes instead
45704 of 10, for compatibility with FreeBSD. All callers changed.
45705 (filemodestring): Now stores 12 bytes instead of 10, and sets file
45706 types that can't be deduced solely from st_mode. First arg is now a
45708 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45709 (strmode): Renamed from mode_string.
45710 (filemodestring): New decl.
45711 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45712 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45714 (S_ISPORT, S_ISWHT): New macros, if not already defined.
45716 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
45718 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45719 fsusage.h now does that. Include fsusage.h first, to test interface.
45720 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
45721 at most one method (the old code could have generated decls that
45722 didn't conform to C89, not that this was ever exercised).
45723 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45725 2006-03-19 Jim Meyering <jim@meyering.net>
45727 Work even in a chroot where d_ino values for entries in "/"
45728 don't match the stat.st_ino values for the same names.
45729 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45730 number, iterate through all entries again, using lstat instead.
45731 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45732 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45734 * lib/getcwd.c (__getcwd): Clarify a comment.
45735 Use memcpy in place of a call to strcpy.
45737 2006-03-12 Jim Meyering <jim@meyering.net>
45739 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45740 matches that of the current directory (which we're about to chdir ".."
45741 out of), then save the dev-ino of the parent, instead.
45743 * lib/same-inode.h (SAME_INODE): New file/macro.
45744 * lib/chdir-safer.c (SAME_INODE): Remove definition.
45745 Include "same-inode.h", instead.
45746 * lib/same.c: Likewise.
45747 * lib/cycle-check.h: Include "same-inode.h".
45748 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45749 * lib/cycle-check.c (SAME_INODE): Remove definition.
45750 * lib/root-dev-ino.h: Include "same-inode.h".
45752 2006-03-11 Eric Blake <ebb9@byu.net>
45754 * lib/same.c (same_name): s/base_name/last_component/
45755 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45756 * lib/filenamecat.c (file_name_concat): Likewise.
45758 2006-03-11 Eric Blake <ebb9@byu.net>,
45759 Paul Eggert <eggert@cs.ucla.edu>
45761 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45762 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45764 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45765 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45766 (last_component): New method.
45767 * lib/dirname.c (dir_len): Determine when drive letters need a
45768 subsequent slash. Preserve // when it is special.
45769 (dir_name): Don't append dot when drive letter is absolute.
45770 [TEST_DIRNAME]: Move into a full-blown gnulib test.
45771 * lib/basename.c (base_name): New semantics - malloc the result.
45772 Preserve // when it is special. Preserve relative files that look
45773 like drive letters.
45774 (base_len): Preserve // when it is special.
45775 (last_component): New method, similar to old base_name semantics.
45776 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45777 base_name. Strip redundant slashes from ///.
45779 2006-07-03 Jim Meyering <jim@meyering.net>
45781 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45782 macro is used before the first cycle_check call.
45784 2006-07-03 Eric Blake <ebb9@byu.net>
45786 * modules/dirname (Depends-on): Add xstrndup.
45788 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45790 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45791 test cases, so that config.log is a bit easier to follow.
45793 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45795 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45796 both are 64 bits, since this seems to be the tradition, and this
45797 prevents gcc -Wformat from warning about usages with PRIuMAX. If
45798 we ever run into a host that prefers long long to long in this
45799 case, we'll need another configure-time test. Problem reported by
45802 2006-07-02 Eric Blake <ebb9@byu.net>
45804 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45806 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45808 * modules/inttypes (Depends-on): No longer depends on stdint.
45809 * modules/stdint (Description): Say more about assumptions.
45810 Say that the fast types might differ. Say macros are used.
45811 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
45812 (Makefile.am): Revise list of substituted symbols to match
45814 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45815 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45816 * tests/test-stdint.c (verify_same_types)
45817 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45818 the code conforms to C99/C89.
45819 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45820 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45822 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45824 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45825 but fix a bug, by requiring at least 64 bits.
45826 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45827 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45828 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
45829 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45831 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45832 changes. Make 2.59 a prerequisite. Check and substitute for
45833 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
45834 inttypes.h. Do not use special include files; just use the
45835 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
45836 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
45837 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45838 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45839 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45840 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45841 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45842 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45843 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45844 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45845 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45846 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45847 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45848 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45849 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45850 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45851 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45852 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45853 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45854 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45855 WINT_MAX. Check for C99 conformance more strictly, by detecting
45856 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
45857 not check for things that C99 does not require, e.g., int8_t. If
45858 a test isn't needed unless <stdint.h> isn't working, and is
45859 unlikely to be needed for any other reason, then don't do it
45860 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
45861 size_t, since we assume C89 freestanding at least. Do not check
45862 for sig_atomic_t, wchar_t, or wint_t, since the code now does
45863 the right thing even if the types are not defined. Instead use:
45864 (gl_STDINT_TYPE_PROPERTIES): New macro.
45865 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
45866 testing whether <sys/types.h> clashes, as Autoconf does this for
45867 us now. All uses removed.
45868 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45869 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45870 (gl_CHECK_TYPE_SAME):
45871 Remove; no longer needed.
45872 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45873 exists, since we'll return 0 anyway in that case.
45874 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45876 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45878 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45879 possible collision with system files.
45880 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45881 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45882 WCHAR_MIN and WCHAR_MAX in this case.
45883 (<stddef.h>): Do not include; no longer needed.
45884 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45885 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45886 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45887 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45888 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45889 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45890 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45891 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45892 !defined(__c99))]: Include in this case too, since it's harmless
45894 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45895 dangerous to do so.
45896 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45897 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45898 (_STDINT_MIN, _STDINT_MAX): New macros.
45899 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45900 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45901 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45902 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45903 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45904 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45905 macros, not typedefs; this simplifies things quite a bit.
45906 Use long int for all types narrower than int64_t.
45907 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45908 Define in terms of long long int or int64_t or long int,
45909 not int64_t or int32_t. This saves some compile-time testing.
45910 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45911 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45912 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45913 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45914 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45915 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45916 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45917 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45918 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45919 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45920 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45921 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45922 undef any previous version and define our own version, for
45923 simplicity and consistency with the new macros for types.
45924 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45925 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45926 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45927 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
45928 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45929 @WINT_T_SUFFIX@ to keep things simple here.
45930 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45931 Simplify by assuming typical 8/16/32/64 host, since we're
45932 already doing that elsewhere anyway.
45933 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45934 and assume long long int is 64 bits if available. This
45935 speeds up 'configure'.
45937 2006-07-01 Eric Blake <ebb9@byu.net>
45939 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45940 Reported by Andreas Buening.
45942 2006-07-01 Eric Blake <ebb9@byu.net>
45944 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45946 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45948 * lib/getaddrinfo.c: fixed typo
45950 2006-06-29 Jim Meyering <jim@meyering.net>
45952 * modules/strftime (Maintainer): Add my name, since with the
45953 FPRINTFTIME changes strftime.c has forked from glibc.
45955 2006-06-29 Eric Blake <ebb9@byu.net>
45957 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45959 2006-06-29 Eric Blake <ebb9@byu.net>
45961 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45963 2006-06-29 Eric Blake <ebb9@byu.net>
45965 * lib/stat_.h: New file.
45967 2006-06-29 Eric Blake <ebb9@byu.net>
45969 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45970 unused static function.
45972 2006-06-29 Eric Blake <ebb9@byu.net>
45974 * doc/functions.texi (Function Portability): Document missing lstat
45977 2006-06-29 Eric Blake <ebb9@byu.net>
45979 * MODULES.html.sh: Add sys_stat.
45980 * modules/sys_stat: New module.
45981 * modules/mkstemp (Depends-on): Add sys_stat.
45983 2006-06-29 Derek R. Price <derek@ximbiot.com>
45985 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45987 2006-06-29 Derek R. Price <derek@ximbiot.com>
45989 * m4/c-bs-a.m4: Removed.
45991 2006-06-29 Derek R. Price <derek@ximbiot.com>
45993 * lib/strftime.c: Assume strftime() exists.
45995 2006-06-29 Derek Price <derek@ximbiot.com>
45997 * modules/c-bs-a: Removed - \a is C89.
45998 * MODULES.html.sh: Remove c-bs-a.
46000 2006-06-29 Bruno Haible <bruno@clisp.org>
46002 * modules/wcwidth (License): Change to LGPL.
46004 2006-06-28 Simon Josefsson <jas@extundo.com>
46006 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
46009 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46012 2006-06-28 Simon Josefsson <jas@extundo.com>
46014 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46016 2006-06-28 Simon Josefsson <jas@extundo.com>
46018 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46019 functions there. It will succeed on Windows XP, but on Windows
46020 2000 and (presumably) earlier, it will fail, and use the internal
46022 (use_win32_p): New function.
46023 (getaddrinfo): Use strtoul on servname, to support numeric ports.
46024 Support AI_NUMERICSERV to disable getservbyname.
46025 (getnameinfo): New function, only supports
46026 NI_NUMERICHOST|NI_NUMERICSERV for now.
46028 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46029 only have some of them. Add AI_NUMERICSERV. Add prototype for
46032 2006-06-28 Eric Blake <ebb9@byu.net>
46034 * modules/wcwidth: New file.
46035 * modules/mbchar (Depends-on): Add wcwidth.
46036 * modules/mbswidth (Depends-on): Add wcwidth.
46037 * MODULES.html.sh: Add wcwidth.
46039 2006-06-28 Eric Blake <ebb9@byu.net>
46041 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46042 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46044 2006-06-28 Eric Blake <ebb9@byu.net>
46046 * lib/xvasprintf.h: Fix comments.
46048 2006-06-28 Eric Blake <ebb9@byu.net>
46050 * lib/mbchar.h (wcwidth): Include wcwidth.h.
46051 * lib/mbswidth.c (wcwidth): Move from here...
46052 * lib/wcwidth.h: ...to this new file.
46054 2006-06-28 Derek R. Price <derek@ximbiot.com>
46056 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46058 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46060 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46062 2006-06-28 Derek R. Price <derek@ximbiot.com>
46064 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
46065 Autoconf 2.60 says this stuff was obsolete.
46067 2006-06-28 Bruno Haible <bruno@clisp.org>
46069 * modules/wcwidth (Files): Add m4/wchar_t.m4.
46071 2006-06-28 Bruno Haible <bruno@clisp.org>
46073 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46076 2006-06-28 Bruno Haible <bruno@clisp.org>
46078 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46079 declaration for wcwidth.
46080 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46082 2006-06-28 Bruno Haible <bruno@clisp.org>
46084 * lib/mkdtemp.c [MINGW]: Include <io.h>.
46085 (mkdir): Define using _mkdir.
46087 2006-06-28 Bruno Haible <bruno@clisp.org>
46089 * lib/getaddrinfo.h: Fix POSIX URL.
46090 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46092 (use_win32_p): Make static.
46093 (getaddrinfo): Reject service name if it is empty or does not consist
46094 solely of decimal digits, or if its value is > 65535.
46095 (getnameinfo): Remove useless casts.
46097 2006-06-27 Simon Josefsson <jas@extundo.com>
46099 * modules/sys_select: New file, suggested by Bruno Haible, Paul
46100 Eggert and Martin Lambers.
46102 2006-06-27 Simon Josefsson <jas@extundo.com>
46104 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46105 Eggert and Martin Lambers.
46107 2006-06-27 Bruno Haible <bruno@clisp.org>
46109 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46110 result to 0, not to empty.
46111 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46113 2006-06-27 Bruno Haible <bruno@clisp.org>
46115 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46117 2006-06-26 Simon Josefsson <jas@extundo.com>
46119 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46122 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
46124 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46125 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
46126 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46128 2006-06-26 Mark D. Baushke <mdb@gnu.org>
46130 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46132 2006-06-26 Bruno Haible <bruno@clisp.org>
46134 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46136 2006-06-26 Bruno Haible <bruno@clisp.org>
46138 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46140 2006-06-26 Bruno Haible <bruno@clisp.org>
46142 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46143 SGI C compiler in pre-C99 mode.
46144 Suggested by Mark D. Baushke and Larry Jones.
46146 2006-06-26 Bruno Haible <bruno@clisp.org>
46148 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46150 Reported by Mark D. Baushke and Larry Jones.
46152 2006-06-26 Bruno Haible <bruno@clisp.org>
46154 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46156 Suggested by Mark D. Baushke and Larry Jones.
46158 2006-06-23 Simon Josefsson <jas@extundo.com>
46159 Bruno Haible <bruno@clisp.org>
46161 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46162 Emit mostlyclean-local rule.
46163 (func_emit_tests_Makefile_am): Likewise.
46164 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46166 2006-06-23 Mark D. Baushke <mdb@gnu.org>
46168 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46170 2006-06-23 Bruno Haible <bruno@clisp.org>
46172 * tests/test-stdint.c: Update to match ISO C 99 Technical
46175 2006-06-23 Bruno Haible <bruno@clisp.org>
46177 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46179 2006-06-23 Bruno Haible <bruno@clisp.org>
46181 * lib/stdint_.h: Treat IRIX like OpenBSD.
46183 2006-06-23 Bruno Haible <bruno@clisp.org>
46185 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46186 ISO C 99 Technical Corrigendum 1.
46188 2006-06-22 Simon Josefsson <jas@extundo.com>
46190 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46193 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
46195 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46196 needed. Some compiler complained about some of them. Problem reported
46198 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46200 2006-06-21 Simon Josefsson <jas@extundo.com>
46202 * tests/test-getaddrinfo.c: New file.
46204 * modules/getaddrinfo-tests: New file.
46206 * MODULES.html.sh: Add inet_pton.
46208 * modules/inet_pton: New file.
46210 2006-06-21 Simon Josefsson <jas@extundo.com>
46212 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
46213 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
46214 of using the (limited) gnulib implementation on Windows XP.
46216 * m4/inet_pton.m4: New file.
46218 2006-06-21 Simon Josefsson <jas@extundo.com>
46220 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46223 * lib/socket_.h: Don't define WINVER.
46225 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46226 slightly modified to work in gnulib.
46228 2006-06-21 Simon Josefsson <jas@extundo.com>
46230 * doc/gnulib.texi (Windows sockets): Add.
46232 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
46234 * lib/read-file.c (fread_file): Start with buffer allocation of
46235 0 bytes rather than 1 byte; this simplifies the code.
46236 Don't invoke feof; it's not needed. Refactor to avoid duplicate
46237 code to free buffer and save/restore errno.
46238 (internal_read_file): Remove unused local.
46240 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
46242 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46243 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46244 Problem reported by Denis Excoffier in
46245 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46247 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46249 * modules/sys_socket, modules/socklen: Include sys/types since
46250 FreeBSD 4.x's sys/socket.h needs it.
46252 2006-06-19 Simon Josefsson <jas@extundo.com>
46254 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46256 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
46258 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46260 2006-06-19 Bruno Haible <bruno@clisp.org>
46262 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46263 and FULL_PATH_INTTYPES_H in angle brackets.
46264 Reported by Mark D. Baushke <mdb@gnu.org>.
46266 2006-06-17 Eric Blake <ebb9@byu.net>
46268 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46271 2006-06-17 Bruno Haible <bruno@clisp.org>
46273 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46276 2006-06-17 Bruno Haible <bruno@clisp.org>
46278 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46279 whether errno is declared. Assume <errno.h> declares errno.
46281 2006-06-17 Bruno Haible <bruno@clisp.org>
46283 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46285 2006-06-17 Bruno Haible <bruno@clisp.org>
46287 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46288 problem on Solaris 2.5.1.
46290 2006-06-16 Eric Blake <ebb9@byu.net>
46292 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46293 * lib/unicodeio.c [!defined errno]: Likewise.
46294 * lib/strtol.c [!defined errno]: Likewise.
46295 * lib/strtod.c [!defined errno]: Likewise.
46297 2006-06-15 Eric Blake <ebb9@byu.net>
46299 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46301 2006-06-15 Eric Blake <ebb9@byu.net>
46303 * config/srclist.txt (ssize_t.m4): Lose sync.
46305 2006-06-15 Bruno Haible <bruno@clisp.org>
46307 * modules/stdint (Files): Include m4/full-header-path.m4,
46308 m4/size_max.m4, m4/wchar_t.m4.
46309 (Makefile.am): Many more substitutions.
46310 * modules/stdint-tests: New file.
46311 * tests/test-stdint.c: New file.
46313 2006-06-15 Bruno Haible <bruno@clisp.org>
46315 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46316 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46317 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46318 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46319 gl_CHECK_TYPE_SAME): New macros.
46321 2006-06-15 Bruno Haible <bruno@clisp.org>
46323 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46325 2006-06-15 Bruno Haible <bruno@clisp.org>
46327 * lib/stdint_.h: Rewritten to be fully auto-configured.
46328 Fixes bug on HP-UX/IA64.
46330 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
46332 * lib/getdate.y (__attribute__): Don't define if already defined.
46333 Problem reported by Larry Jones.
46334 * lib/utimens.c (__attribute__): Likewise.
46336 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
46338 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46339 reported by Andreas Schwab.
46341 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46342 Bruno Haible <bruno@clisp.org>
46344 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46345 check for the declaration of strnlen and a run test that exposes the
46346 AIX 5.1 strnlen bug. In the failure case, #define strndup to
46349 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46350 Bruno Haible <bruno@clisp.org>
46352 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46354 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46356 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46357 compile test, for Tru64 4.0D.
46359 2006-05-28 Karl Berry <karl@gnu.org>
46361 * config/srclist.txt (printf-args.c): lose sync.
46363 2006-05-26 Martin Lambers <marlam@marlam.de>
46365 * lib/getpass.c: Updates the test for the native W32 API, and adds
46366 missing includes, thus fixing compilation warnings.
46368 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
46370 * lib/exclude.c (exclude_fnmatch): New function.
46371 (excluded_file_name): Call exclude_fnmatch.
46372 * lib/exclude.h (excluded_file_name): New prototype
46374 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
46376 * lib/tempname.c (small_open, large_open): New macros.
46377 (__open, __open64) [!_LIBC]: Remove.
46378 (__gen_tempname): Use small_open and large_open instead of __open
46379 and __open64. This fixes a portability bug on HP-UX 11.11i
46380 reported by Simon Wing-Tang in
46381 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46383 2006-05-24 Bruno Haible <bruno@clisp.org>
46385 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46386 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46387 Reported by Thorsten Maerz <torte@netztorte.de> via
46388 Aaron Stone <aaron@serendipity.cx>.
46390 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
46392 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46393 gl_ rather than jm_. Link, don't run, so that cross-compiles are
46394 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
46395 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46396 not really conditional on the cache.
46397 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46399 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
46401 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46402 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46403 (my_usleep): Don't mishandle maximum value.
46405 2006-05-19 Jim Meyering <jim@meyering.net>
46407 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
46409 2006-05-17 Bruno Haible <bruno@clisp.org>
46411 Cygwin portability.
46412 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46414 2006-05-17 Bruno Haible <bruno@clisp.org>
46416 * lib/stdint_.h: Fix recognition of Cygwin.
46418 2006-05-15 Bruno Haible <bruno@clisp.org>
46420 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46421 on libtool patch by Ralf Wildenhues.
46423 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
46425 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46426 test for C99 conformance; (bool) 0.5 is an integer constant
46427 expression, but (bool) -0.5 is not. Problem reported by Fedor
46428 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46430 2006-05-11 Simon Josefsson <jas@extundo.com>
46432 * m4/xvasprintf.m4: Fix obvious typo.
46434 2006-05-11 Jim Meyering <jim@meyering.net>
46436 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
46439 2006-05-10 Simon Josefsson <jas@extundo.com>
46441 * lib/md4.c: Typo fix, update copyright years.
46442 (K1, K2): Don't use L because it turn computations into 64-bit on
46445 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
46447 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46448 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46449 unwanted sign propagation, e.g., on hosts with 64-bit int.
46450 There still are some problems with reeelly weird theoretical hosts
46451 (e.g., 33-bit int) but it's not worth worrying about now.
46452 * lib/sha1.c (rol): Likewise.
46453 (K1, K2, K3, K4): Remove unnecessary L suffix.
46455 2006-05-10 Bruno Haible <bruno@clisp.org>
46457 * lib/des.c: Cast to avoid warnings.
46459 2006-05-09 Bruno Haible <bruno@clisp.org>
46461 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46462 (Depends-on): Depend also on xsize, stdarg.
46463 (configure.ac): Add gl_XVASPRINTF.
46465 2006-05-09 Bruno Haible <bruno@clisp.org>
46467 * m4/xvasprintf.m4: New file.
46469 2006-05-09 Bruno Haible <bruno@clisp.org>
46471 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46472 (EOVERFLOW): Define fallback value.
46473 (xstrcat): New function.
46474 (xvasprintf): Recognize the special case of a string concatenation.
46476 2006-05-08 Eric Blake <ebb9@byu.net>
46478 * gnulib-tool (func_version): Base copyright year on CVS date.
46479 (func_emit_copyright_notice): New function.
46480 (func_emit_lib_Makefile_am): Use it.
46481 (func_emit_tests_Makefile_am): Likewise.
46482 (func_import): Likewise.
46484 2006-05-08 Bruno Haible <bruno@clisp.org>
46486 * modules/stdarg: New file.
46487 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46489 2006-05-08 Bruno Haible <bruno@clisp.org>
46491 * m4/stdarg.m4: New file, from GNU gettext.
46493 2006-05-08 Bruno Haible <bruno@clisp.org>
46495 * config/srclist.txt (build-aux/config.rpath): different from latest
46498 2006-05-08 Bruno Haible <bruno@clisp.org>
46500 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46502 2006-05-05 Jim Meyering <jim@meyering.net>
46504 * m4/warning.m4: New file, derived from bison's file by the same name.
46506 2006-05-03 Bruno Haible <bruno@clisp.org>
46508 * lib/stdint_.h: Shorter URL.
46509 * lib/inttypes.h: Likewise.
46511 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46513 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46515 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46517 * lib/verify.h: Document the internals better. Most of this change
46518 was written by Bruno Haible.
46520 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46522 * doc/verify.texi: New file, partly based on a proposal by
46525 2006-05-02 Bruno Haible <bruno@clisp.org>
46527 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46529 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46531 2006-04-29 Bruno Haible <bruno@clisp.org>
46533 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46534 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46536 2006-04-29 Bruno Haible <bruno@clisp.org>
46538 * gnulib-tool: Make --update option actually work.
46540 2006-04-29 Bruno Haible <bruno@clisp.org>
46542 * doc/gcd.texi: New file.
46543 * doc/gnulib.texi: Include it.
46545 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
46547 * lib/getdate.y (get_date): When adding relative date, start with the
46548 initial time, not with the result of the first mktime call.
46550 2006-04-25 Bruno Haible <bruno@clisp.org>
46552 * gnulib-tool (func_import): Output the include directives in three
46553 blocks, sorted separately.
46554 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46556 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46558 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46559 to define main with arguments, for C++. Reported by Eric Blake.
46560 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46561 Prefer 'int main ()' to 'int main (void)', for C++.
46562 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46563 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46564 for 'main', for C99 and C++.
46566 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46568 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46569 Don't assume that exit status -1 is valid.
46570 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46571 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46572 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46573 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46574 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46575 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46576 not AC_TRY_RUN. Use return, not exit. Don't assume that
46577 functions can be used without declaring them, or that you can
46578 exit with status -1.
46579 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46581 2006-04-24 Karl Berry <karl@gnu.org>
46583 * config/srclist.txt (longdouble.m4): sync lost.
46585 2006-04-24 Eric Blake <ebb9@byu.net>
46587 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46589 2006-04-24 Bruno Haible <bruno@clisp.org>
46591 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46592 poll() implementation in AIX.
46593 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46595 2006-04-24 Bruno Haible <bruno@clisp.org>
46597 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46598 assigned exactly once.
46600 2006-04-23 Claudio Fontana <claudio@gnu.org>
46601 Bruno Haible <bruno@clisp.org>
46603 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46604 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46607 2006-04-23 Bruno Haible <bruno@clisp.org>
46609 * modules/copy-file: Depend on unistd.
46610 * modules/execute: Likewise.
46611 * modules/fatal-signal: Likewise.
46612 * modules/findprog: Likewise.
46613 * modules/mkdtemp : Likewise.
46614 * modules/pipe: Likewise.
46615 * modules/wait-process: Likewise.
46617 2006-04-23 Bruno Haible <bruno@clisp.org>
46619 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46620 condition was already detected.
46621 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46623 2006-04-23 Bruno Haible <bruno@clisp.org>
46625 * lib/copy-file.c: Include <unistd.h> unconditionally.
46626 * lib/execute.c: Likewise.
46627 * lib/fatal-signal.c: Likewise.
46628 * lib/findprog.c: Likewise.
46629 * lib/mkdtemp.c: Likewise.
46630 * lib/pipe.h: Likewise.
46631 * lib/pipe.c: Likewise.
46632 * lib/wait-process.h: Likewise.
46634 2006-04-23 Bruno Haible <bruno@clisp.org>
46636 * gnulib-tool (func_usage): Fix --import description. Document
46638 (func_import): Create temporary file in a temporary directory, if
46639 --dry-run is specified. Silence errors from 'grep' when there are no
46640 m4 files in $m4dir.
46641 (func_create_testdir): Silence errors from 'grep' when there are no
46642 m4 files in $m4dir.
46643 Reported by Karl Berry <karl@freefriends.org>.
46645 2006-04-20 Bruno Haible <bruno@clisp.org>
46647 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46648 one argument, so that the code will be portable to Autoconf 2.60.
46649 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46650 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46651 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46653 2006-04-19 Derek Price <derek@ximbiot.com>
46654 Eric Blake <ebb9@byu.net>
46656 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46657 rather than "/full/path.h". Update comment to match. Shorten &
46658 generalize m4_translit call via AS_TR_CPP.
46660 2006-04-19 Derek Price <derek@ximbiot.com>
46661 Eric Blake <ebb9@byu.net>
46663 * lib/inttypes.h: Correct grammar in comment.
46665 2006-04-18 Derek Price <derek@ximbiot.com>
46666 Paul Eggert <eggert@cs.ucla.edu>
46668 * modules/inttypes: New file.
46669 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46671 2006-04-18 Derek Price <derek@ximbiot.com>
46672 Paul Eggert <eggert@cs.ucla.edu>
46674 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46677 2006-04-18 Derek Price <derek@ximbiot.com>
46678 Paul Eggert <eggert@cs.ucla.edu>
46680 * lib/inttypes.h: New file.
46681 * lib/strtoimax.c: Assume <inttypes.h>.
46683 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
46685 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46686 isn't mounted. Problem reported by Kir Kolyshkin.
46688 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
46690 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46691 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
46693 * lib/regex.h (RE_DUP_MAX): Update comment to match current
46696 2006-04-12 Eric Blake <ebb9@byu.net>
46698 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46699 is now done automatically by the corresponding Autoconf macro.
46701 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
46703 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46706 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46708 Merge regex changes from libc, removing some of our
46709 POSIX-conformance changes that were rejected and redoing them in a
46710 less-intrusive way.
46712 * lib/regcomp.c (re_compile_internal, init_dfa):
46713 Length arg is now size_t, not Idx. All uses changed.
46714 (peek_token): Forward decl now says internal_function.
46715 (__re_error_msgid, __re_error_msgid_idx):
46716 Now static rather than extern with attribute_hidden.
46717 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46718 For some reason libc prefers K&R style defns for external functions.
46719 (regerror) [!defined _LIBC]: Likewise.
46720 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46721 (seek_collating_symbol_entry, lookup_collation_sequence_value):
46722 (build_range_exp, build_collating_symbol):
46723 Use K&R-style defn.
46724 (re_compile_fastmap): Use '\0' to memset, not 0.
46725 (utf8_sb_map): Make the calculations more obvious.
46726 (init_dfa, parse_bracket_exp, build_charclass_op):
46727 Call calloc and cast result, as glibc does.
46728 (init_word_char, fetch_token, peek_token, peek_token_bracket):
46729 (build_range_exp, build_collating_symbol):
46730 Now internal functions.
46732 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46734 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
46735 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46736 Don't depend on VMS; depend on __VMS instead, for POSIX
46737 namespace cleanness.
46738 (regoff_t): Define to ssize_t, not long int.
46740 Remove the REG_ macros named below. Instead, make the old names
46741 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46743 (REG_BACKSLASH_ESCAPE_IN_LISTS):
46744 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46745 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46746 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46747 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46748 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46749 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46750 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46751 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46752 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46753 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46754 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46755 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46756 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46757 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46758 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46759 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46761 Remove. All uses replaced by the old RE_* names.
46762 (RE_BACKSLASH_ESCAPE_IN_LISTS):
46763 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46764 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46765 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46766 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46767 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46768 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46769 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46770 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46771 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46772 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46773 Don't bother having these macros be independent of each others'
46774 values, since they no longer exist in the POSIX name space.
46776 Rename the following member names back to their old names,
46777 unless !__USE_GNU_REGEX. All uses changed back.
46778 (buffer): Renamed from re_buffer.
46779 (allocated): Renamed from re_allocated.
46780 (used): Renamed from re_used.
46781 (syntax): Renamed from re_syntax.
46782 (fastmap): Renamed from re_fastmap.
46783 (translate): Renamed from re_translate.
46784 (can_be_null): Renamed from re_can_be_null.
46785 (regs_allocated): Renamed from re_regs_allocated.
46786 (fastmap_accurate): Renamed from re_fastmap_accurate.
46787 (no_sub): Renamed from re_no_sub.
46788 (not_bol): Renamed from re_not_bol.
46789 (not_eol): Renamed from re_not_eol.
46790 (newline_anchor): Renamed from re_newline_anchor.
46791 (num_regs): Renamed from rm_num_regs.
46792 (start): Renamed from rm_start.
46793 (end): Renamed from rm_end.
46795 (free_state): Move up a bit.
46797 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46798 #define to be empty.
46799 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46800 when that is what is intended.
46801 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46802 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46804 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46805 All uses changed back to re_malloc, etc. It's now the caller's
46806 responsibility to check for overflow; all callers changed.
46807 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46808 (re_x2nrealloc): Remove.
46809 (free_state): Remove decl.
46811 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46812 (re_set_registers, re_exec):
46813 Use K&R-style defn.
46815 2006-01-31 Roland McGrath <roland@redhat.com>
46817 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46818 Reported by Mike Frysinger <vapier@gentoo.org>.
46820 2006-01-15 Andreas Jaeger <aj@suse.de>
46823 * lib/regex_internal.c (re_string_reconstruct): Adjust for
46824 build_wcs_upper_buffer change.
46825 (build_wcs_upper_buffer): Change return type.
46827 2005-12-10 Ulrich Drepper <drepper@redhat.com>
46829 * lib/regex_internal.h: Include <stdint.h> if available.
46831 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
46833 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46835 2005-10-14 Ulrich Drepper <drepper@redhat.com>
46837 * lib/regcomp.c: Adjust for changed secondary hash function.
46839 2005-09-30 Ulrich Drepper <drepper@redhat.com>
46841 * lib/regex.h: Pretty printing.
46842 Clean up namespace a bit.
46844 2005-09-30 Jakub Jelinek <jakub@redhat.com>
46846 * lib/regexec.c (update_cur_sifted_state, check_arrival,
46847 check_arrival_add_next_nodes): Avoid using uninitialized variable.
46849 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46850 Ulrich Drepper <drepper@redhat.com>
46853 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
46855 (bitset_word_t): Renamed from bitset_word. All uses changed.
46857 2005-09-22 Ulrich Drepper <drepper@redhat.com>
46860 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46861 * lib/regcomp.c: Remove unnecessary uses of
46862 unsigned RE_TRANSLATE_TYPE.
46863 * lib/regex_internal.h: Likewise.
46864 * lib/regex_internal.c: Likewise.
46865 * lib/regexec.c: Likewise.
46866 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46868 2005-09-07 Ulrich Drepper <drepper@redhat.com>
46870 * lib/regexec.c (find_recover_state): Remove unnecessary
46872 (transit_state_bkref): Make DFA a const pointer.
46873 (get_subexp): Likewise.
46874 (check_arrival): Likewise.
46875 (update_cur_sifted_state): Likewise.
46876 (re_search_internal): Likewise.
46877 (prune_impossible_nodes): Likewise.
46878 (acquire_init_state_context): Likewise.
46879 (proceed_next_node): Likewise.
46880 (set_regs): Likewise.
46881 (free_fail_stack_return): Likewise.
46882 (check_arrival_expand_ecl): Mark DFA parameter as const.
46883 (check_arrival_expand_ecl_sub): Likewise.
46884 (check_subexp_limits): Likewise.
46885 (sub_epsilon_src_nodes): Likewise.
46886 (add_epsilon_src_nodes): Likewise.
46887 (merge_state_array): Likewise.
46888 (update_regs): Likewise.
46889 (build_trtable): Likewise.
46890 (sift_states_backward): Mark MCTX parameter as const.
46891 (build_sifted_states): Likewise.
46892 (update_cur_sifted_state): Likewise.
46893 (sift_states_mkref): Likewise.
46894 (check_arrival_expand_ecl): Mark eclosure as const.
46895 (check_dst_limits_calc_pos_1): Likewise.
46896 * lib/regex_internal.h (re_match_context_t): Make dfa a const
46899 2005-09-06 Ulrich Drepper <drepper@redhat.com>
46901 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46902 (transit_state_sb): Likewise.
46903 (transit_state_mb): Likewise.
46904 (sift_states_iter_mb): Likewise.
46905 (check_arrival_add_next_nodes): Likewise.
46906 (check_node_accept_bytes): Change first parameter to pointer-to-const.
46907 [_LIBC] (re_search_2_stub): Use mempcpy.
46909 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46910 mbrtowc for very simple UTF-8 case.
46912 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46913 a pointer-to-const.
46914 (re_acquire_state_context): Likewise.
46915 * lib/regex_internal.h: Adjust prototypes.
46917 * lib/regex.c: Prevent using C++ compilers.
46919 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46920 (re_acquire_state_context): Likewise.
46922 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46924 * modules/regex (Depends-on): Add ssize_t.
46926 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46928 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46931 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46933 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46935 2006-03-29 Mark D. Baushke <mdb@gnu.org>
46936 Bruno Haible <bruno@clisp.org>
46938 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46939 <sys/types.h> and <inttypes.h>.
46941 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46943 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46944 `__error_t_defined', so argp.h will not typedef the former.
46946 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
46948 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46949 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
46950 glibc names. Even if glibc is changed to conform to POSIX, the
46951 traditional names will be available anyway, since regex depends on
46952 the extensions module. Also, fix a longstanding typo in the
46953 implementation of Spencer ERE test #75 from grep 2.3. Problems
46954 reported by Emanuele Giaquinta. Also, change sense of cached
46955 variable, so that the message makes sense.
46957 2006-03-24 Simon Josefsson <jas@extundo.com>
46959 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46960 including some doc fixes.
46961 (base64_encode_alloc): Fix +1 bug on allocation failures.
46963 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46965 * lib/base64.c (base64_encode): Do not read past end of array with
46966 unsanitized input on systems with CHAR_BIT > 8.
46968 2006-03-24 Eric Blake <ebb9@byu.net>
46970 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46972 2006-03-22 Karl Berry <karl@gnu.org>
46974 * config/srclist.txt (*setenv.[ch]): get from coreutils.
46975 * config/srclistvars.sh (COREUTILS): new var.
46977 2006-03-17 Jim Meyering <jim@meyering.net>
46979 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46980 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46982 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46984 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46985 no longer needs it. Instead, check that regoff_t is as least
46986 as wide as ptrdiff_t.
46988 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46989 so that our regex.h stays compatible with the installed regex.
46990 This is helpful for installers who configure --without-included-regex.
46991 Problem reported by Emanuele Giaquinta.
46993 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46995 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46996 Typedef to long int, not to off_, as POSIX will likely change
46999 2006-03-15 Eric Blake <ebb9@byu.net>
47001 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47003 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
47005 * lib/argp-help.c (validate_uparams): Fix typo
47006 * lib/argp-parse.c (argp_default_options): Consistently begin help
47007 messages with a lowercase letter.
47009 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
47011 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
47012 overrun buffers and shouldn't be used (much as gets shouldn't be
47014 * lib/time_r.c (asctime_r, ctime_r): Likewise.
47016 2006-03-08 Simon Josefsson <jas@extundo.com>
47018 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47019 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47021 2006-03-08 Simon Josefsson <jas@extundo.com>
47023 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47024 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47026 2006-03-08 Simon Josefsson <jas@extundo.com>
47028 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47029 signal that configure disabled the device.
47031 2006-03-08 Simon Josefsson <jas@extundo.com>
47033 * build-aux/maint.mk: Fix refresh-po, to handle no translated
47036 2006-03-07 Simon Josefsson <jas@extundo.com>
47038 * modules/getopt (Depends-on): Add unistd.
47040 * modules/unistd: New file.
47042 2006-03-07 Simon Josefsson <jas@extundo.com>
47044 * modules/gc-random: New file.
47046 2006-03-07 Simon Josefsson <jas@extundo.com>
47048 * m4/unistd_h.m4: New file.
47050 2006-03-07 Simon Josefsson <jas@extundo.com>
47052 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47053 test to be side-effect free by storing the result in the cache
47054 variable gl_cv_lib_readline, and moving the assignment of
47055 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47056 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47058 2006-03-07 Simon Josefsson <jas@extundo.com>
47060 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
47061 error on missing devices (the functions will return an error).
47063 * m4/gc.m4: Move random stuff to gc-random.m4
47065 2006-03-07 Simon Josefsson <jas@extundo.com>
47067 * lib/unistd_.h: New file.
47069 2006-03-07 Simon Josefsson <jas@extundo.com>
47071 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47073 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47075 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47076 Problem reported by Juan Manuel Guerrero.
47078 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47080 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47082 * lib/getlogin_r.c: Likewise.
47083 * lib/getlogin_r.h: Likewise.
47084 * lib/glob.c: Likewise.
47085 * lib/pagealign_alloc.c: Likewise.
47086 * lib/unistd_.h: Remove; no longer needed.
47088 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47090 * MODULES.html.sh (Support for systems lacking POSIX:2001):
47092 * modules/c-stack (Depends-on): Add unistd.
47093 * modules/getlogin_r: Likewise.
47094 * modules/glob: Likewise.
47095 * modules/pagealign_alloc: Likewise.
47096 * modules/unistd (Files): Remove lib/unistd_.h.
47097 (EXTRA_DIST): Remove.
47098 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47100 (MOSTLYCLEANFILES): Remove unistd.h-t.
47102 2006-03-03 Simon Josefsson <jas@extundo.com>
47104 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47106 2006-03-03 Simon Josefsson <jas@extundo.com>
47108 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47111 2006-03-03 Simon Josefsson <jas@extundo.com>
47113 * build-aux/maint.mk: Add indent target.
47115 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47117 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47118 our replacement poll.h in any case, to avoid a differing
47119 declaration from a system header. Seen on AIX.
47121 2006-03-01 Simon Josefsson <jas@extundo.com>
47123 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47126 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
47128 * modules/gettime (Depends-on): Add extensions module.
47129 * modules/nanosleep (Depends-on): Likewise.
47130 * modules/settime (Depends-on): Likewise.
47132 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
47134 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47135 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47137 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47138 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47140 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47141 not "==". Reported by Ralf Wildenhues.
47143 2006-03-01 Karl Berry <karl@gnu.org>
47145 * doc/Copyright/request-*: new files, synced from gnuorg.
47147 2006-03-01 Karl Berry <karl@gnu.org>
47149 * config/srclist.txt (Copyright/*): new entries.
47151 2006-02-28 Simon Josefsson <jas@extundo.com>
47153 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47155 2006-02-27 Simon Josefsson <jas@extundo.com>
47157 * lib/base64.h: Indent #define's. From Jim Meyering
47158 <jim@meyering.net>.
47160 2006-02-27 Jim Meyering <jim@meyering.net>
47162 Revert the change of 2006-02-24, so these files can continue
47163 to be sync'd from gettext.
47164 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47167 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
47169 * modules/intprops: New file.
47170 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47172 * modules/getloadavg (Files): Remove lib/intprops.h.
47173 (Depends-on): Add intprops.
47174 * modules/human: Likewise.
47175 * modules/inttostr: Likewise.
47176 * modules/openat: Likewise.
47177 * modules/sig2str: Likewise.
47178 * modules/userspec: Likewise.
47179 * modules/utimecmp: Likewise.
47180 * modules/xnanosleep: Likewise.
47181 * modules/xstrtol: Likewise.
47183 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
47185 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47186 * modules/lock-tests (TESTS): Use $(EXEEXT).
47187 * modules/tls-tests: Likewise.
47188 * modules/argp-tests: Likewise.
47189 (check_PROGRAMS): New var, replacing...
47190 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47192 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47194 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47197 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
47199 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47201 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47203 Sync from coreutils.
47204 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47207 2006-02-22 Jim Meyering <jim@meyering.net>
47209 Sync from coreutils.
47210 * m4/chdir-safer.m4: New file.
47212 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
47214 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47215 AT_FDCWD exceeds INT_MAX.
47216 * lib/openat.h (AT_FDCWD): Likewise.
47218 2006-02-17 Eric Blake <address@hidden>
47220 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47222 2006-02-16 Simon Josefsson <jas@extundo.com>
47224 * modules/getaddrinfo (Depends-on): Add sys_socket.
47226 2006-02-15 Simon Josefsson <jas@extundo.com>
47228 * build-aux/maint.mk: Add dsyntax-check rule.
47230 2006-02-15 Eric Blake <ebb9@byu.net>
47232 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47233 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47234 'present but cannot compile' warnings on cygwin.
47235 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
47236 use ws2tcpip.h if sys/socket.h works.
47237 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47238 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47240 2006-02-14 Simon Josefsson <jas@extundo.com>
47242 * modules/maintainer-makefile (Files): Rename.
47244 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47245 and (the local) Makefile.cfg to maint-cfg.mk.
47247 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47250 * modules/maintainer-makefile: New module.
47252 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47253 severaly stripped to make it possible to build it up from scratch
47254 with reliable tests.
47256 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47257 fixes to permit overriding the default actions when configure and
47258 makefile are not available.
47260 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
47262 Sync from coreutils.
47263 * modules/lstat (Depends-on): Don't depend on xalloc.
47264 (License): Change from GPL to LGPL, since this is now simply a
47265 replacement for a libc function.
47267 2006-02-14 Jim Meyering <jim@meyering.net>
47269 Sync from coreutils.
47271 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47272 failure on deficient systems, and simplify gnulib lgpl dependencies.
47273 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47274 xmalloc/lstat combination. Based on a patch from Bruno Haible.
47276 * lib/xalloc-die.c: Remove unused definition of N_.
47278 2006-02-14 Jim Meyering <jim@meyering.net>
47280 Sync from coreutils.
47281 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47282 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47283 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47284 double-quote uses of that variable, to accommodate the rare case in
47285 which getmntent is available in none of the libraries checked. This
47286 happens at least on FreeBSD 5.0.
47288 2006-02-13 Simon Josefsson <jas@extundo.com>
47290 * gnulib-tool (Usage): Fix --import, from
47291 karl@freefriends.org (Karl Berry).
47293 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
47295 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47297 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
47299 * lib/argp-namefrob.h: Restore changes accidentally lost during the
47300 "autoupdate" on 2005-12-12.
47302 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
47304 * modules/closeout (Depends-on): Remove atexit.
47306 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
47308 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47309 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47311 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
47313 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47314 __EXTENSIONS__ if this causes compilation to fail. Problem
47315 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47316 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47318 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
47320 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47321 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47322 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47325 2006-01-26 Simon Josefsson <jas@extundo.com>
47327 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47328 prototype is visible on mingw32.
47330 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47333 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47336 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
47338 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
47339 attempt to open for write; this always fails, at least on POSIX
47340 hosts. This reinstates the 2006-01-09 change, which was
47341 inadvertently removed.
47343 2006-01-26 Bruno Haible <bruno@clisp.org>
47345 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47346 Reported by Paul Eggert.
47348 2006-01-26 Bruno Haible <bruno@clisp.org>
47349 Paul Eggert <eggert@cs.ucla.edu>
47351 * lib/stdbool_.h (_Bool)
47352 [(! (defined __cplusplus || defined __BEOS__)
47353 && !defined __GNUC__
47354 && !(defined __HP_cc || defined __xlc__
47355 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47356 || defined __sgi))]:
47357 #define to signed char in these cases too; this simplifies
47358 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47359 etc., separately) and makes it more conservative.
47361 2006-01-25 Simon Josefsson <jas@extundo.com>
47363 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47364 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
47365 ws2tcpip.h with WINVER=0x0501. All for mingw32.
47367 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
47369 * lib/argp-namefrob.h: Bugfix. Remove stray #
47371 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
47373 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47374 so that we test the test.
47375 Check for yet another HP-UX cc bug involving *bool |= bool.
47377 2006-01-25 Karl Berry <karl@gnu.org>
47379 * config/srclist.txt (vasnprintf.c): sync lost.
47381 2006-01-25 Jim Meyering <jim@meyering.net>
47383 Sync from the stable (b5) branch of coreutils:
47385 * lib/fts.c (fts_children): Don't let close() clobber errno from
47388 * lib/fts.c (fts_stat): When following a symlink-to-directory,
47389 don't necessarily interpret stat-fails+lstat-succeeds as indicating
47390 a dangling symlink. That can also happen at least for ELOOP.
47391 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47392 FYI, this bug predates the inclusion of fts.c in coreutils.
47394 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47395 in their own block, so pre-c99 compilers don't object.
47397 Avoid the double-free (first in fts_read, second in fts_close) that
47398 would occur when an `active' directory is made inaccessible (e.g.,
47399 via chmod a-x) during a traversal.
47400 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47401 before returning. Reproduce this failure by
47402 mkdir -p a/b; cd a; chmod a-x . b
47403 Reported by Stavros Passas.
47405 2006-01-25 Jim Meyering <jim@meyering.net>
47407 * lib/fileblocks.c: Remove more useless parentheses.
47408 * lib/readutmp.h: Likewise.
47410 2006-01-25 Bruno Haible <bruno@clisp.org>
47412 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47414 Reported by Paul Eggert.
47416 2006-01-25 Bruno Haible <bruno@clisp.org>
47418 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47419 rid of a trap command. For Solaris sh.
47420 Reported by Mark D. Baushke <mdb@gnu.org>.
47422 2006-01-24 Simon Josefsson <jas@extundo.com>
47424 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47427 2006-01-24 Karl Berry <karl@gnu.org>
47429 * config/srclist.txt (argp-namefrob.h): sync lost.
47431 2006-01-24 Jim Meyering <jim@meyering.net>
47433 * modules/openat (Files): Add lib/intprops.h.
47434 From Mark D. Baushke.
47436 2006-01-24 Jim Meyering <jim@meyering.net>
47438 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47439 Reported by Mark D. Baushke.
47441 2006-01-24 Jim Meyering <jim@meyering.net>
47443 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47445 2006-01-24 Bruno Haible <bruno@clisp.org>
47447 * modules/strnlen (Maintainer): Change from glibc to all.
47449 2006-01-24 Bruno Haible <bruno@clisp.org>
47451 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47452 Patch by Paul Eggert.
47454 2006-01-24 Bruno Haible <bruno@clisp.org>
47456 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47458 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
47461 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47462 'signed char' to avoid problems with the built-in _Bool type.
47463 Reported by Paul Eggert on 2005-11-26.
47465 2006-01-24 Bruno Haible <bruno@clisp.org>
47467 * gnulib-tool (func_import): Avoid constructing complicated sed
47468 expressions inside backquote.
47469 Report and solution by Mark D. Baushke <mdb@gnu.org>.
47471 2006-01-23 Ulrich Drepper <drepper@redhat.com>
47473 These changes imported from libc.
47474 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47475 test and two separate function calls.
47476 * lib/strndup.c (__strndup): Add libc_hidden_def.
47478 2006-01-23 Simon Josefsson <jas@extundo.com>
47480 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47481 Remove the test_*_SOURCES variable: automake infers it by default.
47482 * modules/tls-tests: Likewise.
47484 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47486 Work around porting bugs reported by Dieter in
47487 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47488 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47489 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47490 Include "getopt.h" first, to check interface.
47491 (getenv): Declare only if defined HAVE_DECL_GETENV &&
47493 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47494 (__strndup): Revert to K&R-style function dfns, the glibc style.
47495 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47496 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47497 Include strnlen.h first, to get prototype properly.
47498 (strnlen): Renamed from __strnlen.
47501 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47503 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47505 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47507 * config/srclist.txt: Adjust to reflect glibc reorganization.
47508 This affects only comments.
47510 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47512 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47513 Reported by Bruce Korb <bkorb@gnu.org>.
47515 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
47517 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47518 to pacify gcc -Wswitch-default.
47520 2006-01-22 Bruno Haible <bruno@clisp.org>
47522 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47523 temporary buffer for sprintf, take into account the precision also
47524 for 'd', 'i', 'u', 'o', 'x', 'X'.
47526 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47528 * modules/argp-tests: New module
47529 * tests/test-argp.c: New file
47530 * tests/test-argp-2.sh: New file
47532 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47534 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47535 (__argp_base_name): Removed
47536 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47538 (__argp_base_name): Provide macro definition or extern declaration
47539 depending on the configuration
47541 2006-01-20 Simon Josefsson <jas@extundo.com>
47543 * modules/inet_ntop (Depends-on): Depend on sys_socket.
47545 2006-01-20 Simon Josefsson <jas@extundo.com>
47547 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47549 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
47551 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47552 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47553 Suggested by Bruno Haible.
47555 2006-01-20 Karl Berry <karl@gnu.org>
47557 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47558 until changes propagate, I guess.
47560 2006-01-19 Simon Josefsson <jas@extundo.com>
47562 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47564 2006-01-19 Simon Josefsson <jas@extundo.com>
47566 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47568 2006-01-19 Simon Josefsson <jas@extundo.com>
47570 * gnulib-tool: Set check_PROGRAMS.
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: Use
47581 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47584 2006-01-18 Simon Josefsson <jas@extundo.com>
47586 * modules/socklen (Depends-on): Depend on sys_socket.
47588 2006-01-18 Simon Josefsson <jas@extundo.com>
47590 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47591 modules/des-tests, modules/gc-arcfour-tests,
47592 modules/gc-arctwo-tests, modules/gc-des-tests,
47593 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47594 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47595 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47596 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47597 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47598 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47599 $(EXEEXT) to automake TESTS variable, for mingw32.
47601 2006-01-17 Simon Josefsson <jas@extundo.com>
47603 * modules/socklen (Include): Need sys/socket.h.
47605 2006-01-17 Bruno Haible <bruno@clisp.org>
47607 * modules/ssize_t (Include): Add <sys/types.h>.
47609 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
47611 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47612 it's not portable and it doesn't work with cross-compiles.
47613 Problem reported by Bruno Haible. Fix missing-$ typo in
47614 'test "gl_cv_ignore_unused_libraries" ...' that prevented
47615 -zignore from being used with Sun's C compiler.
47617 2006-01-12 Simon Josefsson <jas@extundo.com>
47619 * lib/base64.c: Fix warning, reported by Bruno Haible
47620 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47622 2006-01-12 Bruno Haible <bruno@clisp.org>
47624 * modules/ldd: New file.
47625 * build-aux/ldd.sh.in: New file.
47626 * MODULES.html.sh (Support for building libraries and executables): Add
47629 2006-01-12 Bruno Haible <bruno@clisp.org>
47631 * m4/ldd.m4: New file.
47633 2006-01-12 Bruno Haible <bruno@clisp.org>
47635 * gnulib-tool (func_import, func_create_testdir): Don't go into an
47636 endless loop while replacing $auxdir with build-aux.
47638 2006-01-11 Simon Josefsson <jas@extundo.com>
47640 * lib/stdint_.h (SIZE_MAX): Add missing (.
47642 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
47644 Sync from coreutils.
47645 * lib/md5.c: Fix commentary typos.
47646 (alignof, UNALIGNED_P): No need for a GCC-specific version.
47647 * lib/md5.h (__attribute__): Remove; unused.
47648 * lib/sha1.c: Fix commentary to match md5 better.
47649 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47650 so that we don't need to worry about alignment. All uses changed.
47651 This merges the 2005-10-28 md5 change into sha1.
47653 2006-01-11 Jim Meyering <jim@meyering.net>
47655 Sync from coreutils.
47656 * lib/md5.c (OP): Fix spacing.
47658 2006-01-11 Bruno Haible <bruno@clisp.org>
47660 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47661 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47662 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47664 2006-01-11 Bruno Haible <bruno@clisp.org>
47666 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47667 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47668 the "early" section as well.
47670 2006-01-11 Bruno Haible <bruno@clisp.org>
47672 Avoid "ar: no archive members specified" error on MacOS X.
47673 * gnulib-tool (func_modules_add_dummy): New function.
47674 (func_import, func_create_testdir): Invoke it.
47676 2006-01-11 Bruno Haible <bruno@clisp.org>
47678 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47679 with $auxdir in AC_CONFIG_FILES statements.
47681 2006-01-11 Bruno Haible <bruno@clisp.org>
47683 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47684 Initialize also noinst_HEADERS to empty.
47686 2006-01-11 Bruno Haible <bruno@clisp.org>
47688 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47690 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47693 2006-01-11 Bruno Haible <bruno@clisp.org>
47695 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47696 overridable by the user.
47697 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47699 2006-01-10 Simon Josefsson <jas@extundo.com>
47701 * modules/sys_socket: New file.
47703 2006-01-10 Simon Josefsson <jas@extundo.com>
47705 * m4/sys_socket_h.m4: New file.
47707 2006-01-10 Simon Josefsson <jas@extundo.com>
47709 * lib/socket_.h: New file.
47711 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47713 * modules/readutmp (Maintainer): Add myself.
47715 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47717 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47718 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
47719 People who are still concerned with buggy memcmp implementations
47720 can invoke gl_FUNC_MEMCMP themselves.
47722 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47724 * lib/regex_internal.h (BITSET_WORD_BITS):
47725 Work around a bug in 64-bit PGC (before version 6.1-2), where the
47726 preprocessor mishandles large unsigned values as if they were signed.
47727 Problem reported by Claudio Fontana in
47728 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47730 2006-01-10 Jim Meyering <jim@meyering.net>
47732 Avoid the double-free (first in fts_read, second in fts_close) that
47733 would occur when an `active' directory is made inaccessible (e.g.,
47734 via chmod a-x) during a traversal.
47735 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47736 before returning. Reproduce this failure by
47737 mkdir -p a/b; cd a; chmod a-x . b
47738 Reported by Stavros Passas.
47740 Sync from coreutils.
47741 * lib/sha1.c: Tweak grammar in a comment.
47743 2006-01-10 Jim Meyering <jim@meyering.net>
47745 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47746 Patch by Joerg Sonnenberger.
47748 2006-01-10 Bruno Haible <bruno@clisp.org>
47750 * modules/readutmp: Depend on module free.
47751 * modules/strtok_r: Depend on module restrict.
47753 2006-01-10 Bruno Haible <bruno@clisp.org>
47755 * modules/gettext (configure.ac): Add an invocation of
47756 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47758 2006-01-10 Bruno Haible <bruno@clisp.org>
47760 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47761 Reported by Werner Lemberg <wl@gnu.org>.
47763 2006-01-10 Bruno Haible <bruno@clisp.org>
47765 * lib/localcharset.c: Update from GNU gettext.
47767 2006-01-10 Bruno Haible <bruno@clisp.org>
47769 * lib/argp.h (__const): Remove macro. Use const instead.
47770 * lib/argp-fmtstream.h (__const): Likewise.
47771 * lib/glob_.h (__const): Remove macro.
47772 * lib/glob-libc.h: Use const instead of __const.
47774 2006-01-10 Bruno Haible <bruno@clisp.org>
47776 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47778 Needed to avoid an automake error regarding the 'gettext' module.
47780 2006-01-09 Simon Josefsson <jas@extundo.com>
47782 * modules/inet_ntop (Depends-on): Add restrict.
47784 2006-01-09 Simon Josefsson <jas@extundo.com>
47786 * modules/gc-rijndael-tests (License): Put under LGPL.
47788 * modules/gc-des-tests (License): Likewise.
47790 * modules/gc-arcfour-tests (License): Likewise.
47792 * modules/gc-arctwo-tests (License): Likewise.
47794 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47796 * modules/gc-hmac-sha1-tests (Files): Likewise.
47798 * modules/gc-hmac-md5-tests (License): Likewise.
47800 * modules/gc-sha1-tests (License): Likewise.
47802 * modules/gc-md5-tests (License): Likewise.
47804 * modules/gc-md4-tests (License): Likewise.
47806 * modules/gc-md2-tests (License): Likewise.
47808 * modules/gc-tests (License): Likewise.
47810 * modules/des-tests (License): Likewise.
47812 * modules/md4-tests (License): Likewise.
47814 * modules/md2-tests (License): Likewise.
47816 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47818 Sync from coreutils:
47820 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47821 * modules/lib-ignore: New file.
47822 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47823 chdir-safer.m4, lchmod.m4.
47824 * modules/openat: Add mkdirat.c, openat-priv.h.
47826 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47828 Sync from coreutils.
47829 * m4/lib-ignore.m4: New file.
47830 * m4/lchmod.m4: New file.
47832 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47834 Sync from coreutils.
47835 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47836 for write access: POSIX says that must fail.
47837 * lib/fts.c (diropen): Likewise.
47838 * lib/save-cwd.c (save_cwd): Likewise.
47839 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47840 well, for minor improvements on hosts that lack O_DIRECTORY.
47841 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47842 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47843 Fall back on chown if open failed with EACCES.
47845 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47846 Report an error at compile-time if only a 1-second nominal clock
47847 resolution is found.
47849 * lib/lchmod.h: New file.
47850 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47851 (make_dir_parents): Use lchown rather than chown, and
47852 lchmod rather than chmod.
47854 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47855 dummies too. Problem with "none" reported by Bob Proulx. Problem with
47856 "proc" reported by n0dalus.
47858 * lib/mountlist.c: Include <limits.h>.
47859 (dev_from_mount_options)
47860 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47861 New function. It no longer assumes "dev=" has the System V meaning
47862 on Linux (since it doesn't). It also parses "dev=" more carefully.
47863 (read_file_system_list)
47864 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47865 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47868 * lib/posixtm.h (PDS_PRE_2000): New macro.
47869 * lib/posixtm.c (year): Arg is now syntax_bits rather than
47870 allow_century. All usages changed. Reject dates outside the range
47871 1969-1999 if PDS_PRE_2000 is used.
47873 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47875 Sync from coreutils.
47876 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47877 (Time of day items): Mention the possibility of leap seconds.
47878 Problem reported by Dr. David Alan Gilbert.
47880 2006-01-09 Jim Meyering <jim@meyering.net>
47882 Sync from coreutils.
47884 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47886 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47888 * lib/modechange.c (mode_compile): Reject an invalid mode string
47889 that starts with an octal digit. From Andreas Gruenbacher.
47891 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47892 and dup to open_safer and dup_safer, respectively.
47893 (openat_permissive): Fix typo in comment.
47895 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47896 "gettext.h"; either no longer needed or are guaranteed by openat.h.
47897 (_): Remove; no longer needed.
47898 (openat): Renamed from rpl_openat; no need for rpl_openat
47899 since openat.h renames openat for us.
47900 Replace most of the body with a call to openat_permissive,
47901 to avoid duplicate code.
47902 Port to (probably hypothetical) environments were mode_t is
47904 (openat_permissive): Require mode arg, so that we can check
47905 types better. Put it just after flags. Change cwd failure
47906 indicator from pointer-to-bool to pointer-to-errno-value.
47907 All callers changed.
47908 Invoke openat_save_fail and/or openat_restore_fail if
47909 cwd_errno is null, so that openat can call us.
47910 (openat_permissive, fdopendir, fstatat, unlinkat):
47911 Simplify errno handling to avoid some duplicate code,
47912 as it's OK to set errno on success.
47913 * lib/openat.h: Revamp code so that function macros depend on
47914 __OPENAT_PREFIX only, not also on AT_FDCWD.
47915 (openat_ro): Remove. Caller changed to use openat_permissive.
47916 (openat_permissive): Now a macro, if not a function.
47917 (openat_restore_fail, openat_save_fail): Now always functions,
47918 since mkdirat needs them even if __OPENAT_PREFIX is defined.
47920 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47922 * lib/mkdirat.c: Include openat-priv.h.
47923 Remove definitions of macros defined therein.
47924 * lib/openat.c: Likewise.
47926 * lib/mkdirat.c (mkdirat): New file and function.
47927 * lib/openat.h (mkdirat): Declare.
47929 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47931 * lib/openat.h (openat_permissive): Declare.
47932 (openat_ro): Define.
47934 * lib/openat.c (EXPECTED_ERRNO): New macro.
47935 (openat_permissive): New function -- used in remove.c rewrite.
47936 (all functions): Set errno just before returning, only if there
47937 was an actual failure.
47938 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47940 Emulate openat-family functions using Linux's procfs, if possible.
47941 Idea and some code based on Ulrich Drepper's glibc changes.
47943 * lib/openat.c: (BUILD_PROC_NAME): New macro.
47944 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47945 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47946 before falling back on save_cwd and restore_cwd.
47947 (fdopendir, fstatat, unlinkat): Likewise.
47949 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47950 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47952 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47953 as second argument to va_arg. Otherwise, some versions of gcc
47954 warn that `if this code is reached, the program will abort'.
47956 2006-01-09 Jim Meyering <jim@meyering.net>
47958 Sync from coreutils.
47959 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47960 Require openat-priv.h.
47962 2006-01-09 Bruno Haible <bruno@clisp.org>
47964 * modules/strnlen (Include): Use strnlen.h.
47966 2006-01-09 Bruno Haible <bruno@clisp.org>
47968 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47970 2006-01-09 Bruno Haible <bruno@clisp.org>
47972 * lib/sysexit_.h (EX_OK): New macro.
47973 Suggested by Martin Lambers <marlam@marlam.de>.
47975 2006-01-09 Bruno Haible <bruno@clisp.org>
47977 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47978 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47980 2006-01-09 Bruno Haible <bruno@clisp.org>
47982 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47985 2006-01-09 Bruno Haible <bruno@clisp.org>
47987 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47988 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47989 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47990 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47992 2006-01-09 Bruno Haible <bruno@clisp.org>
47994 * build-aux/javacomp.sh.in: New file, moved from lib/.
47995 * modules/javacomp-script (Files): Update.
47996 (configure.ac): Add AC_CONFIG_FILES invocation.
47997 (EXTRA_DIST): Remove variable.
47999 * build-aux/javaexec.sh.in: New file, moved from lib/.
48000 * modules/javaexec (Files): Update.
48001 (configure.ac): Add AC_CONFIG_FILES invocation.
48002 (EXTRA_DIST): Remove javaexec.sh.in.
48004 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48005 * modules/csharpcomp-script (Files): Update.
48006 (configure.ac): Add AC_CONFIG_FILES invocation.
48007 (EXTRA_DIST): Remove variable.
48009 * build-aux/csharpexec.sh.in: New file, moved from lib/.
48010 * modules/csharpexec (Files): Update.
48011 (configure.ac): Add AC_CONFIG_FILES invocation.
48012 (EXTRA_DIST): Remove csharpexec.sh.in.
48014 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
48016 Sync from coreutils.
48018 Add POSIX ACL support
48019 * lib/acl.h (copy_acl, set_acl): Add declarations.
48020 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48021 systems other than Linux.
48022 (chmod_or_fchmod): New function: use fchmod when possible,
48023 and chmod otherwise.
48024 (file_has_acl): Add a POSIX ACL implementation, with a
48025 Linux-specific subcase.
48026 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48027 S_ISVTX from one file to another. Fall back to fchmod/chmod when
48028 acls are unsupported.
48029 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48030 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
48033 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
48035 Sync from coreutils.
48036 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48038 2006-01-07 Bruno Haible <bruno@clisp.org>
48040 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48043 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
48045 * lib/strftime.c (tzname): Don't declare if it is already #defined.
48046 Problem reported for Mingw by Mark Junker.
48048 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
48050 * README: Gnulib normally doesn't generate a tarball.
48052 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
48054 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48055 long int, not int, for nanosecond counts, so that people who are
48056 used to POSIX struct timespec won't be surprised. Reported by Jim
48059 2005-12-28 Bruno Haible <bruno@clisp.org>
48061 * build-aux/config.rpath: Update from GNU gettext.
48063 2005-12-16 Jim Meyering <jim@meyering.net>
48065 * modules/fprintftime: New module.
48066 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48068 2005-12-16 Jim Meyering <jim@meyering.net>
48070 * m4/fprintftime.m4: New file.
48072 2005-12-16 Jim Meyering <jim@meyering.net>
48074 * lib/fprintftime.c, lib/fprintftime.h: New files.
48076 2005-12-15 Simon Josefsson <jas@extundo.com>
48078 * modules/socklen (configure.ac): Fix M4 macro name, to align with
48081 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
48083 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48084 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48086 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
48088 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48089 * lib/argp-help.c (fill_in_uparams): Check if the constructed
48090 struct uparams is valid. Fall back to the default values if it is
48093 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48095 * modules/argp (Files): Add argp-pin.c
48096 (Depends-on): dirname
48097 (lib_SOURCES): Add argp-pin.c
48099 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48101 * m4/argp.m4: Check if program_invocation_name and
48102 program_invocation_short_name are declared and define appropriate
48103 macros if they are not.
48105 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48107 * lib/argp-help.c (__argp_base_name): New function
48108 (__argp_short_program_name): Rewrite using __argp_base_name
48109 * lib/argp-namefrob.h: Define program_invocation_name and
48110 program_invocation_short_name if requested
48111 (__argp_base_name): Add prototype
48112 * lib/argp-parse.c (argp_def): Use gettext wrappers
48113 (argp_default_parser): Use __argp_base_name
48114 * lib/argp-pin.c: New file. Defines program_invocation_name and
48115 program_invocation_short_name on systems that lack them.
48117 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
48119 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48120 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48121 porting problem reported by Georg Schwarz in
48122 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48124 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
48126 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48127 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48128 porting problem reported by Georg Schwarz in
48129 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48131 2005-12-05 Bruno Haible <bruno@clisp.org>
48133 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48134 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48135 Reported by Mark Junker <mjscod@gmx.de>.
48137 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
48139 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48140 Use implementation from Albert Chin, with some
48141 comments/corrections by Stepan Kasal and myself.
48143 2005-12-02 Bruno Haible <bruno@clisp.org>
48145 * gnulib-tool (func_import): Accept GPLed build tool modules when
48147 * modules/csharpcomp-script: New file.
48148 * modules/csharpcomp: Depend on it.
48149 * modules/javacomp-script: New file.
48150 * modules/javacomp: Depend on it.
48151 Suggested by Simon Josefsson.
48153 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
48155 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48156 statement, to work around an HP-UX 10.20 compiler bug reported by
48159 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
48161 * modules/savedir (Depends-on): Add openat.
48163 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
48165 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48166 (uintmax_t) [defined uintmax_t]: Do not declare.
48167 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48168 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48169 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
48170 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48171 sake of portability to weird hosts that C allows (though we don't
48172 know of any practical examples).
48174 * lib/savedir.h (fdsavedir): New decl.
48175 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48176 contains most of the former guts of savedir.
48177 (savedir): Use savedirstream.
48178 Include "openat.h".
48180 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
48182 * modules/obstack (Files): Add m4/ulonglong.m4.
48183 Problem reported by Davide Angelocola.
48185 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
48187 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48188 coreutils no longer futzes with rounding modes.
48190 2005-11-14 Jim Meyering <jim@meyering.net>
48192 * lib/mkstemp-safer.c: Include <config.h>, required for possible
48193 replacement of mkstemp.
48195 2005-11-10 Simon Josefsson <jas@extundo.com>
48197 * lib/readline.c: Remove EOL.
48199 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48201 * modules/gethrxtime (Depends-on): Add gettime.
48203 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48205 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48206 or gettimeofday; no longer needed.
48208 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48210 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48212 (gethrxtime) [! (HAVE_NANOUPTIME
48213 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48214 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48215 our own approximation.
48217 2005-11-08 Eric Blake <ebb9@byu.net>
48219 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48221 2005-11-08 Eric Blake <ebb9@byu.net>
48223 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48225 2005-11-04 Bruno Haible <bruno@clisp.org>
48227 * gnulib-tool: Implement --update mode.
48229 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
48231 Fix porting problem reported by Theodoros V. Kalamatianos.
48232 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48233 Don't assume that futimes failing means we must fail.
48235 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
48237 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48238 variables to suggest the intended function of the PATH_MAX check.
48240 2005-10-30 Kean Johnston <jkj@sco.com>
48242 Trivial changes to support SCO systems.
48243 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48245 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48246 where __ptr is null when no I/O is pending.
48248 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
48250 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48251 leave errno alone. Problem reported by Dmitry V. Levin.
48253 2005-10-28 Simon Josefsson <jas@extundo.com>
48255 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48258 * tests/test-gc-md2.c, tests/test-md2.c: New files.
48260 * modules/md2, modules/md2-tests: New files.
48262 2005-10-28 Simon Josefsson <jas@extundo.com>
48264 * m4/inet_ntop.m4: More tests.
48266 * m4/gc-md2.m4, md2.m4: New file.
48268 2005-10-28 Simon Josefsson <jas@extundo.com>
48270 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48271 "restrict" keywords, as per POSIX. Protect the function
48272 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48273 Don't use K&R prototypes. Check the sprintf return values.
48274 Re-define EAFNOSUPPORT if not present. Indent.
48276 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48277 suggested by Bruno Haible <bruno@clisp.org>.
48279 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48281 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
48283 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48286 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
48288 * lib/md2.h, lib/md2.c: New files.
48290 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
48292 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48293 errno alone. Problem reported by Frederic Jolliton.
48295 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
48297 * modules/verify (License): Change from GPL to LGPL. This is a
48298 tiny module and there are apparently near-equivalents that are
48299 under the BSD license.
48301 2005-10-24 Simon Josefsson <jas@extundo.com>
48303 * modules/sha1: Relicense to LGPL.
48305 2005-10-24 Simon Josefsson <jas@extundo.com>
48307 * lib/md4.h: Shrink buffer size, now that we changed the type.
48309 2005-10-23 Simon Josefsson <jas@extundo.com>
48311 * gnulib-tool (func_import): Fix --tests-base.
48313 2005-10-22 Simon Josefsson <jas@extundo.com>
48315 * modules/arcfour (Depends-on): Need stdint.
48317 2005-10-22 Simon Josefsson <jas@extundo.com>
48319 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48320 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
48322 2005-10-22 Simon Josefsson <jas@extundo.com>
48324 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48325 suggested by Bruno Haible <bruno@clisp.org>.
48327 2005-10-22 Simon Josefsson <jas@extundo.com>
48329 * lib/crc.h: Include stddef.h, for size_t.
48331 2005-10-22 Simon Josefsson <jas@extundo.com>
48333 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48334 arcfour_context struct (simplify test vector testing in GNU
48337 2005-10-21 Simon Josefsson <jas@extundo.com>
48339 * modules/des, modules/des-tests: New files.
48341 * modules/gc-des, modules/gc-des-tests: New files.
48343 * tests/test-des.c, tests/test-gc-des.c: New file.
48345 2005-10-21 Simon Josefsson <jas@extundo.com>
48347 * modules/arctwo, modules/arctwo-tests: New files.
48349 * tests/test-arctwo.c: New file.
48351 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48353 * tests/test-gc-arctwo.c: New file.
48355 2005-10-21 Simon Josefsson <jas@extundo.com>
48357 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48358 Bruno Haible <bruno@clisp.org>.
48360 * m4/gc-des.m4: New file.
48362 2005-10-21 Simon Josefsson <jas@extundo.com>
48364 * m4/arctwo.m4: New file.
48366 * m4/gc-arctwo.m4: New file.
48368 2005-10-21 Simon Josefsson <jas@extundo.com>
48370 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48373 2005-10-21 Simon Josefsson <jas@extundo.com>
48375 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48378 * lib/hmac-sha1.c (hmac_sha1): Likewise.
48380 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48381 Bruno Haible <bruno@clisp.org>.
48383 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48386 2005-10-21 Simon Josefsson <jas@extundo.com>
48388 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48390 2005-10-21 Simon Josefsson <jas@extundo.com>
48392 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48394 2005-10-21 Simon Josefsson <jas@extundo.com>
48396 * lib/des.h, lib/des.c: New files.
48398 * lib/gc-gnulib.c: Support DES.c
48400 2005-10-21 Simon Josefsson <jas@extundo.com>
48402 * lib/arctwo.h, lib/arctwo.c: New files.
48404 * lib/gc-gnulib.c: Support ARCTWO.
48406 2005-10-21 Simon Josefsson <jas@extundo.com>
48408 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48409 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48411 2005-10-21 Simon Josefsson <jas@extundo.com>
48413 * gnulib-tool (func_import, func_create_testdir): Define automake
48414 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48415 Makefile.am snippet),
48416 suggested by Bruno Haible <bruno@clisp.org>.
48418 * modules/gc (Makefile.am): Use it.
48420 2005-10-21 Bruno Haible <bruno@clisp.org>
48422 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48425 2005-10-19 Simon Josefsson <jas@extundo.com>
48427 * tests/test-gc-rijndael.c: New file.
48429 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48431 2005-10-19 Simon Josefsson <jas@extundo.com>
48433 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48436 2005-10-19 Simon Josefsson <jas@extundo.com>
48438 * tests/test-gc-arcfour.c: New file.
48440 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48442 2005-10-19 Simon Josefsson <jas@extundo.com>
48444 * modules/gc-md4, modules/gc-md4-tests: New file.
48446 * tests/test-gc-md4.c: New file.
48448 2005-10-19 Simon Josefsson <jas@extundo.com>
48450 * m4/gc-md4.m4: New file.
48452 2005-10-19 Simon Josefsson <jas@extundo.com>
48454 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48455 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48458 2005-10-19 Simon Josefsson <jas@extundo.com>
48460 * m4/gc-arcfour.m4: New file.
48462 * m4/gc-rijndael.m4: New file.
48464 2005-10-19 Simon Josefsson <jas@extundo.com>
48466 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48468 2005-10-19 Simon Josefsson <jas@extundo.com>
48470 * lib/gc-gnulib.c: Support ARCFOUR.
48472 2005-10-19 Simon Josefsson <jas@extundo.com>
48474 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48477 * lib/gc.h: Add ECB enum type.
48479 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48481 2005-10-18 Simon Josefsson <jas@extundo.com>
48483 * tests/test-md5.c: New file.
48485 * modules/md5-tests: New file.
48487 2005-10-18 Simon Josefsson <jas@extundo.com>
48489 * tests/test-md4.c: New file.
48491 * modules/md4, modules/md4-tests: New files.
48493 2005-10-18 Simon Josefsson <jas@extundo.com>
48495 * m4/md4.m4: New file.
48497 2005-10-18 Simon Josefsson <jas@extundo.com>
48499 * lib/md4.h, lib/md4.c: New files, based on md5.?.
48501 2005-10-17 Stepan Kasal <kasal@ucw.cz>
48503 * gnulib-tool (func_create_testdir): Omit the second check whether
48504 BUILT_SOURCES in nonempty.
48506 2005-10-17 Simon Josefsson <jas@extundo.com>
48508 * tests/test-rijndael.c: New file.
48510 2005-10-17 Simon Josefsson <jas@extundo.com>
48512 * modules/sha1: Depend on stdint instead of md5.
48514 * modules/md5: Depend on stdint, remove uint32_t.
48516 2005-10-17 Simon Josefsson <jas@extundo.com>
48518 * modules/gc-sha1-tests: New file.
48520 * tests/test-gc-sha1.c: New file.
48522 2005-10-17 Simon Josefsson <jas@extundo.com>
48524 * m4/md5.m4: Remove call to uint32_t.m4.
48526 2005-10-17 Simon Josefsson <jas@extundo.com>
48528 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48530 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48533 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
48535 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
48537 2005-10-17 Simon Josefsson <jas@extundo.com>
48539 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48541 2005-10-17 Simon Josefsson <jas@extundo.com>
48543 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48545 2005-10-17 Simon Josefsson <jas@extundo.com>
48547 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48549 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48551 2005-10-17 Bruno Haible <bruno@clisp.org>
48553 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48554 that it can also be used in a test.
48556 2005-10-16 Bruno Haible <bruno@clisp.org>
48558 * gnulib-tool (func_emit_tests_Makefile_am): Also define
48559 TESTS_ENVIRONMENT, so that individual tests can augment it.
48561 * gnulib-tool (func_create_testdir): Use an intermediate target for
48562 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48563 macros, like $(ALLOCA_H), which cannot be passed through the command
48566 2005-10-15 Simon Josefsson <jas@extundo.com>
48568 * modules/rijndael-tests: New file.
48570 * modules/rijndael: New file.
48572 2005-10-15 Simon Josefsson <jas@extundo.com>
48574 * m4/rijndael.m4: New file.
48576 2005-10-15 Simon Josefsson <jas@extundo.com>
48578 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48580 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48582 2005-10-14 Simon Josefsson <jas@extundo.com>
48584 * tests/test-arcfour.c: New file.
48586 * modules/arcfour, modules/arcfour-tests: New files.
48588 2005-10-14 Simon Josefsson <jas@extundo.com>
48590 * m4/arcfour.m4: New file.
48592 2005-10-14 Simon Josefsson <jas@extundo.com>
48594 * lib/arcfour.h, lib/arcfour.c: New files.
48596 2005-10-14 Roland McGrath <roland@redhat.com>
48598 Import from libc. [BZ #1331]
48599 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48601 Reported by Matej Vela <vela@debian.org>.
48603 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48605 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48606 include <wchar.h>; no longer needed.
48608 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48610 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48612 2005-10-14 Jakub Jelinek <jakub@redhat.com>
48613 and Ulrich Drepper <drepper@redhat.com>
48616 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48617 instead of inline stream orientation test and two separate
48618 function calls. Pay no attention to USE_IN_LIBIO.
48620 2005-10-13 Simon Josefsson <jas@extundo.com>
48622 * modules/gc-hmac-md5-tests: New file.
48624 * tests/test-gc-hmac-sha1.c: New file.
48626 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48628 * modules/gc-hmac-md5-tests: New file.
48630 * tests/test-gc-md5.c: New file.
48632 * modules/gc-md5-tests: New file.
48634 2005-10-13 Simon Josefsson <jas@extundo.com>
48636 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48637 Move memory allocation outside of loop.
48639 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
48641 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48642 intermediate directory is in a read-only file system. Problem
48643 reported by Eric Blake.
48645 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
48647 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48649 2005-10-12 Simon Josefsson <jas@extundo.com>
48651 * tests/test-hmac-sha1.c: New file.
48653 * modules/hmac-sha1-tests: New file.
48655 * modules/hmac-sha1: New file.
48657 2005-10-12 Simon Josefsson <jas@extundo.com>
48659 * modules/gc-sha1: New file.
48661 2005-10-12 Simon Josefsson <jas@extundo.com>
48663 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48665 * tests/test-gc-pbkdf2-sha1.c: New file.
48667 2005-10-12 Simon Josefsson <jas@extundo.com>
48669 * modules/gc-md5, modules/gc-hmac-md5: New files.
48671 * modules/gc (Files): Remove md5, memxor and hmac files.
48673 2005-10-12 Simon Josefsson <jas@extundo.com>
48675 * m4/gc-pbkdf2-sha1.m4: New file.
48677 * m4/gc-hmac-sha1.m4: New file.
48679 * m4/gc-sha1: New file.
48681 * m4/hmac-sha1.m4: New file.
48683 2005-10-12 Simon Josefsson <jas@extundo.com>
48685 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48687 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48689 2005-10-12 Simon Josefsson <jas@extundo.com>
48691 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48692 suggested by Bruno Haible <bruno@clisp.org>.
48694 2005-10-12 Simon Josefsson <jas@extundo.com>
48696 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48698 2005-10-12 Simon Josefsson <jas@extundo.com>
48700 * lib/gc-pbkdf2-sha1.c: New file.
48702 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48704 2005-10-12 Simon Josefsson <jas@extundo.com>
48706 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48708 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48710 2005-10-12 Simon Josefsson <jas@extundo.com>
48712 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48713 GC_USE_HMAC_MD5, respectively.
48715 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48716 (gc_md5): Fix typo.
48718 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48720 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48722 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48724 2005-10-12 Bruno Haible <bruno@clisp.org>
48726 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48727 Reported by Stepan Kasal <kasal@ucw.cz>.
48729 2005-10-11 Simon Josefsson <jas@extundo.com>
48731 * tests/test-crc.c: New file.
48733 * modules/crc, modules/crc-tests: New files.
48735 2005-10-11 Simon Josefsson <jas@extundo.com>
48737 * m4/crc.m4: New file.
48739 2005-10-11 Simon Josefsson <jas@extundo.com>
48741 * lib/gc.h: Add gc_hash and gc_hash_buffer.
48743 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
48745 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48747 2005-10-11 Simon Josefsson <jas@extundo.com>
48749 * lib/crc.h, lib/crc.c: New files.
48751 * lib/gc.h (gc_hash_buffer): Add doc.
48753 2005-10-11 Bruno Haible <bruno@clisp.org>
48755 * modules/c-strcasestr: New file.
48756 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48758 2005-10-11 Bruno Haible <bruno@clisp.org>
48760 * modules/c-strcase: New file.
48761 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48763 2005-10-11 Bruno Haible <bruno@clisp.org>
48765 * lib/strcasecmp.c: Include limits.h.
48766 (strcasecmp): Avoid integer overflow on exotic platforms.
48767 * lib/strncasecmp.c: Include limits.h.
48768 (strncasecmp): Avoid integer overflow on exotic platforms.
48769 Reported by Paul Eggert.
48771 2005-10-11 Bruno Haible <bruno@clisp.org>
48773 * lib/c-strcasestr.h: New file, from GNU gettext.
48774 * lib/c-strcasestr.c: New file, from GNU gettext.
48776 2005-10-11 Bruno Haible <bruno@clisp.org>
48778 * lib/c-strcase.h: New file, from GNU gettext.
48779 * lib/c-strcasecmp.c: New file, from GNU gettext.
48780 * lib/c-strncasecmp.c: New file, from GNU gettext.
48782 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
48784 * modules/mempcpy (License): GPL -> LGPL.
48785 * modules/strchrnul (License): Likewise.
48786 * modules/sysexits (License): Likewise.
48788 2005-10-08 Simon Josefsson <jas@extundo.com>
48790 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48792 2005-10-07 Simon Josefsson <jas@extundo.com>
48794 * m4/memxor.m4: Remove gl_C_RESTRICT call.
48796 2005-10-06 Simon Josefsson <jas@extundo.com>
48798 * tests/test-hmac-md5.c: New file.
48800 * modules/hmac-md5-tests: New file.
48802 * modules/hmac-md5: New file.
48804 2005-10-06 Simon Josefsson <jas@extundo.com>
48806 * m4/hmac-md5.m4: New file.
48808 * m4/memxor.m4: Require gl_C_RESTRICT.
48810 2005-10-06 Simon Josefsson <jas@extundo.com>
48812 * lib/memxor.c (memxor): Avoid casts and warnings.
48814 2005-10-06 Simon Josefsson <jas@extundo.com>
48816 * lib/hmac-md5.c: New file.
48818 * lib/hmac.h: New file.
48820 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
48822 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48823 promotes to int, not unsigned int, to catch the AIX 5.3
48826 2005-10-05 Simon Josefsson <jas@extundo.com>
48828 * modules/memxor: New file.
48830 * modules/iconv (Files): Move config.rpath to havelib, it is used
48833 * modules/havelib (Files): Add config.rpath.
48835 2005-10-05 Simon Josefsson <jas@extundo.com>
48837 * m4/memxor.m4: New file.
48839 2005-10-05 Simon Josefsson <jas@extundo.com>
48841 * lib/memxor.c (memxor): Fix compiler error.
48843 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48844 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48846 * lib/memxor.h, lib/memxor.c: New files.
48848 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48849 we assume all systems have it, suggested by Jim Meyering
48850 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
48851 any systems lack sys/socket.h; mingw32 is known to lack it, but we
48852 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
48855 2005-10-05 Simon Josefsson <jas@extundo.com>
48857 * config/srclist.txt: Add glibc bug 1423 for md5.h.
48859 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
48861 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48862 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48863 needed, since the source code now assumes these .h files.
48865 2005-10-05 Derek Price <derek@ximbiot.com>
48867 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48869 2005-10-05 Bruno Haible <bruno@clisp.org>
48871 * modules/stdint (License): Change to LGPL.
48873 2005-10-04 Simon Josefsson <jas@extundo.com>
48875 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48876 D. Baushke" <mdb@gnu.org>.
48878 2005-10-04 Bruno Haible <bruno@clisp.org>
48880 * lib/verify.h (verify_true): Provide alternative definition for C++.
48882 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
48884 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
48885 (SSIZE_MAX): New macro, if not already defined.
48886 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48889 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48891 Sync from coreutils.
48892 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48893 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48894 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
48895 ULLONG_MAX doesn't work with 2.7.2.1.
48897 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48899 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48902 * modules/exclude (Depends-on): Depend on verify.
48903 * modules/strtoimax (Depends-on): Likewise.
48904 * modules/utimecmp (Depends-on): Likewise.
48906 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48908 * lib/exclude.c: Include verify.h.
48909 (verify): Remove. All callers changed to use verify.h's version.
48910 * lib/strtoimax.c: Likewise.
48911 * lib/utimecmp.c: Likewis.e
48913 Sync from coreutils.
48914 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48915 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48916 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48917 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
48918 bother returning ENOSYS if settimeofday or stime fails; just let
48919 them return whatever errno they want to return.
48920 * lib/utimens.c: Include unistd.h, for dup2.
48921 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48922 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48924 2005-10-02 Jim Meyering <jim@meyering.net>
48926 Sync from coreutils.
48927 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48928 from glibc-2.2.5 that fails for read-only files.
48930 2005-10-02 Jim Meyering <jim@meyering.net>
48932 Sync from coreutils.
48933 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48934 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48935 `#if HAVE_CONFIG_H'.
48936 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48937 Remove AT_FDCWD test.
48938 Do not consume the fd unless successful.
48939 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48940 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48941 block, so that we don't even try to compile it if settimeofday is
48942 available. This works around a compilation failure on OSF1 V5.1,
48943 due to stime requiring a `long int*' while tv_sec is `int'.
48945 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
48947 Sync from coreutils.
48948 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48949 against `yes', rather than just testing for nonempty.
48951 2005-10-01 Simon Josefsson <jas@extundo.com>
48953 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48956 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48957 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
48958 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
48959 freeaddrinfo and gai_strerror are declared by the POSIX headers.
48960 Check if struct addrinfo is declared.
48962 2005-10-01 Simon Josefsson <jas@extundo.com>
48964 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48965 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
48966 AI_* and EAI_* definitions. Protect function declarations.
48968 2005-10-01 Jim Meyering <jim@meyering.net>
48970 Sync from coreutils.
48972 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48973 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
48974 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48975 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48976 in the inet and nsl libraries. Required on Solaris 5.7.
48978 2005-10-01 Jim Meyering <jim@meyering.net>
48980 Sync from coreutils.
48981 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48982 in the inet and nsl libraries. Required on Solaris 5.7.
48984 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
48986 * lib/getdelim.c (getdelim): Remove unused variables.
48988 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
48990 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48991 so that the code works even with ancient cpp. Portability problem
48992 with GCC 2.7.2.1 reported by Thomas M.Ott.
48994 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
48996 * modules/regex (Depends-on): Add strcase.
48998 * modules/gethostname (Licence): Change from GPL to LGPL, since
48999 gethostname.c is a trivial implementation of a standard library
49001 * modules/poll (License): Change from GPL to LGPL, since it's
49002 derived from LGPL code.
49004 2005-09-27 Jim Meyering <jim@meyering.net>
49006 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49009 * lib/intprops.h (signed_type_or_expr__): Define.
49010 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49011 for unsigned types.
49013 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
49015 * lib/verify.h (verify_expr): Remove, replacing with:
49016 (verify_true): New macro that returns true instead of void.
49017 (verify_type__): Remove.
49018 (verify): Use verify_true rather than verify_type__.
49020 2005-09-26 Bruno Haible <bruno@clisp.org>
49022 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49024 (lib_SOURCES): Remove mbchar.c.
49025 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49026 (Files): Add m4/mbrtowc.m4.
49027 * modules/mbiter: Likewise.
49028 * modules/mbuiter: Likewise.
49030 2005-09-26 Bruno Haible <bruno@clisp.org>
49032 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49033 compile mbchar.c if they are not both present.
49034 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49035 * m4/mbiter.m4 (gl_MBITER): Likewise.
49036 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49037 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49038 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49040 2005-09-25 Jim Meyering <jim@meyering.net>
49042 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49043 also uses socklen_t.
49045 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
49047 * lib/utimens.c (ENOSYS): Define if not already defined.
49048 (futimens): Support having a null PATH if the file descriptor
49051 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49053 (__attribute): Define to empty unless GCC 3.1 or later.
49054 This works around a core dump on OpenBSD 3.4, which has GCC
49055 2.95.3, which dumps core when given __attribute__(()). It also
49056 simplifies other tests, since we really don't want to bother with
49057 worrying about which ancient version of GCC supported what.
49058 Original problem reported by Yoann Vandoorselaere, with part of
49059 the fix suggested by Derek Price.
49061 2005-09-24 Jim Meyering <jim@meyering.net>
49063 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49064 so we can once again use a positive bitfield width of 1 -- now we
49065 don't have to explain why we were using a bitfield width of 2.
49067 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
49069 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49070 and similarly for the other external symbols. Problem reported
49073 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49074 bug reported by Jim Meyering.
49076 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49077 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49078 not needed, since socklen is a prerequisite module.
49080 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
49082 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49083 Problem reported by Eric Blake.
49084 (getaddrinfo): Initialize se so that it's not garbage.
49085 Redo internal storage allocation so that it doesn't make unportable
49086 assumptions about alignment.
49089 * lib/utimens.c (futimens): Use futimesat if available.
49090 Prefer it to futimes since it doesn't have the futimes bug.
49092 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49093 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49094 Instead, declare a function that returns a pointer to an array,
49095 and use verify_type__ to declare the size of the array.
49096 Problem and germ of a solution reported by Bruno Haible.
49097 (verify_type__): Use 2, not 1, for bitfield size, to avoid
49098 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
49100 2005-09-23 Jim Meyering <jim@meyering.net>
49102 Sync from coreutils.
49103 Correct build failure (socklen_t not defined) on at least
49104 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49105 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49107 2005-09-23 Jim Meyering <jim@meyering.net>
49109 * modules/getaddrinfo (Depends-on): Add socklen.
49111 2005-09-23 Bruno Haible <bruno@clisp.org>
49113 * tests/test-verify.c: New file.
49115 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49117 Sync from coreutils.
49119 * modules/argmatch (Depends-on): Add verify.
49120 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49122 * modules/save-cwd (Depends-on): Likewise.
49124 * modules/openat (Files): Add lib/openat-die.c.
49125 (Depends-on): Remove error, exitfail.
49128 * modules/verify: New file.
49129 * MODULES.html.sh (Diagnostics <assert.h>): New section,
49130 with "verify" module.
49132 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49134 Sync from coreutils.
49136 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49137 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49138 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49139 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49140 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49141 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49142 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49143 Don't bother checking for string.h, stdlib.h, unistd.h.
49144 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49145 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49147 * m4/jm-macros.m4 (gl_MACROS): Likewise.
49148 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49150 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49151 (gl_GETDATE): Use it.
49153 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49155 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49157 Sync from coreutils.
49159 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49161 * lib/argmatch.h: Include verify.h
49162 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49163 (ARGMATCH_ASSERT): Remove; unused.
49164 * lib/canonicalize.c: Assume STDC_HEADERS.
49165 * lib/exclude.c: Include "strcase.h".
49166 * lib/regex_internal.h [!defined _LIBC]: Likewise.
49167 * lib/getusershell.c: Include stdio--.h rather than stdio.h
49169 (getusershell): Call fopen, not fopen_safer.
49170 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49171 Do not include unistd-safer.h.
49172 (save_cwd): Don't call fd_safer; no longer needed
49173 now that we include fcntl--.h.
49175 * lib/getdate.y (relative_time): New type.
49176 (RELATIVE_TIME_0): New constant.
49177 (parser_control): Use relative_time instead of doing it ourselves.
49178 (%union): Add new relative_time rel member.
49179 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49181 (relunit, relunit_snumber): Now of type rel.
49182 (zone, rel, relunit, get_date): Adjust to above changes.
49184 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49185 Do not include unistd-safer.h.
49186 (getloadavg): Don't call fd_safer; no longer needed
49187 now that we include fcntl--.h.
49189 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49190 (make_dir_parents): Treat ENOSYS like EEXIST.
49192 Improve quality of diagnostics on restore_cwd failure.
49193 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
49194 (make_dir_parents): Last arg is now int * (for errno), not bool *.
49195 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49196 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49197 each time through the loop. Do not diagnose restore_cwd failure;
49198 that is the caller's job (and perhaps the caller does not care).
49200 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49201 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49202 If the file already exists but is not a directory, don't bother
49203 to try to make its parents.
49204 Close potential file descriptor leak if we can't chdir("/") (!).
49205 Don't always return true if chdir($PWD) fails; return true only
49206 if the requested action was done successfully (except for the
49208 Don't log final directory unless we actually made it.
49209 Refactor to avoid duplicate code to fix up permissions.
49210 Don't attempt to fix up parent permissions if chdir($PWD) fails.
49212 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49213 to make it a bit faster and (I hope) clearer.
49214 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49215 Fix bug in formats like %2N.
49217 * lib/verify.h: New file.
49219 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49221 Sync from coreutils.
49222 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49224 2005-09-22 Jim Meyering <jim@meyering.net>
49226 Sync from coreutils.
49228 * m4/lstat.m4 (gl_FUNC_LSTAT):
49229 Use AC_LIBSOURCES to require lstat.c and lstat.h.
49230 Remove obsolete comment.
49231 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49232 * m4/xstrtod.m4: Likewise.
49234 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49236 2005-09-22 Jim Meyering <jim@meyering.net>
49238 Sync from coreutils.
49240 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49242 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49243 the .tm_year member, since otherwise gcc-4.0 would now warn about
49244 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49246 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49247 order to avoid an unsuppressible warning from gcc on 64-bit systems.
49249 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49250 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49251 when run in a time zone for which daylight savings time is in effect
49252 for the starting date.
49254 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49255 stop us from restricting permissions of just-created absolute-named
49257 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49258 to restore initial working directory.
49259 * lib/mkdir-p.c (make_dir_parents): New parameter:
49260 different_working_dir, to tell caller if/when we change the working
49261 directory and are unable to return to the initial one.
49262 * lib/mkdir-p.h (make_dir_parents): Update prototype.
49263 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49264 `return false'. This fixes a bug introduced on 2004-07-30.
49266 * lib/openat.c (fdopendir): Be sure to close the supplied
49267 file descriptor before returning. This makes our replacement
49268 implementation a little closer to Solaris's, where fdopendir
49269 ties the file descriptor to the returned DIR* pointer.
49270 * lib/openat.c (unlinkat): New function.
49271 * lib/openat.h (unlinkat): Add prototype.
49272 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49273 (openat_restore_fail): Rename from openat_restore_die.
49274 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49276 Provide an alternative to exiting immediately upon save_cwd or
49277 restore_cwd failure. Now, an application can arrange e.g.,
49278 to perform a longjump in that case.
49279 * lib/openat.c: Include dirname.h.
49280 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49281 (rpl_openat, fdopendir, fstatat): Call openat_save_die
49282 and openat_restore_die rather than calling error directly.
49283 Don't include "error.h" or "exitfail.h"; they're no longer needed.
49285 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49286 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49289 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49290 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49291 int utc, int nanoseconds);
49293 date should not have to allocate a megabyte of virtual memory to
49294 handle a format argument like +%1048575T. When implemented with
49295 strftime, it must allocate such a buffer, use strftime to fill it
49296 in, print it, then free it.
49297 With fprintftime, it simply prints everything and exits.
49298 With no need for memory allocation, that's one fewer way to fail.
49299 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49300 optional field width, not before, so we accept %9:z, not %:9z.
49301 (my_strftime): Be sure to use L_('x') for literals.
49303 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49304 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49305 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49306 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49307 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49308 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49309 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49310 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49311 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49312 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49313 * lib/xgethostname.c, lib/xreadlink.c:
49314 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49316 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49317 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49318 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49319 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49320 and don't include <sys/file.h>).
49322 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
49324 Sync from coreutils.
49326 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49327 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49328 [!LDAV_DONE]: Avoid unused variable warning.
49330 2005-09-21 Bruno Haible <bruno@clisp.org>
49332 * lib/unicodeio.h (unicode_to_mb): New declaration.
49334 2005-09-20 Derek Price <derek@ximbiot.com>
49336 * lib/getaddrinfo.c: Don't include <netdb.h> included from
49339 2005-09-20 Bruno Haible <bruno@clisp.org>
49341 * gnulib-tool: Remove trailing slashes from the values specified for
49342 --source-base, --m4-base, --tests-base, --aux-dir.
49343 Suggested by Simon Josefsson <jas@extundo.com>.
49345 2005-09-20 Bruno Haible <bruno@clisp.org>
49347 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49348 func_modules_to_filelist, func_import, func_create_testdir): Make all
49349 sorting results locale-independent, so that gnulib-cache.m4 doesn't
49350 change when gnulib-tool is invoked in a different locale.
49352 2005-09-19 Simon Josefsson <jas@extundo.com>
49354 * m4/socklen.m4: Fix typo.
49356 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49358 Use a consistent style for including <config.h>.
49359 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49360 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49361 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49362 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49363 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49364 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49365 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49366 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49367 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49368 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49369 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49370 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49371 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49372 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49373 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49374 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49375 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49376 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49377 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49378 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49379 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49380 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49381 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49382 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49383 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49384 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49385 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49386 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49387 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49388 lib/xstrtoumax.c, lib/yesno.c:
49389 Standardize inclusion of config.h.
49390 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49391 lib/inttostr.h: Removed inclusion of config.h from header files.
49392 * lib/inttostr.c: Adjusted in-tree users.
49393 * lib/timespec.h: Remove superfluous warning to include config.h.
49394 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49395 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49396 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49397 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49398 config.h with HAVE_CONFIG_H.
49400 2005-09-19 Jim Meyering <jim@meyering.net>
49402 * modules/pathmax (License): Change to LGPL.
49404 2005-09-19 Derek Price <derek@ximbiot.com>
49406 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49408 2005-09-19 Bruno Haible <bruno@clisp.org>
49410 * gnulib-tool (import): Provide default for --tests-base.
49412 2005-09-19 Bruno Haible <bruno@clisp.org>
49414 * doc/quote.texi: New file, extracted from gnulib.texi.
49415 * doc/ctime.texi: New file, extracted from gnulib.texi.
49416 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49417 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49418 * doc/gnulib.texi: Include them.
49420 2005-09-18 Bruno Haible <bruno@clisp.org>
49423 * gnulib-tool (func_readlink): New function.
49424 (func_ln_if_changed): Use it.
49426 2005-09-18 Bruno Haible <bruno@clisp.org>
49428 * gnulib-tool: Support --with-tests also with --import.
49429 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49430 (func_import): Use variables $testsbase and $inctests. Emit a
49431 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49432 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49433 SUBDIRS += $testsdir.
49434 (func_create_testdir): Update.
49436 2005-09-18 Bruno Haible <bruno@clisp.org>
49438 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49439 instead of $dry_run.
49440 (func_cp_if_changed, func_mv_if_changed): Remove functions.
49441 (func_ln_if_changed): Don't handle dry-run here.
49442 (func_import): In dry-run mode, detect more precisely which actions
49443 would be performed, and don't use "...ing" verbs.
49445 2005-09-18 Bruno Haible <bruno@clisp.org>
49447 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49448 (func_import): Use join on two temporary files instead of three nested
49449 loops, in order to determine which files are new or old.
49451 2005-09-18 Bruno Haible <bruno@clisp.org>
49453 * gnulib-tool (func_import): Comment out code that spits out the
49454 new files with --dry-run.
49456 2005-09-18 Bruno Haible <bruno@clisp.org>
49458 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49460 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49462 * lib/stat-time.h: New file.
49463 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49464 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
49465 in a different way.
49466 (timespec_cmp): New function.
49467 * lib/utimecmp.c: Include stat-time.h.
49468 (SYSCALL_RESOLUTION): Depend on whether various struct stat
49469 members exist, not on the obsolescent ST_MTIM_NSEC.
49470 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49472 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49474 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49476 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49478 * MODULES.html.sh (File system functions): Add stat-time.
49479 * modules/stat-time: New file.
49480 * modules/timespec (Files): Remove m4/st_mtim.m4; this
49481 is now done in a different way, by the stat-time module.
49482 * modules/utimecmp (Depends-on): Add stat-time.
49484 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
49486 * m4/st_mtim.m4: Remove. Superseded by...
49487 * m4/stat-time.m4: New file.
49488 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49489 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49491 2005-09-15 Derek Price <derek@ximbiot.com>
49493 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49495 2005-09-15 Derek Price <derek@ximbiot.com>
49497 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49498 * lib/regex_internal.c: Ditto, using this...
49499 (__GNUC_PREREQ): ...new macro.
49500 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49502 (__GNUC_PREREQ): ...this new macro.
49504 * lib/strstr.h: Include string.h. Define strstr as a macro here.
49506 2005-09-15 Derek Price <derek@ximbiot.com>
49507 Paul Eggert <eggert@cs.ucla.edu>
49509 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49510 changes, consolidating in...
49511 * lib/regex_internal.h: ...this file.
49513 2005-09-13 Jim Meyering <jim@meyering.net>
49515 * lib/canon-host.c: Filter through gnu indent and reword comments
49517 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49519 2005-09-13 Derek Price <derek@ximbiot.com>
49521 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49523 Reported by Jim Meyering <jim@meyering.net>.
49525 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
49527 * lib/base64.c: Typo.
49528 (base64_encode): Put b64str in initialized data section.
49530 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
49532 Merge glibc and coreutils changes into gnulib, plus a few
49534 * lib/md5.c: Use #error rather than a string.
49535 (CYCLIC): New macro, from glibc source. Use it instead of rol.
49536 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49537 (__attribute__): Define to empty for non recent-GCC.
49538 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49539 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49540 Renamed from their non-__ counterparts, with new macros replacing
49541 them if not _LIBC. Add __THROW attribute.
49543 (struct md5_ctx): Align buffer if using GCC.
49544 * lib/sha1.h (struct sha1_ctx): Likewise.
49545 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
49546 The old name was backwards.
49547 (NOTSWAP): Remove; not used.
49548 (rol): New macro, moved here from md5.h.
49549 (sha1_process_block): Remove a FIXME that doesn't make sense.
49551 2005-09-12 Derek Price <derek@ximbiot.com>
49553 Return usable errors from canon-host.
49554 * lib/canon-host.h: New file.
49555 * lib/canon-host.c (canon_host): Wrap...
49556 (canon_host_r): ...this new function, which now relies exclusively on
49558 (ch_strerror): New function.
49559 (last_cherror): New global.
49560 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49562 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
49564 (freeaddrinfo): Free ai->ai_canonname when set.
49566 2005-09-12 Derek Price <derek@ximbiot.com>
49568 Make canon-host require getaddrinfo.
49569 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49570 AC_LIBSOURCE canon-host.h. Call...
49571 (gl_PREREQ_CANON_HOST): ...this new function, which requires
49573 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49575 2005-09-12 Derek Price <derek@ximbiot.com>
49577 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
49579 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
49581 2005-09-12 Derek Price <derek@ximbiot.com>
49583 * lib/gai_strerror.c: Include config.h when available. Include
49584 getaddrinfo.h before other headers to test interface.
49585 Reported by Larry Jones <lawrence.jones@ugs.com>.
49587 2005-09-12 Derek Price <derek@ximbiot.com>
49588 Paul Eggert <eggert@cs.ucla.edu>
49590 * modules/glob (Files): Add glob-libc.h.
49592 2005-09-12 Derek Price <derek@ximbiot.com>
49593 Paul Eggert <eggert@cs.ucla.edu>
49595 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49596 glob_.h, glob-libc.h.
49597 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49599 2005-09-12 Derek Price <derek@ximbiot.com>
49600 Paul Eggert <eggert@cs.ucla.edu>
49602 * lib/glob-libc.h: Renamed from glob_.h. The new version is
49603 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49604 protecting things that should be done only in gnulib contexts.
49605 * lib/glob_.h: New file, containing only the glob things needed for
49607 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
49608 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49609 (glob, globfree, glob_pattern_p): Now defined simply in terms of
49610 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49611 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49612 and to respect the namespace rules better.
49614 2005-09-08 Simon Josefsson <jas@extundo.com>
49616 * modules/socklen: New file.
49618 2005-09-08 Simon Josefsson <jas@extundo.com>
49620 * m4/socklen.m4: New file.
49622 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49624 * modules/utimens (Files): Add m4/utimbuf.m4, since
49625 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49626 Reported by Sergey Poznyakoff.
49628 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49630 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49631 definitions, since that's the preferred style in glibc.
49632 Fix a minor spacing issue, and update copyright notice to match
49635 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49637 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49639 2005-09-06 Simon Josefsson <jas@extundo.com>
49641 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49642 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
49644 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49646 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49649 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49651 * config/srclist.txt: Add glibc bug 1302.
49653 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
49655 Change bitset word type from unsigned int to unsigned long int,
49656 as this has better performance on typical 64-bit hosts.
49657 Port bitset code to hosts with unusual word sizes.
49658 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49659 (build_collating_symbol):
49660 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49661 argument is a bitset. This is merely a style issue, but it makes
49662 it clearer that an entire array is expected.
49663 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49664 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49665 Port to the case where bitset_word is not the same as unsigned int.
49666 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49667 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49669 * lib/regexec.c (check_dst_limits_calc_pos_1,
49670 check_subexp_matching_top):
49671 (build_trtable, group_nodes_into_DFAstates):
49673 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49674 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49675 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49676 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49677 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49678 * lib/regcomp.c (optimize_subexps, lower_subexp):
49679 Work even if bitset_word has holes in its bitwise representation.
49680 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49681 * lib/regexec.c (check_dst_limits_calc_pos_1,
49682 check_subexp_matching_top):
49684 * lib/regex_internal.c (re_string_reconstruct):
49685 Don't assume UCHAR_MAX == 255.
49686 * lib/regex_internal.h (bitset_set_all): Likewise.
49687 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49689 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
49690 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49692 (BITSET_WORD_MAX): New macro.
49693 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49694 (bitset_set_all, bitset_copy): Now inline functions, not macros.
49695 (bitset_empty, bitset_copy):
49696 Prefer sizeof (bitset) to multiplying it out ourselves.
49697 (bitset_not_merge): Remove; unused.
49698 (bitset_contain): Return bool, not unsigned int with one bit on.
49699 All callers changed.
49700 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49701 alignment than re_node_set; do this by defining a new internal
49702 type struct dests_alloc and using it to allocate memory.
49704 2005-09-05 Bruno Haible <bruno@clisp.org>
49706 * gnulib-tool (func_import): Fix comparison in handling of symbolic
49709 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
49711 * modules/size_max (Makefile.am): Add size_max.h
49713 2005-09-04 Derek Price <derek@ximbiot.com>
49715 * gnulib-tool (func_import): Fix reversed $symbolic logic.
49717 2005-09-03 Simon Josefsson <jas@extundo.com>
49719 * gnulib-tool: Fix typo.
49721 2005-09-03 Simon Josefsson <jas@extundo.com>
49723 * config/srclist.txt: Add glibc bug 1293.
49725 2005-09-03 Derek Price <derek@ximbiot.com>
49727 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49728 From Larry Jones <lawrence.jones@ugs.com>.
49730 2005-09-02 Simon Josefsson <jas@extundo.com>
49732 * modules/socklen: New file.
49734 2005-09-02 Simon Josefsson <jas@extundo.com>
49736 * modules/havelib: New module.
49738 * modules/gettext, modules/iconv, modules/lock, modules/readline:
49741 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49743 Check for arithmetic overflow when calculating sizes, to prevent
49744 some buffer-overflow issues. These patches are conservative, in the
49745 sense that when I couldn't determine whether an overflow was possible,
49746 I inserted a run-time check.
49747 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49749 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49750 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49751 (re_xnrealloc, re_x2nrealloc): New inline functions.
49752 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49753 parse_bracket_exp):
49754 (build_equiv_class, build_charclass): Check for arithmetic overflow
49755 in size expression calculations.
49756 * lib/regex_internal.c (re_string_realloc_buffers):
49757 (build_wcs_upper_buffer, re_node_set_add_intersect):
49758 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49759 (re_dfa_add_node, register_state): Likewise.
49760 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49761 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49762 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49763 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49765 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49767 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49768 m4/ulonglong.m4. Problem reported by Martin Lambers.
49770 2005-09-02 Bruno Haible <bruno@clisp.org>
49772 Support for lib vs. lib64 distinction on biarch platforms.
49773 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49774 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49775 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49777 2005-09-02 Bruno Haible <bruno@clisp.org>
49779 * gnulib-tool (import): In the other first-use case, provide defaults
49782 2005-09-02 Bruno Haible <bruno@clisp.org>
49784 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49785 patches not yet found in the latest gettext release.
49787 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49789 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49790 to avoid a collision with bits/local_lim.h in glibc.
49791 All uses changed. Problem reported by Dmitry V. Levin in
49792 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49794 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49795 bugs in int versus size_t comparisons.
49796 (re_string_context_at): Fix bug where the code assumed that
49799 Use bool where appropriate.
49800 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49801 All callers changed.
49802 (calc_eclosure_iter): Likewise, for ROOT arg.
49803 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49804 (build_charclass_op): Likewise, for NON_MATCH arg.
49805 * lib/regex_internal.c (re_string_allocate, re_string_construct):
49806 (re_string_construct_common): Likewise, for ICASE arg.
49807 * lib/regexec.c (re_search_2_stub, re_search_stub):
49808 Likewise, for RET_LEN arg.
49809 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49810 (set_regs): Likewise, for FL_BACKTRACK arg.
49811 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49812 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49813 (calc_eclosure_iter, parse_bracket_exp):
49814 Use bool for internal variables that are booleans.
49815 * lib/regexec.c (re_search_internal, check_matching,
49816 proceed_next_node):
49817 (set_regs, build_sifted_states, sift_states_bkref):
49818 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49819 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49820 (find_collation_sequence_value):
49822 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49823 (re_node_set_compare):
49824 Return bool, not int. All callers changed.
49825 * lib/regexec.c (check_halt_node_context, check_dst_limits):
49826 (build_trtable, check_node_accept): Likewise.
49827 * lib/regex_internal.h: Include stdbool.h.
49829 Fix bugs uncovered when converting to bool.
49830 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49831 failure instead of charging ahead blindly.
49832 * lib/regex_internal.c (register_state): Likewise.
49833 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49834 for freeing internal storage.
49835 (group_nodes_into_DFA_states): Use unsigned int, not int, for
49836 bitset pieces used as boolean, to avoid undefined behavior
49837 on hosts that do int overflow checking.
49839 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49841 * config/srclist.txt: Add glibc bugs 1285-1287.
49843 2005-09-01 Jim Meyering <jim@meyering.net>
49845 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49846 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49847 Require gl_STAT_MACROS, too.
49849 2005-09-01 Bruno Haible <bruno@clisp.org>
49851 * gnulib-tool (import): In the first-use case, provide defaults.
49853 2005-09-01 Bruno Haible <bruno@clisp.org>
49855 * gnulib-tool (func_import): Remove the .tmp files.
49857 2005-09-01 Bruno Haible <bruno@clisp.org>
49859 * gnulib-tool (func_import): Fix handling of symbolic links.
49861 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49863 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49864 old glibc regex code mishandles strings longer than 2**31 bytes.
49865 This patch fixes this when the regex code is used in gnulib
49866 (i.e., outside glibc).
49868 This patch should not affect the use of the regex code inside
49869 glibc. No doubt this problem also needs to be handled for glibc
49870 as well, but the result will be an incompatible change to the
49871 glibc ABI, and the old ABI will have to be supported too. That
49872 can be the the subject for another patch.
49874 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49875 governing whether the rest of this patch is active. By default,
49876 the macro is disabled and the patch has no effect.
49877 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49878 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49879 (struct re_pattern_buffer, re_search, re_search_2, re_match):
49880 (re_match_2, re_set_registers): Use the new types.
49881 * lib/regex_internal.h (Idx, re_hashval_t): New types.
49882 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49884 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49885 (re_string_context_at, bin_tree_t, re_dfastate_t):
49886 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49887 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49888 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49889 (re_string_char_size_at, re_string_wchar_at):
49890 (re_string_elem_size_at):
49891 Use the new types and macros to port to 64-bit hosts.
49892 Use unsigned types for internal values, so that the code
49893 mostly works even for arrays larger than SSIZE_MAX.
49894 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49895 (search_duplicated_node, calc_eclosure_iter, fetch_number):
49896 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49897 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49898 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49899 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49900 (calc_inveclosure, parse_dup_op, build_range_exp):
49901 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49902 (fetch_number, create_token_tree, mark_opt_subexp):
49904 * lib/regex_internal.c (re_string_construct_common,
49905 create_ci_newstate):
49906 (create_cd_newstate, re_string_allocate, re_string_construct):
49907 (re_string_realloc_buffers, build_wcs_upper_buffer):
49908 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49909 (re_string_reconstruct, re_string_peek_byte_case):
49910 (re_string_fetch_byte_case, re_string_context_at):
49911 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49912 (re_node_set_init_copy, re_node_set_add_intersect):
49913 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49914 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49915 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49916 (re_acquire_state, re_acquire_state_context, register_state):
49918 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49919 search_cur_bkref_entry):
49920 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49921 (re_search_internal, re_search_2_stub, re_search_stub)
49922 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49923 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49924 (update_cur_sifted_state, check_dst_limits):
49925 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49926 (check_subexp_limits, sift_states_bkref, merge_state_array):
49927 (check_subexp_matching_top, get_subexp, get_subexp_sub):
49928 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49929 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49930 (expand_bkref_cache, check_node_accept_bytes):
49931 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49932 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49933 (acquire_init_state_context, check_halt_node_context):
49934 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49935 (sift_states_backward, clean_state_log_if_needed):
49936 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49937 (find_recover_state, transit_state_sb, transit_state_mb):
49938 (transit_state_bkref, build_trtable, match_ctx_clean):
49940 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49941 to work around an assumption that REG_MISSING is negative.
49943 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49944 (seek_collating_symbol_entry) [defined _LIBC]:
49945 (lookup_collation_sequence_value) [defined _LIBC]:
49946 (build_range_exp, build_collating_symbol) [defined _LIBC]:
49947 Use prototypes rather than old-style function definitions.
49948 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49949 (transit_state_sb) [0]:
49950 (find_collation_sequence_value) [defined _LIBC]: Likewise.
49952 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49955 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49956 (optimize_subexps, lower_subexp):
49957 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49958 since the signed shift might overflow. Use 1u<<31 instead.
49959 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49961 * lib/regexec.c (check_dst_limits_calc_pos_1,
49962 check_subexp_matching_top): Likewise.
49964 * lib/regcomp.c (optimize_subexps, lower_subexp):
49965 Use CHAR_BIT rather than 8, for clarity.
49966 * lib/regexec.c (check_dst_limits_calc_pos_1):
49967 (check_subexp_matching_top): Likewise.
49968 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49969 have to worry about portability issues when shifting it left.
49970 Remove no-longer-needed test for table_size > 0.
49971 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49972 in a word, as the resulting behavior is undefined.
49973 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49974 in one case, a <= should have been an <, and in another case the
49975 whole test was missing.
49976 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
49977 the standard name CHAR_BIT.
49978 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49979 this is not true on one's complement and signed-magnitude hosts.
49981 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49983 (struct re_dfa_t): Remove unused member states_alloc.
49984 * lib/regcomp.c (init_dfa): Don't initialize unused members.
49986 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49988 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49989 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
49990 and large-file glibc and in 32-bit large-file Solaris.
49992 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49994 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49995 lengths fit in regoff_t; this isn't true if regoff_t is the same
49997 * lib/regex.c (re_search_internal): 5th arg is LAST_START
49998 (= START + RANGE) instead of RANGE. This avoids overflow
49999 problems when regoff_t is the same width as size_t.
50000 All callers changed.
50001 (re_search_2_stub): Check for overflow when adding the
50002 sizes of the two strings.
50003 (re_search_stub): Check for overflow when adding START
50004 to RANGE; if it occurs, substitute the extreme value.
50006 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
50008 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50010 2005-08-31 Jim Meyering <jim@meyering.net>
50012 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50013 a pointer-to-const.
50014 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50015 (register_state): Likewise.
50016 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50017 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50018 (group_nodes_into_DFAstates): Likewise.
50020 2005-08-31 Jim Meyering <jim@meyering.net>
50022 * check-module: Add a FIXME comment.
50024 2005-08-31 Eric Blake <ebb9@byu.net>
50026 * modules/unistd-safer (Files): Add unistd--.h.
50027 * modules/stdio-safer (Files): Add stdio--.h.
50029 2005-08-31 Derek Price <derek@ximbiot.com>
50031 * lib/getdelim.c (getdelim): Return EOF on EOF.
50032 Reported by Larry Jones <lawrence.jones@ugs.com>.
50034 2005-08-31 Bruno Haible <bruno@clisp.org>
50036 Avoid unnecessary diffs in the generated lib/Makefile.am.
50037 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50038 the generated files.
50039 (func_import): Don't set cmd.
50041 2005-08-31 Bruno Haible <bruno@clisp.org>
50043 * lib/strstr.c: Include <stddef.h>, for NULL.
50044 * lib/strcasestr.c: Likewise.
50045 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50047 2005-08-31 Bruno Haible <bruno@clisp.org>
50049 * gnulib-tool: New option --macro-prefix.
50050 (func_import): Use macro_prefix.
50051 (import): Handle option --macro-prefix.
50053 2005-08-31 Bruno Haible <bruno@clisp.org>
50055 * gnulib-tool (import): Rename most ac_* variables to cached_*.
50056 Also use new variables cached_lgpl, cached_libtool.
50058 2005-08-31 Bruno Haible <bruno@clisp.org>
50060 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50061 always instantiating them.
50063 2005-08-31 Bruno Haible <bruno@clisp.org>
50065 * gnulib-tool (func_import): Read the previous cached settings
50066 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50067 earlier added by gnulib but are now dropped. Warn when a gnulib file
50068 overwrites a non-gnulib file.
50070 2005-08-31 Bruno Haible <bruno@clisp.org>
50072 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50073 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50074 projects that don't keep autogenerated files in CVS. Put into
50075 actioncmd only the specified modules, not the transitive closure.
50077 2005-08-31 Bruno Haible <bruno@clisp.org>
50079 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50080 Create directories that shall be filled.
50081 (import): Don't look for gl_* macros in configure.ac. Recurse across
50082 all directories containing a gnulib-cache.m4 files, if meaningful.
50084 2005-08-31 Bruno Haible <bruno@clisp.org>
50086 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50087 (import): Set seen_libtool when we see gl_LIBTOOL.
50089 2005-08-31 Bruno Haible <bruno@clisp.org>
50091 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50092 declaration macro definitions from generated gnulib.m4.
50094 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
50096 * lib/iconvme.h: Add prototype for iconv_alloc.
50098 2005-08-29 Simon Josefsson <jas@extundo.com>
50100 * lib/iconvme.c: Fix errno.
50102 2005-08-29 Bruno Haible <bruno@clisp.org>
50104 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50105 that it works when the directory contains spaces.
50107 2005-08-29 Bruno Haible <bruno@clisp.org>
50109 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50111 2005-08-29 Bruno Haible <bruno@clisp.org>
50113 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50116 2005-08-29 Bruno Haible <bruno@clisp.org>
50117 and Stepan Kasal <kasal@ucw.cz>
50119 * check-module: If more parameters are given, check each of them
50120 separately; add more exceptions, as noted by Jim Meyering.
50121 (check_module): New procedure.
50122 (%exempt_header): Now contains all exceptions.
50124 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
50126 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50128 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
50130 * lib/iconvme.c: Split iconv_string into iconv_alloc.
50132 2005-08-28 Bruno Haible <bruno@clisp.org>
50134 * m4/gnulib-tool.m4: New file.
50136 2005-08-27 Jim Meyering <jim@meyering.net>
50138 * modules/unistd-safer (Files): Add pipe-safer.c.
50139 * modules/fcntl-safer (Files): Add creat-safer.c.
50141 2005-08-27 Jim Meyering <jim@meyering.net>
50143 * m4/stdlib-safer.m4: New file. From coreutils.
50144 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50145 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50146 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50147 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50148 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50150 2005-08-27 Jim Meyering <jim@meyering.net>
50152 * lib/fopen-safer.c: Merge minor changes from coreutils.
50153 * lib/dup-safer.c: Likewise.
50154 * lib/fd-safer.c: Likewise.
50156 Merge from coreutils.
50157 * lib/stdio--.h: New file.
50158 * lib/stdlib--.h: New file.
50159 * lib/mkstemp-safer.c: New file.
50161 GNU tar needs these.
50162 * lib/pipe-safer.c: New file.
50163 * lib/creat-safer.c: New file.
50164 * lib/fcntl--.h (creat): Define to creat_safer.
50165 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50166 * lib/unistd--.h (pipe): Define to pipe_safer.
50167 * lib/unistd-safer.h: Declare pipe_safer.
50169 2005-08-26 Simon Josefsson <jas@extundo.com>
50171 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50172 Haible <bruno@clisp.org>.
50174 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
50176 * lib/regex_internal.h: Remove all references to
50177 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50179 (bitset_not, bitset_merge, bitset_not_merge):
50180 (bitset_mask, re_string_allocate, re_string_construct):
50181 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50182 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50183 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50184 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50185 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50186 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50187 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50188 (re_acquire_state_context):
50189 Remove unnecessary forward decls.
50190 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50191 Put __attribute at function definition,
50192 now that the function decl has been removed.
50193 * lib/regex_internal.c (re_string_peek_byte_case):
50194 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50197 2005-08-25 Stepan Kasal <kasal@ucw.cz>
50199 * m4/regex.m4: Add AC_PREREQ(2.50).
50200 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50202 2005-08-25 Simon Josefsson <jas@extundo.com>
50204 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50207 2005-08-25 Simon Josefsson <jas@extundo.com>
50209 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
50210 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
50211 GLIBC specific code.
50213 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50215 Make regex safe for g++. This fixes one real bug (an "err"
50216 that should have been "*err"). g++ problem reported by
50218 * lib/regex_internal.h (re_calloc): New macro, consistent with
50219 re_malloc etc. All callers of calloc changed to use re_calloc.
50220 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50221 not int. All callers changed.
50222 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50223 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50224 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50225 (find_recover_state): Change "err" to "*err"; this fixes what
50226 appears to be a real bug.
50227 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50230 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50232 * modules/regex (Depends-on): Add malloc, since the code
50233 assumes that !malloc(0) means failure.
50235 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50237 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50239 alloca modernization/simplification for regex.
50240 * lib/regex.c: Remove portability cruft for alloca. This no longer
50241 needs to be at the start of the file, and can be moved into
50242 regex_internal.h and simplified.
50243 * lib/regex_internal.h: Include <alloca.h>.
50244 (__libc_use_alloca) [!defined _LIBC]: New macro.
50245 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50246 now works outside glibc.
50248 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50250 * config/srclist.txt: Add glibc bugs 1241, 1245.
50252 2005-08-25 Jim Meyering <jim@meyering.net>
50254 * lib/open-safer.c: Include <config.h>.
50255 Otherwise, we'd lose LARGEFILE support in any file using
50258 2005-08-25 Bruno Haible <bruno@clisp.org>
50260 * m4/minmax.m4: Require autoconf 2.52.
50261 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50262 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50263 alternatives of translit over the alphabet.
50264 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50266 2005-08-24 Simon Josefsson <jas@extundo.com>
50268 * tests/test-getpass.c: New file.
50270 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50272 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50273 for GNU regex features.
50275 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50277 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50278 * lib/regex.h (regerror): Likewise.
50280 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50281 requires this. (The code never needed it.)
50283 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50284 All uses of recently-renamed identifiers changed to use the new,
50285 POSIX-compliant names. The code will build and run just fine
50286 without these changes, but it's better to eat our own dog food
50287 and use the standard-conforming names.
50289 * lib/regex.h: Fix a multitude of POSIX name space violations.
50290 These changes have an effect only for programs that define
50291 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50292 do not change anything for programs compiled in the normal way.
50293 Also, there is no effect on the ABI.
50295 (_REGEX_SOURCE): New macro.
50296 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50297 defined and _GNU_SOURCE is not; this fixes a name space violation.
50299 Rename the following macros to obey POSIX requirements.
50300 The old names are still visible as macros if _REGEX_SOURCE is defined.
50301 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50302 RE_BACKSLASH_ESCAPE_IN_LISTS.
50303 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50304 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50305 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50306 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50307 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50308 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50309 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50310 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50311 (REG_INTERVALS): renamed from RE_INTERVALS.
50312 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50313 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50314 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50315 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50316 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50317 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50318 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50319 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50320 RE_UNMATCHED_RIGHT_PAREN_ORD.
50321 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50322 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50323 (REG_DEBUG): renamed from RE_DEBUG.
50324 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50325 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
50326 unusual, since we can't clash with the POSIX REG_ICASE.
50327 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50328 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50329 (REG_NO_SUB): renamed from RE_NO_SUB.
50330 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50331 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50332 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50333 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50334 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50335 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50336 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50337 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50338 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50339 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50340 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50341 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50342 RE_SYNTAX_POSIX_MINIMAL_BASIC.
50343 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50344 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50345 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50346 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
50347 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50348 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50349 (REG_FIXED): Renamed from REGS_FIXED.
50350 (REG_NREGS): Renamed from RE_NREGS.
50352 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50353 of other REG_* macros, since POSIX says the user is allowed to
50354 #undef these macros selectively.
50356 (reg_errcode_t): Update comment stating what other tables need
50359 Rename the following enum values to obey POSIX requirements.
50360 The old names are still visible as macros.
50361 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
50362 is not defined, since GNU is supposed to be a superset of POSIX as
50363 much as possible, and since we want reg_errcode_t to be a signed
50364 type for implementation consistency.
50365 (_REG_NOERROR): Renamed from REG_NOERROR.
50366 (_REG_NOMATCH): Renamed from REG_NOMATCH.
50367 (_REG_BADPAT): Renamed from REG_BADPAT.
50368 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50369 (_REG_ECTYPE): Renamed from REG_ECTYPE.
50370 (_REG_EESCAPE): Renamed from REG_EESCAPE.
50371 (_REG_ESUBREG): Renamed from REG_ESUBREG.
50372 (_REG_EBRACK): Renamed from REG_EBRACK.
50373 (_REG_EPAREN): Renamed from REG_EPAREN.
50374 (_REG_EBRACE): Renamed from REG_EBRACE.
50375 (_REG_BADBR): Renamed from REG_BADBR.
50376 (_REG_ERANGE): Renamed from REG_ERANGE.
50377 (_REG_ESPACE): Renamed from REG_ESPACE.
50378 (_REG_BADRPT): Renamed from REG_BADRPT.
50379 (_REG_EEND): Renamed from REG_EEND.
50380 (_REG_ESIZE): Renamed from REG_ESIZE.
50381 (_REG_ERPAREN): Renamed from REG_ERPAREN.
50382 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50383 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50384 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50385 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50387 (_REG_RE_NAME, _REG_RM_NAME): New macros.
50388 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
50389 changed. But support the old name if the new one is not defined
50390 and if _REGEX_SOURCE.
50392 Change the following member names in struct re_pattern_buffer.
50393 The old names are still supported if !_REGEX_SOURCE.
50394 The new names are always supported, regardless of _REGEX_SOURCE.
50395 (re_buffer): Renamed from buffer.
50396 (re_allocated): Renamed from allocated.
50397 (re_used): Renamed from used.
50398 (re_syntax): Renamed from syntax.
50399 (re_fastmap): Renamed from fastmap.
50400 (re_translate): Renamed from translate.
50401 (re_can_be_null): Renamed from can_be_null.
50402 (re_regs_allocated): Renamed from regs_allocated.
50403 (re_fastmap_accurate): Renamed from fastmap_accurate.
50404 (re_no_sub): Renamed from no_sub.
50405 (re_not_bol): Renamed from not_bol.
50406 (re_not_eol): Renamed from not_eol.
50407 (re_newline_anchor): Renamed from newline_anchor.
50409 Change the following member names in struct re_registers.
50410 The old names are still supported if !_REGEX_SOURCE.
50411 The new names are always supported, regardless of _REGEX_SOURCE.
50412 (rm_num_regs): Renamed from num_regs.
50413 (rm_start): Renamed from start.
50414 (rm_end): Renamed from end.
50416 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50417 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50418 Prepend __ to parameter names.
50420 Undo yesterday's changes.
50422 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50424 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50425 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
50428 2005-08-24 Jim Meyering <jim@meyering.net>
50430 Sync from coreutils.
50431 * m4/fcntl-safer.m4: New file.
50433 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50434 and object files for this module.
50436 2005-08-24 Jim Meyering <jim@meyering.net>
50438 Sync from coreutils.
50439 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50441 2005-08-24 Jim Meyering <jim@meyering.net>
50443 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50444 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50446 2005-08-24 Jim Meyering <jim@meyering.net>
50448 * modules/fcntl-safer: New module.
50449 * modules/fts (Depends-on): Add fcntl-safer.
50450 * MODULES.html.sh (File descriptor based Input/Output):
50453 2005-08-24 Bruno Haible <bruno@clisp.org>
50455 Support for unit test modules.
50456 * modules/README: Mention tests modules.
50457 * modules/TEMPLATE-TESTS: New file.
50458 * gnulib-tool: New options --extract-tests-module, --with-tests and
50459 --tests-base (unused for the moment).
50460 (testsbase, inctests): New variables.
50461 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50462 (func_verify_module): Exclude TEMPLATE-TESTS.
50463 (func_verify_nontests_module, func_verify_tests_module): New functions.
50464 (func_get_dependencies): Add implicit dependency for tests modules.
50465 (func_get_tests_module): New function.
50466 (func_modules_transitive_closure): When --with-tests was specified,
50467 include the unit tests as well, unless explicitly avoided.
50468 (func_emit_lib_Makefile_am): Ignore the tests modules here.
50469 (func_emit_tests_Makefile_am): New function.
50470 (func_create_testdir): When --with-tests was specified, emit a
50472 * MODULES.html.sh (Future developments): Update.
50474 2005-08-24 Bruno Haible <bruno@clisp.org>
50476 * modules/tls-tests: New file.
50477 * tests/test-tls.c: New file, from GNU gettext.
50479 2005-08-24 Bruno Haible <bruno@clisp.org>
50481 * modules/lock-tests: New file.
50482 * tests/test-lock.c: New file, from GNU gettext.
50484 2005-08-24 Bruno Haible <bruno@clisp.org>
50486 * lib/lock.h: Add multiple inclusion guard.
50487 * lib/tls.h: Add multiple inclusion guard.
50489 2005-08-24 Bruno Haible <bruno@clisp.org>
50491 * gnulib-tool: Add support for the --aux-dir option to
50492 --create-testdir, --create-megatestdir, --test, --megatest.
50493 (func_create_testdir, func_create_megatestdir): Optionally emit a
50494 AC_CONFIG_AUX_DIR directive.
50495 (create-testdir, create-megatestdir, test, megatest): Provide a
50496 default value for $auxdir.
50498 2005-08-24 Bruno Haible <bruno@clisp.org>
50500 * gnulib-tool (import): Use compound statement instead of subshell
50503 2005-08-24 Bruno Haible <bruno@clisp.org>
50505 * gnulib-tool (import): Change --aux-dir default to "build-aux".
50507 2005-08-24 Bruno Haible <bruno@clisp.org>
50509 * gnulib-tool (func_version): Update.
50511 2005-08-24 Bruno Haible <bruno@clisp.org>
50513 * gnulib-tool (func_import, func_create_testdir,
50514 func_create_megatestdir): Quote all autoconf macro arguments.
50516 2005-08-24 Bruno Haible <bruno@clisp.org>
50518 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50519 option --force, because --force causes the aclocal.m4 of each
50520 subdirectory to be newer than the corresponding config.h.in.
50522 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50524 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50525 All contents moved to gl_REGEX.
50526 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50527 assume that it does.
50529 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50531 * lib/regex.h (REG_NOSYS)
50532 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50533 Define, since POSIX requires it as of 2001.
50535 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50536 New private symbol, used to keep the enum signed in all cases.
50537 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50539 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50541 * lib/regex_internal.c (re_string_skip_chars, register_state):
50543 Remove forward decls; no longer needed now that we use prototypes.
50544 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50545 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50546 (clean_state_log_if_needed): Likewise.
50548 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50550 * config/srclist.txt: Add glibc bugs 1231-1233.
50552 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50554 Fix problems reported by Sam Steingold in
50555 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50556 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50557 assumed that reg_errcode_t is a signed type, which is not
50558 necessarily true if _XOPEN_SOURCE is not defined.
50559 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50560 since some compilers warn about it otherwise.
50562 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50564 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50565 (init_word_char, create_initial_state, duplicate_node_closure):
50566 (fetch_token, peek_token_bracket, build_range_exp):
50567 (build_collating_symbol): Remove forward decls; no longer needed
50568 now that we use prototypes.
50571 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50572 (re_compile_fastmap_iter, regcomp, regerror, regfree):
50573 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50574 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50575 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50576 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50577 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50578 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50579 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50580 (build_range_exp, build_collating_symbol, parse_bracket_exp):
50581 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50582 (build_charclass, build_charclass_op, fetch_number, create_tree):
50583 (create_token_tree, mark_opt_subexp, duplicate_tree):
50584 Use prototypes rather than old-style definitions.
50586 * lib/regex_internal.c:
50587 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50588 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50589 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50590 (re_string_reconstruct, re_string_peek_byte_case):
50591 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50592 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50593 (re_node_set_init_copy, re_node_set_add_intersect):
50594 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50595 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50596 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50597 (re_acquire_state, re_acquire_state_context, register_state):
50598 (create_ci_newstate, create_cd_newstate, free_state):
50600 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50602 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50603 (re_search_internal, prune_impossible_nodes):
50604 (acquire_init_state_context, check_matching, static):
50605 (check_halt_node_context, check_halt_state_context, proceed_next_node):
50606 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50607 (update_regs, sift_states_backward, build_sifted_states):
50608 (clean_state_log_if_needed, merge_state_array):
50609 (update_cur_sifted_state, add_epsilon_src_nodes):
50610 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50611 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50612 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50613 (find_recover_state, check_subexp_matching_top, transit_state_mb):
50614 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50615 (check_arrival, check_arrival_add_next_nodes):
50616 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50617 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50618 (check_node_accept_bytes, check_node_accept, extend_buffers):
50619 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50620 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50624 * lib/regex_internal.h:
50625 (re_string_allocate, re_string_construct, re_string_reconstruct):
50626 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50627 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50628 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50629 (re_string_context_at, re_string_peek_byte_case):
50630 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50631 is defined, since we now use prototypes always.
50633 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
50634 C89 or better. All uses removed.
50636 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50638 * config/srclist.txt: Add glibc bugs 1220-1227.
50640 2005-08-20 Jim Meyering <jim@meyering.net>
50642 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50643 of unused local, dfa.
50645 2005-08-20 Bruno Haible <bruno@clisp.org>
50647 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50649 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50651 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50652 (re_node_set_insert_last, re_dfa_add_node):
50653 Rename local variables to avoid GCC shadowing warnings.
50655 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50657 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50658 [defined lint]: Suppress bogus uninitialized-variable warnings.
50660 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50661 and let the caller return REG_ESPACE if out of space. This
50662 removes an uninitialied-variable warning with GCC 4.0.1, and also
50663 avoids taking the address of a local variable. All callers
50666 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50668 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50669 $LIBCSRC/posix/regexec.c.
50670 Add glibc bug 1217 for regcomp.c.
50672 2005-08-19 Jim Meyering <jim@meyering.net>
50674 * lib/regexec.c (proceed_next_node): Redo local variables to
50675 avoid GCC shadowing warnings.
50677 2005-08-18 Bruno Haible <bruno@clisp.org>
50679 * lib/strstr.c (strstr): Fix return value in multibyte case.
50680 * lib/strcasestr.c (strcasestr): Likewise.
50682 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
50684 * lib/regex.h: Remove useless space-before-tab. From coreutils.
50686 2005-08-17 Jim Meyering <jim@meyering.net>
50688 Make the %s format (seconds since the epoch) work for a negative
50689 number and when used with a zero-padded field width, e.g. %015s.
50691 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50692 label so that it precedes the code to set `digits'. Otherwise,
50693 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
50694 print `00-22'. Now, it prints `-0022', as it should.
50696 2005-08-17 Bruno Haible <bruno@clisp.org>
50698 * modules/strstr (Files): Add m4/mbrtowc.m4.
50699 (Depends-on): Add mbuiter.
50701 2005-08-17 Bruno Haible <bruno@clisp.org>
50703 * modules/strcasestr: New file.
50704 * MODULES.html.sh (String handling, based on ANSI C 89): Add
50707 2005-08-17 Bruno Haible <bruno@clisp.org>
50709 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50711 2005-08-17 Bruno Haible <bruno@clisp.org>
50713 * modules/mbuiter: New file.
50714 * MODULES.html.sh (Extended multibyte and wide character utilities):
50717 2005-08-17 Bruno Haible <bruno@clisp.org>
50719 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50720 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50722 2005-08-17 Bruno Haible <bruno@clisp.org>
50724 * m4/strcasestr.m4: New file.
50726 2005-08-17 Bruno Haible <bruno@clisp.org>
50728 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50729 * lib/strstr.c: Completely rewritten, with multibyte locale support.
50731 2005-08-17 Bruno Haible <bruno@clisp.org>
50733 * lib/strcasestr.h: New file.
50734 * lib/strcasestr.c: New file.
50736 2005-08-17 Bruno Haible <bruno@clisp.org>
50738 * lib/strcasecmp.c: Use mbuiter.h.
50740 2005-08-17 Bruno Haible <bruno@clisp.org>
50742 * lib/mbuiter.h: New file.
50744 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
50746 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50747 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
50748 and gl_GETOPT are both invoked via different paths (as happens
50749 with GNU tar CVS because it uses both argp and getopt), the former
50752 2005-08-16 Bruno Haible <bruno@clisp.org>
50754 * modules/tls: New file.
50755 * MODULES.html.sh (Multithreading): Add tls.
50757 2005-08-16 Bruno Haible <bruno@clisp.org>
50759 * modules/strnlen1: New file.
50760 * MODULES.html.sh (String handling): Add strnlen1.
50762 2005-08-16 Bruno Haible <bruno@clisp.org>
50764 * modules/strcase (Files): Add m4/mbrtowc.m4.
50765 (Depends-on): Add strnlen1, mbchar.
50767 2005-08-16 Bruno Haible <bruno@clisp.org>
50769 * modules/mbiter: New file.
50770 * MODULES.html.sh (Extended multibyte and wide character utilities):
50773 2005-08-16 Bruno Haible <bruno@clisp.org>
50775 * modules/mbfile: New file.
50776 * MODULES.html.sh (Extended multibyte and wide character utilities):
50779 2005-08-16 Bruno Haible <bruno@clisp.org>
50781 * modules/mbchar: New file.
50782 * MODULES.html.sh (Extended multibyte and wide character utilities):
50785 2005-08-16 Bruno Haible <bruno@clisp.org>
50787 * m4/tls.m4: New file, from GNU gettext.
50789 2005-08-16 Bruno Haible <bruno@clisp.org>
50791 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50793 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50795 2005-08-16 Bruno Haible <bruno@clisp.org>
50797 * m4/mbiter.m4: New file.
50799 2005-08-16 Bruno Haible <bruno@clisp.org>
50801 * m4/mbfile.m4: New file.
50803 2005-08-16 Bruno Haible <bruno@clisp.org>
50805 * m4/mbchar.m4: New file.
50807 2005-08-16 Bruno Haible <bruno@clisp.org>
50809 * lib/tls.h: New file, from GNU gettext.
50810 * lib/tls.c: New file, from GNU gettext.
50812 2005-08-16 Bruno Haible <bruno@clisp.org>
50814 * lib/strnlen1.h: New file.
50815 * lib/strnlen1.c: New file.
50817 2005-08-16 Bruno Haible <bruno@clisp.org>
50819 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50820 (mbi_init): Update.
50821 (mbi_avail, mbi_advance): Let the iteration end before the terminating
50822 NUL byte, not after it.
50824 2005-08-16 Bruno Haible <bruno@clisp.org>
50826 * lib/strcase.h (strcasecmp): Add note in comments.
50827 * lib/strncasecmp.c: Use code from strcasecmp.c.
50828 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50829 (strcasecmp): Work correctly in multibyte locales.
50831 2005-08-16 Bruno Haible <bruno@clisp.org>
50833 * lib/mbiter.h: New file.
50835 2005-08-16 Bruno Haible <bruno@clisp.org>
50837 * lib/mbfile.h: New file.
50839 2005-08-16 Bruno Haible <bruno@clisp.org>
50841 * lib/mbchar.h: New file.
50842 * lib/mbchar.c: New file.
50844 2005-08-16 Bruno Haible <bruno@clisp.org>
50846 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50847 the valid ones. Makes the comparison operations transitive:
50848 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50849 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50851 2005-08-15 Simon Josefsson <jas@extundo.com>
50853 * modules/ssize_t (License): Change to 'unlimited'.
50855 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50857 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
50859 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50860 Add comments for each pending glibc patch.
50862 2005-08-15 Bruno Haible <bruno@clisp.org>
50864 * lib/regex.h (__restrict_arr): Don't define to __restrict if
50865 __cplusplus is defined.
50867 2005-08-14 Jim Meyering <jim@meyering.net>
50869 Sync from coreutils.
50871 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50872 Use the hash-table-based cycle-detection code not just when
50873 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50874 Reported by James Youngman in
50875 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50876 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50877 FTS_TIGHT_CYCLE_CHECK.
50878 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50879 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50881 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50882 * lib/fts.c (fd_safer): Remove decl.
50883 Include fcntl--.h rather than unistd-safer.h
50884 (fts_safe_changedir): Don't call fd_safer; no longer needed
50885 now that we include fcntl--.h.
50887 2005-08-12 Simon Josefsson <jas@extundo.com>
50889 * modules/getndelim2: Use ssize_t module.
50890 * modules/getnline: Likewise.
50891 * modules/safe-read: Likewise.
50892 * modules/xreadlink: Likewise.
50894 * modules/ssize_t: New file.
50896 2005-08-12 Simon Josefsson <jas@extundo.com>
50898 * m4/readline.m4: Look for termcap, curses or ncurses if required.
50900 2005-08-12 Simon Josefsson <jas@extundo.com>
50902 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50905 2005-08-12 Simon Josefsson <jas@extundo.com>
50907 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50908 readline, getdelim and check_version.
50909 (Support for systems lacking ISO C 99: Sizes of integer types):
50912 2005-08-12 Bruno Haible <bruno@clisp.org>
50914 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50916 2005-08-11 Simon Josefsson <jas@extundo.com>
50918 * modules/readline: New file.
50920 * modules/strnlen (Files): Add strnlen.h.
50922 2005-08-11 Simon Josefsson <jas@extundo.com>
50924 * m4/readline.m4: New file.
50926 2005-08-11 Simon Josefsson <jas@extundo.com>
50928 * lib/readline.h, readline.c: New file.
50930 2005-08-11 Simon Josefsson <jas@extundo.com>
50932 * doc/gnulib.texi (Initial import, Finishing touches): Mention
50935 2005-08-11 Bruno Haible <bruno@clisp.org>
50937 * lib/strnlen.h (strnlen): Change parameter name to match comment.
50939 2005-08-10 Stepan Kasal <kasal@ucw.cz>
50941 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50943 2005-08-10 Simon Josefsson <jas@extundo.com>
50945 * tests/test-iconvme.c: New file.
50947 2005-08-10 Simon Josefsson <jas@extundo.com>
50949 * m4/strnlen.m4: New file.
50951 * m4/strndup.m4: Don't check for strnlen declaration, done in
50954 2005-08-10 Simon Josefsson <jas@extundo.com>
50956 * lib/strndup.c: Use strnlen.h.
50958 * lib/strnlen.h: New file.
50960 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
50964 2005-08-02 Simon Josefsson <jas@extundo.com>
50966 * modules/readline: New file.
50968 2005-08-02 Simon Josefsson <jas@extundo.com>
50970 * modules/getdelim: New file.
50972 * modules/getline: Rewrite, don't use getndelim2.
50974 2005-08-02 Simon Josefsson <jas@extundo.com>
50976 * m4/getline.m4: Separate out getdelim stuff into separate module.
50978 * m4/getdelim.m4: New file.
50980 2005-08-02 Simon Josefsson <jas@extundo.com>
50982 * lib/getline.h, getline.c: Rewrite.
50984 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50986 2005-07-31 Bruno Haible <bruno@clisp.org>
50988 * lib/lock.h (gl_lock_initializer): New macro.
50989 (gl_lock_define_initialized): Use it.
50990 (gl_rwlock_initializer): New macro.
50991 (gl_rwlock_define_initialized): Use it.
50992 (gl_recursive_lock_initializer): New macro.
50993 (gl_recursive_lock_define_initialized): Use it.
50995 2005-07-30 Karl Berry <karl@gnu.org>
50997 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50998 Report from Ben Pfaff, regarding getopt.
51000 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
51002 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51004 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51005 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
51006 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51007 (gl_GETOPT): Use the new macros. Most of the implementation
51008 is moved to the new macros. This is for programs like Emacs
51009 that don't want all the functionality of gl_GETOPT.
51011 2005-07-26 Bruno Haible <bruno@clisp.org>
51013 * m4/lock.m4: Update from GNU gettext.
51015 2005-07-26 Bruno Haible <bruno@clisp.org>
51017 * lib/lock.h: Update from GNU gettext.
51018 * lib/lock.c: Update from GNU gettext.
51020 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
51022 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51023 obsolescent AC_TRY_RUN. Include the default includes files, for
51026 2005-07-24 Bruno Haible <bruno@clisp.org>
51028 * modules/visibility: New file.
51029 * MODULES.html.sh (Misc): Add visibility.
51031 2005-07-24 Bruno Haible <bruno@clisp.org>
51033 * m4/visibility.m4: New file.
51035 2005-07-24 Bruno Haible <bruno@clisp.org>
51037 * doc/visibility.texi: New file.
51039 2005-07-22 Bruno Haible <bruno@clisp.org>
51041 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51042 $(ALLOCA_H), redundant through BUILT_SOURCES.
51043 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51044 redundant through BUILT_SOURCES.
51045 * modules/byteswap (Makefile.am): Remove explicit dependency on
51046 $(BYTESWAP_H), redundant through BUILT_SOURCES.
51047 * modules/fnmatch (Makefile.am): Remove explicit dependency on
51048 $(FNMATCH_H), redundant through BUILT_SOURCES.
51049 * modules/getopt (Makefile.am): Remove explicit dependency on
51050 $(GETOPT_H), redundant through BUILT_SOURCES.
51051 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51052 redundant through BUILT_SOURCES.
51053 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51054 redundant through BUILT_SOURCES.
51055 * modules/stdbool (Makefile.am): Remove explicit dependency on
51056 $(STDBOOL_H), redundant through BUILT_SOURCES.
51057 * modules/stdint (Makefile.am): Remove explicit dependency on
51058 $(STDINT_H), redundant through BUILT_SOURCES.
51059 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51060 Remove explicit dependency on $(SYSEXITS_H).
51061 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51063 2005-07-18 Simon Josefsson <jas@extundo.com>
51065 * lib/check-version.c (check_version): Accept identical versions too.
51067 2005-07-18 Bruno Haible <bruno@clisp.org>
51069 * modules/lock: New file.
51070 * MODULES.html.sh (Multithreading): New section.
51072 2005-07-18 Bruno Haible <bruno@clisp.org>
51074 * m4/lock.m4: New file, from GNU gettext.
51076 2005-07-18 Bruno Haible <bruno@clisp.org>
51078 * lib/lock.h: New file, from GNU gettext.
51079 * lib/lock.c: New file, from GNU gettext.
51081 2005-07-18 Bruno Haible <bruno@clisp.org>
51083 * lib/lock.h (gl_once_t): New type.
51084 (gl_once_define, gl_once): New macros.
51085 * lib/lock.c (fresh_once): New variable.
51086 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51089 2005-07-16 Simon Josefsson <jas@extundo.com>
51091 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51092 workaround, suggested by Bruno.
51094 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
51096 * modules/xalloc (Depends-on): Add xalloc-die.
51097 * modules/xvasprintf (Depends-on): Add xalloc-die.
51099 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
51101 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51102 with a minor change.
51104 2005-07-15 Bruno Haible <bruno@clisp.org>
51106 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51107 When using lib/poll.c, define poll as rpl_poll.
51109 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
51111 * modules/argp (Depends-on): Remove unlocked-io.
51113 2005-07-14 Derek Price <derek@ximbiot.com>
51115 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
51116 for glob symlink bug.
51118 2005-07-14 Bruno Haible <bruno@clisp.org>
51120 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51121 Instead, test for *_unlocked function declarations directly.
51123 2005-07-11 Simon Josefsson <jas@extundo.com>
51125 * modules/size_max: New file.
51127 * modules/xsize: Depend on size_max module for size_max.m4.
51129 2005-07-11 Simon Josefsson <jas@extundo.com>
51131 * lib/size_max.h: New file.
51133 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
51135 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51136 copyright symbol and the year.
51137 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51138 (version_etc_va): Use parameterized copyright notice.
51139 Reword to conform to the current GNU coding standards.
51141 2005-07-11 Karl Berry <karl@gnu.org>
51143 * doc/gnulib.texi (Quoting): new node.
51144 (Initial import): more info, from Patrice.
51146 2005-07-11 Bruno Haible <bruno@clisp.org>
51148 * gnulib-tool (func_usage): Document option --avoid.
51149 (Command line options): Handle --avoid.
51150 (func_acceptable): New function.
51151 (func_modules_transitive_closure): Use it.
51153 2005-07-11 Bruno Haible <bruno@clisp.org>
51155 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51156 Reported by Jim Meyering.
51158 2005-07-10 Bruno Haible <bruno@clisp.org>
51160 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51161 Needed when size_t is smaller than 'unsigned int'.
51162 Reported by Paul Eggert.
51164 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
51166 * modules/argp (Depends-on): Add unlocked-io
51168 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
51170 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51173 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
51175 * config/srclist.txt: Comment out regcomp.c, since we have a porting
51178 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
51179 and Paul Eggert <eggert@cs.ucla.edu>
51181 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51182 in wint_t, not wchar_t. Remove now-unnecessary cast.
51184 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51186 * modules/regex (Files): Add lib/regex_internal.c,
51187 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51188 (Depends-on): Add extensions.
51189 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51191 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51193 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51195 * m4/same.m4 (gl_SAME): Likewise.
51196 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51198 * m4/regex.m4: Adjust to new libc regex implementation.
51199 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51200 all the .c and .h parts of (the new) regex.
51201 Quote the m4 stuff better.
51202 Check for RE_ICASE bug of old gnulib.
51203 Check for REG_STARTEND of recent libc.
51204 Rename local variables from jm_* to gl_*.
51205 Quote operand of "test -f".
51206 Say "recent enough" version of libc, not "version 2".
51207 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51208 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
51209 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51210 Remove check for btowc, isascii.
51211 Require AM_LANGINFO_CODESET.
51213 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51215 * lib/regex.c, regex.h: Sync from libc.
51216 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51218 New files, synced from libc, except that regex_internal.h
51219 currently has a small porting fix.
51221 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51223 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51224 regex_internal.c, regexec.c.
51225 Add regex_internal.h too, but as a comment, since the libc version
51226 is currently broken in gnulib mode.
51228 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
51230 Support programs like Emacs that use gnulib but not gettext.
51231 * MODULES.html.sh (Internationalization functions): Add gettext-h.
51232 * modules/gettext-h: New file.
51233 * modules/gettext (Files): Remove lib/gettext.h.
51234 (Depends-on): Add gettext-h.
51235 (Makefile.am): Remove lib_SOURCES.
51236 * modules/argmatch, modules/c-stack, modules/closeout:
51237 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51238 * modules/execute, modules/file-type, modules/getaddrinfo:
51239 * modules/getopt, modules/human, modules/javacomp:
51240 * modules/javaexec, modules/mkdir-p, modules/obstack:
51241 * modules/openat, modules/pagealign_alloc, modules/pipe:
51242 * modules/quotearg, modules/regex, modules/rpmatch:
51243 * modules/unicodeio, modules/userspec, modules/version-etc:
51244 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51246 Depend on gettext-h, not gettext.
51248 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
51250 * gnulib-tool (func_import): Add support for 'public domain' license.
51251 * modules/alloca, modules/atexit, modules/memmove:
51252 Now public domain, not GPL.
51253 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51254 * modules/realloc, modules/strerror, modules/strtod:
51257 2005-07-05 Bruno Haible <bruno@clisp.org>
51259 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51260 autoconf CVS. Needed for mingw.
51262 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51264 Remove the dependency of the strftime module on the tzset module.
51265 * modules/strftime (Depends-on): Remove dependency on tzset.
51267 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51269 Remove the dependency of the strftime module on the tzset module.
51270 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51271 gl_FUNC_TZSET_CLOBBER.
51273 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51275 Remove the dependency of the strftime module on the tzset module.
51276 * lib/strftime.c (my_strftime)
51277 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51278 Copy the input structure, to work around some of the bug with
51279 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
51280 Solaris releases, you should also use the tzset module, but we won't
51281 require it as a dependency any more since we don't want LGPLed code
51282 to depend on GPLed code.
51284 2005-07-02 Jim Meyering <jim@meyering.net>
51286 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51287 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51288 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51289 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51291 2005-07-02 Jim Meyering <jim@meyering.net>
51293 * lib/backupfile.c (backup_args): Change a `0' to NULL.
51295 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
51297 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51298 declares only 'struct timespec;' (!).
51300 2005-07-01 Jim Meyering <jim@meyering.net>
51302 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51303 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51304 * lib/save-cwd.c, tempname.c:
51305 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51306 and don't include <sys/file.h>).
51308 2005-06-29 Jim Meyering <jim@meyering.net>
51310 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51311 type name. Use the variable name instead.
51312 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51315 2005-06-28 Simon Josefsson <jas@extundo.com>
51317 * modules/check-version (Files): Add check-version.m4.
51319 2005-06-28 Simon Josefsson <jas@extundo.com>
51321 * m4/check-version.m4: New file, suggested by Jim Meyering
51322 <jim@meyering.net>.
51324 2005-06-28 Simon Josefsson <jas@extundo.com>
51326 * lib/check-version.h, lib/check-version.c: New files.
51328 2005-06-28 Simon Josefsson <jas@extundo.com>
51330 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
51331 collision with global variable. Better indentation. Don't
51332 increment buffer pointer beyond buffer end. Based on comments
51333 from Paul Eggert <eggert@cs.ucla.edu>.
51335 * lib/base64.h: Indent.
51337 2005-06-28 Simon Josefsson <jas@extundo.com>
51339 * doc/gnulib.texi (Library version handling): New section.
51341 2005-06-28 Jim Meyering <jim@meyering.net>
51343 * check-module (find_included_lib_files): Hard-code another
51344 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51345 but modules/fts-lgpl (correctly) does not list those files.
51347 * modules/canonicalize (Files): Add lib/pathmax.h.
51349 2005-06-25 Simon Josefsson <jas@extundo.com>
51351 * modules/check-version: New file.
51353 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
51355 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51356 initializer of struct addrinfo, as an indication that we don't
51357 care how many members the structure has.
51359 2005-06-24 Derek Price <derek@ximbiot.com>
51360 and Bruno Haible <bruno@clisp.org>
51362 Remove stat module & update lstat.
51363 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51364 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51365 * m4/stat.m4: Remove this file.
51367 2005-06-24 Derek Price <derek@ximbiot.com>
51368 and Bruno Haible <bruno@clisp.org>
51370 Remove stat module & update lstat.
51371 * lib/stat.c: Remove this file...
51372 (slash_aware_lstat): ...moving this content and its support...
51373 * lib/lstat.c (rpl_lstat): ...into here.
51374 * lib/lstat.h: New file.
51376 2005-06-24 Derek Price <derek@ximbiot.com>
51377 and Bruno Haible <bruno@clisp.org>
51379 Remove stat module & update lstat.
51380 * config/srclist.txt (libc sources): Remove stat.
51382 2005-06-24 Derek Price <derek@ximbiot.com>
51383 and Bruno Haible <bruno@clisp.org>
51385 Remove stat module & update lstat.
51386 * MODULES.html.sh (stat): Remove.
51387 * MODULES.html: Regenerated.
51388 * modules/lstat (Description): Correct function name.
51389 (Files): Add "lstat.h".
51390 (Depends-on): Remove stat, add xalloc, stat-macros.
51391 * modules/stat: Remove this file.
51392 (Include): Add "lstat.h", remove <sys/stat.h>.
51394 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
51396 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
51397 (ranged_convert): Don't save conversion in a temporary struct.
51398 This causes a warning with GCC 4.0.0, and anyway in the typical
51399 case it's not worth the extra 100 bytes or so of code.
51400 (ranged_convert, __mktime_internal): When calling a function via a
51401 pointer P, use P () rather than (*P) (), as we now assume C89 or
51404 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
51406 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51407 "who -r" failed to give output. Problem reported by Tim Waugh.
51409 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51410 (xcalloc): Use it to avoid needless tests.
51411 Problem reported by Jim Meyering.
51413 2005-06-20 Derek Price <derek@ximbiot.com>
51415 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51416 unnecessary for Autoconfs > 2.59c.
51418 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51420 * lib/argp.h (__option_is_short): Check upper limit of
51421 __key. Isprint() requires its argument to have the value
51422 of an unsigned char or EOF.
51424 2005-06-16 Jim Meyering <jim@meyering.net>
51426 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51427 when either N or S is zero.
51429 2005-06-16 Derek Price <derek@ximbiot.com>
51431 * m4/bison.m4: Declare YACC & YFLAGS precious.
51433 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
51435 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51436 multibyte string or pattern, fall back on unibyte matching.
51437 Problem reported by James Youngman.
51439 2005-06-08 Bruno Haible <bruno@clisp.org>
51441 * modules/csharpcomp: New file.
51442 * MODULES.html.sh (C#): Add csharpcomp.
51444 2005-06-08 Bruno Haible <bruno@clisp.org>
51446 * m4/csharpcomp.m4: New file, from GNU gettext.
51448 2005-06-08 Bruno Haible <bruno@clisp.org>
51450 * lib/csharpcomp.h: New file, from GNU gettext.
51451 * lib/csharpcomp.c: New file, from GNU gettext.
51452 * lib/csharpcomp.sh.in: New file, from GNU gettext.
51454 2005-06-08 Bruno Haible <bruno@clisp.org>
51456 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51459 2005-06-07 Derek Price <derek@ximbiot.com>
51462 * lib/glob_.h: Indent nested #ifdef.
51464 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51466 Sync from coreutils.
51467 Use "file name" when talking about file names, instead of "filename"
51468 or "path", as per the GNU coding standards.
51469 * lib/mkdir-p.c: Renamed from makepath.c.
51470 (make_dir_parents): Renamed from make_path. All callers changed.
51471 * lib/mkdir-p.h: Likewise. All includers changed.
51472 * lib/filenamecat.c: Renamed from path-concat.c.
51473 (file_name_concat): Renamed from path_concat. All callers changed.
51474 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51475 * lib/filenamecat.h: Likewise. All includers changed.
51476 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51477 in comments or local variable names.
51478 * lib/basename.c: Likewise.
51479 * lib/canonicalize.c, canonicalize.h: Likewise.
51480 * lib/dirname.c, dirname.h: Likewise.
51481 * lib/euidaccess.c: Likewise.
51482 * lib/exclude.c: Likewise
51483 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51484 * lib/fsusage.c, fsuage.h: Likewise.
51485 * lib/fts.c, fts_.h: Likewise.
51486 * lib/getcwd.c: Likewise.
51487 * lib/getloadavg.c: Likewise.
51488 * lib/mkstemp.c: Likewise.
51489 * lib/mountlist.c, mountlist.h: Likewise.
51490 * lib/openat.c, openat.h: Likewise.
51491 * lib/readlink-stub.c: Likewise.
51492 * lib/readutmp.c, readutmp.h: Likewise.
51493 * lib/rename.c: Likewise.
51494 * lib/rmdir.c: Likewise.
51495 * lib/same.c: Likewise.
51496 * lib/savedir.c: Likewise.
51497 * lib/stripslash.c: Likewise.
51498 * lib/tempname.c: Likewise.
51499 * lib/xreadlink.c: Likewise.
51500 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51502 * lib/exclude.h: Likewise.
51504 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51505 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51506 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51507 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51508 * lib/pathmax.h: Include <limits.h> unconditionally, since other
51509 files have been getting away with it for years (MORE/BSD 4.3
51511 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51512 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51514 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51515 Define to 256, not 255, as per modern POSIX.
51517 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51519 Sync from coreutils.
51520 Use "file name" when talking about file names, instead of "filename"
51521 or "path", as per the GNU coding standards.
51522 * MODULES.html.sh: mkdir-p renamed from makepath.
51523 filenamecat renamed from path-concat.
51524 * modules/filenamecat: Renamed from modules/path-concat.
51525 (Files): filenamecat.h and filenamecat.c renamed from
51526 path-concat.h and path-concat.c.
51527 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51528 (Include): filenamecat.h, not path-concat.h.
51529 * modules/mkdir-p: Renamed from modules/makepath.
51530 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51532 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51533 (Include): mkdir-p.h, not makepath.h.
51535 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51537 Sync from coreutils.
51538 * m4/mkdir-p.m4: Renamed from makepath.m4.
51539 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
51540 Rename files from makepath.c to mkdir-p.c, and from
51541 makepath.h to mkdir-p.h.
51542 * m4/filenamecat.m4: Renamed from path-concat.m4.
51543 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
51544 Rename files from path-concat.c to filenamecat.c,
51545 and from path-concat.h to filenamecat.h.
51546 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51547 "file name" in local variables or comments.
51548 * m4/rename.m4: Likewise.
51550 2005-06-01 Bruno Haible <bruno@clisp.org>
51552 * modules/csharpexec: New file.
51553 * MODULES.html.sh (C#): New section.
51555 2005-06-01 Bruno Haible <bruno@clisp.org>
51557 * m4/csharp.m4: New file, from GNU gettext.
51558 * m4/csharpexec.m4: New file, from GNU gettext.
51560 2005-06-01 Bruno Haible <bruno@clisp.org>
51562 * lib/csharpexec.h: New file, from GNU gettext.
51563 * lib/csharpexec.c: New file, from GNU gettext.
51564 * lib/csharpexec.sh.in: New file, from GNU gettext.
51566 2005-05-31 Derek Price <derek@ximbiot.com>
51567 Paul Eggert <eggert@cs.ucla.edu>
51570 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51572 2005-05-31 Derek Price <derek@ximbiot.com>
51573 Paul Eggert <eggert@cs.ucla.edu>
51576 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51578 2005-05-29 Derek Price <derek@ximbiot.com>
51580 * config/srclist.txt (glob_.h, glob.c): Add these files.
51582 2005-05-29 Derek Price <derek@ximbiot.com>
51584 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51585 * modules/glob: New file.
51586 * modules/getlogin_r: Add link to POSIX spec in description.
51588 2005-05-29 Derek Price <derek@ximbiot.com>
51589 Paul Eggert <eggert@cs.ucla.edu>
51591 * m4/glob.m4: New file.
51593 2005-05-29 Derek Price <derek@ximbiot.com>
51594 Paul Eggert <eggert@cs.ucla.edu>
51596 * lib/glob_.h, lib/glob.c: New files.
51598 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51600 * modules/fts (Files): Remove m4/inttypes-pri.m4.
51601 * modules/fts-lgpl (Depends-on): Remove gettext.
51603 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51605 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51606 and don't require gt_INTTYPES_PRI.
51608 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51610 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51612 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51613 the configuration hassle isn't worth it.
51614 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51615 (LONGEST_MODIFIER, PRIuMAX): Remove.
51617 2005-05-27 Bruno Haible <bruno@clisp.org>
51619 * lib/getlogin_r.h: Remove second include of <stddef.h>.
51621 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
51623 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51624 _POSIX_PTHREAD_SEMANTICS for Solaris.
51626 2005-05-25 Derek Price <derek@ximbiot.com>
51628 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51630 2005-05-25 Derek Price <derek@ximbiot.com>
51631 Paul Eggert <eggert@cs.ucla.edu>
51633 * modules/getlogin_r, m4/getlogin_r.m4: New files.
51634 * lib/getlogin_r.c, getlogin_r.h: New files.
51636 2005-05-25 Bruno Haible <bruno@clisp.org>
51637 Derek Price <derek@ximbiot.com>
51639 * lib/getlogin_r.h: Simplify API documentation.
51641 2005-05-23 Derek Price <derek@ximbiot.com>
51643 * modules/minmax (Files): Add m4/minmax.m4.
51644 (configure.ac): Add gl_MINMAX.
51646 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
51648 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51649 so that unistd-safer.h (GPL'ed code) need not be included.
51651 2005-05-22 Bruno Haible <bruno@clisp.org>
51653 * m4/minmax.m4: New file.
51654 Based on a patch by Derek Price <derek@ximbiot.com>.
51656 2005-05-22 Bruno Haible <bruno@clisp.org>
51658 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51659 (INT64_MIN): Fix definition.
51660 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51662 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51663 NEED_SIGNED_INT_TYPES.
51665 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51666 HAVE_SYSTEM_INTTYPES.
51668 2005-05-22 Bruno Haible <bruno@clisp.org>
51670 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51671 Also include <sys/param.h> if it defines MIN, MAX.
51672 Based on a patch by Derek Price <derek@ximbiot.com>.
51674 2005-05-21 Jim Meyering <jim@meyering.net>
51676 * modules/fts (Files): Add m4/inttypes-pri.m4.
51677 (Depends-on): Add lstat and remove gettext. Alphabetize.
51679 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51682 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51683 (setup_dir, free_dir): New functions.
51684 (enter_dir, leave_dir): Define trivial
51685 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
51686 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
51687 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51688 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51689 Move to fts-cycle.c.
51690 (fts_open): Use setup_dir.
51691 (fts_close): Use free_dir.
51692 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51693 This adds a label and some gotos, but the alternatives were messier.
51694 Check for memory allocation failure when entering a dir.
51695 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51696 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51697 (FTS): New member fts_cycle, that is a union that contains the
51698 old active_dir_ht and cycle_state. All uses changed to mention
51699 fts_cycle.ht and fts_cycle.state.
51700 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51701 fts.c, with the following changes:
51702 (setup_dir, free_dir): New functions.
51703 (enter_dir): Now returns bool. Return true if successful, false
51704 if memory exhausted. All callers changed.
51705 Do not bother partly cleaning up on
51706 memory allocation failure; that is free_dir's job.
51707 However, free ad if hash_insert fails, to avoid memory leak.
51708 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51709 fts->fts_options to see which union member to use.
51711 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51713 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51714 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51716 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51718 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51720 2005-05-20 Jim Meyering <jim@meyering.net>
51722 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51723 Now a macro, to pacify GCC.
51725 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51727 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51730 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51732 * lib/chown.c (rpl_chown): Return -1 on failure.
51734 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51736 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51737 Don't check for stddef.h.
51738 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51739 don't use its results.
51740 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51741 since we include them unconditionally. Don't require
51742 AM_STDBOOL_H, since stdbool is a prerequisite.
51743 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51744 since we assume C89 or better.
51745 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51746 as we don't use their results.
51747 Don't check for fchdir, memmove, memset, strrchr, as we use
51748 them unconditionally.
51749 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51750 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51752 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51754 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51755 Include <stddef.h> unconditionally, since we assume C89 now.
51756 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51757 * lib/fts.c: Include fts_.h first, to check interface.
51758 Do not include intprops.h; no longer needed.
51759 Include cycle-check.h and hash.h, since fts_.h no longer does.
51760 Remove unnecessary casts of closedir to void.
51761 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51762 decide whether to decrement nlinks.
51763 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51764 (FTS): Use struct hash_table * instead of Hash_table, so that
51765 we no longer need to include hash.h here.
51767 2005-05-18 Jim Meyering <jim@meyering.net>
51769 * modules/dirfd (License): Change to LGPL. Most of the code
51770 is already in the public domain.
51772 2005-05-18 Jim Meyering <jim@meyering.net>
51774 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51775 Reported by Yoann Vandoorselaere.
51777 2005-05-17 Jim Meyering <jim@meyering.net>
51779 * m4/fts.m4: New file, from coreutils.
51781 2005-05-17 Jim Meyering <jim@meyering.net>
51783 * lib/fts.c, lib/fts_.h: New files, from coreutils.
51785 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51787 Sync from coreutils.
51788 * m4/unlinkdir.m4: New file.
51790 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51792 Sync from coreutils.
51793 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51794 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51795 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51796 White space changes only.
51797 * lib/makepath.c (make_path): Port to hosts where leading "//" is
51799 * lib/yesno.c: Include getline.h, not ctype.h.
51800 (yesno): Don't remove leading white space; POSIX doesn't allow it.
51801 Use getline to remove arbitrary restriction on response length.
51803 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51805 * config/srclist-update: Spell out "Street" in FSF postal
51806 mail address; this is the style the FSF seems to prefer.
51808 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51809 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51810 this updates FSF postal mail address.
51812 Sync from coreutils.
51813 * modules/unlinkdir: New file.
51814 * modules/yesno (Depends-on): Add getline.
51815 * MODULES.html.sh (File system functions): Add unlinkdir.
51817 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51819 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51821 Change the initial comment to refer to GPL, not LGPL.
51822 gnulib-tool will change it to LGPL as needed.
51824 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51825 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51826 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51827 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51828 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51829 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51830 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51831 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51832 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51833 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51834 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51835 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51836 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51837 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51838 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51839 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51840 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51841 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51842 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51843 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51844 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51845 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51846 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51847 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51848 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51849 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51850 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51851 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51852 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51853 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51854 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51855 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51856 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51857 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51858 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51859 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51860 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51861 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51862 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51863 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51864 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51865 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51866 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51867 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51868 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51869 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51870 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51871 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51872 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51873 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51874 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51875 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51876 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51877 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51878 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51879 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51880 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51881 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51882 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51883 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51884 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51885 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51886 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51887 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51888 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51889 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51890 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51891 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51892 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51893 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51894 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51895 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51896 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51897 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51898 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51899 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51900 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51901 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51902 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51903 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51904 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51905 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51906 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51907 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51908 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51909 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51910 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51911 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51912 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51913 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51914 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51915 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51916 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51917 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51918 lib/yesno.c, lib/yesno.h:
51919 Update FSF postal mail address.
51921 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51923 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51924 tests/test-memmem.c, tests/test-stpncpy.c:
51925 Update FSF postal mail address.
51927 2005-05-13 Bruno Haible <bruno@clisp.org>
51929 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51930 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51931 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51932 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51933 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51934 Add support for 64-bit integers in the MSVC compiler.
51936 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51938 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51940 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
51942 * gnulib-tool (func_import): Sort and uniquify recommended includes.
51944 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
51946 * doc/getdate.texi (General date syntax): Don't say that date
51947 date --iso-8601=ns generates acceptable dates; it doesn't yet.
51948 Problem reported by Nic Ferrier.
51950 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51952 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51953 specified in ai_socktype. Fix invalid ai_protocol
51954 check. ai_protocol is usually set to 0 or depending on
51955 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
51956 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
51957 ai_socktype / ai_protocol in the returned addrinfo structure.
51959 2005-05-10 Simon Josefsson <jas@extundo.com>
51961 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51962 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51964 2005-05-10 Karl Berry <karl@gnu.org>
51966 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51967 (from http://www.gnu.org/licenses).
51968 * doc/COPYING.LIB: also rename to COPYING.LESSER.
51969 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51972 2005-05-10 Karl Berry <karl@gnu.org>
51974 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51975 (COPYING.DOC): remove.
51977 * config/srclist-update: new FSF address.
51979 2005-05-10 Derek Price <derek@ximbiot.com>
51981 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51984 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51985 Bruno Haible <bruno@clisp.org>
51987 * modules/inet_ntop: New file.
51988 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51991 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51992 Bruno Haible <bruno@clisp.org>
51994 * m4/inet_ntop.m4: New file.
51996 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51997 Bruno Haible <bruno@clisp.org>
51999 * lib/inet_ntop.h: New file.
52000 * lib/inet_ntop.c: New file, from glibc with modifications.
52002 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
52004 * modules/time_r (License): Change to LGPL.
52005 * modules/extensions (License): Change to LGPL. Actually,
52006 the license is more permissive than that, but currently gnulib-tool
52007 doesn't know how to handle more-permissive licenses.
52009 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52010 Problem reported by Dave Love.
52012 2005-05-08 Jim Meyering <jim@meyering.net>
52014 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52017 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
52019 * modules/argmatch (Depends-on): Add stdbool.
52020 * modules/backupfile (Depends-on): Likewise.
52021 * modules/chdir-long (Depends-on): Likewise.
52022 * modules/closeout (Depends-on): Likewise.
52023 * modules/cycle-check (Depends-on): Likewise.
52024 * modules/dirname (Depends-on): Likewise.
52025 * modules/fnmatch (Depends-on): Likewise.
52026 * modules/fsusage (Depends-on): Likewise.
52027 * modules/fwriteerror (Depends-on): Likewise.
52028 * modules/getcwd (Depends-on): Likewise.
52029 * modules/getloadavg (Depends-on): Likewise.
52030 * modules/hard-locale (Depends-on): Likewise.
52031 * modules/makepath (Depends-on): Likewise.
52032 * modules/mountlist (Depends-on): Likewise.
52033 * modules/nanosleep (Depends-on): Likewise.
52034 * modules/posixtm (Depends-on): Likewise.
52035 * modules/quotearg (Depends-on): Likewise.
52036 * modules/readtokens (Depends-on): Likewise.
52037 * modules/readtokens0 (Depends-on): Likewise.
52038 * modules/readutmp (Depends-on): Likewise.
52039 * modules/save-cwd (Depends-on): Likewise.
52040 * modules/strftime (Depends-on): Likewise.
52041 * modules/userspec (Depends-on): Likewise.
52042 * modules/utimecmp (Depends-on): Likewise.
52043 * modules/xgetcwd (Depends-on): Likewise.
52044 * modules/xnanosleep (Depends-on): Likewise.
52045 * modules/xstrtod (Depends-on): Likewise.
52046 * modules/yesno (Depends-on): Likewise.
52048 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
52050 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52053 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52055 Merge from coreutils. Among other things,
52056 add bulletproofing for cases where stdin, stdout, or stderr are closed.
52057 * lib/fd-safer.c: New file.
52058 * lib/fcntl-safer.h, open-safer.c: Remove.
52059 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52060 * lib/dup-safer.c: Include unistd-safer.h first.
52061 Don't include errno.h.
52062 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52063 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52064 * lib/file-type.c: Rely on file-type.h change.
52065 * lib/getloadavg.c: Include unistd-safer.h.
52066 (getloadavg): Use safer open.
52067 * lib/getusershell.c: Include "stdio-safer.h".
52068 (getusershell): Use safer fopen.
52069 * lib/long-options.c (long_options): Use NULL rather than 0.
52070 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52072 * lib/modechange.c: Likewise.
52073 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52074 (MODE_DONE): New constant.
52075 (struct mode_change): Remove 'next' member.
52076 (make_node_op_equals): New function; like the old one of the
52077 same name, except it allocates an array.
52078 (mode_compile, mode_create_from_ref): Use it.
52079 (mode_compile): Allocate result as an array, not a linked list.
52080 Parse octal string ourself, so that we catch mistakes like "+0".
52081 (mode_adjust): Arg is an array, not a linked list.
52082 * lib/modechange.c: Include stat-macros.h, xalloc.h.
52083 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52084 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52085 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52086 Remove. This is now stat-macros.h's job.
52087 (talloc): Remove. All callers replaced by xalloc, so that
52088 our invokers don't have to worry about reporting memory failures.
52089 (make_node_op_equals): Remove.
52090 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52092 (struct mode_change): Moved here from modechange.h.
52093 (mode_append_entry): Remove.
52094 (mode_compile): Remove MASKED_OPS arg, since it encouraged
52095 apps to have incorrect behavior. Use simpler algorithm for head
52096 and tail. Don't futz with umask; that's now the job of mode_adjust.
52097 Detect more invalid usages rather than having somewhat-random behavior.
52098 Don't insert an "a=" action, as that leads to incorrect behavior.
52099 (mode_compile, mode_create_from_ref): Return NULL on error instead
52100 of an enum, since now there's only one way to have an error. All
52102 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52103 at the correct time. Simplify calculation of "+u" and its ilk.
52104 Don't mishandle "+X".
52105 (mode_free): Remove "register" and localize decls.
52106 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52107 (struct mode_change): Move to modechange.c; callers don't
52108 need to see this stuff.
52109 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52110 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52111 (mode_change, mode_adjust): Reflect the new signatures noted above.
52112 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52113 that might redefine system include files.
52114 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52115 (my_usleep): Use NULL rather than (void *) 0.
52116 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52117 Use siginterrupt to specify that system calls should be interrupted.
52118 (rpl_nanosleep): Move initialization of suspended closer to call of
52120 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
52121 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
52122 (desirable_utmp_entry): New function.
52123 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52124 using x2nrealloc, to simplify logic.
52125 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52126 size calculation. Do not assume utmp file is a regular file.
52127 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52128 (READ_UTMP_CHECK_PIDS): New constant.
52129 * lib/save-cwd.c: Include unistd-safer.h.
52130 (save_cwd): Use fd_safer.
52131 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52132 [!_LIBC] Include "stat-macros.h" instead.
52133 * lib/unistd-safer.h (fd_safer): New decl.
52135 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52137 * modules/getloadavg (Depends-on): Add unistd-safer.
52138 * modules/getusershell (Depends-on): Add stdio-safer.
52139 * modules/lstat (Depends-on): Remove xalloc.
52140 * modules/mkstemp (Depends-on): Add stat-macros.
52141 * modules/modechange (Depends-on): Remove xstrtol.
52142 Add stat-macros, xalloc.
52143 * modules/save-cwd (Depends-on): Add unistd-safer.
52144 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52145 * modules/unistd-safer (Files): Add lib/fd-safer.c
52146 (Makefile.am): Remove lib_SOURCES.
52148 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52149 Remove fcntl-safer; unistd-safer supersedes it.
52151 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52153 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52155 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52156 (gl_PREREQ_CHOWN): Remove.
52157 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52158 it. Don't require AC_HEADER_STAT.
52159 (gl_PREREQ_LSTAT): Remove.
52160 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52161 Don't require AC_HEADER_STAT.
52162 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52163 (gl_PREREQ_RMDIR): Remove.
52164 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52165 mention stat-macros.h or AC_HEADER_STAT, since we'll make
52166 the stat-macros module a prerequisite.
52167 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52168 * m4/filemode.m4 (gl_FILEMODE): Likewise.
52169 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52170 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52171 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52173 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52174 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
52176 * m4/fcntl-safer.m4: Remove.
52177 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52178 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52179 Invoke gl_PREREQ_FD_SAFER.
52180 (gl_PREREQ_FD_SAFER): New macro.
52181 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52182 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52183 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52184 Remove duplicate call to AC_LIBOBJ(readutmp).
52185 (gl_PREREQ_READUTMP): Remove. All uses inlined.
52187 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52188 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
52190 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52192 * MODULES.html.sh (Misc): Add byteswap.
52194 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52196 * modules/getcwd (Depends-on): Add extensions.
52197 * modules/openat (Depends-on): Likewise.
52199 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52201 * modules/byteswap: New file.
52203 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52205 * m4/byteswap.m4: New file.
52207 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52209 * lib/byteswap_.h: New file.
52211 2005-04-25 Karl Berry <karl@gnu.org>
52213 * m4/gettext.m4: Update from GNU gettext 0.14.4.
52215 2005-04-25 Albert Chin <china@thewrittenword.com>
52217 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52220 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
52222 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52223 (func_ln_if_changed) Remove forcibly for no error message
52224 in case file does not exist.
52226 2005-04-19 Simon Josefsson <jas@extundo.com>
52228 * gnulib-tool (Options): Make --symlink mean --symbolic.
52230 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
52232 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
52234 2005-04-16 Simon Josefsson <jas@extundo.com>
52236 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52238 2005-04-15 Simon Josefsson <jas@extundo.com>
52240 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52242 2005-04-15 Simon Josefsson <jas@extundo.com>
52244 * gnulib-tool: Rename --symlink to --symbolic.
52246 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
52248 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52249 symbolic links to files instead of copying/moving. Add --aux-dir,
52250 specifying directory relative --dir where auxiliary build tools
52253 2005-04-14 Bruno Haible <bruno@clisp.org>
52255 * modules/allocsa (License): Change to LGPL.
52256 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52258 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
52260 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52261 that "UTC +1 second" continues to work. Problem reported
52262 by Dmitry V. Levin.
52263 (relunit_snumber): New rule.
52266 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
52268 * lib/getdate.y (universal_time_zone_table): New constant.
52269 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52270 universal_time_zone_table.
52271 (lookup_zone): Prefer universal_time_zone_table to
52272 local_time_zone_table, so that "GMT" time stamps are allowed in
52273 London during the summer. Problem reported by Ian Abbott.
52275 2005-04-12 Jim Meyering <jim@meyering.net>
52277 * lib/human.c (humblock): Set *options even when returning due to
52278 xstrtoumax conversion failure. Thanks to a used-uninitialized
52279 warning from gcc-4.
52281 2005-04-09 Jim Meyering <jim@meyering.net>
52283 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52284 -Wuninitialized: initialize tm0.tm_year.
52286 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
52288 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52289 count, since there's no maximum. All uses changed.
52290 Add member dsts_seen.
52291 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52293 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52294 Use pc_rels_seen to decide whther a date is absolute.
52296 * lib/getdate.y (number): Don't overwrite year.
52297 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52300 2005-04-02 Simon Josefsson <jas@extundo.com>
52302 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52303 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52305 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
52307 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52308 where no absolute path name can be longer than PATH_MAX.
52310 2005-03-27 Jim Meyering <jim@meyering.net>
52312 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52314 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
52316 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52317 "one's complement" -> "ones' complement" in comment, as per Knuth.
52318 "value of type" -> "type or expression" in comment.
52319 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52321 2005-03-26 Jim Meyering <jim@meyering.net>
52324 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52325 Correct typos: s/or/of/.
52327 2005-03-26 Jim Meyering <jim@meyering.net>
52329 * modules/check-include-files: Move to ../ and rename to...
52330 * check-module: ...this.
52332 2005-03-25 Jim Meyering <jim@meyering.net>
52334 * modules/xvasprintf (Files): Add xalloc.h.
52336 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
52338 * modules/gettext (Files): config/config.rpath ->
52339 build-aux/config.rpath
52340 * modules/iconv (Files): Likewise.
52341 Problem reported by Oskar Liljeblad.
52343 2005-03-23 Jim Meyering <jim@meyering.net>
52345 * modules/check-include-files: New script to check for
52346 missing dependencies, multiple includes, etc.
52348 * modules/c-strtold (Depends-on): Add xalloc.
52349 * modules/c-strtod (Depends-on): Add xalloc.
52350 * modules/hash (Depends-on): Add xalloc.
52351 (Files): Remove lib/xalloc.h.
52353 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52354 * modules/userspec (Files): Add lib/inttostr.h.
52356 2005-03-23 Jim Meyering <jim@meyering.net>
52358 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52360 2005-03-22 Jim Meyering <jim@meyering.net>
52362 * modules/stat-macros: New module.
52363 * modules/canonicalize, modules/euidaccess, modules/file-type,
52364 * modules/filemode, modules/lchown, modules/makepath,
52365 * modules/rmdir, modules/stat: Depend on new stat-macros module
52366 rather than listing lib/stat-macros.h manually.
52367 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52369 2005-03-22 Jim Meyering <jim@meyering.net>
52371 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52373 2005-03-22 Bruno Haible <bruno@clisp.org>
52375 * config/srclist.txt: Replace target directory 'config' with
52377 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52378 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52381 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
52383 * modules/chdir-long (Depends-on): Add mempcpy.
52385 * modules/acl, modules/backupfile, modules/c-strtod,
52386 modules/c-strtold, modules/canon-host, modules/canonicalize,
52387 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52388 modules/exclude, modules/exitfail, modules/file-type,
52389 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52390 modules/getdate, modules/getline, modules/getpagesize,
52391 modules/getpass, modules/getugroups, modules/group-member,
52392 modules/hard-locale, modules/hash, modules/human, modules/idcache,
52393 modules/inttostr, modules/long-options, modules/makepath,
52394 modules/md5, modules/memcasecmp, modules/memcoll,
52395 modules/modechange, modules/mountlist, modules/path-concat,
52396 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52397 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52398 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52399 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52400 modules/strftime, modules/strndup, modules/strverscmp,
52401 modules/timespec, modules/unlocked-io, modules/userspec,
52402 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52404 Remove lib_SOURCES line from Makefile.am section, as this is now
52405 done automatically by the corresponding Autoconf macro.
52407 2005-03-21 Jim Meyering <jim@meyering.net>
52409 Changes imported from coreutils.
52411 * lib/cycle-check.c: Don't include xalloc.h.
52413 * lib/path-concat.c: Don't include assert.h.
52414 (path_concat): Remove assertion that would have triggered
52415 for ABASE starting with more than one slash.
52416 Reported by Andreas Schwab.
52418 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52419 properly when ABASE is an absolute file name.
52420 Correct the description of this function.
52421 Include <assert.h>.
52422 Add an assertion and a test driver.
52423 This fixes a bug introduced on 2004-07-02.
52424 Andreas Schwab reported the resulting failure of cp --parents:
52425 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52427 2005-03-21 Jim Meyering <jim@meyering.net>
52429 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52430 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52432 2005-03-21 Jim Meyering <jim@meyering.net>
52433 and Paul Eggert <eggert@cs.ucla.edu>
52435 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52436 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52437 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52438 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52439 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52440 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52441 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52442 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52443 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52444 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52445 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52446 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52447 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52448 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52449 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52450 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52451 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52454 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
52456 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52457 (which shouldn't happen), generate nothing instead of returning 0
52458 immediately, so that nstrftime (NULL, ...) doesn't return 0.
52460 2005-03-16 Bruno Haible <bruno@clisp.org>
52462 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52463 HAVE_LONGLONG_64BIT.
52465 2005-03-16 Bruno Haible <bruno@clisp.org>
52467 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52468 HAVE_LONGLONG_64BIT.
52470 2005-03-16 Bruno Haible <bruno@clisp.org>
52472 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52473 HAVE_LONGLONG_64BIT.
52475 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52477 * lib/strftime.c (my_strftime): Prepend space to format so that we can
52478 reliably distinguish strftime failure from empty output on POSIX
52481 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52483 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52484 (iconv_string): Don't guess a size-zero buffer, as that might cause
52485 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
52486 result would be 'too large', where 'too large' is (heuristically)
52487 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52488 overflow concerns. This will prevent some unwanted malloc failures
52489 when the inputs are very large.
52491 2005-03-15 Karl Berry <karl@gnu.org>
52493 * config/srclist.txt (config.rpath): from gettext.
52494 * config/config.rpath: update.
52496 2005-03-15 Bruno Haible <bruno@clisp.org>
52498 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52501 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52504 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52507 2005-03-14 Simon Josefsson <jas@extundo.com>
52509 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52512 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
52514 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52515 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52517 * lib/strtol.c: Likewise.
52519 2005-03-14 Jim Meyering <jim@meyering.net>
52521 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52522 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52523 to be nonzero so that we (and caller) can detect the difference
52524 between a valid zero-length expansion and an error return, even
52525 when the underlying strftime fails before writing anything into
52528 2005-03-14 Bruno Haible <bruno@clisp.org>
52530 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52531 Update from GNU gettext 0.14.3.
52533 2005-03-10 Jim Meyering <jim@meyering.net>
52535 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52537 2005-03-10 Jim Meyering <jim@meyering.net>
52539 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52540 so that this module works on systems without fchdir.
52542 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
52544 Factor int-properties macros into a single file, except for
52545 glibc-related files.
52546 * lib/intprops.h: New file.
52547 * lib/getloadavg.c: Include it instead of limits.h.
52548 (INT_STRLEN_BOUND): Remove.
52549 * lib/human.c: Include intprops.h.
52550 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52551 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52553 * lib/inttostr.h: Include intprops.h instead of limits.h.
52554 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52555 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52556 for consistency with intprops.h.
52557 (time_t_is_integer, twos_complement_arithmetic): Use them.
52558 * lib/sig2str.h: Include <signal.h>, intprops.h.
52559 (INT_STRLEN_BOUND): Remove.
52560 * lib/strftime.c (TYPE_SIGNED): Remove.
52561 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52562 * lib/strtol.c: Adjust comments to match intprops.h.
52563 * lib/userspec.c: Include intprops.h.
52564 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52565 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52566 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52567 instead of rolling our own expressions.
52568 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52570 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
52572 (my_strftime): Do not mishandle years close to INT_MAX, by doing
52573 the right thing even if adding 1900 would overflow. Similarly
52574 for tm_mon + 1 and tm_yday + 1.
52575 Make %Y always equivalent to %C%y, and similarly for %G and %g.
52576 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52577 (DO_SIGNED_NUMBER): New macro.
52578 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52580 2005-03-07 Bruno Haible <bruno@clisp.org>
52582 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52584 2005-03-07 Bruno Haible <bruno@clisp.org>
52586 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52588 2005-03-04 Derek R. Price <derek@ximbiot.com>
52590 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52591 (func_import): Only replace files via --import when they have actually
52594 2005-03-03 Derek R. Price <derek@ximbiot.com>
52596 * m4/mmap-anon.m4: New file.
52597 * m4/pagealign_alloc.m4: New file.
52599 2005-03-03 Derek R. Price <derek@ximbiot.com>
52600 Bruno Haible <bruno@clisp.org>
52602 * modules/pagealign_alloc: New file.
52603 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52605 2005-03-03 Derek R. Price <derek@ximbiot.com>
52606 Bruno Haible <bruno@clisp.org>
52608 * lib/pagealign_alloc.h: New file.
52609 * lib/pagealign_alloc.c: New file.
52611 2005-03-03 Bruno Haible <bruno@clisp.org>
52613 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52614 Use an all-permissive copyright notice, recommended by RMS.
52616 2005-03-02 Bruno Haible <bruno@clisp.org>
52618 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52619 of AIX, the replacement has to be done only after <string.h> is
52620 included, therefore not in config.h. stpncpy.h does the replacement,
52621 and stpncpy.c uses it.
52623 2005-03-02 Bruno Haible <bruno@clisp.org>
52625 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52628 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52630 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52631 The workaround isn't strictly needed for POSIX conformance, and
52632 it's too much of a pain to configure and maintain. We'll ask
52633 people to fix their kernels instead.
52634 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52635 (NANOSLEEP_BUG_WORKAROUND): Remove.
52636 (xnanosleep): Remove the workaround.
52638 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52640 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52641 Reported by Derek Price.
52642 (Include): Add "timespec.h".
52644 * modules/xnanosleep (Depends-on): Remove gethrxtime.
52646 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52648 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52649 to detect nanosleep bug.
52651 2005-03-01 Bruno Haible <bruno@clisp.org>
52653 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52655 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
52657 * modules/gethrxtime: New file.
52658 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52659 (Depends-on): Add gethrxtime.
52660 (configure.ac): Add gl_XNANOSLEEP.
52661 (Makefile.am): Remove lib_SOURCES line.
52663 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52665 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52666 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52668 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52670 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52671 * lib/timespec.h (gettime): Return void, since it always
52672 succeeds now. All uses changed.
52673 * lib/gettime.c (gettime) Likewise.
52674 [HAVE_NANOTIME]: Prefer nanotime.
52675 Assume gettimeofday succeeds, as POSIX requires.
52676 Assime time () succeeds, since other code already does.
52677 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52678 (timespec_subtract): Remove.
52679 (NANOSLEEP_BUG_WORKAROUND): New constant.
52680 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52681 things considerably. Use it only on GNU/Linux hosts, since the
52682 workaround shouldn't be needed elsewhere.
52684 2005-02-24 Bruno Haible <bruno@clisp.org>
52686 * modules/gettext (Files): Add m4/glibc2.m4.
52688 2005-02-24 Bruno Haible <bruno@clisp.org>
52690 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52691 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52693 Update from GNU gettext 0.14.2.
52694 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52696 2005-02-24 Bruno Haible <bruno@clisp.org>
52698 * lib/localcharset.c: Update from GNU gettext 0.14.2.
52699 * lib/config.charset: Update from GNU gettext 0.14.2.
52701 2005-02-24 Bruno Haible <bruno@clisp.org>
52703 * lib/gettext.h: Update from GNU gettext 0.14.2.
52705 2005-02-23 Simon Josefsson <jas@extundo.com>
52707 * m4/iconvme.m4: New file.
52709 2005-02-23 Jim Meyering <jim@meyering.net>
52711 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52713 Thanks to Bruno Haible for catching it.
52715 2005-02-22 Simon Josefsson <jas@extundo.com>
52717 * modules/iconvme: New file.
52719 * MODULES.html.sh: Add iconvme.
52721 2005-02-22 Simon Josefsson <jas@extundo.com>
52723 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52725 2005-02-22 Simon Josefsson <jas@extundo.com>
52727 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52729 2005-02-22 Jim Meyering <jim@meyering.net>
52731 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52734 2005-02-20 Neil Conway <neilc@samurai.com>
52736 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52737 returned by OSX/Darwin if the specified buffer is not large
52738 enough for the hostname.
52740 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52742 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52743 pass it to _help, otherwise the latter coredumps trying to
52744 dereference state.root_argp.
52746 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52748 * modules/chdir-long (Depends-on): Add memrchr.
52749 * modules/memrchr (Files): Add lib/memrchr.h.
52750 (Include): "memrchr.h".
52752 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52754 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52756 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52758 * lib/memrchr.h: New file.
52759 * lib/chdir-long.c: Include it.
52760 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52761 Don't bother including stddef.h.
52763 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
52765 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52767 Include <sys/types.h>, for dev_t.
52768 (ME_DUMMY, ME_REMOTE): Move from here....
52769 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52770 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
52772 Include mountlist.h first, to test the interface.
52774 2005-01-29 Bruno Haible <bruno@clisp.org>
52776 * lib/progname.c (program_name): Initialize.
52777 Needed when linking statically on MacOS X.
52779 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52781 Sync from coreutils.
52782 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52783 (Depends-on): Add c-strtod.
52784 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52786 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52788 Sync from coreutils.
52789 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52791 Remove files that are specific to coreutils.
52792 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52794 2005-01-28 Bruno Haible <bruno@clisp.org>
52796 * modules/javacomp: New file.
52797 * MODULES.html.sh (Java): Add javacomp.
52799 2005-01-28 Bruno Haible <bruno@clisp.org>
52801 * m4/javacomp.m4: New file, from GNU gettext.
52803 2005-01-28 Bruno Haible <bruno@clisp.org>
52805 * lib/javacomp.sh.in: New file, from GNU gettext.
52806 * lib/javacomp.h: New file, from GNU gettext.
52807 * lib/javacomp.c: New file, from GNU gettext.
52809 2005-01-26 Simon Josefsson <jas@extundo.com>
52811 * lib/gai_strerror.c: Use GPL in header.
52813 2005-01-26 Bruno Haible <bruno@clisp.org>
52815 * modules/javaexec: New file.
52816 * MODULES.html.sh (Java): Add javaexec.
52818 2005-01-26 Bruno Haible <bruno@clisp.org>
52820 * m4/javaexec.m4: New file, from GNU gettext.
52822 2005-01-26 Bruno Haible <bruno@clisp.org>
52824 * lib/javaexec.sh.in: New file, from GNU gettext.
52825 * lib/javaexec.h: New file, from GNU gettext.
52826 * lib/javaexec.c: New file, from GNU gettext.
52828 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52830 * modules/lchown (Depends-on): Remove lchown.h
52832 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52834 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52835 must be defined if the header file was not found, in order
52836 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52838 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52840 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52841 initializers for struct pentry_state.
52842 (__argp_error): Check return value of __asprintf
52843 (__argp_failure): Translate error message
52845 * lib/argp-parse.c: Removed braces around the expansion of N_()
52847 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
52849 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52850 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52851 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52852 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52853 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52854 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52855 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52856 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52857 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52858 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52859 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52860 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52861 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52862 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52863 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52864 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52865 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52866 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52867 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52868 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52869 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52870 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52871 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52872 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52873 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52874 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52875 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52876 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52877 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52878 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52879 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52880 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52881 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52882 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52883 xstrtol.m4, xstrtoumax.m4, yesno.m4:
52884 Use an all-permissive copyright notice, recommended by RMS.
52886 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
52888 * modules/chdir-long (Depends-on): Remove mempcpy.
52890 2005-01-21 Jim Meyering <jim@meyering.net>
52892 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52893 same value as for Solaris 9.
52895 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52896 component length. This included changing the parameter to be
52897 of type `char *' rather than `char const *'.
52898 * lib/chdir-long.h (chdir_long): Update prototype.
52900 * lib/openat.c (fdopendir, fstatat): New functions.
52901 * lib/openat.h: Include headers required for use of DIR and struct
52903 [AT_SYMLINK_NOFOLLOW]: Define.
52904 (fdopendir, fstatat): Add prototypes.
52906 2005-01-21 Bruno Haible <bruno@clisp.org>
52908 * modules/classpath: New file.
52909 * MODULES.html.sh (Java): Add classpath.
52911 2005-01-21 Bruno Haible <bruno@clisp.org>
52913 * lib/classpath.h: New file, from GNU gettext.
52914 * lib/classpath.c: New file, from GNU gettext.
52916 2005-01-20 Simon Josefsson <jas@extundo.com>
52918 * modules/version-etc-fsf: New file.
52920 2005-01-20 Simon Josefsson <jas@extundo.com>
52922 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52923 * lib/version-etc.c: Remove version_etc_copyright.
52924 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52925 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52927 2005-01-20 Simon Josefsson <jas@extundo.com>
52929 * lib/base64.h (isbase64): Add.
52931 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52932 using a unsigned prototype, don't inline.
52933 (base64_decode): Use it.
52935 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52937 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52940 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52942 * lib/save-cwd.c (save_cwd): Remove code to support the case
52943 where fchdir is missing or flaky.
52945 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52947 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52949 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
52951 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52952 AC_LIBSOURCES now does this.
52953 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52954 with new ullong_max module.
52956 2005-01-19 Bruno Haible <bruno@clisp.org>
52958 * modules/sh-quote: New file.
52959 * MODULES.html.sh (Executing programs): Add sh-quote.
52961 2005-01-19 Bruno Haible <bruno@clisp.org>
52963 * lib/sh-quote.h: New file, from GNU gettext.
52964 * lib/sh-quote.c: New file, from GNU gettext.
52966 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52968 Merge from coreutils.
52969 * m4/ullong_max.m4: New file.
52970 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52971 (gl_MACROS): Assume localeconv exists.
52973 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52975 Merge changes from coreutils, as described below in several
52976 changelogs dated today.
52978 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52979 (O_DIRECTORY): Remove; not needed here, since "." must be
52980 a directory. All uses removed.
52981 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
52982 universal on Suns, and we also need to test for IRIX.
52983 Revamp code to use 'if' rather than '#if'.
52984 Avoid unnecessary comparison of cwd->desc to 0.
52986 * lib/utimens.c (futimens): Robustify the previous patch, by checking
52987 for known valid error numbers rather than observed invalid ones.
52989 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52991 * modules/ullong_max: New file.
52993 * modules/chdir-long, modules/openat: New files.
52994 * modules/save-cwd (Depends-on): Depend on chdir-long.
52995 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52997 2005-01-18 Jim Meyering <jim@meyering.net>
52999 Merge from coreutils.
53000 * m4/chdir-long.m4, m4/openat.m4: New files.
53001 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53002 save-cwd.h. Add AC_LIBOBJ for save-cwd.
53003 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53004 is sane and DOES follow symlinks. Besides, testing 20 different
53005 systems found no broken chown implementations.
53006 Prompted by a change in rsync's copy of this macro.
53007 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53009 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53011 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53012 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53013 NULL-means-set-to-current-time semantics.
53014 Remove temporary file immediately, rather than waiting
53015 for configure's at-exit trap code to do it.
53017 2005-01-18 Jim Meyering <jim@meyering.net>
53019 * lib/version-etc.c (version_etc_copyright): Update copyright date.
53021 * lib/utimens.c (futimens): Account for the fact that futimes
53022 can also fail with errno == ENOSYS or errno == ENOENT.
53023 Patch from Dmitry V. Levin.
53025 Change the name of the robust chdir function from chdir to chdir_long.
53026 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53027 (restore_cwd): Use chdir_long, not chdir.
53028 * lib/chdir-long.c: Renamed from chdir.c.
53029 * lib/chdir-long.h: Renamed from chdir.h.
53030 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53033 2005-01-18 Bruno Haible <bruno@clisp.org>
53035 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53036 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53037 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53038 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53039 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53040 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53041 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53042 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53043 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53044 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53045 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53046 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53047 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53048 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53049 Use an all-permissive copyright notice, recommended by RMS.
53051 2005-01-18 Bob Proulx <bob@proulx.com>
53053 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53054 simplify offsetof() macro construct to avoid compile failure with
53055 native HP-UX 11.0 ANSI C compiler.
53057 2005-01-17 Bruno Haible <bruno@clisp.org>
53059 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53060 redundant because stpncpy.m4 takes care of it.
53062 2005-01-17 Bruno Haible <bruno@clisp.org>
53064 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53066 2005-01-17 Bruno Haible <bruno@clisp.org>
53068 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53071 2005-01-17 Bruno Haible <bruno@clisp.org>
53073 * lib/fwriteerror.h (fwriteerror): Change specification to include
53075 * lib/fwriteerror.c: Include <stdbool.h>.
53076 (fwriteerror): At the end, close the file stream. Record whether
53077 stdout was already closed.
53079 2005-01-17 Bruno Haible <bruno@clisp.org>
53081 * lib/execute.c (environ): Declare if needed.
53082 * lib/pipe.c (environ): Likewise.
53083 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53085 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53087 * modules/argp: Depend on vsnprintf
53089 2005-01-10 Jim Meyering <jim@meyering.net>
53091 * modules/closeout (Depends-on): Add atexit.
53093 2005-01-06 Bruno Haible <bruno@clisp.org>
53095 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53097 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
53099 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53100 definitions to be after all include files, to avoid collisions.
53101 Problem reported by Bob Proulx.
53103 2005-01-04 Jim Meyering <jim@meyering.net>
53105 Changes imported from coreutils.
53106 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53107 as the mkstemp template, use a temporary directory and an
53108 8.3-friendly template to avoid trouble on systems like DJGPP.
53109 Reported by Juan M. Guerrero via Stepan Kasal.
53110 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53111 close. Remove the temporary directory right away, rather than waiting
53112 for configure's at-exit trap code to do it.
53113 Suggestion from Stepan Kasal.
53115 2005-01-01 Simon Josefsson <jas@extundo.com>
53117 * gnulib-tool: Print #include directives when --import'ing.
53119 2004-12-28 Simon Josefsson <jas@extundo.com>
53121 * tests/test-base64.c: Include required header files. Remove
53124 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
53126 * modules/error (Depends-on): Remove gettext.
53128 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
53130 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53131 not needed. This removes a dependency on the gettext module.
53132 [defined _LIBC]: Do not include <libintl.h>; not needed.
53134 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
53136 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53137 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53139 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
53141 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53144 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53146 * modules/getdate (Depends-on): Remove alloca-opt.
53148 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53150 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53152 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53154 * lib/argp-parse.c: Include <stddef.h>.
53155 (alignof, alignto): New macros.
53156 (parser_init): Don't assume that void * is aligned sufficiently
53159 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53160 need to extend the stack.
53161 (YYINITDEPTH): New macro, so that the initial stack isn't overly
53164 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53166 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53168 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
53170 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53171 (2004-10-24) change. Apparently this was a false alarm.
53173 * modules/getdate: Depend on alloca-opt, not alloca.
53175 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
53177 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53178 Remove now-obsolete comment about AIX.
53179 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53180 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53181 (YYMAXDEPTH): New macro.
53183 2004-12-18 Simon Josefsson <jas@extundo.com>
53185 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53187 2004-12-18 Bruno Haible <bruno@clisp.org>
53189 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53191 2004-12-18 Bruno Haible <bruno@clisp.org>
53193 * lib/fatal-signal.c (fatal_signals): Make non-const.
53194 (init_fatal_signals): New function.
53195 (uninstall_handlers, install_handlers): Ignore signals that were set to
53197 (at_fatal_signal): Call init_fatal_signals.
53198 (init_fatal_signal_set): Likewise. Ignore signals that were set to
53200 Reported by Paul Eggert.
53202 2004-12-18 Bruno Haible <bruno@clisp.org>
53204 * doc/alloca.texi: New file.
53205 * doc/alloca-opt.texi: New file.
53207 2004-12-17 Jim Meyering <jim@meyering.net>
53209 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53210 Otherwise, install-sh could exit with improper exit status when
53211 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
53213 2004-12-16 Simon Josefsson <jas@extundo.com>
53215 * tests/test-base64.c: Add license.
53217 2004-12-15 Stepan Kasal <address@hidden>
53219 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53221 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
53223 * modules/getcwd (Files): Add m4/d-ino.m4.
53224 Suggested by Mark D. Baushke.
53226 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
53228 * lib/getdate.y (textint): New member "negative".
53229 (time_zone_hhmm): New function.
53230 Expect 14 shift-reduce conflicts, not 13.
53231 (o_colon_minutes): New rule.
53232 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53233 (yylex): Set the "negative" member of signed numbers.
53235 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
53237 * doc/getdate.texi (Time of day items, Time zone items):
53238 Describe new formats +00:00, UTC+00:00.
53240 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
53242 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53243 spurious "-l"s. Problem reported by Stepan Kasal.
53245 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
53247 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53248 in Autoconf 2.59. Problem reported by Mark D. Baushke.
53250 2004-12-04 Simon Josefsson <jas@extundo.com>
53252 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53253 Vandoorselaere <yoann@prelude-ids.org>.
53255 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53257 Changes imported from coreutils.
53258 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53260 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53262 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53264 Changes imported from coreutils.
53265 * lib/hard-locale.c: Assume <locale.h> exists.
53266 Include "strdup.h".
53267 (GLIBC_VERSION): New macro.
53268 (hard_locale): Assume setlocale exists.
53269 Rewrite to avoid #ifdef.
53270 Use strdup rather than malloc + strcpy.
53271 * lib/human.c: Assume <locale.h> exists.
53272 (human_readable): Assume localeconv exists.
53274 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53276 * modules/hard-locale (Depends-on): Add strdup.
53278 2004-12-01 Jakub Jelinek <jakub@redhat.com>
53280 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53281 convert T2, not T. (Imported from libc.)
53283 2004-11-30 Simon Josefsson <jas@extundo.com>
53285 * modules/restrict (License): Change to LGPL.
53287 2004-11-30 Simon Josefsson <jas@extundo.com>
53289 * m4/restrict.m4: Add copyright and copying conditions.
53291 2004-11-30 Simon Josefsson <jas@extundo.com>
53293 * m4/base64.m4: New file.
53295 2004-11-30 Simon Josefsson <jas@extundo.com>
53297 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53300 * tests/test-base64.c: New file.
53302 * modules/base64: New file.
53304 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
53306 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53307 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53309 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53311 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
53313 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53314 (__getcwd.c): Don't restore errno; glibc doesn't.
53315 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53316 first, falling back to our code only if its results look suspicious.
53317 Ensure that the resulting buffer is only as large as necessary.
53319 * lib/readutmp.c: Include readutmp.h first.
53320 Include <errno.h>, since readutmp.h no longer does that.
53321 * lib/readutmp.h: Don't include <errno.h>,
53322 <sys/param.h>, <time.h>; not needed to establish interface.
53323 (errno): Remove decl.
53324 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53325 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53326 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53328 2004-11-28 Simon Josefsson <jas@extundo.com>
53330 * lib/base64.h, base64.c: New file.
53332 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
53334 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53336 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
53338 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53339 (Depends-on): Remove pathmax, same. Add mempcpy.
53340 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53341 (Makefile.am): Append getcwd.h to lib_SOURCES.
53342 (Include): Add getcwd.h.
53343 (Maintainer): Change from Jim Meyering to "all, glibc",
53344 since getdate now uses intended-for-glibc code.
53345 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53346 (Depends-on): Depend on getcwd. Do not depend on pathmax.
53348 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
53350 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53351 HP's ANSI C compiler.
53352 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53353 Declaring int functions causes warnings on some modern systems and
53354 shouldn't be needed to compile on ancient ones.
53355 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53358 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53359 with the following changes.
53360 (__set_errno): Parenthesize properly.
53361 Include <stdbool.h>.
53362 (MIN, MAX, MATCHING_INO): New macros.
53363 (__getcwd): Define with prototype, not K&R form.
53364 Use heuristics to allocate default buffer on stack if possible.
53365 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53366 behavior, and to avoid the PATH_MAX limit when computing
53368 Use MATCHING_INO to compare inode number to file.
53369 Check for arithmetic overflow in size calculations.
53370 Fix bug in reallocation of dot array that caused getcwd to fail
53371 on directories nested deeper than 75.
53372 Be more careful about saving errno on error.
53373 Do not use realloc; use only free+malloc, as this is a bit
53374 more flexible and avoids a needless copy operation.
53375 Do not inspect st_dev and st_ino for symbolic links; POSIX
53376 doesn't specify the latter.
53377 Check for closedir errors.
53378 Avoid needless casts.
53379 Use "#ifdef weak_alias" around weak_alias, to be like other
53381 The following changes to getcwd.c have effect only when used in
53382 gnulib; they have no effect inside glibc proper.
53383 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53384 as alloca isn't used.
53385 (alloca, __alloca): Likewise.
53386 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53387 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53388 unconditionally, as gnulib assumes C89 or better.
53389 Do not include <sys/param.h>.
53390 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53391 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53393 (NULL) [!defined NULL]: Remove; we assume C89 or better.
53394 Include <dirent.h> in a way that is compatible with modern Autoconf.
53395 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53396 New macros, if not already defined.
53397 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53398 Use "_LIBC", not "defined _LIBC", for consistency.
53399 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53401 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53402 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
53403 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53404 credit only to Jim Meyering and adjust the copyright dates.
53405 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53406 <stdlib.h>, <unistd.h>, "pathmax.h".
53407 Instead, include "xgetcwd.h" (first) and "getcwd.h".
53408 (INITIAL_BUFFER_SIZE): Remove.
53409 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53411 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
53413 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53414 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
53415 Use the _ONCE methods, for efficiency.
53416 Check for fcntl.h. In test program, include <errno.h>
53417 and <fcntl.h> if available. Remove old K&R cruft from
53418 test program. Check for common errors in GNU/Linux,
53419 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
53420 don't do AC_LIBOBJ, as that's getcwd.m4's job.
53421 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53422 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
53424 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
53425 accommodate new getcwd.c.
53426 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53427 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53428 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53429 that's all we need now.
53431 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53433 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53434 argp-parse.c depends on getopt internals, that means we should
53435 always use our getopt, to be on the safe side.
53436 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53437 order not to spoil the result of an eventual previous invocation
53438 of gl_GETOPT_SUBSTITUTE.
53440 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53442 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53443 redefinition warnings. To avoid them, include the defines
53444 in `#if !defined __need_getopt ... #endif'. The only place
53445 where __getopt_argv_const is used is in definitions
53446 of getopt_long and getopt_long_only below, which are as well
53447 protected by `#ifndef __need_getopt'.
53448 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53449 __need_getopt after including <stdio.h> and <unistd.h> These
53450 headers might have defined it.
53452 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53454 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53456 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53458 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53459 (futimens): New function, which uses futimes if available.
53460 (futimens, utimens): Support timespec==NULL, with same semantics
53461 as utime and utimens.
53462 * lib/utimens.h (futimens): New decl.
53464 2004-11-23 Jim Meyering <jim@meyering.net>
53466 * lib/getopt_.h: Remove trailing blanks.
53468 2004-11-23 Jim Meyering <jim@meyering.net>
53470 * lib/__fpending.c: Add comment.
53472 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
53474 * modules/canonicalize (Depends-on): Add xreadlink.
53475 Problem reported by James Youngman.
53477 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
53479 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53481 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53482 optopt): Use them instead of invoking ## directly; otherwise, the
53483 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53485 2004-11-19 Bruno Haible <bruno@clisp.org>
53487 * lib/strtok_r.c: Move comments from here...
53488 * lib/strtok_r.h: ... to here.
53490 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53492 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53493 implementations that mishandle size_t overflow.
53495 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53497 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53498 might fail. Problem reported by Yoann Vandoorselaere.
53499 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53500 implementations that mishandle size_t overflow.
53502 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53504 * modules/canon-host (Depends-on): Add strdup.
53506 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53508 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53510 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53512 * lib/canon-host.c: Include "strdup.h".
53513 (canon_host): Use getaddrinfo if available, so that IPv6 works.
53514 Use strdup instead of malloc/strcpy to duplicate strings.
53516 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53517 (human_space_before_unit): New constant.
53518 * lib/human.c (human_readable): Support it.
53520 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53521 (xgetcwd): Set errno correctly when failing.
53522 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53523 the failure is actually due to a PATH_MAX problem.
53525 Further getopt changes to make it more likely that glibc will
53526 buy the changes back.
53527 * lib/getopt.c (POSIXLY_CORRECT): New constant.
53528 (getopt): Use it, so to preserve glibc semantic
53529 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53530 when compiling for libc.
53531 * lib/getopt_.h (__getopt_argv_const): Bring it back.
53532 (getopt_long, getopt_long_only): Use it.
53534 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53535 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
53536 (getopt): Argv is now char * const *, as per standard.
53537 (_getopt_internal_r, _getopt_internal): Argv is now char **,
53538 not char *__getopt_argv_const *.
53539 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53540 _getopt_long_only_r): Likewise.
53541 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53542 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53543 _getopt_long_r, _getopt_long_only_r): Likewise.
53544 * lib/getopt_.h (__getopt_argv_const): Remove.
53545 (getopt): Argv is now char * const *, as per standard.
53547 * lib/getdate.y (tORDINAL): New token.
53548 (day, relunit): Allow it for relative times.
53549 (relative_time_table): Use tORDINAL for ordinals.
53551 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53553 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53554 Document that "second" isn't allowed as an ordinal number.
53556 2004-11-16 Jim Meyering <jim@meyering.net>
53558 * modules/closeout (Depends-on): Add fpending.
53560 2004-11-15 Jim Meyering <jim@meyering.net>
53562 * lib/closeout.c: Include "__fpending.h" once again.
53563 Include <stdbool.h>.
53564 (close_stdout): Don't fail just because stdout was closed initially,
53565 since some programs don't write to stdout in the normal course of
53566 operation (other than --version and --help), and we don't want this
53567 function to make e.g. `touch file >&-' fail.
53568 But do fail if it was closed and someone has tried to write to it.
53569 E.g., `printf foo >&-' must fail.
53571 2004-11-13 Jim Meyering <jim@meyering.net>
53573 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53575 2004-11-12 Simon Josefsson <jas@extundo.com>
53577 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53578 small doc fix is still pending.
53580 2004-11-11 Simon Josefsson <jas@extundo.com>
53582 * modules/strtok_r: New file.
53584 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53587 2004-11-11 Simon Josefsson <jas@extundo.com>
53589 * m4/strtok_r.m4: New file.
53591 * m4/getopt.m4: Replace opterr.
53593 2004-11-11 Simon Josefsson <jas@extundo.com>
53595 * lib/strtok_r.h, strtok_r.c: New file.
53597 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53599 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53600 of replacing opterr, getopt, etc. This should handle the
53601 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53603 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53605 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53606 we can stop lying to compilers about the constness of argv when we
53607 are compiled outside glibc.
53608 (getopt, getopt_long, getopt_long_only): Use it.
53609 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53610 _getopt_internal, getopt): Likewise.
53611 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53612 _getopt_long_only_r): Likewise.
53613 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53614 _getopt_long_r, _getopt_long_only_r): Likewise.
53616 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53617 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53618 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53619 the other external symbols.
53620 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53621 declaration, since the above renaming now works around collisions.
53623 2004-11-11 Jim Meyering <jim@meyering.net>
53625 * lib/linebreak.c: Remove trailing blanks.
53626 * lib/alloca_.h: Likewise.
53627 * lib/acosl.c: Likewise.
53628 * lib/euidaccess.c: Likewise.
53629 * lib/allocsa.h: Likewise.
53631 2004-11-10 Simon Josefsson <jas@extundo.com>
53633 * m4/getaddrinfo.m4: New file.
53635 2004-11-10 Simon Josefsson <jas@extundo.com>
53637 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53639 2004-11-10 Simon Josefsson <jas@extundo.com>
53641 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53644 * modules/getaddrinfo: New file.
53646 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53648 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53650 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53652 * lib/mktime.c (SHR): New macro, which is a portable
53653 substitute for >> that should work even on Crays.
53654 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53655 Problem reported by Mark D. Baushke in
53656 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53657 * lib/getdate.y (SHR): Likewise.
53659 * lib/strftime.c (SHR): Likewise.
53661 * lib/quotearg.c (struct quoting_options): Use unsigned int for
53662 quote_these_too, so that right shifts are well defined. All uses
53665 2004-11-10 Jim Meyering <jim@meyering.net>
53667 Ensure that no close failure goes unreported.
53668 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
53669 return early when it seems there's nothing to flush.
53670 Don't include __fpending.h.
53672 2004-11-10 Jim Meyering <jim@meyering.net>
53674 * modules/closeout (Depends-on): Remove fpending.
53676 2004-11-10 Jim Meyering <jim@meyering.net>
53678 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53680 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53682 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
53684 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53685 and AC_REQUIRE when possible, to avoid duplicate checks.
53686 Check for <wchar.h>.
53688 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53690 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53692 2004-11-09 Bruno Haible <bruno@clisp.org>
53694 * m4/sockpfaf.m4: New file.
53696 2004-11-05 Bruno Haible <bruno@clisp.org>
53698 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53699 Reported by Mark D. Baushke <mdb@cvshome.org>.
53701 2004-11-04 Bruno Haible <bruno@clisp.org>
53703 2004-09-11 Bruno Haible <bruno@clisp.org>
53704 * allocsa.valgrind: New file.
53705 2004-02-06 Bruno Haible <bruno@clisp.org>
53706 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53707 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53708 Reported by Christopher Seip <chris.seip@hp.com>.
53710 2004-11-04 Bruno Haible <bruno@clisp.org>
53712 * modules/allocsa (Files): Add lib/allocsa.valgrind.
53713 (Makefile.am): Distribute it.
53715 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
53717 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53718 with errno == ERANGE if the buffer is too small.
53719 Problem reported by Mark D. Baushke.
53721 2004-11-03 Albert Chin <china@thewrittenword.com>
53722 Paul Eggert <eggert@cs.ucla.edu>
53724 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53725 equivalent, substitute $ac_type for equivalent type rather than
53726 blindly using uint32_t *always* which won't work if uint32_t is not
53727 available. Define _UINT32_T to work around typedef of uint32_t if
53728 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53731 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53733 * m4/jm-macros.m4: Sync from coreutils.
53734 (gl_MACROS): Check for mbrlen, for pathchk.
53735 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53737 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53739 * lib/xreadlink.c (MAXSIZE): New macro.
53740 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
53741 size does not exceed MAXSIZE. Avoid cast.
53742 As suggested by Mark D. Baushke in
53743 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53744 if readlink fails with buffer size just under MAXSIZE, try again
53747 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53749 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53751 2004-11-02 Derek R. Price <derek@ximbiot.com>
53752 and Paul Eggert <eggert@cs.ucla.edu>
53754 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53755 (get_date): Overparenthesize to avoid GCC warning.
53757 2004-11-02 Bruno Haible <bruno@clisp.org>
53759 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53762 2004-11-02 Bruno Haible <bruno@clisp.org>
53764 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53765 function returns void.
53767 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53769 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53770 fflush_unlocked, flockfile, funlockfile, funlockfile,
53771 fputs_unlocked, putc_unlocked.
53773 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53775 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53776 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53779 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53781 * modules/getdate (Files): Add doc/getdate.texi.
53782 (Depends-on): Add setenv, xalloc.
53784 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53786 * lib/getdate.y: Add support for TZ="foo" within a date string.
53787 Fix some bugs near time_t boundaries. Reject dates with
53788 out-of-range components, e.g., "Sept 31".
53789 Include <stdlib.h>, "setenv.h", "xalloc.h".
53790 (ISDIGIT_LOCALE): Remove; unused.
53791 Note that the TZ and time functions used here are not reentrant.
53792 (mktime_ok, get_tz): New functions.
53793 (TZBUFSIZE): New constant.
53794 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
53795 This requires that we sometimes generate our own TZ="XXX..." setting.
53797 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53799 * doc/getdate.texi: New file, from coreutils with modifications for
53800 the new TZ parsing.
53802 2004-10-27 Derek R. Price <derek@ximbiot.com>
53804 * lib/mktime.c (not_equal_tm): Remove redundant check.
53806 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53808 * modules/regex (lib_SOURCES): Add regex.c.
53809 Reported by James Youngman in
53810 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53812 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53814 * lib/getdate.y: Use Bison 1.875 features, and some minor
53815 code cleanups. This change does not affect semantics.
53816 Don't include <stdlib.h>; no longer needed.
53817 Don't include unlocked-io.h; only the "#if TEST" code uses
53818 stdio, and performance isn't crucial there.
53819 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53820 Bison 1.875 features as described below.
53821 All uses of "PC." replaced by "pc->".
53822 (YYSTYPE): Add a forward declaration.
53823 (yylex, yyerror): Use full prototypes in forward decls.
53824 Use "%pure-parser" rather than obsolescent "%pure_parser".
53825 Use %parse-param and %lex-param instead of obsolescent
53826 YYPARSE_PARAM and YYLEX_PARAM.
53827 (meridian_table, month_and_day_table, time_units_table,
53828 relative_time_table, time_zone_table, military_table,
53829 lookup_zone, lookup_word, get_date):
53830 Use NULL instead of 0 where appropriate.
53831 (to_hour): Avoid abort (), to avoid a dependency on
53833 (yyerror, yylex): Now accepts parser_control * arg.
53834 (main) [TEST]: Use '\0' rather than 0 for char.
53836 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53838 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53840 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53842 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53843 It's now the caller's responsibility to handle the case where
53844 !HAVE_GETPAGESIZE && !defined getpagesize.
53846 * lib/mktime.c (leapyear): Arg is long int, not int.
53848 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
53850 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53852 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
53854 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53855 missing. Problem reported by James Youngman.
53857 2004-10-16 Simon Josefsson <jas@extundo.com>
53859 * gnulib-tool: Fix comments. Fix parse problem.
53860 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53862 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
53864 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53865 implementation of getopt_long. Problem reported by Alexander Taler in:
53866 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53868 2004-10-15 Bruno Haible <bruno@clisp.org>
53870 * gnulib-tool: Untabify. Initialize supplied_libname.
53871 (func_usage): More homogenous output.
53872 (func_modules_transitive_closure, func_modules_to_filelist,
53873 func_emit_lib_Makefile_am): New functions.
53874 (func_import): New function, extracted from big case statement. Use
53875 func_get_license, func_modules_transitive_closure,
53876 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53877 opt_lgpl. Don't use test -a, as it's not portable.
53878 (func_create_testdir): Use func_modules_transitive_closure,
53879 func_modules_to_filelist, func_emit_lib_Makefile_am.
53881 2004-10-15 Bruno Haible <bruno@clisp.org>
53883 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53885 2004-10-15 Bruno Haible <bruno@clisp.org>
53887 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53888 the portions belonging to each module.
53889 Suggested by Derek Robert Price <derek@ximbiot.com>.
53891 2004-10-12 Simon Josefsson <jas@extundo.com>
53893 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53894 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53897 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53899 * modules/vsnprintf: New file.
53901 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53903 * m4/vsnprintf.m4: New file.
53905 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53907 * lib/vsnprintf.h: New file.
53908 * lib/vsnprintf.c: New file.
53910 2004-10-11 Bruno Haible <bruno@clisp.org>
53912 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53915 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
53917 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53919 2004-10-07 Bruno Haible <bruno@clisp.org>
53921 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53922 fits into the provided buffer.
53924 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
53926 * lib/diacrit.c, diacrit.h: Add GPL notice.
53928 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53930 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53931 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53932 This avoids a potential constant-folding bug.
53934 2004-10-05 Bruno Haible <bruno@clisp.org>
53936 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53937 for the declaration of strsep.
53939 2004-10-05 Bruno Haible <bruno@clisp.org>
53941 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53943 2004-10-04 Simon Josefsson <jas@extundo.com>
53945 * modules/memmem: New file.
53946 * tests/test-memmem.c: New file.
53947 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53949 2004-10-04 Simon Josefsson <jas@extundo.com>
53951 * m4/memmem.m4: New file.
53953 2004-10-04 Simon Josefsson <jas@extundo.com>
53955 * lib/memmem.h: New file.
53956 * lib/memmem.c: New file, taken from glibc.
53958 2004-10-04 Simon Josefsson <jas@extundo.com>
53960 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53961 '#ifdef USE_UNLOCKED_IO'.
53963 2004-10-04 Simon Josefsson <jas@extundo.com>
53965 * config/srclist.txt: Add memmem from glibc.
53967 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53969 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53971 * modules/argmatch, modules/argp, modules/closeout, modules/error,
53972 modules/exclude, modules/getdate, modules/getline,
53973 modules/getndelim2, modules/getpass, modules/getpass-gnu,
53974 modules/getusershell, modules/linebuffer, modules/md5,
53975 modules/mountlist, modules/posixtm, modules/readtokens,
53976 modules/readutmp, modules/regex, modules/sha1,
53977 modules/version-etc, modules/yesno:
53978 Remove dependency on unlocked-io.
53980 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53982 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
53984 * m4/unlocked-io.m4: Add copyright notice.
53985 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53987 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53989 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
53990 * lib/xmalloc.c (xmemdup): Likewise.
53991 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53992 XFREE): Remove these long-obsolescent macros.
53993 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53994 * lib/xstrdup.c: Remove.
53996 * lib/regex.c (re_comp): Cast gettext return value to char *,
53997 Problem reported by Martin Neitzel via Mark D. Baushke.
53999 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
54001 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54002 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54003 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54004 regex.c, sha1.c, version-etc.c, yesno.c:
54005 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54006 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54007 the includer's responsibility.
54009 Sync from coreutils.
54011 * lib/modechange.c (mode_compile): Don't decrement a pointer that
54012 points to the start of a string, as the C Standard says the
54013 resulting behavior is undefined.
54015 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54016 simple -> simple_backups, numbered_existing ->
54017 numbered_existing_backups, numbered -> numbered_backups
54018 to avoid shadowing problems. All uses changed.
54019 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54020 * lib/backupfile.c (check_extension, numbered_backup):
54021 Rename locals to avoid shadowing 'basename'.
54022 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54025 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54026 * lib/.cvsignore: Add getopt.h.
54028 2004-10-04 Bruno Haible <bruno@clisp.org>
54030 * modules/README: New file.
54031 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54034 2004-10-02 Jim Meyering <jim@meyering.net>
54036 * lib/dirfd.h, getpagesize.h: Add copyright notice.
54038 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54040 * modules/strsep: New file.
54042 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54044 * m4/strsep.m4: New file.
54046 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54048 * lib/strsep.h: New file.
54049 * lib/strsep.c: New file.
54051 2004-10-01 Simon Josefsson <jas@extundo.com>
54053 * lib/snprintf.c (snprintf): Handle size==0.
54055 2004-10-01 Simon Josefsson <jas@extundo.com>
54056 Bruno Haible <bruno@clisp.org>
54058 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54059 (snprintf): Declare 'args'.
54061 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
54063 * lib/snprintf.c: Remove comments as to why each header is needed.
54065 2004-10-01 Bruno Haible <bruno@clisp.org>
54067 * MODULES.html.sh: Add strsep.
54069 2004-09-30 Simon Josefsson <jas@extundo.com>
54071 * modules/snprintf: New file.
54073 2004-09-30 Simon Josefsson <jas@extundo.com>
54075 * m4/snprintf.m4: New file.
54077 2004-09-30 Simon Josefsson <jas@extundo.com>
54079 * lib/snprintf.h, lib/snprintf.c: New files.
54081 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
54083 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54084 (hol_entry_help): Never translate an empty string.
54085 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54086 * lib/argp.h (OPTION_NO_TRANS): New option.
54088 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54090 * modules/argp (Maintainer): Replace Simon Josefsson
54091 by Sergey Poznyakoff.
54093 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54095 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54096 changes merged back into glibc.
54098 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54100 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54102 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
54104 * lib/xvasprintf.c: Include xalloc.h.
54105 (xvasprintf): Use xalloc_die, not xmalloc_die.
54107 2004-09-29 Bruno Haible <bruno@clisp.org>
54109 * modules/alloca-opt: New file, derived from modules/alloca.
54110 * modules/allocsa: Depend on alloca-opt instead of alloca.
54111 * modules/setenv: Likewise.
54112 * modules/vasnprintf: Likewise.
54113 * MODULES.html.sh: Add alloca-opt.
54115 2004-09-28 Simon Josefsson <jas@extundo.com>
54117 * gnulib-tool: New parameter --lgpl, to asseert that modules are
54118 LGPL, and to replace license template from GPL to LGPL.
54120 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
54122 * modules/dummy: Change license to LGPL.
54124 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
54126 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54128 2004-09-24 Simon Josefsson <jas@extundo.com>
54130 * modules/minmax (License): Change from GPL to LGPL.
54132 2004-09-23 Simon Josefsson <jas@extundo.com>
54134 * gnulib-tool (--import): Typo.
54136 2004-09-23 Simon Josefsson <jas@extundo.com>
54138 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54140 2004-09-22 Bruno Haible <bruno@clisp.org>
54142 * modules/*: Add 'License' field.
54143 * gnulib-tool: Accept --extract-license option.
54144 (func_get_license): New function.
54146 2004-09-21 Bruno Haible <bruno@clisp.org>
54148 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54149 Reported by Simon Josefsson.
54151 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
54153 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54154 gl_AC_TYPE_LONG_LONG.
54156 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
54158 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54160 2004-09-18 Simon Josefsson <jas@extundo.com>
54161 and Paul Eggert <eggert@cs.ucla.edu>
54163 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54164 calls with autoreconf. Define GL_LIB.
54166 2004-09-14 Karl Berry <karl@gnu.org>
54168 * config/srclist.txt: unsync setenv.c, sigh.
54170 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
54172 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54173 Problem reported by Bruno Haible in:
54174 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54176 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
54178 * config/srclist.txt: Comment out argp-pvh.c.
54180 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
54182 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54183 in case some system header has #define'd it. Problem reported by
54184 Soeren D. Schulze in
54185 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54187 2004-09-09 Karl Berry <karl@gnu.org>
54189 * regex.[ch]: delete from the root. These were supposed to be
54190 synced with emacs cvs, but this has not happened for about
54191 a year, and anyway nothing else uses emacs regex.[ch].
54192 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54193 lib/regex[.ch] is untouched.
54195 2004-09-09 Bruno Haible <bruno@clisp.org>
54197 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54199 2004-09-09 Bruno Haible <bruno@clisp.org>
54201 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54203 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54205 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
54207 * modules/xvasprintf: New file.
54208 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54210 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
54212 * lib/xvasprintf.h: New file.
54213 * lib/xvasprintf.c: New file.
54214 * lib/xasprintf.c: New file.
54216 2004-09-08 Bruno Haible <bruno@clisp.org>
54218 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54220 2004-09-08 Bruno Haible <bruno@clisp.org>
54222 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54223 length is > INT_MAX.
54224 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54227 2004-09-08 Bruno Haible <bruno@clisp.org>
54229 * lib/stdint_.h: New file, taken from GNU clisp.
54231 2004-09-08 Bruno Haible <bruno@clisp.org>
54232 Oskar Liljeblad <oskar@osk.mine.nu>
54234 * modules/stdint: New file.
54235 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54237 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54239 Import from coreutils.
54240 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54241 strings on unbounded length. alloca's performance benefits aren't
54242 that important here.
54243 (V_STRDUP): Remove.
54244 (parse_with_separator): New function, with most of the internals
54245 of the old parse_user_spec. Allow user to omit both user and group,
54246 for compatibility with FreeBSD.
54247 Clone only the user name, not the entire spec.
54248 Do not set *uid, *gid unless entirely successful.
54249 Avoid memory leak in some failing cases.
54250 Fix regression for USER.GROUP reported by Dmitry V. Levin in
54251 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54252 (parse_user_spec): Rewrite to use parse_with_separator.
54254 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54256 * modules/userspec: Don't depend on alloca.
54258 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54260 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54262 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
54264 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54265 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54266 utimecmp, utimens, xnanosleep. Rename sha to sha1.
54268 2004-08-16 Simon Josefsson <jas@extundo.com>
54270 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54271 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54272 Add --dry-run for --import.
54273 Let user provided command line parameters override configure.ac
54276 2004-08-12 Simon Josefsson <jas@extundo.com>
54278 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54279 as discussed with Paul Eggert in threads rooted at
54280 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54282 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54283 Before, the test was empty, and relied on ELIDE_CODE in source
54285 (gl_PREREQ_GETOPT): New macro.
54286 (gl_GETOPT): Use them.
54288 2004-08-12 Simon Josefsson <jas@extundo.com>
54290 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54291 * lib/getopt_.h: Renamed from getopt.h.
54293 2004-08-12 Simon Josefsson <jas@extundo.com>
54295 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54296 Change default library name from libfoo to libgnu.
54297 Now, if you have a configure.ac that says:
54300 gl_MODULES(error getopt etcetera)
54302 you can import all you need by running:
54303 ../gnulib/gnulib-tool --import
54305 * modules/getopt (Files): Rename getopt.h to getopt_.h.
54306 (Makefile.am): Rewrite, use logic from argz.
54307 (Include): Use <getopt.h> instead of "getopt.h".
54309 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54311 * modules/argp (Files): Add m4/unlocked-io.m4.
54312 (Depends-on): Add extensions.
54314 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54316 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54317 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54318 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54319 Check for program_invocation_name, program_invocation_short_name,
54320 flockfile, funlockfile, features.h, _getopt_long_only_r.
54322 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54324 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54325 its complicated substitute.
54326 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54327 and program_invocation_name.
54328 (__argp_basename) [!_LIBC]: Remove; the only use was
54329 replaced by its body.
54330 (__argp_short_program_name): Change condition from
54331 !defined __argp_short_program_name to
54332 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54333 to match argp-namefrob.h.
54334 (__argp_failure): Don't assume strerror_r returns char *.
54335 * lib/argp-parse.c (N_): Define unconditionally.
54336 (argp_default_options): Fill out initializers with 0 to avoid
54339 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54341 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54344 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54346 Merge from coreutils.
54348 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54350 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54351 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54353 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54355 Merge from coreutils.
54357 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54358 wmemchr or wmemcpy. Problem reported by Robert Dahlem
54359 for Reliant Unix 5.43.
54361 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54362 (union fooround): Use uintmax_t, not long int.
54363 The rest is a merge from libc:
54364 [defined _LIBC]: Include <shlib-compat.h>.
54365 (_obstack) [defined _LIBC]: Remove after 2.3.4.
54367 * lib/settime.c (settime): Recode to avoid warning with
54370 * lib/strverscmp.c: Convert to UTF-8.
54372 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54374 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54377 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54379 * modules/xalloc-die: New file.
54380 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54382 * modules/md5 (Files): Add m4/uint32_t.m4.
54383 * modules/sha1: Renamed from modules/sha.
54385 Rename lib/sha.h to lib/sha1.h.
54386 Rename lib/sha.c to lib/sha1.c.
54387 Rename m4/sha.m4 to m4/sha1.m4.
54388 (lib_SOURCES): Likewise.
54389 (configure.ac): Rename gl_SHA to gl_SHA1.
54390 (Include): sha.h -> sha1.h.
54392 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54394 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54395 * m4/sha1.m4: Renamed from sha.m4.
54396 (gl_SHA1): Renamed from gl_SHA. All uses changed.
54398 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54400 * lib/obstack.h (obstack_empty_p):
54401 Don't assume that chunk->contents is suitably aligned.
54402 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54403 Likewise. Problem reported by Benno in
54404 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54406 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54407 readable. This could be improved further but it'd take some work.
54409 2004-08-08 Simon Josefsson <jas@extundo.com>
54411 * modules/xgethostname (Depends-on): Remove exit and error (not
54414 * modules/getpass-gnu: Add getpass.h.
54415 (Depends-on): Add stdbool.
54416 * modules/getpass: Add getpass.h.
54418 2004-08-08 Simon Josefsson <jas@extundo.com>
54420 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54421 Check getpass declaration.
54423 2004-08-08 Simon Josefsson <jas@extundo.com>
54425 * lib/xgethostname.c: Don't include error.h (not used).
54427 * lib/getpass.h: Add.
54428 * lib/getpass.c: Include getpass.h first.
54430 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
54432 * lib/xalloc-die.c: New file.
54433 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54435 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54436 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54438 (_, N_, xalloc_die): Move to xalloc-die.c.
54439 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54440 so that we needn't mess with xalloc_msg_memory_exhausted.
54442 * lib/sha1.h: Renamed from sha.h.
54443 (SHA1_H): Renamed from _SHA_H.
54444 (sha1_ctx): Renamed from sha_ctx.
54445 (sha1_init_ctx): Renamed from sha_init_ctx.
54446 (sha1_process_block): Renamed from sha_process_block.
54447 (sha1_process_bytes): Renamed from sha_process_bytes.
54448 (sha1_finish_ctx): Renamed from sha_finish_ctx.
54449 (sha1_read_ctx): Renamed from sha_read_ctx.
54450 (sha1_stream): Renamed from sha_stream.
54451 (sha1_buffer): Renamed from sha_buffer.
54452 * lib/sha1.c: Likewise; renamed from sha.c.
54453 Do not include <sys/types.h>.
54454 Include <stddef.h> rather than <stdlib.h>.
54456 2004-08-08 Bruno Haible <bruno@clisp.org>
54458 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54459 FILESYSTEM_PREFIX_LEN.
54460 * lib/progreloc.c: Likewise.
54461 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54463 2004-08-06 Simon Josefsson <jas@extundo.com>
54465 * modules/progname (Depends-on): Don't depend on stdbool.
54467 2004-08-06 Simon Josefsson <jas@extundo.com>
54469 * modules/getsubopt: New file.
54470 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54473 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54475 More merge from coreutils.
54477 * m4/utimens.m4, m4/utimecmp.m4: New files.
54478 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54479 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54480 prereq.m4, sha.m4: Import changes from coreutils.
54482 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54484 More merge from coreutils.
54485 * modules/raise, modules/readtokens0, modules/utimens:
54486 * modules/utimecmp, module/xnanosleep: New files.
54487 * modules/strftime: Add lib/strftime.h.
54488 Change include from <time.h> to "strftime.h".
54489 * modules/yesno: Add lib/yesno.h.
54490 * modules/backupfile: Remove lib/addext.c.
54491 * modules/euidaccess: Add stat-macros.h.
54492 * modules/canonicalize, modules/euidaccess,
54493 modules/filemode, modules/lchown, modules/makepath,
54494 modules/rmdir, modules/stat: Likewise.
54496 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54499 * lib/argp-help.c (make_hol, hol_append): Don't assume that
54500 SIZE_MAX is a valid preprocessor constant.
54501 (__argp_basename): Change from "#ifndef _LIBC"
54502 to "#ifndef __argp_short_program_name", so that
54503 we don't compile these functions for tar.
54505 More merges from coreutils.
54506 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54507 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54508 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54509 * lib/addext.c: Remove; no longer needed.
54510 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54511 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54512 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54513 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54514 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54515 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54516 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54517 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54518 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54519 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54520 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54521 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54522 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54523 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54524 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54525 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54526 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54527 Import changes from coreutils.
54529 2004-08-05 Simon Josefsson <jas@extundo.com>
54531 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54533 2004-08-05 Simon Josefsson <jas@extundo.com>
54535 * m4/getsubopt.m4: New file.
54537 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54539 Merge from coreutils.
54541 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54542 * m4/getcwd-path-max.m4: New files.
54544 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54545 FILESYSTEM_PREFIX_LEN ->
54546 FILE_SYSTEM_PREFIX_LEN.
54547 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54548 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54549 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54550 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54552 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54553 prerequisite modules now handle the DOS stuff.
54554 Don't check for unistd.h.
54556 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54558 Merge from coreutils.
54560 * lib/.gdb-history: Remove; this doesn't belong here.
54562 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54563 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54564 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54565 * lib/getcwd.c: New files.
54567 * lib/dirname.h: Include <stdbool.h>.
54568 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54569 for consistency with POSIX terminology. All uses changed.
54570 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54571 (strip_trailing_slashes): Use bool for booleans.
54572 * lib/stripslash.c (strip_trailing_slashes): Likewise.
54574 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54575 sometimes returns a positive errno value even when it succeeds.
54576 (print_errno_message) [!LIBC]: Fall back on strerror if
54577 __strerror_r fails.
54579 * lib/path-concat.c (mempcpy): Don't define if a system header defines
54580 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54581 (longest_relative_suffix): New function.
54582 (path_concat): Use it. Assume first argument is not NULL.
54583 Port to DOS. Omit redundant separators.
54584 Report an error instead of returning NULL.
54585 Use mempcpy instead of memcpy.
54586 (xpath_concat): Remove: not declared or used.
54588 * lib/same.h: Include <stdbool.h>
54589 (same_name): Return bool, not int.
54590 * lib/same.c (same_name): Likewise.
54591 (errno): Don't declare; we assume C89 or better now.
54593 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54594 if not already defined.
54596 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54597 * lib/dup-safer.c (errno): Likewise.
54599 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54601 Merge from coreutils.
54602 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54603 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54604 * modules/path-concat: Don't depend on strdup.
54606 2004-08-03 Simon Josefsson <jas@extundo.com>
54608 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54609 * lib/progname.h: Don't include stdbool.h.
54611 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54613 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54614 * MODULES.html.sh (func_all_modules): Remove fatal.
54616 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54618 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54620 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54622 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54625 2004-08-02 Simon Josefsson <jas@extundo.com>
54627 * lib/getsubopt.h: New file, with comments from Bruno Haible.
54628 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54629 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54631 2004-08-01 Simon Josefsson <jas@extundo.com>
54633 * lib/xgetdomainname.c: Include stdlib.h, for free().
54635 2004-07-19 Bruno Haible <bruno@clisp.org>
54637 * MODULES.html.sh (func_all_modules): Add dummy.
54639 2004-07-16 Simon Josefsson <jas@extundo.com>
54641 * modules/dummy: New file.
54643 2004-07-16 Simon Josefsson <jas@extundo.com>
54645 * lib/dummy.c: New file.
54647 2004-07-16 Bruno Haible <bruno@clisp.org>
54649 * lib/backupfile.h: Add extern "C" for C++.
54650 * lib/closeout.h: Likewise.
54651 * lib/copy-file.h: Likewise.
54652 * lib/findprog.h: Likewise.
54653 * lib/full-write.h: Likewise.
54654 * lib/pathname.h: Likewise.
54655 * lib/progname.h: Likewise.
54656 * lib/stpcpy.h: Likewise.
54657 * lib/stpncpy.h: Likewise.
54658 * lib/strcase.h: Likewise.
54659 * lib/strstr.h: Likewise.
54660 * lib/xalloc.h: Likewise.
54662 * lib/mbswidth.h: Add extern "C" for C++.
54663 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54665 2004-07-13 Robert Millan <robertmh@gnu.org>
54667 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54669 2004-07-09 Simon Josefsson <jas@extundo.com>
54671 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
54672 failed without this.)
54674 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54676 * modules/chown (Files): Add lib/fchown-stub.c, since
54677 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54679 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54681 * lib/fchown-stub.c: New file.
54683 2004-06-24 Jim Meyering <jim@meyering.net>
54685 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54687 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54689 * modules/argz: Omit "#include".
54691 * MODULES.html.sh (func_all_modules): Add calloc, to match
54692 2004-06-01 addition of calloc module.
54694 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54696 * m4/argz.m4: New file, which is autoupdated from libtool.
54698 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54700 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54703 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54705 * config/srclist-update: Don't insist on "USA." before the
54706 close-comment, as libtool omits the period and puts the */ on a
54708 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54709 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54711 2004-06-22 Gary V. Vaughan <gary@gnu.org>
54713 * modules/argz: New file.
54714 * MODULES.html.sh (func_all_modules): Add argz.
54716 2004-06-12 Jim Meyering <jim@meyering.net>
54717 and Paul Eggert <eggert@cs.ucla.edu>
54719 * modules/hash (Files): Add lib/xalloc.h.
54720 * modules/pipe (Depends-on): Add wait-process.
54721 * modules/stat (Depends-on): Add xalloc.
54722 * modules/userspec (Files): Add lib/userspec.h.
54725 Upgrade from gettext-0.13.
54726 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54727 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54728 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54730 2004-06-10 Jim Meyering <jim@meyering.net>
54732 * lib/calloc.c: New file.
54734 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
54736 * lib/getdate.y (yylex): Allow space between sign and number.
54737 Problem reported by Dan Jacobson.
54739 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54741 Merge from coreutils CVS.
54743 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54744 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54745 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54746 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54747 xstrtol.m4: Fix copyright date and/or serial number.
54749 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54750 See if we need an fchown replacement.
54751 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54752 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54753 and use the replacement function if we detect either defect.
54755 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54758 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54759 and Jim Meyering <jim@meyering.net>
54761 Merge from coreutils CVS.
54763 * lib/stat-macros.h: New file, with contents from file-type.h
54764 and coreutils' system.h.
54765 * lib/file-type.c: Include "stat-macros.h".
54766 * lib/file-type.h (file_type): Move all macro definitions to new file,
54769 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54770 Wrap old code with this conditional.
54771 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54772 function that does not dereference symlinks.
54773 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54775 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54776 dependency problems.
54777 (xreadlink): Accept new arg SIZE, for efficiency.
54778 All decls and uses changed.
54779 * lib/xreadlink.h: Include <stddef.h>, for size_t.
54781 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54782 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54784 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54787 2004-06-01 Jim Meyering <jim@meyering.net>
54789 * m4/calloc.m4: New file.
54791 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
54793 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54794 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
54795 Also, fix a typo in a diagnostic.
54797 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54799 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54800 or AC_FUNC_REALLOC.
54802 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54804 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54805 macros to be defined.
54806 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54807 the allocator returns NULL because the requested size is zero.
54809 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
54811 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54812 var. Add comment explaining why libc still defines it. This
54813 merges the following patch from glibc:
54814 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54816 2004-05-20 Andreas Schwab <schwab@suse.de>
54818 * m4/free.m4: Replace free if it not known to work, not the other
54821 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
54823 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
54824 present in glibc since revision 1.1 of this file.
54825 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54826 obstack_alignment_mask, obstack_alloc, obstack_base,
54827 obstack_blank, obstack_blank_fast, obstack_chunk_size,
54828 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54829 obstack_grow0, obstack_init, obstack_int_grow,
54830 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54831 obstack_next_free, obstack_object_size, obstack_ptr_grow,
54832 obstack_ptr_grow_fast, obstack_room): Remove declarations of
54833 nonexistent functions.
54835 2004-05-18 Karl Berry <karl@gnu.org>
54837 * config/srclist.txt: break link for vasnprintf.c.
54839 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54841 Port obstack to the AS/400, where pointers are 16 bytes wide and
54842 you cannot cast an integer to a valid pointer. This patch is
54843 currently waiting to be integrated into glibc; see
54844 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54846 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54847 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54848 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54849 (struct obstack): temp member is now a union of a pointer and
54850 an integer, instead of an integer. All integer uses changed.
54851 This does not affect the physical layout of struct obstack,
54852 except on hosts (like the AS/400) where the size or alignment of
54853 void * is greater than that of ptrdiff_t.
54854 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54855 __STDC__)]: Store temporary in pointer member of union, not
54857 * lib/obstack.c: Include <stddef.h>, for offsetof.
54858 (struct fooalign): Remove; it doesn't need a name.
54859 (union fooround): Change double to long double, and add void *.
54860 (DEFAULT_ALIGNMENT): Use offsetof to compute.
54861 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54862 not a macro. Hence the values are always int; so remove all
54863 casts-to-int in uses.
54865 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54867 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54868 we can get this patch merged into glibc.
54870 2004-05-17 Derek R. Price <derek@ximbiot.com>
54871 Paul Eggert <eggert@cs.ucla.edu>
54873 * m4/argp: Depend on alloca.
54875 2004-05-17 Derek R. Price <derek@ximbiot.com>
54876 Paul Eggert <eggert@cs.ucla.edu>
54878 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54881 2004-05-17 Bruno Haible <bruno@clisp.org>
54883 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54884 precision that consists of a '.' followed by an empty digit string.
54885 Patch by Tor Lillqvist <tml@iki.fi>.
54887 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54889 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54890 for backward compatibility with older code. We need our own
54891 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
54892 it under some other name, and our alloca.h will define it.
54894 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54895 Derek Price <derek@ximbiot.com>
54897 * lib/alloca.c: Include <alloca.h>, to get our interface.
54898 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54899 include <alloca.h> first. Use C89 prototype for alloca; this
54900 requires including <stddef.h> for size_t. Use extern "C" if C++.
54901 Use #elif for simplicity, since we can assume C89 now.
54902 Don't try to source the system alloca.h since it will not be found
54903 and to prevent recursively including its replacement.
54904 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54905 * lib/regex.c: Likewise.
54907 2004-05-16 Derek Price <derek@ximbiot.com>
54908 Paul Eggert <eggert@cs.ucla.edu>
54910 getline cleanup. This changes the getndelim2 API: both order of
54911 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54914 * lib/getline.c: Don't include stddef.h or stdio.h, since our
54915 interface does that.
54916 (getline): Always use getdelim, so that we don't have two
54917 copies of this code.
54918 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54920 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54921 (GETNDELIM2_MAXIMUM): New macro.
54922 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
54923 instead of the old practice of delim2==0. All callers changed.
54924 Return -1 on overflow, instead of returning junk.
54925 Do not set *linesize unless allocation succeeds.
54926 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54927 that we include sys/types.h.
54928 * lib/getnline.h: Likewise.
54929 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54930 (getndelim2): Reorder arguments.
54931 * lib/getnline.c (getnline, getndelim):
54932 Don't discard the NMAX argument.
54933 (getnline): Invoke getndelim, to avoid code duplication.
54934 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54935 of (size_t) -1 by callers of the getnline family.
54937 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54939 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54940 Check for gettimeofday.
54941 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54942 Check for settimeofday, stime.
54944 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54946 * lib/nanosleep.c (suspended): Change its type from int to
54947 sig_atomic_t volatile.
54948 (first_call): Make it private to rpl_nanosleep, and have it
54949 be zero initially as that's a bit faster.
54950 (my_usleep): Round up fractional times instead of truncating them,
54951 as this is the usual meaning for 'sleep'.
54953 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54955 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54956 (ENOSYS): Define if not defined.
54957 (settime): Fall back on stime if it exists and settimeofday fails.
54958 But don't bother with fallbacks if a method fails with errno == EPERM.
54960 2004-05-11 Jim Meyering <jim@meyering.net>
54962 Prior to this change, the save_cwd caller required read access to the
54963 current directory on most systems (ones with the fchdir function).
54965 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54966 fails, try write-only, and finally, resort to using xgetcwd.
54968 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
54970 * lib/obstack.c, obstack.h: Import changes from libc.
54972 2004-04-28 Bruno Haible <bruno@clisp.org>
54974 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54975 also implicitly appends .exe to executables.
54976 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54977 accepts Windows pathnames.
54978 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54979 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54980 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54981 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54982 Reported by Derek Robert Price <derek@ximbiot.com>.
54984 2004-04-21 Karl Berry <karl@gnu.org>
54986 * config/srclist.txt (localcharset.c): break sync.
54988 2004-04-20 Paul Eggert <eggert@twinsun.com>
54990 * m4/host-os.m4: Add a copyright notice.
54992 2004-04-20 Jim Meyering <jim@meyering.net>
54994 Change UTILS_ to gl_ in AC_DEFINE'd names.
54995 Change utils_- and jm_-prefixed variables, too.
54996 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54997 UTILS_FUNC_MKDIR_TRAILING_SLASH.
54998 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55000 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55001 Don't emit trailing blanks.
55002 Also rename jm_-prefixed variables to have gl_ prefix.
55004 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55005 Also rename jm_-prefixed variables to have gl_ prefix.
55007 * m4/jm-macros.m4: Reflect the renamings.
55008 * m4/prereq.m4: Likewise.
55010 2004-04-20 Jim Meyering <jim@meyering.net>
55012 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55015 2004-04-20 Jim Meyering <jim@meyering.net>
55016 Bruno Haible <bruno@clisp.org>
55018 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55019 memory when realloc fails.
55021 2004-04-19 Jim Meyering <jim@meyering.net>
55023 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55024 now that readutmp.c may call `free (0)'.
55026 2004-04-19 Bruno Haible <bruno@clisp.org>
55028 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55029 * m4/inttypes_h.m4: Likewise.
55030 * m4/stdint_h.m4: Likewise.
55031 * m4/intmax_t.m4: Likewise.
55032 * m4/uintmax_t.m4: Likewise.
55034 2004-04-18 Jim Meyering <jim@meyering.net>
55036 * m4/prereq.m4: Don't forbid jm_ prefix.
55038 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55039 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55040 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55041 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55042 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55043 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55044 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55045 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55046 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55047 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55048 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55049 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55050 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55051 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55052 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55053 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55054 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55055 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55056 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55058 2004-04-18 Jim Meyering <jim@meyering.net>
55060 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55061 failure, don't leak memory and do call END_UTMP_ENT.
55063 2004-04-16 Jim Meyering <jim@meyering.net>
55065 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
55066 coreutils' stat program.
55067 (gl_PREREQ): Don't require jm_PREREQ_STAT.
55069 2004-04-11 Paul Eggert <eggert@twinsun.com>
55071 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55073 (CHAR_BIT): Remove, since we assume C89.
55074 Include <stdint.h> if available, as per current Autoconf CVS advice.
55076 2004-03-31 Jim Meyering <jim@meyering.net>
55078 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55079 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55080 * m4/xalloc.m4: Likewise.
55082 2004-03-30 Paul Eggert <eggert@twinsun.com>
55084 Merge from coreutils.
55086 * m4/inttostr.m4: New file.
55087 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55088 Require AM_STDBOOL_H and gl_TIMESPEC instead.
55089 Require gl_CLOCK_TIME.
55090 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55092 2004-03-30 Paul Eggert <eggert@twinsun.com>
55094 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55095 not bool, to be more consistent with Unix conventions.
55096 Suggested by Bruno Haible.
55098 Merge from coreutils.
55100 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55101 * lib/umaxtostr.c: New files.
55103 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55104 the usual <time.h> dance.
55105 (get_date): Change signature to support fractional time stamps.
55106 All callers changed.
55107 * lib/getdate.y: Include "getdate.h" first, as we can now
55108 assume C89 and don't need to worry about 'const'.
55109 Similarly, include "unlocked-io.h" near start, not in middle.
55110 Include <limits.h>.
55111 (textint.value): Use long int rather than int.
55112 (textint.digits): Use size_t rather than int.
55113 (BILLION, LOG10_BILLION): New constants.
55114 (parser_control): New member rel_ns. Members day_ordinal,
55115 time_zone, month, day, hour, minutes, rel_year, rel_month,
55116 rel_day, rel_hour, rel_minutes, rel_seconds
55117 are now long int, not int. Member seconds is now struct timespec,
55118 not int. New member timespec_seen. Members dates_seen, days_seen,
55119 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55121 (%union.intval): Now long int, not int.
55122 New member timespec.
55123 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55124 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55125 (spec): Now is a timespec or an item list.
55126 (timespec, items): New nonterminals.
55127 (time, rel, relunit, number, get_date):
55128 Add support for fractional seconds.
55129 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55130 (gmtime, localtime, mktime): Remove decls; not needed with C89.
55131 (to_hour): First arg is now long int, not int.
55132 (to_year): Returns long int, not int.
55133 Don't treat year -70 like 70.
55134 (tm_diff): Returns long int, not int.
55135 (lookup_word): Use bool instead of int when appropriate.
55136 (yylex): Use size_t for count, not int.
55137 Detect overflow when parsing large integer constants.
55138 Add support for fractions.
55139 (get_date): Make pointers 'const' if possible.
55140 Use more-portable code to detect integer overflow.
55141 (main) [TEST]: Adjust to above changes. Test for localtime failure.
55142 Don't use ctime; it's not reliable if the year has >4 digits.
55144 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55145 This is for compatibility with BSD.
55147 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55148 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55149 From coreutils' system.h.
55151 * lib/userspec.c: Don't include "posixver.h".
55152 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55153 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55154 compatible extension. Simplify code by removing a boolean int
55155 that was always nonzero if a string was nonnull.
55157 2004-03-30 Jim Meyering <jim@meyering.net>
55159 Merge from coreutils.
55161 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55162 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55163 on some systems one must include <grp.h> before it.
55164 Reported by Christian Krackowizer.
55166 2004-03-30 Jim Meyering <jim@meyering.net>
55168 Merge from coreutils.
55170 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55172 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55173 an empty input stream.
55175 * lib/readtokens.c: Include <stdbool.h>.
55176 (readtoken): Use `size_t' rather than int/long.
55177 All callers adjusted.
55178 Use `bool' rather than `int' where appropriate.
55179 Use memset rather than an explicit loop.
55180 Use x2nrealloc rather than xrealloc.
55181 Allow the use of `\0' as a delimiter.
55182 (readtokens): Likewise.
55183 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55185 2004-03-30 Jim Meyering <jim@meyering.net>
55187 * m4/realloc.m4: Remove file, since now it does no more than
55188 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55189 the `configure.ac' section of module/realloc.
55190 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55192 2004-03-30 Bruno Haible <bruno@clisp.org>
55194 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55197 2004-03-29 Paul Eggert <eggert@twinsun.com>
55199 Merge changes to getloadavg.c from coreutils and Emacs.
55201 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55202 Define to an expression, not to the empty string.
55203 Include cloexec.h and xalloc.h.
55204 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55205 Use set_cloexec_flag rather than rolling our own.
55206 * lib/cloexec.c, lib/cloexec.h: New files.
55208 2004-03-29 Paul Eggert <eggert@twinsun.com>
55210 * m4/cloexec.m4: New file.
55212 2004-03-18 Paul Eggert <eggert@twinsun.com>
55214 * lib/getopt.h: Sync with libc CVS.
55216 2004-03-18 Paul Eggert <eggert@twinsun.com>
55217 Bruno Haible <bruno@clisp.org>
55219 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55222 2004-03-18 Paul Eggert <eggert@twinsun.com>
55223 Bruno Haible <bruno@clisp.org>
55225 * lib/mbswidth.h: Include <wchar.h> only if
55226 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55228 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55230 2004-03-09 Paul Eggert <eggert@twinsun.com>
55232 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55233 Sync with libc CVS.
55234 * lib/getopt_int.h: New file, also synced from libc.
55236 2004-03-09 Paul Eggert <eggert@twinsun.com>
55238 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55239 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
55240 Bring back getopt.c, getopt.h, getopt1.c.
55242 2004-03-07 Paul Eggert <eggert@twinsun.com>
55244 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55245 All uses changed. Check for sa_sigaction member; this fixes
55246 a bug first reported by Jason Andrade in
55247 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55249 2004-03-07 Paul Eggert <eggert@twinsun.com>
55251 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
55252 '#if' expressions. Unlike the code it replaces, it does not
55253 depend on (defined _SC_PAGESIZE). However, it does depend on
55254 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55255 first reported by Jason Andrade in
55256 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55258 2004-02-25 Simon Josefsson <jas@extundo.com>
55260 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55262 2004-02-25 Simon Josefsson <jas@extundo.com>
55264 * lib/strdup.h: New file.
55265 * lib/strdup.c: Include it.
55266 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55267 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55269 2004-02-23 Karl Berry <karl@gnu.org>
55271 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55272 (from fencepost.gnu.org:/gd/gnuorg).
55274 2004-02-23 Karl Berry <karl@gnu.org>
55276 * config/srclistvars.sh (GNUORG) [karl]: redefine.
55277 * config/srclist.txt: add maintain/standards documents.
55279 2004-02-18 Bruno Haible <bruno@clisp.org>
55281 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55282 Reported by Derek Robert Price <derek@ximbiot.com>.
55284 2004-02-16 Karl Berry <karl@gnu.org>
55286 * config/mkinstalldirs, install-sh: update from automake.
55288 2004-02-06 Karl Berry <karl@gnu.org>
55290 * m4/po.m4: update from gettext 0.14.1.
55292 2004-02-06 Karl Berry <karl@gnu.org>
55294 * lib/config.charset: update from gettext 0.14.1.
55296 2004-02-05 Paul Eggert <eggert@twinsun.com>
55298 Add comments and code, prompted by suggestions from Bruno Haible
55300 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
55301 describing the enum quoting_style values.
55302 * lib/quotearg.c (quotearg_alloc): New function.
55303 (quotearg_buffer_restyled): Treat lone { and } as special.
55304 Treat = as special. Work around bug with older shells
55305 that "see" a '\' that is really the 2nd byte of a multibyte char.
55306 Quote empty string with shell_quoting_style.
55308 2004-02-03 Bruno Haible <bruno@clisp.org>
55310 * m4/pipe.m4: New file, from GNU gettext.
55312 2004-02-03 Bruno Haible <bruno@clisp.org>
55314 * lib/pipe.h: New file, from GNU gettext.
55315 * lib/pipe.c: New file, from GNU gettext.
55317 2004-01-27 Bruno Haible <bruno@clisp.org>
55319 * m4/execute.m4: New file, from GNU gettext.
55321 2004-01-27 Bruno Haible <bruno@clisp.org>
55323 * lib/execute.h: New file, from GNU gettext.
55324 * lib/execute.c: New file, from GNU gettext.
55325 * lib/w32spawn.h: New file, from GNU gettext.
55327 2004-01-24 Paul Eggert <eggert@twinsun.com>
55329 Merge from diffutils.
55331 * lib/file-type.c (file_type): Add typed memory objects.
55332 * lib/file-type.h (S_TYPEISTMO): New macro.
55334 * lib/c-stack.h (c_stack_action): Remove argv argument.
55335 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
55336 (die): Don't calculate message unless segv_action returns.
55337 (get_stack_location, min_address_from_argv, max_address_from_argv,
55338 volatile stack_base, volatile_stack_size): Remove.
55339 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55340 that every segmentation violation is a stack overflow. (Ouch!)
55341 See Debian bug 136249 (still outstanding) for more info about why
55342 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55344 2004-01-24 Paul Eggert <eggert@twinsun.com>
55346 Exit-status fix from coreutils.
55348 Use exit_failure consistently in place of EXIT_FAILURE,
55349 so that program exit statuses are consistent on failure.
55351 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55352 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55353 * lib/argmatch.h: Comment fix to match the above.
55354 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55355 Now a macro referring to exit_failure, instead of a separate
55356 variable. Include "exitfail.h" to get it.
55357 * lib/xstrtol.h: Include "exitfail.h".
55358 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55360 * lib/long-options.c (parse_long_options): Use prototype
55361 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
55364 2004-01-21 Jim Meyering <jim@meyering.net>
55366 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55367 so as not to conflict with a different-sized __mktime_internal
55368 function in GNU libc.
55369 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55370 Problem building statically-linked `ls' reported by Michael Brunnbauer.
55372 2004-01-20 Karl Berry <karl@gnu.org>
55374 * config/config.guess: update from config.
55376 * config/srclistvars.sh: GNUWWWLICENSES for karl.
55378 2004-01-20 Bruno Haible <bruno@clisp.org>
55380 Safer stack allocation.
55381 * lib/setenv.c: Include allocsa.h.
55382 (alloca): Remove fallback definition.
55383 (freea): Remove macro.
55384 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55387 2004-01-20 Bruno Haible <bruno@clisp.org>
55389 * m4/eealloc.m4: New file, from GNU gettext.
55391 2004-01-20 Bruno Haible <bruno@clisp.org>
55393 * m4/allocsa.m4: New file, from GNU gettext.
55395 2004-01-20 Bruno Haible <bruno@clisp.org>
55397 * lib/xallocsa.h: New file, from GNU gettext.
55398 * lib/xallocsa.c: New file, from GNU gettext.
55400 2004-01-20 Bruno Haible <bruno@clisp.org>
55402 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55404 2004-01-20 Bruno Haible <bruno@clisp.org>
55406 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55407 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55410 2004-01-20 Bruno Haible <bruno@clisp.org>
55412 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55415 2004-01-20 Bruno Haible <bruno@clisp.org>
55417 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55419 2004-01-20 Bruno Haible <bruno@clisp.org>
55421 * lib/eealloc.h: New file.
55423 2004-01-20 Bruno Haible <bruno@clisp.org>
55425 * lib/binary-io.h: Avoid warnings on Cygwin.
55427 2004-01-20 Bruno Haible <bruno@clisp.org>
55429 * lib/allocsa.h: New file, from GNU gettext.
55430 * lib/allocsa.c: New file, from GNU gettext.
55432 2004-01-18 Karl Berry <karl@gnu.org>
55434 * doc/gpl.texi, doc/lgpl.texi: new files.
55436 2004-01-18 Karl Berry <karl@gnu.org>
55438 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55439 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55441 2004-01-15 Paul Eggert <eggert@twinsun.com>
55443 Merge from coreutils.
55445 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55446 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55447 (gl_DEFAULT_POSIX2_VERSION): Move
55448 the documentation from 'configure' into 'config.hin',
55449 so that 'configure --help' isn't burdened by it and
55450 we don't have to worry about its formatting there.
55451 Reword the documentation so that it's more succinct
55452 and can be run together into a single paragraph.
55453 * m4/same.m4 (gl_SAME): Check for pathconf.
55455 2004-01-15 Paul Eggert <eggert@twinsun.com>
55457 Merge from coreutils.
55459 * lib/posixver.c: Include posixver.h.
55461 * lib/same.c: Include <stdbool.h>, <limits.h>.
55462 (_POSIX_NAME_MAX): Define if not defined.
55464 (same_name): If file names are silently truncated, report
55465 that the file names are the same if they are the same after
55466 the silent truncation.
55468 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55469 conversion function.
55470 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
55471 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
55474 2004-01-15 Jim Meyering <jim@meyering.net>
55476 Merge from coreutils.
55478 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55479 if no library is required.
55480 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55481 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55482 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55483 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55484 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55485 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55486 value, $ac_cv_search_crypt, if it's "none required".
55487 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55488 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55489 not gl_FUNC_GETLOADAVG.
55490 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55491 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55493 2004-01-15 Jim Meyering <jim@meyering.net>
55495 Merge from coreutils.
55497 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
55498 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
55499 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55501 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55502 optional configure-time default.
55504 * lib/version-etc.c (version_etc_copyright): Update copyright date.
55506 * lib/xreadlink.c (xreadlink): Correct outdated comment.
55508 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
55510 Merge from coreutils.
55512 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55513 value, $ac_cv_search_nanosleep, if it's "none required".
55515 2004-01-14 Paul Eggert <eggert@twinsun.com>
55517 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55518 with like-named macro in fnmatch.c.
55519 (EXT): Use an internal constant instead.
55521 Merge fnmatch patches from glibc.
55522 * lib/fnmatch.c (mbsinit): Remove define.
55523 Add libc_hidden_ver (__fnmatch, fnmatch).
55524 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55525 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55527 2004-01-14 Karl Berry <karl@gnu.org>
55529 * config/install-sh: update from automake.
55531 2004-01-13 Karl Berry <karl@gnu.org>
55533 * config/install-sh: update from automake.
55535 2004-01-09 Karl Berry <karl@gnu.org>
55537 * config/install-sh: update from automake.
55539 2004-01-05 Karl Berry <karl@gnu.org>
55541 * config/config.{sub,guess}: update from config.
55543 2003-12-31 Karl Berry <karl@gnu.org>
55545 * config/depcomp: update from automake.
55547 2003-12-14 Karl Berry <karl@gnu.org>
55549 * lib/config.charset: update from gettext-runtime.
55551 2003-12-03 Paul Eggert <eggert@twinsun.com>
55553 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55554 Bug reported by Alfred M. Szmidt.
55556 2003-12-03 Bruno Haible <bruno@clisp.org>
55558 * m4/gettext.m4: Upgrade from gettext-0.13.
55559 * m4/po.m4: Upgrade from gettext-0.13.
55560 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55561 * m4/intmax.m4: New file, from gettext-0.13.
55562 * m4/printf-posix.m4: New file, from gettext-0.13.
55564 2003-11-29 Karl Berry <karl@gnu.org>
55566 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55568 2003-11-25 Paul Eggert <eggert@twinsun.com>
55569 Bruno Haible <bruno@clisp.org>
55571 * lib/printf-parse.h: Don't include sys/types.h.
55572 (ARG_NONE): New macro.
55573 (char_directive): Change type of *arg_index fields to size_t.
55574 * lib/printf-parse.c: Don't include sys/types.h.
55575 (SSIZE_MAX): Remove macro.
55576 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55577 Remove unnecessary overflow check.
55578 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55581 2003-11-25 Bruno Haible <bruno@clisp.org>
55583 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55585 2003-11-25 Bruno Haible <bruno@clisp.org>
55587 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55590 2003-11-24 Paul Eggert <eggert@twinsun.com>
55592 * modules/alloca: Remove dependency on xalloc.
55594 2003-11-24 Paul Eggert <eggert@twinsun.com>
55596 * lib/alloca.c: Remove dependency on xalloc module.
55597 (xalloc_die): Remove.
55598 (memory_full) [!defined emacs]: New macro.
55599 [!defined emacs]: Don't include xalloc.h.
55600 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55601 address arithmetic overflows. Change datatypes a bit to avoid
55604 2003-11-22 Jim Meyering <jim@meyering.net>
55606 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55609 2003-11-21 Karl Berry <karl@gnu.org>
55611 * config/config.{sub,guess}: update from config.
55613 2003-11-18 Karl Berry <karl@gnu.org>
55615 * config/config.{sub,guess}: update from config.
55617 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55619 2003-11-17 Paul Eggert <eggert@twinsun.com>
55621 * README: Mention that S+T cannot overflow if S is the size of
55622 an existing object and T is sufficiently small.
55624 2003-11-17 Jim Meyering <jim@meyering.net>
55626 On systems without utime and without a utimes function capable of
55627 dealing with a NULL struct utimbuf* argument, this utime replacement
55628 could -- in unusual circumstances -- leak a file descriptor.
55629 * lib/utime.c: Include <unistd.h> and <errno.h>.
55630 (utime_null): Be sure to close `fd' and to preserve errno.
55631 Reported by Geoff Collyer via Arnold Robbins.
55633 2003-11-17 Bruno Haible <bruno@clisp.org>
55635 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55636 (Depends-on): Add xsize.
55638 2003-11-17 Bruno Haible <bruno@clisp.org>
55640 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55642 2003-11-17 Bruno Haible <bruno@clisp.org>
55644 * lib/vasnprintf.c (alloca): Remove fallback definition.
55645 (freea): Remove definition.
55646 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55647 Reported by Paul Eggert.
55649 2003-11-16 Paul Eggert <eggert@twinsun.com>
55650 Bruno Haible <bruno@clisp.org>
55652 Protect against address arithmetic overflow.
55653 * lib/printf-args.h: Include stddef.h.
55654 (arguments): Change type of field 'count' to size_t.
55655 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55656 'unsigned int' where appropriate.
55657 * lib/printf-parse.h: Include sys/types.h.
55658 (char_directive): Change type of *arg_index fields to ssize_t.
55659 (char_directives): Change type of fields 'count', max_*_length to
55661 * lib/printf-parse.c: Include sys/types.h and xsize.h.
55662 (SSIZE_MAX): Define fallback value.
55663 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55664 instead of 'int' where appropriate. Check a_allocated, d_allocated
55665 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55666 * lib/vasnprintf.c: Include xsize.h.
55667 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55668 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55669 overflow. Avoid wraparound when converting a width or precision from
55672 2003-11-16 Bruno Haible <bruno@clisp.org>
55674 Update from GNU gettext.
55675 * lib/printf-parse.c: Generalize to it can be compiled for wide
55677 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55678 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55679 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55680 SNPRINTF): New macros.
55681 Don't include <alloca.h> if the file is used inside libintl.
55682 (local_wcslen): New function, for Solaris 2.5.1.
55683 (VASNPRINTF): Use it instead of wcslen.
55685 2003-11-16 Bruno Haible <bruno@clisp.org>
55687 * lib/xsize.h (xmax): New function.
55688 (xsum, xsum3, xsum4): Declare as "pure" functions.
55690 2003-11-12 Paul Eggert <eggert@twinsun.com>
55692 * modules/xalloc (Files): Undo latest change, since xalloc.h
55693 no longer needs SIZE_MAX or PTRDIFF_MAX.
55695 2003-11-12 Paul Eggert <eggert@twinsun.com>
55697 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55700 2003-11-12 Paul Eggert <eggert@twinsun.com>
55702 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55703 "return", to pacify some unknown compiler. Problem reported
55704 by Joerg Schilling.
55706 2003-11-12 Paul Eggert <eggert@twinsun.com>
55708 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55709 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55710 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
55711 heuristic is just as accurate as far as we know, and it removes a
55712 dependency on size_max.m4 and ptrdiff_max.m4.
55714 2003-11-11 Bruno Haible <bruno@clisp.org>
55716 * modules/xsize (Files): Add m4/size_max.m4.
55717 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55719 2003-11-11 Bruno Haible <bruno@clisp.org>
55721 * m4/size_max.m4: New file.
55722 * m4/ptrdiff_max.m4: New file.
55723 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55724 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55725 (gl_XALLOC): Invoke it.
55727 2003-11-11 Bruno Haible <bruno@clisp.org>
55729 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55730 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55733 2003-11-10 Paul Eggert <eggert@twinsun.com>
55735 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55736 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55737 rejected some allocations of exactly SIZE_MAX - 2 bytes.
55739 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55740 not (size_t) -1, since it's defined here.
55742 2003-11-09 Karl Berry <karl@gnu.org>
55744 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55746 2003-11-06 Paul Eggert <eggert@twinsun.com>
55748 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55749 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55750 Reject sizes of exactly SIZE_MAX bytes.
55751 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55752 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55754 2003-11-05 Bruno Haible <bruno@clisp.org>
55756 * lib/xsize.h: Include limits.h, to avoid a possible collision with
55757 SIZE_MAX defined in <limits.h> on Solaris.
55759 2003-11-04 Jim Meyering <jim@meyering.net>
55761 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55762 variable names, rather than @VAR@.
55763 * modules/poll: Likewise.
55765 2003-11-04 Bruno Haible <bruno@clisp.org>
55767 * modules/xsize: New file.
55768 * modules/linebreak: Depend on xsize.
55769 * MODULES.html.sh (func_all_modules): Add xsize.
55771 2003-11-04 Bruno Haible <bruno@clisp.org>
55773 * m4/xsize.m4: New file.
55775 2003-11-04 Bruno Haible <bruno@clisp.org>
55777 * lib/xsize.h: New file.
55778 * lib/linebreak.c: Include xsize.h.
55779 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55780 argument for overflow.
55781 Suggested by Paul Eggert.
55783 2003-11-03 Karl Berry <karl@gnu.org>
55785 * config/config.{guess,sub}: update from config.
55787 2003-11-03 Jim Meyering <jim@meyering.net>
55789 * modules/userspec (lib_SOURCES): Add userspec.h.
55790 (Include): Add "userspec.h".
55791 Improve description.
55793 2003-11-03 Jim Meyering <jim@meyering.net>
55795 * lib/userspec.c: Include "userspec.h".
55796 * lib/userspec.h: New file.
55798 2003-11-03 Bruno Haible <bruno@clisp.org>
55800 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55802 2003-11-03 Bruno Haible <bruno@clisp.org>
55804 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55805 available, to avoid (extremely rare) race condition.
55806 Suggested by Paul Eggert.
55808 2003-11-02 Karl Berry <karl@gnu.org>
55810 * config/srclist.txt (vasprintf.c): sync broken, sigh.
55812 2003-10-31 Paul Eggert <eggert@twinsun.com>
55814 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55815 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55816 (read_filesystem_list): Set and use me_type_malloced.
55817 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55818 whatever the type happens to be), for brevity and consistency.
55819 Check for size calculation overflow on Alphas running OSF/1.
55821 2003-10-31 Jim Meyering <jim@meyering.net>
55823 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55825 * lib/linebuffer.c: Include <string.h> for declaration of memset.
55827 2003-10-30 Paul Eggert <eggert@twinsun.com>
55828 Bruno Haible <bruno@clisp.org>
55830 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55831 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55833 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
55835 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55836 netbsd*-gnu*. Suggested by Robert Millan.
55838 2003-10-29 Paul Eggert <eggert@twinsun.com>
55840 * modules/group-member: Depend on stdbool.
55842 2003-10-29 Paul Eggert <eggert@twinsun.com>
55844 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55846 2003-10-29 Paul Eggert <eggert@twinsun.com>
55848 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
55849 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
55850 after the 'gnu' in these cases. This fixes some bugs in the
55851 previous change, and is based on suggestions by Robert Millan.
55853 2003-10-29 Paul Eggert <eggert@twinsun.com>
55855 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55856 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
55858 * lib/quotearg.c (quotearg_n_options): Use it.
55859 * lib/group-member.c: Include <stdbool.h>.
55860 (free_group_info): Arg is now const *; don't free arg.
55861 (get_group_info): Now returns bool and accepts struct group_info *,
55862 rather than returning a malloc'ed struct group_info *.
55863 All uses changed. Check for overflow in internal size calculation.
55865 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55866 rather than xmalloc/xrealloc.
55867 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55868 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
55869 conformance bug: the old code used a pointer after freeing the
55870 storage that it addressed.
55871 * lib/hash.c (hash_initialize): Simplify the code by using
55872 xalloc_oversized rather than doing it by hand.
55873 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55874 the buffer preserved. Use free and xmalloc instead.
55875 * lib/quotearg.c (quotearg_n_options): Likewise.
55876 Use a simpler test for size overflow. Don't use xalloc_oversized
55877 because unsigned int might be wider than size_t (!); this suggests
55878 that we should switch from unsigned int to size_t for slot numbers.
55880 2003-10-28 Paul Eggert <eggert@twinsun.com>
55882 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55883 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
55884 NetBSD kernels. Requested by Richard Stallman.
55886 2003-10-27 Paul Eggert <eggert@twinsun.com>
55888 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55889 to allocate the returned structure. Do not allocate a subarray,
55890 as x2nrealloc will do that.
55891 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55892 instead of xnrealloc.
55893 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55895 2003-10-27 Bruno Haible <bruno@clisp.org>
55897 * lib/stdbool_.h: Better support for BeOS.
55899 2003-10-26 Paul Eggert <eggert@twinsun.com>
55901 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55904 2003-10-26 Paul Eggert <eggert@twinsun.com>
55906 * lib/xalloc.h (xalloc_oversized): New static inline function, for
55907 callers that want to do their own size-overflow checking. Include
55908 <stdbool.h>, since xalloc_oversized returns bool.
55909 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
55910 to use xalloc_oversized.
55912 Add two functions x2realloc, x2nrealloc, for programs that grow
55913 arrays dynamically by doubling their sizes.
55914 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55915 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55918 Port to C99 semantics for 'inline' of external functions.
55919 Bug reported by Bruno Haible.
55920 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55921 with the old contents of xnmalloc.
55922 (xnmalloc, xmalloc): Use it.
55923 (xnrealloc_inline): New static inline function,
55924 with the old contents of xnrealloc.
55925 (xnrealloc, xrealloc): Use it.
55927 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55930 2003-10-26 Karl Berry <karl@gnu.org>
55932 * config/srclist.txt (COPYING.DOC): no longer available from
55933 /gd/gnuorg; don't know where the ultimate source is.
55935 2003-10-25 Paul Eggert <eggert@twinsun.com>
55937 Fix several address-calculation bugs in the hash modules,
55938 plus some minor code cleanup.
55940 * lib/hash.h: Include <stdbool.h>, for bool.
55941 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55942 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55943 hash_get_n_entries, hash_get_max_bucket_length,
55944 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55945 hash_rehash): Use size_t rather than unsigned.
55946 * lib/hash.c (struct hash_table, hash_get_n_buckets,
55947 hash_get_n_buckets_used, hash_get_n_entries,
55948 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55949 hash_get_entries, hash_do_for_each, hash_string, is_prime,
55950 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55952 (SIZE_MAX): Define if not defined.
55953 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55954 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55956 Use const * when possible.
55957 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55958 (check_tuning): Fix bug: if tuning parameters were very close to
55959 0 or 1, rounding errors could have caused subscript violations.
55960 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55961 (hash_initialize): Add 'fail:' label
55962 to free table and return NULL, and use it to simplify code.
55963 Use calloc rather than clearing the storage ourself.
55964 (hash_initialize, hash_rehash): Check for arithmetic overflow in
55965 buffer size calculations.
55966 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55967 Include <stddef.h>, for size_t.
55968 * lib/hash-pjw.c (hash_pjw): Likewise.
55969 Switch to method described by Bruno Haible.
55970 Include <limits.h>, for CHAR_BIT.
55971 (SIZE_BITS): New macro.
55973 2003-10-23 Paul Eggert <eggert@twinsun.com>
55975 * m4/getline.m4 (AM_FUNC_GETLINE):
55976 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55977 hosts. Problem reported by Derek Robert Price in
55978 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55979 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55980 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55982 2003-10-21 Paul Eggert <eggert@twinsun.com>
55984 * lib/getndelim2.c (getndelim2): When size calculation overflows,
55985 ceiling the allocation at NMAX bytes rather than silently
55986 discarding input bytes before NMAX is reached. This makes
55987 a difference only if NMAX exceeds SIZE_MAX / 2.
55989 * lib/obstack.c: Merge from glibc.
55990 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55991 Add libc_hidden_def (_obstack_newchunk).
55992 (_obstack_free) [! defined _LIBC]: Remove.
55993 [defined _LIBC]: Make a strong alias from obstack_free, rather than
55994 a clone of the function body.
55995 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55996 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55998 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56000 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56003 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56004 (obstack_ptr_grow_fast, obstack_int_grow_fast):
56005 Don't use lvalue casts, as GCC plans to remove support for them
56006 in GCC 3.5. Reported by Joseph S. Myers. This bug
56007 was also present in the non-GCC version, indicating that this
56008 code had always been buggy and had never been widely used.
56009 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56010 Use the fast variant of each macro, rather than copying the
56011 definiens of the fast variant; that way, we'll be more likely to
56012 catch future bugs in the fast variants.
56014 2003-10-20 Bruno Haible <bruno@clisp.org>
56016 * modules/wait-process: New file.
56017 * MODULES.html.sh (func_all_modules): Add wait-process.
56019 2003-10-20 Bruno Haible <bruno@clisp.org>
56021 * m4/wait-process.m4: New file.
56023 2003-10-20 Bruno Haible <bruno@clisp.org>
56025 * lib/wait-process.h: New file, from GNU gettext.
56026 * lib/wait-process.c: New file, from GNU gettext.
56028 2003-10-19 Jim Meyering <jim@meyering.net>
56030 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56033 2003-10-18 Karl Berry <karl@gnu.org>
56035 * config/config.guess: update from config.
56037 2003-10-16 Paul Eggert <eggert@twinsun.com>
56039 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56040 (getgroups): First arg is int, not size_t.
56041 Don't let 'free' mangle errno.
56043 2003-10-16 Paul Eggert <eggert@twinsun.com>
56045 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56047 2003-10-16 Karl Berry <karl@gnu.org>
56049 * config/config.{guess,sub}: update from config.
56051 2003-10-16 Jim Meyering <jim@meyering.net>
56053 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56056 2003-10-15 Paul Eggert <eggert@twinsun.com>
56058 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56059 (SIZE_MAX): Remove.
56060 (new_exclude, add_exclude_file): Initial size no longer needs to
56062 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56063 our own address arithmetic overflow checking.
56065 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56066 (fnmatch): Do not alloca more than 2000 wide characters;
56067 instead, use malloc for large buffers.
56068 Check for address arithmetic overflow, and return -1
56069 with errno set to ENOMEM in that case.
56070 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56071 (NEW_PATTERN): Do not alloca more than 8000 bytes;
56072 instead, return -1. Check for address arithmetic overflow.
56074 2003-10-14 Paul Eggert <eggert@twinsun.com>
56076 Handle invalid suffixes and overflow independently, so that
56077 callers can treat them independently as needed. Fix some bugs in
56078 suffix handling, e.g., "100k@" was not diagnosed as an invalid
56079 suffix for a human-readable blocksize. The major caller-visible
56080 change is the addition of a new
56081 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56082 that both overflow and suffix chars were found.
56084 * lib/human.c (humblock): Don't check separately for invalid suffix
56085 char; that is xstrtoumax's job (now that its bug is fixed).
56086 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56087 INTMAX_MAX]: New macros.
56088 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56089 TYPE_MAXIMUM): New macros.
56090 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56091 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56092 if overflow occurs, as it's what __strtol does and it's more useful
56094 (__xstrtol): If __strtol reports some error other than ERANGE,
56095 reflect it to the caller as LONGINT_INVALID. If it reports
56096 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56097 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56098 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56100 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
56101 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56102 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56103 [defined UINTMAX_MAX]: New macros.
56105 2003-10-14 Bruno Haible <bruno@clisp.org>
56107 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56109 2003-10-14 Bruno Haible <bruno@clisp.org>
56111 * m4/sig_atomic_t: New file, from GNU gettext.
56112 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56114 2003-10-14 Bruno Haible <bruno@clisp.org>
56116 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56117 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56118 Also use volatile where needed.
56120 2003-10-12 Paul Eggert <eggert@twinsun.com>
56122 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
56123 Change maintainer from Bruno Haible to 'all'.
56125 2003-10-12 Paul Eggert <eggert@twinsun.com>
56127 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56129 2003-10-12 Paul Eggert <eggert@twinsun.com>
56131 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56132 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56133 and define in terms of the other primitives.
56134 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56135 (SIZE_MAX): Define if not already defined.
56136 (array_size_overflow): New function.
56137 (xalloc_die): Abort instead of exiting if 'error' returns.
56138 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56139 (xmalloc, xrealloc): Use them.
56140 (xcalloc): Check for address arithmetic overflow.
56141 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56142 a bit faster than strcpy.
56144 2003-10-10 Simon Josefsson <jas@extundo.com>
56146 * modules/argp (Depends-on): Add restrict and strcase.
56148 2003-10-10 Simon Josefsson <jas@extundo.com>
56150 * m4/argp.m4: Add AC_C_INLINE.
56152 2003-10-08 Paul Eggert <eggert@twinsun.com>
56154 Merge getpass from libc, plus a few fixes.
56156 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56157 Include <stdbool.h>.
56158 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56159 __fsetlocking to empty.
56160 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56161 do include <bits/libc-lock.h>.
56162 Do not include <fcntl.h>; not needed.
56163 [_LIBC]: Include <wchar.h>.
56164 (NOTCANCEL_MODE): New macro.
56165 (flockfile, funlockfile) [_LIBC]: New macros.
56166 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56167 [!_LIBC]: New macros.
56168 (call_fclose): New function.
56169 (getpass): Use it. Save tty stream separately; this simplifies the
56170 code and makes it more reliable if stdin happens to equal stdout.
56171 Invoke __fsetlocking on tty.
56172 Handle thread cancellation if needed.
56173 Namespace cleanup (use __tcgetattr, __getline).
56174 Use bool for Booleans.
56175 [USE_IN_LIBIO]: Handle wide streams.
56176 [!_LIBC]: Unconditionally do the fseek, since we don't know what
56177 stream might go where.
56179 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56180 doesn't have to include <stdio.h> before us.
56181 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56182 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56183 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56184 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56185 if not declared, so that we can use getpass.c code from libc without
56187 (flockfile, ftrylockfile, funlockfile): New macros.
56189 2003-10-08 Paul Eggert <eggert@twinsun.com>
56191 * modules/getpass: Depend on stdbool.
56193 2003-10-08 Paul Eggert <eggert@twinsun.com>
56195 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56197 2003-10-07 Karl Berry <karl@gnu.org>
56199 * config/config.{guess,sub}: update from config.
56201 2003-10-06 Jim Meyering <jim@meyering.net>
56202 Bruno Haible <bruno@clisp.org>
56204 This lets translators provide better translations for the
56205 "Written by ..." part of --version output.
56206 * lib/version-etc.h: Include stdarg.h.
56207 (version_etc_copyright): Declare as readonly.
56208 (version_etc): Make this function variadic with a NULL-terminated list
56209 of author name strings.
56210 (version_etc_va): New declaration.
56211 * lib/version-etc.c: Include stdarg.h, stdlib.h.
56212 (version_etc_copyright): Declare as readonly.
56213 (version_etc_va): New function. Provide a different translatable string
56214 for each possible number of authors < 10. Abbreviate when there are 10
56216 (version_etc): Make this function variadic. Call version_etc_va.
56217 Suggestion from Gary V. Vaughan.
56219 * lib/long-options.h (parse_long_options): Change prototype: the
56220 authors string is moved to the end and becomes variadic.
56221 * lib/long-options.c: Include stdarg.h.
56222 (parse_long_options): Make this function variadic, too.
56223 Call version_etc_va, not version_etc.
56225 2003-10-06 Bruno Haible <bruno@clisp.org>
56227 * modules/version-etc-2: Remove file.
56228 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56230 2003-10-06 Bruno Haible <bruno@clisp.org>
56232 * modules/fatal-signal: New file.
56233 * MODULES.html.sh (func_all_modules): Add fatal-signal.
56235 2003-10-06 Bruno Haible <bruno@clisp.org>
56237 * m4/fatal-signal.m4: New file.
56238 * m4/signalblocking.m4: New file, from GNU gettext.
56240 2003-10-06 Bruno Haible <bruno@clisp.org>
56242 * lib/version-etc-2.h: Remove file.
56243 * lib/version-etc-2.c: Remove file.
56245 2003-10-06 Bruno Haible <bruno@clisp.org>
56247 * lib/fatal-signal.h: New file, from GNU gettext.
56248 * lib/fatal-signal.c: New file, from GNU gettext.
56250 2003-10-05 Paul Eggert <eggert@twinsun.com>
56252 * README: Rework advice for preventing empty .o files.
56253 Don't recommend ELIDE constructs. Recommend <stddef.h>,
56256 2003-10-04 Karl Berry <karl@gnu.org>
56258 * lib/argp*: update from libc.
56260 2003-10-04 Karl Berry <karl@gnu.org>
56262 * config/config.{guess,sub}: update from config.
56264 2003-10-02 Bruno Haible <bruno@clisp.org>
56266 * modules/lchown (Include): Add lchown.h.
56267 * modules/time_r (Include): Use "..." syntax.
56268 * modules/xgetdomainname (Include): Add xgetdomainname.h.
56270 2003-10-01 Simon Josefsson <jas@extundo.com>
56272 * MODULES.html.sh (func_all_modules): Move gethostname from section
56273 'based on' to section 'lacking' POSIX:2001.
56275 2003-10-01 Larry Jones <lawrence.jones@eds.com>
56277 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56278 to output mode on the same stream.
56280 2003-09-29 Paul Eggert <eggert@twinsun.com>
56282 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56283 Fix arg typo in previous patch.
56285 2003-09-28 Jim Meyering <jim@meyering.net>
56287 * lib/error.c: Correct cpp indentation.
56289 2003-09-27 Paul Eggert <eggert@twinsun.com>
56291 * modules/free: New file.
56293 2003-09-27 Paul Eggert <eggert@twinsun.com>
56295 * m4/free.m4: New file.
56297 2003-09-27 Paul Eggert <eggert@twinsun.com>
56299 * lib/minmax.h (MIN, MAX)
56300 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56301 Omit the special code that used __typeof__, since we worry that
56302 it could be more trouble than it's worth. See:
56303 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56304 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56306 * lib/free.c: New file.
56308 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
56310 Trivial fixes to Makefile.am parts of module listings.
56311 * modules/strstr: Append strstr.h to lib_SOURCES.
56312 * modules/strcase: Likewise, for strcase.h.
56314 2003-09-27 Karl Berry <karl@gnu.org>
56316 * config/mkinstalldirs: update from automake.
56318 2003-09-26 Paul Eggert <eggert@twinsun.com>
56320 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56321 (error_tail): Do not loop, reallocating temporary buffer, since
56322 the output cannot contain more wide characters than the input
56323 contains bytes, the size must be big enough already. This avoids
56324 one potential size overflow calculation. Check for size overflow
56325 when calculating temporary buffer size. Free temporary buffer
56326 when done, if it was allocated with malloc; this plugs a memory
56327 leak. Remove casts from void * to pointers, that are no longer
56328 needed now that we're assuming C89 or better.
56330 Merge error changes from glibc.
56332 * lib/error.c, error.h: Update copyright notice header to match glibc.
56333 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56334 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56335 Disable cancellation while printing error.
56336 * lib/error.h: Prepend __ to parameter names.
56338 2003-09-26 Jim Meyering <jim@meyering.net>
56340 * lib/error.c (error_tail): Move some declarations
56341 into inner scope where the local variables are used.
56343 2003-09-26 Bruno Haible <bruno@clisp.org>
56345 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56347 Don't define stpncpy through config.h; it's now done through stpncpy.h.
56349 2003-09-26 Bruno Haible <bruno@clisp.org>
56351 * lib/stpncpy.h (gnu_stpncpy): New declaration.
56352 (stpncpy): Define as alias for gnu_stpncpy.
56353 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56355 2003-09-25 Simon Josefsson <jas@extundo.com>
56357 * lib/xgetdomainname.h: New file.
56358 * lib/xgetdomainname.c: New file.
56360 2003-09-25 Simon Josefsson <jas@extundo.com>
56361 Bruno Haible <bruno@clisp.org>
56363 * modules/getdomainname: New file.
56364 * modules/xgetdomainname: New file.
56365 * MODULES.html.sh (func_all_modules): Add getdomainname,
56368 2003-09-25 Simon Josefsson <jas@extundo.com>
56369 Bruno Haible <bruno@clisp.org>
56371 * m4/getdomainname.m4: New file.
56373 2003-09-25 Simon Josefsson <jas@extundo.com>
56374 Bruno Haible <bruno@clisp.org>
56376 * lib/getdomainname.h: New file.
56377 * lib/getdomainname.c: New file.
56379 2003-09-25 Karl Berry <karl@gnu.org>
56381 * lib/argp-fmtstream.c, argp-help.c: update from libc.
56383 2003-09-25 Karl Berry <karl@gnu.org>
56385 * config/install-sh: update from automake.
56387 2003-09-25 Bruno Haible <bruno@clisp.org>
56389 * modules/version-etc-2: New file, from modules/version-etc with
56391 * MODULES.html.sh (func_all_modules): Add version-etc-2.
56393 2003-09-25 Bruno Haible <bruno@clisp.org>
56395 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56396 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56398 2003-09-24 Simon Josefsson <jas@extundo.com>
56400 * modules/xgethostname: Add xgethostname.h.
56402 2003-09-24 Paul Eggert <eggert@twinsun.com>
56404 * lib/linebuffer.c (freebuffer): Don't free the argument, just
56405 the buffer associated with the argument. Bug reported by
56408 2003-09-24 Paul Eggert <eggert@twinsun.com>
56410 * README: Document assumptions that 'int' is at least 32 bits
56411 wide, that integer arithmetic is 2's complement without overflow,
56412 that there are no holes in integer values, that adding sizes of
56413 two nonoverlapping objects can't overflow, and that all-bits-zero
56414 yields scalar zero. Fix spelling and capitalization typos.
56416 2003-09-19 Karl Berry <karl@gnu.org>
56418 * lib/argp.h: update from libc.
56420 2003-09-17 Paul Eggert <eggert@twinsun.com>
56422 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56423 to avoid spurious warnings like "AC_RUN_IFELSE was called before
56424 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56426 2003-09-17 Paul Eggert <eggert@twinsun.com>
56428 * gnulib-tool: Use "test -h", not "test -L", for portability
56429 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
56430 (tags_regexp): Remove, since \| doesn't conform to POSIX.
56431 (sed_extract_prog): Issue s commands one-by-one, rather than
56432 using \| in one s command.
56434 2003-09-16 Paul Eggert <eggert@twinsun.com>
56436 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56437 input error, instead of returning NULL the next time we are called
56438 (and therefore losing track of errno).
56440 2003-09-16 Bruno Haible <bruno@clisp.org>
56442 * gnulib-tool (func_create_testdir): Warn about duplicated
56445 2003-09-15 Paul Eggert <eggert@twinsun.com>
56447 * modules/argmatch, modules/fatal, modules/obstack,
56448 modules/xalloc, modules/xgethostname: Sort dependencies by
56449 importance, not alphabetically.
56451 2003-09-15 Paul Eggert <eggert@twinsun.com>
56453 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56454 fails, so that the caller gets the proper errno.
56456 * lib/readutmp.c (read_utmp): Likewise.
56457 Check for fstat error. Close stream and free storage
56460 2003-09-14 Karl Berry <karl@gnu.org>
56462 * config/srclist.txt (strdup.c): disable for c89 changes.
56464 2003-09-14 Jim Meyering <jim@meyering.net>
56466 * lib/getloadavg.c: Correct cpp indentation.
56467 * lib/strdup.c: Likewise.
56468 * lib/vasnprintf.c: Likewise.
56470 2003-09-14 Bruno Haible <bruno@clisp.org>
56472 * modules/fwriteerror: New file.
56473 * MODULES.html.sh (func_all_modules): Add fwriteerror.
56475 2003-09-14 Bruno Haible <bruno@clisp.org>
56477 * lib/fwriteerror.h: New file.
56478 * lib/fwriteerror.c: New file.
56480 2003-09-12 Paul Eggert <eggert@twinsun.com>
56482 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56483 modules/xgethostname, modules/xalloc: Depend on exit.
56485 2003-09-12 Paul Eggert <eggert@twinsun.com>
56487 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56489 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56490 and AC_MINIX, too, so that their extensions are available.
56492 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
56493 This macro has been superseded by gl_BACKUPFILE.
56495 More patches to assume C89 or better.
56497 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56499 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56501 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56502 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56503 Include <string.h>, <stdlib.h> unconditionally.
56504 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56505 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56506 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56507 headers or for string.h.
56508 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56511 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56513 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56514 * m4/userspec.m4 (gl_USERSPEC): Likewise.
56515 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56516 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56517 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56518 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56520 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56521 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56522 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56524 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56525 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56526 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56529 2003-09-12 Paul Eggert <eggert@twinsun.com>
56531 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56532 * lib/obstack.c [!defined _LIBC]: Likewise.
56533 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56534 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56535 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56537 More changes to assume C89 or better.
56539 * lib/error.c (error_tail): Assume vprintf.
56541 * lib/argmatch.c (getenv): Remove decl.
56542 * lib/progreloc.c (get_full_program_name): Define via prototype.
56543 * lib/setenv.c (clearenv): Likewise.
56544 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56546 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56547 (malloc, memcpy): Remove decls.
56548 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56549 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56550 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56551 (memcpy): Remove macro.
56552 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56553 (__P): Remove. All uses removed.
56554 (PTR): Remove. All uses changed to void *.
56555 (CHAR_BIT, NULL): Remove.
56556 (spaces, zeros, memset_space, memset_zero)
56557 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56559 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56560 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56561 Define with prototype.
56562 Remove now-unnecessary prototype decl.
56563 (extra_args_spec): Assume ANSI C. All uses changed.
56564 (extra_args_spec_iso): Remove.
56565 (my_strftime, emacs_strftimeu): Define via prototype.
56566 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56568 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56569 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56570 (strtoul, strtol): Remove decls.
56571 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56573 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56574 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
56575 (LOCALE_PARAM_PROTO): New macro.
56576 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56577 (INTERNAL (strtol), strtol): Define with a prototype.
56578 (PARAMS): Remove. All uses removed.
56579 * lib/tempname.c: Include <string.h> unconditionally.
56580 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56581 * lib/xgethostname.c (main): Define with a prototype.
56582 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56583 Include <stdlib.h> unconditionally.
56584 (calloc, malloc, realloc, free): Remove decls.
56585 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56586 Include <stdlib.h> unconditionally. Sort include file names.
56588 (xstrtod): Define with a prototype.
56589 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56590 (strtol, strtoul): Remove decls.
56592 2003-09-11 Paul Eggert <eggert@twinsun.com>
56594 More patches to assume C89 or better.
56595 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56596 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56597 string.h, memchr, STDC_HEADERS.
56599 2003-09-11 Paul Eggert <eggert@twinsun.com>
56601 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56602 Include <stdlib.h>, <string.h> unconditionally.
56603 Remove now-unnecessary cast to char *.
56604 * lib/strnlen.c: Include <string.h> unconditionally.
56605 * lib/yesno.c (yesno): Define with a prototype.
56607 2003-09-11 Bruno Haible <bruno@clisp.org>
56609 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56611 2003-09-10 Jim Meyering <jim@meyering.net>
56613 * lib/error.c: Correct indentation of cpp directives.
56615 2003-09-10 Bruno Haible <bruno@clisp.org>
56617 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56618 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56619 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56620 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56621 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56622 <stdlib.h> and <string.h> checks.
56623 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56624 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56626 2003-09-10 Bruno Haible <bruno@clisp.org>
56628 * lib/strcspn.c: Include <string.h> unconditionally.
56629 * lib/strpbrk.c: Include <string.h> unconditionally.
56630 * lib/strstr.c: Include <string.h> unconditionally.
56631 * lib/unicodeio.c: Include <string.h> unconditionally.
56632 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56633 * lib/unsetenv.c: Likewise.
56634 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56635 * lib/yesno.c: Include <stdlib.h> unconditionally.
56636 (rpmatch): Add prototype.
56638 2003-09-09 Paul Eggert <eggert@twinsun.com>
56640 More patches to assume C89 or better.
56641 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56642 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56643 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56645 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56647 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56649 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56651 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56652 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56653 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56655 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56656 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56658 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56660 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56661 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56662 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56663 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56664 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56665 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56667 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56668 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56669 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56670 C headers, or for string.h.
56671 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56672 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56673 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56674 headers, memory.h, stdlib.h, string.h, strings.h.
56675 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56676 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56677 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56679 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56680 headers, memory.h, string.h.
56681 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56682 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56684 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56686 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56687 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56688 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56689 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56690 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56692 2003-09-09 Paul Eggert <eggert@twinsun.com>
56696 * lib/acosl.c (main): Use a prototype.
56697 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56700 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56702 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56703 (getopt, etopt_long, getopt_long_only, _getopt_internal)
56704 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56706 * lib/getopt.c (const): Remove macro.
56707 Include <string.h> unconditionally.
56708 (my_index): Remove; all uses changed to strchr.
56709 (strlen): Remove decl.
56710 (exchange): Remove forward decl; no longer needed.
56711 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56712 Define with prototype.
56713 * lib/getopt1.c (const): Remove macro.
56714 (getopt_long, getopt_long_only, main): Define with prototype.
56716 * lib/getugroups.c: Include <string.h> unconditionally.
56718 * lib/getusershell.c: Include <stdlib.h> unconditionally.
56719 (getusershell, setusershell, endusershell, readname, main):
56720 Define with prototypes.
56722 * lib/group-member.c: Include group-member.h first.
56723 Include <stdlib.h> unconditionally.
56725 * lib/hard-locale.c: Include hard-locale.h first.
56726 Include <stdlib.h>, <string.h> unconditionally.
56728 * lib/hash.c (free, malloc): Remove decls.
56729 Include <stdlib.h> unconditionally.
56731 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56732 (getenv): Do not declare.
56734 * lib/idcache.c: Include <string.h> unconditionally.
56736 * lib/long-options.c: Include long-options.h first, to test interface.
56737 Include <stdlib.h> unconditionally.
56739 * lib/makepath.c: Include makepath.h first, to test interface.
56740 Include <stdlib.h> and <string.h> unconditionally.
56742 * lib/linebuffer.c: Include <stdlib.h>.
56743 (free): Remove decl.
56745 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56746 stddef.h. rpl_malloc returns void *, not char *.
56747 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
56750 * lib/md5.h: Include <limits.h> unconditionally.
56751 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56752 (__P): Remove; all uses removed.
56753 * lib/md5.c: Include "md5.h" first.
56754 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56755 md5_buffer, md5_process_bytes, md5_process_block):
56756 Define with prototypes.
56757 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
56758 * lib/sha.c: Include "sha.h" first.
56759 Include <stdlib.h>, <string.h> unconditionally.
56761 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56762 * lib/memcmp.c (__ptr_t): Likewise.
56763 * lib/memrchr.c (__ptr_t): Likewise.
56764 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56765 Include <string.h> unconditionally.
56766 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56767 * lib/memchr.c: Include <stdlib.h> unconditionally.
56768 * lib/memchr.c (LONG_MAX): Remove.
56769 * lib/memrchr.c (LONG_MAX): Likewise.
56770 * lib/memchr.c (__memchr): Define via a prototype.
56771 * lib/memrchr.c (__memrchr): Likewise.
56772 * lib/memcmp.c (__P): Remove, and remove all uses.
56773 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56774 Remove forward decls; no longer needed.
56775 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56776 Use types required by C89 in prototype.
56778 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56779 * lib/savedir.c: Likewise.
56780 * lib/mkdir.c (free): Remove decl.
56781 * lib/rmdir.c (rmdir): Define with a prototype.
56782 * lib/savedir.c: Include savedir.h first, to test interface.
56784 * lib/mktime.c (STDC_HEADERS): Remove.
56785 Include <stdlib.h>, <string.h> unconditionally.
56787 * lib/modechange.c: Include <stdlib.h> unconditionally.
56788 (malloc): Remove decl.
56790 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56791 (free): Remove decl.
56793 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56794 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56795 (This type really should be intptr_t, but that's a C99ism.)
56796 (_obstack_memcpy): Remove: all uses changed to memcpy.
56797 Include <string.h> unconditionally.
56798 (struct obstack): Assume __STDC__ for types of members
56799 chunkfun, freefun, extra_arg.
56800 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56801 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56802 obstack_begin, obstack_specify_allocation,
56803 obstack_specify_allocation_with_arg, obstack_chunkfun,
56804 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56805 Remove unprototyped decls and the macros that use them.
56806 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
56807 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56808 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56809 (defined __STDC__ && __STDC__)]:
56810 Remove nonprototyped code.
56811 Include <stdlib.h> unconditionally.
56812 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56813 _obstack_allocated_p, _obstack_free, obstack_free,
56814 _obstack_memory_used, print_and_abort):
56815 Define using prototypes.
56816 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56817 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56818 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56819 obstack_next_free, obstack_object_size, obstack_room) [0]:
56820 Remove unused, unprototyped code.
56822 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56824 * lib/physmem.c (physmem_total, physmem_available, main): Define
56827 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56828 (main): Define with a prototype.
56830 * lib/posixver.c (getenv): Remove decl.
56832 * lib/putenv.c (malloc): Returns void *, not char *.
56833 Include <string.h> unconditionally.
56834 (strchr, memcpy, NULL): Do not define.
56836 * lib/readtokens.c: Include readtokens.h first, to test interface.
56837 Include <stdlib.h>, <string.h> unconditionally.
56838 (init_tokenbuffer): Define with a prototype.
56840 * lib/regex.c (PARAMS): Remove. All uses removed.
56841 All uses of _RE_ARGS removed, too.
56842 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56844 (bzero): Assume memset exists.
56845 (memcmp, memcpy, NULL): Remove.
56846 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56847 char, or assignments to local vars of type signed char.
56848 (init_syntax_once, PREFIX(extract_number_and_incr),
56849 PREFIX(print_partial_compiled_pattern),
56850 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56851 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56852 PREFIX(regex_grow_registers), PREFIX(regex_compile),
56853 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56854 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56855 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56856 wcs_compile_range, byte_compile_range, truncate_wchar,
56857 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56858 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56859 count_mbs_length, wcs_re_match_2_internal,
56860 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56861 PREFIX(alt_match_null_string_p),
56862 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56863 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56864 regfree, PREFIX(extract_number)): Define with prototype. Remove
56865 now-unnecessary declaration, if any.
56866 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56868 Remove now-unnecessary casts among pointer types.
56869 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
56871 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56872 (free): Remove decl.
56874 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56876 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56877 (free): Remove decl.
56879 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56880 * lib/xgetcwd.c: Likewise.
56882 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56883 (free): Remove decl.
56885 * lib/strchrnul.c (strchrnul): Define with a prototype.
56886 Fix bug: c_in was not converted to char before searching.
56888 The following changes are not K&R related:
56890 * lib/group-member.h: Include <sys/types.h>, so that this file is
56892 * lib/makepath.h: Likewise.
56894 * lib/getusershell.c (readname, default_index, line_size, readname):
56895 Use size_t, not int, for sizes.
56896 (readname): If the size overflows, report an error instead of
56899 2003-09-09 Paul Eggert <eggert@twinsun.com>
56901 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56904 2003-09-09 Paul Eggert <eggert@twinsun.com>
56906 * README: New section: portability guidelines.
56908 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56910 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56913 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56915 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56917 2003-09-08 Paul Eggert <eggert@twinsun.com>
56919 Assume C89 or better; remove K&R cruft.
56920 A few of these changes were first proposed by Derek Robert Price
56921 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56923 * lib/addext.c: Include <string.h> unconditionally.
56924 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56925 Don't declare getenv or malloc.
56927 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56928 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56930 (find_stack_direction, alloca): Use prototypes.
56932 * lib/atexit.c (atexit): Define using a prototype.
56934 * lib/basename.c, dirname.c, stripslash.c:
56935 Include <string.h> unconditionally.
56937 * lib/bcopy.c: Include <stddef.h>.
56938 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56940 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56942 * lib/error.h (error, error_at_line, error_print_progname)
56943 [! (defined (__STDC__) && __STDC__)]: Remove decls.
56944 * lib/error.c: Include error.h first, to check interface.
56945 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56946 (VA_START): Remove; all uses changeed to va_start.
56947 (exit, strerror): Remove decls.
56948 (error_print_progname): Prototype uncondionally.
56949 Don't include <errno.h>; no longer needed.
56950 (private_strerror): Remove.
56951 (error_tail): Always define.
56952 (error, error_at_line): Assume C89 or better; always use prototypes.
56953 * lib/fatal.c: Include "fatal.h" first, to test interface.
56954 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56955 (VA_START): Remove; all uses changed to va_start.
56956 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56958 (exit): Remove decl.
56959 (fatal): Prototype unconditionally. Assume va_start works.
56960 Abort at end, to pacify gcc.
56962 * lib/euidaccess.c (main): Define with a prototype.
56964 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56966 * lib/exitfail.c: Include <stdlib.h> unconditionally.
56968 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
56970 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56971 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56972 (getenv): Remove decl.
56973 (fnmatch): Define using a prototype.
56974 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56975 (FCT): Define using a prototype.
56977 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56979 * lib/gethostname.c: Include <stddef.h>.
56980 (gethostname): Define with prototype. Length is size_t, not int.
56982 2003-09-08 Paul Eggert <eggert@twinsun.com>
56984 Assume C89 or better; remove K&R cruft.
56985 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56986 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56987 string.h, getenv, malloc.
56988 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56990 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56991 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56992 do not check for strerror.
56993 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56994 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56995 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56996 do not check for doprnt or vprintf.
56997 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
56998 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57000 2003-09-08 Paul Eggert <eggert@twinsun.com>
57002 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57003 getversion.c should have been removed then, but was accidentally
57006 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57007 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57009 2003-09-08 Karl Berry <karl@gnu.org>
57011 * config/config.sub, config.guess, srclistvars.sh: update from savannah
57012 config, forget about prep.
57014 * config/depcomp, missing: update from automake.
57016 2003-09-07 Paul Eggert <eggert@twinsun.com>
57018 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
57019 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57021 2003-09-07 Paul Eggert <eggert@twinsun.com>
57023 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57024 copy_tm_result. Bug reported by Simon Josefsson in
57025 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57027 2003-09-06 Paul Eggert <eggert@twinsun.com>
57029 * m4/time_r.m4: New file.
57030 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57031 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57032 is. Check for timegm declaration.
57033 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57034 Do not check for gmtime_r.
57035 Replace mktime if __mktime_internal does not exist and if mktime
57036 hasn't been replaced already.
57038 2003-09-06 Paul Eggert <eggert@twinsun.com>
57040 * lib/time_r.c, lib/time_r.h: New files.
57042 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57044 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
57045 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57047 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57049 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57050 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57051 Include <time_r.h>.
57053 * lib/timegm.c: Switch to glibc implementation, with the following
57055 [defined HAVE_CONFIG_H]: Include <config.h>.
57056 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57057 (__mktime_internal) [!defined _LIBC]: New decl.
57058 (__gmtime_r) [!defined _LIBC]: New macro and function.
57059 (timegm): Use a prototype, since gnulib assumes C89.
57060 Do not bother declaring tmp to be const, as it's not really usefu.
57061 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57062 (timegm): Declare only if HAVE_DECL_TIMEGM.
57064 2003-09-06 Paul Eggert <eggert@twinsun.com>
57066 * MODULES.html.sh (func_all_modules): Add time_r.
57067 * modules/time_r: New file.
57068 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57069 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
57071 2003-09-03 Paul Eggert <eggert@twinsun.com>
57073 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57074 Bug reported by Lute Kamstra in
57075 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57077 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57078 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
57079 course with correspondingly smaller numbers for tomorrow and
57080 yesterday. From Tadayoshi Funaba. Originally installed into
57081 sh-utils on 1999-08-07, but the patch got lost (I guess during the
57084 2003-08-31 Simon Josefsson <jas@extundo.com>
57086 * modules/timegm: New file.
57087 * MODULES.html.sh (func_all_modules): Add timegm.
57089 2003-08-31 Simon Josefsson <jas@extundo.com>
57091 * m4/timegm.m4: New file.
57093 2003-08-31 Simon Josefsson <jas@extundo.com>
57095 * lib/timegm.h: New file.
57096 * lib/timegm.c: New file. Based on
57097 wget-1.8.2/src/http.c:mktime_from_utc.
57099 2003-08-31 Karl Berry <karl@gnu.org>
57101 * lib/argp.h: update from libc.
57103 2003-08-28 Bruno Haible <bruno@clisp.org>
57105 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57106 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57107 followed by '#define fnmatch fnmatch_posix' gives an error.
57109 2003-08-28 Bruno Haible <bruno@clisp.org>
57111 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57112 warning on QNX, which defines O_BINARY to 000000.
57114 2003-08-27 Jim Meyering <jim@meyering.net>
57116 * m4/mkstemp.m4: Require that the system mkstemp be able to create
57117 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
57118 would fail after 32. Reported by Danny Levinson. Details here:
57119 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57121 2003-08-24 Bruno Haible <bruno@clisp.org>
57123 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57124 MSVC7 <stdio.h> is included later.
57126 2003-08-22 Simon Josefsson <jas@extundo.com>
57128 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57130 2003-08-20 Karl Berry <karl@gnu.org>
57132 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57134 2003-08-20 Bruno Haible <bruno@clisp.org>
57136 * modules/progname: New file.
57137 * MODULES.html.sh (func_all_modules): Add progname.
57139 2003-08-20 Bruno Haible <bruno@clisp.org>
57141 * lib/progname.h: New file, from GNU gettext.
57142 * lib/progname.c: New file, from GNU gettext.
57143 * lib/progreloc.c: New file, from GNU gettext.
57145 2003-08-19 Jim Meyering <jim@meyering.net>
57147 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57148 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57150 2003-08-19 Bruno Haible <bruno@clisp.org>
57152 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57155 2003-08-19 Bruno Haible <bruno@clisp.org>
57157 * lib/xstrdup.c: Assume <string.h> exists.
57159 2003-08-18 Paul Eggert <eggert@twinsun.com>
57161 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
57164 2003-08-18 Jim Meyering <jim@meyering.net>
57166 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57167 * m4/lib-ld.m4: Likewise.
57169 2003-08-18 Jim Meyering <jim@meyering.net>
57171 * lib/setenv.h: Indent nested cpp directive.
57172 * lib/vasnprintf.c: Remove trailing blanks.
57174 2003-08-17 Simon Josefsson <jas@extundo.com>
57176 * modules/xstrndup: New file.
57177 * MODULES.html.sh (func_all_modules): Add xstrndup.
57179 2003-08-17 Simon Josefsson <jas@extundo.com>
57181 * modules/argp: Fix autoconf macro name. Add more dependencies.
57183 2003-08-17 Simon Josefsson <jas@extundo.com>
57185 * m4/xstrndup.m4: New file.
57187 2003-08-17 Simon Josefsson <jas@extundo.com>
57189 * m4/argp.m4: New file.
57191 2003-08-17 Simon Josefsson <jas@extundo.com>
57192 Bruno Haible <bruno@clisp.org>
57194 * lib/xstrndup.h: New file.
57195 * lib/xstrndup.c: New file.
57197 2003-08-17 Bruno Haible <bruno@clisp.org>
57199 * modules/strndup (Files, Include): Add lib/strndup.h.
57201 2003-08-17 Bruno Haible <bruno@clisp.org>
57203 * modules/euidaccess (Files): Add lib/euidaccess.h.
57205 2003-08-17 Bruno Haible <bruno@clisp.org>
57207 * lib/strndup.h: New file.
57209 2003-08-17 Bruno Haible <bruno@clisp.org>
57211 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57212 like AC_GNU_SOURCE.
57213 * modules/extensions (configure.ac): Comment out the invocation of
57214 gl_USE_SYSTEM_EXTENSIONS.
57216 2003-08-16 Paul Eggert <eggert@twinsun.com>
57218 Merges from coreutils, etc.
57219 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57220 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
57221 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57223 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57224 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57226 2003-08-16 Paul Eggert <eggert@twinsun.com>
57228 Document merge from coreutils.
57229 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57230 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57231 * modules/utime: Add m4/utimes-null.m4.
57233 2003-08-16 Paul Eggert <eggert@twinsun.com>
57235 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57236 space, undoing this 2003-08-12 change:
57237 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57239 2003-08-16 Paul Eggert <eggert@twinsun.com>
57241 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57242 strtoul.c from libc, undoing this 2003-08-12 change:
57243 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57245 2003-08-16 Jim Meyering <jim@meyering.net>
57247 Merges from coreutils.
57248 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57249 prefix. Adjust cache variables similarly. Create 500 rather than
57250 just 300 files, to exercise bug on Darwin6.5, too.
57251 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57253 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57254 AM_SYS_POSIX_TERMIOS.
57255 Reported by mkc@mathdogs.com.
57256 Also change use of $am_cv_sys_posix_termios
57257 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
57258 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57259 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57260 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57261 in /proc/mounts until it finds one with matching device number. This
57262 is unnecessary when the FILE argument *is* a mount point. No stat call
57263 is necessary in that case. So, disable the statvfs-testing code on
57264 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
57265 as RedHat bug# 84846.
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>
57274 Merge from coreutils.
57275 * lib/xstrtoimax.c: #else #if -> #elif.
57276 * lib/xstrtoumax.c: Likewise.
57278 2003-08-16 Jim Meyering <jim@meyering.net>
57280 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57281 * m4/utimes.m4: Removed.
57282 * m4/utimes-null.m4: Renamed from utimes.m4.
57284 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57285 to 1MB, so as not to render systems with no stack size limit (e.g.,
57286 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
57287 Include <unistd.h>. On some systems,
57288 it is required for the definition of _SC_PAGESIZE.
57290 2003-08-16 Jim Meyering <jim@meyering.net>
57291 and Paul Eggert <eggert@cs.ucla.edu>
57293 Merges from coreutils, etc.
57295 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57296 using the latest version from cvs. This avoids problems with #line
57297 directives using a vendor (Sun) compiler.
57298 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57299 Don't set GETGROUPS_LIB here; now it's
57300 done via getgroups.m4's wrapper function.
57301 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57302 rather than just in sh-util/configure.in, so that the
57303 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57305 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57306 AC_FUNC_GETLOADAVG where to find getloadavg.c.
57307 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57308 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57309 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57310 Remove code that is now done by the newly-required macros.
57311 Append $(EXEEXT) to DF_PROG.
57312 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57313 Do not invoke or require the following here,
57314 since prereq.m4 or some gnulib .m4 now does this for us:
57315 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57316 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57317 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57318 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57319 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57320 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57321 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57323 Do not replace the following functions, as this is now the job
57324 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57325 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57326 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57327 atexit getpass, strdup, getpagesize.
57329 Do not check for the following functions, as this is now the job
57330 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57331 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
57333 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57334 Check for sys/sysctl.h.
57335 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57336 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
57337 of checking for ssize_t ourselves.
57339 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57340 Require every macro that gnulib/modules/* suggests for us.
57341 (jm_PREREQ_ADDEXT): New macro.
57342 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57343 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57345 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57346 (gl_PHYSMEM): Use it.
57347 Also check for `table' function.
57348 Check for new headers and functions.
57349 Add check for sys/sysmp.h.
57350 With suggestions from Kaveh Ghazi.
57351 Ignore headers that are present but cannot be compiled. This
57352 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57355 2003-08-15 Paul Eggert <eggert@twinsun.com>
57357 Document merge from coreutils.
57358 * modules/userspec: Depend on posixver.
57359 * modules/strftime: Depend on tzset.
57361 2003-08-15 Paul Eggert <eggert@twinsun.com>
57363 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57364 rather than tab, after '#' in shell-script copyright notices.
57365 Suggested by Bruno Haible.
57367 2003-08-15 Paul Eggert <eggert@twinsun.com>
57369 * config/srclist-update: Use three spaces, rather than tab, after '#'
57370 in shell-script copyright notices. Suggested by Bruno Haible.
57371 Remove unnecessary parenthesization in regular expression.
57373 2003-08-15 Jim Meyering <jim@meyering.net>
57375 Merge from coreutils.
57376 * lib/xgethostname.c: Include <stdlib.h>.
57377 (xghostname): Don't exit for anything other than memory-related
57378 failure; just return NULL.
57379 * lib/userspec.c: Include "posixver.h".
57380 (parse_user_spec): Accept `.' as a separator only
57381 in pre-POSIX-200112 mode.
57382 * lib/strtoimax.c: Use #elif rather than #else #if.
57383 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57384 Remove function, now that we can rely on a working tzset function.
57385 [!_LIBC]: Ensure that the required autoconf test has been run.
57386 [!defined _NL_CURRENT && HAVE_STRFTIME]:
57387 Use underlying_strftime for %r.
57388 * lib/sha.c: Merge in some clean-up and optimization changes from
57390 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57391 Ensure that it is a multiple of 64.
57392 Rearrange loop exit tests so as to avoid performing an
57393 additional fread after encountering an error or EOF.
57394 * lib/realloc.c: Update copyright date.
57396 2003-08-15 Jim Meyering <jim@meyering.net>
57397 and Paul Eggert <eggert@twinsun.com>
57399 Merge from coreutils.
57400 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57401 member but strut utmpx does not. Needed for AIX 4.3.3.
57402 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57404 2003-08-15 Jim Meyering <jim@meyering.net>
57405 and Paul Eggert <eggert@cs.ucla.edu>
57407 Merges from coreutils, etc.
57408 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57409 Require gl_FUNC_TZSET_CLOBBER.
57410 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57411 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57414 2003-08-14 Paul Eggert <eggert@twinsun.com>
57416 Help the merge from coreutils.
57417 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57418 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57419 * m4/tzset.m4: Use it too.
57421 2003-08-14 Paul Eggert <eggert@twinsun.com>
57423 * modules/tzset: New file.
57425 2003-08-14 Jim Meyering <jim@meyering.net>
57427 Merges from coreutils.
57428 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57429 variable names, rather than @FNMATCH_H@.
57430 * modules/alloca: Likewise for $(ALLOCA_H).
57432 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57433 the three copies of the literal target, `fnmatch.h'.
57434 * modules/alloca (alloca.h): Likewise.
57436 2003-08-14 Jim Meyering <jim@meyering.net>
57438 Merge from coreutils.
57439 * m4/tzset.m4: New file.
57440 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57441 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57442 otherwise, AIX 5.1 systems would end up using the latter.
57443 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57444 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
57445 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57446 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
57448 2003-08-14 Jim Meyering <jim@meyering.net>
57450 Merge from coreutils.
57451 * lib/obstack.h: Whitespace changes.
57452 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57453 and xcalloc return values.
57454 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57455 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
57456 hang on OSF/1 5.1 for DIR on both local and remote file systems.
57457 Reported by (and fix confirmed by) Nelson H. F. Beebe.
57458 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57460 Use mntctl's return value to drive the entry-processing loop, since
57461 we can't rely on the value of the vmt_length member in the last
57462 entry. On some systems doing so could result in exhausting
57463 virtual memory. Based in part on a patch from Mike Jetzer.
57465 2003-08-14 Jim Meyering <jim@meyering.net>
57466 and Paul Eggert <eggert@twinsun.com>
57468 Merges from coreutils, plus other fixes.
57469 * lib/physmem.c: Merge in portability changes from gcc/libiberty
57470 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
57471 for credits and details. Thanks to Kaveh Ghazi for helping
57472 to keep these files in sync.
57473 (ARRAY_SIZE): Define it.
57474 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57475 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57476 (memcasecmp): Don't assume size_t fits in unsigned int.
57477 Remove casts and duplicate code.
57478 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57479 (memcpy): Remove definition.
57480 Merge in some clean-up and optimization changes from glibc.
57481 [BLOCKSIZE]: Move definition to top of file.
57482 Ensure that it is a multiple of 64.
57483 Rearrange loop exit tests so as to avoid performing an
57484 additional fread after encountering an error or EOF.
57485 * lib/md5.h (md5_uintptr): Define.
57486 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57487 return to the initial working directory. Preserve errno
57489 * lib/idcache.c: Include "xalloc.h".
57490 (xmalloc, xrealloc): Remove decls.
57491 (getuser): Remove casts no longer required in C89.
57492 * lib/human.c: Include stdio.h, for sprintf.
57493 * lib/group-member.c: Include "xalloc.h".
57494 (xmalloc, xrealloc): Remove decls.
57495 (get_group_info): Remove casts no longer required in C89.
57496 * lib/getusershell.c (readname): Remove casts no longer required in
57498 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57499 * lib/getline.c: Whitespace fix, from coreutils.
57501 2003-08-13 Paul Eggert <eggert@twinsun.com>
57503 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57506 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57507 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57508 Undo previous (whitespace-only) change.
57510 2003-08-13 Paul Eggert <eggert@twinsun.com>
57512 * lib/exclude.c: Include <ctype.h>
57513 (IN_CTYPE_DOMAIN): New macro.
57514 (is_space): New fn.
57515 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57518 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57519 Undo previous (whitespace-only) change.
57521 2003-08-13 Paul Eggert <eggert@twinsun.com>
57523 * config/srclist-update: Change update back to the old behavior,
57524 leaving whitespace alone. Use one 'sed' command rather than a
57526 (fixlicense): Now a variable, not a function.
57527 (remove_trailing_blanks): Remove.
57528 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57529 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57530 Undo previous (whitespace-only) change.
57532 2003-08-12 Paul Eggert <eggert@twinsun.com>
57534 Merge from coreutils.
57535 * modules/euidaccess: Add lib_SOURCES, include for new
57538 2003-08-12 Paul Eggert <eggert@twinsun.com>
57540 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57541 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57542 Normalize leading white space and remove trailing white space.
57544 Merge from coreutils
57545 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57547 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57548 0.12.1. These files are now being upgraded automatically by
57549 ../config/srclist-update.
57551 2003-08-12 Paul Eggert <eggert@twinsun.com>
57553 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57554 Normalize leading white space and remove trailing white space.
57555 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57556 notice, as per ../config/srclist-update.
57558 Merge from coreutils.
57559 * lib/euidaccess.h: New file.
57560 * lib/euidaccess.c: Include it.
57561 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57562 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
57563 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57565 2003-08-12 Paul Eggert <eggert@twinsun.com>
57567 * config/srclist-update: Add copyright notice.
57568 (remove_id_lines, remove_trailing_blanks): New constants.
57569 (fixfile): Use them to normalize spacing a bit in copied files.
57570 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57571 Normalize leading white space and remove trailing white space.
57573 * config/texinfo.tex: Sync with texinfo.
57575 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57576 strtoul.c from libc, to merge coreutils whitespace changes.
57578 * config/srclist.txt: Get the following m4 files from gettext:
57579 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57580 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57581 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57584 2003-08-12 Karl Berry <karl@gnu.org>
57586 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57589 2003-08-11 Paul Eggert <eggert@twinsun.com>
57591 * modules/gnu-source, m4/gnu-source.m4:
57592 Remove; we're assuming Autoconf 2.54 or later now.
57593 Suggested by Bruno Haible.
57594 * MODULES.html.sh (func_all_modules): Remove gnu-source.
57596 2003-08-11 Bruno Haible <bruno@clisp.org>
57598 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57600 2003-08-11 Bruno Haible <bruno@clisp.org>
57602 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57603 (vasnprintf): Use it instead of wcslen.
57605 2003-08-11 Bruno Haible <bruno@clisp.org>
57607 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57608 value to ensure that _Bool promotes to int. Use #define for _Bool when
57609 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57611 2003-08-10 Karl Berry <karl@gnu.org>
57613 * lib/regex.h: update from libc (whitespace fix).
57615 2003-08-09 Paul Eggert <eggert@twinsun.com>
57617 Merge some files from coreutils. These changes were
57618 originally made by Jim Meyering.
57619 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57620 many older Unixes require this.
57621 * lib/alloca.c (alloca): Remove cast to argument of free;
57622 no longer needed in C89.
57623 * lib/alloca_.h, regex.h: Fix white space to match
57624 what GNU indent does.
57626 2003-08-09 Paul Eggert <eggert@twinsun.com>
57628 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57629 apparently Emacs's Unicode mode got confused before my 2003-08-05
57632 2003-08-08 Paul Eggert <eggert@twinsun.com>
57634 * m4/extensions.m4: New file.
57635 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57636 Require gl_USE_SYSTEM_EXTENSIONS.
57637 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57638 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57640 2003-08-08 Paul Eggert <eggert@twinsun.com>
57642 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57643 * modules/extensions, modules/gnu-source: New files.
57644 * modules/timespec, modules/unlocked-io: Depend on extensions.
57646 2003-08-07 Paul Eggert <eggert@twinsun.com>
57648 * modules/restrict: New file.
57649 * MODULES.html.sh (func_all_modules): Add restrict.
57650 * modules/regex: Depend on restrict.
57652 2003-08-07 Paul Eggert <eggert@twinsun.com>
57654 * m4/restrict.m4: New file.
57655 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57657 2003-08-07 Bruno Haible <bruno@clisp.org>
57659 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57660 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57662 2003-08-07 Bruno Haible <bruno@clisp.org>
57664 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57665 makes the module 'getndelim2' compatible with the module 'getline'.
57667 2003-08-05 Paul Eggert <eggert@twinsun.com>
57669 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57670 byte with "\201" to avoid glitches when editing that source file
57671 with multi-gnome-terminal.
57673 2003-08-05 Paul Eggert <eggert@twinsun.com>
57675 * lib/bumpalloc.h: Remove.
57677 2003-08-05 Paul Eggert <eggert@twinsun.com>
57679 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57680 * modules/bumpalloc: Remove.
57682 2003-08-04 Paul Eggert <eggert@twinsun.com>
57684 * lib/getloadavg.c: Change copyright notice and spacing to conform to
57687 Merge from coreutils.
57688 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57690 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57691 from Karl Berry, implemented by Jim Meyering.
57692 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57693 from Dmitry V. Levin.
57694 Remove anachronistic cast of xrealloc.
57695 * lib/fnmatch_.h (__const): Remove. Use 'const'.
57696 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57697 type. Otherwise, it wouldn't compile with at least /bin/cc on
57698 ymp-cray-unicos9.0.2.X.
57699 Combine two mostly-identical uses of alloca into one.
57700 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57702 2003-08-04 Dave Love <d.love@dl.ac.uk>
57706 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
57707 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
57708 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57709 obsolete NLIST_NAME_UNION.
57710 [__GNU__]: Undef BSD and FSCALE.
57711 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57713 2003-08-03 Paul Eggert <eggert@twinsun.com>
57715 * lib/stdbool_.h (_Bool): Make it signed char, instead of
57716 an enum type, so that it's guaranteed to promote to int. See:
57717 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57719 2003-08-03 Karl Berry <karl@gnu.org>
57721 * config/depcomp: update from automake.
57723 2003-07-31 Paul Eggert <eggert@twinsun.com>
57725 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
57726 (strerror): Don't assume that a printable int fits in 14 bytes.
57728 2003-07-31 Bruno Haible <bruno@clisp.org>
57730 * modules/getpass-gnu: New file.
57731 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57733 2003-07-31 Bruno Haible <bruno@clisp.org>
57735 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57737 2003-07-24 Karl Berry <karl@gnu.org>
57739 * config/missing: update from automake.
57741 2003-07-24 Derek Robert Price <derek@ximbiot.com>
57742 Bruno Haible <bruno@clisp.org>
57744 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57745 * lib/getline.c (getline, getdelim): Likewise.
57746 Remove _GNU_SOURCE define; now it's defined in config.h through
57749 2003-07-23 Karl Berry <karl@gnu.org>
57751 * config/config.sub: update from prep.
57753 2003-07-22 Paul Eggert <eggert@twinsun.com>
57755 * modules/xalloc (Depends-on): Add exitfail.
57756 * modules/xmemcoll: Likewise.
57758 2003-07-22 Paul Eggert <eggert@twinsun.com>
57760 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57761 over-parenthesization in macros.
57763 Sync with coreutils.
57765 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57768 Use `exit_failure' for xalloc and xmemcoll instead of their own
57769 private exit-failure variables.
57770 * lib/xalloc.h (xalloc_exit_failure): Remove.
57771 * lib/xmalloc.c: Likewise. Include exitfail.h.
57772 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57773 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57774 * lib/xmemcoll.c: Likewise. Include exitfail.h.
57775 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57777 2003-07-20 Jim Meyering <jim@meyering.net>
57779 * modules/closeout (Depends-on): Add exitfail.
57780 Suggestion from Bruno Haible.
57782 2003-07-19 Karl Berry <karl@gnu.org>
57784 * config/config.sub: update from prep.
57786 2003-07-18 Paul Eggert <eggert@twinsun.com>
57788 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57790 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
57791 to test that it can stand by itself. Include "exitfail.h".
57792 Clients should set exit_failure instead.
57793 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
57795 2003-07-18 Bruno Haible <bruno@clisp.org>
57797 * modules/getndelim2: New file.
57798 * modules/getline: Share files with module getndelim2.
57799 * modules/getnline: Depend on getndelim2 instead of sharing files with
57800 it. Add getnline.c to lib_SOURCES.
57801 * MODULES.html.sh (func_all_modules): Add getndelim2.
57803 2003-07-18 Bruno Haible <bruno@clisp.org>
57805 * m4/getndelim2.m4: New file.
57806 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57807 invoke gl_PREREQ_GETNDELIM2.
57808 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57809 gl_PREREQ_GETNDELIM2.
57810 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57813 2003-07-18 Bruno Haible <bruno@clisp.org>
57815 * lib/getndelim2.h: New file.
57816 * lib/getndelim2.c: Make into a module of its own. Include config.h,
57818 (getndelim2): Make non-static. Change return type to ssize_t.
57819 * lib/getline.h: Change argument names.
57820 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57821 * lib/getnline.c: Include getndelim2.h.
57823 2003-07-18 Andreas Schwab <schwab@suse.de>
57825 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57827 2003-07-17 Karl Berry <karl@gnu.org>
57829 * config/config.sub: update from prep.
57831 2003-07-17 Bruno Haible <bruno@clisp.org>
57833 * modules/getnline: New file.
57834 * modules/getline: Add lib/getndelim2.c to source file list.
57835 * MODULES.html.sh (func_all_modules): Add getnline.
57837 2003-07-17 Bruno Haible <bruno@clisp.org>
57839 * m4/getnline.m4: New file.
57841 2003-07-17 Bruno Haible <bruno@clisp.org>
57843 * m4/Makefile.am.in: Remove file.
57844 * m4/Makefile.am: Remove file.
57845 * m4/Makefile.in: Remove file.
57847 2003-07-17 Bruno Haible <bruno@clisp.org>
57849 * lib/getnline.h: New file.
57850 * lib/getnline.c: New file.
57851 * lib/getndelim2.c: New file, extracted from getline.c.
57852 (getndelim2): Renamed from getdelim2, with added nmax argument.
57853 * lib/getline.c: Include getndelim2.c.
57854 (getdelim2): Moved out to getndelim2.c.
57855 (getline, getdelim): Update.
57857 2003-07-17 Bruno Haible <bruno@clisp.org>
57859 * lib/Makefile.am: Remove file.
57860 * lib/Makefile.in: Remove file.
57862 2003-07-17 Bruno Haible <bruno@clisp.org>
57864 * configure.in: Remove file.
57865 * Makefile.in: Remove file.
57867 2003-07-17 Bruno Haible <bruno@clisp.org>
57869 * MODULES.html.sh: Put the </BODY> right before </HTML>.
57871 2003-07-16 Karl Berry <karl@gnu.org>
57873 * config/srclist-update: was running fixlicense twice, which caused
57874 texinfo.tex to be nullified for some reason. Simplify,
57875 $gplsrc is no longer needed as far as I can see?
57877 2003-07-16 Jim Meyering <jim@meyering.net>
57879 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
57881 2003-07-15 Paul Eggert <eggert@twinsun.com>
57883 * config/srclist.txt: Get the following files from gettext-runtime/intl
57884 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57885 ref-del.sin. From Bruno Haible.
57886 * config/srclist-update (fixfile): Change grep pattern again, since the
57887 previous fix didn't work (there was another trailing $). Use
57888 '[$]' to escape the $s.
57890 2003-07-15 Karl Berry <karl@gnu.org>
57892 * lib/vasnprintf.c: update from gettext.
57894 2003-07-15 Karl Berry <karl@gnu.org>
57896 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57897 gets expanded when surrounded by '$'.
57899 2003-07-15 Jim Meyering <jim@meyering.net>
57901 * modules/save-cwd: Don't depend on error. From Derek Price.
57903 2003-07-15 Jim Meyering <jim@meyering.net>
57905 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57907 2003-07-14 Simon Josefsson <jas@extundo.com>
57909 * modules/mempcpy: New file.
57910 * MODULES.html.sh (func_all_modules): Add mempcpy.
57912 2003-07-14 Simon Josefsson <jas@extundo.com>
57914 * m4/mempcpy.m4: New file.
57916 2003-07-14 Simon Josefsson <jas@extundo.com>
57918 * lib/mempcpy.h: New file.
57919 * lib/mempcpy.c: New file.
57921 2003-07-14 Paul Eggert <eggert@twinsun.com>
57923 * modules/getdate, modules/posixtm: Depend on mktime.
57925 2003-07-14 Paul Eggert <eggert@twinsun.com>
57927 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57928 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57929 unicodeio.c, unicodeio.h, unlocked-io.h:
57930 Switch from LGPL to GPL.
57932 2003-07-14 Paul Eggert <eggert@twinsun.com>
57934 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57935 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57936 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57937 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57938 vasprintf.c, vasprintf.h: Regenerate. These files are now being
57939 updated automatically by ../config/srclist-update. This changes
57940 their license from LPGL to GPL.
57942 2003-07-14 Paul Eggert <eggert@twinsun.com>
57944 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
57945 assumed to refer to the root of the most recent stable gettext version.
57946 * config/srclistvars.sh: Add defaults for eggert.
57947 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57948 Match "This program" as well as "The program". This is needed
57951 2003-07-14 Jim Meyering <jim@meyering.net>
57953 Don't emit diagnostics. Let callers do that.
57954 * lib/save-cwd.c: Don't include "error.h".
57955 (save_cwd): Don't call error. Ensure that errno is valid
57956 when returning nonzero.
57958 * lib/save-cwd.h (restore_cwd): Update prototype.
57959 * lib/save-cwd.c (restore_cwd): Remove two parameters.
57960 Simplify. Don't call error upon failure. Let callers do that.
57961 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57962 when auditing is enabled. But don't bother updating the #if.
57964 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
57966 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57967 it breaks C++ compilation.
57968 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57970 2003-07-10 Simon Josefsson <jas@extundo.com>
57972 * modules/strchrnul (Makefile.am): Add strchrnul.h.
57974 2003-07-10 Jim Meyering <jim@meyering.net>
57976 * m4/clock_time.m4: Remove trailing blank.
57977 * m4/intmax_t.m4: Likewise.
57979 2003-07-10 Jim Meyering <jim@meyering.net>
57981 * lib/vasnprintf.c: Remove trailing blanks.
57982 Make cpp indentation consistent.
57984 2003-07-09 Paul Eggert <eggert@twinsun.com>
57986 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57987 posixver.c, strftime.c, strnlen.c, strverscmp.c:
57988 Switch from LGPL to GPL.
57990 2003-07-09 Paul Eggert <eggert@twinsun.com>
57992 * config/srclist.txt: Sort sublists. Add
57993 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57994 that differ from gnulib for one reason or another; we'd like this list
57995 to be smaller but for now let's document what we have.
57997 2003-07-08 Paul Eggert <eggert@twinsun.com>
57999 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58000 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
58001 and sweeter "eval x=$x".
58002 * config/srclist.txt: Get lib/argp* from glibc.
58004 2003-07-07 Paul Eggert <eggert@twinsun.com>
58006 * lib/mktime.c: Fix some boundary cases and remove need for floating
58009 Issue a compile-time diagnostic if time_t is floating point, or if
58010 two's complement arithmetic is not in effect, or if arithmetic
58011 right shift does not propagate the sign. These assumptions were
58012 all in the original code but they weren't checked.
58014 (TIME_T_MIDPOINT, verify): New macros.
58015 (__isleap): Remove; it has integer overflow problems.
58016 (leapyear): New function, without those problems.
58017 (ydhms_tm_diff): Remove; splitting into two parts.
58018 (ydhms_diff): New function, containing the arithmetic part of
58019 the old ydhms_tm_diff function. Issue a compile-time
58020 diagnostic if we are not using C99 integer division.
58021 Avoid casts when possible.
58022 (guess_time_tm): New function, containing the checking part of
58023 the old ydhms_tm_diff function. Return the new value, rather than
58024 the difference between it and the old. Accept a new argument T
58025 so that *T specifies the old value. Check for overflow in the result.
58027 (__mktime_internal): Use a time_t offset, not a long int offset.
58028 This undoes the 2003-06-04 change, which is no longer needed now
58029 that we have better overflow checking.
58030 (localtime_offset): Likewise.
58032 (__mktime_internal): Avoid harmful overflow on hosts where time_t
58033 and long are 64-bit but int is only 32-bit.
58034 (ydhms_diff): Use long int to store year1 and yday1.
58035 Issue a compile-time diagnostic if long int is not wide enough.
58037 (__mktime_internal): Use long int to store adjusted year and yday.
58038 Use plain C rather than preprocessor commands, if that doesn't
58040 Check for overflow (and try to repair) after each probe
58041 rather than checking only at the very end. This avoids some bugs
58042 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58043 does not equal GMT offset at maximum time).
58044 Use integer to check for overflow rather than floating point; this
58045 is more portable to non-IEEE hosts, and is a tad faster.
58046 When we detect that we are oscillating between two values,
58047 don't check whether tm_isdst has the requested value, since
58048 we already know the answer. When tm_isdst has the wrong value,
58049 use a different heuristic to find the right one, based on the
58050 extreme values actually observed in practice in tz2003a,
58051 rather than the (overly optimistic) "previous 3 calendar quarters".
58053 (not_equal_tm, print_tm, check_result): Use "const T" rather than
58054 "T const" to accommodate glibc style.
58055 (check_result): Use less-confusing report format. "long" -> "long int.
58057 Don't loop if the iteration overflows time_t.
58058 Allow a negative step in the iteration.
58060 2003-07-06 Karl Berry <karl@gnu.org>
58062 * config/depcomp: update from automake.
58063 * config/config.sub: update from prep.
58065 2003-07-03 Karl Berry <karl@gnu.org>
58067 * config/config.guess: update from prep.
58069 2003-07-01 Paul Eggert <eggert@twinsun.com>
58071 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58072 xreadlink.c now includes it unconditionally.
58074 2003-07-01 Paul Eggert <eggert@twinsun.com>
58076 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58077 having it depend on HAVE_SYS_TYPES_H.
58079 2003-07-01 Bruno Haible <bruno@clisp.org>
58081 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58082 <sys/types.h> should be sufficient.
58083 Reported by Paul Eggert.
58085 2003-06-26 Karl Berry <karl@gnu.org>
58087 * config/depcomp: update from automake.
58089 2003-06-26 Bruno Haible <bruno@clisp.org>
58091 * modules/human: Depend on module stdbool.
58093 2003-06-25 Bruno Haible <bruno@clisp.org>
58095 * modules/readlink: New file.
58096 * modules/xreadlink: Depend on it.
58097 * MODULES.html.sh (func_all_modules): Add readlink.
58099 2003-06-25 Bruno Haible <bruno@clisp.org>
58101 * m4/readlink.m4: New file.
58103 2003-06-25 Bruno Haible <bruno@clisp.org>
58105 * lib/readlink.c: New file.
58107 2003-06-22 Karl Berry <karl@gnu.org>
58109 * config/srclist.txt: update mkinstalldirs from automake.
58110 * config/mkinstalldirs: update.
58112 2003-06-22 Bruno Haible <bruno@clisp.org>
58114 Portability to mingw32.
58115 * m4/ssize_t.m4: New file, from GNU gettext.
58116 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58117 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58119 2003-06-22 Bruno Haible <bruno@clisp.org>
58121 * modules/safe-read: Add m4/ssize_t.m4.
58122 * modules/xreadlink: Add m4/ssize_t.m4.
58124 2003-06-20 Bruno Haible <bruno@clisp.org>
58126 Assume C89, so PARAMS isn't needed.
58127 * lib/unicodeio.h (PARAMS): Remove.
58128 * lib/unicodeio.c: Don't use PARAMS.
58130 2003-06-18 Karl Berry <karl@gnu.org>
58132 * config/config.{guess,sub}: update from prep.
58134 2003-06-18 Jim Meyering <jim@meyering.net>
58136 Merge changes from coreutils.
58137 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58138 Remove explicit declarations of xmalloc and realloc.
58140 (read_utmp): Remove anachronistic cast of xmalloc.
58142 2003-06-17 Paul Eggert <eggert@twinsun.com>
58144 Assume C89, so PARAMS isn't needed.
58145 * lib/backupfile.h (PARAMS): Remove. All uses removed.
58146 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58147 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58148 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58149 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58150 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58151 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58152 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58153 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58154 lib/xstrtod.h, lib/xstrtol.h: Likewise.
58155 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58156 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58157 no longer needed. Anyway, config.h should always be included before any
58160 2003-06-11 Simon Josefsson <jas@extundo.com>
58162 * modules/sysexits: New file.
58163 * MODULES.html.sh (func_all_modules): Add sysexits.
58165 2003-06-11 Simon Josefsson <jas@extundo.com>
58167 * lib/sysexit_.h: New file.
58169 2003-06-11 Derek Price <derek@ximbiot.com>
58171 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58174 2003-06-11 Bruno Haible <bruno@clisp.org>
58176 * m4/sysexits.m4: New file.
58178 2003-06-10 Simon Josefsson <jas@extundo.com>
58180 * lib/argp.h: New file, from glibc.
58181 * lib/argp-ba.c: New file, from glibc.
58182 * lib/argp-eexst.c: New file, from glibc.
58183 * lib/argp-fmtstream.c: New file, from glibc.
58184 * lib/argp-fmtstream.h: New file, from glibc.
58185 * lib/argp-fs-xinl.c: New file, from glibc.
58186 * lib/argp-help.c: New file, from glibc.
58187 * lib/argp-namefrob.h: New file, from glibc.
58188 * lib/argp-parse.c: New file, from glibc.
58189 * lib/argp-pv.c: New file, from glibc.
58190 * lib/argp-pvh.c: New file, from glibc.
58191 * lib/argp-xinl.c: New file, from glibc.
58193 2003-06-10 Simon Josefsson <jas@extundo.com>
58195 * modules/strchrnul: New file.
58197 2003-06-10 Simon Josefsson <jas@extundo.com>
58199 * modules/argp: New file.
58201 2003-06-10 Simon Josefsson <jas@extundo.com>
58203 * m4/strchrnul.m4: New file.
58205 2003-06-10 Simon Josefsson <jas@extundo.com>
58207 * lib/strchrnul.h: New file.
58208 * lib/strchrnul.c: New file.
58210 2003-06-10 Bruno Haible <bruno@clisp.org>
58212 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58214 2003-06-07 Karl Berry <karl@gnu.org>
58216 * config/config.{guess,sub}: update from prep.
58218 2003-06-07 Jim Meyering <jim@meyering.net>
58220 * modules/strtod: Use $(...) notation, not @...@ for
58221 AC_REPLACE'd variables.
58222 * modules/localcharset: Likewise.
58224 2003-06-07 Jim Meyering <jim@meyering.net>
58226 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58227 in place of my name in the copyright comment.
58228 Remove definition and uses of __P.
58231 * lib/stat.c: Don't declare xmalloc explicitly.
58232 Instead, include "xalloc.h".
58233 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58234 xrealloc, and xcalloc return values.
58235 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58237 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58239 2003-06-07 Bruno Haible <bruno@clisp.org>
58241 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58242 avoid AC_CONFIG_LINKS.
58243 * modules/fnmatch (Makefile.am): Use explicit creation rule for
58244 fnmatch.h, to avoid AC_CONFIG_LINKS.
58245 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58247 2003-06-07 Bruno Haible <bruno@clisp.org>
58249 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58250 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58251 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58253 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58254 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58257 2003-06-06 Jim Meyering <jim@meyering.net>
58259 Merge from coreutils.
58260 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58261 Consolidate declarations and initializations of *_base* locals.
58263 Merge from coreutils.
58264 This avoids a core dump on systems without GNU putenv,
58265 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58266 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58267 (unsetenv): New static function, from GNU libc.
58268 (rpl_putenv): Use it.
58270 * lib/modechange.c: Remove trailing blanks.
58272 Merge from coreutils.
58273 * lib/fsusage.c: Remove declaration of statfs.
58274 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58276 * lib/posixtm.c: Include <stdbool.h> unconditionally.
58278 2003-06-06 Jim Meyering <jim@meyering.net>
58280 * lib/stdbool_.h: Renamed from stdbool.h.in.
58282 2003-06-06 Jim Meyering <jim@meyering.net>
58283 Bruno Haible <bruno@clisp.org>
58285 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58286 Adjust Makefile.am snippet not to redirect directly to target.
58287 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58289 2003-06-05 Paul Eggert <eggert@twinsun.com>
58291 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58292 mismatch, look in future quarters as well as past. This fixes a
58293 bug when processing fall-backwards gaps immediately after a long
58294 period of daylight-saving time.
58296 * lib/mktime.c: Assume freestanding C89 or better.
58297 (HAVE_LIMITS_H): Remove. Assume it's 1.
58298 (__P): Remove; not used.
58299 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58300 (mktime, not_equal_tm, print_tm, check_result,
58301 main): Use prototypes. Use const * where appropriate.
58302 (main): Fix typo in testing code that uncovered by above changes.
58303 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58305 2003-06-04 Paul Eggert <eggert@twinsun.com>
58307 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
58308 locale.h, localeconv. This merges changes from coreutils.
58310 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58311 It can be removed after the next Autoconf is released.
58312 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58315 2003-06-04 Paul Eggert <eggert@twinsun.com>
58317 * lib/mktime.c: Fix Debian bug 177940
58318 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58319 (localtime_offset): Now long int, not time_t, because we want it
58320 to be guaranteed to be signed. All uses changed.
58321 (__mktime_internal): If overflow would occur when adding offset,
58324 Merge 'human' changes from coreutils. Rewrite to support
58325 locale-specific notations like thousands separators.
58326 * lib/human.c: Simplify authorship notice.
58327 Include human.h immediately after config.h.
58328 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58329 <limits.h>: Do not include, since human.h does.
58330 (SIZE_MAX, UINTMAX_MAX): New macros.
58331 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58332 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58333 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58334 (power_letter): Renamed from suffixes.
58335 (generate_suffix_backwards): Remove.
58336 (adjust_value): Now takes int style (because of human.h changes)
58337 and long double value (for greater precision on some platforms).
58338 (group_number): New function.
58339 (human_readable): Use it. Use integer options, not enum.
58340 Put the options before the sizes in the arg list.
58341 Support all the new options.
58342 The old human_readable function has been removed;
58343 use inttostr.h instead.
58344 (human_readable, default_block_size, humblock):
58345 Use uintmax_t, not int, for block sizes.
58346 (human_readable_inexact, block_size_types): Remove.
58347 (block_size_opts): New constant.
58348 (human_options): Renamed from human_block_size, with new signature
58349 that allows block sizes up to UINTMAX_MAX. All callers changed.
58350 * lib/human.h: Add copyright and authorship notice.
58351 Include <limits.h> and <stdbool.h> unconditionally.
58352 (PARAMS): Remove. All uses removed.
58353 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58354 (enum human_inexact_style): Remove tag; now a nameless enum.
58355 (human_floor, human_ceiling, human_round_to_even): Now have
58356 values 2, 0, 1 rather than -1, 1, 0.
58357 (human_group_digits, human_suppress_point_zero, human_autoscale,
58358 human_base_1024, human_SI, human_B): New constants.
58359 (human_readable_inexact, human_block_size): Remove.
58360 (human_readable): Size args are now uintmax_t, not int.
58361 (human_options): New decl.
58363 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58364 unnecessary now that we assume C89 or better. This change
58365 imported from coreutils.
58367 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58368 arbitrarily. This is the same patch as 2003-05-28, but it got lost
58369 in the 2003-05-30 sync from glibc.
58371 .h files should stand alone, but we shouldn't include <sys/types.h>
58372 if we can get away with just <stddef.h>.
58374 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58375 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58376 rather than <sys/types.h>, as we merely need size_t.
58377 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58379 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58380 Include <stdio.h>, to get FILE.
58381 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58382 memcasecmp.h has included <stddef.h> and all we need is size_t.
58383 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58384 our interface, instead of including <sys/types.h>
58386 2003-06-04 Paul Eggert <eggert@twinsun.com>
58388 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58389 now, as glibc mktime is buggy on non-glibc systems.
58391 2003-06-03 Karl Berry <karl@gnu.org>
58393 * config/config.sub: update from prep.
58395 2003-06-02 Paul Eggert <eggert@twinsun.com>
58398 Fix some minor time-related bugs with POSIX time arguments.
58399 Some valid time stamps were being rejected (notably -1, and
58400 time stamps before 1900 on 64-bit hosts). And some invalid
58401 time stamps were being accepted, e.g. September 31.
58403 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58404 that we can return (time_t) -1 successfully.
58405 * lib/posixtm.c: Likewise.
58406 [HAVE_STDBOOL_H]: Include <stdbool.h>.
58407 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58408 (t): Remove static var.
58409 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58410 of static var. All uses changed.
58411 (year): Do not reject years before 1900; they can occur with
58413 (posix_time_parse): Do not check for out-of-range components;
58414 that is now the caller's responsibility, since our checks were
58415 only approximations.
58416 (posixtime): Use mktime to check for out-of-range components,
58417 since it knows them exactly.
58418 If mktime returns (time_t) -1, check whether an error actually occurred
58419 by invoking localtime on -1.
58420 (main) [TEST_POSIXTIME]: Check for input data errors, and report
58421 posixtime failures better.
58422 Improve the test data (in comments only).
58424 2003-06-02 Karl Berry <karl@gnu.org>
58426 * config/mkinstalldirs (version): new variable.
58427 (--version): new option.
58428 (usage): improve message.
58430 2003-05-30 Karl Berry <karl@gnu.org>
58432 * lib/mktime.c: update from libc.
58434 2003-05-30 Bruno Haible <bruno@clisp.org>
58436 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58437 * config/config.rpath: Upgrade to gettext-0.12.1.
58439 2003-05-30 Bruno Haible <bruno@clisp.org>
58441 * m4/gettext.m4: Upgrade to gettext-0.12.1.
58442 * m4/nls.m4: New file, from gettext-0.12.1.
58443 * m4/po.m4: New file, from gettext-0.12.1.
58444 * m4/progtest.m4: Upgrade to gettext-0.12.1.
58446 2003-05-30 Bruno Haible <bruno@clisp.org>
58448 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58449 * lib/localcharset.h: Likewise.
58450 * lib/localcharset.c: Likewise.
58452 2003-05-29 Karl Berry <karl@gnu.org>
58454 * config/config.rpath: update from gettext.
58456 2003-05-28 Paul Eggert <eggert@twinsun.com>
58458 Assume the headers required for C89 freestanding compilers.
58459 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58460 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58461 * m4/human.m4 (gl_HUMAN): Likewise.
58462 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58463 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58464 * m4/userspec.m4 (gl_USERSPEC): Likewise.
58465 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58466 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58467 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58469 2003-05-28 Paul Eggert <eggert@twinsun.com>
58471 Assume the headers required for C89 freestanding compilers.
58472 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58473 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58474 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58475 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58476 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58477 define, since <limits.h> is guaranteed to do that.
58478 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58479 * lib/exclude.c: Include <stdbool.h> unconditionally.
58480 * lib/tempname.c: Include <stddef.h> unconditionally.
58481 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58482 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58483 <stddef.h> does that.
58484 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58485 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58486 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58488 * lib/xstrtol.c: Likewise.
58489 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58490 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58492 * lib/addext.c (addext): Use assignment rather than cast, to avoid
58493 warnings on some platforms.
58495 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58498 2003-05-26 Jim Meyering <jim@meyering.net>
58500 Merge in a change from coreutils:
58501 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58502 that is guaranteed to be `no'. Use `no_such_member' to indicate
58503 that condition, rather than `-1' which is slightly misleading.
58504 Change the name of the cache variable to have the gl_ prefix.
58505 Prompted by a patch from Richard Dawe for DJGPP.
58507 2003-05-24 Karl Berry <karl@gnu.org>
58509 * config/config.guess: update from prep.
58511 2003-05-22 Karl Berry <karl@gnu.org>
58513 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58515 2003-05-20 Karl Berry <karl@gnu.org>
58517 * config/config.guess: update from prep.
58519 2003-05-18 Karl Berry <karl@gnu.org>
58521 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58522 might actually be set by the user.
58524 * config/depcomp, install-sh, mdate-sh: update from automake.
58526 2003-05-17 Bruno Haible <bruno@clisp.org>
58528 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58529 invalid expansion for AC_EGREP_CPP.
58530 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58531 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58532 Suggested by Akim Demaille <akim@epita.fr> in
58533 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58535 2003-05-12 Jim Meyering <jim@meyering.net>
58537 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58538 the space-padded-by-default conversion specifiers, %e, %k, %l.
58540 2003-05-12 Bruno Haible <bruno@clisp.org>
58542 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58543 the string is longer than 4 KB.
58545 2003-05-11 Karl Berry <karl@gnu.org>
58547 * config/config.{guess,sub}: update from prep.
58549 2003-05-09 Bruno Haible <bruno@clisp.org>
58551 * modules/error: Add m4/strerror_r.m4 to file list.
58553 2003-05-03 Bruno Haible <bruno@clisp.org>
58555 Upgrade to Unicode-4.0.
58556 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58557 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58558 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58559 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58560 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58561 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58562 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58563 Change width of U+E0100..U+E01EF from 1 to 0.
58565 2003-04-25 Jim Meyering <jim@meyering.net>
58567 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58568 of type size_t, not int.
58570 2003-04-25 Bruno Haible <bruno@clisp.org>
58572 * lib/copy-file.c: Include <stddef.h>, for size_t.
58574 2003-04-21 Paul Eggert <eggert@twinsun.com>
58576 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58577 code which expansion is under static control. Patch imported from
58578 Akim Demaille's patch to Bison; see
58579 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58581 2003-04-14 Bruno Haible <bruno@clisp.org>
58583 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58585 2003-04-11 Jim Meyering <jim@meyering.net>
58587 Merge changes from Coreutils.
58589 2003-03-22 Jim Meyering <jim@meyering.net>
58591 * lib/strftime.c (widen): Cast alloca return value to proper type.
58593 2003-01-19 Ulrich Drepper <drepper@redhat.com>
58596 * lib/strftime.c (my_strftime): Handle very large width
58597 specifications for numeric values correctly. Improve checks for
58600 2003-01-19 Jim Meyering <jim@meyering.net>
58602 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58604 (nl_get_alt_digit) [! defined my_strftime]: Define.
58605 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58606 _nl_get_alt_digit and _nl_get_walt_digit.
58608 * lib/strftime.c (my_strftime): Merge in locale-related changes from
58609 libc. These changes have no effect outside of _LIBC.
58611 2003-04-10 Bruno Haible <bruno@clisp.org>
58613 * modules/findprog: New file.
58614 * MODULES.html.sh (func_all_modules): Add it.
58616 2003-04-10 Bruno Haible <bruno@clisp.org>
58618 * m4/findprog.m4: New file.
58619 * m4/eaccess.m4: New file.
58621 2003-04-10 Bruno Haible <bruno@clisp.org>
58623 * lib/findprog.h: New file, from GNU gettext.
58624 * lib/findprog.c: New file, from GNU gettext.
58626 2003-04-05 Jim Meyering <jim@meyering.net>
58628 Merge changes from Coreutils.
58630 * lib/exclude.h (PARAMS): Remove definition and uses.
58631 * lib/exclude.c: Remove uses of `PARAMS'.
58633 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58634 Add test-cases for DOS filenames. Declare program_name.
58635 (main): Set up program_name. Patch by Rich Dawe.
58637 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58639 Use mntctl's return value to drive the entry-processing loop, since
58640 we can't rely on the value of the vmt_length member in the last
58641 entry. On some systems doing so could result in exhausting
58642 virtual memory. Based in part on a patch from Mike Jetzer.
58644 2003-04-04 Bruno Haible <bruno@clisp.org>
58646 * modules/linebreak: New file.
58647 * MODULES.html.sh (func_all_modules): Add it.
58649 2003-04-04 Bruno Haible <bruno@clisp.org>
58651 * m4/linebreak.m4: New file.
58653 2003-04-04 Bruno Haible <bruno@clisp.org>
58655 * lib/linebreak.h: New file, from GNU gettext.
58656 * lib/linebreak.c: New file, from GNU gettext with slight
58658 * lib/lbrkprop.h: New file, from GNU gettext.
58660 2003-04-03 Bruno Haible <bruno@clisp.org>
58662 * modules/utf8-ucs4: New file.
58663 * modules/utf16-ucs4: New file.
58664 * modules/ucs4-utf8: New file.
58665 * modules/ucs4-utf16: New file.
58666 * MODULES.html.sh (func_all_modules): Add them.
58668 2003-04-03 Bruno Haible <bruno@clisp.org>
58670 * m4/utf-ucs4.m4: New file.
58671 * m4/ucs4-utf.m4: New file.
58673 2003-04-03 Bruno Haible <bruno@clisp.org>
58675 * lib/utf8-ucs4.h: New file, from GNU gettext.
58676 * lib/utf16-ucs4.h: New file, from GNU gettext.
58677 * lib/ucs4-utf8.h: New file, from GNU gettext.
58678 * lib/ucs4-utf16.h: New file, from GNU gettext.
58680 2003-04-02 Bruno Haible <bruno@clisp.org>
58682 * modules/binary-io: New file.
58683 * MODULES.html.sh (func_all_modules): Add it.
58685 2003-04-02 Bruno Haible <bruno@clisp.org>
58687 * lib/binary-io.h: New file, from GNU gettext.
58689 2003-04-01 Bruno Haible <bruno@clisp.org>
58691 * modules/pathname: New file.
58692 * MODULES.html.sh (func_all_modules): Add it.
58694 2003-04-01 Bruno Haible <bruno@clisp.org>
58696 * lib/pathname.h: New file, from GNU gettext.
58697 * lib/concatpath.c: New file, from GNU gettext.
58699 2003-03-30 Bruno Haible <bruno@clisp.org>
58701 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58703 2003-03-30 Bruno Haible <bruno@clisp.org>
58705 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58706 function chown() doesn't exist.
58708 2003-03-28 Bruno Haible <bruno@clisp.org>
58710 * modules/copy-file: New file.
58711 * MODULES.html.sh (func_all_modules): Add it.
58713 2003-03-28 Bruno Haible <bruno@clisp.org>
58715 * m4/copy-file.m4: New file.
58717 2003-03-28 Bruno Haible <bruno@clisp.org>
58719 * lib/copy-file.h: New file, from GNU gettext.
58720 * lib/copy-file.c: New file, from GNU gettext.
58722 2003-03-18 Jim Meyering <jim@meyering.net>
58724 * lib/quote.c (quote_n): Fix typo in comment.
58726 2003-03-18 Bruno Haible <bruno@clisp.org>
58728 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58730 * m4/onceonly_2_57.m4: Likewise.
58732 2003-03-17 Bruno Haible <bruno@clisp.org>
58734 * m4/onceonly.m4: Require autoconf 2.54 or newer.
58735 (m4_quote): Remove macro.
58736 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58738 2003-03-14 Jim Meyering <jim@meyering.net>
58740 Merge changes from Coreutils.
58741 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58742 to be const, in order to avoid warnings.
58743 (obstack_room): Likewise.
58744 (obstack_empty_p): Likewise.
58746 2003-03-14 Bruno Haible <bruno@clisp.org>
58748 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58749 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58751 2003-03-13 Paul Eggert <eggert@twinsun.com>
58753 Merge changes from Bison.
58754 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58755 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58756 when compiling Bison 1.875's `bitset bset = obstack_alloc
58757 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
58758 * lib/hash.c: Include <stdbool.h> unconditionally.
58760 2003-03-13 Paul Eggert <eggert@twinsun.com>
58762 * m4/onceonly.m4 (m4_quote): New macro.
58763 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58764 Quote AC_FOREACH variable-expansions properly.
58766 2003-03-13 Paul Eggert <eggert@twinsun.com>
58768 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58770 2003-03-09 Paul Eggert <eggert@twinsun.com>
58772 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58773 Reported by Bruce Becker; see:
58774 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58776 2003-03-03 Paul Eggert <eggert@twinsun.com>
58777 Bruno Haible <bruno@clisp.org>
58779 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58780 Reported by John Hughes, see
58781 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58783 2003-02-20 Bruno Haible <bruno@clisp.org>
58785 * MODULES.html.sh (func_all_modules): Add poll.
58787 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58789 * modules/poll: New file.
58791 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58793 * lib/poll_.h: New file.
58794 * lib/poll.c: New file.
58796 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58798 * m4/poll.m4: New file.
58800 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58802 * modules/mathl: New file.
58804 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58806 * lib/mathl.h: New file.
58807 * lib/acosl.c: New file.
58808 * lib/asinl.c: New file.
58809 * lib/atanl.c: New file.
58810 * lib/ceill.c: New file.
58811 * lib/cosl.c: New file.
58812 * lib/expl.c: New file.
58813 * lib/floorl.c: New file.
58814 * lib/frexpl.c: New file.
58815 * lib/ldexpl.c: New file.
58816 * lib/logl.c: New file.
58817 * lib/sincosl.c: New file.
58818 * lib/sinl.c: New file.
58819 * lib/sqrtl.c: New file.
58820 * lib/tanl.c: New file.
58821 * lib/trigl.c: New file.
58822 * lib/trigl.h: New file.
58824 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58826 * m4/mathl.m4: New file.
58828 2003-02-18 Bruno Haible <bruno@clisp.org>
58830 * MODULES.html.sh (func_all_modules): Add mathl.
58832 2003-02-17 Bruno Haible <bruno@clisp.org>
58834 * modules/mkdtemp: New module.
58835 * MODULES.html.sh (func_all_modules): Add it.
58837 2003-02-17 Bruno Haible <bruno@clisp.org>
58839 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58841 2003-02-17 Bruno Haible <bruno@clisp.org>
58843 * lib/mkdtemp.h: New file, from GNU gettext.
58844 * lib/mkdtemp.c: New file, from GNU gettext.
58846 2003-02-02 Jim Meyering <jim@meyering.net>
58848 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58851 2003-01-31 Bruno Haible <bruno@clisp.org>
58853 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58855 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58857 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58859 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58862 2003-01-31 Bruno Haible <bruno@clisp.org>
58864 * lib/rename.c: #undef rename before defining rpl_rename.
58865 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58867 2003-01-30 Bruno Haible <bruno@clisp.org>
58869 * modules/vasnprintf, modules/vasprintf: New modules.
58870 * MODULES.html.sh (func_all_modules): Add them.
58872 2003-01-30 Bruno Haible <bruno@clisp.org>
58874 * m4/signed.m4: New file, from GNU gettext.
58875 * m4/longdouble.m4: New file, from GNU gettext.
58876 * m4/wchar_t.m4: New file, from GNU gettext.
58877 * m4/wint_t.m4: New file, from GNU gettext.
58878 * m4/vasnprintf.m4: New file.
58879 * m4/vasprintf.m4: New file.
58881 2003-01-30 Bruno Haible <bruno@clisp.org>
58883 * lib/printf-args.h: New file, from GNU gettext.
58884 * lib/printf-args.c: New file, from GNU gettext.
58885 * lib/printf-parse.h: New file, from GNU gettext.
58886 * lib/printf-parse.c: New file, from GNU gettext.
58887 * lib/vasnprintf.h: New file, from GNU gettext.
58888 * lib/vasnprintf.c: New file, from GNU gettext.
58889 * lib/asnprintf.c: New file, from GNU gettext.
58890 * lib/vasprintf.h: New file, from GNU gettext with modifications.
58891 * lib/vasprintf.c: New file, from GNU gettext.
58892 * lib/asprintf.c: New file, from GNU gettext.
58894 2003-01-29 Bruno Haible <bruno@clisp.org>
58896 * modules/stpncpy: New module.
58897 * MODULES.html.sh (func_all_modules): Add it.
58899 2003-01-29 Bruno Haible <bruno@clisp.org>
58901 * m4/stpncpy.m4: New file.
58903 2003-01-29 Bruno Haible <bruno@clisp.org>
58905 * lib/stpncpy.h: New file, from GNU gettext with modifications.
58906 * lib/stpncpy.c: New file, from GNU gettext with modifications.
58908 2003-01-28 Bruno Haible <bruno@clisp.org>
58910 * modules/c-ctype: New module.
58911 * MODULES.html.sh (func_all_modules): Add it.
58913 2003-01-28 Bruno Haible <bruno@clisp.org>
58915 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58917 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58920 2003-01-27 Bruno Haible <bruno@clisp.org>
58922 * modules/xsetenv: New module.
58923 * MODULES.html.sh (func_all_modules): Add it.
58925 2003-01-27 Bruno Haible <bruno@clisp.org>
58927 * lib/xsetenv.h: New file, from GNU gettext.
58928 * lib/xsetenv.c: New file, from GNU gettext.
58930 2003-01-23 Jim Meyering <jim@meyering.net>
58932 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58933 from working on systems without dirfd (at least Irix and OSF1/Tru64).
58935 2003-01-23 Bruno Haible <bruno@clisp.org>
58937 * modules/minmax: New module.
58938 * MODULES.html.sh (func_all_modules): Add it.
58940 2003-01-23 Bruno Haible <bruno@clisp.org>
58942 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58945 2003-01-22 Bruno Haible <bruno@clisp.org>
58947 * modules/exit: New module.
58948 * MODULES.html.sh (func_all_modules): Add it.
58950 2003-01-22 Bruno Haible <bruno@clisp.org>
58952 * lib/exit.h: New file, from GNU gettext.
58954 2003-01-19 Bruno Haible <bruno@clisp.org>
58956 * gnulib-tool: Recognize option --extract-maintainer.
58957 (func_get_maintainer): New function.
58958 * modules/*: Add Maintainer entry.
58960 2003-01-16 Jim Meyering <jim@meyering.net>
58962 * m4/regex.m4: The `regex' struct is both input and output.
58963 Initialize it before each use. Patch by Tim Waugh.
58965 2003-01-16 Bruno Haible <bruno@clisp.org>
58967 * MODULES.html.sh: Add a table of contents. Add the module name as
58968 leftmost column. Add hyperlinks.
58970 2003-01-15 Bruno Haible <bruno@clisp.org>
58972 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58974 2003-01-15 Bruno Haible <bruno@clisp.org>
58976 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58977 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58980 2003-01-15 Bruno Haible <bruno@clisp.org>
58982 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58984 2003-01-15 Bruno Haible <bruno@clisp.org>
58986 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58987 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58989 2003-01-14 Jim Meyering <jim@meyering.net>
58991 * lib/same.c (same_name): Tweak a comment.
58993 2003-01-14 Bruno Haible <bruno@clisp.org>
58995 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58996 when a string comparison is sufficient.
58998 2003-01-14 Bruno Haible <bruno@clisp.org>
59000 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59003 2003-01-14 Bruno Haible <bruno@clisp.org>
59005 * lib/hash-pjw.c: Add comment about low quality of this function.
59007 2003-01-13 Bruno Haible <bruno@clisp.org>
59009 * modules/stpcpy: Distribute lib/stpcpy.h.
59010 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59012 2003-01-13 Bruno Haible <bruno@clisp.org>
59014 * modules/*: Add a description.
59015 * modules/strpbrk: Fix Makefile.am snippet.
59016 * modules/strtoimax: Fix dependencies.
59017 * modules/strtoumax: Likewise.
59019 2003-01-13 Bruno Haible <bruno@clisp.org>
59021 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59022 * modules/alloca (Makefile.am): All object files depend on alloca.h.
59023 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59025 2003-01-13 Bruno Haible <bruno@clisp.org>
59027 * gnulib-tool (func_create_testdir): Store config/* files in the main
59029 * config.rpath: Move to ...
59030 * config/config.rpath: ... here.
59031 * modules/gettext: Contains config/config.rpath, not config.rpath.
59032 * modules/iconv: Likewise.
59034 2003-01-12 Paul Eggert <eggert@twinsun.com>
59036 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59037 to avoid collisions with libcurses and libreadline.
59039 * m4/getstr.m4: Remove.
59040 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59042 2003-01-12 Paul Eggert <eggert@twinsun.com>
59044 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59045 to avoid collisions with libcurses and libreadline.
59047 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59048 * lib/getstr.h, getstr.c: Remove.
59049 * lib/getline.c: Include "getline.h", to check interface.
59050 Move body of old getstr.c here: this defines MIN_CHUNK and
59051 declares getdelim2, which is renamed from getstr.
59052 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59054 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59056 * lib/linebuffer.h: Likewise.
59057 (readline): Remove backward-compatibility macro.
59059 2003-01-12 Paul Eggert <eggert@twinsun.com>
59061 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59062 to avoid collisions with libcurses and libreadline.
59064 * MODULES.html.sh: Remove getstr.
59065 * modules/getline: Depend on unlocked-io, not getstr.
59067 2003-01-12 Jim Meyering <jim@meyering.net>
59069 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
59071 2003-01-10 Bruno Haible <bruno@clisp.org>
59073 * modules/alloca: Change Makefile.am requirements. Simplify Include
59074 requirements. Add lib/alloca_.h to file list.
59076 2003-01-10 Bruno Haible <bruno@clisp.org>
59078 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59080 2003-01-10 Bruno Haible <bruno@clisp.org>
59082 * lib/alloca_.h: New file.
59083 * lib/getdate.y: Unconditionally include alloca.h.
59084 * lib/makepath.c: Likewise.
59085 * lib/setenv.c: Likewise.
59086 * lib/userspec.c: Likewise.
59088 2003-01-09 Karl Berry <karl@gnu.org>
59090 * MODULES.html.sh: include `dirname $0` in PATH, to find
59093 2003-01-09 Bruno Haible <bruno@clisp.org>
59095 * modules/stdbool: Change configure.ac, Makefile.am requirements.
59096 Simplify Include requirements. Add lib/stdbool.h.in to file list.
59098 2003-01-09 Bruno Haible <bruno@clisp.org>
59100 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59102 2003-01-09 Bruno Haible <bruno@clisp.org>
59104 * lib/stdbool.h.in: New file.
59106 2003-01-09 Bruno Haible <bruno@clisp.org>
59108 * gnulib-tool (func_all_modules): Ignore files ending in ~.
59109 * MODULES.html.sh: Likewise.
59111 2003-01-08 Jim Meyering <jim@meyering.net>
59113 * lib/full-write.c: Undefine and define-away `const' after inclusion
59114 of errno.h, not before. Suggestion from Bruno Haible.
59116 2003-01-08 Bruno Haible <bruno@clisp.org>
59118 * modules/full-read: Depend on full-write.
59120 2003-01-08 Bruno Haible <bruno@clisp.org>
59122 * lib/safe-read.c: Include specification header first, to ensure its
59124 * lib/full-write.c: Likewise.
59126 2003-01-07 Jim Meyering <jim@meyering.net>
59128 * lib/full-write.c: Rework so that it may serve to define full_read,
59130 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59132 2003-01-07 Bruno Haible <bruno@clisp.org>
59134 * lib/strtoimax.c: Include <stdint.h> as an alternative to
59136 * lib/xstrtol.h: Likewise.
59137 * lib/xstrtoimax.c: Likewise.
59138 * lib/xstrtoumax.c: Likewise.
59139 * lib/human.h: Likewise.
59141 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59142 on systems that have <inttypes.h> but not <stdint.h>.
59144 2003-01-07 Bruno Haible <bruno@clisp.org>
59146 * MODULES.html.sh: Add copyright notice.
59147 (missed_files): Omit CVS directory entries.
59148 (func_module): Make it work with sed-3.02.
59149 * MODULES.txt: Remove file.
59151 2003-01-06 Jim Meyering <jim@meyering.net>
59153 * lib/version-etc.c: Update year in translatable copyright string.
59155 2003-01-03 Karl Berry <karl@gnu.org>
59157 * config/config.{guess,sub}: update from prep.
59159 2003-01-02 Karl Berry <karl@gnu.org>
59161 * doc/COPYING.DOC: belatedly updated to 1.2.
59163 2003-01-01 Karl Berry <karl@gnu.org>
59165 * gnulib-tool (func_verify_module): report module name $module in
59166 error message, not $1.
59167 * gnulib-tool (create-testdir): don't complain if destdir couldn't
59168 be created, only if it doesn't exist.
59169 * gnulib-tool (last_checkin_date): don't expand the $Date here.
59171 2002-12-31 Paul Eggert <eggert@twinsun.com>
59173 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59175 2002-12-31 Paul Eggert <eggert@twinsun.com>
59177 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59178 memcmp if strcoll doesn't work.
59180 2002-12-31 Bruno Haible <bruno@clisp.org>
59182 * lib/utime.c (utime_null): No need to call ftruncate if the file was
59185 2002-12-31 Bruno Haible <bruno@clisp.org>
59187 * lib/memcoll.c (STRCOLL): New macro.
59190 2002-12-31 Bruno Haible <bruno@clisp.org>
59192 * lib/localcharset.h: New file.
59193 * lib/localcharset.c: Include it.
59194 * lib/unicodeio.c: Likewise.
59196 2002-12-31 Bruno Haible <bruno@clisp.org>
59198 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59199 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59201 2002-12-31 Bruno Haible <bruno@clisp.org>
59203 * lib/getline.h: Include <stddef.h>, for size_t.
59205 * lib/unicodeio.h: Include <stddef.h>, for size_t.
59206 * lib/unicodeio.c: Don't include <stddef.h>.
59208 2002-12-31 Bruno Haible <bruno@clisp.org>
59210 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59213 2002-12-24 Karl Berry <karl@gnu.org>
59215 * config/config.guess: update from prep.
59217 2002-12-24 Bruno Haible <bruno@clisp.org>
59219 General infrasructure.
59220 * m4/README: Rewritten.
59221 * m4/onceonly.m4: New file.
59222 * m4/onceonly_2_57.m4: New file.
59225 * m4/atexit.m4: New file.
59228 * m4/strtod.m4: New file.
59231 * m4/strtol.m4: New file.
59234 * m4/strtoul.m4: New file.
59237 * m4/memchr.m4: New file.
59240 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59241 (jm_FUNC_MEMCMP): Invoke it.
59244 * m4/memcpy.m4: New file.
59247 * m4/memmove.m4: New file.
59250 * m4/memset.m4: New file.
59253 * m4/strcspn.m4: New file.
59256 * m4/strpbrk.m4: New file.
59259 * m4/strstr.m4: New file.
59262 * m4/strerror.m4: New file.
59265 * m4/mktime.m4: Renamed from jm-mktime.m4.
59266 (gl_PREREQ_MKTIME): New macro.
59267 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59270 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59271 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59272 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59275 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59276 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59277 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59280 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59281 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59282 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59284 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59287 * m4/xalloc.m4: New file.
59290 * m4/alloca.m4: New file.
59293 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59294 (jm_FUNC_PUTENV): Invoke it.
59297 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59298 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59299 when invoked twice.
59300 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59304 * m4/memrchr.m4: New file.
59307 * m4/stpcpy.m4: New file.
59310 * m4/strcase.m4: New file.
59313 * m4/strdup.m4: New file.
59316 * m4/strnlen.m4: New file.
59319 * m4/strndup.m4: New file.
59322 * m4/xstrtod.m4: New file.
59325 * m4/xstrtol.m4: New file.
59328 * m4/getdate.m4: New file.
59330 Module unlocked-io.
59331 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59332 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59333 * m4/jm-glibc-io.m4n: Remove file.
59335 Module long-options.
59336 * m4/long-options.m4: New file.
59339 * m4/md5.m4: New file.
59342 * m4/sha.m4: New file.
59345 * m4/getstr.m4: New file.
59348 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59349 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59350 <sys/types.h>, for size_t. Use the function name gnu_getline, not
59351 simply getline. Infoke gl_PREREQ_GETLINE.
59354 * m4/obstack.m4: New file.
59357 * m4/hash.m4: New file.
59360 * m4/readtokens.m4: New file.
59363 * m4/strverscmp.m4: New file.
59366 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59370 * m4/strtoll.m4: New file.
59373 * m4/strtoull.m4: New file.
59376 * m4/strtoimax.m4: New file.
59379 * m4/strtoumax.m4: New file.
59382 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59383 jm_AC_PREREQ_XSTRTOIMAX.
59384 Moved the strtol prerequisites to strtol.m4.
59385 Moved the strtoll prerequisites to strtoll.m4.
59386 Moved the strtoimax prerequisites to strtoimax.m4.
59389 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59390 jm_AC_PREREQ_XSTRTOUMAX.
59391 Moved the strtoul prerequisites to strtoul.m4.
59392 Moved the strtoull prerequisites to strtoull.m4.
59393 Moved the strtoumax prerequisites to strtoumax.m4.
59396 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59397 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59400 * m4/dup2.m4: New file.
59403 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59404 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59407 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59408 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59410 Module gettimeofday.
59411 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59412 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59413 gl_PREREQ_GETTIMEOFDAY.
59416 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59417 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59420 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59421 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59422 jm_AC_TYPE_UINTMAX_T.
59423 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59426 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59427 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59430 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59431 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59434 * m4/timespec.m4 (gl_TIMESPEC): New macro.
59435 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59436 * m4/st_mtim.m4: Indentation.
59439 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59440 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59441 gl_PREREQ_NANOSLEEP.
59444 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59445 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59446 (gl_REGEX): New macro.
59449 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59450 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59453 * m4/rmdir.m4: New file.
59456 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59457 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59458 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59461 * m4/dirname.m4: New file.
59464 * m4/getopt.m4: New file.
59466 Module unistd-safer.
59467 * m4/unistd-safer.m4: New file.
59470 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59472 (gl_PREREQ_FNMATCH_EXTRA): New macro.
59473 (gl_FUNC_FNMATCH_POSIX): New macro.
59474 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59475 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59479 * m4/exclude.m4: New file.
59482 * m4/human.m4: New file.
59488 * m4/backupfile.m4: New file.
59489 * m4/d-ino.m4: Indentation.
59492 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59493 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59494 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59497 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59501 * m4/euidaccess.m4: New file.
59504 * m4/file-type.m4: New file.
59507 * m4/fileblocks.m4: New file.
59510 * m4/filemode.m4: New file.
59513 * m4/isdir.m4: New file.
59516 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59517 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59520 * m4/makepath.m4: New file.
59523 * m4/modechange.m4: New file.
59526 * m4/mountlist.m4: New file.
59527 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59530 Module path-concat.
59531 * m4/path-concat.m4: New file.
59534 * m4/pathmax.m4: New file.
59537 * m4/same.m4: New file.
59540 * m4/save-cwd.m4: New file.
59543 * m4/savedir.m4: New file.
59546 * m4/xgetcwd.m4: New file.
59547 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59550 * m4/xreadlink.m4: New file.
59553 * m4/safe-read.m4: New file.
59556 * m4/safe-write.m4: New file.
59559 * m4/closeout.m4: New file.
59561 Module stdio-safer.
59562 * m4/stdio-safer.m4: New file.
59565 * m4/getpass.m4: New file.
59568 * m4/getugroups.m4: New file.
59570 Module group-member.
59571 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59572 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59575 * m4/idcache.m4: New file.
59578 * m4/userspec.m4: New file.
59581 * m4/clock_time.m4: New file.
59582 * m4/gettime.m4: New file.
59585 * m4/settime.m4: New file.
59588 * m4/posixtm.m4: New file.
59590 Module gethostname.
59591 * m4/gethostname.m4: New file.
59594 * m4/canon-host.m4: New file.
59597 * m4/codeset.m4: New file, from gettext-0.11.5.
59598 * m4/gettext.m4: New file, from gettext-0.11.5.
59599 * m4/glibc21.m4: New file, from gettext-0.11.5.
59600 * m4/iconv.m4: New file, from gettext-0.11.5.
59601 * m4/intdiv0.m4: New file, from gettext-0.11.5.
59602 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59603 * m4/inttypes.m4: New file, from gettext-0.11.5.
59604 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59605 * m4/isc-posix.m4: New file, from gettext-0.11.5.
59606 * m4/lcmessage.m4: New file, from gettext-0.11.5.
59607 * m4/lib-ld.m4: New file, from gettext-0.11.5.
59608 * m4/lib-link.m4: New file, from gettext-0.11.5.
59609 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59610 * m4/progtest.m4: New file, from gettext-0.11.5.
59611 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59612 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59613 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59615 Module localcharset.
59616 * m4/localcharset.m4: New file.
59618 Module hard-locale.
59619 * m4/hard-locale.m4: New file.
59622 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59624 * m4/mbrtowc.m4: Add comment.
59627 * m4/memcasecmp.m4: New file.
59630 * m4/memcoll.m4: New file.
59633 * m4/unicodeio.m4: New file.
59636 * m4/rpmatch.m4: New file.
59639 * m4/yesno.m4: New file.
59642 * m4/exitfail.m4: New file.
59645 * m4/c-stack.m4 (gl_C_STACK): New macro.
59646 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59649 * m4/error.m4 (gl_ERROR): New macro.
59650 (jm_PREREQ_ERROR): Use onceonly macros.
59653 * m4/fatal.m4: New file.
59656 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59657 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59659 Module getpagesize.
59660 * m4/getpagesize.m4: New file.
59662 Module getusershell.
59663 * m4/getusershell.m4: New file.
59666 * m4/physmem.m4: New file.
59669 * m4/posixver.m4: New file.
59672 * m4/quotearg.m4: New file.
59675 * m4/quote.m4: New file.
59678 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59681 * m4/sig2str.m4: New file.
59684 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59686 * m4/intmax_t.m4: New file.
59687 * m4/d-type.m4: Indentation.
59688 * m4/jm-macros.m4: Update.
59689 * m4/prereq.m4 (jm_PREREQ): Update.
59690 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59691 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59692 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59693 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59694 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59695 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59696 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59697 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59698 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59699 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59700 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59701 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59702 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59703 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59704 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59705 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59706 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59707 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59708 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59710 2002-12-24 Bruno Haible <bruno@clisp.org>
59712 * MODULES.txt: Update according to m4/ changes.
59715 * config.rpath: New file, from gettext-0.11.5.
59717 * modules/*: New module descriptions.
59718 * gnulib-tool: New file.
59719 * MODULES.html.sh: New file.
59721 2002-12-21 Karl Berry <karl@gnu.org>
59723 * doc/fdl.texi: update to version 1.2.
59725 2002-12-19 Karl Berry <karl@gnu.org>
59727 * config/config.guess: update from prep.
59729 2002-12-18 Bruno Haible <bruno@clisp.org>
59731 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59732 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59734 2002-12-17 Bruno Haible <bruno@clisp.org>
59736 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59737 stdlib.h, string.h.
59739 2002-12-17 Bruno Haible <bruno@clisp.org>
59741 * lib/canon-host.c (strdup): Remove unused declaration.
59743 * lib/fsusage.c: Include full_read.h.
59744 (get_fs_usage): Use full_read instead of safe_read.
59746 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59748 2002-12-12 Karl Berry <karl@gnu.org>
59750 * config/config.guess: update from prep.
59752 2002-12-11 Bruno Haible <bruno@clisp.org>
59754 * m4/setenv.m4: New file, from gettext-0.11.5.
59756 2002-12-11 Bruno Haible <bruno@clisp.org>
59758 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59760 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59763 2002-12-11 Bruno Haible <bruno@clisp.org>
59765 * setenv.c (alloca): Fall back to malloc.
59766 (freea): New macro.
59767 (setenv): Use freea() to free memory allocated with alloca().
59769 2002-11-13 Bruno Haible <bruno@clisp.org>
59771 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59772 function declarations.
59773 * unsetenv.c (unsetenv): Likewise.
59775 2002-03-04 Bruno Haible <bruno@clisp.org>
59777 Portability to AIX 4.3.3.
59778 * unsetenv.c: New file, extracted from setenv.c.
59779 * setenv.c: Move the unsetenv() function to unsetenv.c.
59781 2001-12-20 Bruno Haible <bruno@clisp.org>
59783 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59784 use malloc instead. For SunOS 4.
59786 2001-12-11 Bruno Haible <bruno@clisp.org>
59788 * setenv.c: Declare alloca.
59789 (compar_fn_t): New typedef.
59790 (KNOWN_VALUE, STORE_VALUE): Use it.
59792 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59795 2002-12-10 Paul Eggert <eggert@twinsun.com>
59797 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59798 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59799 Choose values that are less likely to collide with system fnmatch
59801 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59802 defined (e.g., a pure POSIX system).
59803 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59804 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59806 2002-12-06 Paul Eggert <eggert@twinsun.com>
59808 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59809 a pain in practice to deal with generated m4 files. This change
59810 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59812 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59813 and jm-glibc-io.m4, as they are no longer a special case.
59814 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59815 kludge and the auto-generation stuff. Check only whether the
59816 functions are declared, not whether they exist, since older hosts
59817 that don't declare the functions can't use the optimization anyway.
59819 2002-12-06 Jim Meyering <jim@meyering.net>
59821 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59823 Merge in changes from libc's misc/error.c, in preparation
59824 for the merge of gnulib's changes back into libc.
59826 * lib/error.c (_): Define only if not already defined.
59827 Move definition to follow all #include directives.
59828 Include unlocked-io.h only if !_LIBC.
59829 [_LIBC]: Include <libio/libioP.h>.
59830 [USE_IN_LIBIO]: Include <libio/iolibio.h>
59831 (fflush): Tweak definition to use INTUSE.
59834 2002-12-05 Paul Eggert <eggert@twinsun.com>
59836 * lib/alloca.c [defined emacs]: Include "lisp.h".
59837 (xalloc_die) [defined emacs]: New macro.
59838 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59839 [! defined emacs]: Include <xalloc.h>.
59840 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59841 (pointer): Typedef to POINTER_TYPE *.
59842 (malloc): Remove decl; we now always use xmalloc.
59843 (alloca): Use old-style definition, since Emacs needs this.
59844 Check for arithmetic overflow when computing combined size.
59846 2002-12-04 Paul Eggert <eggert@twinsun.com>
59848 Do not generate unlocked-io.h automatically, since it's easier to
59849 maintain it by hand.
59851 * lib/unlocked-io.h: New file, from GNU diffutils,
59852 but with proper copyright notice and attribution.
59853 * lib/gen-uio: Remove.
59854 * lib/Makefile.am: Add copyright notice.
59855 (libfetish_a_SOURCES): Add unlocked-io.h.
59856 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59857 (DISTCLEANFILES, io_functions): Remove macros.
59858 (EXTRA_DIST): Remove gen_uio.
59859 (unlocked-io.h): Remove rule.
59861 2002-12-04 Jim Meyering <jim@meyering.net>
59863 Reflect the fact that stat.c and lstat.c are no longer generated.
59864 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59865 (DISTCLEANFILES): Likewise.
59866 (EXTRA_DIST): Likewise.
59867 (all_local): Don't depend on stat.c or lstat.c.
59868 (stat.c, lstat.c): Remove rules.
59869 (EXTRA_DIST): Remove xstat.in.
59871 * lib/xstat.in: Remove file. Contents moved into stat.c.
59872 * lib/stat.c: New file. Contents mostly from xstat.in.
59873 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59874 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59876 * lib/safe-read.c: Rework so that it may serve to define safe_write,
59878 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59880 2002-12-03 Jim Meyering <jim@meyering.net>
59882 * lib/safe-read.c, safe-write.c: Change variable names and comments,
59883 but not semantics, to minimize the differences between these two files.
59884 (safe_read): Change comment to mention SAFE_READ_ERROR.
59886 * lib/safe-read.c (IS_EINTR): Define.
59887 (safe_read): Use IS_EINTR in place of in-function cpp directives.
59889 2002-12-02 Jim Meyering <jim@meyering.net>
59891 * lib/safe-read.c (EINTR): Define.
59892 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59893 (INT_MAX): Provide fallback.
59894 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59896 * lib/safe-read.h (SAFE_READ_ERROR): Define.
59898 2002-12-02 Bruno Haible <bruno@clisp.org>
59900 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59901 Define, taken from safe-read.c.
59902 (INT_MAX): Provide fallback.
59903 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59904 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59906 * lib/safe-read.c (EINTR): Remove definition.
59907 (safe_read): Don't use EINTR if it is absent.
59909 2002-12-01 Jim Meyering <jim@meyering.net>
59911 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59913 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59915 2002-11-27 Paul Eggert <eggert@twinsun.com>
59917 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59918 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59919 with `if (! (value < limit)) abort ();', for readability.
59921 2002-11-26 Karl Berry <karl@gnu.org>
59923 * lib/strdup.c: copy from libc again, with jim's ok.
59924 * lib/.cppi-disable: re-add strdup.c
59926 2002-11-25 Karl Berry <karl@gnu.org>
59928 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59929 instead of "strtol.c".
59931 2002-11-25 Karl Berry <karl@gnu.org>
59933 * config/install-sh: update from automake for variable quoting, $0 in
59936 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59937 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59940 2002-11-25 Jim Meyering <jim@meyering.net>
59942 * lib/mktime.c: Sync from libc, now that it has the latest fix.
59944 2002-11-24 Karl Berry <karl@gnu.org>
59946 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59947 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59949 2002-11-24 Jim Meyering <jim@meyering.net>
59951 Update from coreutils:
59953 * lib/mktime.c: Merge in changes from libc.
59955 Avoid a link-time failure on some Linux systems.
59956 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59958 (__mon_yday): Declare with the STATIC attribute.
59959 (__mktime_internal): Likewise.
59960 Based on a report from Greg Schafer.
59962 2002-11-23 Jim Meyering <jim@meyering.net>
59964 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59965 Use `unsigned', not `int', as type of index.
59967 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59969 * lib/fsusage.c: Remove unneeded parentheses around operands of
59972 2002-11-22 Paul Eggert <eggert@twinsun.com>
59974 * lib/quotearg.h: Allow multiple inclusion by surrounding with
59975 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
59976 so that we can be included first.
59977 (PARAMS): Remove; we now assume C89 or later. All uses removed.
59978 * lib/quotearg.c: Include quotearg.h immediately after config.h.
59979 No need to include stddef.h or sys/types.h any more.
59980 Surround local include files with "", not "<>".
59981 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59982 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59983 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59984 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59985 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59986 (ISPRINT): Remove; no longer needed now that we assume C89.
59988 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59991 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59992 quotearg_char): Use SIZE_MAX rather than
59993 (size_t) -1 when we are talking about "infinity".
59995 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59997 2002-11-22 Paul Eggert <eggert@twinsun.com>
59999 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60000 hint that one should use `if (! x) abort ();' rather than `assert
60001 (x);', and anyway it's one less thing to worry about configuring.
60002 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60003 hash_rehash, hash_insert): Use abort rather than assert.
60005 2002-11-22 Bruno Haible <bruno@clisp.org>
60007 * lib/safe-read.h: Assume C89. Add comments.
60008 (safe_read): Change return type to size_t.
60009 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60010 byte counts > SSIZE_MAX correctly.
60011 * lib/safe-write.h: New file.
60012 * lib/safe-write.c: New file.
60013 * lib/full-read.h: New file.
60014 * lib/full-read.c: New file.
60015 * lib/full-write.h: Assume C89. Add comments.
60016 * lib/full-write.c: Include safe-write.h.
60017 (full_write): Rewritten to use safe_write.
60018 Suggested by Jim Meyering and Paul Eggert.
60020 2002-11-21 Jim Meyering <jim@meyering.net>
60022 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60024 Merge in changes from the coreutils.
60026 2002-09-25 Paul Eggert <eggert@twinsun.com>
60027 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60029 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60030 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60031 int. Work more efficiently if X is the same width as uintmax_t.
60032 Do not compare X to -1, to avoid bogus compiler warning.
60033 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60034 Don't assume that f_frsize and f_bsize are the same type.
60036 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60037 warning on FreeBSD.
60039 * lib/makepath.c (make_path): Restore umask *before* creating the final
60041 (make_path): Minor reformatting.
60043 * lib/xmalloc.c: Adjust to work with new autoconf macros,
60044 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60045 HAVE_MALLOC/HAVE_REALLOC.
60047 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60048 dummy ones. At least on GNU/Linux systems, `auto' means something
60050 From Michael Stone.
60052 2002-11-21 Bruno Haible <bruno@clisp.org>
60054 Remove case insensitive option matching.
60055 * lib/argmatch.h (argcasematch): Remove declaration.
60056 (ARGCASEMATCH): Remove macro.
60057 (__xargmatch_internal): Remove case_sensitive argument.
60058 (XARGMATCH): Update.
60059 (XARGCASEMATCH): Remove macro.
60060 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60061 case_sensitive argument.
60062 (argcasematch): Remove function.
60063 (__xargmatch_internal): Remove case_sensitive argument.
60064 (main): Use XARGMATCH instead of XARGCASEMATCH.
60066 * lib/xmalloc.c: Change compile-time error message. Add comment about
60067 required autoconf version.
60069 2002-11-20 Paul Eggert <eggert@twinsun.com>
60071 Merge argmatch cleanups from Bison. Assume C89.
60073 * lib/argmatch.c: Include config.h here, not in argmatch.h.
60074 Include stdlib.h, for EXIT_FAILURE.
60075 Always include <string.h>, since we assume C89.
60076 (EXIT_FAILURE): Remove pre-C89 bug workaround.
60077 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60078 Include <stddef.h> instead, since it's all we need for size_t.
60079 (PARAMS): Remove. All uses removed.
60080 (ARRAY_CARDINALITY): Do not bother to #undef.
60081 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60082 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60083 Remove unnecessary parentheses.
60084 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60085 Insert necessary parentheses.
60086 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60087 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60089 2002-11-19 Bruno Haible <bruno@clisp.org>
60091 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60092 * lib/mbswidth.h: Include <stddef.h>, for size_t.
60094 * lib/mbswidth.h (PARAMS): Remove macro.
60095 (mbswidth, mbsnwidth): Use ANSI C function declarations.
60096 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60098 * lib/gcd.h (PARAMS): Remove macro.
60099 (gcd): Use ANSI C function declarations.
60100 * lib/gcd.c (gcd): Likewise.
60102 2002-11-15 Bruno Haible <bruno@clisp.org>
60104 * lib/strcspn.c: Include <stddef.h>.
60105 (strcspn): Use ANSI C function declaration. Change return type to
60107 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60108 (strpbrk): Use NULL.
60109 * lib/strpbrk.h (PARAMS): Remove macro.
60110 (strpbrk): Use ANSI C function declaration.
60111 * lib/strstr.c: Don't include <sys/types.h>.
60112 * lib/strstr.h (PARAMS): Remove macro.
60113 (strstr): Use ANSI C function declarations.
60115 2002-11-14 Karl Berry <karl@gnu.org>
60117 * config/mkinstalldirs: `do' on separate line, instead of
60120 2002-11-06 Bruno Haible <bruno@clisp.org>
60122 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60123 * lib/gcd.c (gcd): Likewise.
60125 2002-11-05 Bruno Haible <bruno@clisp.org>
60127 * lib/gcd.h: New file, from gettext-0.11.5.
60128 * lib/gcd.c: New file, from gettext-0.11.5.
60130 2002-11-05 Bruno Haible <bruno@clisp.org>
60132 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60133 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60134 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60135 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60137 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60139 * lib/makepath.c: Include gettext.h instead of <locale.h> and
60142 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60143 * lib/human.c: Include gettext.h instead of <libintl.h>.
60144 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60145 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60146 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60147 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60148 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60149 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60150 (textdomain): Remove definition.
60151 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60153 * lib/long-options.c: Remove include of <libintl.h> and definition of
60155 * lib/same.c: Remove include of <libintl.h> and definition of _.
60157 2002-11-04 Owen Taylor <otaylor@redhat.com>
60159 * lib/config.charset: A few additions for Solaris.
60161 2002-11-04 Bruno Haible <haible@clisp.cons.org>
60163 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60164 * lib/localcharset.c (locale_charset): Declare as extern "C".
60166 2002-11-04 Bruno Haible <haible@clisp.cons.org>
60168 * lib/config.charset: msdos in uk_UA uses CP1125.
60170 2002-11-04 Bruno Haible <bruno@clisp.org>
60172 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60173 * lib/strcase.h: New file, from GNU gettext-0.11.5.
60174 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60175 * lib/strstr.h: New file, from GNU gettext-0.11.5.
60176 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60178 2002-11-04 Bruno Haible <bruno@clisp.org>
60180 * lib/localcharset.c (locale_charset): Don't return an empty string.
60182 2002-11-04 Bruno Haible <bruno@clisp.org>
60184 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60187 2002-11-04 Bruno Haible <bruno@clisp.org>
60189 * lib/config.charset: Update for newest glibc. Add canonical names
60190 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60192 2002-11-04 Bruno Haible <bruno@clisp.org>
60194 * lib/config.charset: Add support for NetBSD.
60196 2002-11-04 Bruno Haible <bruno@clisp.org>
60198 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60200 2002-11-01 Bruno Haible <bruno@clisp.org>
60202 * configure.in: Add AC_CONFIG_AUX_DIR call.
60203 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60205 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60207 2002-09-28 Karl Berry <karl@gnu.org>
60209 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60210 installed automake until the next release, since changes have been
60213 2002-09-25 Karl Berry <karl@gnu.org>
60215 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60216 * lib/getopt*: copy from libc/posix.
60217 * lib/gettext.h: copy from gettext.
60218 * lib/.cppi-disable: add strdup.c, gettext.h.
60220 2002-09-25 Karl Berry <karl@gnu.org>
60222 * config/srclist.txt: enable gettext.h check.
60223 * config/config.{guess,sub}: update from prep.
60224 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60225 from automake 1.6.3.
60228 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
60230 * regex.c (PATFETCH): Remove the translating fetch.
60231 (PATFETCH_RAW): Rename to PATFETCH.
60232 (set_image_of_range): New fun.
60233 (SET_RANGE_TABLE_WORK_AREA): Use it.
60234 (regex_compile): Don't translate the pattern chars so eagerly.
60235 Only do it when inserting an `exactn' bytecode or when handling
60237 (mutually_exclusive_p): Avoid empty statement.
60239 2002-07-06 Jim Meyering <meyering@lucent.com>
60241 * m4/README: Don't mention Makefile.am.in.
60242 Outline how I've tested changes to .m4 files. Yep, it's a pain.
60244 2002-07-01 Jim Meyering <meyering@lucent.com>
60246 * lib/c-stack.c: Include sys/time.h.
60247 From Volker Borchert.
60249 2002-06-26 Paul Eggert <eggert@twinsun.com>
60251 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60253 2002-06-26 Paul Eggert <eggert@twinsun.com>
60255 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60256 New macro. Use it uniformly instead of
60257 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60258 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60259 reported by Vin Shelton.
60261 2002-06-22 Paul Eggert <eggert@twinsun.com>
60263 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60264 Do not assume SA_SIGINFO behavior.
60265 Bug reported by Jim Meyering on NetBSD 1.5.2.
60267 2002-06-22 Jim Meyering <meyering@lucent.com>
60269 * m4/c-stack.m4: New file, from diffutils-2.8.2.
60270 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60272 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60273 now that configure.ac uses AC_GNU_SOURCE.
60274 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60275 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60277 Update to latest tools. Suggestions from Paul Eggert.
60278 * m4/stdbool.m4: New file, from diffutils-2.8.2.
60279 * m4/gnu-source.m4: Update from diffutils-2.8.2.
60280 * m4/fnmatch.m4: Likewise.
60281 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60282 to AC_HEADER_STDBOOL
60284 2002-06-22 Jim Meyering <meyering@lucent.com>
60286 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60287 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60289 2002-06-22 Jim Meyering <meyering@lucent.com>
60291 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60293 * lib/exitfail.c, exitfail.h: Likewise.
60294 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60296 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60298 (EXTRA_DIST): Add fnmatch_loop.c.
60299 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60301 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60302 * lib/fnmatch.c: Update from diffutils-2.8.2.
60303 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
60304 * lib/fnmatch.h: Remove file.
60306 2002-06-21 Jim Meyering <meyering@lucent.com>
60308 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60309 * m4/mbrtowc.m4: Likewise.
60311 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60312 * m4/mbswidth.m4: Reflect name change:
60313 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60314 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60316 * m4/lib-link.m4: Update from gettext-0.11.2.
60317 * m4/gettext.m4: Likewise.
60319 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60320 From Alfred M. Szmidt.
60322 2002-06-18 Paul Eggert <eggert@twinsun.com>
60324 * lib/file-type.h: Report an error if neither S_ISREG nor
60325 S_IFREG is defined, instead of using a test specific to glibc
60326 2.2. This should be safe, since POSIX requires S_ISREG and
60327 Unix Version 7 had S_IFREG. We don't need to check for
60328 <sys/types.h> since we don't use any symbols that it defines.
60330 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
60332 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60333 $@-t, so that each temporary file name is unique and valid in the first
60334 8 characters, for operation under DOS.
60336 2002-06-15 Paul Eggert <eggert@twinsun.com>
60338 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60340 2002-06-15 Jim Meyering <meyering@lucent.com>
60342 Work even with DJGPP 2.03, which lacks support for symlinks.
60344 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60346 * lib/lchown.c (S_ISLNK): Likewise.
60348 2002-06-15 Jim Meyering <meyering@lucent.com>
60350 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60351 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60352 have been included before this file.
60354 2002-06-14 Jim Meyering <meyering@lucent.com>
60356 * lib/file-type.h: Use the version from diffutils-2.8.2.
60357 * lib/file-type.c: Likewise.
60359 2002-06-07 Jim Meyering <meyering@lucent.com>
60361 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60362 They're needed at least for NetBSD 1.5.2.
60363 ($statxfs_includes): Include those same headers.
60364 ($statxfs_includes): Include sys/vfs.h if available.
60365 ($statxfs_includes): Likewise for sys/statvfs.h.
60366 Check for the following members in both structs statfs and statvfs:
60367 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60369 2002-06-01 Jim Meyering <meyering@lucent.com>
60371 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60372 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60374 2002-05-28 Jim Meyering <meyering@lucent.com>
60376 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60377 Reported by Volker Borchert.
60379 2002-05-27 Jim Meyering <meyering@lucent.com>
60381 Fix a problem seen only on nonconforming systems whereby ls.c's
60382 use of localtime, and then of gettimeofday would cause trouble:
60383 the localtime call used to initialize rpl_gettimeofday's save
60384 mechanism would clobber ls's current local time information so
60385 that in any long listing the first file would always be listed
60386 with date 1970-01-01. Analysis by Volker Borchert.
60388 * lib/gettimeofday.c (localtime): Undefine.
60389 (rpl_localtime): New function.
60391 2002-05-27 Jim Meyering <meyering@lucent.com>
60393 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60396 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60397 use the replacement function; it wouldn't resolve at link time.
60398 Reported by Volker Borchert.
60400 2002-05-22 Jim Meyering <meyering@lucent.com>
60402 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60404 * lib/file-type.h: New file.
60405 * lib/file-type.c (file_type): New file/function. Extracted from
60408 2002-04-30 Jim Meyering <meyering@lucent.com>
60410 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60412 2002-04-29 Paul Eggert <eggert@twinsun.com>
60414 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60416 2002-04-29 Paul Eggert <eggert@twinsun.com>
60418 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60419 Do not check for alloca.h (no longer used) or stdbool.h (was never
60420 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
60422 2002-04-29 Paul Eggert <eggert@twinsun.com>
60424 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60426 2002-04-29 Jim Meyering <meyering@lucent.com>
60428 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60429 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60430 Use AC_FUNC_STRNLEN here instead.
60432 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60433 With autoconf-2.53a, it's part of AC_PROG_CC.
60435 2002-04-28 Paul Eggert <eggert@twinsun.com>
60437 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60438 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60440 2002-04-28 Paul Eggert <eggert@twinsun.com>
60442 * lib/sig2str.h, lib/sig2str.c: New files.
60443 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60445 2002-04-28 Paul Eggert <eggert@twinsun.com>
60447 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60448 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
60449 of 127, since 64 is the largest conceivable number for ancient
60451 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60453 2002-04-28 Jim Meyering <meyering@lucent.com>
60455 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60457 2002-04-24 Jim Meyering <meyering@lucent.com>
60459 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60460 (jm_PREREQ): Use it.
60462 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60463 mach/mach.h fcntl.h.
60464 Check for this function: setlocale.
60466 2002-04-24 Jim Meyering <meyering@lucent.com>
60468 * lib/gettext.h: New file, from Gettext.
60469 * lib/Makefile.am (INCLUDES): Remove -I../intl.
60470 (libfetish_a_SOURCES): Add gettext.h.
60472 2002-04-16 Jim Meyering <meyering@lucent.com>
60474 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60475 ut_pid, ut_id, ut_exit.
60477 2002-04-16 Jim Meyering <meyering@lucent.com>
60479 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60480 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60481 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60483 2002-04-12 Jim Meyering <meyering@lucent.com>
60485 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60486 now-bogus check for f_type in sys/mount.h. Instead, just test for the
60487 existence of the getmntinfo function. Needed for Darwin 5.3.
60489 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60490 This is necessary at least on Darwin 5.3.
60492 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60493 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
60494 strnlen.o in the library, and that makes some versions of ranlib
60497 2002-04-12 Jim Meyering <meyering@lucent.com>
60499 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60501 2002-04-09 Jim Meyering <meyering@lucent.com>
60503 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60504 to be more precise. Rather than saying we're checking whether the
60505 function `works', say what we're testing.
60506 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60507 Reported by Bruno Haible.
60509 2002-03-10 Jim Meyering <meyering@lucent.com>
60511 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60512 Suggestion from Santiago Vila.
60514 2002-03-08 Jim Meyering <meyering@lucent.com>
60516 * lib/rename.c: Mention that this wrapper is needed also on
60517 mips-dec-ultrix4.4 systems.
60519 2002-03-02 Jim Meyering <meyering@lucent.com>
60521 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60522 not HAVE_CLOCK_SETTIME.
60524 2002-02-27 Paul Eggert <eggert@twinsun.com>
60526 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60527 Check for clock_settime.
60529 2002-02-27 Paul Eggert <eggert@twinsun.com>
60531 * lib/nanosleep.h: Rename to....
60532 * lib/timespec.h: New name for nanosleep.h. All uses changed.
60534 * lib/gettime.c: New file.
60535 * lib/settime.c: New file.
60536 * lib/stime.c: Remove.
60538 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60539 timespec.h. Remove nanosleep.h.
60541 2002-02-25 Paul Eggert <eggert@twinsun.com>
60543 * m4/acl.m4: New file.
60544 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60545 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60547 2002-02-25 Paul Eggert <eggert@twinsun.com>
60549 * lib/acl.c, lib/acl.h: New files.
60550 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60552 2002-02-24 Jim Meyering <meyering@lucent.com>
60554 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60555 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60556 cause trouble. Reported by Nelson Beebe.
60558 2002-02-23 Paul Eggert <eggert@twinsun.com>
60560 * lib/path-concat.c (xpath_concat): Reorder code to pacify
60561 compilers that don't know that xalloc_die never returns.
60563 2002-02-20 Jim Meyering <meyering@lucent.com>
60565 * lib/getdate.c: Regenerate using bison-1.33.
60567 2002-02-17 Jim Meyering <meyering@lucent.com>
60569 * config/config.guess (main): Don't use `head -1'; it's no longer
60570 portable. Use `sed 1q' instead.
60572 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
60574 * m4/codeset.m4: Upgrade to gettext-0.11.
60575 * m4/gettext.m4: Upgrade to gettext-0.11.
60576 * m4/glibc21.m4: Upgrade to gettext-0.11.
60577 * m4/iconv.m4: Upgrade to gettext-0.11.
60578 * m4/isc-posix.m4: Upgrade to gettext-0.11.
60579 * m4/lcmessage.m4: Upgrade to gettext-0.11.
60580 * m4/lib-ld.m4: New file, from gettext-0.11.
60581 * m4/lib-link.m4: New file, from gettext-0.11.
60582 * m4/lib-prefix.m4: New file, from gettext-0.11.
60583 * m4/progtest.m4: Upgrade to gettext-0.11.
60585 2002-02-15 Paul Eggert <eggert@twinsun.com>
60587 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60588 (jm_PREREQ): Use it.
60590 2002-02-15 Paul Eggert <eggert@twinsun.com>
60592 * lib/posixver.c, lib/posixver.h: New files.
60593 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60595 2002-02-02 Paul Eggert <eggert@twinsun.com>
60596 Bruno Haible <bruno@clisp.org>
60598 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60599 (fwrite_success_callback): New declaration.
60600 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60601 print_unicode_char. Call failure callback instead of error.
60602 (fwrite_success_callback): New function.
60603 (exit_failure_callback): New function.
60604 (fallback_failure_callback): New function.
60605 (print_unicode_char): Call unicode_to_mb.
60607 2002-01-26 Jim Meyering <meyering@lucent.com>
60609 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60610 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60612 2002-01-26 Jim Meyering <meyering@lucent.com>
60614 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60616 2002-01-22 Paul Eggert <eggert@twinsun.com>
60618 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60620 2002-01-22 Jim Meyering <meyering@lucent.com>
60622 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60623 Otherwise, some versions of automake would omit the rule that makes
60624 Makefile from Makefile.in.
60626 2002-01-21 Paul Eggert <eggert@twinsun.com>
60628 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60629 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60630 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60631 (memcoll): Set errno to zero if there is no error.
60633 * lib/quotearg.c (quotearg_buffer_restyled):
60634 Fix bug with quoting buffers containing NUL when backslashing escapes.
60635 This bug was exposed by the other changes in this patch.
60636 (quotearg_n_options): New arg ARGSIZE.
60637 All callers changed.
60638 (quoting_options_from_style): New function.
60639 (quotearg_n_style): Use it.
60640 (quotearg_n_style_mem): New function.
60642 * lib/quotearg.h (quotearg_n_style_mem): New function.
60644 2002-01-19 Jim Meyering <meyering@lucent.com>
60646 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60647 Remove useless quotes: DF_PROG="df".
60648 * m4/strnlen.m4: New file.
60650 2002-01-16 Paul Eggert <eggert@twinsun.com>
60652 * lib/backupfile.c (ISDIGIT): Comment fix.
60653 * lib/getdate.y (ISDIGIT): Likewise.
60654 * lib/posixtm.c (ISDIGIT, year): Likewise.
60655 * lib/strverscmp.c (ISDIGIT): Likewise.
60656 * lib/userspec.c (ISDIGIT): Likewise.
60658 2002-01-16 Jim Meyering <meyering@lucent.com>
60660 * lib/getdate.y: Add three semicolons, each just before a closing
60661 brace. Bison (as of version 1.31) no longer papers over that mistake.
60663 2002-01-05 Jim Meyering <meyering@lucent.com>
60665 * lib/version-etc.c (version_etc_copyright): Update copyright year.
60667 2001-12-19 Paul Eggert <eggert@twinsun.com>
60669 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60670 not silently exit merely because the output buffer happens to
60671 have nothing pending.
60673 2001-12-18 Paul Eggert <eggert@twinsun.com>
60675 See the big note in ../ChangeLog.
60676 * lib/human.c (suffixes): Prefer K to k for 1024.
60677 (generate_suffix_backwards): New function.
60678 (human_readable_inexact): Use it.
60679 * lib/xstrtol.c (__xstrtol): If there is no number but there
60680 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
60681 Accept 'K' as well as 'k'.
60683 2001-12-15 Jim Meyering <meyering@lucent.com>
60685 * lib/regex.h (__restrict_arr): Update from libc.
60687 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60688 as `remote' if the name starts with `//'. Suggested by Michael Stone.
60691 2001-12-14 Jim Meyering <meyering@lucent.com>
60693 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60694 Suggestion from Bruno Haible.
60696 2001-12-10 Jim Meyering <meyering@lucent.com>
60698 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60699 xrealloc, Instead, include "xalloc.h".
60700 (initbuffer): Don't cast xmalloc return value to char*.
60701 (readline): Reword comment.
60702 Don't cast xrealloc return value to char*
60703 Return NULL, not 0.
60705 2001-12-09 Jim Meyering <meyering@lucent.com>
60707 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60708 about `signed and unsigned type in conditional expression'.
60709 * lib/posixtm.c (posix_time_parse): Likewise.
60711 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60713 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60714 to avoid a pedantic warning.
60716 * lib/getstr.c: Don't include assert.h.
60717 (getstr): Remove warning-evoking assertions.
60718 Return -1 if offset parameter is out of bounds.
60719 Change the type of a local from int to size_t.
60721 * lib/strftime.c (my_strftime_localtime_r): Include this function
60722 definition in the `#if ! HAVE_TM_GMTOFF' block.
60724 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60725 Include xalloc.h instead.
60727 2001-12-02 Jim Meyering <meyering@lucent.com>
60729 * lib/tempname.c: Don't declare getenv, thus reverting the change of
60730 2001-11-18. It's no longer necessary, now that stdlib.h is always
60733 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60734 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
60736 2001-11-30 Akim Demaille <akim@epita.fr>
60738 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60739 before being defined.
60741 2001-11-27 Paul Eggert <eggert@twinsun.com>
60743 * lib/quotearg.h (quotearg_n, quotearg_n_style):
60744 First arg is int, not unsigned.
60745 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60746 (SIZE_MAX, UINT_MAX): New macros.
60747 (quotearg_n_options): Abort if N is negative.
60748 Avoid overflow check on hosts where size_t is 64 bits and int
60749 is 32 bits, as overflow is impossible there.
60750 Fix off-by-one typo that caused unnecessary reallocation.
60752 2001-11-27 Jim Meyering <meyering@lucent.com>
60754 * lib/tempname.c: Merge with version from libc.
60755 * lib/regex.c: Likewise.
60757 * lib/tempname.c: Include stdlib.h unconditionally. On some old
60758 systems for which STDC_HEADERS is 0, it was not included, resulting in
60759 a warning about an integer-to-pointer conversion problem with getenv.
60760 Reported by Volker Borchert.
60762 2001-11-26 Jim Meyering <meyering@lucent.com>
60764 * lib/gtod.h: Remove file.
60765 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60766 * lib/gettimeofday.c: Don't include gtod.h.
60767 (GTOD_init): Remove function.
60768 (rpl_gettimeofday): Do its job here instead, rather than aborting.
60769 Suggestion from Volker Borchert.
60771 2001-11-23 Jim Meyering <meyering@lucent.com>
60773 * lib/hash.h (struct hash_table): Don't define here. Merely declare
60775 * lib/hash.c (struct hash_table): Define it here instead.
60777 2001-11-22 Jim Meyering <meyering@lucent.com>
60779 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60781 2001-11-20 Jim Meyering <meyering@lucent.com>
60783 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60784 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60786 2001-11-19 Jim Meyering <meyering@lucent.com>
60788 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60789 directory. Use "conftestXXXXXX" as the template.
60790 Suggestion from Paul Eggert.
60792 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60793 immediately, so the test doesn't mistakenly hit the max-open-files
60796 2001-11-18 Paul Eggert <eggert@twinsun.com>
60798 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60799 (TEMPORARIES): New macro.
60800 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
60801 removes an artificial limitation (e.g. HP-UX 10.20, where
60804 2001-11-18 Jim Meyering <meyering@lucent.com>
60806 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60808 2001-11-18 Jim Meyering <meyering@lucent.com>
60810 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60813 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60814 files will be created before anything else.
60816 2001-11-17 Paul Eggert <eggert@twinsun.com>
60818 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60819 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60821 2001-11-17 Jim Meyering <meyering@lucent.com>
60823 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60824 Prompted by a report from Bob Proulx.
60826 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60827 Instead, require UTILS_FUNC_MKSTEMP.
60829 2001-11-17 Jim Meyering <meyering@lucent.com>
60831 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60832 Now, that's done as part of AC_FUNC_STRTOD.
60834 2001-11-17 Jim Meyering <meyering@lucent.com>
60836 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60837 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60838 rather than group writable. Patch by Juan F. Codagnone.
60840 * lib/readtokens.c: Remove explicit declarations of xmalloc and
60841 xrealloc, Instead, include "xalloc.h".
60843 * lib/mountlist.c: Include unlocked-io.h after all system headers.
60844 Remove explicit declarations of xmalloc, xrealloc,
60845 and xstrdup. Instead, include "xalloc.h".
60847 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60849 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60851 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60853 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60854 Reported by Padraig Brady.
60856 * lib/mkstemp.c: #undef mkstemp.
60858 (rpl_mkstemp): Rename from mkstemp.
60861 2001-11-16 Jim Meyering <meyering@lucent.com>
60863 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60864 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60865 determine the amount of total physical memory, use pstat_getstatic.
60866 HPUX-11 doesn't define _SC_PHYS_PAGES.
60867 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60868 If sysconf couldn't be used to determine the amount of available
60869 physical memory, use both pstat_getstatic and pstat_getdynamic.
60870 Based on a patch from Bob Proulx.
60872 2001-11-10 Jim Meyering <meyering@lucent.com>
60874 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60875 (jm_PREREQ): Use it.
60877 2001-11-09 Jim Meyering <meyering@lucent.com>
60879 * m4/jm-macros.m4: Require autoconf-2.52f.
60880 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60881 Use these AC_-prefixed names, not the AM_-prefixed ones.
60883 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
60885 2001-11-05 Jim Meyering <meyering@lucent.com>
60887 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60889 2001-11-04 Jim Meyering <meyering@lucent.com>
60891 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60894 2001-11-03 Jim Meyering <meyering@lucent.com>
60896 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60899 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60900 know the name of the variable in the macro definition.
60902 2001-11-03 Jim Meyering <meyering@lucent.com>
60904 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60905 in argmatch_to_argument call.
60907 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60910 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60911 e.g., a fault due to an attempt to free a NULL pointer.
60913 2001-11-01 Jim Meyering <meyering@lucent.com>
60915 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60916 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60918 2001-11-01 Jim Meyering <meyering@lucent.com>
60920 * lib/dirfd.c, lib/dirfd.h: New files.
60921 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60923 * lib/hash.c (hash_print) [TESTING]: Clean up.
60925 2001-10-22 Paul Eggert <eggert@twinsun.com>
60927 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60928 to avoid a warning if -Wall.
60930 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
60933 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60934 (per RMS's instructions, this is now the canonical source)
60935 * lgpl/, gpl/: New directories.
60937 2001-10-21 Paul Eggert <eggert@twinsun.com>
60939 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60941 2001-10-21 Jim Meyering <meyering@lucent.com>
60943 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
60944 this code would end up calling gettext even in packages built
60945 with --disable-nls.
60946 * lib/getopt.c (_): Likewise.
60947 * lib/regex.c (_): Likewise.
60949 2001-10-20 Paul Eggert <eggert@twinsun.com>
60951 * m4/error.m4 (jm_PREREQ_ERROR):
60952 Do not invoke AC_CHECK_FUNCS with strerror_r, as
60953 AC_FUNC_STRERROR_R does that.
60954 Check for strerror declaration.
60956 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60957 are supposed to have them these days.
60958 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60959 Merge changes from latest Autoconf CVS.
60960 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60961 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60962 POSIX decided to standardize on the int flavor of strerror_r.
60964 2001-10-20 Paul Eggert <eggert@twinsun.com>
60966 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60967 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60968 Use strerror_r that is only a macro, even if it is not a function.
60969 (strerror): Check for HAVE_DECL_STRERROR before declaring.
60970 (private_strerror): Use prototypes, not old-style function definition.
60971 (print_errno_message): New function.
60972 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60973 char*-flavored one.
60974 (error_tail, error, error_at_line): Use it.
60976 2001-10-11 Jim Meyering <meyering@lucent.com>
60978 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60979 and quote_n (1, ... to avoid clobbering a buffer.
60981 2001-10-05 Jim Meyering <meyering@lucent.com>
60983 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60985 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60986 * lib/hash-pjw.h: New file.
60988 2001-09-30 Jim Meyering <meyering@lucent.com>
60990 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60991 `struct fsstat' has the `f_fstypename' member.
60992 Use that to define FS_TYPE, which is now used to make
60993 the getfsstat link test tighter.
60995 2001-09-30 Jim Meyering <meyering@lucent.com>
60997 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60998 Include <sys/ucred.h>, for Apple Darwin.
60999 Include sys/mount.h and sys/fs_types.h only if available.
61001 (read_filesystem_list): Use FS_TYPE.
61003 2001-09-29 Paul Eggert <eggert@twinsun.com>
61005 * lib/exclude.c (excluded_filename): 0 -> false, since it's
61008 2001-09-29 Jim Meyering <meyering@lucent.com>
61010 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61011 [one-argument getmntent function]): Include stdio.h before mntent.h.
61012 SunOS 4.1.x needs it for the declaration of `FILE'.
61013 Patch by Volker Borchert.
61015 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61016 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61017 sys/fs_types.h, and make the link-test for getfsstat guard #include
61018 directives with appropriate #if HAVE_*_H tests so that we can
61019 detect getfsstat on Apple Darwin1.3.7 systems.
61020 Reported by Nelson Beebe.
61021 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61023 2001-09-28 Paul Eggert <eggert@twinsun.com>
61025 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61026 #defines strtoimax. Also treat the other strto* functions
61029 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61030 Check for strtoul and strtoumax,
61031 as those declarations are made even in the signed case.
61032 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61033 Likewise, for strtol and strtoimax.
61035 2001-09-28 Paul Eggert <eggert@twinsun.com>
61037 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61038 #defines strtoimax. Also treat the other strto* functions
61041 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61042 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61043 (strtoimax, strtoumax): Do not declare if already defined as a macro.
61045 2001-09-26 Jim Meyering <meyering@lucent.com>
61047 Most macros in unlocked-io.h had the wrong number of arguments.
61048 * lib/gen-uio: New script.
61049 (USE_UNLOCKED_IO): Define to 1 if not already defined.
61050 * lib/unlocked-io.hin: Remove file.
61051 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61052 rather than trying to embed it here.
61053 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
61054 Reported by Padraig Brady.
61056 2001-09-25 Volker Borchert <bt@teknon.de>
61058 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61061 2001-09-24 Jim Meyering <meyering@lucent.com>
61063 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61065 2001-09-23 Jim Meyering <meyering@lucent.com>
61067 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61068 instead of the mere test for existence of mntent.h. The latter
61069 would get a false-positive on AIX 3.4 systems.
61070 In the outer getmntent if-block, don't die if neither of the getmntent
61071 tests succeeds. Instead, just fall through and continue with the
61074 2001-09-23 Jim Meyering <meyering@lucent.com>
61076 * lib/mountlist.c: Remove useless parentheses in #if directives.
61077 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61078 the deprecated MOUNTED symbol is no longer defined in mntent.h.
61080 2001-09-22 Jim Meyering <meyering@lucent.com>
61082 * m4/gettext.m4: New file. From gettext.
61083 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61084 * m4/progtest.m4: Likewise
61085 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61086 * m4/glibc21.m4: Likewise.
61088 * m4/libintl.m4: Remove. No longer used.
61090 2001-09-22 Jim Meyering <meyering@lucent.com>
61092 * lib/localcharset.c: Update from latest gettext.
61093 * lib/config.charset: Likewise.
61095 2001-09-20 Jim Meyering <meyering@lucent.com>
61097 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61099 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61102 2001-09-20 Jim Meyering <meyering@lucent.com>
61104 * lib/xstrtol.c (strtoimax): Guard declaration with
61105 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61106 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61107 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61108 (strtoumax): Likewise, for completeness (it wasn't necessary).
61110 2001-09-17 Paul Eggert <eggert@twinsun.com>
61112 * lib/strtoimax.c (HAVE_LONG_LONG):
61113 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61114 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61115 to work around bug in IBM C compiler.
61117 2001-09-17 Jim Meyering <meyering@lucent.com>
61119 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61120 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61121 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61122 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61123 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61124 whenever the right hand side need not be expanded by the shell.
61126 2001-09-16 Paul Eggert <eggert@twinsun.com>
61128 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61129 library. It's not correct, as some older glibcs are buggy.
61130 fnmatch wasn't fixed until glibc 2.2.
61132 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61133 special shell magic here.
61135 2001-09-16 Jim Meyering <meyering@lucent.com>
61137 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61138 * m4/jm-macros.m4: Require it.
61140 2001-09-16 Jim Meyering <meyering@lucent.com>
61142 * lib/mkdir.c: New file.
61144 2001-09-15 Jim Meyering <meyering@lucent.com>
61146 * m4/jm-macros.m4: Check for help2man.
61148 2001-09-11 Jim Meyering <meyering@lucent.com>
61150 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61151 The body, by Paul Eggert, was moved here from configure.in.
61152 * m4/jm-macros.m4: Require UTILS_HOST_OS.
61154 2001-09-04 Paul Eggert <eggert@twinsun.com>
61156 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61157 (jm_PREREQ): Use it.
61159 2001-09-04 Paul Eggert <eggert@twinsun.com>
61161 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
61162 Use ssize_t, not int, to store result of readlink.
61163 Check for ssize_t overflow as well as size_t overflow,
61164 as POSIX says the result of readlink is implementation-defined
61165 when ssize_t overflows.
61166 Remove unnecessary cast to char*.
61167 Use free+malloc instead of realloc, as the storage doesn't need
61168 to be preserved and it's clearer and can be more efficient that way.
61169 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61170 * lib/xreadlink.h (xreadlink): Update prototype.
61172 2001-09-04 Paul Eggert <eggert@twinsun.com>
61174 * lib/xgetcwd.c: Revert some of the previous change; intead,
61175 fix the HAVE_GETCWD_NULL code to behave more like the
61176 !HAVE_GETCWD_NULL code used to.
61178 Include "xalloc.h".
61179 (xgetcwd): Do not return NULL when memory is exhausted; instead,
61182 2001-09-03 Paul Eggert <eggert@twinsun.com>
61184 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61185 sys/param.h, as pathmax.h includes them.
61187 2001-09-03 Paul Eggert <eggert@twinsun.com>
61189 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61190 (jm_PREREQ_XGETCWD): New macro.
61192 * m4/getcwd.m4: New file.
61194 2001-09-03 Paul Eggert <eggert@twinsun.com>
61196 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61197 like the HAVE_GETCWD_NULL code.
61198 Include pathmax.h if not HAVE_GETCWD.
61199 Do not include xalloc.h.
61200 (INITIAL_BUFFER_SIZE): New symbol.
61201 Do not use xmalloc / xrealloc, since the caller is responsible for
61202 handling errors. Preserve errno around `free' during failure.
61203 Do not overrun buffer when using getwd.
61205 2001-09-03 Paul Eggert <eggert@twinsun.com>
61207 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61208 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61211 2001-09-03 Paul Eggert <eggert@twinsun.com>
61213 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61214 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
61215 spotted by Jim Meyering.
61217 2001-09-03 Jim Meyering <meyering@lucent.com>
61219 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61222 2001-09-02 Jim Meyering <meyering@lucent.com>
61224 * lib/error.c: Update from GNU libc.
61226 2001-09-01 Jim Meyering <meyering@lucent.com>
61228 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61231 2001-09-01 Jim Meyering <meyering@lucent.com>
61233 * lib/xreadlink.c: New file.
61234 * lib/xreadlink.h: New file.
61235 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61238 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61239 doesn't conflict with sparc Solaris 7's definition in
61240 /usr/include/sys/int_types.h.
61242 * lib/exclude.c: Use `""', not `<>' to #include non-system header
61244 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61245 and strncasecmp as r-values. Unixware didn't have declarations.
61247 2001-08-31 Paul Eggert <eggert@twinsun.com>
61249 * lib/xstrtol.h: Add copyright notice.
61250 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61251 LONGINT_INVALID_SUFFIX_CHAR.
61253 2001-08-31 Paul Eggert <eggert@twinsun.com>
61255 * lib/xstrtol.c (strtoimax): New decl.
61257 2001-08-31 Paul Eggert <eggert@twinsun.com>
61259 * lib/xgetcwd.c: Don't include pathmax.h.
61260 Include stdlib.h and unistd.h if available.
61262 (xmalloc, xstrdup, free): Remove decls.
61263 (xgetcwd): Don't assume sizes fit in unsigned.
61264 Check for overflow when computing sizes.
61265 Simplify reallocation code.
61267 2001-08-31 Paul Eggert <eggert@twinsun.com>
61269 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61270 a directory's st_size can have an arbitrary value, so the old
61271 usage could waste an arbitrary amount of memory. All uses
61273 * lib/savedir.h: Update prototype.
61275 2001-08-31 Paul Eggert <eggert@twinsun.com>
61277 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61279 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61282 Also, make the following further changes to make this file's
61283 configuration more similar to that of strtol.c:
61284 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
61285 (strtoumax, uintmax_t, strtoull, strtol): Remove.
61286 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61287 (strtoimax): Renamed from strtoumax. All uses of unsigned values
61288 changed to signed values.
61290 And make the following changes as well:
61291 Fix copyright notice, as 1999 was missing.
61292 (verify): New macro.
61293 (strtoimax): Check sizes at compile-time, not run-time.
61294 Prefer strtol to strtoll if both work.
61295 (main): Remove; it was not that useful and was a pain to maintain.
61297 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61299 2001-08-31 Jim Meyering <meyering@lucent.com>
61301 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61302 Use an initial, malloc'd, buffer of length 128 rather than
61303 a statically allocated one of length 1024.
61305 2001-08-30 Paul Eggert <eggert@twinsun.com>
61307 Simplify code, partly by assuming autoconf 2.52 semantics.
61309 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61311 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61312 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61314 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61315 Move AC_REQUIRE to next-to-top level, to avoid confusion.
61316 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61317 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61318 jm_AC_HEADER_INTTYPES_H.
61319 * m4/jm-macros.m4 (jm_MACROS): Likewise.
61321 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61323 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61324 Quote first arg of AC_DEFUN.
61325 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61326 since they are needed to parse the include file even if we need
61327 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
61328 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61329 but with opposite signedness.
61331 2001-08-30 Paul Eggert <eggert@twinsun.com>
61333 Merge 'exclude' changes from tar 1.13.22.
61334 This fixes one or two unlikely storage allocation overflow bugs,
61335 but doesn't change user-visible behavior otherwise.
61337 2001-08-30 Paul Eggert <eggert@twinsun.com>
61339 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61340 (jm_PREREQ_EXCLUDE): New macro.
61342 2001-08-30 Paul Eggert <eggert@twinsun.com>
61344 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61347 2001-08-30 Paul Eggert <eggert@twinsun.com>
61349 * lib/hash.c: Remove '2001' from copyright notice.
61351 2001-08-30 Paul Eggert <eggert@twinsun.com>
61353 * lib/full-write.h: New file.
61354 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61355 * lib/full-write.c: Correct credits, as cccp.c no longer
61356 exists and anyway it was so heavily changed from the old cccp
61357 code as to be unrecognizable. Include full-write.h.
61358 (full_write) Return size_t, with short writes meaning failure.
61359 All callers changed. This fixes a bug with large buffers
61361 * lib/utime.c: Include full-write.h.
61363 2001-08-30 Paul Eggert <eggert@twinsun.com>
61365 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61366 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61367 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61368 Include if available.
61369 (<xalloc.h>): Include
61370 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61371 (verify): New macro. Use it to verify that EXCLUDE macros do not
61372 collide with FNM macros.
61373 (struct patopts): New struct.
61374 (struct exclude): Use it, as exclude patterns now come with options.
61375 (new_exclude): Support above changes.
61376 (new_exclude, add_exclude_file):
61377 Initial size must now be a power of two to simplify overflow checking.
61378 (free_exclude, fnmatch_no_wildcards): New function.
61379 (excluded_filename): No longer requires options arg, as the options
61380 are determined by add_exclude. Now returns bool, not int.
61381 (excluded_filename, add_exclude):
61382 Add support for the fancy new exclusion options.
61383 (add_exclude, add_exclude_file): Now takes int options arg.
61384 Check for arithmetic overflow when computing sizes.
61385 (add_exclude_file): xrealloc might modify errno, so don't
61386 realloc until after errno might be used.
61388 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61390 (free_exclude): New decl.
61391 (add_exclude, add_exclude_file): Now takes int options arg.
61392 (excluded_filename): No longer requires options arg, as the options
61393 are determined by add_exclude. Now returns bool, not int.
61395 2001-08-30 Paul Eggert <eggert@twinsun.com>
61397 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61399 2001-08-27 Jim Meyering <meyering@lucent.com>
61401 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61403 * lib/version-etc.c (N_): Remove definition.
61404 Revert most of last change.
61405 Instead, simply don't mark the `Copyright...' string for translation.
61406 Based on advice from Paul Eggert.
61408 * lib/strtoxmax.c: Tweak comment.
61410 2001-08-26 Jim Meyering <meyering@lucent.com>
61412 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61414 * m4/xstrtoimax.m4: New file.
61415 * m4/xstrtoumax.m4: Add comments explaining why we
61416 AC_REPLACE_FUNCS(strtol).
61418 2001-08-26 Jim Meyering <meyering@lucent.com>
61420 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61421 of copyright with `%s' so translators don't get an untranslated
61423 (COPYRIGHT_YEAR): Define.
61424 (version_etc): Use fprintf rather than fputs.
61425 Suggestion from Ulrich Drepper.
61427 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61429 * lib/strtoll.c: New file, from GNU libc.
61430 * lib/xstrtoimax.c: New file.
61432 * lib/xstrtol.h: Add xstrtoimax.
61433 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
61434 * lib/strtoimax.c: New file. Likewise, but first define
61437 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61439 * lib/strtoxmax.c: ... then renamed to this.
61441 2001-08-18 Paul Eggert <eggert@twinsun.com>
61443 * m4/inttypes.m4: Add AC_PREREQ(2.13).
61444 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61445 (jm_AC_TYPE_INTMAX_T): New macro.
61446 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61448 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61450 * m4/longlong.m4: Renamed from ulonglong.m4.
61451 * m4/inttypes.m4: Renamed from inttypes_h.m4.
61452 * m4/uintmax_t.m4: Removed.
61454 2001-08-13 Paul Eggert <eggert@twinsun.com>
61456 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61457 Port to Solaris 8, where 'sed' requires a space after the 'r'
61458 command, and where sh dislikes "$/". Clean up the spacing a bit.
61459 Redirect output to $tmp just once.
61461 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
61463 * lib/addext.c (<errno.h>): Include.
61464 (errno): Declare if not defined.
61465 (addext): Work correctly when pathconf returns -1 and leaves
61466 errno alone because there is no limit. Also, work even if
61467 pathconf returns a value greater than SIZE_MAX.
61469 2001-08-12 Jim Meyering <meyering@lucent.com>
61471 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61472 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61473 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61474 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61475 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61476 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61477 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61478 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61479 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61480 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61481 utime.m4, utimes.m4, xstrtoumax.m4:
61482 Quote the first argument in each use of AC_DEFUN.
61484 2001-08-12 Jim Meyering <meyering@lucent.com>
61486 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61487 Simply `return getcwd (NULL, 0);'.
61488 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61489 Use 1300 as initial value for length, not PATH_MAX.
61491 * lib/pathmax.h: Clean up cpp syntax.
61493 2001-08-12 Jim Meyering <meyering@lucent.com>
61495 * lib/gettimeofday.c: New file.
61496 * lib/gtod.h: New file.
61497 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61499 2001-08-05 Jim Meyering <meyering@lucent.com>
61501 * m4/jm-macros.m4: Require autoconf-2.52.
61503 2001-08-04 Jim Meyering <meyering@lucent.com>
61505 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61506 stmt, to get in sync with glibc.
61508 2001-08-03 Paul Eggert <eggert@twinsun.com>
61510 The following changes are from gettext 0.10.39 as maintained by
61513 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61514 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61515 with inverted sense. All uses changed.
61517 * lib/mbswidth.c: Don't include <limits.h>.
61518 Include <stdlib.h> and <string.h> unconditionally.
61519 (iswcntrl, mbsinit, ISCNTRL): New macros.
61520 (mbsnwidth): Use K&R style function declarations.
61521 Don't bother checking for MB_LEN_MAX == 1, since the compiler
61522 can optimize it when MB_CUR_MAX == 1.
61523 The width of control characters is zero, not 1.
61525 2001-08-03 Paul Eggert <eggert@twinsun.com>
61527 The following changes are from gettext 0.10.39 as maintained by
61528 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61530 * m4/codeset.m4: Upgrade to serial AM1.
61531 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61532 all uses changed. Quote first arg of AC_DEFUN.
61533 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61535 * m4/iconv.m4: Upgrade to serial AM2.
61536 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61537 Add --with-libconv-prefix.
61538 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
61539 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61540 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61541 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61542 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61544 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61545 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61546 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61547 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61548 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61549 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61550 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61551 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61552 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61554 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61557 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61558 not the default value.
61560 2001-06-25 Bruno Haible <haible@clisp.cons.org>
61561 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61562 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
61563 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61564 Also check for iswcntrl, used for wcwidth fallback.
61565 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61568 2001-08-03 Jim Meyering <meyering@lucent.com>
61570 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61571 as it was in the original. Reported by Paul Eggert.
61573 2001-07-16 Jim Meyering <meyering@lucent.com>
61575 * m4/gettimeofday.m4: New file.
61576 Prompted by a report from Bernhard Baehr.
61578 2001-07-15 Jim Meyering <meyering@lucent.com>
61580 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61581 stuff. Now it's in ../Makefile.cfg.
61583 2001-07-15 Jim Meyering <meyering@lucent.com>
61585 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61586 (BUILT_SOURCES): Add unlocked-io.h.
61587 (io_functions): Define.
61588 (unlocked-io.h): New rule.
61589 (DISTCLEANFILES): Add unlocked-io.h.
61590 (all-local): Depend on unlocked-io.h, to ensure it is created.
61592 * lib/unlocked-io.hin: New file
61594 * lib/regex.c: Update from glibc.
61596 2001-07-05 Jim Meyering <meyering@lucent.com>
61598 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61600 (libfetish_a_SOURCES): Put all .h files here instead.
61601 Remove a thus-exposed (better checks in automake) duplicate and
61602 two unnecessary .h files.
61604 2001-07-04 Jim Meyering <meyering@lucent.com>
61606 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
61607 that generates jm-glibc-io.m4 so that it doesn't trigger any make
61610 2001-07-02 Jim Meyering <meyering@lucent.com>
61612 The following changes were prompted by suggestions from Bruno Haible.
61614 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61616 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61617 definition of EXTRA_DIST.
61618 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61619 ensure that the generated file is created/updated whenever the list
61620 of $(unlocked_functions) is changed.
61621 (jm-glibc-io.m4): New rule.
61622 (unlocked-io.h): New rule -- currently unused.
61624 2001-06-24 Jim Meyering <meyering@lucent.com>
61626 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61627 unmatched right bracket, rather than kludging it with an extra,
61628 falsely-matching quote in a comment. Patch by Akim Demaille.
61630 2001-06-11 Jim Meyering <meyering@lucent.com>
61632 * lib/regex.c: Update from GNU libc.
61634 2001-05-27 Jim Meyering <meyering@lucent.com>
61636 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61637 Check for ut_type in struct utmp.
61639 2001-05-27 Jim Meyering <meyering@lucent.com>
61641 * lib/readutmp.h (UT_TYPE): Define.
61643 2001-05-24 Jim Meyering <meyering@lucent.com>
61645 * lib/argmatch.c: Include "quote.h".
61646 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
61647 quote function. Reported by Göran Uddeborg.
61649 2001-05-22 Jim Meyering <meyering@lucent.com>
61651 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61652 now that we use the package-supplied version unconditionally.
61653 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61655 2001-05-21 Jim Meyering <meyering@lucent.com>
61657 * m4/regex.m4: Change a couple backticks to single quotes to avoid
61658 shell syntax errors.
61660 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61662 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61664 2001-05-20 Paul Eggert <eggert@twinsun.com>
61666 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61667 Don't bother to check library strftime, since
61668 we'll be using our own my_strftime function anyway.
61669 Define my_strftime instead of strftime.
61671 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
61673 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61674 which is not yet declared.
61676 2001-05-15 Jim Meyering <meyering@lucent.com>
61678 * m4/regex.m4: Use proper quoting so brackets appear in the test
61680 Reported by, and with help from, Bruno Haible.
61682 2001-05-13 Jim Meyering <meyering@lucent.com>
61684 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61687 2001-05-11 Paul Eggert <eggert@twinsun.com>
61689 dirname code cleanup. base_name now behaves more compatibly
61690 with POSIX basename when given file names that have trailing
61691 slashes, and similarly for dir_name. Add new primitives
61692 base_len and dir_len. Put the directory-name-related decls
61695 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61696 * lib/backupfile.c (base_name): Likewise.
61697 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61698 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61699 * lib/makepath.c (strip_trailing_slashes): Likewise.
61700 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61701 ISSLASH): Likewise.
61702 * lib/rename.c (strip_trailing_slashes): Likewise.
61703 * lib/same.c (base_name): Likewise.
61704 * lib/stripslash.c (ISSLASH): Likewise.
61706 * lib/addext.c: Include <dirname.h> after size_t is defined.
61707 * lib/backupfile.c: Likewise.
61709 * lib/addext.c (addext): Use base_len to trim redundant
61710 trailing slashes instead of doing it ourselves.
61711 But do not trim the last slash if it is not redundant.
61713 * lib/backupfile.c (find_backup_file_name,
61714 max_backup_version): Use base_len instead of rolling it ourselves.
61715 Handle the case of "" and (on DOS) "C:" correctly.
61717 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61718 needed. Include <string.h>, <dirname.h>.
61719 (base_name): Allow file names ending in slashes, other than names
61720 that are all slashes. In this case, return the basename followed
61721 by the slashes. This is more general, and can be used in places
61722 where the original base_name purposely had an assertion failure.
61723 (base_len): New function.
61725 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61726 Do not include <assert.h>; no longer needed.
61728 (memrchr): Remove decl.
61729 (dir_name_r): Remove.
61730 (dir_len): Renamed from dirlen. All callers changed.
61731 Rewrite in terms of base_name, for simplicity and consistency.
61732 (dir_name): Never return NULL. All callers changed.
61733 Do not include <stdlib.h> in test program; no longer needed.
61734 return 0; is fine for test program.
61736 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61738 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61740 * lib/path-concat.c (path_concat): Use base_len to compute
61741 base length, not strlen; this means we cannot rely on memcpy
61744 * lib/same.c (STREQ): Remove.
61745 (same_name): Handle the case where the basename ends in trailing '/'.
61747 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61748 a slash was stripped. Do not strip the last slash after a
61749 file system prefix.
61751 2001-05-11 Paul Eggert <eggert@twinsun.com>
61753 * lib/Makefile.am (libfetish_a_SOURCES):
61754 Add strftime.c, since we now compile it on all hosts.
61756 * lib/strftime.c (my_strftime):
61757 Define to nstrftime if emacs, but only if my_strftime is not defined.
61758 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61759 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61760 Add one more extra argument: a nanoseconds value.
61763 (my_strftime function): Add %N format.
61764 (emacs_strftimeu): Renamed from emacs_strftime,
61765 with extra ut argument.
61767 2001-05-09 Paul Eggert <eggert@twinsun.com>
61769 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61771 2001-04-21 Jim Meyering <meyering@lucent.com>
61773 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61776 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61778 * m4/ftruncate.m4: Check for chsize.
61779 Link with ftruncate.o unconditionally if ftruncate is missing.
61780 This was required when cross-compiling to i586-mingw32msvc.
61782 2001-04-08 Jim Meyering <meyering@lucent.com>
61784 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61785 recomputed; that's necessary when the offset spans a DST transition.
61786 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
61788 2001-04-02 Jim Meyering <meyering@lucent.com>
61790 * lib/regex.h, regex.c: Update from GNU libc.
61792 2001-03-24 Jim Meyering <meyering@lucent.com>
61794 * m4/jm-macros.m4: Require autoconf-2.49d.
61796 2001-03-20 Bruno Haible <haible@clisp.cons.org>
61798 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61800 2001-03-19 Paul Eggert <eggert@twinsun.com>
61802 * lib/version-etc.c (version_etc_copyright): Update to 2001.
61804 2001-03-17 Jim Meyering <meyering@lucent.com>
61806 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61807 now that the version in autoconf is equivalent.
61808 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61810 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61811 Suggestion from Akim Demaille.
61813 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61814 (jm_PREREQ_TEMPNAME): New function.
61816 2001-03-16 Paul Eggert <eggert@twinsun.com>
61818 * lib/tempname.c (uint64_t): Define to uintmax_t if
61819 not defined, and if UINT64_MAX is not defined.
61820 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61821 Reported by John David Anglin.
61823 2001-03-15 Bruno Haible <haible@clisp.cons.org>
61825 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61826 resolve alias if codeset is empty.
61827 * lib/config.charset (BeOS): Use wildcard syntax.
61829 2001-03-13 Jim Meyering <meyering@lucent.com>
61831 * lib/path-concat.c (path_concat)
61832 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61833 concatenating e.g., `C:' and `foo'.
61836 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61838 * lib/localcharset.c (locale_charset): Don't use
61839 setlocale(LC_CTYPE,NULL). Don't return NULL.
61840 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61842 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61844 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61845 support for DOS/DJGPP.
61847 2001-03-01 Paul Eggert <eggert@twinsun.com>
61849 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61850 lacks mkstemp. Compile our own tempname.c if we compile our own
61851 mkstemp.c, as mkstemp relies on tempname.
61853 2001-03-01 Jim Meyering <meyering@lucent.com>
61855 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61856 AH_VERBATIM really does output its argument verbatim.
61858 2001-02-28 Paul Eggert <eggert@twinsun.com>
61860 * lib/Makefile.am (libfetish_a_SOURCES):
61861 Add dup-safer.c, fopen-safer.c.
61862 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61864 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61865 * lib/unistd-safer.h: New files.
61867 2001-02-25 Paul Eggert <eggert@twinsun.com>
61869 The mkstemp replacement is taken from glibc 2.2.2, with some
61870 portability fixes for use outside glibc, as follows:
61872 * lib/tempname.c (struct_stat64): New macro.
61873 (direxists, __gen_tempname): Use it.
61874 This avoids a portability problem with Solaris 8.
61876 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61877 (<stddef.h>, <stdint.h>, <string.h>):
61878 Include only if STDC_HEADERS || _LIBC.
61879 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61880 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61881 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61882 (__set_errno): Define this macro if <errno.h> doesn't.
61883 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61884 Define these macros if <stdio.h> doesn't.
61885 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61886 Define these macros if <sys/stat.h>
61887 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61888 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61889 __xstat64): Define if not _LIBC.
61890 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61891 (__gen_tempname): Invoke gettimeofday only if
61892 HAVE_GETTIMEOFDAY || _LIBC;
61893 otherwise, fall back on plain "time".
61894 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61896 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61898 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61900 2001-02-18 Paul Eggert <eggert@twinsun.com>
61902 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61904 2001-02-17 Paul Eggert <eggert@twinsun.com>
61906 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61907 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61908 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61909 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61911 2001-02-17 Paul Eggert <eggert@twinsun.com>
61913 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61914 Remove workaround macros for hosts that have mbrtowc but not
61915 mbstate_t, as we now insist on proper declarations for both
61916 before using mbrtowc.
61918 2001-02-17 Jim Meyering <meyering@lucent.com>
61920 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61921 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61922 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61925 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61926 rather than AC_CACHE_VAL.
61928 2001-02-17 Jim Meyering <meyering@lucent.com>
61930 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
61931 around included file name.
61933 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61935 * lib/strftime.c: Update from GNU libc (the only changes were to
61938 2001-02-17 Jim Meyering <meyering@lucent.com>
61940 * lib/regex.c: Update from libc.
61942 2001-02-17 Bruno Haible <haible@clisp.cons.org>
61944 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61947 2001-02-16 Paul Eggert <eggert@twinsun.com>
61949 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61950 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
61951 Reported by Mark Hounschell via Paul Eggert.
61953 2001-02-07 Jim Meyering <meyering@lucent.com>
61955 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61957 2001-02-05 Jim Meyering <meyering@lucent.com>
61959 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61960 it includes the patch required for `large file' support with at least
61961 HP-UX's 10.20 /bin/cc.
61963 2001-02-03 Jim Meyering <meyering@lucent.com>
61965 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61966 AS_IF, now that it works once again (mysteriously).
61967 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61969 2001-01-30 Jim Meyering <meyering@lucent.com>
61971 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61972 * m4/chown.m4: Rename conftestchown to conftest.chown.
61973 * m4/rename.m4: s/conftestdir/conftest.d1/ and
61974 s/conftestdir2/conftest.d2/.
61975 * m4/utimes.m4: s/conftestdata/conftest.data/
61976 Inspired by Pavel Roskin's change in autoconf.
61978 2001-01-30 Bruno Haible <haible@clisp.cons.org>
61980 * lib/config.charset: Update for FreeBSD 4.2.
61982 2001-01-27 Jim Meyering <meyering@lucent.com>
61984 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61986 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61988 2001-01-26 Jim Meyering <meyering@lucent.com>
61990 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61991 quotearg.c includes it.
61993 2001-01-26 Jim Meyering <meyering@lucent.com>
61995 * lib/quotearg.c: Include stddef.h.
61996 * lib/quote.c: Include stddef.h.
61997 Reported by Axel Kittenberger.
61999 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62000 line in double quotes so that it evokes a better diagnostic.
62001 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62002 Reported by Axel Kittenberger.
62004 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
62006 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62007 as if it was a `charset'.
62009 2001-01-21 Bruno Haible <haible@clisp.cons.org>
62011 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62014 2001-01-21 Bruno Haible <haible@clisp.cons.org>
62016 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62017 to avoid a warning. Add back 'const' to inptr.
62019 2001-01-20 Jim Meyering <meyering@lucent.com>
62021 Be sure that headers are checked before used in code compiled
62022 for the type checks.
62023 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62024 In place of that, invoke jm_CHECK_ALL_TYPES.
62025 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62026 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62027 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62028 The check for ssize_t was mistakenly run before the test for unistd.h.
62030 The configure-time check for stdbool.h was missing.
62031 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62032 (jm_PREREQ_HASH): New function.
62034 2001-01-17 Jim Meyering <meyering@lucent.com>
62036 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62037 for autoconf-2.49c.
62038 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62040 2001-01-16 Jim Meyering <meyering@lucent.com>
62042 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62045 2001-01-14 Jim Meyering <meyering@lucent.com>
62047 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62048 foo and bar. Create conftestdir/ in the script, not in the C code.
62049 Remove directories in the script, not in the C code.
62050 Remove conftestdir{,2} before trying to create the directory.
62051 Make the entire configure script fail if the mkdir fails.
62053 2001-01-14 Jim Meyering <meyering@lucent.com>
62055 * lib/rename.c: New file. From Volker Borchert.
62056 Include stdlib.h, string.h or strings.h, and xalloc.h.
62057 Use strip_trailing_slashes rather than open-coding it.
62059 2001-01-03 Paul Eggert <eggert@twinsun.com>
62061 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62063 2001-01-03 Jim Meyering <meyering@lucent.com>
62065 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62066 of local `inptr' to avoid warning with some system declarations of
62069 2001-01-02 Volker Borchert <bt@teknon.de>
62071 * m4/rename.m4: New file.
62072 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62074 2001-01-01 Jim Meyering <meyering@lucent.com>
62076 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62077 even on systems with utmpx.h. It's necessary for the declaration of
62078 utmp's ut_user member. Reported by Andreas Jaeger.
62080 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62081 available. They are required for the declarations of getgrgid and
62083 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62084 Reported by Andreas Jaeger.
62086 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
62088 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62089 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62090 so `make install' also works in VPATH builds.
62092 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
62094 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62095 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62096 can be used in subdirectories.
62098 2000-12-29 Paul Eggert <eggert@twinsun.com>
62100 * lib/modechange.c: Do not assume that mode_t uses the
62101 traditional octal encoding. E.g. "chmod 1 FOO" should set
62102 the other-execute bit of FOO even if S_IXOTH != 1.
62104 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62105 WOTH, XOTH, ALLM): New macros.
62106 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62107 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62109 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62110 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62112 No need to use uintmax_t; unsigned long is long enough.
62113 Don't bother to get suffix since we don't use it.
62115 2000-12-26 Jim Meyering <meyering@lucent.com>
62117 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62118 better with autoheader.
62120 2000-12-24 Jim Meyering <meyering@lucent.com>
62122 * lib/hash.c (is_prime): Return explicit boolean values.
62123 (hash_get_first): Return NULL to appease Irix5.6's 89.
62124 Reported by Nelson Beebe.
62126 2000-12-19 Bruno Haible <haible@clisp.cons.org>
62128 * lib/localcharset.c (locale_charset): Add support for Win32.
62130 2000-12-18 Paul Eggert <eggert@twinsun.com>
62132 * lib/physmem.h, lib/physmem.c: New files.
62134 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62135 (noinst_HEADERS): Add physmem.h.
62137 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62138 't' for compatibility with Solaris 8 sort.
62140 2000-12-18 Bruno Haible <haible@clisp.cons.org>
62142 * lib/config.charset: Add support for BeOS.
62144 2000-12-17 Jim Meyering <meyering@lucent.com>
62146 * m4/dos.m4 (jm_AC_DOS): New file and macro.
62147 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62149 2000-12-16 Jim Meyering <meyering@lucent.com>
62151 This bug had a serious impact on chown: `chown N:M FILE' (for integer
62152 N and M) would have treated it like `chown N:N FILE'.
62154 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62156 2000-12-16 Jim Meyering <meyering@lucent.com>
62158 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62159 SHELLS_FILE to a file name that's useful on djgpp systems.
62161 (ADDITIONAL_DEFAULT_SHELLS): Define.
62162 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62163 Based mostly on a patch from Prashant TR.
62165 2000-12-16 Bruno Haible <haible@clisp.cons.org>
62167 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62168 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62169 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62171 2000-12-08 Andreas Schwab <schwab@suse.de>
62173 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62174 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62176 2000-12-07 Jim Meyering <meyering@lucent.com>
62178 * lib/stripslash.c (ISSLASH): Define.
62179 (strip_trailing_slashes): Use ISSLASH rather than comparing against
62183 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62184 (dir_name_r): Declare this function as static.
62185 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62186 manifest itself on a name containing a mix of slashes and
62188 Make this function work with names starting with a DOS-style
62189 drive letter and colon prefix.
62190 (dir_name): Append `.' if necessary.
62191 Based mostly on patches from Prashant TR and Eli Zaretskii.
62193 * lib/dirname.h (dir_name_r): Remove prototype.
62195 2000-12-06 Paul Eggert <eggert@twinsun.com>
62197 * m4/off_t-format.m4: Remove this file.
62198 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62200 2000-12-06 Jim Meyering <meyering@lucent.com>
62202 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62203 replacement strtoull, we may well need the replacement strtoul, too.
62204 Check for declarations of strtoul and strtoull.
62205 Check for strtol. Mainly as a cue to cause automake to include
62206 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62207 Check for limits.h -- strtol.c needs it.
62209 2000-12-05 Jim Meyering <meyering@lucent.com>
62211 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62213 2000-12-04 Jim Meyering <meyering@lucent.com>
62215 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62216 Also include memory.h, stdlib.h, unistd.h if appropriate.
62217 Reported by Andreas Jaeger (conflicting declaration of malloc).
62219 2000-12-02 Jim Meyering <meyering@lucent.com>
62221 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62222 * m4/jm-macros.m4 (jm_MACROS): require it.
62224 2000-12-02 Jim Meyering <meyering@lucent.com>
62226 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62228 2000-12-01 Paul Eggert <eggert@twinsun.com>
62230 * lib/memrchr.c: Include <config.h> before any system include file.
62232 2000-11-30 Jim Meyering <meyering@lucent.com>
62234 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62236 2000-11-30 Jim Meyering <meyering@lucent.com>
62238 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62240 2000-11-29 Paul Eggert <eggert@twinsun.com>
62242 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62244 2000-11-26 Jim Meyering <meyering@lucent.com>
62246 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
62248 2000-11-22 Paul Eggert <eggert@twinsun.com>
62250 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62251 size of (size_t) -1; it's not portable.
62253 2000-11-17 Jim Meyering <meyering@lucent.com>
62255 * lib/strstr.c: Update from GNU libc.
62257 2000-11-17 Akim Demaille <akim@epita.fr>
62259 * lib/obstack.h: Formatting changes.
62260 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62261 prevent type checking.
62262 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62263 cast the value to (void *): assigning a `foo *' to a `void *'
62265 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62267 2000-11-16 Jim Meyering <meyering@lucent.com>
62269 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62271 2000-11-11 Jim Meyering <meyering@lucent.com>
62273 * lib/error.c: Add a couple #includes, merging from GNU libc version.
62275 2000-11-10 Jim Meyering <meyering@lucent.com>
62277 * lib/obstack.h: Update from GNU libc.
62278 * lib/obstack.c: Likewise.
62280 2000-11-08 Bruno Haible <haible@clisp.cons.org>
62282 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62284 2000-11-06 Paul Eggert <eggert@twinsun.com>
62286 * lib/getusershell.c (setusershell): Use rewind rather than
62287 fseek/fseeko, to avoid configuration hassles with fseeko.
62288 Don't bother opening SHELLS_FILE if shellstream is NULL;
62289 it's not necessary.
62291 2000-11-05 Jim Meyering <meyering@lucent.com>
62293 * lib/makepath.h (make_dir): Declare.
62294 * lib/makepath.c (make_dir): Remove `static' attribute.
62297 2000-11-04 Jim Meyering <meyering@lucent.com>
62299 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62301 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
62303 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
62304 last one in a bucket, advance to the next bucket.
62306 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
62308 * lib/fnmatch.c: Do not comment out all the code if we are using
62309 the GNU C library, because in some cases we are replacing buggy
62310 code in the GNU C library itself.
62312 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
62314 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62315 (regex_compile): Catch bogus \(\1\).
62317 2000-10-30 Paul Eggert <eggert@twinsun.com>
62319 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62320 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62321 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62323 2000-10-30 Paul Eggert <eggert@twinsun.com>
62325 * lib/error.h, getline.h, modechange.h:
62326 Remove "2000" from Copyright line, as the file hasn't been
62327 changed this year other than in the copyright notice.
62329 * lib/xalloc.h: Add "2000" to Copyright line, as this file
62330 was changed this year.
62332 2000-10-29 Jim Meyering <meyering@lucent.com>
62334 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62336 * m4/ls-mntd-fs.m4: Likewise
62338 2000-10-29 Jim Meyering <meyering@lucent.com>
62340 * lib/xstat.in: Fix grammar in comment.
62342 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
62344 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62345 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62346 doesn't define __restrict_arr.
62348 2000-10-28 Jim Meyering <meyering@lucent.com>
62350 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62351 (jm_PREREQ_MEMCHR): New function.
62353 2000-10-28 Jim Meyering <meyering@lucent.com>
62355 * lib/memchr.c: Update from libc.
62356 Adjust for portability:
62357 [HAVE_STDLIB_H]: Include stdlib.h.
62358 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62359 Undef __memchr, too.
62360 [!weak_alias]: Define __memchr to memchr.
62362 * lib/regex.c: Update from libc.
62363 * lib/regex.h: Likewise.
62364 * lib/getopt1.c: Likewise.
62365 * lib/memcmp.c: Likewise.
62367 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62368 Avoid using fseek, when possible -- it's broken by design.
62369 Patch by Ulrich Drepper.
62371 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
62373 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62374 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62375 Giving in to popular pressure to shut up the compiler with casts.
62377 2000-10-26 Jim Meyering <meyering@lucent.com>
62379 * lib/strftime.c: Update from libc.
62381 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
62383 * regex.c: More `unsigned char' -> `re_char' changes.
62384 Also change several `int' into `re_wchar_t'.
62385 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62386 (PUSH_FAILURE_POINTER): Don't cast any more.
62387 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62388 We want GCC to complain, since this piece of code makes
62389 re_match non-reentrant, which *should* be fixed.
62390 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62391 (EXTEND_BUFFER): Use RETALLOC.
62392 (SET_LIST_BIT): Don't cast.
62393 (re_wchar_t): New type.
62394 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62395 that those two functions will always properly return.
62396 (IMMEDIATE_QUIT_CHECK): Cast to void.
62397 (analyse_first): Use recursion rather than an explicit stack.
62398 (re_compile_fastmap): Can't fail anymore.
62399 (re_search_2): Don't check re_compile_fastmap for failure.
62400 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62401 Now also sets the new value (passed in a new argument).
62402 (re_match_2_internal): Use it.
62403 Also, use a new var `reg' of type size_t when looping through regs
62404 rather than reuse the inappropriate `mcnt'.
62406 2000-10-25 Jim Meyering <meyering@lucent.com>
62408 * lib/obstack.c: Update from libc.
62410 2000-10-24 Kenichi Handa <handa@etl.go.jp>
62412 * regex.c (regex_compile): Change the way of handling a range from
62413 a char less than 256 to a char not less than 256.
62415 2000-10-24 Andrew Innes <andrewi@gnu.org>
62417 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62419 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62420 so that re_search functions only quit when callers expect them to.
62422 2000-10-23 Jim Meyering <meyering@lucent.com>
62424 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62425 wrong. That set_locale call must not have any side effects.
62428 2000-10-22 Jim Meyering <meyering@lucent.com>
62430 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62431 [CYCLIC]: Remove now-unused definition.
62433 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62434 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62435 Suggestion from Ulrich Drepper.
62437 2000-10-21 Jim Meyering <meyering@lucent.com>
62439 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62440 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62441 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62443 2000-10-21 Jim Meyering <meyering@lucent.com>
62445 * lib/dirname.c (memrchr): Declare if necessary.
62446 (dir_name): Remove the restriction that there be no
62447 trailing slashes. Now, this code skips past them, effectively
62449 [TEST_DIRNAME] (main): New unit tests.
62451 * lib/memrchr.c: New file from GNU libc.
62452 Undef __memrchr, too.
62453 [!weak_alias]: Define __memrchr to memrchr.
62454 Guard weak_alias use with `#ifdef weak_alias'.
62456 2000-10-21 Jim Meyering <meyering@lucent.com>
62458 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62459 (dir_name): Use dir_name_r.
62460 * lib/dirname.h (dir_name_r): Declare it.
62462 2000-10-17 Jim Meyering <meyering@lucent.com>
62464 * lib/quote.h (PARAMS): Define and use.
62465 Reported by Akim Demaille.
62467 * lib/getopt.c: Update from libc.
62469 2000-10-16 Jim Meyering <meyering@lucent.com>
62471 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62475 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
62477 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62479 2000-09-25 Jim Meyering <meyering@lucent.com>
62481 * lib/md5.h (rol): Define (from GnuPG).
62483 * lib/sha.c: Give credit (GnuPG) where due.
62484 (M): Use rol rather than open-coding it.
62485 Add a FIXME comment.
62487 2000-09-21 Jim Meyering <meyering@lucent.com>
62489 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62490 Reported by Michael Stone.
62492 2000-09-20 Jim Meyering <meyering@lucent.com>
62494 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62495 (noinst_HEADERS): Add sha.h.
62496 Based on code from Scott G. Miller and from GnuPG.
62498 2000-09-18 Jim Meyering <meyering@lucent.com>
62500 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62501 LIBS. Otherwise, everyone ends up linking with -lelf for some
62503 Reported by Mike Stone.
62505 2000-09-15 Jim Meyering <meyering@lucent.com>
62507 * lib/regex.c: Update from libc.
62509 2000-09-10 Jim Meyering <meyering@lucent.com>
62511 * lib/getopt.c (_getopt_internal): Update from glibc.
62513 2000-09-09 Jim Meyering <meyering@lucent.com>
62515 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62516 think it should be used as a general replacement for isascii.
62517 * lib/fnmatch.c: Likewise.
62518 * lib/mbswidth.c: Likewise
62519 * lib/regex.c: Likewise.
62522 * lib/userspec.c: Include sys/param.h and limits.h.
62524 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62525 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62526 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62527 UID, GID. Check range.
62529 2000-09-06 Jim Meyering <meyering@lucent.com>
62531 * lib/getopt.c (_getopt_internal): Update from glibc.
62533 2000-08-30 Jim Meyering <meyering@lucent.com>
62535 * lib/strftime.c: Merge in changes from GNU libc.
62537 2000-08-26 Jim Meyering <meyering@lucent.com>
62539 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62540 * m4/fpending.m4: New file.
62542 2000-08-26 Jim Meyering <meyering@lucent.com>
62544 * lib/closeout.c: Include "__fpending.h".
62545 (close_stdout_status): Return right away if there's nothing to flush.
62547 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62548 * lib/__fpending.c: New file.
62549 * lib/__fpending.h: New file.
62551 2000-08-20 Jim Meyering <meyering@lucent.com>
62553 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62554 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
62555 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
62557 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
62559 Improve fileutils installation on systems where running
62560 programs (like install) can't be unlinked.
62561 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62562 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62564 2000-08-07 Paul Eggert <eggert@twinsun.com>
62566 Standardize on "memory exhausted" instead of "Memory exhausted"
62567 or "virtual memory exhausted".
62568 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62569 "virtual memory exhausted".
62570 * lib/same.c (same_name): Invoke xalloc_die instead of printing
62572 * lib/userspec.c (parse_user_spec): Likewise.
62573 * lib/bumpalloc.h: comment fix
62574 * lib/same.c, userspec.c: Include xalloc.h.
62576 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62577 not char *const and pointing to a constant array.
62578 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62579 (xrealloc): Comment fix.
62581 * lib/userspec.c (parse_user_spec):
62582 Don't translate a message until just before returning,
62583 to avoid unnecessary translation.
62585 2000-08-07 Jim Meyering <meyering@lucent.com>
62587 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62588 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62589 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62590 getgroups.c, gethostname.c, getopt.h, group-member.c,
62591 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62592 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62593 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62594 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62595 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62596 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62597 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62598 yesno.c: Back out Copyright date changes for each file with no change
62599 this year. This eases coordination with other programs using the same
62600 source code modules. From Paul Eggert.
62602 2000-08-06 Paul Eggert <eggert@twinsun.com>
62604 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62605 not char, for compatibility with glibc 2.1.3 strftime.c.
62607 2000-08-03 Greg McGary <greg@mcgary.org>
62609 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62610 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62611 (EXTEND_BUFFER): Use them.
62613 2000-08-01 Jim Meyering <meyering@lucent.com>
62615 * lib/dirname.c (ISSLASH): Define.
62616 (BACKSLASH_IS_PATH_SEPARATOR): Define.
62617 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62618 both `\' and `/' may be use as path separators.
62619 Based on a patch from Prashant TR.
62621 2000-07-31 Paul Eggert <eggert@twinsun.com>
62623 * lib/quotearg.c (quotearg_n_options): Don't make the initial
62624 slot vector a constant, since it might get modified.
62626 2000-07-31 Jim Meyering <meyering@lucent.com>
62628 * lib/xmalloc.c: Use `virtual memory exhausted', not
62629 `Memory exhausted'.
62630 * lib/obstack.c (print_and_abort): Likewise.
62632 2000-07-30 Paul Eggert <eggert@twinsun.com>
62634 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62635 buffer, so that the caller can always quote one small
62636 component of a "memory exhausted" message in slot 0.
62637 From a suggestion by Jim Meyering.
62639 2000-07-30 Jim Meyering <meyering@lucent.com>
62641 * lib/makepath.c (make_path): Quote the other instance, too.
62643 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62644 (STATIC_BUF_SIZE): Define.
62645 (quotearg_n_options): Use only statically allocated storage when
62646 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62647 than STATIC_BUF_SIZE.
62649 2000-07-29 Jim Meyering <meyering@lucent.com>
62651 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62652 * lib/dirname.c (dir_name): Likewise.
62654 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62657 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62658 (dir_name): Assert that there are no trailing slashes.
62660 2000-07-29 Bruno Haible <haible@clisp.cons.org>
62662 * lib/mbswidth.h (mbswidth): Add a flags argument.
62663 (mbswidth): New declaration.
62664 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62665 * lib/mbswidth.c (mbswidth): Add a flags argument.
62666 (mbsnwidth): New function.
62668 2000-07-24 Jim Meyering <meyering@lucent.com>
62670 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
62672 2000-07-23 Paul Eggert <eggert@twinsun.com>
62674 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62676 2000-07-23 Paul Eggert <eggert@twinsun.com>
62678 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62679 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62680 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62681 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62682 invoke multibyte primitives.
62684 2000-07-23 Paul Eggert <eggert@twinsun.com>
62687 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62688 so that mbstate_t is always defined.
62690 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62691 be 1 in at least one GCC installation, and this configuration
62692 error is likely to be common. Ignoring MB_LEN_MAX hurts
62693 performance on hosts that have mbrtowc but have only unibyte
62694 locales, but I assume these hosts are rare.
62696 2000-07-23 Paul Eggert <eggert@twinsun.com>
62698 * lib/mbswidth.c (_XOPEN_SOURCE):
62699 Don't define; this causes problems on Solaris 7.
62700 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62702 2000-07-23 Jim Meyering <meyering@lucent.com>
62704 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62705 too: getgrgid, getpwuid, getuid.
62707 2000-07-23 Jim Meyering <meyering@lucent.com>
62709 * lib/basename.c (base_name): Add an assertion.
62711 2000-07-23 Bruno Haible <haible@clisp.cons.org>
62713 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62714 shadow its mbsinit function.
62716 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62718 * lib/mbswidth.h: New file.
62719 * lib/mbswidth.c: New file.
62720 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62721 (noinst_HEADERS): Add mbswidth.h.
62723 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62725 * lib/config.charset: Add support for FreeBSD. Improve support for
62728 2000-07-16 Bruno Haible <haible@clisp.cons.org>
62730 * m4/mbswidth.m4: New file.
62731 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62733 2000-07-15 Jim Meyering <meyering@lucent.com>
62735 * lib/makepath.c: Include quote.h.
62736 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62737 corresponding argument in a `quote (...)' call.
62738 Give better diagnostics.
62740 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62741 (noinst_HEADERS): Add quote.h.
62743 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
62744 from tar's src/misc.c.
62745 * lib/quote.h: New file. Prototypes for same.
62747 2000-07-14 Paul Eggert <eggert@twinsun.com>
62749 From a suggestion by Bruno Haible.
62750 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62751 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62752 to decide whether to define the BeOS workaround macro;
62753 this adjusts to the change to AC_MBSTATE_T.
62755 2000-07-14 Jim Meyering <meyering@lucent.com>
62757 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62758 jm_AC_TYPE_UINTMAX_T.
62760 2000-07-13 Paul Eggert <eggert@twinsun.com>
62762 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62764 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62765 quotearg_buffer_restyled): Add support for
62766 clocale_quoting_style. Undo previous change to
62767 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62768 and "{RIGHT QUOTATION MARK}" msgids.
62770 2000-07-10 Paul Eggert <eggert@twinsun.com>
62772 From a suggestion by Bruno Haible.
62773 * m4/mbstate_t.m4 (AC_MBSTATE_T):
62774 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
62775 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62776 and mbstate_t, to a single-part test that simply defines mbstate_t.
62777 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62778 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62780 2000-07-10 Jim Meyering <meyering@lucent.com>
62782 * m4/strerror_r.m4: Mirror the correction made in autoconf.
62784 * m4/gnu-source.m4: Output to confdefs.h directly.
62785 Suggestion from Akim Demaille.
62787 2000-07-09 Paul Eggert <eggert@twinsun.com>
62789 The old behavior of quoting `like this' doesn't look good with
62790 newer, ISO-style fonts. See:
62791 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62793 Instead, quote "like this" by default. Let the translator
62794 tailor the locale-specific quoting behavior by providing
62795 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62797 * lib/quotearg.c (N_): New macro.
62798 (gettext_default): New function.
62799 (quotearg_buffer_restyled): Use
62800 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62801 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62803 2000-07-09 Jim Meyering <meyering@lucent.com>
62805 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62806 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
62808 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62809 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62811 2000-07-09 Jim Meyering <meyering@lucent.com>
62813 * lib/Most files: Update copyright dates to include 2000.
62815 2000-07-08 Jim Meyering <meyering@lucent.com>
62817 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62819 (xgethostname): Remove now-unnecessary #ifdef.
62820 Move declaration of `err' into loop where it's used.
62822 2000-07-05 Paul Eggert <eggert@twinsun.com>
62823 and Bruno Haible <haible@clisp.cons.org>
62825 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62826 only if the test for an object-type mbstate_t fails. This
62827 prevents us from mistakenly reporting that mbstate_t is a
62828 system object type after we "#define mbstate_t int" to work
62831 2000-07-05 Paul Eggert <eggert@twinsun.com>
62832 and Bruno Haible <haible@clisp.cons.org>
62834 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62836 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62838 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62840 Include <ctype.h> for use of isalpha.
62842 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62844 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62845 by allocating a larger buffer. Test the gethostname return value for
62846 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
62847 returns an error and ENAMETOOLONG isn't defined.
62849 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62851 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62854 2000-07-04 Jim Meyering <meyering@lucent.com>
62856 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62857 of the deprecated AC_CHECKING.
62859 2000-07-04 Jim Meyering <meyering@lucent.com>
62861 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62862 Reported by Bruno Haible.
62864 2000-07-04 Jim Meyering <meyering@lucent.com>
62866 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62867 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
62870 2000-07-03 Paul Eggert <eggert@twinsun.com>
62872 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62873 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62875 2000-07-03 Paul Eggert <eggert@twinsun.com>
62876 and Bruno Haible <haible@clisp.cons.org>
62878 * lib/quotearg.c (mbrtowc):
62879 Assign to *pwc, and return 1 only if result is nonzero.
62880 (iswprint): Use ISPRINT when substituting our own mbrtowc.
62882 2000-07-03 Jim Meyering <meyering@lucent.com>
62884 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62886 2000-07-03 Jim Meyering <meyering@lucent.com>
62888 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62889 This is necessary to get a definition of e.g., UTMP_FILE on
62893 2000-07-02 Jim Meyering <meyering@lucent.com>
62895 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62897 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62898 AC_LIBOBJ(function_name).
62899 * m4/chown.m4: Likewise.
62900 * m4/fnmatch.m4: Likewise.
62901 * m4/ftruncate.m4: Likewise.
62902 * m4/getgroups.m4: Likewise.
62903 * m4/getline.m4: Likewise.
62904 * m4/group-member.m4: Likewise.
62905 * m4/jm-macros.m4: Likewise.
62906 * m4/lstat.m4: Likewise.
62907 * m4/malloc.m4: Likewise.
62908 * m4/memcmp.m4: Likewise.
62909 * m4/nanosleep.m4: Likewise.
62910 * m4/putenv.m4: Likewise.
62911 * m4/realloc.m4: Likewise.
62912 * m4/regex.m4: Likewise.
62913 * m4/stat.m4: Likewise.
62914 * m4/strftime.m4: Likewise.
62916 2000-07-02 Jim Meyering <meyering@lucent.com>
62918 * lib/quotearg.c (mbstate_t): Don't define here.
62920 2000-07-02 Jim Meyering <meyering@lucent.com>
62922 * lib/nanosleep.c (SIGCONT): Define if not already defined.
62924 2000-07-01 Jim Meyering <meyering@lucent.com>
62926 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62928 2000-07-01 Jim Meyering <meyering@lucent.com>
62930 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62933 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62935 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62936 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62938 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62940 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62941 per change in ../m4/ls-mntd-fs.m4.
62942 (read_filesystem_list): Ignore symbolic links.
62944 2000-06-29 Jim Meyering <meyering@lucent.com>
62946 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62947 for declaration of strcmp.
62949 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62951 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62952 Avoid warning by casting result to `char *' to remove `const'.
62954 2000-06-28 Jim Meyering <meyering@lucent.com>
62956 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
62957 included by quotearg.c, for which we perform this test. From
62960 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62962 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62963 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62964 <utmpx.h> exists, put readutmp.o into LIBOBJS.
62966 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62968 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62970 2000-06-26 Paul Eggert <eggert@twinsun.com>
62972 savedir now sets errno on failure and invokes xmalloc to get memory.
62973 Fix a couple of other minor bugs while we're at it.
62975 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62976 (NAMLEN): Remove macro.
62977 (malloc, realloc): Remove decls.
62978 (stpcpy): Likewise.
62979 ("xalloc.h"): Include.
62980 (NAME_SIZE_DEFAULT): New macro.
62981 (savedir): Use xmalloc / xrealloc to allocate memory.
62982 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62983 Skip "" directory entries.
62984 Use strlen to calculate directory entry length, since the old method
62985 is rarely used these days and isn't worth supporting.
62986 Don't use a pointer after freeing it.
62987 Check for integer overflow when calculating allocation size.
62988 Use memcpy to copy entries, instead of stpcpy.
62989 Set errno properly when returning NULL.
62990 Check for readdir error.
62992 2000-06-26 Jim Meyering <meyering@lucent.com>
62994 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62996 2000-06-25 Jim Meyering <meyering@lucent.com>
62998 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62999 Linux header bug when _XOPEN_SOURCE is defined to 500.
63001 2000-06-25 Bruno Haible <haible@clisp.cons.org>
63003 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63006 2000-06-25 Bruno Haible <haible@clisp.cons.org>
63008 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63010 Don't include <stdlib.h>. Don't declare malloc, realloc.
63012 2000-06-24 Jim Meyering <meyering@lucent.com>
63014 * m4/strerror_r.m4: Revive this file -- to try out an experimental
63015 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63016 for which strerror does return char*, but which lacks a conveniently
63017 accessible declaration of the function. If the compile-test says
63018 strerror_r doesn't work, then resort to a `run'-test that works on
63019 BeOS and segfaults on DEC Unix.
63021 2000-06-24 Jim Meyering <meyering@lucent.com>
63023 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63025 2000-06-23 Paul Eggert <eggert@twinsun.com>
63027 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63028 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
63030 2000-06-23 Paul Eggert <eggert@twinsun.com>
63032 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63033 (mbrtowc, mbstate_t): Define substitutes if
63034 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63035 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63036 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63038 2000-06-23 Jim Meyering <meyering@lucent.com>
63040 * m4/afs.m4: Add missing AC_MSG_RESULT.
63041 Reported by Bruno Haible.
63043 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63044 Suggestion from Bruno Haible.
63046 2000-06-23 Jim Meyering <meyering@lucent.com>
63048 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
63050 2000-06-21 Jim Meyering <meyering@lucent.com>
63052 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63054 2000-06-21 Jim Meyering <meyering@lucent.com>
63056 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63057 (noinst_HEADERS): Add getstr.h.
63059 * lib/getline.c (getstr): Move into a separate file.
63060 * lib/getstr.c (getstr): New file, extracted from getline.c, with
63061 the following changes: new parameter, delim2; both delim[12]
63062 parameters have type `int', not `char'. The latter would lose
63063 with 8-bit delimiters.
63064 * lib/getstr.h: New file.
63066 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63068 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63069 than 1024, return a memory chunk of least possible size, instead
63070 of size PATH_MAX + 2. In the loop, increment the size proportionally.
63071 Use free/xmalloc instead of xrealloc to avoid copying for very long
63074 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63076 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63079 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63081 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63082 address, not strdup. Include <stdlib.h> and don't declare free().
63084 2000-06-19 Jim Meyering <meyering@lucent.com>
63086 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63088 2000-06-18 Jim Meyering <meyering@lucent.com>
63090 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63092 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63093 `checking whether...' message to be consistent with that of the
63096 2000-06-18 Jim Meyering <meyering@lucent.com>
63098 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63099 Besides, these days every porting target provides a mkdir function.
63101 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63102 needed. (this snippet comes from src/system.h).
63104 2000-06-16 Bruno Haible <haible@clisp.cons.org>
63106 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63108 2000-06-15 Paul Eggert <eggert@twinsun.com>
63110 * lib/human.c (adjust_value): New function.
63111 (human_readable_inexact): Apply rounding style even when
63112 printing approximate values.
63114 2000-06-14 Paul Eggert <eggert@twinsun.com>
63116 * lib/human.c (human_readable_inexact): Allow an input block
63117 size that is not a multiple of the output block size, and vice versa.
63118 Reported by Piergiorgio Sartor.
63120 2000-06-14 Paul Eggert <eggert@twinsun.com>
63122 * lib/getdate.y (get_date): Apply relative times after time
63123 zone indicator, not before. Reported by Todd A. Jacobs.
63125 2000-06-13 Jim Meyering <meyering@lucent.com>
63127 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63129 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63131 2000-06-12 Paul Eggert <eggert@twinsun.com>
63133 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63135 2000-06-12 Jim Meyering <meyering@lucent.com>
63137 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63138 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63140 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63141 the optional argument, `lib'.
63143 2000-06-08 Jim Meyering <meyering@lucent.com>
63145 * m4/largefile.m4: Remove file (now that it's part of autoconf).
63147 2000-06-04 Paul Eggert <eggert@twinsun.com>
63149 Rewrite largefile configuration so that we don't need to run
63150 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
63151 AC_CANONICAL_HOST in configure.in -- jmm]
63153 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63154 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63155 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63156 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63157 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63159 Instead of inspecting the output of getconf, try to compile the
63160 test program without and with the macro definition.
63161 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63162 for getconf. Instead, check for the needed flags by compiling
63165 2000-06-04 Paul Eggert <eggert@twinsun.com>
63167 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63169 2000-06-04 Jim Meyering <meyering@lucent.com>
63171 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63172 SunOS 4.1.4 for which gid_t is an unsigned type.
63174 2000-06-03 Jim Meyering <meyering@lucent.com>
63176 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63177 now that autoconf requires that.
63179 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63180 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63181 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63183 2000-06-03 Jim Meyering <meyering@lucent.com>
63185 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63187 2000-06-03 Bruno Haible <haible@clisp.cons.org>
63189 * m4/glibc21.m4: New file.
63190 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63192 2000-06-03 Bruno Haible <haible@clisp.cons.org>
63194 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63195 newer, don't install charset.alias.
63196 * lib/config.charset: Change the Linux/glibc rules so they become empty
63197 on glibc-2.1 or newer.
63199 2000-06-02 Jim Meyering <meyering@lucent.com>
63201 * lib/mountlist.c: Back out last change. Instead, do this...
63202 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63203 me_dummy member using the same `ignore'-testing code.
63204 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63208 2000-05-29 Jim Meyering <meyering@lucent.com>
63210 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63211 mounts with the `ignore' attribute. Based on a patch from
63214 2000-05-28 Jim Meyering <meyering@lucent.com>
63216 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63217 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63218 * m4/stat.m4: Likewise.
63219 * m4/lstat.m4: Likewise.
63220 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63222 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63223 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63225 2000-05-26 Jim Meyering <meyering@lucent.com>
63227 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63229 2000-05-24 Jim Meyering <meyering@lucent.com>
63231 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63232 autoconf requires that.
63233 * m4/lib-check.m4: Likewise.
63234 * m4/jm-macros.m4: Likewise.
63235 * m4/strftime.m4: Likewise.
63237 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63238 AC_CHECK_DECLS, now that autoconf requires that.
63240 2000-05-22 Jim Meyering <meyering@lucent.com>
63242 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63243 * m4/lstat.m4: Likewise.
63245 2000-05-22 Jim Meyering <meyering@lucent.com>
63247 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63249 2000-05-20 Jim Meyering <meyering@lucent.com>
63251 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63252 (jm_PREREQ): Use it.
63254 2000-05-18 Jim Meyering <meyering@lucent.com>
63256 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63257 back, too, since it may have been modified by allocate_entry.
63258 (hash_delete): Rewrite to use neither the assignment operator
63259 nor the comma operator in an if-expression.
63261 2000-05-15 Paul Eggert <eggert@twinsun.com>
63264 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63265 Remove; no longer needed.
63266 "quotearg.h": Add include.
63267 (file_name): Do not bother to explicitly initialize to NULL; it's less
63268 efficient on some hosts.
63269 (close_stdout_status): Remove test as to whether stdout was already
63270 closed; it breaks for the case "echo x | sort >&-".
63271 Quote file name colons.
63272 Do not assume that _("write error") lacks format strings.
63274 2000-05-15 Jim Meyering <meyering@lucent.com>
63276 * lib/version-etc.c (version_etc_copyright): Update the copyright
63277 string used in all --version output.
63279 2000-05-14 Jim Meyering <meyering@lucent.com>
63281 * lib/closeout.c (close_stdout_set_file_name): New function.
63282 (close_stdout_status): Use new file-scoped global.
63283 Return right away if fstat says the stdout file descriptor is invalid.
63284 * lib/closeout.h (close_stdout_set_file_name): Declare.
63286 2000-05-10 Jim Meyering <meyering@lucent.com>
63288 * lib/closeout.c [default_exit_status]: New file-scoped variable.
63289 (close_stdout_set_status): New function.
63290 * lib/closeout.h (close_stdout_set_status): Declare.
63292 2000-05-09 Jim Meyering <meyering@lucent.com>
63294 * m4/gettext.m4: Rename this...
63295 * m4/libintl.m4: ...to this.
63297 2000-05-08 Jim Meyering <meyering@lucent.com>
63299 * lib/long-options.c: Don't include closeout.h.
63300 (parse_long_options): Don't call close_stdout for --version.
63302 2000-05-06 Paul Eggert <eggert@twinsun.com>
63304 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63305 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63306 2.1.3 bug. This avoids a clash when files like regex.c define
63309 2000-05-06 Jim Meyering <meyering@lucent.com>
63311 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63312 (AC_REPLACE_FUNCS): Add strnlen.
63314 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63315 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63317 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63318 AC_SEARCH_LIBS call for nanosleep.
63319 (LIB_NANOSLEEP): Set and AC_SUBST.
63321 2000-05-06 Jim Meyering <meyering@lucent.com>
63323 * lib/strnlen.c: Undefine __strnlen and strnlen.
63324 [!weak_alias]: Define __strnlen to strnlen.
63326 * lib/atexit.c: New file, from libiberty.
63328 2000-05-06 Jim Meyering <meyering@lucent.com>
63330 * lib/closeout.c (close_stdout_status): Also check for errors on the
63333 2000-05-05 Jim Meyering <meyering@lucent.com>
63335 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63336 AC_SEARCH_LIBS call for clock_gettime.
63337 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63339 * m4/search-libs.m4: Update from autoconf.
63341 su doesn't work on Solaris 2.6.
63342 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63343 <shadow.h>. Reported by Dragos Harabor.
63345 2000-05-05 Bruno Haible <haible@clisp.cons.org>
63347 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63348 memcpy instead of xmalloc, xrealloc, path_concat.
63349 (locale_charset): Treat empty environment variables as absent.
63350 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63352 2000-05-04 Jim Meyering <meyering@lucent.com>
63354 * lib/getopt.c: Update from glibc.
63355 * lib/obstack.c: Likewise.
63356 * lib/obstack.h: Likewise.
63357 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
63360 * lib/regex.h: Likewise.
63361 * lib/strndup.c: Likewise.
63362 * lib/strnlen.c: New file, from glibc.
63364 2000-05-03 Jim Meyering <meyering@lucent.com>
63366 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63368 2000-05-02 Paul Eggert <eggert@twinsun.com>
63370 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63371 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
63372 compile-time test, rather than inspecting host and OS, to
63373 decide whether to define _LARGEFILE_SOURCE.
63375 2000-05-01 Jim Meyering <meyering@lucent.com>
63377 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63379 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63380 Based on a patch from Bruno Haible.
63382 2000-05-01 Jim Meyering <meyering@lucent.com>
63384 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63386 2000-04-29 Jim Meyering <meyering@lucent.com>
63388 * lib/path-concat.c: Declare strdup only if it's not defined.
63389 * lib/canon-host.c: Likewise.
63391 2000-04-28 Jim Meyering <meyering@lucent.com>
63393 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63394 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
63395 is included first, then limits.h is included by locale.h by libintl.h.
63396 From John David Anglin.
63398 2000-04-25 Jim Meyering <meyering@lucent.com>
63400 * lib/makepath.c (S_IRWXUGO): Define.
63401 (make_path): Always perform explicit chmod if MODE specifies any
63402 of the `special' permission bits. Prompted by a bug report against
63403 install from Mate Wierdl and Joost van Baal.
63405 2000-04-18 Jim Meyering <meyering@lucent.com>
63407 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63408 (jm_PREREQ): Use it.
63410 2000-04-18 Jim Meyering <meyering@lucent.com>
63412 * lib/README: New file.
63414 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63415 getpagesize. For BeOS. Based on a patch from Bruno Haible.
63417 2000-04-17 Jim Meyering <meyering@lucent.com>
63420 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63421 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
63422 Suggestion from Akim Demaille.
63424 2000-04-17 Jim Meyering <meyering@lucent.com>
63426 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63427 the definition of it to rpl_strftime also defined-away the system's
63430 2000-04-15 Jim Meyering <meyering@lucent.com>
63432 Use `C' to denote so-called `contiguous' files, the same way
63434 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63435 (ftypelet): Use S_ISCTG.
63436 From Michael Deutschmann.
63438 2000-04-14 Jim Meyering <meyering@lucent.com>
63440 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63441 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
63444 2000-04-14 Jim Meyering <meyering@lucent.com>
63446 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63448 2000-04-13 Jim Meyering <meyering@lucent.com>
63450 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63451 AH_VERBATIM to insert required #ifndef into config.h.in.
63452 Suggestion from Akim Demaille.
63454 2000-04-12 Jim Meyering <meyering@lucent.com>
63456 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63457 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
63458 Christian Krackowizer.
63460 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63461 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63462 (AC_SYS_LARGEFILE): Require.
63463 (AM_C_PROTOTYPES): Require.
63465 2000-04-08 Jim Meyering <meyering@lucent.com>
63467 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63468 names don't conflict. Reported by Eli Zaretskii.
63470 2000-04-07 Jim Meyering <meyering@lucent.com>
63472 * lib/putenv.c: Move inclusion of errno.h so it follows that of
63473 sys/types.h, to work around system header problems on AIX 3.2.5.
63476 2000-04-07 Bruno Haible <haible@clisp.cons.org>
63478 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63479 bug. Deal with the different error behavior of Irix iconv.
63481 2000-04-05 Paul Eggert <eggert@twinsun.com>
63483 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63484 IRIX if the installer said otherwise.
63486 2000-04-05 Jim Meyering <meyering@lucent.com>
63488 Portability tweaks required for ultrix4.3.
63489 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63490 (jm_CHECK_DECLS): Add getutent to the list of functions.
63491 (_jm_DECL_HEADERS): Add utmpx.h.
63492 From John David Anglin.
63494 * m4/strftime.m4: Back out the 2000-04-02 change.
63495 Instead of that change, simply undefine putenv in the test program.
63497 2000-04-05 Jim Meyering <meyering@lucent.com>
63499 Portability tweaks required for ultrix4.3.
63500 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63502 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63503 * lib/canon-host.c: Declare strdup.
63504 * lib/path-concat.c: Likewise.
63505 From John David Anglin.
63507 2000-04-04 Jim Meyering <meyering@lucent.com>
63509 Be more DOS 8.3-friendly.
63510 * lib/ref-add.sin: Renamed from ref-add.sed.in.
63511 * lib/ref-del.sin: Renamed from ref-del.sed.in.
63512 * lib/Makefile.am: Reflect renaming.
63513 Reported by Eli Zaretskii.
63515 Use a temporary file name that won't clash with `charset.alias'
63516 in the DOS 8.3 name space.
63517 * lib/Makefile.am (charset_tmp): Define.
63518 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63519 (uninstall-local): Likewise.
63520 Reported by Eli Zaretskii.
63522 2000-04-03 Jim Meyering <meyering@lucent.com>
63524 * m4/gettext.m4: Fix typo in comment.
63526 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63527 textutils/configure.in). Suggestion from Paul Eggert.
63528 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
63530 2000-04-02 Paul Eggert <eggert@twinsun.com>
63532 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63533 variable in the shell rather than using putenv, which isn't
63534 portable. This avoids the configure-time inter-test dependency
63535 on the potentially-renamed putenv function.
63537 2000-03-30 Paul Eggert <eggert@twinsun.com>
63539 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63540 before checking struct stat.st_blksize, so that
63541 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63543 2000-03-29 Paul Eggert <eggert@twinsun.com>
63545 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63546 since strftime.c uses HAVE_STRFTIME to decide whether to use
63547 the underlying strftime.
63549 2000-03-29 Paul Eggert <eggert@twinsun.com>
63551 * lib/time/strftime.c (my_strftime): Make sure we call the system
63552 strftime, not ourselves, when invoking the underlying strftime.
63554 2000-03-24 Jim Meyering <meyering@lucent.com>
63556 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63557 (charset_alias): Define.
63558 (install-exec-local): Factor out common code.
63559 (uninstall-local): Split lines longer than 80.
63560 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63561 (SUFFIXES): Define.
63562 (.sed.in.sed): New rule. Don't redirect directly to $@.
63563 (CLEANFILES): Add ref-add.sed and ref-del.sed.
63565 2000-03-19 Bruno Haible <haible@clisp.cons.org>
63567 * lib/config.charset: Output a line containing "Packages using this
63569 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63570 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63571 ref-del.sed): New rules.
63573 2000-03-17 Jim Meyering <meyering@lucent.com>
63575 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63576 Otherwise, include <strings.h>
63578 2000-03-17 Bruno Haible <haible@clisp.cons.org>
63580 * lib/unicodeio.c (utf8_wctomb): New function.
63581 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63582 format instead of in UCS-4 with platform dependent endianness.
63584 2000-03-10 Jim Meyering <meyering@lucent.com>
63586 * m4/lib-check.m4: Look for getspnam in -lgen, too.
63587 From Marco Franzen.
63589 2000-03-07 Paul Eggert <eggert@twinsun.com>
63591 * lib/savedir.c (savedir): Work even if directory size is
63592 negative; this can happen with some screwy NFS configurations.
63594 2000-03-06 Jim Meyering <meyering@lucent.com>
63596 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63597 if it's NULL (because we ran out of memory). From Bruno Haible.
63599 2000-03-05 Jim Meyering <meyering@lucent.com>
63601 * lib/localcharset.c ("path-concat.h"): Include.
63602 (get_charset_aliases): Use path_concat instead of ANSI string
63605 * lib/unicodeio.h (PARAMS): Define.
63606 Use it to guard prototype.
63608 2000-03-04 Jim Meyering <meyering@lucent.com>
63610 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63611 for lib/localcharset.c.
63613 2000-03-04 Jim Meyering <meyering@lucent.com>
63615 * lib/Makefile.am (install-exec-local): Create $(libdir) before
63616 installing into it.
63617 (uninstall-local): Uncomment this rule so `make distcheck' works
63620 * lib/unicodeio.c (<errno.h>): Include it.
63621 (errno): Declare if not defined.
63623 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63625 * lib/config.charset: New version, incorporating remarks from a linux
63626 i18n mailing list. From Bruno Haible.
63628 2000-03-04 Bruno Haible <haible@clisp.cons.org>
63630 * m4/codeset.m4: New file.
63631 * m4/iconv.m4: New file.
63632 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63634 2000-03-03 Jim Meyering <meyering@lucent.com>
63636 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63638 2000-03-02 Jim Meyering <meyering@lucent.com>
63640 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63641 the messages come out on separate lines.
63643 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63644 rather than jm_CHECK_DECLARATIONS.
63645 * m4/decl.m4: Remove now-unused file.
63647 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63650 2000-03-02 Jim Meyering <meyering@lucent.com>
63652 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63654 2000-03-01 Jim Meyering <meyering@lucent.com>
63656 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63657 * lib/unicodeio.c: Likewise.
63659 2000-03-01 Bruno Haible <haible@clisp.cons.org>
63661 * lib/config.charset: New file.
63662 * lib/localcharset.c: New file.
63663 * lib/unicodeio.h, lib/unicodeio.c: New files.
63664 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63665 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63666 (noinst_HEADERS): Add unicodeio.h.
63667 (all-local, install-exec-local, charset.alias): New targets.
63669 2000-02-28 Paul Eggert <eggert@twinsun.com>
63671 * lib/quotearg.c (ALERT_CHAR): New macro.
63672 (quotearg_buffer_restyled): Use it.
63674 2000-02-27 Jim Meyering <meyering@lucent.com>
63676 * m4/check-decl.m4: Add getenv to the list.
63678 2000-02-27 Jim Meyering <meyering@lucent.com>
63680 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63681 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63683 * lib/backupfile.c: Guard inclusion of stdlib.h with
63684 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63685 Declare malloc if needed.
63687 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63688 `#ifndef HAVE_DECL..'
63689 now that autoconf always defines the HAVE_DECL_ symbols.
63690 * lib/human.c: Likewise.
63691 * lib/same.c: Likewise.
63692 * lib/strtoumax.c: Likewise.
63694 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63695 declaration check was not run.
63696 * lib/hash.c: Likewise.
63697 * lib/human.c: Likewise.
63698 * lib/same.c: Likewise.
63699 * lib/strtoumax.c: Likewise.
63701 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63702 `.', then first look up the entire `.'-containing string as a login
63705 2000-02-23 Jim Meyering <meyering@lucent.com>
63707 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63708 in place of my hack.
63710 2000-02-18 Paul Eggert <eggert@twinsun.com>
63712 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63713 (textint): New typedef.
63714 (parser_control): Member year changed from int to textint.
63716 (YYSTYPE): Removed; replaced by %union with int and textint members.
63717 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63718 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63719 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63720 (tSNUMBER, tUNUMBER): Now of type <textintval>.
63721 (date, number, to_year): Use width of number in digits, not its value,
63722 to determine whether it's a 2-digit year, or a 2-digit time.
63723 (yylex): Store number of digits of numeric tokens.
63724 Reported by John Kendall.
63726 (parser_control): Changed from struct parser_control to typedef (for
63727 consistency). All uses changed.
63729 (tID): Removed; not used.
63730 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63732 2000-02-14 Paul Eggert <eggert@twinsun.com>
63734 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63735 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63737 2000-02-12 Jim Meyering <meyering@lucent.com>
63739 * lib/userspec.c (ISDIGIT): Define it.
63740 (isdigit): Remove definition.
63741 (is_number): Use ISDIGIT, not isdigit.
63742 <libintl.h>: Include.
63743 (_ and N_): Define.
63744 (parse_user_spec): Mark translatable strings.
63746 2000-02-10 Jim Meyering <meyering@lucent.com>
63748 With these changes, nanosleep.[ch] are finally enough like the other
63749 lib/* replacement files to compile on a few more losing systems.
63751 * lib/nanosleep.h: Don't include config.h.
63752 Remove prototype from declaration of nanosleep.
63753 (PARAMS): Remove now-unneeded definition.
63754 * lib/nanosleep.c: #undef nanosleep.
63755 (rpl_nanosleep): Rename from nanosleep.
63757 2000-02-10 Jim Meyering <meyering@lucent.com>
63759 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63760 gnu_nanosleep to rpl_nanosleep.
63762 2000-02-09 Jim Meyering <meyering@lucent.com>
63764 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63765 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
63767 2000-02-08 Akim Demaille <akim@epita.fr>
63769 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63770 `[' and `]' and remove uses of `changequote'.
63771 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63772 (AC_SYS_LARGEFILE): Likewise.
63773 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63774 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63776 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63777 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63778 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63779 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63781 2000-02-05 Jim Meyering <meyering@lucent.com>
63783 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63784 Remove explicit use of AC_HEADER_TIME. It is required by
63785 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
63786 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63787 in autoconf whereby the expansion of the latter ended up preceding
63788 the expansion of its prerequisite, AC_HEADER_TIME.
63789 Reported by Volker Borchert.
63791 2000-02-03 Jim Meyering <meyering@lucent.com>
63793 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63795 2000-02-03 Jim Meyering <meyering@lucent.com>
63797 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63798 rather than with `#if HAVE_UTMPNAME'.
63800 2000-02-02 Jim Meyering <meyering@lucent.com>
63802 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63803 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63804 Reported by Eli Zaretskii.
63806 2000-02-01 Jim Meyering <meyering@lucent.com>
63808 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
63810 2000-01-31 Jim Meyering <meyering@lucent.com>
63812 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63813 functions. Add the time.h and sys/time.h headers along with the
63814 AC_REQUIRE'ment of AC_HEADER_TIME.
63816 2000-01-31 Jim Meyering <meyering@lucent.com>
63818 * lib/nanosleep.h (nanosleep): Guard declaration with
63819 `#if ! HAVE_DECL_NANOSLEEP'.
63820 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63821 the declaration in that vendor's sys/timers.h.
63822 Reported by Christian Krackowizer.
63824 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63825 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63826 (ISPRINT): Likewise.
63827 Reported by Tom Tromey.
63829 2000-01-30 Jim Meyering <meyering@lucent.com>
63831 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63833 * m4/prereq.m4 (utmp_includes): Define.
63834 Check for ut_user and ut_name members in both struct utmpx
63837 2000-01-30 Jim Meyering <meyering@lucent.com>
63839 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63840 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
63841 header files where only utmpx.ut_user is declared.
63843 * lib/readutmp.h (UT_USER): Define.
63845 2000-01-29 Jim Meyering <meyering@lucent.com>
63847 * m4/lib-check.m4: New file containing library-related checks from
63848 fileutils and sh-utils (textutils had none).
63850 2000-01-28 Jim Meyering <meyering@lucent.com>
63852 * m4/perl.m4: Change format of warning message to look more like that
63853 from the missing script. Suggestion from François Pinard.
63855 2000-01-25 Jim Meyering <meyering@lucent.com>
63857 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63858 well as time.h in the compile check.
63859 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63860 Fix typo in cross-compiling case: s/yes/no/.
63862 2000-01-23 Jim Meyering <meyering@lucent.com>
63864 * m4/jm-macros.m4: Move df-related tests here from
63865 fileutils/configure.in
63867 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63868 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63870 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
63871 s/space/ac_fsusage_space/.
63872 (jm_FILE_SYSTEM_USAGE): Take two parameters.
63874 * m4/ftruncate.m4: New file (derived from part of
63875 fileutils/configure.in).
63876 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63877 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63879 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63880 AC_SUBST these here, rather than just in sh-util/configure.in, so
63881 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63883 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63884 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63885 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63886 (AC_SUBST(POW_LIBM)): Likewise.
63887 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63889 2000-01-23 Jim Meyering <meyering@lucent.com>
63891 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63894 2000-01-22 Jim Meyering <meyering@lucent.com>
63896 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63898 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63900 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63902 (AC_CHECK_HEADERS): Likewise for sh-utils.
63903 (AC_CHECK_HEADERS): Likewise for textutils.
63904 Merge the three lists of headers.
63906 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
63907 from fileutils' configure.in.
63909 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63910 code. Moved tests into their own function (_jm_DECL_HEADERS) in
63913 * m4/check-decl.m4: Use #if rather than #ifdef.
63914 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63915 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63916 (_jm_DECL_HEADERS): Define new function.
63917 (jm_CHECK_DECLARATIONS): Require it.
63919 2000-01-22 Jim Meyering <meyering@lucent.com>
63921 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63922 [! HAVE_DECL_STRTOULL]: Declare strtoull.
63923 Required for some AIX systems. Reported by Christian Krackowizer.
63924 [TESTING] (main): New function.
63926 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
63927 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63930 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63933 * lib/strverscmp.c (ISDIGIT): Define.
63934 (strverscmp): Use ISDIGIT, not isdigit.
63936 2000-01-19 Jim Meyering <meyering@lucent.com>
63938 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63939 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
63940 defines `struct timespec' in <sys/time.h>
63942 * m4/c-bs-a.m4: Remove uses of changequote altogether.
63943 Thanks to Akim for explaining.
63945 2000-01-17 Paul Eggert <eggert@twinsun.com>
63947 * lib/nanosleep.c (nanosleep):
63948 Don't use SA_INTERRUPT to decide whether to call sigaction, as
63949 POSIX.1 doesn't require SA_INTERRUPT and some systems
63950 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
63951 it's been part of POSIX.1 since day 1 (in 1988).
63953 2000-01-17 Jim Meyering <meyering@lucent.com>
63955 * lib/interlock: Remove unused file. Reported by François Pinard.
63957 2000-01-16 Paul Eggert <eggert@twinsun.com>
63959 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63960 alert, backslash, formfeed, and vertical tab unnecessarily in
63961 shell quoting style.
63963 2000-01-16 Jim Meyering <meyering@lucent.com>
63965 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63966 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63967 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63968 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63970 2000-01-16 Jim Meyering <meyering@lucent.com>
63972 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63973 because the latter didn't work.
63975 2000-01-15 Jim Meyering <meyering@lucent.com>
63977 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63978 (AC_REPLACE_FUNCS): Add memcpy and memset.
63979 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63981 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63983 2000-01-12 Jim Meyering <meyering@lucent.com>
63985 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63986 (jm_PREREQ): Use it.
63987 (jm_PREREQ_READUTMP): New macro.
63988 (jm_PREREQ): Use it.
63990 2000-01-11 Paul Eggert <eggert@twinsun.com>
63992 Quote multibyte characters correctly.
63993 * m4/c-bs-a.m4: New file.
63994 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63995 (jm_PREREQ): Use it.
63997 2000-01-11 Paul Eggert <eggert@twinsun.com>
63999 * m4/uintmax_t.m4: Port to autoconf 2.13.
64001 2000-01-08 Jim Meyering <meyering@ascend.com>
64003 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64004 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64006 2000-01-04 Jim Meyering <meyering@ascend.com>
64008 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64009 jm_STRUCT_DIRENT_D_TYPE.
64010 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64011 jm_STRUCT_DIRENT_D_INO.
64012 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64014 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64016 * m4/utime.m4: Likewise.
64018 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64019 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64021 2000-01-03 Paul Eggert <eggert@twinsun.com>
64023 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64024 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64026 2000-01-02 Jim Meyering <meyering@ascend.com>
64028 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
64029 remember if this is necessary.
64031 1999-12-26 Jim Meyering <meyering@ascend.com>
64033 * m4/jm-macros.m4: Use it here.
64034 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64036 1999-12-23 Jim Meyering <meyering@ascend.com>
64038 * m4/jm-macros.m4: Check for clock_gettime (moved from
64039 fileutils/configure.in)
64040 Check for gettimeofday.
64042 1999-12-20 Jim Meyering <meyering@ascend.com>
64044 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64045 autoconf-2.14a-1999-12-20.
64047 1999-12-19 Jim Meyering <meyering@ascend.com>
64049 * m4/lstat-slash.m4: New file.
64050 * m4/jm-macros.m4: Use the new macro:
64051 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64053 1999-12-07 Jim Meyering <meyering@ascend.com>
64055 * m4/perl.m4: Require that File::Compare be available, too.
64056 Too many systems seem to lack it.
64058 * m4/strftime.m4: Add checks for most of the cpp macros tested in
64059 GNU's strftime.c. Prompted by a patch from Paul Eggert.
64061 1999-11-18 Paul Eggert <eggert@twinsun.com>
64063 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64064 problem with the QNX 4.25 shell, which doesn't propagate exit
64065 status of failed commands inside shell assignments.
64067 1999-11-17 Jim Meyering <meyering@ascend.com>
64069 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64071 1999-11-07 Jim Meyering <meyering@ascend.com>
64073 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64075 1999-11-06 Jim Meyering <meyering@ascend.com>
64077 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64078 * m4/jm-macros.m4 (jm_MACROS): Use it here.
64080 1999-11-05 Jim Meyering <meyering@ascend.com>
64082 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64083 configure.in of textutils, fileutils, and sh-utils into this one
64084 (shared between those packages) file.
64085 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64086 AC_STRUCT_ST_BLKSIZE.
64088 1999-11-03 Jim Meyering <meyering@ascend.com>
64090 * m4/ssize_t.m4: Remove file. No longer needed since the new version
64091 of AC_CHECK_TYPE checks includes unistd.h.
64092 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64093 Suggestion from Akim Demaille.
64095 1999-10-30 Jim Meyering <meyering@ascend.com>
64097 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
64099 * m4/ls-mntd-fs.m4: Likewise.
64100 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
64101 * m4/jm-winsz1.m4: Likewise.
64103 * m4/const.m4: Remove file, since the fix made it into the experimental
64104 version of autoconf.
64105 * m4/mktime.m4: Likewise.
64107 * m4/check-type.m4: Remove file, now that the latest version of
64108 AC_CHECK_TYPE takes a third arg to specify additional #includes.
64110 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64111 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64114 1999-10-04 Jim Meyering <meyering@ascend.com>
64116 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64118 1999-09-22 Paul Eggert <eggert@twinsun.com>
64120 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64121 2.95.1 bug with HP-UX 10.20.
64123 1999-09-17 Jim Meyering <meyering@ascend.com>
64125 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64126 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64127 due to missing strdup (against sh-utils-2.0).
64129 1999-08-29 Jim Meyering <meyering@ascend.com>
64131 * m4/jm-macros.m4: Require jm_BISON.
64132 * m4/bison.m4: New file.
64134 1999-08-17 Paul Eggert <eggert@twinsun.com>
64136 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64137 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64139 1999-08-05 Jim Meyering <meyering@ascend.com>
64141 * m4/getline.m4: Rename test file from conftestdata to conftest.data
64142 to avoid conflicts with `conftest' on 8+3 filesystems.
64143 Suggestion from Eli Zaretskii.
64145 1999-08-04 Jim Meyering <meyering@ascend.com>
64147 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64148 fileutils and sh-utils (textutils's getline test was inadequate).
64149 (AM_FUNC_GETLINE): Run this test.
64150 (AC_CHECK_FUNCS): Check for getdelim.
64151 Reported by Bob Proulx.
64153 1999-08-02 Jim Meyering <meyering@ascend.com>
64155 * m4/jm-macros.m4: Add a comment.
64157 1999-08-01 Paul Eggert <eggert@twinsun.com>
64159 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64160 <inttypes.h> defines strtoumax as a macro (and not as a
64163 1999-08-01 Paul Eggert <eggert@twinsun.com>
64165 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64166 that we can shift, multiply and divide unsigned long long
64167 values; Ultrix cc can't do it.
64169 1999-08-01 Paul Eggert <eggert@twinsun.com>
64171 * m4/mktime.m4: New file, which is a preview of what should appear
64172 in the next public autoconf release.
64174 1999-08-01 Paul Eggert <eggert@twinsun.com>
64176 * m4/lfs.m4: Remove this file.
64177 * m4/largefile.m4: New file. It contains the old contents of
64178 lfs.m4, except that all names with prefix AC_LFS have been
64179 changed to use the prefix AC_SYS_LARGEFILE instead, to be
64180 compatible with future autoconf versions. Also, some minor m4
64181 quoting problems have been fixed.
64183 1999-08-01 Paul Eggert <eggert@twinsun.com>
64185 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64186 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64187 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64188 and simplify the shell code.
64190 1999-08-01 Jim Meyering <meyering@ascend.com>
64192 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64195 1999-07-20 Jim Meyering <meyering@ascend.com>
64197 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64199 1999-07-15 Jim Meyering <meyering@ascend.com>
64201 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64203 1999-05-22 Jim Meyering <meyering@ascend.com>
64205 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64207 1999-05-20 Jim Meyering <meyering@ascend.com>
64209 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64210 Add a colon after each `then' in case $4 is empty.
64212 1999-05-16 Jim Meyering <meyering@ascend.com>
64214 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64216 1999-05-10 Jim Meyering <meyering@ascend.com>
64218 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64220 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64223 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
64225 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64227 1999-05-04 Paul Eggert <eggert@twinsun.com>
64229 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64230 not CPPFLAGS, so that linking works correctly in IRIX.
64232 1999-04-30 Paul Eggert <eggert@twinsun.com>
64234 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64236 1999-04-20 Paul Eggert <eggert@twinsun.com>
64238 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64239 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64240 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64241 jm_AC_TYPE_UNSIGNED_LONG_LONG.
64242 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64244 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
64246 1999-04-20 Jim Meyering <meyering@ascend.com>
64248 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64249 AC_REPLACE xstroull if necessary. From Paul Eggert.
64250 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64252 1999-04-18 Jim Meyering <meyering@ascend.com>
64254 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64255 * m4/jm-macros.m4: Use it.
64257 1999-04-06 Jim Meyering <meyering@ascend.com>
64259 * m4/strftime.m4: Remove test for %f.
64261 1999-03-29 Jim Meyering <meyering@ascend.com>
64263 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64264 superset of the AC_TYPE_* checks in the textutils, fileutils,
64265 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
64268 1999-03-28 Jim Meyering <meyering@ascend.com>
64270 * m4/jm-macros.m4: Define GNU_PACKAGE here.
64271 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64272 replaced e.g., in the *.sh files of the sh-utils.
64274 1999-03-20 Jim Meyering <meyering@ascend.com>
64276 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64277 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64278 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
64280 1999-03-19 Jim Meyering <meyering@ascend.com>
64282 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64284 1999-03-12 Jim Meyering <meyering@ascend.com>
64286 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64288 1999-03-07 Jim Meyering <meyering@ascend.com>
64290 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64293 1999-02-17 Jim Meyering <meyering@ascend.com>
64295 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64296 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
64298 1999-02-07 Jim Meyering <meyering@ascend.com>
64300 * m4/group-member.m4: New file -- extracted from sh-utils'
64303 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
64304 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64306 1999-02-06 Jim Meyering <meyering@ascend.com>
64308 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64309 * m4/fnmatch.m4: Likewise.
64310 * m4/getgroups.m4: Likewise.
64311 * m4/lstat.m4: Likewise.
64312 * m4/malloc.m4: Likewise.
64313 * m4/putenv.m4: Likewise.
64314 * m4/realloc.m4: Likewise.
64315 * m4/regex.m4: Likewise.
64316 * m4/stat.m4: Likewise.
64317 * m4/strftime.m4: Likewise.
64318 Suggestion from Alain Magloire.
64320 * m4/chown.m4: Use `.$ac_objext', not `.o'.
64321 * m4/fnmatch.m4: Likewise.
64322 * m4/getgroups.m4: Likewise.
64323 * m4/getline.m4: Likewise.
64324 * m4/lstat.m4: Likewise.
64325 * m4/malloc.m4: Likewise.
64326 * m4/memcmp.m4: Likewise.
64327 * m4/putenv.m4: Likewise.
64328 * m4/realloc.m4: Likewise.
64329 * m4/regex.m4: Likewise.
64330 * m4/stat.m4: Likewise.
64331 * m4/strftime.m4: Likewise.
64332 Suggestion from Alain Magloire.
64334 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64337 * m4/regex.m4: Add a run-time Test for proper operation of
64338 re_compile_pattern.
64340 1999-01-31 Jim Meyering <meyering@ascend.com>
64342 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64344 1999-01-30 Jim Meyering <meyering@ascend.com>
64346 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64348 * m4/jm-mktime.m4: Make this a wrapper around the official
64349 AM_FUNC_MKTIME rather than my private copy, now that the official one
64351 * m4/mktime.m4: Remove file.
64353 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64354 * m4/uptime.m4: Likewise.
64355 * m4/uintmax_t.m4: Likewise.
64357 1999-01-28 Jim Meyering <meyering@ascend.com>
64359 * m4/jm-macros.m4: Use jm_AFS.
64360 * m4/afs.m4: New file (from fileutils' configure.in).
64362 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64363 * m4/chown.m4: Likewise.
64364 * m4/d-ino.m4: Likewise.
64365 * m4/d-type.m4: Likewise.
64366 * m4/fnmatch.m4: Likewise.
64367 * m4/getgroups.m4: Likewise.
64368 * m4/gettext.m4: Likewise.
64369 * m4/jm-mktime.m4: Likewise.
64370 * m4/jm-winsz2.m4: Likewise.
64371 * m4/lcmessage.m4: Likewise.
64372 * m4/ls-mntd-fs.m4: Likewise.
64373 * m4/malloc.m4: Likewise.
64374 * m4/memcmp.m4: Likewise.
64375 * m4/putenv.m4: Likewise.
64376 * m4/realloc.m4: Likewise.
64377 * m4/st_mtim.m4: Likewise.
64378 * m4/strftime.m4: Likewise.
64380 1999-01-16 Jim Meyering <meyering@ascend.com>
64382 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64383 (ARGMATCH_DIE_DECL): Define.
64385 1999-01-12 Jim Meyering <meyering@ascend.com>
64387 * m4/Makefile.am.in: Rewrite to avoid using fmt.
64388 Reported by Lars Hecking.
64390 1999-01-10 Jim Meyering <meyering@ascend.com>
64392 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64394 * m4/inttypes_h.m4: Likewise.
64395 * m4/lstat.m4: Likewise.
64396 * m4/malloc.m4: Likewise.
64397 * m4/readdir.m4: Likewise.
64398 * m4/realloc.m4: Likewise.
64399 * m4/st_dm_mode.m4: Likewise.
64400 * m4/stat.m4: Likewise.
64401 * m4/utimbuf.m4: Likewise.
64402 * m4/utimes.m4: Likewise.
64404 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64405 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
64406 comments in config.h.in are meaningful.
64408 * m4/jm-macros.m4: Require autoconf-2.13 here.
64410 * m4/regex.m4: By default, don't use the included regex.c on systems
64411 with glibc 2. Suggestion from Uli Drepper.
64413 1999-01-02 Jim Meyering <meyering@ascend.com>
64415 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64417 1998-12-18 Jim Meyering <meyering@ascend.com>
64419 * m4/Makefile.am.in (Makefile.am): Simplify rule.
64420 Based on a suggestion from Lars Hecking.
64422 1998-11-16 Paul Eggert <eggert@twinsun.com>
64424 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64426 1998-11-16 Jim Meyering <meyering@ascend.com>
64428 * m4/lfs.m4: Double-quote the `uname...` expression.
64430 1998-11-14 Jim Meyering <meyering@ascend.com>
64432 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
64433 * m4/stat.m4: Likewise.
64435 1998-11-03 Jim Meyering <meyering@ascend.com>
64437 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64438 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64440 1998-10-18 Jim Meyering <meyering@ascend.com>
64442 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64444 1998-10-17 Jim Meyering <meyering@ascend.com>
64446 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64447 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64448 calls for those previously hard-coded headers. Instead, take a new
64450 (jm_CHECK_DECLARATIONS): Reflect interface change.
64451 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64452 (jm_CHECK_DECL_LOCALTIME_R): New macro.
64454 * m4/mktime.m4: Test for spring-forward gap before long-running test.
64456 1998-10-14 Jim Meyering <meyering@ascend.com>
64458 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64459 instead of "TZ=America/Vancouver". From Paul Eggert.
64461 1998-10-11 Jim Meyering <meyering@ascend.com>
64463 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64464 This adds a test for a recently added compatibility fix for mktime.c.
64465 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64467 1998-09-27 Jim Meyering <meyering@ascend.com>
64469 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64471 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
64472 ../configure.in, including a change from Gordon Matzigkeit to allow
64473 cross-compiling for the Hurd.
64475 * m4/glibc.m4: New file/macro to test for the GNU C Library
64476 versions 1 and 2. From Gordon Matzigkeit.
64479 1998-09-21 Jim Meyering <meyering@ascend.com>
64481 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
64483 1998-08-18 Paul Eggert <eggert@twinsun.com>
64485 Port nanosecond-resolution times to UnixWare 2.1.2 and
64486 pedantic Solaris 2.6.
64488 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64490 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64491 Generate name of ns member, instead of just 1 or undef.
64492 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64494 1998-08-15 Jim Meyering <meyering@ascend.com>
64496 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64497 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
64498 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64499 instead of jm_TYPE_SSIZE_T.
64501 1998-08-12 Jim Meyering <meyering@ascend.com>
64503 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
64505 1998-08-02 Jim Meyering <meyering@ascend.com>
64507 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64508 in acconfig.h manually.
64510 1998-07-31 Paul Eggert <eggert@twinsun.com>
64512 * m4/st_mtim.m4: New file.
64514 1998-07-28 Jim Meyering <meyering@ascend.com>
64516 * m4/utimes.m4: Undef stat.
64518 1998-07-25 Jim Meyering <meyering@ascend.com>
64520 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64521 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64523 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
64525 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64526 uid and gid actually remain unchanged.
64528 1998-07-07 Jim Meyering <meyering@ascend.com>
64530 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64532 1998-07-04 Jim Meyering <meyering@ascend.com>
64534 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
64535 to prove that this macro can be used in packages without regex.c.
64537 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
64539 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64542 1998-07-03 Jim Meyering <meyering@ascend.com>
64544 * m4/gettext.m4: Add -lintl if it's found to be necessary.
64546 * m4/gettext.m4: New file -- from gettext-0.10.35.
64547 * m4/lcmessage.m4: Likewise.
64548 * m4/progtest.m4: Likewise.
64550 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64551 * m4/jm-macros.m4: Require the new macro.
64553 1998-06-29 Jim Meyering <meyering@ascend.com>
64555 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
64556 for the definition of NGROUPS (used in a system header included
64559 1998-06-28 Jim Meyering <meyering@ascend.com>
64561 * m4/ls-mntd-fs.m4: New file.
64562 * m4/fstypename.m4: New file.
64564 * m4/jm-macros.m4: Require the new macro.
64565 * m4/jm-glibc-io.m4: New file.
64567 1998-05-19 Jim Meyering <meyering@ascend.com>
64569 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64570 * m4/lchown.m4: New file.
64572 * m4/Makefile.am.in: New file.
64573 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64575 1998-05-14 Jim Meyering <meyering@ascend.com>
64577 * m4/Makefile.am (EXTRA_DIST): Add them.
64578 * m4/jm-macros.m4: New file.
64579 * m4/utimbuf.m4: New file.
64581 1998-05-12 Jim Meyering <meyering@ascend.com>
64583 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64585 1998-05-11 Jim Meyering <meyering@ascend.com>
64587 * m4/isc-posix.m4: New file.
64589 1998-05-10 Jim Meyering <meyering@ascend.com>
64591 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64593 1998-05-09 Jim Meyering <meyering@ascend.com>
64595 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64596 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64599 * m4/ssize_t.m4: New file.
64600 * m4/mktime.m4: Remove file -- the new automake has this now.
64602 1998-04-26 Jim Meyering <meyering@ascend.com>
64604 * m4/assert.m4: New file.
64605 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64607 1998-04-05 Jim Meyering <meyering@ascend.com>
64609 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64610 (jm_PREREQ): Use it here.
64612 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
64614 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64617 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
64619 * m4/prereq.m4: New file.
64620 * m4/error.m4: New file.
64621 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64623 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
64625 * m4/getline.m4: Don't set am_cv_func_working_getline before the
64626 cache-check for the same variable -- that defeated the purpose of
64627 the test; the test program was never run. This was a problem only
64628 on systems with losing getline functions -- HP-UX 10.20 is one.
64629 Reported by Bjorn Helgaas.
64631 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
64633 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64635 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
64637 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64639 * m4/const.m4: New file. Use an initializer in this declaration
64640 typedef int charset[2]; const charset x;
64641 Reported by Bob Glickstein.
64643 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
64645 * m4/chown.m4: Fix reversed types on -1 args to chown.
64648 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
64650 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64651 Add lseek and memchr.
64653 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64654 T.E.Dickey <dickey@clark.net> said that some older preprocessors
64655 have a 20-character limit on names.
64657 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
64659 * m4/inttypes_h.m4: New file.
64660 * m4/uintmax_t.m4: New file.
64661 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64670 Copyright (C) 1997-2010 Free Software Foundation, Inc.
64672 Copying and distribution of this file, with or without
64673 modification, are permitted provided the copyright notice
64674 and this notice are preserved.