1 2010-03-26 Jim Meyering <meyering@redhat.com>
2 Eric Blake <eblake@redhat.com>
4 maint.mk: prohibit use of test's -o and -a operators
5 * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
7 2010-03-28 Bruno Haible <bruno@clisp.org>
9 Remove unused GNULIB_XYZ macro definitions.
10 * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
13 2010-03-28 Bruno Haible <bruno@clisp.org>
15 Mark privileged tests modules.
16 * modules/idpriv-drop-tests (Status): New section.
17 * modules/idpriv-droptemp-tests (Status): New section.
19 2010-03-28 Bruno Haible <bruno@clisp.org>
21 Split C++ tests into separate tests modules.
22 * modules/dirent-c++-tests: New file, extracted from
24 * modules/dirent-tests: Depend on it.
25 * modules/fcntl-h-c++-tests: New file, extracted from
26 modules/fcntl-h-tests.
27 * modules/fcntl-h-tests: Depend on it.
28 * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
29 * modules/glob-tests: Depend on it.
30 * modules/iconv-h-c++-tests: New file, extracted from
31 modules/iconv-h-tests.
32 * modules/iconv-h-tests: Depend on it.
33 * modules/langinfo-c++-tests: New file, extracted from
34 modules/langinfo-tests.
35 * modules/langinfo-tests: Depend on it.
36 * modules/locale-c++-tests: New file, extracted from
38 * modules/locale-tests: Depend on it.
39 * modules/math-c++-tests: New file, extracted from modules/math-tests.
40 * modules/math-tests: Depend on it.
41 * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
42 * modules/pty-tests: Depend on it.
43 * modules/search-c++-tests: New file, extracted from
45 * modules/search-tests: Depend on it.
46 * modules/signal-c++-tests: New file, extracted from
48 * modules/signal-tests: Depend on it.
49 * modules/spawn-c++-tests: New file, extracted from
51 * modules/spawn-tests: Depend on it.
52 * modules/stdio-c++-tests: New file, extracted from
54 * modules/stdio-tests: Depend on it.
55 * modules/stdlib-c++-tests: New file, extracted from
57 * modules/stdlib-tests: Depend on it.
58 * modules/string-c++-tests: New file, extracted from
60 * modules/string-tests: Depend on it.
61 * modules/sys_ioctl-c++-tests: New file, extracted from
62 modules/sys_ioctl-tests.
63 * modules/sys_ioctl-tests: Depend on it.
64 * modules/sys_select-c++-tests: New file, extracted from
65 modules/sys_select-tests.
66 * modules/sys_select-tests: Depend on it.
67 * modules/sys_socket-c++-tests: New file, extracted from
68 modules/sys_socket-tests.
69 * modules/sys_socket-tests: Depend on it.
70 * modules/sys_stat-c++-tests: New file, extracted from
71 modules/sys_stat-tests.
72 * modules/sys_stat-tests: Depend on it.
73 * modules/sys_time-c++-tests: New file, extracted from
74 modules/sys_time-tests.
75 * modules/sys_time-tests: Depend on it.
76 * modules/time-c++-tests: New file, extracted from modules/time-tests.
77 * modules/time-tests: Depend on it.
78 * modules/unistd-c++-tests: New file, extracted from
80 * modules/unistd-tests: Depend on it.
81 * modules/wchar-c++-tests: New file, extracted from
83 * modules/wchar-tests: Depend on it.
84 * modules/wctype-c++-tests: New file, extracted from
86 * modules/wctype-tests: Depend on it.
87 Reported by Simon Josefsson.
89 2010-03-28 Bruno Haible <bruno@clisp.org>
91 gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
92 * gnulib-tool (func_exists_module): New function, extracted from
94 (func_verify_module): Use it.
95 (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
96 'foo' only if 'foo' exists.
97 * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
100 2010-03-28 Bruno Haible <bruno@clisp.org>
102 gnulib-tool: Add support for special categories of tests.
103 * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
104 --with-privileged-tests, --with-unportable-tests, --with-all-tests.
105 (func_usage): Document them.
106 (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
107 inc_unportable_tests, inc_all_tests): New variables.
108 (func_acceptable): Consider these variables.
109 (func_modules_transitive_closure): Make it work when the 'Status' field
110 consists of multiple words.
111 (func_import): Store and restore the values of inc_cxx_tests,
112 inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
113 inc_all_tests in gnulib-comp.m4.
114 (func_create_testdir): Set inc_all_tests to true.
115 * doc/gnulib.texi (Extra tests modules): New section.
116 Suggested by Jim Meyering.
118 2010-03-28 Bruno Haible <bruno@clisp.org>
120 ansi-c++-opt: Allow turning off the C++ build by default.
121 * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
122 gl_CXX_CHOICE_DEFAULT_NO is defined.
123 Requested by Eric Blake.
125 2010-03-28 Bruno Haible <bruno@clisp.org>
127 unistd: Avoid #define replacements in C++ mode.
128 * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
129 getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
130 setsockopt, shutdown, select): In C++, attach a warning to the function
131 if possible, rather than #defining the symbol to a dysfunctional alias.
132 Reported by John W. Eaton <jwe@gnu.org>.
134 2010-03-28 Bruno Haible <bruno@clisp.org>
136 Fix link errors on mingw.
137 * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
138 * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
140 * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
143 2010-03-28 Bruno Haible <bruno@clisp.org>
144 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
146 lib-ignore: Determine different options for different compilers.
147 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
148 depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
150 (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
151 * NEWS: Mention the change.
153 2010-03-27 Bruno Haible <bruno@clisp.org>
155 Remove unused GNULIB_XYZ macro definitions.
156 * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
157 * modules/fseek (configure.ac): Likewise.
158 * modules/ioctl (configure.ac): Likewise.
159 * modules/open (configure.ac): Likewise.
160 * modules/stdlib-safer (configure.ac): Likewise.
162 2010-03-27 Bruno Haible <bruno@clisp.org>
164 Add a remark about certain modules.
165 * modules/malloc (Comment): New section.
166 * modules/realloc (Comment): Likewise.
167 * modules/sigpipe (Comment): Likewise.
169 2010-03-27 Bruno Haible <bruno@clisp.org>
171 Resolve conflict between the two kinds of module indicators.
172 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
173 GNULIB_TEST_XYZ instead of GNULIB_XYZ.
174 * modules/canonicalize (configure.ac): Invoke
175 gl_MODULE_INDICATOR_FOR_TESTS.
176 * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
178 * tests/test-dirent-c++.cc: Likewise.
179 * tests/test-dirent-safer.c: Likewise.
180 * tests/test-dup2.c: Likewise.
181 * tests/test-fchdir.c: Likewise.
182 * tests/test-fcntl-h-c++.cc: Likewise.
183 * tests/test-getopt.c: Likewise.
184 * tests/test-getopt.h: Likewise.
185 * tests/test-langinfo-c++.cc: Likewise.
186 * tests/test-locale-c++.cc: Likewise.
187 * tests/test-math-c++.cc: Likewise.
188 * tests/test-pty-c++.cc: Likewise.
189 * tests/test-search-c++.cc: Likewise.
190 * tests/test-signal-c++.cc: Likewise.
191 * tests/test-spawn-c++.cc: Likewise.
192 * tests/test-stdio-c++.cc: Likewise.
193 * tests/test-stdlib-c++.cc: Likewise.
194 * tests/test-string-c++.cc: Likewise.
195 * tests/test-sys_ioctl-c++.cc: Likewise.
196 * tests/test-sys_select-c++.cc: Likewise.
197 * tests/test-sys_socket-c++.cc: Likewise.
198 * tests/test-sys_stat-c++.cc: Likewise.
199 * tests/test-sys_time-c++.cc: Likewise.
200 * tests/test-time-c++.cc: Likewise.
201 * tests/test-unistd-c++.cc: Likewise.
202 * tests/test-wchar-c++.cc: Likewise.
203 * tests/uninorm/test-u8-nfc.c: Likewise.
204 * tests/uninorm/test-u8-nfd.c: Likewise.
205 * tests/uninorm/test-u8-nfkc.c: Likewise.
206 * tests/uninorm/test-u8-nfkd.c: Likewise.
207 * tests/uninorm/test-u16-nfc.c: Likewise.
208 * tests/uninorm/test-u16-nfd.c: Likewise.
209 * tests/uninorm/test-u16-nfkc.c: Likewise.
210 * tests/uninorm/test-u16-nfkd.c: Likewise.
211 * tests/uninorm/test-u32-nfc.c: Likewise.
212 * tests/uninorm/test-u32-nfc-big.c: Likewise.
213 * tests/uninorm/test-u32-nfd.c: Likewise.
214 * tests/uninorm/test-u32-nfd-big.c: Likewise.
215 * tests/uninorm/test-u32-nfkc.c: Likewise.
216 * tests/uninorm/test-u32-nfkc-big.c: Likewise.
217 * tests/uninorm/test-u32-nfkd.c: Likewise.
218 * tests/uninorm/test-u32-nfkd-big.c: Likewise.
219 * tests/uninorm/test-u32-normalize-big.c: Likewise.
221 2010-03-27 Bruno Haible <bruno@clisp.org>
223 Distinguish two kinds of module indicators.
224 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
226 (gl_MODULE_INDICATOR): New macro.
227 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
228 gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
229 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
230 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
231 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
232 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
233 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
234 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
235 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
236 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
237 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
238 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
239 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
240 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
241 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
242 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
243 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
244 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
245 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
246 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
247 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
248 * modules/cloexec (configure.ac): Likewise.
249 * modules/getopt-gnu (configure.ac): Likewise.
250 * modules/uninorm/u8-normalize (configure.ac): Likewise.
251 * modules/uninorm/u16-normalize (configure.ac): Likewise.
252 * modules/uninorm/u32-normalize (configure.ac): Likewise.
253 * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
255 2010-03-27 Bruno Haible <bruno@clisp.org>
257 New module description field 'Comment'.
258 * gnulib-tool: New option --extract-comment.
259 (func_usage): Document it.
260 (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
261 (func_get_comment): New function.
262 * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
264 2010-03-27 Bruno Haible <bruno@clisp.org>
266 Addendum to 2010-02-07 commit.
267 * gnulib-tool (func_usage): Document --extract-applicability option.
269 2010-03-27 Bruno Haible <bruno@clisp.org>
271 Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
272 * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
273 GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
274 rather than link errors.
276 2010-03-27 Bruno Haible <bruno@clisp.org>
278 Avoid side effects from tests-related modules on the compilation of lib.
279 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
280 (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
281 * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
282 parameter. Emit into AM_CPPFLAGS a definition of the designated C
284 (func_import): Define a witness macro. Assign it a value that depends
285 on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
286 tests-related modules.
287 (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
288 Reported by Jim Meyering.
290 2010-03-27 Bruno Haible <bruno@clisp.org>
292 Factorize common .m4 code.
293 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
294 * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
295 * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
296 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
297 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
298 * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
299 * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
300 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
301 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
302 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
303 * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
304 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
305 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
306 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
307 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
308 * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
309 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
310 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
311 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
312 * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
313 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
314 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
315 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
316 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
317 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
318 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
319 * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
320 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
321 * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
322 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
323 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
324 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
326 2010-03-27 Bruno Haible <bruno@clisp.org>
328 Fix a compilation error on Cygwin with g++ >= 4.3.
329 * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
330 if it is undefined or if we alias it to chmod.
331 (lstat): Don't warn about the use of this function if it is undefined
332 or if we alias it to stat.
333 Reported by Simon Josefsson.
335 2010-03-27 Bruno Haible <bruno@clisp.org>
337 * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
338 * modules/getlogin (configure.ac): Update.
340 * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
341 * modules/getlogin_r (configure.ac): Update.
343 * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
344 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
345 * modules/inet_ntop (configure.ac): Update.
347 * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
348 * modules/inet_pton (configure.ac): Update.
350 * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
351 * modules/mbslen (configure.ac): Update.
353 * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
354 (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
355 * modules/forkpty (configure.ac): Update.
356 * modules/openpty (configure.ac): Update.
358 2010-03-26 Simon Josefsson <simon@josefsson.org>
360 * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
361 no *.texi files. Reported by Eric Blake <eblake@redhat.com>.
363 2010-03-25 Eric Blake <eblake@redhat.com>
365 maint: use pragma consistently across replacement headers
366 * lib/ctype.in.h (system_header): Hoist for consistent placement.
367 * lib/dirent.in.h (system_header): Likewise.
368 * lib/errno.in.h (system_header): Likewise.
369 * lib/float.in.h (system_header): Likewise.
370 * lib/getopt.in.h (system_header): Likewise.
371 * lib/iconv.in.h (system_header): Likewise.
372 * lib/inttypes.in.h (system_header): Likewise.
373 * lib/langinfo.in.h (system_header): Likewise.
374 * lib/locale.in.h (system_header): Likewise.
375 * lib/math.in.h (system_header): Likewise.
376 * lib/netdb.in.h (system_header): Likewise.
377 * lib/netinet_in.in.h (system_header): Likewise.
378 * lib/pty.in.h (system_header): Likewise.
379 * lib/sched.in.h (system_header): Likewise.
380 * lib/se-selinux.in.h (system_header): Likewise.
381 * lib/search.in.h (system_header): Likewise.
382 * lib/spawn.in.h (system_header): Likewise.
383 * lib/stdarg.in.h (system_header): Likewise.
384 * lib/stdint.in.h (system_header): Likewise.
385 * lib/string.in.h (system_header): Likewise.
386 * lib/strings.in.h (system_header): Likewise.
387 * lib/sys_file.in.h (system_header): Likewise.
388 * lib/sys_ioctl.in.h (system_header): Likewise.
389 * lib/sys_socket.in.h (system_header): Likewise.
390 * lib/sys_times.in.h (system_header): Likewise.
391 * lib/sys_utsname.in.h (system_header): Likewise.
392 * lib/sys_wait.in.h (system_header): Likewise.
393 * lib/sysexits.in.h (system_header): Likewise.
394 * lib/unistd.in.h (system_header): Likewise.
395 * lib/wctype.in.h (system_header): Likewise.
397 arpa/inet: fix mingw compilation warning
398 * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
399 Reported by Matthew Bolte.
401 2010-03-25 Bruno Haible <bruno@clisp.org>
403 Avoid collision between gnulib wrapper and libintl wrapper.
404 * lib/printf.c (printf): Don't define if a printf wrapper is already
405 defined in intl/printf.c.
406 Reported by Michel Boaventura <michel@michelboaventura.com>.
408 2010-03-25 Bruno Haible <bruno@clisp.org>
411 * lib/readutmp.h (getutent): Provide ANSI C prototype.
413 2010-03-25 Bruno Haible <bruno@clisp.org>
415 Minor formatting changes.
416 * lib/acosl.c: Insert space before function argument list.
417 * lib/argz.c: Likewise.
418 * lib/asinl.c: Likewise.
419 * lib/expl.c: Likewise.
420 * lib/gen-uni-tables.c: Likewise.
421 * lib/gettext.h: Likewise.
422 * lib/glthread/lock.h: Likewise.
423 * lib/tanl.c: Likewise.
424 * lib/uniname/uniname.c: Likewise.
425 * tests/test-idpriv-drop.c: Likewise.
426 * tests/test-idpriv-droptemp.c: Likewise.
427 * tests/test-lock.c: Likewise.
428 * tests/test-tls.c: Likewise.
429 * lib/argp-help.c: Insert space before function-like macro argument
431 * lib/memcmp.c: Likewise.
432 * tests/test-base64.c: Likewise.
433 * lib/localename.c: Insert space before sizeof's argument list.
434 * lib/safe-alloc.h: Likewise.
435 * lib/file-set.h: Insert space before macro argument list.
436 * tests/test-argp.c: Likewise.
437 * lib/argp-namefrob.h: Insert space before function parameter list.
438 * lib/getaddrinfo.c: Likewise.
439 * lib/netdb.in.h: Likewise.
440 * lib/parse-duration.h: Likewise.
441 * lib/parse-duration.c: Likewise.
442 * lib/poll.c: Likewise.
443 * lib/select.c: Likewise.
444 * lib/trim.h: Likewise.
445 * tests/test-usleep.c: Likewise.
446 * lib/ldexpl.c: Insert space before function parameter list and before
447 function argument list.
448 * lib/logl.c: Likewise.
449 * lib/sqrtl.c: Likewise.
450 * lib/trim.c: Likewise.
451 * lib/cosl.c: Use GNU style indentation. Insert space before function
453 * lib/sinl.c: Likewise.
454 * lib/tsearch.c: Insert space after 'for'.
455 Reported by Jim Meyering.
457 2010-03-23 Pádraig Brady <P@draigBrady.com> (tiny change)
459 * maint.mk (sc_Wundef_boolean): Check for the presence of the
460 config header before grepping, as it's not present before
461 autoreconf/configure are run. Reported by Simon Josefsson.
463 2010-03-23 Bruno Haible <bruno@clisp.org>
465 pt_chown: Make it work with automake < 1.11.
466 * modules/pt_chown (Makefile.am): Define pkglibexecdir.
467 Reported by Simon Josefsson.
469 2010-03-23 Bruno Haible <bruno@clisp.org>
471 pt_chown: Don't depend on GPLed modules.
472 * lib/pt_chown.c: Don't include idpriv.h.
473 (main): Don't drop privileges.
474 * modules/pt_chown (Depends-on): Remove idpriv-drop.
475 Reported by Simon Josefsson.
477 2010-03-24 Simon Josefsson <simon@josefsson.org>
479 * top/maint.mk (sc_texinfo_acronym): Add rule, based on
480 suggestions from karl@freefriends.org (Karl Berry).
482 2010-03-22 Eric Blake <eblake@redhat.com>
484 gethostname: further tweaks
485 * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
486 are overriding gethostname.
487 Suggested by Bruno Haible.
489 2010-03-21 Bruno Haible <bruno@clisp.org>
492 * lib/forkpty.c (rpl_forkpty): Fix comment.
493 * lib/openpty.c (rpl_openpty): Likewise.
494 Reported by Eric Blake.
496 2010-03-22 Eric Blake <eblake@redhat.com>
498 gethostname: fix build on mingw
499 * lib/unistd.in.h (includes): Work around fact that mingw
500 <winsock2.h> re-includes <unistd.h>, by avoiding any
501 redeclarations if we are being included by <winsock2.h>.
502 Reported by Matthias Bolte.
504 2010-03-21 Bruno Haible <bruno@clisp.org>
506 forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
507 * lib/forkpty.c (forkpty): New replacement function, from glibc with
509 * lib/pty.in.h (forkpty): Update declaration. Add comments.
510 * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
511 provide the replacement.
512 * modules/forkpty (Depends-on): Add openpty, login_tty.
513 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
514 * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
515 * doc/glibc-functions/forkpty.texi: More supported platforms.
516 * config/srclist.txt: Add forkpty.c (commented).
518 2010-03-21 Bruno Haible <bruno@clisp.org>
520 * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
521 (Makefile.am): Verify that PTY_LIB is defined.
523 * modules/openpty-tests: Use the common TEMPLATE-TESTS.
525 2010-03-21 Bruno Haible <bruno@clisp.org>
527 Tests for module 'login_tty'.
528 * modules/login_tty-tests: New file.
529 * tests/test-login_tty.c: New file.
531 New module 'login_tty'.
532 * lib/login_tty.c: New file.
533 * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
534 * modules/login_tty: New file.
535 * doc/glibc-functions/login_tty.texi: Mention the new module.
537 2010-03-21 Bruno Haible <bruno@clisp.org>
539 login_tty: Documentation.
540 * doc/glibc-functions/login_tty.texi: New file.
541 * doc/gnulib.texi (Glibc <utmp.h>): Include it.
543 2010-03-21 Bruno Haible <bruno@clisp.org>
545 pty: Consistent macro naming.
546 * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
547 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
548 * modules/pty (configure.ac): Update.
550 2010-03-21 Bruno Haible <bruno@clisp.org>
552 Tests for openpty: Make stricter.
553 * tests/test-openpty.c (main): Add test of canonical processing and
555 * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
557 openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
558 * lib/openpty.c (openpty): New replacement function.
559 * lib/pty.in.h: Include <termios.h>.
560 (openpty): Update declaration. Add comments.
561 * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
562 is not declared, arrange to provide the replacement. Check for _getpty
564 * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
565 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
566 * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
567 * modules/pty-tests (test_pty_c___LDADD): New variable.
568 * doc/glibc-functions/openpty.texi: More supported platforms.
570 2010-03-21 Bruno Haible <bruno@clisp.org>
573 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
575 * doc/posix-functions/setenv.texi: Update platforms list.
577 2010-03-21 Bruno Haible <bruno@clisp.org>
579 New module 'unlockpt'.
580 * lib/unlockpt.c: New file, from glibc with modifications.
581 * m4/unlockpt.m4: New file.
582 * modules/unlockpt: New file.
583 * lib/stdlib.in.h (unlockpt): New declaration.
584 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
585 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
586 * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
588 * doc/posix-functions/unlockpt.texi: Mention the new module.
589 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
590 * config/srclist.txt: Add unlockpt.c (commented).
592 2010-03-21 Jim Meyering <meyering@redhat.com>
594 maint.mk: prohibit inclusion of "intprops.h" without use
595 * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
597 2010-03-21 Bruno Haible <bruno@clisp.org>
599 New module 'grantpt'.
600 * lib/grantpt.c: New file, from glibc with modifications.
601 * m4/grantpt.m4: New file.
602 * modules/grantpt: New file.
603 * lib/stdlib.in.h (grantpt): New declaration.
604 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
605 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
606 * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
608 * doc/posix-functions/grantpt.texi: Mention the new module.
609 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
610 * config/srclist.txt: Add grantpt.c (commented).
612 2010-03-21 Bruno Haible <bruno@clisp.org>
614 New module 'pt_chown'.
615 * lib/pt_chown.c: New file, from glibc with modifications.
616 * lib/pty-private.h: New file, from glibc with modifications.
617 * modules/pt_chown: New file.
618 * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
620 2010-03-21 Bruno Haible <bruno@clisp.org>
622 Tests for module 'ptsname'.
623 * modules/ptsname-tests: New file.
624 * tests/test-ptsname.c: New file.
626 New module 'ptsname'.
627 * lib/ptsname.c: New file, from glibc with modifications.
628 * m4/ptsname.m4: New file.
629 * modules/ptsname: New file.
630 * lib/stdlib.in.h (ptsname): New declaration.
631 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
632 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
633 * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
635 * doc/posix-functions/ptsname.texi: Mention the new module.
636 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
637 * config/srclist.txt: Add ptsname.c (commented).
639 2010-03-21 Bruno Haible <bruno@clisp.org>
641 Tests for module 'ttyname_r'.
642 * modules/ttyname_r-tests: New file.
643 * tests/test-ttyname_r.c: New file.
645 New module 'ttyname_r'.
646 * lib/ttyname_r.c: New file.
647 * m4/ttyname_r.m4: New file.
648 * modules/ttyname_r: New file.
649 * lib/unistd.in.h (ttyname_r): New declaration.
650 * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
651 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
652 * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
654 * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
655 * doc/posix-functions/ttyname_r.texi: Mention the new module.
657 2010-03-20 Bruno Haible <bruno@clisp.org>
659 signal: Undefine macro definitions in C++ mode.
660 * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
661 sigfillset): Undefine macro definitions from the system header in C++
663 Reported by John W. Eaton <jwe@gnu.org>.
665 2010-03-20 Bruno Haible <bruno@clisp.org>
667 Ensure no #include statements inside extern "C" { ... }.
668 * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
669 contain #include statements.
670 * lib/time.in.h: Likewise.
672 2010-03-20 Bruno Haible <bruno@clisp.org>
674 Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
675 * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
676 (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
677 Reported by John W. Eaton <jwe@gnu.org>.
679 2010-03-20 Bruno Haible <bruno@clisp.org>
681 * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
682 Reported by Jim Meyering.
684 2010-03-20 Bruno Haible <bruno@clisp.org>
686 pipe: Set errno upon failure.
687 * lib/pipe.h: Specify that when -1 is returned, errno is set.
688 * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
689 errno value in error message.
691 2010-03-20 Bruno Haible <bruno@clisp.org>
692 Jim Meyering <meyering@redhat.com>
694 lchown: Avoid "unused variable" warning.
695 * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
697 2010-03-20 Bruno Haible <bruno@clisp.org>
699 Work around unlink() bug on MacOS X 10.5.6.
700 * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
701 attempting to unlink a parent directory.
702 * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
703 MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
704 activate for the replacement function.
705 * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
707 2010-03-20 Bruno Haible <bruno@clisp.org>
709 Fix link errors on Solaris 8.
710 * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
711 * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
713 2010-03-19 Jim Meyering <meyering@redhat.com>
715 regcomp.c: make non-_LIBC implementation of build_range_exp consistent
716 The _LIBC implementation of build_range_exp correctly honors the
717 RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
718 However, the non-_LIBC implementation would ignore that syntax-bit
719 flag and return REG_ERANGE unconditionally.
720 This change makes it honor that flag.
721 * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
722 Make two pointer parameters "const".
723 Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
724 (parse_bracket_exp): Update caller.
726 regex.m4: correct the reversed range endpoint ([b-a]) test
727 * m4/regex.m4: When requiring that [b-a] evoke failure,
728 use RE_NO_EMPTY_RANGES. This makes this entire configure-time
729 test pass once again for x86-based systems.
731 2010-03-19 Bruno Haible <bruno@clisp.org>
733 scandir: Fix link error on Solaris 8.
734 * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
737 2010-03-19 Bruno Haible <bruno@clisp.org>
739 getusershell: Fix documentation.
740 * doc/glibc-functions/endusershell.texi: Refer to the getusershell
742 * doc/glibc-functions/setusershell.texi: Likewise.
744 getusershell: Provide declaration, missing on Solaris 9.
745 * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
746 also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
747 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
748 check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
749 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
750 HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
751 * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
753 * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
755 2010-03-19 Bruno Haible <bruno@clisp.org>
757 wctype: Provide iswblank function.
758 * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
760 * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
761 * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
762 * tests/test-wctype.c (main): Re-enable the iswblank tests.
763 * doc/posix-functions/iswblank.texi: Update.
765 2010-03-19 Bruno Haible <bruno@clisp.org>
767 Tests of module 'pty' in C++ mode.
768 * modules/pty-tests: New file.
769 * tests/test-pty-c++.cc: New file.
770 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
772 2010-03-19 Eric Blake <eblake@redhat.com>
774 logb: fix documentation
775 * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
778 forkpty, openpty: prefer glibc's const-safe prototype
779 * lib/forkpty.c (rpl_forkpty): New file.
780 * lib/openpty.c (rpl_openpty): Likewise.
781 * modules/forkpty (Files): Distribute it.
782 * modules/openpty (Files): Likewise.
783 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses. Move decl
785 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here. Request
786 replacement for for non-const BSD signature.
787 * modules/pty (Makefile.am): Substitute witnesses.
788 * lib/pty.in.h (forkpty, openpty): Declare replacements.
789 * tests/test-forkpty.c: Update signature check.
790 * tests/test-openpty.c: Likewise.
791 * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
792 * doc/glibc-functions/openpty.texi (openpty): Likewise.
794 forkpty, openpty: split functions into new modules
795 * modules/pty (Makefile.am): Substitute new witnesses.
796 (Libraries): Move library detection...
797 * modules/forkpty: ...into new module.
798 * modules/openpty: Another new module.
799 * modules/pty-tests: Rename and split...
800 * modules/forkpty-tests: ...to this...
801 * modules/openpty-tests: ...and this.
802 * tests/test-pty.c: Rename and split...
803 * tests/test-forkpty.c: ...to this...
804 * tests/test-openpty.c: ...and this.
805 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
806 (gl_PTY): Split library searching...
807 * m4/pty.m4 (gl_PTY_LIB): ...into new file.
808 (gl_FORKPTY, gl_OPENPTY): New macros.
809 * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
810 * NEWS: Mention the split.
811 * MODULES.html.sh (Misc): Document the modules.
812 * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
813 * doc/glibc-functions/openpty.texi (openpty): Likewise.
815 pty: improve replacement header
816 * lib/pty.in.h: New file.
817 * modules/pty (Files): Ship it.
818 (Makefile.am): Always build replacement.
819 * m4/pty.m4: Rename...
820 * m4/pty_h.m4: ...to this.
821 (gl_PTY): Modernize setting of witness macros; update check of
822 forkpty to take proper advantage of cache.
823 (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
825 getopt: avoid compiler warning
826 * lib/getopt.c (attribute_hidden): Remove unused macro.
828 2010-03-18 Bruno Haible <bruno@clisp.org>
830 Fix link errors on Solaris 8.
831 * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
832 * modules/search-tests (test_search_c___LDADD): Likewise.
833 * modules/signal-tests (test_signal_c___LDADD): Likewise.
834 * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
835 * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
836 * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
837 * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
838 * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
839 * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
841 2010-03-18 Bruno Haible <bruno@clisp.org>
843 Fix bug introduced on 2010-03-14.
844 * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
845 (gl_SPAWN_H): Require it.
846 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
847 Reported by Simon Josefsson.
849 2010-03-18 Bruno Haible <bruno@clisp.org>
851 Fix typo introduced on 2009-12-31.
852 * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
853 posix_spawn_file_actions_adddup2.
855 2010-03-17 Bert Wesarg <bert.wesarg@googlemail.com> (tiny change)
856 and Eric Blake <eblake@redhat.com>
858 test-vc-list-files-git: make more robust
859 * tests/test-vc-list-files-git.sh: Unset problematic environment
860 variables. Chain commands together.
862 2010-03-17 Ludovic Courtès <ludo@gnu.org> (tiny change)
864 * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
865 `AC_CHECK_DECL' invocation.
867 2010-03-15 Sergey Poznyakoff <gray@gnu.org.ua>
869 * lib/inttostr.c (inttostr): Make sure the invocation of verify
870 appears before executable statements. Suggested by Petr Sumbera
871 <Petr.Sumbera@Sun.COM>.
873 2010-03-14 Bruno Haible <bruno@clisp.org>
875 * tests/test-flock.c (test_exclusive): Comment out a test that causes
876 portability problems. Instead use a simpler test.
877 (main): Check that invalid arguments are rejected only on Linux.
879 2010-03-14 Bruno Haible <bruno@clisp.org>
881 Fix bug introduced on 2009-12-31.
882 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
883 gl_PREREQ_SYS_H_WINSOCK2 always.
884 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
885 SYS_SOCKET_H variable.
886 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
888 * m4/ctype.m4 (gl_CTYPE_H): Update comments.
889 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
890 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
891 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
892 * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
894 2010-03-14 Bruno Haible <bruno@clisp.org>
896 Fix values returned by sinl, cosl.
897 * lib/trigl.h: Add specification comments.
898 * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
899 that combines the values from the precomputed table with the values of
900 the Chebyshev polynomials.
902 2010-03-14 Bruno Haible <bruno@clisp.org>
904 Fix compilation error when modules 'posix_spawn[p]' are not used.
905 * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
906 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
908 2010-03-14 Bruno Haible <bruno@clisp.org>
910 Fix compilation error on mingw when module 'time_r' is not used.
911 * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
913 * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
914 * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
915 * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
916 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
918 2010-03-14 Bruno Haible <bruno@clisp.org>
920 Fix compilation error with Sun C.
921 * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
922 Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
923 instead of GCC specific ULONG_LONG_MAX.
924 * lib/xstrtoll.c: Likewise.
925 * lib/xstrtoull.c: Likewise.
927 2010-03-13 Bruno Haible <bruno@clisp.org>
929 Allow the user to disable C++ code and tests.
930 * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
931 (gl_PROG_ANSI_CXX): Require it.
933 2010-03-13 Bruno Haible <bruno@clisp.org>
935 * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
938 2010-03-13 Bruno Haible <bruno@clisp.org>
940 Test that gnulib does not break the standard C++ headers.
941 * tests/test-locale-c++2.cc: New file.
942 * modules/locale-tests (Files): Add it.
943 (Makefile.am): Compile it for test-locale-c++.
944 * tests/test-math-c++2.cc: New file.
945 * modules/math-tests (Files): Add it.
946 (Makefile.am): Compile it for test-math-c++.
947 * tests/test-signal-c++2.cc: New file.
948 * modules/signal-tests (Files): Add it.
949 (Makefile.am): Compile it for test-signal-c++.
950 * tests/test-stdio-c++2.cc: New file.
951 * modules/stdio-tests (Files): Add it.
952 (Makefile.am): Compile it for test-stdio-c++.
953 * tests/test-stdlib-c++2.cc: New file.
954 * modules/stdlib-tests (Files): Add it.
955 (Makefile.am): Compile it for test-stdlib-c++.
956 * tests/test-string-c++2.cc: New file.
957 * modules/string-tests (Files): Add it.
958 (Makefile.am): Compile it for test-string-c++.
959 * tests/test-time-c++2.cc: New file.
960 * modules/time-tests (Files): Add it.
961 (Makefile.am): Compile it for test-time-c++.
962 Reported by John W. Eaton <jwe@gnu.org>.
964 2010-03-13 Bruno Haible <bruno@clisp.org>
966 * gnulib-tool (func_usage): Clarify which options are available for
967 --create-testdir and --create-megatestdir.
969 2010-03-13 Bruno Haible <bruno@clisp.org>
971 Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
972 * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
973 * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
974 * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
975 strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
977 Reported by Jim Meyering.
979 2010-03-12 Simon Josefsson <simon@josefsson.org>
981 * gnulib-tool (func_import): Explain origin of code.
983 2010-03-12 Bruno Haible <bruno@clisp.org>
985 Fix problem with automake's definition of CXXLINK.
986 * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
987 Reported by Simon Josefsson and Ludovic Courtès.
989 2010-03-12 Bruno Haible <bruno@clisp.org>
991 * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
994 2010-03-11 Bruno Haible <bruno@clisp.org>
996 Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
997 * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
998 whether the system provides one variant or multiple variants of the
1000 * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1002 (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1003 _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1004 Reported by Jim Meyering.
1006 2010-03-09 Simon Josefsson <simon@josefsson.org>
1008 * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1010 2010-03-08 Bruno Haible <bruno@clisp.org>
1012 gnulib-tool: Add support for --libtool in --create-testdir.
1013 * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1014 (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1016 2010-03-08 Eric Blake <eblake@redhat.com>
1018 gnulib-tool.texi: mention possibility of git submodule
1019 * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1021 * doc/.gitignore: Ignore another generated file.
1023 2010-03-08 Karl Berry <karl@gnu.org>
1025 * doc/gnulib-tool.texi (VCS Issues): Mention third option
1026 of committing gnulib files while skipping others.
1028 2010-03-07 Bruno Haible <bruno@clisp.org>
1030 Tests of module 'wctype' in C++ mode.
1031 * tests/test-wctype-c++.cc: New file.
1032 * modules/wctype-tests (Files): Add it and tests/signature.h.
1033 (Depends-on): Add ansi-c++-opt.
1034 (Makefile.am): Arrange to compile and run test-wctype-c++.
1036 Tests of module 'wchar' in C++ mode.
1037 * tests/test-wchar-c++.cc: New file.
1038 * modules/wchar-tests (Files): Add it and tests/signature.h.
1039 (Depends-on): Add ansi-c++-opt.
1040 (Makefile.am): Arrange to compile and run test-wchar-c++.
1041 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1042 gl_MODULE_INDICATOR.
1044 Tests of module 'unistd' in C++ mode.
1045 * tests/test-unistd-c++.cc: New file.
1046 * modules/unistd-tests (Files): Add it and tests/signature.h.
1047 (Depends-on): Add ansi-c++-opt.
1048 (Makefile.am): Arrange to compile and run test-unistd-c++.
1049 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1050 gl_MODULE_INDICATOR.
1052 Tests of module 'time' in C++ mode.
1053 * tests/test-time-c++.cc: New file.
1054 * modules/time-tests (Files): Add it and tests/signature.h.
1055 (Depends-on): Add ansi-c++-opt.
1056 (Makefile.am): Arrange to compile and run test-time-c++.
1057 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1059 Tests of module 'sys_time' in C++ mode.
1060 * tests/test-sys_time-c++.cc: New file.
1061 * modules/sys_time-tests (Files): Add it and tests/signature.h.
1062 (Depends-on): Add ansi-c++-opt.
1063 (Makefile.am): Arrange to compile and run test-sys_time-c++.
1064 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1065 gl_MODULE_INDICATOR.
1067 Tests of module 'sys_stat' in C++ mode.
1068 * tests/test-sys_stat-c++.cc: New file.
1069 * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1070 (Depends-on): Add ansi-c++-opt.
1071 (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1072 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1073 gl_MODULE_INDICATOR.
1075 Tests of module 'sys_socket' in C++ mode.
1076 * tests/test-sys_socket-c++.cc: New file.
1077 * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1078 (Depends-on): Add ansi-c++-opt.
1079 (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1080 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1081 gl_MODULE_INDICATOR.
1083 Tests of module 'sys_select' in C++ mode.
1084 * tests/test-sys_select-c++.cc: New file.
1085 * modules/sys_select-tests (Files): Add it and tests/signature.h.
1086 (Depends-on): Add ansi-c++-opt.
1087 (Makefile.am): Arrange to compile and run test-sys_select-c++.
1088 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1089 gl_MODULE_INDICATOR.
1091 Tests of module 'sys_ioctl' in C++ mode.
1092 * tests/test-sys_ioctl-c++.cc: New file.
1093 * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1094 (Depends-on): Add ansi-c++-opt.
1095 (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1096 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1097 gl_MODULE_INDICATOR.
1099 Tests of module 'string' in C++ mode.
1100 * tests/test-string-c++.cc: New file.
1101 * modules/string-tests (Files): Add it and tests/signature.h.
1102 (Depends-on): Add ansi-c++-opt.
1103 (Makefile.am): Arrange to compile and run test-string-c++.
1104 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1105 gl_MODULE_INDICATOR.
1107 Tests of module 'stdlib' in C++ mode.
1108 * tests/test-stdlib-c++.cc: New file.
1109 * modules/stdlib-tests (Files): Add it and tests/signature.h.
1110 (Depends-on): Add ansi-c++-opt.
1111 (Makefile.am): Arrange to compile and run test-stdlib-c++.
1112 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1113 gl_MODULE_INDICATOR.
1115 Tests of module 'stdio' in C++ mode.
1116 * tests/test-stdio-c++.cc: New file.
1117 * modules/stdio-tests (Files): Add it and tests/signature.h.
1118 (Depends-on): Add ansi-c++-opt.
1119 (Makefile.am): Arrange to compile and run test-stdio-c++.
1120 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1121 gl_MODULE_INDICATOR.
1123 Tests of module 'spawn' in C++ mode.
1124 * tests/test-spawn-c++.cc: New file.
1125 * modules/spawn-tests (Files): Add it and tests/signature.h.
1126 (Depends-on): Add ansi-c++-opt.
1127 (Makefile.am): Arrange to compile and run test-spawn-c++.
1128 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1129 gl_MODULE_INDICATOR.
1131 Tests of module 'signal' in C++ mode.
1132 * tests/test-signal-c++.cc: New file.
1133 * modules/signal-tests (Files): Add it and tests/signature.h.
1134 (Depends-on): Add ansi-c++-opt.
1135 (Makefile.am): Arrange to compile and run test-signal-c++.
1136 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1137 gl_MODULE_INDICATOR.
1139 Tests of module 'search' in C++ mode.
1140 * tests/test-search-c++.cc: New file.
1141 * modules/search-tests (Files): Add it and tests/signature.h.
1142 (Depends-on): Add ansi-c++-opt.
1143 (Makefile.am): Arrange to compile and run test-search-c++.
1144 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1145 gl_MODULE_INDICATOR.
1147 Tests of module 'math' in C++ mode.
1148 * tests/test-math-c++.cc: New file.
1149 * modules/math-tests (Files): Add it and tests/signature.h.
1150 (Depends-on): Add ansi-c++-opt.
1151 (Makefile.am): Arrange to compile and run test-math-c++.
1152 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1154 Tests of module 'locale' in C++ mode.
1155 * tests/test-locale-c++.cc: New file.
1156 * modules/locale-tests (Files): Add it and tests/signature.h.
1157 (Depends-on): Add ansi-c++-opt.
1158 (Makefile.am): Arrange to compile and run test-locale-c++.
1159 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1160 gl_MODULE_INDICATOR.
1162 Tests of module 'langinfo' in C++ mode.
1163 * tests/test-langinfo-c++.cc: New file.
1164 * modules/langinfo-tests (Files): Add it and tests/signature.h.
1165 (Depends-on): Add ansi-c++-opt.
1166 (Makefile.am): Arrange to compile and run test-langinfo-c++.
1167 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1168 gl_MODULE_INDICATOR.
1170 Tests of module 'iconv-h' in C++ mode.
1171 * tests/test-iconv-h-c++.cc: New file.
1172 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1173 (Depends-on): Add ansi-c++-opt.
1174 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1176 Tests of module 'glob' in C++ mode.
1177 * tests/test-glob-c++.cc: New file.
1178 * modules/glob-tests (Files): Add it.
1179 (Depends-on): Add ansi-c++-opt.
1180 (Makefile.am): Arrange to compile and run test-glob-c++.
1182 Tests of module 'fcntl-h' in C++ mode.
1183 * tests/test-fcntl-h-c++.cc: New file.
1184 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1185 (Depends-on): Add ansi-c++-opt.
1186 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1187 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1188 gl_MODULE_INDICATOR.
1190 Tests of module 'dirent' in C++ mode.
1191 * tests/test-dirent-c++.cc: New file.
1192 * modules/dirent-tests (Files): Add it and tests/signature.h.
1193 (Depends-on): Add ansi-c++-opt.
1194 (Makefile.am): Arrange to compile and run test-dirent-c++.
1195 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1196 gl_MODULE_INDICATOR.
1198 New module 'ansi-c++-opt'.
1199 * modules/ansi-c++-opt: New file.
1200 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1202 Document C++ namespace mode.
1203 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1205 wctype: Avoid #define replacements in C++ mode.
1206 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1207 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1208 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1209 In C++, define a namespaced alias symbol.
1210 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1211 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1212 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1215 wchar: Avoid #define replacements in C++ mode.
1216 * lib/wchar.in.h: Include c++defs.h.
1217 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1218 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1220 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1221 * modules/wchar (Depends-on): Add c++defs.
1222 (Makefile.am): Update wchar.h rule.
1224 unistd: Avoid #define replacements in C++ mode.
1225 * lib/unistd.in.h: Include c++defs.h.
1226 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1227 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1228 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1229 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1230 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1231 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1234 * modules/unistd (Depends-on): Add c++defs.
1235 (Makefile.am): Update unistd.h rule.
1237 time: Avoid #define replacements in C++ mode.
1238 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1239 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1240 define a namespaced alias symbol.
1241 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1242 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1243 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1244 * modules/time (Depends-on): Add c++defs, warn-on-use.
1245 (Makefile.am): Update time.h rule.
1246 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1247 * modules/nanosleep (configure.ac): Likewise.
1248 * modules/strptime (configure.ac): Likewise.
1249 * modules/timegm (configure.ac): Likewise.
1251 sys_time: Avoid #define replacements in C++ mode.
1252 * lib/sys_time.in.h: Include c++defs.h.
1253 (gettimeofday): In C++, define a namespaced alias symbol.
1254 * modules/sys_time (Depends-on): Add c++defs.
1255 (Makefile.am): Update sys/time.h rule.
1257 sys_stat: Avoid #define replacements in C++ mode.
1258 * lib/sys_stat.in.h: Include c++defs.h.
1259 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1260 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1261 namespaced alias symbol.
1262 In C++, define a namespaced alias symbol.
1263 * modules/sys_stat (Depends-on): Add c++defs.
1264 (Makefile.am): Update sys/stat.h rule.
1266 sys_socket: Avoid #define replacements in C++ mode.
1267 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1268 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1269 definitions also when the system has a <sys/socket.h>.
1270 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1271 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1272 In C++, define a namespaced alias symbol.
1273 * modules/sys_socket (Depends-on): Add c++defs.
1274 (Makefile.am): Update sys/socket.h rule.
1276 sys_select: Avoid #define replacements in C++ mode.
1277 * lib/sys_select.in.h: Include c++defs.h. Enable the function
1278 definitions also when the system has a <sys/select.h>.
1279 (select): In C++, define a namespaced alias symbol.
1280 * modules/sys_select (Depends-on): Add c++defs.
1281 (Makefile.am): Update sys/select.h rule.
1283 sys_ioctl: Avoid #define replacements in C++ mode.
1284 * lib/sys_ioctl.in.h: Include c++defs.h.
1285 (ioctl): In C++, define a namespaced alias symbol.
1286 * modules/sys_ioctl (Depends-on): Add c++defs.
1287 (Makefile.am): Update sys/ioctl.h rule.
1289 string: Avoid #define replacements in C++ mode.
1290 * lib/string.in.h: Include c++defs.h.
1291 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1292 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1293 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1294 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1295 strsignal, strverscmp): In C++, define a namespaced alias symbol.
1296 * modules/string (Depends-on): Add c++defs.
1297 (Makefile.am): Update string.h rule.
1299 stdlib: Avoid #define replacements in C++ mode.
1300 * lib/stdlib.in.h: Include c++defs.h.
1301 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1302 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1303 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1304 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1306 * modules/stdlib (Depends-on): Add c++defs.
1307 (Makefile.am): Update stdlib.h rule.
1309 stdio: Avoid #define replacements in C++ mode.
1310 * lib/stdio.in.h: Include c++defs.h.
1311 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1312 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1313 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1314 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1315 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1316 namespaced alias symbol.
1317 * modules/stdio (Depends-on): Add c++defs.
1318 (Makefile.am): Update stdio.h rule.
1320 spawn: Avoid #define replacements in C++ mode.
1321 * lib/spawn.in.h: Include c++defs.h.
1322 (posix_spawn, posix_spawnp, posix_spawnattr_init,
1323 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1324 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1325 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1326 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1327 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1328 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1329 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1330 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1331 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1332 In C++, define a namespaced alias symbol.
1333 * modules/spawn (Depends-on): Add c++defs.
1334 (Makefile.am): Update spawn.h rule.
1336 signal: Avoid #define replacements in C++ mode.
1337 * lib/signal.in.h: Include c++defs.h.
1338 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1339 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1340 namespaced alias symbol.
1341 * modules/signal (Depends-on): Add c++defs.
1342 (Makefile.am): Update signal.h rule.
1344 search: Avoid #define replacements in C++ mode.
1345 * lib/search.in.h: Include c++defs.h.
1346 (_gl_search_compar_fn, _gl_search_action_fn): New types.
1347 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1349 * modules/search (Depends-on): Add c++defs.
1350 (Makefile.am): Update search.h rule.
1352 math: Avoid #define replacements in C++ mode.
1353 * lib/math.in.h: Include c++defs.h.
1354 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1355 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1356 trunc, truncl): In C++, define a namespaced alias symbol.
1357 * modules/math (Depends-on): Add c++defs.
1358 (Makefile.am): Update math.h rule.
1360 locale: Avoid #define replacements in C++ mode.
1361 * lib/locale.in.h: Include c++defs.h.
1362 (duplocale): In C++, define a namespaced alias symbol.
1363 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1364 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1365 * modules/locale (Depends-on): Add c++defs.
1366 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1368 langinfo: Avoid #define replacements in C++ mode.
1369 * lib/langinfo.in.h: Include c++defs.h.
1370 (nl_langinfo): In C++, define a namespaced alias symbol.
1371 * modules/langinfo (Depends-on): Add c++defs.
1372 (Makefile.am): Update langinfo.h rule.
1374 iconv-h: Avoid #define replacements in C++ mode.
1375 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1376 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1378 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1379 whenever iconv is present.
1380 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1381 (Makefile.am): Update iconv.h rule.
1383 glob: Avoid #define replacements in C++ mode.
1384 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1385 (_gl_glob_errfunc_fn): New type.
1386 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1388 * modules/glob (Depends-on): Add c++defs, warn-on-use.
1389 (Makefile.am): Update glob.h rule.
1391 fcntl-h: Avoid #define replacements in C++ mode.
1392 * lib/fcntl.in.h: Include c++defs.h.
1393 (fcntl, open, openat): In C++, define a namespaced alias symbol.
1394 * modules/fcntl-h (Depends-on): Add c++defs.
1395 (Makefile.am): Update fcntl.h rule.
1397 dirent: Avoid #define replacements in C++ mode.
1398 * lib/dirent.in.h: Include c++defs.h.
1399 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1400 namespaced alias symbol.
1401 (dirfd): Update declaration.
1402 * modules/dirent (Depends-on): Add c++defs.
1403 (Makefile.am): Update dirent.h rule.
1405 ctype: Make it usable in C++ code.
1406 * lib/ctype.in.h: Include c++defs.h.
1407 (isblank): Declare as extern "C".
1408 * modules/ctype (Depends-on): Add c++defs.
1409 (Makefile.am): Update ctype.h rule.
1411 New module 'c++defs'.
1412 * modules/c++defs: New file.
1413 * build-aux/c++defs.h: New file.
1414 Reported by John W. Eaton <jwe@gnu.org>.
1416 2010-03-07 Bruno Haible <bruno@clisp.org>
1418 logb: Provide missing declaration for Cygwin.
1419 * lib/math.in.h (logb): New declaration.
1420 * m4/logb.m4: New file.
1421 * modules/logb (Files): Add m4/logb.m4.
1422 (Depends-on): Add math.
1423 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1424 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1425 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1426 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1427 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1429 2010-03-07 Bruno Haible <bruno@clisp.org>
1431 Fix test-cond link error.
1432 * tests/test-cond.c: Include <stdio.h>.
1434 2010-03-07 Bruno Haible <bruno@clisp.org>
1436 Fix test-dirent-safer link error.
1437 * modules/dirent-safer-tests (Makefile.am): Define
1438 test_dirent_safer_LDADD.
1440 2010-03-07 Bruno Haible <bruno@clisp.org>
1442 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1443 among default module list.
1445 2010-03-07 Bruno Haible <bruno@clisp.org>
1447 Fix link error on platforms with GNU libiconv.
1448 * modules/unistr/u8-strcoll-tests (Makefile): Define
1449 test_u8_strcoll_LDADD.
1450 * modules/unistr/u16-strcoll-tests (Makefile): Define
1451 test_u16_strcoll_LDADD.
1452 * modules/unistr/u32-strcoll-tests (Makefile): Define
1453 test_u32_strcoll_LDADD.
1455 2010-03-07 Bruno Haible <bruno@clisp.org>
1457 Use POSIX declarations for socket functions.
1458 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1459 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1460 rpl_sendto): Change declaration to match POSIX.
1461 * lib/connect.c (rpl_connect): Likewise.
1462 * lib/accept.c (rpl_accept): Likewise.
1463 * lib/bind.c (rpl_bind): Likewise.
1464 * lib/getpeername.c (rpl_getpeername): Likewise.
1465 * lib/getsockname.c (rpl_getsockname): Likewise.
1466 * lib/recv.c (rpl_recv): Likewise.
1467 * lib/send.c (rpl_send): Likewise.
1468 * lib/recvfrom.c (rpl_recvfrom): Likewise.
1469 * lib/sendto.c (rpl_sendto): Likewise.
1471 2010-03-06 Bruno Haible <bruno@clisp.org>
1473 Clarify access, euidaccess, faccessat.
1474 * doc/posix-functions/faccessat.texi: Mention security problem under
1475 "Other problems", not "Portability problems".
1476 * doc/posix-functions/access.texi: Likewise. Mention a related security
1478 * doc/glibc-functions/euidaccess.texi: Mention security problems.
1479 * lib/euidaccess.c: Add comments about platforms.
1480 * lib/unistd.in.h (access, euidaccess): Add warnings.
1482 2010-03-07 Bruno Haible <bruno@clisp.org>
1484 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1485 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1486 (POSIX_SPAWN_SETSCHEDULER): Likewise.
1487 (POSIX_SPAWN_USEVFORK): Define in a way that works when
1488 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1489 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1490 declare when POSIX_SPAWN_SETSCHEDULER is zero.
1491 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1492 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1493 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1494 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1495 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1496 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1497 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1498 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1499 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1500 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1501 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1502 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1503 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1505 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1506 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1507 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1509 * tests/test-spawn.c (main): Make it work when
1510 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1512 2010-03-07 Bruno Haible <bruno@clisp.org>
1514 Fix incorrect Makefile.am generation in German locale.
1515 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1516 Execute sed command with character range in C locale.
1518 2010-03-06 Bruno Haible <bruno@clisp.org>
1520 Tests for module 'iconv-h'.
1521 * modules/iconv-h-tests: New file.
1522 * tests/test-iconv-h.c: New file.
1524 New module 'iconv-h'.
1525 * modules/iconv-h: New file.
1526 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1527 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1528 (configure.ac): Remove gl_ICONV_H.
1529 (Makefile.am): Remove rule for iconv.h.
1531 2010-03-06 Bruno Haible <bruno@clisp.org>
1533 More consistent naming of *.m4 files.
1534 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1535 * modules/wctype (Files): Update.
1537 More consistent naming of *.m4 files.
1538 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1539 * modules/wchar (Files): Update.
1541 2010-03-06 Jim Meyering <meyering@redhat.com>
1543 euidaccess: relax license to LGPLv2+
1544 * modules/euidaccess (License): Relax to LGPLv2+.
1546 2010-03-06 Bruno Haible <bruno@clisp.org>
1548 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1549 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1550 (Makefile.am): Augment lib_SOURCES instead.
1552 2010-03-04 Jim Meyering <meyering@redhat.com>
1554 utime: remove obsolete module
1555 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1556 unnecessary for years, and has been marked as obsolete for 10 months.
1557 * modules/utime: Remove file.
1558 * lib/utime.c: Remove file.
1559 * m4/utime.m4: Remove file.
1560 * m4/utimes-null.m4: Remove file.
1561 * doc/posix-functions/utime.texi (utime): Remove reference to
1562 the module. Move the sole "fixed by gnulib" item into the
1563 "problems not fixed by Gnulib" list.
1564 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1566 2010-03-05 Simon Josefsson <simon@josefsson.org>
1568 * modules/exit (License): Relax license to LGPLv2+.
1569 (Status): Mark as obsolete.
1570 * NEWS: Mention deprecated 'exit' module.
1571 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1572 of now obsolete 'exit'.
1574 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1576 fts-lgpl: remove unused module
1577 * modules/fts-lgpl: Remove.
1578 * MODULES.html.sh (func_all_modules): Adjust.
1579 * check-module (find_included_lib_files): Adjust.
1580 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1582 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
1584 copy-acl: enhance Solaris ACL error handling
1585 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1586 * lib/set-mode-acl.c (qset_acl): Likewise.
1588 2010-03-02 Bruno Haible <bruno@clisp.org>
1590 spawn: Don't override the system defined values on FreeBSD 8.
1591 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1592 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1593 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1594 if HAVE_POSIX_SPAWN is 1.
1595 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1597 2010-03-01 Bruno Haible <bruno@clisp.org>
1599 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1602 2010-02-25 Bruno Haible <bruno@clisp.org>
1604 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1605 * gnulib-tool: Define 'echo' as a function only before the ksh alias
1606 setting, not afterwards.
1607 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1609 2010-02-24 Eric Blake <eblake@redhat.com>
1611 bootstrap, git-version-gen: use timestamp
1612 * build-aux/git-version-gen (scriptversion): Force UTC.
1613 * build-aux/bootstrap (scriptversion): New variable.
1615 bootstrap: allow older git
1616 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1617 older than 1.6.4. Requested by the libvirt project.
1619 2010-02-23 Eric Blake <eblake@redhat.com>
1621 warn-on-use: work with old autoconf
1622 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1623 AS_VAR semantics of autoconf 2.60.
1624 Reported by Bruno Haible.
1626 bootstrap: improve some comments
1627 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
1628 clarification comments.
1630 gettimeofday: provide correct function
1631 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1632 when replacement is declared, otherwise provide gettimeofday.
1633 Reported by Michael Goffioul.
1635 2010-02-23 Jim Meyering <meyering@redhat.com>
1637 lib-ignore: relax license to "unlimited", not LGPLv2+
1638 * modules/lib-ignore (License): Relax to "unlimited".
1640 2010-02-23 Jim Meyering <meyering@redhat.com>
1642 lib-ignore: relax license to LGPLv2+
1643 * modules/lib-ignore (License): Relax to LGPLv2+.
1645 2010-02-22 Eric Blake <eblake@redhat.com>
1647 lseek: avoid bash 3.2 broken pipe bug
1648 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1649 warning from bash 3.2.
1650 Reported by Ben Pfaff, with analysis from Bruno Haible.
1652 bootstrap: support non-FSF copyright holder
1653 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1654 bootstrap.conf override of COPYRIGHT_HOLDER.
1655 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1657 bootstrap: interoperate with gettext 0.14.1
1658 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1660 bootstrap: allow for alternate submodule location
1661 * build-aux/bootstrap (gnulib_path): New variable; use instead of
1662 hardcoding submodule location.
1663 (gnulib_mk): Allow direct use of Makefile.am.
1665 bootstrap: use GNULIB_SRCDIR to reduce disk usage
1666 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1667 rather than reconfiguring where the submodule points.
1669 gettimeofday: restore support for platforms that lack function
1670 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1671 replacement if function is missing.
1672 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1673 * modules/sys_time (Makefile.am): Substitute it.
1674 * lib/sys_time.in.h (gettimeofday): Check it.
1675 Reported by Michael Goffioul.
1677 2010-02-21 Bruno Haible <bruno@clisp.org>
1679 * lib/stdio.in.h (obstack_printf): Fix typo.
1681 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
1683 vc-list-files: use bzr ls's -R option
1684 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1685 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1687 2010-02-21 Jim Meyering <meyering@redhat.com>
1689 init.sh: fix EXEEXT shims to work also for names like test-prog
1690 * tests/init.sh: Re-exec a better shell, when needed.
1691 If the current shell lacks support for posix $(...), an init.sh-using
1692 test will now try to find a shell that supports that. If EXEEXT is
1693 nonempty, we also require support for hyphen-in-alias-name and shell
1694 substitutions like ${var#glob}. Failure to find such a shell results
1697 2010-02-21 Bruno Haible <bruno@clisp.org>
1699 Really work around around "broken pipe" error message from bash 3.2.
1700 * gnulib-tool (func_reset_sigpipe): Remove function.
1701 (echo): In bash 3.2, define to a function that uses printf.
1702 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1704 2010-02-20 Bruno Haible <bruno@clisp.org>
1706 Restore support for automake 1.9.6 with autoconf 2.61.
1707 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1708 Reported by James Youngman <jay@gnu.org>.
1710 2010-02-20 Bruno Haible <bruno@clisp.org>
1712 Improve *printf warning condition.
1713 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1714 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1715 and the function is overridden due to SIGPIPE emulation.
1717 2010-02-20 Bruno Haible <bruno@clisp.org>
1719 * lib/stdio.in.h: Tweak comments.
1721 2010-02-19 Bruno Haible <bruno@clisp.org>
1723 Make it easier to find modules. New gnulib-tool option '--find'.
1724 * gnulib-tool: New option --find.
1725 (func_usage): Document it.
1726 (func_sanitize_modulelist): New function, extracted from
1728 (func_all_modules): Invoke it.
1729 * doc/gnulib-tool.texi (Which modules?): New node.
1731 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
1733 * lib/sys_select.in.h: Provide select replacement even if
1734 sys/select.h exists on a system, for Interix.
1736 2010-02-18 Jim Meyering <meyering@redhat.com>
1738 init.sh: don't use $(...) just yet
1739 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1740 to accommodate e.g., Solaris' /bin/sh.
1742 2010-02-17 Bruno Haible <bruno@clisp.org>
1744 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1745 Reported by Ludovic Courtès <ludo@gnu.org>.
1747 2010-02-16 Simon Josefsson <simon@josefsson.org>
1749 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1750 linking with -lintl.
1752 2010-02-17 Simon Josefsson <simon@josefsson.org>
1754 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1755 if not provided by the system's netdb.h. Reported by
1756 ludo@gnu.org (Ludovic Courtès).
1758 2010-02-15 Jim Meyering <meyering@redhat.com>
1760 init.sh: improve portability and efficiency
1761 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1762 "dummy" in a for loop.
1763 Use '!', not '^' to select the complement of a character set used
1764 in a "case" statement.
1765 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1766 Suggestions from Eric Blake.
1768 init.sh: automatically accommodate programs with the .exe suffix
1769 Automatically arrange for an invocation of "prog" to execute the
1770 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
1771 may use the simpler "prog", yet still work when built on a system
1772 that requires specifying the added suffix.
1773 Do this by constructing a function named "prog" that invokes
1774 "prog.exe" for each .exe file in selected directories.
1775 * tests/init.sh (find_exe_basenames_): New function.
1776 (create_exe_shim_functions_): New function.
1777 (path_prepend_): Use it.
1779 maint.mk: mark syntax-check sc_*.m rules as .PHONY
1780 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1781 "make -t syntax-check" doesn't create a ton of sc_*.m files.
1783 2010-02-14 Jim Meyering <meyering@redhat.com>
1785 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1786 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1787 (sc_prohibit_hash_pjw_without_use): New rule.
1789 maint.mk: allow the default upload destination dir to be overridden
1790 * top/maint.mk (upload_dest_dir_): Define with a default that
1791 preserves the status quo.
1792 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1793 Reported by Peter Simons.
1795 maint.mk: prohibit inclusion of "hash.h" without_use
1796 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1798 2010-02-10 Jim Meyering <meyering@redhat.com>
1800 maint.mk: prohibit inclusion of "ignore-value.h" without_use
1801 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1803 2010-02-09 Eric Blake <ebb9@byu.net>
1804 and Bruno Haible <bruno@clisp.org>
1806 obstack-printf-posix: ensure declaration
1807 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1808 extracted from gl_FUNC_OBSTACK_PRINTF.
1809 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1810 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1812 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1813 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1816 2010-02-08 Bruno Haible <bruno@clisp.org>
1818 gnulib-tool: Fix typo in 2010-02-07 commit.
1819 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1820 Reported by Eric Blake.
1822 2010-02-07 Bruno Haible <bruno@clisp.org>
1824 gnulib-tool: Fix up caching patches.
1825 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1826 option --no-cache. Use associative arrays when supported by the shell.
1827 (sed_comments): New variable.
1828 (modcache): Renamed from do_cache.
1829 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1830 abbreviate unnecessarily.
1831 (have_associative): New variable.
1832 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1833 way also for ksh and zsh.
1834 (func_init_sed_convert_to_cache_statements): New function, extracted
1835 from func_cache_lookup_module. Add support for associative arrays.
1836 Don't set the c_MODULE_cached variable here. Ignore all lines before
1837 the first field header. Remove only the final newline, not all trailing
1838 newlines. Support empty fields correctly. Limit the use of 'eval' to
1840 (func_get_description, func_get_status, func_get_notice,
1841 func_get_applicability, func_get_filelist, func_get_dependencies,
1842 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1843 func_get_automake_snippet, func_get_include_directive,
1844 func_get_link_directive, func_get_license, func_get_maintainer):
1845 Update documentation. List the unoptimized code first. Add support for
1846 associative arrays. Limit the use of 'eval' to assignments.
1847 (func_get_applicability): Undo stylistic pessimisations.
1848 (func_get_automake_snippet, func_get_include_directive): Reduce code
1850 (func_modules_transitive_closure, func_modules_add_dummy,
1851 func_modules_notice, func_modules_to_filelist, func_add_file,
1852 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1853 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1854 func_create_testdir, func_create_megatestdir): Update documentation.
1856 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1858 * gnulib-tool (func_cache_lookup_module): Store the module name
1859 belonging to the cache variable; error out if two different
1860 module names map to the same cache variable name.
1862 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1864 gnulib-tool: Make caching optional.
1865 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1866 Update matching short versions of --no-changelog.
1867 (func_usage): Update.
1868 (sed_extract_cache_prog): Renamed from ...
1869 (sed_extract_prog): ... this; revert to old extraction script.
1870 (func_get_description, func_get_status)
1871 (func_get_notice, func_get_applicability, func_get_filelist)
1872 (func_get_dependencies, func_get_autoconf_early_snippet)
1873 (func_get_autoconf_snippet, func_get_automake_snippet)
1874 (func_get_include_directive, func_get_link_directive)
1875 (func_get_license, func_get_maintainer): If $do_cache is false,
1876 use old, non-caching extraction scripts.
1877 Suggestion by Bruno Haible.
1879 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1881 gnulib-tool: cache module metainformation.
1882 * gnulib-tool (sed_extract_prog): Match newline before each
1883 header, and rewrite header to a shell variable suffix.
1884 (func_cache_var, func_cache_lookup_module): New functions,
1885 to turn a module name into a cache variable prefix, and to
1886 look up and cache module metainformation.
1887 (func_get_description, func_get_status)
1888 (func_get_notice, func_get_applicability, func_get_filelist)
1889 (func_get_dependencies, func_get_autoconf_early_snippet)
1890 (func_get_autoconf_snippet, func_get_automake_snippet)
1891 (func_get_include_directive, func_get_link_directive)
1892 (func_get_license, func_get_maintainer): Use
1893 func_cache_lookup_module.
1895 2010-02-07 Bruno Haible <bruno@clisp.org>
1897 fnctl: Fix missing dependency.
1898 * modules/fcntl (Depends-on): Add getdtablesize.
1899 Reported by John W. Eaton <jwe@gnu.org>.
1901 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1903 Argp: fix recognition of short alias options.
1905 * lib/argp-parse.c (convert_options): Fix improper use of
1906 `|' between character values.
1907 * tests/test-argp.c (group1_option): New alias option
1909 (group1_parser): Special handling for 'r'.
1910 (test15): New test case.
1911 (test_fun): Add test15.
1912 * tests/test-argp-2.sh: Update expected --help and --usage
1915 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1917 * tests/test-argp.c: Fix indentation.
1919 2010-02-04 Eric Blake <ebb9@byu.net>
1921 gettimeofday: expose type of second argument
1922 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1923 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1924 * tests/test-gettimeofday.c: Use it to silence warning.
1925 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1928 2010-02-03 Jim Meyering <meyering@redhat.com>
1930 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1931 * lib/regcomp.c (TYPE_SIGNED): Define.
1932 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1934 regcomp.c: avoid a new -Wshadow warning
1935 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1937 2010-02-01 Jim Meyering <meyering@redhat.com>
1939 removing useless parentheses in cpp #define directives
1940 For motivation, see commit c0221df4, "define STREQ(a,b)
1941 consistently, removing useless parentheses"
1942 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1943 * lib/mountlist.c (MNT_IGNORE): Likewise.
1944 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1946 2010-02-01 Eric Blake <ebb9@byu.net>
1948 sys_time: use link-warning
1949 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1950 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1951 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1952 * modules/sys_time (Depends-on): Add warn-on-use.
1953 (Makefile.am): Always build replacement.
1954 (configure.ac): Update substitutions.
1955 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1956 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1957 bother with SYS_TIME_H.
1958 * modules/gettimeofday (configure.ac): Declare indicator.
1959 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1962 closein-tests: silence compiler warning
1963 * tests/test-closein.c (main): Ignore fread result.
1964 * modules/closein-tests (Depends-on): Add ignore-value.
1966 tests: silence warning about system return
1967 * tests/test-areadlink-with-size.c (main): Ignore system result.
1968 * tests/test-areadlink.c (main): Likewise.
1969 * tests/test-areadlinkat-with-size.c (main): Likewise.
1970 * tests/test-areadlinkat.c (main): Likewise.
1971 * tests/test-canonicalize-lgpl.c (main): Likewise.
1972 * tests/test-canonicalize.c (main): Likewise.
1973 * tests/test-chown.c (main): Likewise.
1974 * tests/test-fchownat.c (main): Likewise.
1975 * tests/test-fdutimensat.c (main): Likewise.
1976 * tests/test-fstatat.c (main): Likewise.
1977 * tests/test-futimens.c (main): Likewise.
1978 * tests/test-lchown.c (main): Likewise.
1979 * tests/test-link.c (main): Likewise.
1980 * tests/test-linkat.c (main): Likewise.
1981 * tests/test-lstat.c (main): Likewise.
1982 * tests/test-mkdir.c (main): Likewise.
1983 * tests/test-mkdirat.c (main): Likewise.
1984 * tests/test-mkfifo.c (main): Likewise.
1985 * tests/test-mkfifoat.c (main): Likewise.
1986 * tests/test-mknod.c (main): Likewise.
1987 * tests/test-readlink.c (main): Likewise.
1988 * tests/test-remove.c (main): Likewise.
1989 * tests/test-rename.c (main): Likewise.
1990 * tests/test-renameat.c (main): Likewise.
1991 * tests/test-rmdir.c (main): Likewise.
1992 * tests/test-symlink.c (main): Likewise.
1993 * tests/test-symlinkat.c (main): Likewise.
1994 * tests/test-unlink.c (main): Likewise.
1995 * tests/test-unlinkat.c (main): Likewise.
1996 * tests/test-utimens.c (main): Likewise.
1997 * tests/test-utimensat.c (main): Likewise.
1998 * modules/areadlink-tests (Depends-on): Add ignore-value.
1999 * modules/areadlink-with-size-tests (Depends-on): Likewise.
2000 * modules/areadlinkat-tests (Depends-on): Likewise.
2001 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2002 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2003 * modules/canonicalize-tests (Depends-on): Likewise.
2004 * modules/chown-tests (Depends-on): Likewise.
2005 * modules/fdutimensat-tests (Depends-on): Likewise.
2006 * modules/futimens-tests (Depends-on): Likewise.
2007 * modules/lchown-tests (Depends-on): Likewise.
2008 * modules/link-tests (Depends-on): Likewise.
2009 * modules/linkat-tests (Depends-on): Likewise.
2010 * modules/lstat-tests (Depends-on): Likewise.
2011 * modules/mkdir-tests (Depends-on): Likewise.
2012 * modules/mkfifo-tests (Depends-on): Likewise.
2013 * modules/mkfifoat-tests (Depends-on): Likewise.
2014 * modules/mknod-tests (Depends-on): Likewise.
2015 * modules/openat-tests (Depends-on): Likewise.
2016 * modules/readlink-tests (Depends-on): Likewise.
2017 * modules/remove-tests (Depends-on): Likewise.
2018 * modules/rename-tests (Depends-on): Likewise.
2019 * modules/renameat-tests (Depends-on): Likewise.
2020 * modules/rmdir-tests (Depends-on): Likewise.
2021 * modules/symlink-tests (Depends-on): Likewise.
2022 * modules/symlinkat-tests (Depends-on): Likewise.
2023 * modules/unlink-tests (Depends-on): Likewise.
2024 * modules/utimens-tests (Depends-on): Likewise.
2025 * modules/utimensat-tests (Depends-on): Likewise.
2027 2010-01-31 Bruno Haible <bruno@clisp.org>
2029 Perform the same test for many <math.h> functions.
2030 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2031 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2032 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2034 * modules/acos (configure.ac): Likewise.
2035 * modules/asin (configure.ac): Likewise.
2036 * modules/atan (configure.ac): Likewise.
2037 * modules/atan2 (configure.ac): Likewise.
2038 * modules/cbrt (configure.ac): Likewise.
2039 * modules/copysign (configure.ac): Likewise.
2040 * modules/cos (configure.ac): Likewise.
2041 * modules/cosh (configure.ac): Likewise.
2042 * modules/erf (configure.ac): Likewise.
2043 * modules/erfc (configure.ac): Likewise.
2044 * modules/exp (configure.ac): Likewise.
2045 * modules/fmod (configure.ac): Likewise.
2046 * modules/hypot (configure.ac): Likewise.
2047 * modules/j0 (configure.ac): Likewise.
2048 * modules/j1 (configure.ac): Likewise.
2049 * modules/jn (configure.ac): Likewise.
2050 * modules/lgamma (configure.ac): Likewise.
2051 * modules/log (configure.ac): Likewise.
2052 * modules/log10 (configure.ac): Likewise.
2053 * modules/log1p (configure.ac): Likewise.
2054 * modules/pow (configure.ac): Likewise.
2055 * modules/remainder (configure.ac): Likewise.
2056 * modules/sin (configure.ac): Likewise.
2057 * modules/sinh (configure.ac): Likewise.
2058 * modules/tan (configure.ac): Likewise.
2059 * modules/tanh (configure.ac): Likewise.
2060 * modules/y0 (configure.ac): Likewise.
2061 * modules/y1 (configure.ac): Likewise.
2062 * modules/yn (configure.ac): Likewise.
2063 Suggested by Paolo Bonzini.
2065 2010-01-31 Bruno Haible <bruno@clisp.org>
2067 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2069 2010-01-31 Bruno Haible <bruno@clisp.org>
2071 Work around getdelim() bug on FreeBSD 8.0.
2072 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2073 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2075 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2077 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2078 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2079 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2081 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2083 2010-01-31 Bruno Haible <bruno@clisp.org>
2085 Work around getline() bug on FreeBSD 8.0.
2086 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2087 and a non-zero size.
2088 * tests/test-getline.c (main): Likewise.
2089 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2090 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2092 2010-01-28 Eric Blake <ebb9@byu.net>
2094 regex: fix build failure
2095 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2098 2010-01-28 Jim Meyering <meyering@redhat.com>
2100 regex: do not ignore memory allocation failure
2101 * lib/regex_internal.c (create_cd_newstate): Detect
2102 re_node_set_init_copy failure. Extracted from glibc commit
2103 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2105 regex: sync more white-space changes from libc
2106 * lib/regex_internal.c: White-space only changes.
2107 * lib/regexec.c: Likewise.
2109 regex: add many uses of __attribute_warn_unused_result__
2110 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2111 * lib/regexec.c: Likewise.
2112 Extracted from a messy glibc commit.
2114 regcomp.c: spelling and merge-artifact from glibc
2115 * lib/regcomp.c: Merge remainder of glibc's
2116 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2118 regcomp.c: sync white-space changes from glibc
2119 * lib/regcomp.c: Merge to accommodate white space
2120 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2122 regcomp.c: do not ignore internal return values
2123 * lib/regcomp.c: Do not ignore internal return values.
2124 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2125 but without its white-space changes and spelling fixes.
2127 regex_internal.h: define __attribute_warn_unused_result__
2128 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2130 maint: add a syntax-check rule to check for vulnerable Makefile.in
2131 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2133 2010-01-27 Jim Meyering <meyering@redhat.com>
2135 ncftpput-ftp: clean up spaces
2136 * build-aux/ncftpput-ftp: Make Copyright line consistent.
2137 Remove trailing blanks.
2139 2010-01-27 Simon Josefsson <simon@josefsson.org>
2141 * build-aux/git-version-gen: Fix copyright statement.
2142 * build-aux/gnupload: Likewise.
2143 * tests/test-arcfour.c: Likewise.
2144 * tests/test-arctwo.c: Likewise.
2145 * tests/test-count-one-bits.c: Likewise.
2146 * tests/test-crc.c: Likewise.
2147 * tests/test-des.c: Likewise.
2148 * tests/test-gc-arcfour.c: Likewise.
2149 * tests/test-gc-arctwo.c: Likewise.
2150 * tests/test-gc-des.c: Likewise.
2151 * tests/test-gc-hmac-md5.c: Likewise.
2152 * tests/test-gc-hmac-sha1.c: Likewise.
2153 * tests/test-gc-md2.c: Likewise.
2154 * tests/test-gc-md4.c: Likewise.
2155 * tests/test-gc-md5.c: Likewise.
2156 * tests/test-gc-pbkdf2-sha1.c: Likewise.
2157 * tests/test-gc-rijndael.c: Likewise.
2158 * tests/test-gc-sha1.c: Likewise.
2159 * tests/test-gc.c: Likewise.
2160 * tests/test-gethostname.c: Likewise.
2161 * tests/test-gettimeofday.c: Likewise.
2162 * tests/test-hash.c: Likewise.
2163 * tests/test-hmac-md5.c: Likewise.
2164 * tests/test-hmac-sha1.c: Likewise.
2165 * tests/test-md2.c: Likewise.
2166 * tests/test-md4.c: Likewise.
2167 * tests/test-md5.c: Likewise.
2168 * tests/test-memchr.c: Likewise.
2169 * tests/test-memchr2.c: Likewise.
2170 * tests/test-memcmp.c: Likewise.
2171 * tests/test-memmem.c: Likewise.
2172 * tests/test-memrchr.c: Likewise.
2173 * tests/test-rawmemchr.c: Likewise.
2174 * tests/test-read-file.c: Likewise.
2175 * tests/test-rijndael.c: Likewise.
2176 * tests/test-sockets.c: Likewise.
2177 * tests/test-strchrnul.c: Likewise.
2178 * tests/test-strstr.c: Likewise.
2179 * tests/test-strtod.c: Likewise.
2180 * build-aux/ncftpput-ftp: Likewise.
2182 2010-01-26 Eric Blake <ebb9@byu.net>
2184 ignore-value: update recommended header name
2185 * modules/ignore-value (Include): Only use <> for headers that
2188 2010-01-26 Jim Meyering <meyering@redhat.com>
2190 test-userspec.c: avoid compiler warnings
2191 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2192 and "initialization discards qualifiers..." warnings.
2193 Put the first "uid" in its own scope, and make char* members "const".
2195 2010-01-25 Bruno Haible <bruno@clisp.org>
2197 gnulib-tool: Make warning diagnostics consistent.
2198 * gnulib-tool (func_warning): New function.
2199 Use it everywhere where gnulib-tool produces output to stderr and it is
2202 2010-01-25 Bruno Haible <bruno@clisp.org>
2204 Fix test dependencies.
2205 * modules/xstrtol-tests (Depends-on): Add inttypes.
2206 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2208 2010-01-25 Pádraig Brady <P@draigBrady.com>
2210 syntax-check: detect incorrect boolean macro values in config.h
2211 * modules/maintainer-makefile (configure.ac): Parameterize the location
2212 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2213 The logic is from Eric Blake and the location indicated by Jim Meyering.
2214 Note the more natural CONFIG_HEADER name is prohibited by automake
2215 for backwards compatibility reasons.
2216 * top/maint.mk (sc_Wundef_boolean): New rule.
2218 2010-01-25 Jim Meyering <meyering@redhat.com>
2220 bootstrap: detect MacOS 10.6's shasum, too
2221 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2222 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2224 2010-01-23 Jim Meyering <meyering@redhat.com>
2226 xstrtoll: new module
2227 * modules/xstrtoll: New file.
2228 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2229 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2230 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2231 ./configure fails if you use this module and lack "long long".
2232 * modules/xstrtoll-tests: New module.
2233 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2234 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2235 new init.sh-based test framework.
2237 2010-01-24 Bruno Haible <bruno@clisp.org>
2239 Tests for module 'yn'.
2240 * modules/yn-tests: New file.
2241 * tests/test-yn.c: New file.
2243 Tests for module 'y1'.
2244 * modules/y1-tests: New file.
2245 * tests/test-y1.c: New file.
2247 Tests for module 'y0'.
2248 * modules/y0-tests: New file.
2249 * tests/test-y0.c: New file.
2251 Tests for module 'tanh'.
2252 * modules/tanh-tests: New file.
2253 * tests/test-tanh.c: New file.
2255 Tests for module 'tan'.
2256 * modules/tan-tests: New file.
2257 * tests/test-tan.c: New file.
2259 Tests for module 'sqrt'.
2260 * modules/sqrt-tests: New file.
2261 * tests/test-sqrt.c: New file.
2263 Tests for module 'sinh'.
2264 * modules/sinh-tests: New file.
2265 * tests/test-sinh.c: New file.
2267 Tests for module 'sin'.
2268 * modules/sin-tests: New file.
2269 * tests/test-sin.c: New file.
2271 Tests for module 'rint'.
2272 * modules/rint-tests: New file.
2273 * tests/test-rint.c: New file.
2275 Tests for module 'remainder'.
2276 * modules/remainder-tests: New file.
2277 * tests/test-remainder.c: New file.
2279 Tests for module 'pow'.
2280 * modules/pow-tests: New file.
2281 * tests/test-pow.c: New file.
2283 Tests for module 'nextafter'.
2284 * modules/nextafter-tests: New file.
2285 * tests/test-nextafter.c: New file.
2287 Tests for module 'modf'.
2288 * modules/modf-tests: New file.
2289 * tests/test-modf.c: New file.
2291 Tests for module 'logb'.
2292 * modules/logb-tests: New file.
2293 * tests/test-logb.c: New file.
2295 Tests for module 'log1p'.
2296 * modules/log1p-tests: New file.
2297 * tests/test-log1p.c: New file.
2299 Tests for module 'log10'.
2300 * modules/log10-tests: New file.
2301 * tests/test-log10.c: New file.
2303 Tests for module 'log'.
2304 * modules/log-tests: New file.
2305 * tests/test-log.c: New file.
2307 Tests for module 'lgamma'.
2308 * modules/lgamma-tests: New file.
2309 * tests/test-lgamma.c: New file.
2311 Tests for module 'ldexp'.
2312 * modules/ldexp-tests: New file.
2313 * tests/test-ldexp.c: New file.
2315 Tests for module 'jn'.
2316 * modules/jn-tests: New file.
2317 * tests/test-jn.c: New file.
2319 Tests for module 'j1'.
2320 * modules/j1-tests: New file.
2321 * tests/test-j1.c: New file.
2323 Tests for module 'j0'.
2324 * modules/j0-tests: New file.
2325 * tests/test-j0.c: New file.
2327 Tests for module 'hypot'.
2328 * modules/hypot-tests: New file.
2329 * tests/test-hypot.c: New file.
2331 Tests for module 'fmod'.
2332 * modules/fmod-tests: New file.
2333 * tests/test-fmod.c: New file.
2335 Tests for module 'fabs'.
2336 * modules/fabs-tests: New file.
2337 * tests/test-fabs.c: New file.
2339 Tests for module 'exp'.
2340 * modules/exp-tests: New file.
2341 * tests/test-exp.c: New file.
2343 Tests for module 'erfc'.
2344 * modules/erfc-tests: New file.
2345 * tests/test-erfc.c: New file.
2347 Tests for module 'erf'.
2348 * modules/erf-tests: New file.
2349 * tests/test-erf.c: New file.
2351 Tests for module 'cosh'.
2352 * modules/cosh-tests: New file.
2353 * tests/test-cosh.c: New file.
2355 Tests for module 'cos'.
2356 * modules/cos-tests: New file.
2357 * tests/test-cos.c: New file.
2359 Tests for module 'copysign'.
2360 * modules/copysign-tests: New file.
2361 * tests/test-copysign.c: New file.
2363 Tests for module 'cbrt'.
2364 * modules/cbrt-tests: New file.
2365 * tests/test-cbrt.c: New file.
2367 Tests for module 'atan2'.
2368 * modules/atan2-tests: New file.
2369 * tests/test-atan2.c: New file.
2371 Tests for module 'atan'.
2372 * modules/atan-tests: New file.
2373 * tests/test-atan.c: New file.
2375 Tests for module 'asin'.
2376 * modules/asin-tests: New file.
2377 * tests/test-asin.c: New file.
2379 Tests for module 'acos'.
2380 * modules/acos-tests: New file.
2381 * tests/test-acos.c: New file.
2383 2010-01-24 Bruno Haible <bruno@clisp.org>
2385 Fix tests for common <math.h> functions.
2386 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2387 code snippet that references the function pointer, rather than merely
2388 calling the function. Substitute the FUNC_LIBM variable.
2389 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2390 * modules/acos (configure.ac): Likewise.
2391 * modules/asin (configure.ac): Likewise.
2392 * modules/atan (configure.ac): Likewise.
2393 * modules/atan2 (configure.ac): Likewise.
2394 * modules/cbrt (configure.ac): Likewise.
2395 * modules/copysign (configure.ac): Likewise.
2396 * modules/cos (configure.ac): Likewise.
2397 * modules/cosh (configure.ac): Likewise.
2398 * modules/erf (configure.ac): Likewise.
2399 * modules/erfc (configure.ac): Likewise.
2400 * modules/exp (configure.ac): Likewise.
2401 * modules/fabs (configure.ac): Likewise.
2402 * modules/fmod (configure.ac): Likewise.
2403 * modules/hypot (configure.ac): Likewise.
2404 * modules/j0 (configure.ac): Likewise.
2405 * modules/j1 (configure.ac): Likewise.
2406 * modules/jn (configure.ac): Likewise.
2407 * modules/ldexp (configure.ac): Likewise.
2408 * modules/lgamma (configure.ac): Likewise.
2409 * modules/log (configure.ac): Likewise.
2410 * modules/log10 (configure.ac): Likewise.
2411 * modules/log1p (configure.ac): Likewise.
2412 * modules/logb (configure.ac): Likewise.
2413 * modules/modf (configure.ac): Likewise.
2414 * modules/nextafter (configure.ac): Likewise.
2415 * modules/pow (configure.ac): Likewise.
2416 * modules/remainder (configure.ac): Likewise.
2417 * modules/rint (configure.ac): Likewise.
2418 * modules/sin (configure.ac): Likewise.
2419 * modules/sinh (configure.ac): Likewise.
2420 * modules/tan (configure.ac): Likewise.
2421 * modules/tanh (configure.ac): Likewise.
2422 * modules/y0 (configure.ac): Likewise.
2423 * modules/y1 (configure.ac): Likewise.
2424 * modules/yn (configure.ac): Likewise.
2426 2010-01-24 Bruno Haible <bruno@clisp.org>
2428 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2429 * tests/test-acosl.c (x): New variable.
2430 (main): Store argument in x and fetch it from x.
2431 * tests/test-asinl.c (x): New variable.
2432 (main): Store argument in x and fetch it from x.
2433 * tests/test-atanl.c (x): New variable.
2434 (main): Store argument in x and fetch it from x.
2435 * tests/test-cosl.c (x): New variable.
2436 (main): Store argument in x and fetch it from x.
2437 * tests/test-expl.c (x): New variable.
2438 (main): Store argument in x and fetch it from x.
2439 * tests/test-logl.c (x): New variable.
2440 (main): Store argument in x and fetch it from x.
2441 * tests/test-sinl.c (x): New variable.
2442 (main): Store argument in x and fetch it from x.
2443 * tests/test-sqrtl.c (x): New variable.
2444 (main): Store argument in x and fetch it from x.
2445 * tests/test-tanl.c (x): New variable.
2446 (main): Store argument in x and fetch it from x.
2448 2010-01-24 Bruno Haible <bruno@clisp.org>
2450 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2451 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2452 assignments to the initial TESTS_ENVIRONMENT.
2453 * doc/gnulib.texi (Unit test modules): Document it.
2454 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2456 * modules/btowc-tests (Makefile.am): Likewise.
2457 * modules/c-stack-tests (Makefile.am): Likewise.
2458 * modules/c-strcase-tests (Makefile.am): Likewise.
2459 * modules/copy-file-tests (Makefile.am): Likewise.
2460 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2461 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2462 * modules/mbrtowc-tests (Makefile.am): Likewise.
2463 * modules/mbscasecmp-tests (Makefile.am): Likewise.
2464 * modules/mbscasestr-tests (Makefile.am): Likewise.
2465 * modules/mbschr-tests (Makefile.am): Likewise.
2466 * modules/mbscspn-tests (Makefile.am): Likewise.
2467 * modules/mbsinit-tests (Makefile.am): Likewise.
2468 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2469 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2470 * modules/mbspbrk-tests (Makefile.am): Likewise.
2471 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2472 * modules/mbsrchr-tests (Makefile.am): Likewise.
2473 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2474 * modules/mbsspn-tests (Makefile.am): Likewise.
2475 * modules/mbsstr-tests (Makefile.am): Likewise.
2476 * modules/nl_langinfo-tests (Makefile.am): Likewise.
2477 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2478 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2479 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2480 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2481 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2482 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2483 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2484 * modules/wcrtomb-tests (Makefile.am): Likewise.
2485 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2486 * modules/wcsrtombs-tests (Makefile.am): Likewise.
2487 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2488 assignments from TESTS_ENVIRONMENT.
2489 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2491 * modules/argp-version-etc-tests (Makefile.am): Likewise.
2492 * modules/atexit-tests (Makefile.am): Likewise.
2493 * modules/binary-io-tests (Makefile.am): Likewise.
2494 * modules/closein-tests (Makefile.am): Likewise.
2495 * modules/dprintf-posix-tests (Makefile.am): Likewise.
2496 * modules/exclude-tests (Makefile.am): Likewise.
2497 * modules/fflush-tests (Makefile.am): Likewise.
2498 * modules/fpending-tests (Makefile.am): Likewise.
2499 * modules/fprintf-posix-tests (Makefile.am): Likewise.
2500 * modules/freadahead-tests (Makefile.am): Likewise.
2501 * modules/freadptr-tests (Makefile.am): Likewise.
2502 * modules/freadseek-tests (Makefile.am): Likewise.
2503 * modules/fseek-tests (Makefile.am): Likewise.
2504 * modules/fseeko-tests (Makefile.am): Likewise.
2505 * modules/ftell-tests (Makefile.am): Likewise.
2506 * modules/ftello-tests (Makefile.am): Likewise.
2507 * modules/idpriv-drop-tests (Makefile.am): Likewise.
2508 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2509 * modules/lseek-tests (Makefile.am): Likewise.
2510 * modules/parse-duration-tests (Makefile.am): Likewise.
2511 * modules/perror-tests (Makefile.am): Likewise.
2512 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2513 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2514 * modules/pipe-tests (Makefile.am): Likewise.
2515 * modules/pread-tests (Makefile.am): Likewise.
2516 * modules/printf-posix-tests (Makefile.am): Likewise.
2517 * modules/select-tests (Makefile.am): Likewise.
2518 * modules/sigpipe-tests (Makefile.am): Likewise.
2519 * modules/tsearch-tests (Makefile.am): Likewise.
2520 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2521 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2522 * modules/uniname/uniname-tests (Makefile.am): Likewise.
2523 * modules/uniwidth/width-tests (Makefile.am): Likewise.
2524 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2525 * modules/version-etc-tests (Makefile.am): Likewise.
2526 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2527 * modules/vprintf-posix-tests (Makefile.am): Likewise.
2528 * modules/xalloc-die-tests (Makefile.am): Likewise.
2529 * modules/xprintf-posix-tests (Makefile.am): Likewise.
2530 * modules/xstrtoimax-tests (Makefile.am): Likewise.
2531 * modules/xstrtol-tests (Makefile.am): Likewise.
2532 * modules/xstrtoumax-tests (Makefile.am): Likewise.
2533 * modules/yesno-tests (Makefile.am): Likewise.
2534 Suggested by Jim Meyering.
2536 2010-01-24 Bruno Haible <bruno@clisp.org>
2539 * doc/gnulib.texi (Writing modules): New chapter.
2540 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2543 2010-01-24 Jim Meyering <meyering@redhat.com>
2545 maint.mk: do not prepend "./" after filtering
2546 * top/maint.mk (_prepend_srcdir_prefix): New variable
2547 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2548 "./" when $(srcdir) is ".".
2550 define STREQ(a,b) consistently, removing useless parentheses
2551 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2552 since the only risk is that "a" or "b" contains an unparenthesized
2553 comma, but if either did that, STREQ would have 3 or more arguments.
2554 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2555 * lib/fts.c (STREQ): Remove unnecessary parentheses.
2556 * lib/hash-triple.c (STREQ): Likewise.
2557 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2558 * lib/getugroups.c (STREQ): Likewise.
2560 2010-01-23 Jim Meyering <meyering@redhat.com>
2562 maint.mk: fix syntax-check in a non-srcdir build directory
2563 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2564 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
2566 2010-01-22 Jim Meyering <meyering@redhat.com>
2568 userspec: add unit tests
2569 * tests/test-userspec.c: New file.
2570 * modules/userspec-tests: Likewise.
2572 2010-01-21 Jim Meyering <meyering@redhat.com>
2574 maint.mk: handle source file names containing "." robustly
2575 * top/maint.mk (_dot_escaped_srcdir): Define.
2576 (VC_LIST): Use it in LHS of sed substitution.
2578 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
2580 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2581 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2582 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2583 from a non-srcdir build.
2585 2010-01-20 Eric Blake <ebb9@byu.net>
2587 warn-on-use: use instead of link-warning
2588 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2589 * modules/unistd (Depends-on, Makefile.am): Likewise.
2590 * modules/arpa_inet (Depends-on): Replace link-warning with
2592 (Makefile.am): Update rules accordingly.
2593 * modules/ctype (Depends-on, Makefile.am): Likewise.
2594 * modules/dirent (Depends-on, Makefile.am): Likewise.
2595 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2596 * modules/inttypes (Depends-on, Makefile.am): Likewise.
2597 * modules/langinfo (Depends-on, Makefile.am): Likewise.
2598 * modules/locale (Depends-on, Makefile.am): Likewise.
2599 * modules/math (Depends-on, Makefile.am): Likewise.
2600 * modules/search (Depends-on, Makefile.am): Likewise.
2601 * modules/signal (Depends-on, Makefile.am): Likewise.
2602 * modules/spawn (Depends-on, Makefile.am): Likewise.
2603 * modules/stdlib (Depends-on, Makefile.am): Likewise.
2604 * modules/string (Depends-on, Makefile.am): Likewise.
2605 * modules/strings (Depends-on, Makefile.am): Likewise.
2606 * modules/sys_file (Depends-on, Makefile.am): Likewise.
2607 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2608 * modules/sys_select (Depends-on, Makefile.am): Likewise.
2609 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2610 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2611 * modules/sys_times (Depends-on, Makefile.am): Likewise.
2612 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2613 * modules/wchar (Depends-on, Makefile.am): Likewise.
2614 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2616 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2617 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2618 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2619 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2620 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2621 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2622 * m4/math_h.m4 (gl_MATH_H): Likewise.
2623 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2624 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2625 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2626 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2627 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2628 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2629 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2630 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2631 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2632 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2633 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2634 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2635 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2636 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2637 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2638 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2639 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2641 * lib/ctype.in.h: Likewise.
2642 * lib/dirent.in.h: Likewise.
2643 * lib/fcntl.in.h: Likewise.
2644 * lib/inttypes.in.h: Likewise.
2645 * lib/langinfo.in.h: Likewise.
2646 * lib/locale.in.h: Likewise.
2647 * lib/math.in.h: Likewise.
2648 * lib/search.in.h: Likewise.
2649 * lib/signal.in.h: Likewise.
2650 * lib/spawn.in.h: Likewise.
2651 * lib/stdio.in.h: Likewise.
2652 * lib/stdlib.in.h: Likewise.
2653 * lib/string.in.h: Likewise.
2654 * lib/strings.in.h: Likewise.
2655 * lib/sys_file.in.h: Likewise.
2656 * lib/sys_ioctl.in.h: Likewise.
2657 * lib/sys_select.in.h: Likewise.
2658 * lib/sys_socket.in.h: Likewise.
2659 * lib/sys_stat.in.h: Likewise.
2660 * lib/sys_times.in.h: Likewise.
2661 * lib/sys_utsname.in.h: Likewise.
2662 * lib/unistd.in.h: Likewise.
2663 * lib/wchar.in.h: Likewise.
2665 2010-01-20 Bruno Haible <bruno@clisp.org>
2667 Avoid duplicate -lm.
2668 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2669 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2670 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2671 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2672 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2673 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2674 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2675 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2676 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2677 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2678 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2679 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2680 Reported by Paolo Bonzini.
2682 2010-01-19 Bruno Haible <bruno@clisp.org>
2684 langinfo, nl_langinfo: Relicense under LGPLv2+.
2685 * modules/langinfo (License): Change to LGPLv2+.
2686 * modules/nl_langinfo (License): Likewise.
2687 Patch by David Lutterkort <lutter@redhat.com>.
2689 2010-01-19 Bruno Haible <bruno@clisp.org>
2691 Avoid compilation error with cc on OSF/1 5.1.
2692 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2693 statement, not before.
2694 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2696 2010-01-18 Bruno Haible <bruno@clisp.org>
2698 Avoid a link error due to the __printf__ symbol.
2699 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2701 (__format__, __printf__): Remove definitions.
2702 * lib/argp-fmtstream.h: Likewise.
2703 * lib/argp.h: Likewise.
2704 * lib/error.h: Likewise.
2705 * lib/vasnprintf.h: Likewise.
2706 * lib/xprintf.h: Likewise.
2707 * lib/xvasprintf.h: Likewise.
2708 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2710 2010-01-18 Bruno Haible <bruno@clisp.org>
2712 Tests for module 'tanl'.
2713 * modules/tanl-tests: New file.
2714 * tests/test-tanl.c: New file.
2716 Tests for module 'sqrtl'.
2717 * modules/sqrtl-tests: New file.
2718 * tests/test-sqrtl.c: New file.
2720 Tests for module 'sinl'.
2721 * modules/sinl-tests: New file.
2722 * tests/test-sinl.c: New file.
2724 Tests for module 'logl'.
2725 * modules/logl-tests: New file.
2726 * tests/test-logl.c: New file.
2728 Tests for module 'expl'.
2729 * modules/expl-tests: New file.
2730 * tests/test-expl.c: New file.
2732 Tests for module 'cosl'.
2733 * modules/cosl-tests: New file.
2734 * tests/test-cosl.c: New file.
2736 Tests for module 'atanl'.
2737 * modules/atanl-tests: New file.
2738 * tests/test-atanl.c: New file.
2740 Tests for module 'asinl'.
2741 * modules/asinl-tests: New file.
2742 * tests/test-asinl.c: New file.
2744 Tests for module 'acosl'.
2745 * modules/acosl-tests: New file.
2746 * tests/test-acosl.c: New file.
2748 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2749 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2750 tanl): Use the standard gnulib idiom.
2751 * lib/cosl.c: Don't include trigl.c and sincosl.c.
2752 * lib/sinl.c: Likewise.
2753 * lib/tanl.c: Don't include trigl.c.
2754 (kernel_tanl): Make static.
2755 * lib/sincosl.c: Include trigl.h first.
2756 * lib/trigl.c: Likewise.
2757 * m4/acosl.m4: New file.
2758 * m4/asinl.m4: New file.
2759 * m4/atanl.m4: New file.
2760 * m4/cosl.m4: New file.
2761 * m4/expl.m4: New file.
2762 * m4/logl.m4: New file.
2763 * m4/sinl.m4: New file.
2764 * m4/sqrtl.m4: New file.
2765 * m4/tanl.m4: New file.
2766 * m4/mathl.m4: Remove file.
2767 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2768 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2769 Don't initialize GNULIB_MATHL.
2770 * modules/acosl: New file.
2771 * modules/asinl: New file.
2772 * modules/atanl: New file.
2773 * modules/cosl: New file.
2774 * modules/expl: New file.
2775 * modules/logl: New file.
2776 * modules/sinl: New file.
2777 * modules/sqrtl: New file.
2778 * modules/tanl: New file.
2779 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2780 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2781 substitute GNULIB_MATHL.
2782 * modules/mathl: Rewritten.
2783 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2784 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2785 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2786 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2787 * doc/posix-functions/expl.texi: Mention the 'expl' module.
2788 * doc/posix-functions/logl.texi: Mention the 'logl' module.
2789 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2790 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2791 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2793 2010-01-18 Bruno Haible <bruno@clisp.org>
2795 sqrt: Make gl_FUNC_SQRT requirable.
2796 * m4/sqrt.m4: New file.
2797 * modules/sqrt (Files): Add it.
2798 (configure.ac): Invoke gl_FUNC_SQRT.
2800 2010-01-18 Bruno Haible <bruno@clisp.org>
2802 New modules for common <math.h> functions.
2803 * m4/mathfunc.m4: New file.
2804 * modules/acos: New file.
2805 * modules/asin: New file.
2806 * modules/atan: New file.
2807 * modules/atan2: New file.
2808 * modules/cbrt: New file.
2809 * modules/copysign: New file.
2810 * modules/cos: New file.
2811 * modules/cosh: New file.
2812 * modules/erf: New file.
2813 * modules/erfc: New file.
2814 * modules/exp: New file.
2815 * modules/fabs: New file.
2816 * modules/fmod: New file.
2817 * modules/hypot: New file.
2818 * modules/j0: New file.
2819 * modules/j1: New file.
2820 * modules/jn: New file.
2821 * modules/ldexp: New file.
2822 * modules/lgamma: New file.
2823 * modules/log: New file.
2824 * modules/log10: New file.
2825 * modules/log1p: New file.
2826 * modules/logb: New file.
2827 * modules/modf: New file.
2828 * modules/nextafter: New file.
2829 * modules/pow: New file.
2830 * modules/remainder: New file.
2831 * modules/rint: New file.
2832 * modules/sin: New file.
2833 * modules/sinh: New file.
2834 * modules/sqrt: New file.
2835 * modules/tan: New file.
2836 * modules/tanh: New file.
2837 * modules/y0: New file.
2838 * modules/y1: New file.
2839 * modules/yn: New file.
2840 * doc/posix-functions/acos.texi: Mention the 'acos' module.
2841 * doc/posix-functions/asin.texi: Mention the 'asin' module.
2842 * doc/posix-functions/atan.texi: Mention the 'atan' module.
2843 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2844 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2845 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2846 * doc/posix-functions/cos.texi: Mention the 'cos' module.
2847 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2848 * doc/posix-functions/erf.texi: Mention the 'erf' module.
2849 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2850 * doc/posix-functions/exp.texi: Mention the 'exp' module.
2851 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2852 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2853 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2854 * doc/posix-functions/j0.texi: Mention the 'j0' module.
2855 * doc/posix-functions/j1.texi: Mention the 'j1' module.
2856 * doc/posix-functions/jn.texi: Mention the 'jn' module.
2857 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2858 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2859 * doc/posix-functions/log.texi: Mention the 'log' module.
2860 * doc/posix-functions/log10.texi: Mention the 'log10' module.
2861 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2862 * doc/posix-functions/logb.texi: Mention the 'logb' module.
2863 * doc/posix-functions/modf.texi: Mention the 'modf' module.
2864 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2865 * doc/posix-functions/pow.texi: Mention the 'pow' module.
2866 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2867 * doc/posix-functions/rint.texi: Mention the 'rint' module.
2868 * doc/posix-functions/sin.texi: Mention the 'sin' module.
2869 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2870 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2871 * doc/posix-functions/tan.texi: Mention the 'tan' module.
2872 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2873 * doc/posix-functions/y0.texi: Mention the 'y0' module.
2874 * doc/posix-functions/y1.texi: Mention the 'y1' module.
2875 * doc/posix-functions/yn.texi: Mention the 'yn' module.
2877 2010-01-18 Jim Meyering <meyering@redhat.com>
2879 ignore-value: relax license to LGPLv2+
2880 * modules/ignore-value (License): Relax to LGPLv2+.
2882 getdate: don't leak when TZ contains two or more '"'s
2883 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2884 double quote in TZ after the first one.
2886 readtokens: do not leak internal token_lengths buffer
2887 * lib/readtokens.c (readtokens): Free the local, lengths,
2888 when the supplied "token_lengths" parameter is NULL.
2890 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2892 Fix a couple of missing LIBTHREAD link failures on AIX.
2893 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2895 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2897 Link test-poll against INET_PTON_LIB.
2898 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2899 for inet_pton on Solaris 10.
2901 2010-01-17 Bruno Haible <bruno@clisp.org>
2903 unistdio/*-sprintf: Fix typo in module description.
2904 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2905 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2906 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2907 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2908 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2909 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2910 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2911 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2913 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2915 gnulib-tool: fix filelist for AIX, HP-UX ksh.
2916 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2917 variables in shell case patterns, for AIX and HP-UX ksh.
2919 Split large sed scripts, for HP-UX sed.
2920 * modules/stdio: Split sed scripts around 50 sed commands,
2921 to avoid HP-UX limit of 99 commands, in the near future.
2922 * modules/string: Likewise.
2923 * modules/unistd: Likewise.
2925 gnulib-tool: avoid writing in the current directory.
2926 * gnulib-tool (func_emit_lib_Makefile_am)
2927 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2928 not in the current directory, so concurrent gnulib-tool
2929 instances do not interfere.
2931 2010-01-16 Jim Meyering <meyering@redhat.com>
2933 doc: update users.txt
2934 * users.txt: Add grep.
2935 (diffutils, gzip): Update URLs.
2937 2010-01-12 Bruno Haible <bruno@clisp.org>
2939 posix_spawn: Avoid test failure on Cygwin.
2940 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2942 Reported by Simon Josefsson.
2944 2010-01-12 Bruno Haible <bruno@clisp.org>
2946 * tests/test-cond.c (main): When skipping the test, show the reason.
2948 2010-01-12 Simon Josefsson <simon@josefsson.org>
2950 * lib/striconv.c (str_cd_iconv): Avoid if before free.
2952 2010-01-12 Simon Josefsson <simon@josefsson.org>
2954 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2955 VC_LIST_ALWAYS_EXCLUDE_REGEX.
2957 2010-01-12 Eric Blake <ebb9@byu.net>
2959 build: guarantee AS_VAR_IF
2960 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2961 (gl_AS_VAR_IF): Move...
2962 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2963 Reported by Simon Josefsson.
2965 2010-01-12 Simon Josefsson <simon@josefsson.org>
2967 * lib/stdio.in.h: Fix typo.
2969 2010-01-12 Simon Josefsson <simon@josefsson.org>
2971 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2974 2010-01-12 Simon Josefsson <simon@josefsson.org>
2976 * tests/test-xalloc-die.sh: Use $EXEEXT.
2978 2010-01-12 Simon Josefsson <simon@josefsson.org>
2979 Bruno Haible <bruno@clisp.org>
2981 getlogin, getlogin_r: Avoid test failure.
2982 * tests/test-getlogin.c: Include <stdio.h>.
2983 (main): Skip the test when the function fails because stdin is not a
2985 * tests/test-getlogin_r.c: Include <stdio.h>.
2986 (main): Skip the test when the function fails because stdin is not a
2989 2010-01-11 Eric Blake <ebb9@byu.net>
2991 tests: avoid more large file warnings
2992 * tests/test-fflush.c: Avoid warning about ftell use.
2993 * tests/test-fseek.c: Avoid warning about fseek use.
2995 2010-01-10 Bruno Haible <bruno@clisp.org>
2997 nproc: Work better on Linux when /proc and /sys are not mounted.
2998 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2999 as lower bound when, on glibc/Linux systems,
3000 sysconf (_SC_NPROCESSORS_CONF) returns 1.
3001 Suggested by Pádraig Brady <P@draigbrady.com>.
3002 Reported by Dmitry V. Levin <ldv@altlinux.org>.
3005 * lib/nproc.c (num_processors_via_affinity_mask): New function,
3006 extracted from num_processors.
3007 (num_processors): Call it.
3009 2010-01-11 Jim Meyering <meyering@redhat.com>
3011 utimecmp: avoid new warning from upcoming gcc-4.5.0
3012 * lib/utimecmp.c (BILLION): Define using #define rather than an
3013 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3015 2010-01-11 Eric Blake <ebb9@byu.net>
3017 math: add portability warnings for classification macros
3018 * modules/math (Depends-on): Add warn-on-use.
3019 (Makefile.am): Provide new substitutions.
3020 * m4/math_h.m4 (gl_MATH_H): Require inline.
3021 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3022 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3023 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3026 unistd: warn on use of environ without module
3027 * modules/unistd (Depends-on): Add warn-on-use.
3028 (Makefile.am): Provide new substitutions.
3029 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3030 * lib/unistd.in.h (environ): Wrap with a warning helper function.
3032 stdio: warn on suspicious uses
3033 * modules/stdio (Depends-on): Add warn-on-use.
3034 (Makefile.am): Provide new substitutions.
3035 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3037 * lib/stdio.in.h (gets): Always warn on use.
3038 (fseek, ftell): Adjust when warnings are issued, and honor
3039 _GL_NO_LARGE_FILES as a way to silence the warning.
3040 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3041 any warning about large file offsets.
3042 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3043 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3044 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3045 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3046 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3047 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3048 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3049 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3051 warn-on-use: new module
3052 * modules/warn-on-use: New file.
3053 * build-aux/warn-on-use.h: Likewise.
3054 * m4/warn-on-use.m4: Likewise.
3055 * MODULES.html.sh (Support for building): Mention it.
3057 2010-01-10 Bruno Haible <bruno@clisp.org>
3059 Tests for module 'unistr/u32-strdup'.
3060 * modules/unistr/u32-strdup-tests: New file.
3061 * tests/unistr/test-u32-strdup.c: New file.
3063 Tests for module 'unistr/u16-strdup'.
3064 * modules/unistr/u16-strdup-tests: New file.
3065 * tests/unistr/test-u16-strdup.c: New file.
3067 Tests for module 'unistr/u8-strdup'.
3068 * modules/unistr/u8-strdup-tests: New file.
3069 * tests/unistr/test-u8-strdup.c: New file.
3070 * tests/unistr/test-strdup.h: New file.
3072 Tests for module 'unistr/u32-strncmp'.
3073 * modules/unistr/u32-strncmp-tests: New file.
3074 * tests/unistr/test-u32-strncmp.c: New file.
3076 Tests for module 'unistr/u16-strncmp'.
3077 * modules/unistr/u16-strncmp-tests: New file.
3078 * tests/unistr/test-u16-strncmp.c: New file.
3080 Tests for module 'unistr/u8-strncmp'.
3081 * modules/unistr/u8-strncmp-tests: New file.
3082 * tests/unistr/test-u8-strncmp.c: New file.
3083 * tests/unistr/test-strncmp.h: New file.
3085 Tests for module 'unistr/u32-strcoll'.
3086 * modules/unistr/u32-strcoll-tests: New file.
3087 * tests/unistr/test-u32-strcoll.c: New file.
3089 Tests for module 'unistr/u16-strcoll'.
3090 * modules/unistr/u16-strcoll-tests: New file.
3091 * tests/unistr/test-u16-strcoll.c: New file.
3093 Tests for module 'unistr/u8-strcoll'.
3094 * modules/unistr/u8-strcoll-tests: New file.
3095 * tests/unistr/test-u8-strcoll.c: New file.
3097 Tests for module 'unistr/u32-strcmp'.
3098 * modules/unistr/u32-strcmp-tests: New file.
3099 * tests/unistr/test-u32-strcmp.c: New file.
3100 * tests/unistr/test-u32-strcmp.h: New file.
3102 Tests for module 'unistr/u16-strcmp'.
3103 * modules/unistr/u16-strcmp-tests: New file.
3104 * tests/unistr/test-u16-strcmp.c: New file.
3105 * tests/unistr/test-u16-strcmp.h: New file.
3107 Tests for module 'unistr/u8-strcmp'.
3108 * modules/unistr/u8-strcmp-tests: New file.
3109 * tests/unistr/test-u8-strcmp.c: New file.
3110 * tests/unistr/test-u8-strcmp.h: New file.
3111 * tests/unistr/test-strcmp.h: New file.
3113 Tests for module 'unistr/u32-strncat'.
3114 * modules/unistr/u32-strncat-tests: New file.
3115 * tests/unistr/test-u32-strncat.c: New file.
3117 Tests for module 'unistr/u16-strncat'.
3118 * modules/unistr/u16-strncat-tests: New file.
3119 * tests/unistr/test-u16-strncat.c: New file.
3121 Tests for module 'unistr/u8-strncat'.
3122 * modules/unistr/u8-strncat-tests: New file.
3123 * tests/unistr/test-u8-strncat.c: New file.
3124 * tests/unistr/test-strncat.h: New file.
3126 Tests for module 'unistr/u32-strcat'.
3127 * modules/unistr/u32-strcat-tests: New file.
3128 * tests/unistr/test-u32-strcat.c: New file.
3130 Tests for module 'unistr/u16-strcat'.
3131 * modules/unistr/u16-strcat-tests: New file.
3132 * tests/unistr/test-u16-strcat.c: New file.
3134 Tests for module 'unistr/u8-strcat'.
3135 * modules/unistr/u8-strcat-tests: New file.
3136 * tests/unistr/test-u8-strcat.c: New file.
3137 * tests/unistr/test-strcat.h: New file.
3139 Tests for module 'unistr/u32-stpncpy'.
3140 * modules/unistr/u32-stpncpy-tests: New file.
3141 * tests/unistr/test-u32-stpncpy.c: New file.
3143 Tests for module 'unistr/u16-stpncpy'.
3144 * modules/unistr/u16-stpncpy-tests: New file.
3145 * tests/unistr/test-u16-stpncpy.c: New file.
3147 Tests for module 'unistr/u8-stpncpy'.
3148 * modules/unistr/u8-stpncpy-tests: New file.
3149 * tests/unistr/test-u8-stpncpy.c: New file.
3150 * tests/unistr/test-stpncpy.h: New file.
3152 Tests for module 'unistr/u32-strncpy'.
3153 * modules/unistr/u32-strncpy-tests: New file.
3154 * tests/unistr/test-u32-strncpy.c: New file.
3156 Tests for module 'unistr/u16-strncpy'.
3157 * modules/unistr/u16-strncpy-tests: New file.
3158 * tests/unistr/test-u16-strncpy.c: New file.
3160 Tests for module 'unistr/u8-strncpy'.
3161 * modules/unistr/u8-strncpy-tests: New file.
3162 * tests/unistr/test-u8-strncpy.c: New file.
3163 * tests/unistr/test-strncpy.h: New file.
3165 Tests for module 'unistr/u32-stpcpy'.
3166 * modules/unistr/u32-stpcpy-tests: New file.
3167 * tests/unistr/test-u32-stpcpy.c: New file.
3169 Tests for module 'unistr/u16-stpcpy'.
3170 * modules/unistr/u16-stpcpy-tests: New file.
3171 * tests/unistr/test-u16-stpcpy.c: New file.
3173 Tests for module 'unistr/u8-stpcpy'.
3174 * modules/unistr/u8-stpcpy-tests: New file.
3175 * tests/unistr/test-u8-stpcpy.c: New file.
3176 * tests/unistr/test-stpcpy.h: New file.
3178 Tests for module 'unistr/u32-strcpy'.
3179 * modules/unistr/u32-strcpy-tests: New file.
3180 * tests/unistr/test-u32-strcpy.c: New file.
3182 Tests for module 'unistr/u16-strcpy'.
3183 * modules/unistr/u16-strcpy-tests: New file.
3184 * tests/unistr/test-u16-strcpy.c: New file.
3186 Tests for module 'unistr/u8-strcpy'.
3187 * modules/unistr/u8-strcpy-tests: New file.
3188 * tests/unistr/test-u8-strcpy.c: New file.
3189 * tests/unistr/test-strcpy.h: New file.
3191 Tests for module 'unistr/u32-strnlen'.
3192 * modules/unistr/u32-strnlen-tests: New file.
3193 * tests/unistr/test-u32-strnlen.c: New file.
3195 Tests for module 'unistr/u16-strnlen'.
3196 * modules/unistr/u16-strnlen-tests: New file.
3197 * tests/unistr/test-u16-strnlen.c: New file.
3199 Tests for module 'unistr/u8-strnlen'.
3200 * modules/unistr/u8-strnlen-tests: New file.
3201 * tests/unistr/test-u8-strnlen.c: New file.
3202 * tests/unistr/test-strnlen.h: New file.
3204 Tests for module 'unistr/u32-strlen'.
3205 * modules/unistr/u32-strlen-tests: New file.
3206 * tests/unistr/test-u32-strlen.c: New file.
3208 Tests for module 'unistr/u16-strlen'.
3209 * modules/unistr/u16-strlen-tests: New file.
3210 * tests/unistr/test-u16-strlen.c: New file.
3212 Tests for module 'unistr/u8-strlen'.
3213 * modules/unistr/u8-strlen-tests: New file.
3214 * tests/unistr/test-u8-strlen.c: New file.
3216 Tests for module 'unistr/u32-prev'.
3217 * modules/unistr/u32-prev-tests: New file.
3218 * tests/unistr/test-u32-prev.c: New file.
3220 Tests for module 'unistr/u16-prev'.
3221 * modules/unistr/u16-prev-tests: New file.
3222 * tests/unistr/test-u16-prev.c: New file.
3224 Tests for module 'unistr/u8-prev'.
3225 * modules/unistr/u8-prev-tests: New file.
3226 * tests/unistr/test-u8-prev.c: New file.
3228 Tests for module 'unistr/u32-next'.
3229 * modules/unistr/u32-next-tests: New file.
3230 * tests/unistr/test-u32-next.c: New file.
3232 Tests for module 'unistr/u16-next'.
3233 * modules/unistr/u16-next-tests: New file.
3234 * tests/unistr/test-u16-next.c: New file.
3236 Tests for module 'unistr/u8-next'.
3237 * modules/unistr/u8-next-tests: New file.
3238 * tests/unistr/test-u8-next.c: New file.
3240 Tests for module 'unistr/u32-strmbtouc'.
3241 * modules/unistr/u32-strmbtouc-tests: New file.
3242 * tests/unistr/test-u32-strmbtouc.c: New file.
3244 Tests for module 'unistr/u16-strmbtouc'.
3245 * modules/unistr/u16-strmbtouc-tests: New file.
3246 * tests/unistr/test-u16-strmbtouc.c: New file.
3248 Tests for module 'unistr/u8-strmbtouc'.
3249 * modules/unistr/u8-strmbtouc-tests: New file.
3250 * tests/unistr/test-u8-strmbtouc.c: New file.
3252 Tests for module 'unistr/u32-strmblen'.
3253 * modules/unistr/u32-strmblen-tests: New file.
3254 * tests/unistr/test-u32-strmblen.c: New file.
3256 Tests for module 'unistr/u16-strmblen'.
3257 * modules/unistr/u16-strmblen-tests: New file.
3258 * tests/unistr/test-u16-strmblen.c: New file.
3260 Tests for module 'unistr/u8-strmblen'.
3261 * modules/unistr/u8-strmblen-tests: New file.
3262 * tests/unistr/test-u8-strmblen.c: New file.
3264 Tests for module 'unistr/u32-cpy-alloc'.
3265 * modules/unistr/u32-cpy-alloc-tests: New file.
3266 * tests/unistr/test-u32-cpy-alloc.c: New file.
3268 Tests for module 'unistr/u16-cpy-alloc'.
3269 * modules/unistr/u16-cpy-alloc-tests: New file.
3270 * tests/unistr/test-u16-cpy-alloc.c: New file.
3272 Tests for module 'unistr/u8-cpy-alloc'.
3273 * modules/unistr/u8-cpy-alloc-tests: New file.
3274 * tests/unistr/test-u8-cpy-alloc.c: New file.
3275 * tests/unistr/test-cpy-alloc.h: New file.
3277 Tests for module 'unistr/u32-mbsnlen'.
3278 * modules/unistr/u32-mbsnlen-tests: New file.
3279 * tests/unistr/test-u32-mbsnlen.c: New file.
3281 Tests for module 'unistr/u16-mbsnlen'.
3282 * modules/unistr/u16-mbsnlen-tests: New file.
3283 * tests/unistr/test-u16-mbsnlen.c: New file.
3285 Tests for module 'unistr/u8-mbsnlen'.
3286 * modules/unistr/u8-mbsnlen-tests: New file.
3287 * tests/unistr/test-u8-mbsnlen.c: New file.
3289 Tests for module 'unistr/u32-chr'.
3290 * modules/unistr/u32-chr-tests: New file.
3291 * tests/unistr/test-u32-chr.c: New file.
3293 Tests for module 'unistr/u16-chr'.
3294 * modules/unistr/u16-chr-tests: New file.
3295 * tests/unistr/test-u16-chr.c: New file.
3297 Tests for module 'unistr/u8-chr'.
3298 * modules/unistr/u8-chr-tests: New file.
3299 * tests/unistr/test-u8-chr.c: New file.
3300 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3302 Tests for module 'unistr/u32-cmp2'.
3303 * modules/unistr/u32-cmp2-tests: New file.
3304 * tests/unistr/test-u32-cmp2.c: New file.
3306 Tests for module 'unistr/u16-cmp2'.
3307 * modules/unistr/u16-cmp2-tests: New file.
3308 * tests/unistr/test-u16-cmp2.c: New file.
3310 Tests for module 'unistr/u8-cmp2'.
3311 * modules/unistr/u8-cmp2-tests: New file.
3312 * tests/unistr/test-u8-cmp2.c: New file.
3313 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3315 Tests for module 'unistr/u32-cmp'.
3316 * modules/unistr/u32-cmp-tests: New file.
3317 * tests/unistr/test-u32-cmp.c: New file.
3319 Tests for module 'unistr/u16-cmp'.
3320 * modules/unistr/u16-cmp-tests: New file.
3321 * tests/unistr/test-u16-cmp.c: New file.
3323 Tests for module 'unistr/u8-cmp'.
3324 * modules/unistr/u8-cmp-tests: New file.
3325 * tests/unistr/test-u8-cmp.c: New file.
3326 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3328 Tests for module 'unistr/u32-set'.
3329 * modules/unistr/u32-set-tests: New file.
3330 * tests/unistr/test-u32-set.c: New file.
3332 Tests for module 'unistr/u16-set'.
3333 * modules/unistr/u16-set-tests: New file.
3334 * tests/unistr/test-u16-set.c: New file.
3336 Tests for module 'unistr/u8-set'.
3337 * modules/unistr/u8-set-tests: New file.
3338 * tests/unistr/test-u8-set.c: New file.
3339 * tests/unistr/test-set.h: New file.
3341 Tests for module 'unistr/u32-move'.
3342 * modules/unistr/u32-move-tests: New file.
3343 * tests/unistr/test-u32-move.c: New file.
3345 Tests for module 'unistr/u16-move'.
3346 * modules/unistr/u16-move-tests: New file.
3347 * tests/unistr/test-u16-move.c: New file.
3349 Tests for module 'unistr/u8-move'.
3350 * modules/unistr/u8-move-tests: New file.
3351 * tests/unistr/test-u8-move.c: New file.
3352 * tests/unistr/test-move.h: New file.
3354 Tests for module 'unistr/u32-cpy'.
3355 * modules/unistr/u32-cpy-tests: New file.
3356 * tests/unistr/test-u32-cpy.c: New file.
3358 Tests for module 'unistr/u16-cpy'.
3359 * modules/unistr/u16-cpy-tests: New file.
3360 * tests/unistr/test-u16-cpy.c: New file.
3362 Tests for module 'unistr/u8-cpy'.
3363 * modules/unistr/u8-cpy-tests: New file.
3364 * tests/unistr/test-u8-cpy.c: New file.
3365 * tests/unistr/test-cpy.h: New file.
3367 2010-01-09 Bruno Haible <bruno@clisp.org>
3369 Tests for module 'unistr/u32-uctomb'.
3370 * modules/unistr/u32-uctomb-tests: New file.
3371 * tests/unistr/test-u32-uctomb.c: New file.
3373 Tests for module 'unistr/u16-uctomb'.
3374 * modules/unistr/u16-uctomb-tests: New file.
3375 * tests/unistr/test-u16-uctomb.c: New file.
3377 Tests for module 'unistr/u8-uctomb'.
3378 * modules/unistr/u8-uctomb-tests: New file.
3379 * tests/unistr/test-u8-uctomb.c: New file.
3381 Tests for module 'unistr/u32-mbtoucr'.
3382 * modules/unistr/u32-mbtoucr-tests: New file.
3383 * tests/unistr/test-u32-mbtoucr.c: New file.
3385 Tests for module 'unistr/u16-mbtoucr'.
3386 * modules/unistr/u16-mbtoucr-tests: New file.
3387 * tests/unistr/test-u16-mbtoucr.c: New file.
3389 Tests for module 'unistr/u8-mbtoucr'.
3390 * modules/unistr/u8-mbtoucr-tests: New file.
3391 * tests/unistr/test-u8-mbtoucr.c: New file.
3393 Tests for module 'unistr/u32-mbtouc'.
3394 * modules/unistr/u32-mbtouc-tests: New file.
3395 * tests/unistr/test-u32-mbtouc.c: New file.
3397 Tests for module 'unistr/u16-mbtouc'.
3398 * modules/unistr/u16-mbtouc-tests: New file.
3399 * tests/unistr/test-u16-mbtouc.c: New file.
3401 Tests for module 'unistr/u8-mbtouc'.
3402 * modules/unistr/u8-mbtouc-tests: New file.
3403 * tests/unistr/test-u8-mbtouc.c: New file.
3405 Tests for module 'unistr/u32-mbtouc-unsafe'.
3406 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3407 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3408 * tests/unistr/test-u32-mbtouc.h: New file.
3410 Tests for module 'unistr/u16-mbtouc-unsafe'.
3411 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3412 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3413 * tests/unistr/test-u16-mbtouc.h: New file.
3415 Tests for module 'unistr/u8-mbtouc-unsafe'.
3416 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3417 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3418 * tests/unistr/test-u8-mbtouc.h: New file.
3420 Tests for module 'unistr/u32-mblen'.
3421 * modules/unistr/u32-mblen-tests: New file.
3422 * tests/unistr/test-u32-mblen.c: New file.
3424 Tests for module 'unistr/u16-mblen'.
3425 * modules/unistr/u16-mblen-tests: New file.
3426 * tests/unistr/test-u16-mblen.c: New file.
3428 Tests for module 'unistr/u8-mblen'.
3429 * modules/unistr/u8-mblen-tests: New file.
3430 * tests/unistr/test-u8-mblen.c: New file.
3432 Tests for module 'unistr/u32-to-u16'.
3433 * modules/unistr/u32-to-u16-tests: New file.
3434 * tests/unistr/test-u32-to-u16.c: New file.
3436 Tests for module 'unistr/u32-to-u8'.
3437 * modules/unistr/u32-to-u8-tests: New file.
3438 * tests/unistr/test-u32-to-u8.c: New file.
3440 Tests for module 'unistr/u16-to-u32'.
3441 * modules/unistr/u16-to-u32-tests: New file.
3442 * tests/unistr/test-u16-to-u32.c: New file.
3444 Tests for module 'unistr/u16-to-u8'.
3445 * modules/unistr/u16-to-u8-tests: New file.
3446 * tests/unistr/test-u16-to-u8.c: New file.
3448 Tests for module 'unistr/u8-to-u32'.
3449 * modules/unistr/u8-to-u32-tests: New file.
3450 * tests/unistr/test-u8-to-u32.c: New file.
3452 Tests for module 'unistr/u8-to-u16'.
3453 * modules/unistr/u8-to-u16-tests: New file.
3454 * tests/unistr/test-u8-to-u16.c: New file.
3456 Tests for module 'unistr/u32-check'.
3457 * modules/unistr/u32-check-tests: New file.
3458 * tests/unistr/test-u32-check.c: New file.
3460 Tests for module 'unistr/u16-check'.
3461 * modules/unistr/u16-check-tests: New file.
3462 * tests/unistr/test-u16-check.c: New file.
3464 Tests for module 'unistr/u8-check'.
3465 * modules/unistr/u8-check-tests: New file.
3466 * tests/unistr/test-u8-check.c: New file.
3468 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3469 (category_equals): New function.
3470 (main): Add more tests.
3471 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3473 * tests/unictype/test-bidi_byname.c (main): Add more tests.
3475 2010-01-10 Bruno Haible <bruno@clisp.org>
3477 unistr/u*-strcoll: Try harder to distinguish different strings.
3478 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3479 compare s1 and s2 to see if they are different.
3481 2010-01-10 Bruno Haible <bruno@clisp.org>
3483 unistr/u*-stpncpy: Fix the return value.
3484 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3485 description of the return value consistent with stpncpy in glibc.
3486 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3487 written non-NUL unit.
3489 2010-01-10 Bruno Haible <bruno@clisp.org>
3491 unistr/u*-next: Add missing dependencies.
3492 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3493 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3494 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3496 2010-01-10 Bruno Haible <bruno@clisp.org>
3498 unistr/u8-mbsnlen: Fix return value for incomplete character.
3499 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3501 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3502 Remove unistr/u8-mblen.
3503 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3505 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3506 Remove unistr/u16-mblen.
3508 2010-01-10 Bruno Haible <bruno@clisp.org>
3510 wchar: Fix compilation error when <wchar.h> is used from coreutils.
3511 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3512 Reported by Brian Gough <bjg@gnu.org> and
3513 Chris Clayton <chris2553@googlemail.com> via
3514 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3516 2010-01-09 Bruno Haible <bruno@clisp.org>
3518 unistr/u16-to-u32: Reject invalid input.
3519 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3521 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3522 Remove unistr/u16-mbtouc.
3524 unistr/u16-to-u8: Reject invalid input.
3525 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3527 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3528 Remove unistr/u16-mbtouc.
3530 unistr/u8-to-u32: Reject invalid input.
3531 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3533 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3534 Remove unistr/u8-mbtouc.
3536 unistr/u8-to-u16: Reject invalid input.
3537 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3539 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3540 Remove unistr/u8-mbtouc.
3542 2010-01-09 Bruno Haible <bruno@clisp.org>
3544 Tests for module 'getlogin'.
3545 * modules/getlogin-tests: New file.
3546 * tests/test-getlogin.c: New file.
3548 New module 'getlogin'.
3549 * lib/unistd.in.h (getlogin): New declaration.
3550 * lib/getlogin.c: New file.
3551 * m4/getlogin.m4: New file.
3552 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3554 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3556 * modules/getlogin: New file.
3557 * doc/posix-functions/getlogin.texi: Mention the new module.
3558 Reported by John W. Eaton <jwe@gnu.org>.
3560 2010-01-09 Bruno Haible <bruno@clisp.org>
3562 getlogin_r: Support for native Windows.
3563 * lib/getlogin_r.c: Include <windows.h>
3564 (getlogin_r): Implement for native Windows.
3565 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3566 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3567 via John W. Eaton <jwe@gnu.org>.
3569 2010-01-09 Bruno Haible <bruno@clisp.org>
3571 getlogin_r: Small fixes.
3572 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3574 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3575 before testing whether getlogin_r is declared. No need to set
3576 HAVE_DECL_GETLOGIN_R to 1.
3577 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3579 2010-01-09 Bruno Haible <bruno@clisp.org>
3581 * lib/unistd.in.h (getlogin_r): Add comment.
3583 2010-01-09 Bruno Haible <bruno@clisp.org>
3585 Tests for module 'getlogin_r'.
3586 * modules/getlogin_r-tests: New file.
3587 * tests/test-getlogin_r.c: New file.
3589 2010-01-09 Jim Meyering <meyering@redhat.com>
3591 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3592 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3593 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3595 2010-01-08 Simon Josefsson <simon@josefsson.org>
3597 * lib/dup2.c (rpl_dup2): Improve comment.
3599 2010-01-08 Eric Blake <ebb9@byu.net>
3601 maint.mk: allow packages to add makefile @@ exceptions
3602 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3603 (sc_makefile_check): Rename...
3604 (sc_makefile_at_at_check): ...to this, and use hook.
3606 dup2: work around mingw bug
3607 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3608 Reported by Simon Josefsson.
3610 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
3612 glob: Fix C++ compilation.
3613 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3616 2010-01-07 Bruno Haible <bruno@clisp.org>
3618 Fix indentation of wctype.in.h, broken since 2007-01-06.
3619 * lib/wctype.in.h: Fix indentation of preprocessor directives.
3621 2010-01-07 Bruno Haible <bruno@clisp.org>
3623 mbslen: Avoid collision with system function.
3624 * lib/string.in.h [MirBSD]: Include <wchar.h>.
3625 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3626 * m4/mbslen.m4: New file.
3627 * modules/mbslen (Files): Add it.
3628 (configure.ac): Invoke gl_MBSLEN.
3629 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3630 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3631 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3632 via Ian Beckwith <ianb@erislabs.net>.
3634 2010-01-07 Bruno Haible <bruno@clisp.org>
3636 dirent: Document the last fix.
3637 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3639 2010-01-07 Bruno Haible <bruno@clisp.org>
3641 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3642 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3643 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3644 va_list are defined.
3645 * doc/posix-headers/stdio.texi: Document the bug of missing types.
3646 Reported by Eric Blake.
3648 2010-01-07 Bruno Haible <bruno@clisp.org>
3650 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3651 * modules/xlist (Depends-on): Add 'list',
3652 * modules/xoset (Depends-on): Add 'oset'.
3653 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3655 2010-01-07 Bruno Haible <bruno@clisp.org>
3657 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3658 * doc/posix-functions/strncasecmp.texi: Likewise.
3660 2010-01-07 Bruno Haible <bruno@clisp.org>
3662 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3664 2010-01-07 John W. Eaton <jwe@octave.org>
3666 wctype: allow C++ use
3667 * lib/wctype.in.h: Add extern "C" block for C++.
3669 2010-01-06 Eric Blake <ebb9@byu.net>
3671 maint.mk: detect incorrect GFDL usage
3672 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3674 2010-01-06 Jim Meyering <meyering@redhat.com>
3675 and Eric Blake <ebb9@byu.net>
3677 maint.mk: ignore multi-line copyright in NEWS
3678 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3680 2010-01-06 Eric Blake <ebb9@byu.net>
3682 select: add missing dependency
3683 * modules/select-tests (Depends-on): Move sockets dependency...
3684 * modules/select (Depends-on): ...here.
3685 Reported by Ian Beckwith.
3687 doc: regenerate INSTALL
3688 * doc/INSTALL: Reflect recent autoconf update.
3689 * doc/INSTALL.ISO: Likewise.
3690 * doc/INSTALL.UTF-8: Likewise.
3692 pread: fix compilation on glibc
3693 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3694 Reported by Ralf Wildenhues.
3696 dirent: fix test failure
3697 * lib/dirent.in.h (includes): Guarantee ino_t.
3698 Reported by Ralf Wildenhues.
3700 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
3702 linkat, renameat: avoid bad free
3703 * lib/at-func2.c (at_func2): Fix typo.
3704 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3706 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3708 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3709 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3710 to avoid failure of symlink test later.
3712 2010-01-06 Eric Blake <ebb9@byu.net>
3714 stdio, unistd: guarantee ssize_t
3715 * lib/unistd.in.h (includes): Ensure that types required by POSIX
3716 2008 are exposed when needed.
3717 * lib/stdio.in.h (includes): Likewise.
3718 Reported by Ralf Wildenhues.
3720 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
3722 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3723 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3724 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3726 2010-01-06 Jim Meyering <meyering@redhat.com>
3728 readtokens: this module *does* require xalloc.h
3729 It uses only functions that were omitted by the old syntax-check rule.
3730 * lib/readtokens.c: Include "xalloc.h" once again.
3731 * modules/readtokens (Depends-on): Add xalloc.
3732 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3734 2010-01-05 Eric Blake <ebb9@byu.net>
3736 maint: support 'make announcement' from a VPATH build
3737 * top/maint.mk (announcement): Look for correct NEWS file.
3739 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
3741 utimens (fdutimens): ignore a negative FD, per contract
3742 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3743 when we have a valid file descriptor. Otherwise, using a brand
3744 new glibc (with just-patched futimens that now fails with EBADF)
3745 would cause this function to fail with ENOSYS.
3746 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3747 See also http://bugzilla.redhat.com/552320.
3749 2010-01-05 Eric Blake <ebb9@byu.net>
3751 strcase: document what it provides
3752 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3754 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3755 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3757 2010-01-05 Jim Meyering <meyering@redhat.com>
3759 maint: remove useless inclusions of "xalloc.h"
3760 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3761 * lib/readtokens.c: Likewise.
3762 * lib/same.c: Likewise.
3763 * modules/getloadavg (Depends-on): Remove xalloc.
3764 * modules/readtokens: Likewise.
3765 * modules/same: Likewise.
3767 maint.mk: include 4 more function names in alloca.h-checking regexp
3768 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3769 regexp. Before, we would give a false-positive (saying alloca.h
3770 is included unnecessarily) when the only uses involved omitted symbols.
3772 xalloc.h: use consistent formatting
3773 * lib/xalloc.h: Move declarations to start in the first column.
3775 2010-01-05 Eric Blake <ebb9@byu.net>
3778 * lib/mkdir.c (includes): Drop unused header.
3779 Reported by John W. Eaton.
3781 2010-01-04 Jim Meyering <meyering@redhat.com>
3783 nl_langinfo: avoid configure-time syntax error
3784 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3785 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3786 the empty string. Don't let that provoke a shell syntax error.
3788 regcomp, regexec, fnmatch: avoid array bounds read error
3789 * lib/regcomp.c (build_equiv_class): From glibc:
3790 Use only the low 24 bits of a findidx return value as an index
3791 into the weights array. Patch by Ulrich Drepper:
3792 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3793 * lib/regexec.c (check_node_accept_bytes): Likewise.
3794 * lib/fnmatch_loop.c (FCT): Likewise.
3796 regcomp: skip collseq lookup when there are no rules
3797 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3798 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3800 regcomp: recognize ill-formed { } expressions
3801 * lib/regcomp.c (parse_dup_op): From glibc:
3802 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3804 regcomp: fix typo in comment
3805 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3806 s/satisfy/satisfies/.
3808 regcomp: sync from glibc: remove dead store
3809 * lib/regcomp.c (duplicate_node_closure): Remove useless
3810 search_duplicated_node call and dead store.
3812 regcomp: sync from glibc; always use nl_langinfo
3813 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3814 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
3815 * modules/regex (Depends-on): Add nl_langinfo.
3817 2010-01-04 Eric Blake <ebb9@byu.net>
3819 fdopendir: fix configure test
3820 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3822 2010-01-01 Bruno Haible <bruno@clisp.org>
3824 wchar: Remove unused configure check.
3825 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3827 2010-01-01 Eric Blake <ebb9@byu.net>
3829 headers: make check of system header explicit
3830 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3831 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3833 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3834 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3835 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3836 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3838 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3840 Suggested by Bruno Haible.
3842 2010-01-01 Jim Meyering <meyering@redhat.com>
3844 ChangeLog: tweak to eliminate unnecessary copyright line
3845 * ChangeLog: Remove a copyright line that was mistakenly updated
3846 by today's update-copyright run. Reported by Eric Blake.
3848 test-update-copyright: don't let envvar setting cause test failure
3849 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3851 2010-01-01 Bruno Haible <bruno@clisp.org>
3853 localename: Avoid gcc warning.
3854 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3855 function if it is not used.
3857 2010-01-01 Jim Meyering <meyering@redhat.com>
3859 update nearly all FSF copyright year lists to include 2010
3860 Use the same procedure as for 2009, outlined in
3861 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3863 version-etc: set COPYRIGHT_YEAR to 2010
3864 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3866 2009-12-31 Eric Blake <ebb9@byu.net>
3868 doc: correct availability of cygwin 1.5.x getopt
3869 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3871 * doc/posix-functions/opterr.texi (opterr): Likewise.
3872 * doc/posix-functions/optind.texi (optind): Likewise.
3873 * doc/posix-functions/optopt.texi (optopt): Likewise.
3874 * doc/posix-functions/tzname.texi (tzname): Likewise.
3876 openat: update maintainer
3877 * modules/openat (Maintainer): Add myself.
3879 utimens: avoid shadowing warning
3880 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3881 buffers into one, to avoid shadowing, as well as avoiding a
3883 Reported by Jim Meyering.
3885 test-dup2: avoid compiler warning
3886 * tests/test-dup2.c (is_inheritable): Only define if used.
3888 2010-01-01 Bruno Haible <bruno@clisp.org>
3890 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3891 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3892 defined, use wctomb instead of wcrtomb.
3894 2010-01-01 Bruno Haible <bruno@clisp.org>
3896 iconv: Reject native Solaris iconv.
3897 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3898 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3900 2009-12-31 Bruno Haible <bruno@clisp.org>
3902 * tests/test-signal.c (main): Remove test of 'SIG'.
3904 2009-12-31 Bruno Haible <bruno@clisp.org>
3906 spawn: Fix incomplete fix.
3907 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3908 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3909 warnings for GNULIB_POSIXCHECK again.
3910 Reported by Eric Blake.
3912 2009-12-31 Bruno Haible <bruno@clisp.org>
3914 Avoid namespace pollution on glibc systems.
3915 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3916 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3917 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3920 2009-12-31 Bruno Haible <bruno@clisp.org>
3922 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3923 (gl_REPLACE_WCHAR_H): Turn into a no-op.
3924 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3925 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3926 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3927 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3928 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3930 2009-12-31 Bruno Haible <bruno@clisp.org>
3932 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3933 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3936 2009-12-31 Bruno Haible <bruno@clisp.org>
3938 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3941 2009-12-31 Bruno Haible <bruno@clisp.org>
3943 spawn: Fix misapplied patch.
3944 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3945 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3946 warnings for GNULIB_POSIXCHECK.
3948 2009-12-31 Bruno Haible <bruno@clisp.org>
3950 times: Update after sys_times changed.
3951 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3952 * modules/times (Files): Add it.
3953 (configure.ac): Invoke gl_FUNC_TIMES.
3955 2009-12-31 Bruno Haible <bruno@clisp.org>
3957 Use AC_C_INLINE where necessary.
3958 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3959 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3960 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3961 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3962 * m4/mbfile.m4 (gl_MBFILE): Likewise.
3963 * m4/mbiter.m4 (gl_MBITER): Likewise.
3964 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3965 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3966 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3967 * modules/u64 (configure.ac): Likewise.
3969 2009-12-31 Bruno Haible <bruno@clisp.org>
3971 Use AC_C_INLINE instead of module 'inline' where possible.
3972 * modules/inline (Description): Clarify purpose.
3973 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3974 * modules/count-one-bits (Depends-on): Remove inline.
3975 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3976 * modules/openat (Depends-on): Remove inline.
3977 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3978 instead of depending on module 'inline'.
3979 * modules/filevercmp (Depends-on, configure.ac): Likewise.
3980 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3981 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3982 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3983 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3984 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3985 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3986 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3987 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3988 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3989 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3990 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3991 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3992 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3993 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3994 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3995 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3996 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3998 * modules/unictype/property-ascii-hex-digit (Depends-on,
3999 configure.ac): Likewise.
4000 * modules/unictype/property-bidi-arabic-digit (Depends-on,
4001 configure.ac): Likewise.
4002 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4003 configure.ac): Likewise.
4004 * modules/unictype/property-bidi-block-separator (Depends-on,
4005 configure.ac): Likewise.
4006 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4007 configure.ac): Likewise.
4008 * modules/unictype/property-bidi-common-separator (Depends-on,
4009 configure.ac): Likewise.
4010 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4012 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4013 configure.ac): Likewise.
4014 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4015 configure.ac): Likewise.
4016 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4017 configure.ac): Likewise.
4018 * modules/unictype/property-bidi-european-digit (Depends-on,
4019 configure.ac): Likewise.
4020 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4021 configure.ac): Likewise.
4022 * modules/unictype/property-bidi-left-to-right (Depends-on,
4023 configure.ac): Likewise.
4024 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4025 configure.ac): Likewise.
4026 * modules/unictype/property-bidi-other-neutral (Depends-on,
4027 configure.ac): Likewise.
4028 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4030 * modules/unictype/property-bidi-segment-separator (Depends-on,
4031 configure.ac): Likewise.
4032 * modules/unictype/property-bidi-whitespace (Depends-on,
4033 configure.ac): Likewise.
4034 * modules/unictype/property-combining (Depends-on, configure.ac):
4036 * modules/unictype/property-composite (Depends-on, configure.ac):
4038 * modules/unictype/property-currency-symbol (Depends-on,
4039 configure.ac): Likewise.
4040 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4041 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4043 * modules/unictype/property-default-ignorable-code-point (Depends-on,
4044 configure.ac): Likewise.
4045 * modules/unictype/property-deprecated (Depends-on, configure.ac):
4047 * modules/unictype/property-diacritic (Depends-on, configure.ac):
4049 * modules/unictype/property-extender (Depends-on, configure.ac):
4051 * modules/unictype/property-format-control (Depends-on, configure.ac):
4053 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4055 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4057 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4059 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4061 * modules/unictype/property-hyphen (Depends-on, configure.ac):
4063 * modules/unictype/property-id-continue (Depends-on, configure.ac):
4065 * modules/unictype/property-id-start (Depends-on, configure.ac):
4067 * modules/unictype/property-ideographic (Depends-on, configure.ac):
4069 * modules/unictype/property-ids-binary-operator (Depends-on,
4070 configure.ac): Likewise.
4071 * modules/unictype/property-ids-trinary-operator (Depends-on,
4072 configure.ac): Likewise.
4073 * modules/unictype/property-ignorable-control (Depends-on,
4074 configure.ac): Likewise.
4075 * modules/unictype/property-iso-control (Depends-on, configure.ac):
4077 * modules/unictype/property-join-control (Depends-on, configure.ac):
4079 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4081 * modules/unictype/property-line-separator (Depends-on, configure.ac):
4083 * modules/unictype/property-logical-order-exception (Depends-on,
4084 configure.ac): Likewise.
4085 * modules/unictype/property-lowercase (Depends-on, configure.ac):
4087 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4088 * modules/unictype/property-non-break (Depends-on, configure.ac):
4090 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4092 * modules/unictype/property-numeric (Depends-on, configure.ac):
4094 * modules/unictype/property-other-alphabetic (Depends-on,
4095 configure.ac): Likewise.
4096 * modules/unictype/property-other-default-ignorable-code-point
4097 (Depends-on, configure.ac): Likewise.
4098 * modules/unictype/property-other-grapheme-extend (Depends-on,
4099 configure.ac): Likewise.
4100 * modules/unictype/property-other-id-continue (Depends-on,
4101 configure.ac): Likewise.
4102 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4104 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4106 * modules/unictype/property-other-math (Depends-on, configure.ac):
4108 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4110 * modules/unictype/property-paired-punctuation (Depends-on,
4111 configure.ac): Likewise.
4112 * modules/unictype/property-paragraph-separator (Depends-on,
4113 configure.ac): Likewise.
4114 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4116 * modules/unictype/property-pattern-white-space (Depends-on,
4117 configure.ac): Likewise.
4118 * modules/unictype/property-private-use (Depends-on, configure.ac):
4120 * modules/unictype/property-punctuation (Depends-on, configure.ac):
4122 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4124 * modules/unictype/property-radical (Depends-on, configure.ac):
4126 * modules/unictype/property-sentence-terminal (Depends-on,
4127 configure.ac): Likewise.
4128 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4130 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4131 * modules/unictype/property-terminal-punctuation (Depends-on,
4132 configure.ac): Likewise.
4133 * modules/unictype/property-titlecase (Depends-on, configure.ac):
4135 * modules/unictype/property-unassigned-code-value (Depends-on,
4136 configure.ac): Likewise.
4137 * modules/unictype/property-unified-ideograph (Depends-on,
4138 configure.ac): Likewise.
4139 * modules/unictype/property-uppercase (Depends-on, configure.ac):
4141 * modules/unictype/property-variation-selector (Depends-on,
4142 configure.ac): Likewise.
4143 * modules/unictype/property-white-space (Depends-on, configure.ac):
4145 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4147 * modules/unictype/property-xid-start (Depends-on, configure.ac):
4149 * modules/unictype/property-zero-width (Depends-on, configure.ac):
4151 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4152 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4155 2009-12-31 Bruno Haible <bruno@clisp.org>
4157 Remove unnecessary AC_C_INLINE invocation.
4158 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4161 2009-12-31 Jim Meyering <meyering@redhat.com>
4163 maint.mk: don't require explicit gpg_key_ID in cfg.mk
4164 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4165 With this change, we can all remove the gpg_key_ID = ... definition
4166 from our respective cfg.mk files.
4168 maint.mk: create announcement template in ~/, not in /tmp
4169 * top/maint.mk (emit_upload_commands): Adjust.
4170 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4171 Remove temporary file, .ci-msg.
4173 2009-12-31 Eric Blake <ebb9@byu.net>
4175 link-warning: always build headers with link warnings
4176 * modules/arpa_inet (Makefile.am): Always build replacement
4178 * modules/ctype (Makefile.am): Likewise.
4179 * modules/dirent (Makefile.am): Likewise.
4180 * modules/inttypes (Makefile.am): Likewise.
4181 * modules/langinfo (Makefile.am): Likewise.
4182 * modules/locale (Makefile.am): Likewise.
4183 * modules/spawn (Makefile.am): Likewise.
4184 * modules/sys_file (Makefile.am): Likewise.
4185 * modules/sys_ioctl (Makefile.am): Likewise.
4186 * modules/sys_select (Makefile.am): Likewise.
4187 * modules/sys_socket (Makefile.am): Likewise.
4188 * modules/sys_times (Makefile.am): Likewise.
4189 * modules/sys_utsname (Makefile.am): Likewise.
4190 * modules/sys_wait (Makefile.am): Likewise.
4191 * modules/wchar (Makefile.am): Likewise.
4192 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4193 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4194 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4195 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4196 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4198 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4199 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4200 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4202 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4204 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4205 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4206 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4207 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4208 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4209 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4210 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4211 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4212 (gl_WCHAR_H_DEFAULTS): Likewise.
4214 2009-12-31 Eric Blake <ebb9@byu.net>
4216 signal, spawn: use link warnings
4217 * lib/signal.in.h (sigset_t): Make unconditional.
4218 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4219 (sigpending, sigprocmask, sigaction): Add link warnings.
4220 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4221 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4222 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4223 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4224 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4225 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4226 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4227 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4228 (posix_spawn_file_actions_destroy)
4229 (posix_spawn_file_actions_addopen)
4230 (posix_spawn_file_actions_addclose)
4231 (posix_spawn_file_actions_adddup2): Likewise.
4232 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4233 * tests/test-signal.c (main): Enhance test.
4235 spawn: improve wrapper support
4236 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4237 (gl_SPAWN_H_DEFAULTS): New defaults.
4238 * modules/spawn (Makefile.am): Substitute them.
4239 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4240 Only declare if missing or broken.
4242 sys_times, sys_utsname: use include_next
4243 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4245 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4246 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4247 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4248 * modules/sys_times (Depends-on): Add include_next.
4249 (Makefile.am): Substitute additional values.
4250 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4251 * lib/sys_times.in.h (includes): Include native header, if
4253 * lib/sys_utsname.in.h (includes): Likewise.
4254 * tests/test-sys_times.c (main): Enhance test.
4256 fdutimensat: revert prior patch
4257 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4259 Reported by Bruno Haible.
4261 2009-12-30 Eric Blake <ebb9@byu.net>
4263 sys_wait: drop link-warning dependency
4264 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4265 link-warning efforts.
4266 * lib/sys_wait.in.h: Likewise.
4268 fdutimensat: remove bogus dependency
4269 * modules/fdutimensat (Depends-on): Drop inline.
4272 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4274 2009-12-30 Bruno Haible <bruno@clisp.org>
4276 Fix compilation error with Solaris cc.
4277 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4278 * lib/unicase/u16-is-invariant.c: Likewise.
4279 * lib/unicase/u32-is-invariant.c: Likewise.
4280 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4282 2009-12-30 Bruno Haible <bruno@clisp.org>
4285 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4287 Reported by Simon Josefsson <simon@josefsson.org>.
4289 2009-12-30 Bruno Haible <bruno@clisp.org>
4291 Fix compilation error on most platforms.
4292 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4293 Reported by Simon Josefsson <simon@josefsson.org>
4294 and Nelson H. F. Beebe <beebe@math.utah.edu>.
4296 2009-12-30 Eric Blake <ebb9@byu.net>
4298 futimens, utimensat: work around ntfs-3g bug
4299 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4300 a ctime bug is present, and expand workaround to cover ntfs-3g.
4301 * lib/utimens.c (fdutimens, lutimens): Likewise.
4302 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4303 (validate_timespec): Adjust return value.
4304 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4305 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4306 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4308 2009-12-29 Eric Blake <ebb9@byu.net>
4310 link-warning: make usage consistent
4311 * modules/ctype (Depends-on): Add link-warning.
4312 (Makefile.am): Update rules accordingly.
4313 * modules/langinfo (Depends-on, Makefile.am): Likewise.
4314 * modules/locale (Depends-on, Makefile.am): Likewise.
4315 * modules/sys_file (Makefile.am): Likewise.
4316 * modules/getopt-posix (Makefile.am): Delete unused link warning
4318 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4319 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4320 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4321 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4323 stdio: remove unused variables
4324 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4325 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4326 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4328 tests: test more substitute headers
4329 * modules/ctype-tests: New file.
4330 * modules/dirent-tests: Likewise.
4331 * modules/spawn-tests: Likewise.
4332 * modules/sys_file-tests: Likewise.
4333 * modules/sys_ioctl-tests: Likewise.
4334 * modules/sys_wait-tests: Likewise.
4335 * tests/test-ctype.c: Likewise.
4336 * tests/test-dirent.c: Likewise.
4337 * tests/test-spawn.c: Likewise.
4338 * tests/test-sys_file.c: Likewise.
4339 * tests/test-sys_ioctl.c: Likewise.
4340 * tests/test-sys_wait.c: Likewise.
4341 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4342 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4343 whether or not flock is in use.
4345 tests: remove License section from module
4346 * modules/arpa_inet-tests: Remove unneeded section.
4347 * modules/byteswap-tests: Likewise.
4348 * modules/ceilf-tests: Likewise.
4349 * modules/ceill-tests: Likewise.
4350 * modules/crypto/des-tests: Likewise.
4351 * modules/crypto/gc-arcfour-tests: Likewise.
4352 * modules/crypto/gc-arctwo-tests: Likewise.
4353 * modules/crypto/gc-des-tests: Likewise.
4354 * modules/crypto/gc-hmac-md5-tests: Likewise.
4355 * modules/crypto/gc-hmac-sha1-tests: Likewise.
4356 * modules/crypto/gc-md2-tests: Likewise.
4357 * modules/crypto/gc-md4-tests: Likewise.
4358 * modules/crypto/gc-md5-tests: Likewise.
4359 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4360 * modules/crypto/gc-rijndael-tests: Likewise.
4361 * modules/crypto/gc-sha1-tests: Likewise.
4362 * modules/crypto/gc-tests: Likewise.
4363 * modules/crypto/md2-tests: Likewise.
4364 * modules/crypto/md4-tests: Likewise.
4365 * modules/fcntl-h-tests: Likewise.
4366 * modules/floorf-tests: Likewise.
4367 * modules/floorl-tests: Likewise.
4368 * modules/frexp-nolibm-tests: Likewise.
4369 * modules/frexp-tests: Likewise.
4370 * modules/frexpl-nolibm-tests: Likewise.
4371 * modules/frexpl-tests: Likewise.
4372 * modules/getaddrinfo-tests: Likewise.
4373 * modules/inttypes-tests: Likewise.
4374 * modules/isfinite-tests: Likewise.
4375 * modules/isinf-tests: Likewise.
4376 * modules/ldexpl-tests: Likewise.
4377 * modules/locale-tests: Likewise.
4378 * modules/math-tests: Likewise.
4379 * modules/netdb-tests: Likewise.
4380 * modules/netinet_in-tests: Likewise.
4381 * modules/printf-frexp-tests: Likewise.
4382 * modules/printf-frexpl-tests: Likewise.
4383 * modules/priv-set-tests: Likewise.
4384 * modules/random_r-tests: Likewise.
4385 * modules/round-tests: Likewise.
4386 * modules/roundf-tests: Likewise.
4387 * modules/roundl-tests: Likewise.
4388 * modules/search-tests: Likewise.
4389 * modules/select-tests: Likewise.
4390 * modules/signal-tests: Likewise.
4391 * modules/stdbool-tests: Likewise.
4392 * modules/stddef-tests: Likewise.
4393 * modules/stdint-tests: Likewise.
4394 * modules/stdio-tests: Likewise.
4395 * modules/stdlib-tests: Likewise.
4396 * modules/string-tests: Likewise.
4397 * modules/strings-tests: Likewise.
4398 * modules/sys_select-tests: Likewise.
4399 * modules/sys_socket-tests: Likewise.
4400 * modules/sys_stat-tests: Likewise.
4401 * modules/sys_time-tests: Likewise.
4402 * modules/sys_utsname-tests: Likewise.
4403 * modules/sysexits-tests: Likewise.
4404 * modules/time-tests: Likewise.
4405 * modules/trunc-tests: Likewise.
4406 * modules/truncf-tests: Likewise.
4407 * modules/truncl-tests: Likewise.
4408 * modules/tsearch-tests: Likewise.
4409 * modules/unistd-tests: Likewise.
4410 * modules/wchar-tests: Likewise.
4411 * modules/wctype-tests: Likewise.
4413 tests: fix license on several tests
4414 * tests/test-des.c: Update to GPLv3+.
4415 * tests/test-flock.c: Likewise.
4416 * tests/test-fsync.c: Likewise.
4417 * tests/test-futimens.h: Likewise.
4418 * tests/test-gc-arcfour.c: Likewise.
4419 * tests/test-gc-arctwo.c: Likewise.
4420 * tests/test-gc-des.c: Likewise.
4421 * tests/test-gc-hmac-md5.c: Likewise.
4422 * tests/test-gc-hmac-sha1.c: Likewise.
4423 * tests/test-gc-md2.c: Likewise.
4424 * tests/test-gc-md4.c: Likewise.
4425 * tests/test-gc-md5.c: Likewise.
4426 * tests/test-gc-pbkdf2-sha1.c: Likewise.
4427 * tests/test-gc-rijndael.c: Likewise.
4428 * tests/test-gc-sha1.c: Likewise.
4429 * tests/test-gc.c: Likewise.
4430 * tests/test-getcwd.c: Likewise.
4431 * tests/test-link.c: Likewise.
4432 * tests/test-link.h: Likewise.
4433 * tests/test-lutimens.h: Likewise.
4434 * tests/test-md2.c: Likewise.
4435 * tests/test-md4.c: Likewise.
4436 * tests/test-mkdir.h: Likewise.
4437 * tests/test-rename.c: Likewise.
4438 * tests/test-rename.h: Likewise.
4439 * tests/test-safe-alloc.c: Likewise.
4440 * tests/test-utimens-common.h: Likewise.
4441 * tests/test-utimens.h: Likewise.
4443 maint: sync license texts
4444 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4445 * doc/gpl-3.0.texi: Revert copyright year update.
4446 * doc/lgpl-3.0.texi: Likewise.
4448 2009-12-29 Jim Meyering <meyering@redhat.com>
4450 update nearly all FSF copyright year lists to include 2009
4451 The files named by the following are exempted:
4452 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4453 test -f "$dst" && { echo "$dst"; continue; }
4454 test -d "$dst" || continue
4455 echo "$dst"/$(basename "$src")
4457 git ls-files tests/unictype >> exempt
4458 In the remaining files, convert to all-interval notation if
4459 - there is already at least one year interval like 2000-2003
4460 - the file is maintained by me
4461 - the file is in lib/uni*/, where that style already prevails
4462 Otherwise, use update-copyright's default.
4464 2009-12-29 Simon Josefsson <simon@josefsson.org>
4465 and Eric Blake <ebb9@byu.net>
4467 tests: don't require debug system() to pass
4468 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4469 * tests/test-rmdir.h (test_rmdir_func): Likewise.
4470 * tests/test-unlink.h (test_unlink_func): Likewise.
4471 * tests/test-fstatat.c (main): ...into callers.
4472 * tests/test-lstat.c (main): Likewise.
4473 * tests/test-rmdir.c (main): Likewise.
4474 * tests/test-unlink.c (main): Likewise.
4475 * tests/test-unlinkat.c (main): Likewise.
4476 * tests/test-areadlink-with-size.c (main): Don't require a
4477 debug-only system call to pass, aiding cross-testing to mingw.
4478 * tests/test-areadlink.c (main): Likewise.
4479 * tests/test-areadlinkat-with-size.c (main): Likewise.
4480 * tests/test-areadlinkat.c (main): Likewise.
4481 * tests/test-canonicalize-lgpl.c (main): Likewise.
4482 * tests/test-canonicalize.c (main): Likewise.
4483 * tests/test-chown.c (main): Likewise.
4484 * tests/test-fchownat.c (main): Likewise.
4485 * tests/test-lchown.c (main): Likewise.
4486 * tests/test-fdutimensat.c (main): Likewise.
4487 * tests/test-futimens.c (main): Likewise.
4488 * tests/test-link.c (main): Likewise.
4489 * tests/test-linkat.c (main): Likewise.
4490 * tests/test-mkdir.c (main): Likewise.
4491 * tests/test-mkdirat.c (main): Likewise.
4492 * tests/test-mkfifo.c (main): Likewise.
4493 * tests/test-mkfifoat.c (main): Likewise.
4494 * tests/test-mknod.c (main): Likewise.
4495 * tests/test-readlink.c (main): Likewise.
4496 * tests/test-remove.c (main): Likewise.
4497 * tests/test-rename.c (main): Likewise.
4498 * tests/test-renameat.c (main): Likewise.
4499 * tests/test-symlink.c (main): Likewise.
4500 * tests/test-symlinkat.c (main): Likewise.
4501 * tests/test-utimens.c (main): Likewise.
4502 * tests/test-utimensat.c (main): Likewise.
4504 2009-12-29 Simon Josefsson <simon@josefsson.org>
4506 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4507 on $(UNUSED_PARAMETER_H) to avoid build failure.
4509 2009-12-28 Jim Meyering <meyering@redhat.com>
4511 update-copyright: you may specify a max. line length other than 72
4512 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4514 maint: use consistent FSF copyright line syntax
4515 * lib/posixtm.c: Add missing comma in FSF copyright line.
4516 * lib/posixtm.h: Likewise.
4517 * lib/getugroups.c: Add missing ", Inc.".
4519 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4520 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4521 FSF copyright line. Remove trailing blanks.
4523 2009-12-28 Eric Blake <ebb9@byu.net>
4525 test-dup2: reduce dependencies
4526 * modules/cloexec (Configure.ac): Set witness.
4527 * modules/dup2-tests (Depends-on): Drop cloexec.
4528 * tests/test-dup2.c (main): Skip portion of test if cloexec module
4530 Suggested by Bruno Haible.
4532 2009-12-26 Bruno Haible <bruno@clisp.org>
4534 Remove an unneeded dependency.
4535 * modules/fseterr (Depends-on): Remove dup2.
4537 2009-12-26 Eric Blake <ebb9@byu.net>
4539 tests: use macros.h in more places
4540 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4541 (ASSERT_STREAM): Provide default of stderr.
4542 * tests/test-dirent-safer.c: Include macros.h, using alternate
4543 stream for assertions.
4544 * tests/test-dup-safer.c: Likewise.
4545 * tests/test-freopen-safer.c: Likewise.
4546 * tests/test-getopt.c: Likewise.
4547 * tests/test-openat-safer.c: Likewise.
4548 * tests/test-pipe.c: Likewise.
4549 * tests/test-popen-safer.c: Likewise.
4550 * modules/dirent-safer-tests (Files): Include macros.h.
4551 * modules/unistd-safer-tests (Files): Likewise.
4552 * modules/freopen-safer-tests (Files): Likewise.
4553 * modules/getopt-posix-tests (Files): Likewise.
4554 * modules/openat-safer-tests (Files): Likewise.
4555 * modules/pipe-tests (Files): Likewise.
4557 2009-12-26 Bruno Haible <bruno@clisp.org>
4559 javacomp: Portability fix.
4560 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4561 that it also works on Solaris.
4563 2009-12-26 Bruno Haible <bruno@clisp.org>
4565 localename: Fix storage allocation of gl_locale_name_thread's result.
4566 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4567 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4568 all platforms that have 'uselocale'.
4569 (gl_locale_name_thread_unsafe): New function, extracted from
4570 gl_locale_name_thread.
4571 (gl_locale_name_thread): Call struniq on all platforms that have
4573 * tests/test-localename.c (test_locale_name_thread): Check that the
4574 resulting strings are permanently allocated.
4575 * modules/localename-tests (Depends-on): Add strdup.
4577 2009-12-26 Bruno Haible <bruno@clisp.org>
4579 * tests/test-localename.c (categories): Fill in the strings.
4581 2009-12-26 Jim Meyering <meyering@redhat.com>
4583 isdir: complete the removal of m4/isdir.m4
4584 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4586 isdir: clean up, since at least grep still uses it
4587 * lib/isdir.c: Include "isdir.h".
4588 (S_ISDIR): Remove now-unneeded definition.
4589 * modules/isdir (Files): Add lib/isdir.h.
4590 * lib/isdir.h: New file, with declaration.
4591 * m4/isdir.m4: Remove file -- unneeded.
4593 2009-12-25 Bruno Haible <bruno@clisp.org>
4595 selinux-h: Make generated .h files standalone.
4596 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4597 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4598 * lib/se-selinux.in.h: Likewise.
4599 * modules/selinux-h (Depends-on): Add unused-parameter.
4600 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4601 selinux/selinux.h and selinux/context.h.
4602 Suggested by Eric Blake.
4604 2009-12-25 Bruno Haible <bruno@clisp.org>
4606 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4607 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4608 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4609 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4610 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4612 2009-12-24 Bruno Haible <bruno@clisp.org>
4614 openat: Fix warning.
4615 * lib/openat-proc.c: Include <unistd.h>.
4617 2009-12-24 Bruno Haible <bruno@clisp.org>
4619 New module 'unused-parameter'.
4620 * build-aux/unused-parameter.h: New file, extracted from earlier
4622 * modules/unused-parameter: New file.
4623 * lib/unistr.h: Include unused-parameter.h.
4624 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4626 * modules/unistr/base (Depends-on): Add unused-parameter.
4628 2009-12-24 Bruno Haible <bruno@clisp.org>
4630 Add missing dependencies to 'extensions' module.
4631 * m4/extensions.m4: Add comment.
4632 * modules/accept4 (Depends-on): Add extensions.
4633 * modules/dup3 (Depends-on): Likewise.
4634 * modules/fcntl (Depends-on): Likewise.
4635 * modules/futimens (Depends-on): Likewise.
4636 * modules/mknod (Depends-on): Likewise.
4637 * modules/pipe2 (Depends-on): Likewise.
4638 * modules/stat-time (Depends-on): Likewise.
4639 * modules/strcasestr-simple (Depends-on): Likewise.
4640 * modules/strsignal (Depends-on): Likewise.
4641 * modules/utimensat (Depends-on): Likewise.
4642 * modules/localcharset (Depends-on): Likewise. Needed because of
4644 * modules/wcrtomb (Depends-on): Likewise. Needed because of
4646 * modules/wcsnrtombs (Depends-on): Likewise.
4647 * modules/wcsrtombs (Depends-on): Likewise.
4649 2009-12-24 Bruno Haible <bruno@clisp.org>
4651 binary-io: Avoid gcc warning due to SET_BINARY.
4652 * lib/binary-io.h (SET_BINARY): Cast the result to void.
4653 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4655 2009-12-24 Bruno Haible <bruno@clisp.org>
4657 Avoid future namespace pollution on glibc systems.
4658 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4659 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4660 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4663 2009-12-24 Bruno Haible <bruno@clisp.org>
4665 Refactor common macros used in tests.
4666 * tests/macros.h: New file.
4667 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4668 and/or <stdlib.h>, if appropriate.
4669 (ASSERT, SIZEOF): Remove macros.
4670 * tests/test-areadlink-with-size.c: Likewise.
4671 * tests/test-areadlinkat.c: Likewise.
4672 * tests/test-areadlinkat-with-size.c: Likewise.
4673 * tests/test-argmatch.c: Likewise.
4674 * tests/test-argv-iter.c: Likewise.
4675 * tests/test-array-mergesort.c: Likewise.
4676 * tests/test-array_list.c: Likewise.
4677 * tests/test-array_oset.c: Likewise.
4678 * tests/test-avltree_list.c: Likewise.
4679 * tests/test-avltree_oset.c: Likewise.
4680 * tests/test-avltreehash_list.c: Likewise.
4681 * tests/test-base64.c: Likewise.
4682 * tests/test-binary-io.c: Likewise.
4683 * tests/test-bitrotate.c: Likewise.
4684 * tests/test-btowc.c: Likewise.
4685 * tests/test-byteswap.c: Likewise.
4686 * tests/test-c-ctype.c: Likewise.
4687 * tests/test-c-stack.c: Likewise.
4688 * tests/test-c-strcasecmp.c: Likewise.
4689 * tests/test-c-strcasestr.c: Likewise.
4690 * tests/test-c-strncasecmp.c: Likewise.
4691 * tests/test-c-strstr.c: Likewise.
4692 * tests/test-canonicalize-lgpl.c: Likewise.
4693 * tests/test-canonicalize.c: Likewise.
4694 * tests/test-carray_list.c: Likewise.
4695 * tests/test-ceilf1.c: Likewise.
4696 * tests/test-ceilf2.c: Likewise.
4697 * tests/test-ceill.c: Likewise.
4698 * tests/test-chown.c: Likewise.
4699 * tests/test-cloexec.c: Likewise.
4700 * tests/test-copy-acl.c: Likewise.
4701 * tests/test-copy-file.c: Likewise.
4702 * tests/test-count-one-bits.c: Likewise.
4703 * tests/test-dprintf-posix.c: Likewise.
4704 * tests/test-dup2.c: Likewise.
4705 * tests/test-dup3.c: Likewise.
4706 * tests/test-duplocale.c: Likewise.
4707 * tests/test-fbufmode.c: Likewise.
4708 * tests/test-fchdir.c: Likewise.
4709 * tests/test-fchownat.c: Likewise.
4710 * tests/test-fcntl-safer.c: Likewise.
4711 * tests/test-fcntl.c: Likewise.
4712 * tests/test-fdopendir.c: Likewise.
4713 * tests/test-fdutimensat.c: Likewise.
4714 * tests/test-fflush2.c: Likewise.
4715 * tests/test-file-has-acl.c: Likewise.
4716 * tests/test-filevercmp.c: Likewise.
4717 * tests/test-flock.c: Likewise.
4718 * tests/test-floorf1.c: Likewise.
4719 * tests/test-floorf2.c: Likewise.
4720 * tests/test-floorl.c: Likewise.
4721 * tests/test-fnmatch.c: Likewise.
4722 * tests/test-fopen.h: Likewise.
4723 * tests/test-fpending.c: Likewise.
4724 * tests/test-fprintf-posix.c: Likewise.
4725 * tests/test-fpurge.c: Likewise.
4726 * tests/test-freadable.c: Likewise.
4727 * tests/test-freadahead.c: Likewise.
4728 * tests/test-freading.c: Likewise.
4729 * tests/test-freadptr.c: Likewise.
4730 * tests/test-freadptr2.c: Likewise.
4731 * tests/test-freadseek.c: Likewise.
4732 * tests/test-freopen.c: Likewise.
4733 * tests/test-frexp.c: Likewise.
4734 * tests/test-frexpl.c: Likewise.
4735 * tests/test-fseek.c: Likewise.
4736 * tests/test-fseeko.c: Likewise.
4737 * tests/test-fstatat.c: Likewise.
4738 * tests/test-fstrcmp.c: Likewise.
4739 * tests/test-fsync.c: Likewise.
4740 * tests/test-ftell.c: Likewise.
4741 * tests/test-ftello.c: Likewise.
4742 * tests/test-func.c: Likewise.
4743 * tests/test-futimens.c: Likewise.
4744 * tests/test-fwritable.c: Likewise.
4745 * tests/test-fwriting.c: Likewise.
4746 * tests/test-getcwd.c: Likewise.
4747 * tests/test-getdate.c: Likewise.
4748 * tests/test-getdelim.c: Likewise.
4749 * tests/test-getdtablesize.c: Likewise.
4750 * tests/test-getgroups.c: Likewise.
4751 * tests/test-getline.c: Likewise.
4752 * tests/test-getndelim2.c: Likewise.
4753 * tests/test-glob.c: Likewise.
4754 * tests/test-hash.c: Likewise.
4755 * tests/test-i-ring.c: Likewise.
4756 * tests/test-iconv-utf.c: Likewise.
4757 * tests/test-iconv.c: Likewise.
4758 * tests/test-idpriv-drop.c: Likewise.
4759 * tests/test-idpriv-droptemp.c: Likewise.
4760 * tests/test-inet_ntop.c: Likewise.
4761 * tests/test-inet_pton.c: Likewise.
4762 * tests/test-isblank.c: Likewise.
4763 * tests/test-isfinite.c: Likewise.
4764 * tests/test-isinf.c: Likewise.
4765 * tests/test-isnan.c: Likewise.
4766 * tests/test-isnand.h: Likewise.
4767 * tests/test-isnanf.h: Likewise.
4768 * tests/test-isnanl.h: Likewise.
4769 * tests/test-lchown.c: Likewise.
4770 * tests/test-ldexpl.c: Likewise.
4771 * tests/test-link.c: Likewise.
4772 * tests/test-linkat.c: Likewise.
4773 * tests/test-linked_list.c: Likewise.
4774 * tests/test-linkedhash_list.c: Likewise.
4775 * tests/test-localename.c: Likewise.
4776 * tests/test-lseek.c: Likewise.
4777 * tests/test-lstat.c: Likewise.
4778 * tests/test-mbmemcasecmp.c: Likewise.
4779 * tests/test-mbmemcasecoll.c: Likewise.
4780 * tests/test-mbrtowc.c: Likewise.
4781 * tests/test-mbscasecmp.c: Likewise.
4782 * tests/test-mbscasestr1.c: Likewise.
4783 * tests/test-mbscasestr2.c: Likewise.
4784 * tests/test-mbscasestr3.c: Likewise.
4785 * tests/test-mbscasestr4.c: Likewise.
4786 * tests/test-mbschr.c: Likewise.
4787 * tests/test-mbscspn.c: Likewise.
4788 * tests/test-mbsinit.c: Likewise.
4789 * tests/test-mbsncasecmp.c: Likewise.
4790 * tests/test-mbsnrtowcs.c: Likewise.
4791 * tests/test-mbspbrk.c: Likewise.
4792 * tests/test-mbspcasecmp.c: Likewise.
4793 * tests/test-mbsrchr.c: Likewise.
4794 * tests/test-mbsrtowcs.c: Likewise.
4795 * tests/test-mbsspn.c: Likewise.
4796 * tests/test-mbsstr1.c: Likewise.
4797 * tests/test-mbsstr2.c: Likewise.
4798 * tests/test-mbsstr3.c: Likewise.
4799 * tests/test-memchr.c: Likewise.
4800 * tests/test-memchr2.c: Likewise.
4801 * tests/test-memcmp.c: Likewise.
4802 * tests/test-memmem.c: Likewise.
4803 * tests/test-memrchr.c: Likewise.
4804 * tests/test-mkdir.c: Likewise.
4805 * tests/test-mkdirat.c: Likewise.
4806 * tests/test-mkfifo.c: Likewise.
4807 * tests/test-mkfifoat.c: Likewise.
4808 * tests/test-mknod.c: Likewise.
4809 * tests/test-nanosleep.c: Likewise.
4810 * tests/test-nl_langinfo.c: Likewise.
4811 * tests/test-obstack-printf.c: Likewise.
4812 * tests/test-open.c: Likewise.
4813 * tests/test-openat.c: Likewise.
4814 * tests/test-pipe-filter-gi1.c: Likewise.
4815 * tests/test-pipe-filter-gi2-main.c: Likewise.
4816 * tests/test-pipe-filter-ii1.c: Likewise.
4817 * tests/test-pipe-filter-ii2-main.c: Likewise.
4818 * tests/test-pipe2.c: Likewise.
4819 * tests/test-popen.h: Likewise.
4820 * tests/test-posixtm.c: Likewise.
4821 * tests/test-pread.c: Likewise.
4822 * tests/test-printf-frexp.c: Likewise.
4823 * tests/test-printf-frexpl.c: Likewise.
4824 * tests/test-printf-posix.c: Likewise.
4825 * tests/test-priv-set.c: Likewise.
4826 * tests/test-quotearg.c: Likewise.
4827 * tests/test-random_r.c: Likewise.
4828 * tests/test-rawmemchr.c: Likewise.
4829 * tests/test-rbtree_list.c: Likewise.
4830 * tests/test-rbtree_oset.c: Likewise.
4831 * tests/test-rbtreehash_list.c: Likewise.
4832 * tests/test-readlink.c: Likewise.
4833 * tests/test-remove.c: Likewise.
4834 * tests/test-rename.c: Likewise.
4835 * tests/test-renameat.c: Likewise.
4836 * tests/test-rmdir.c: Likewise.
4837 * tests/test-round1.c: Likewise.
4838 * tests/test-roundf1.c: Likewise.
4839 * tests/test-roundl.c: Likewise.
4840 * tests/test-safe-alloc.c: Likewise.
4841 * tests/test-sameacls.c: Likewise.
4842 * tests/test-set-mode-acl.c: Likewise.
4843 * tests/test-setenv.c: Likewise.
4844 * tests/test-sigaction.c: Likewise.
4845 * tests/test-signbit.c: Likewise.
4846 * tests/test-sleep.c: Likewise.
4847 * tests/test-snprintf-posix.c: Likewise.
4848 * tests/test-snprintf.c: Likewise.
4849 * tests/test-sprintf-posix.c: Likewise.
4850 * tests/test-stat-time.c: Likewise.
4851 * tests/test-stat.c: Likewise.
4852 * tests/test-strcasestr.c: Likewise.
4853 * tests/test-strchrnul.c: Likewise.
4854 * tests/test-strerror.c: Likewise.
4855 * tests/test-striconv.c: Likewise.
4856 * tests/test-striconveh.c: Likewise.
4857 * tests/test-striconveha.c: Likewise.
4858 * tests/test-strsignal.c: Likewise.
4859 * tests/test-strstr.c: Likewise.
4860 * tests/test-strtod.c: Likewise.
4861 * tests/test-strverscmp.c: Likewise.
4862 * tests/test-symlink.c: Likewise.
4863 * tests/test-symlinkat.c: Likewise.
4864 * tests/test-trunc1.c: Likewise.
4865 * tests/test-trunc2.c: Likewise.
4866 * tests/test-truncf1.c: Likewise.
4867 * tests/test-truncf2.c: Likewise.
4868 * tests/test-truncl.c: Likewise.
4869 * tests/test-uname.c: Likewise.
4870 * tests/test-unlink.c: Likewise.
4871 * tests/test-unlinkat.c: Likewise.
4872 * tests/test-unsetenv.c: Likewise.
4873 * tests/test-usleep.c: Likewise.
4874 * tests/test-utimens.c: Likewise.
4875 * tests/test-utimensat.c: Likewise.
4876 * tests/test-vasnprintf-posix.c: Likewise.
4877 * tests/test-vasnprintf-posix2.c: Likewise.
4878 * tests/test-vasnprintf.c: Likewise.
4879 * tests/test-vasprintf-posix.c: Likewise.
4880 * tests/test-vasprintf.c: Likewise.
4881 * tests/test-vdprintf-posix.c: Likewise.
4882 * tests/test-vfprintf-posix.c: Likewise.
4883 * tests/test-vprintf-posix.c: Likewise.
4884 * tests/test-vsnprintf-posix.c: Likewise.
4885 * tests/test-vsnprintf.c: Likewise.
4886 * tests/test-vsprintf-posix.c: Likewise.
4887 * tests/test-wcrtomb.c: Likewise.
4888 * tests/test-wcsnrtombs.c: Likewise.
4889 * tests/test-wcsrtombs.c: Likewise.
4890 * tests/test-wctype.c: Likewise.
4891 * tests/test-wcwidth.c: Likewise.
4892 * tests/test-xfprintf-posix.c: Likewise.
4893 * tests/test-xmemdup0.c: Likewise.
4894 * tests/test-xprintf-posix.c: Likewise.
4895 * tests/test-xvasprintf.c: Likewise.
4896 * tests/unicase/test-locale-language.c: Likewise.
4897 * tests/unicase/test-mapping-part1.h: Likewise.
4898 * tests/unicase/test-predicate-part1.h: Likewise.
4899 * tests/unicase/test-u8-casecmp.c: Likewise.
4900 * tests/unicase/test-u8-casecoll.c: Likewise.
4901 * tests/unicase/test-u8-casefold.c: Likewise.
4902 * tests/unicase/test-u8-is-cased.c: Likewise.
4903 * tests/unicase/test-u8-is-casefolded.c: Likewise.
4904 * tests/unicase/test-u8-is-lowercase.c: Likewise.
4905 * tests/unicase/test-u8-is-titlecase.c: Likewise.
4906 * tests/unicase/test-u8-is-uppercase.c: Likewise.
4907 * tests/unicase/test-u8-tolower.c: Likewise.
4908 * tests/unicase/test-u8-totitle.c: Likewise.
4909 * tests/unicase/test-u8-toupper.c: Likewise.
4910 * tests/unicase/test-u16-casecmp.c: Likewise.
4911 * tests/unicase/test-u16-casecoll.c: Likewise.
4912 * tests/unicase/test-u16-casefold.c: Likewise.
4913 * tests/unicase/test-u16-is-cased.c: Likewise.
4914 * tests/unicase/test-u16-is-casefolded.c: Likewise.
4915 * tests/unicase/test-u16-is-lowercase.c: Likewise.
4916 * tests/unicase/test-u16-is-titlecase.c: Likewise.
4917 * tests/unicase/test-u16-is-uppercase.c: Likewise.
4918 * tests/unicase/test-u16-tolower.c: Likewise.
4919 * tests/unicase/test-u16-totitle.c: Likewise.
4920 * tests/unicase/test-u16-toupper.c: Likewise.
4921 * tests/unicase/test-u32-casecmp.c: Likewise.
4922 * tests/unicase/test-u32-casecoll.c: Likewise.
4923 * tests/unicase/test-u32-casefold.c: Likewise.
4924 * tests/unicase/test-u32-is-cased.c: Likewise.
4925 * tests/unicase/test-u32-is-casefolded.c: Likewise.
4926 * tests/unicase/test-u32-is-lowercase.c: Likewise.
4927 * tests/unicase/test-u32-is-titlecase.c: Likewise.
4928 * tests/unicase/test-u32-is-uppercase.c: Likewise.
4929 * tests/unicase/test-u32-tolower.c: Likewise.
4930 * tests/unicase/test-u32-totitle.c: Likewise.
4931 * tests/unicase/test-u32-toupper.c: Likewise.
4932 * tests/unicase/test-ulc-casecmp.c: Likewise.
4933 * tests/unicase/test-ulc-casecoll.c: Likewise.
4934 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4935 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4936 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4937 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4938 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4939 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4940 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4941 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4942 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4943 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4944 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4945 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4946 * tests/unictype/test-bidi_byname.c: Likewise.
4947 * tests/unictype/test-bidi_name.c: Likewise.
4948 * tests/unictype/test-bidi_of.c: Likewise.
4949 * tests/unictype/test-bidi_test.c: Likewise.
4950 * tests/unictype/test-block_list.c: Likewise.
4951 * tests/unictype/test-block_of.c: Likewise.
4952 * tests/unictype/test-block_test.c: Likewise.
4953 * tests/unictype/test-categ_and.c: Likewise.
4954 * tests/unictype/test-categ_and_not.c: Likewise.
4955 * tests/unictype/test-categ_byname.c: Likewise.
4956 * tests/unictype/test-categ_name.c: Likewise.
4957 * tests/unictype/test-categ_none.c: Likewise.
4958 * tests/unictype/test-categ_of.c: Likewise.
4959 * tests/unictype/test-categ_or.c: Likewise.
4960 * tests/unictype/test-categ_test_withtable.c: Likewise.
4961 * tests/unictype/test-combining.c: Likewise.
4962 * tests/unictype/test-decdigit.c: Likewise.
4963 * tests/unictype/test-digit.c: Likewise.
4964 * tests/unictype/test-mirror.c: Likewise.
4965 * tests/unictype/test-numeric.c: Likewise.
4966 * tests/unictype/test-pr_byname.c: Likewise.
4967 * tests/unictype/test-pr_test.c: Likewise.
4968 * tests/unictype/test-predicate-part1.h: Likewise.
4969 * tests/unictype/test-scripts.c: Likewise.
4970 * tests/unictype/test-sy_c_ident.c: Likewise.
4971 * tests/unictype/test-sy_java_ident.c: Likewise.
4972 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4973 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4974 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4975 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4976 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4977 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4978 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4979 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4980 * tests/uninorm/test-canonical-decomposition.c: Likewise.
4981 * tests/uninorm/test-compat-decomposition.c: Likewise.
4982 * tests/uninorm/test-composition.c: Likewise.
4983 * tests/uninorm/test-decomposing-form.c: Likewise.
4984 * tests/uninorm/test-decomposition.c: Likewise.
4985 * tests/uninorm/test-u8-nfc.c: Likewise.
4986 * tests/uninorm/test-u8-nfd.c: Likewise.
4987 * tests/uninorm/test-u8-nfkc.c: Likewise.
4988 * tests/uninorm/test-u8-nfkd.c: Likewise.
4989 * tests/uninorm/test-u8-normcmp.c: Likewise.
4990 * tests/uninorm/test-u8-normcoll.c: Likewise.
4991 * tests/uninorm/test-u16-nfc.c: Likewise.
4992 * tests/uninorm/test-u16-nfd.c: Likewise.
4993 * tests/uninorm/test-u16-nfkc.c: Likewise.
4994 * tests/uninorm/test-u16-nfkd.c: Likewise.
4995 * tests/uninorm/test-u16-normcmp.c: Likewise.
4996 * tests/uninorm/test-u16-normcoll.c: Likewise.
4997 * tests/uninorm/test-u32-nfc.c: Likewise.
4998 * tests/uninorm/test-u32-nfd.c: Likewise.
4999 * tests/uninorm/test-u32-nfkc.c: Likewise.
5000 * tests/uninorm/test-u32-nfkd.c: Likewise.
5001 * tests/uninorm/test-u32-normalize-big.c: Likewise.
5002 * tests/uninorm/test-u32-normcmp.c: Likewise.
5003 * tests/uninorm/test-u32-normcoll.c: Likewise.
5004 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5005 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5006 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5007 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5008 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5009 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5010 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5011 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5012 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5013 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5014 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5015 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5016 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5017 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5018 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5019 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5020 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5021 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5022 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5023 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5024 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5025 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5026 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5027 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5028 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5029 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5030 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5031 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5032 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5033 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5034 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5035 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5036 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5037 * tests/uniwidth/test-u8-strwidth.c: Likewise.
5038 * tests/uniwidth/test-u8-width.c: Likewise.
5039 * tests/uniwidth/test-u16-strwidth.c: Likewise.
5040 * tests/uniwidth/test-u16-width.c: Likewise.
5041 * tests/uniwidth/test-u32-strwidth.c: Likewise.
5042 * tests/uniwidth/test-u32-width.c: Likewise.
5043 * tests/uniwidth/test-uc_width.c: Likewise.
5044 * tests/uniwidth/test-uc_width2.c: Likewise.
5045 * modules/acl-tests (Files): Add tests/macros.h.
5046 * modules/areadlink-tests (Files): Likewise.
5047 * modules/areadlink-with-size-tests (Files): Likewise.
5048 * modules/areadlinkat-tests (Files): Likewise.
5049 * modules/areadlinkat-with-size-tests (Files): Likewise.
5050 * modules/argmatch-tests (Files): Likewise.
5051 * modules/argv-iter-tests (Files): Likewise.
5052 * modules/array-list-tests (Files): Likewise.
5053 * modules/array-mergesort-tests (Files): Likewise.
5054 * modules/array-oset-tests (Files): Likewise.
5055 * modules/avltree-list-tests (Files): Likewise.
5056 * modules/avltree-oset-tests (Files): Likewise.
5057 * modules/avltreehash-list-tests (Files): Likewise.
5058 * modules/base64-tests (Files): Likewise.
5059 * modules/binary-io-tests (Files): Likewise.
5060 * modules/bitrotate-tests (Files): Likewise.
5061 * modules/btowc-tests (Files): Likewise.
5062 * modules/byteswap-tests (Files): Likewise.
5063 * modules/c-ctype-tests (Files): Likewise.
5064 * modules/c-stack-tests (Files): Likewise.
5065 * modules/c-strcase-tests (Files): Likewise.
5066 * modules/c-strcasestr-tests (Files): Likewise.
5067 * modules/c-strstr-tests (Files): Likewise.
5068 * modules/canonicalize-lgpl-tests (Files): Likewise.
5069 * modules/canonicalize-tests (Files): Likewise.
5070 * modules/carray-list-tests (Files): Likewise.
5071 * modules/ceilf-tests (Files): Likewise.
5072 * modules/ceill-tests (Files): Likewise.
5073 * modules/chown-tests (Files): Likewise.
5074 * modules/cloexec-tests (Files): Likewise.
5075 * modules/copy-file-tests (Files): Likewise.
5076 * modules/count-one-bits-tests (Files): Likewise.
5077 * modules/dprintf-posix-tests (Files): Likewise.
5078 * modules/dup2-tests (Files): Likewise.
5079 * modules/dup3-tests (Files): Likewise.
5080 * modules/duplocale-tests (Files): Likewise.
5081 * modules/fbufmode-tests (Files): Likewise.
5082 * modules/fchdir-tests (Files): Likewise.
5083 * modules/fcntl-safer-tests (Files): Likewise.
5084 * modules/fcntl-tests (Files): Likewise.
5085 * modules/fdopendir-tests (Files): Likewise.
5086 * modules/fdutimensat-tests (Files): Likewise.
5087 * modules/fflush-tests (Files): Likewise.
5088 * modules/filevercmp-tests (Files): Likewise.
5089 * modules/flock-tests (Files): Likewise.
5090 * modules/floorf-tests (Files): Likewise.
5091 * modules/floorl-tests (Files): Likewise.
5092 * modules/fnmatch-tests (Files): Likewise.
5093 * modules/fopen-safer-tests (Files): Likewise.
5094 * modules/fopen-tests (Files): Likewise.
5095 * modules/fpending-tests (Files): Likewise.
5096 * modules/fprintf-posix-tests (Files): Likewise.
5097 * modules/fpurge-tests (Files): Likewise.
5098 * modules/freadable-tests (Files): Likewise.
5099 * modules/freadahead-tests (Files): Likewise.
5100 * modules/freading-tests (Files): Likewise.
5101 * modules/freadptr-tests (Files): Likewise.
5102 * modules/freadseek-tests (Files): Likewise.
5103 * modules/freopen-tests (Files): Likewise.
5104 * modules/frexp-nolibm-tests (Files): Likewise.
5105 * modules/frexp-tests (Files): Likewise.
5106 * modules/frexpl-nolibm-tests (Files): Likewise.
5107 * modules/frexpl-tests (Files): Likewise.
5108 * modules/fseek-tests (Files): Likewise.
5109 * modules/fseeko-tests (Files): Likewise.
5110 * modules/fstrcmp-tests (Files): Likewise.
5111 * modules/fsync-tests (Files): Likewise.
5112 * modules/ftell-tests (Files): Likewise.
5113 * modules/ftello-tests (Files): Likewise.
5114 * modules/func-tests (Files): Likewise.
5115 * modules/futimens-tests (Files): Likewise.
5116 * modules/fwritable-tests (Files): Likewise.
5117 * modules/fwriting-tests (Files): Likewise.
5118 * modules/getcwd-tests (Files): Likewise.
5119 * modules/getdate-tests (Files): Likewise.
5120 * modules/getdelim-tests (Files): Likewise.
5121 * modules/getdtablesize-tests (Files): Likewise.
5122 * modules/getgroups-tests (Files): Likewise.
5123 * modules/getline-tests (Files): Likewise.
5124 * modules/getndelim2-tests (Files): Likewise.
5125 * modules/glob-tests (Files): Likewise.
5126 * modules/hash-tests (Files): Likewise.
5127 * modules/i-ring-tests (Files): Likewise.
5128 * modules/iconv-tests (Files): Likewise.
5129 * modules/iconv_open-utf-tests (Files): Likewise.
5130 * modules/idpriv-drop-tests (Files): Likewise.
5131 * modules/idpriv-droptemp-tests (Files): Likewise.
5132 * modules/inet_ntop-tests (Files): Likewise.
5133 * modules/inet_pton-tests (Files): Likewise.
5134 * modules/isblank-tests (Files): Likewise.
5135 * modules/isfinite-tests (Files): Likewise.
5136 * modules/isinf-tests (Files): Likewise.
5137 * modules/isnan-tests (Files): Likewise.
5138 * modules/isnand-nolibm-tests (Files): Likewise.
5139 * modules/isnand-tests (Files): Likewise.
5140 * modules/isnanf-nolibm-tests (Files): Likewise.
5141 * modules/isnanf-tests (Files): Likewise.
5142 * modules/isnanl-nolibm-tests (Files): Likewise.
5143 * modules/isnanl-tests (Files): Likewise.
5144 * modules/lchown-tests (Files): Likewise.
5145 * modules/ldexpl-tests (Files): Likewise.
5146 * modules/link-tests (Files): Likewise.
5147 * modules/linkat-tests (Files): Likewise.
5148 * modules/linked-list-tests (Files): Likewise.
5149 * modules/linkedhash-list-tests (Files): Likewise.
5150 * modules/localename-tests (Files): Likewise.
5151 * modules/lseek-tests (Files): Likewise.
5152 * modules/lstat-tests (Files): Likewise.
5153 * modules/mbmemcasecmp-tests (Files): Likewise.
5154 * modules/mbmemcasecoll-tests (Files): Likewise.
5155 * modules/mbrtowc-tests (Files): Likewise.
5156 * modules/mbscasecmp-tests (Files): Likewise.
5157 * modules/mbscasestr-tests (Files): Likewise.
5158 * modules/mbschr-tests (Files): Likewise.
5159 * modules/mbscspn-tests (Files): Likewise.
5160 * modules/mbsinit-tests (Files): Likewise.
5161 * modules/mbsncasecmp-tests (Files): Likewise.
5162 * modules/mbsnrtowcs-tests (Files): Likewise.
5163 * modules/mbspbrk-tests (Files): Likewise.
5164 * modules/mbspcasecmp-tests (Files): Likewise.
5165 * modules/mbsrchr-tests (Files): Likewise.
5166 * modules/mbsrtowcs-tests (Files): Likewise.
5167 * modules/mbsspn-tests (Files): Likewise.
5168 * modules/mbsstr-tests (Files): Likewise.
5169 * modules/memchr-tests (Files): Likewise.
5170 * modules/memchr2-tests (Files): Likewise.
5171 * modules/memcmp-tests (Files): Likewise.
5172 * modules/memmem-tests (Files): Likewise.
5173 * modules/memrchr-tests (Files): Likewise.
5174 * modules/mkdir-tests (Files): Likewise.
5175 * modules/mkfifo-tests (Files): Likewise.
5176 * modules/mkfifoat-tests (Files): Likewise.
5177 * modules/mknod-tests (Files): Likewise.
5178 * modules/nanosleep-tests (Files): Likewise.
5179 * modules/nl_langinfo-tests (Files): Likewise.
5180 * modules/obstack-printf-tests (Files): Likewise.
5181 * modules/open-tests (Files): Likewise.
5182 * modules/openat-tests (Files): Likewise.
5183 * modules/pipe-filter-gi-tests (Files): Likewise.
5184 * modules/pipe-filter-ii-tests (Files): Likewise.
5185 * modules/pipe2-tests (Files): Likewise.
5186 * modules/popen-safer-tests (Files): Likewise.
5187 * modules/popen-tests (Files): Likewise.
5188 * modules/posixtm-tests (Files): Likewise.
5189 * modules/pread-tests (Files): Likewise.
5190 * modules/printf-frexp-tests (Files): Likewise.
5191 * modules/printf-frexpl-tests (Files): Likewise.
5192 * modules/printf-posix-tests (Files): Likewise.
5193 * modules/priv-set-tests (Files): Likewise.
5194 * modules/quotearg-tests (Files): Likewise.
5195 * modules/random_r-tests (Files): Likewise.
5196 * modules/rawmemchr-tests (Files): Likewise.
5197 * modules/rbtree-list-tests (Files): Likewise.
5198 * modules/rbtree-oset-tests (Files): Likewise.
5199 * modules/rbtreehash-list-tests (Files): Likewise.
5200 * modules/readlink-tests (Files): Likewise.
5201 * modules/remove-tests (Files): Likewise.
5202 * modules/rename-tests (Files): Likewise.
5203 * modules/renameat-tests (Files): Likewise.
5204 * modules/rmdir-tests (Files): Likewise.
5205 * modules/round-tests (Files): Likewise.
5206 * modules/roundf-tests (Files): Likewise.
5207 * modules/roundl-tests (Files): Likewise.
5208 * modules/safe-alloc-tests (Files): Likewise.
5209 * modules/setenv-tests (Files): Likewise.
5210 * modules/sigaction-tests (Files): Likewise.
5211 * modules/signbit-tests (Files): Likewise.
5212 * modules/sleep-tests (Files): Likewise.
5213 * modules/snprintf-posix-tests (Files): Likewise.
5214 * modules/snprintf-tests (Files): Likewise.
5215 * modules/sprintf-posix-tests (Files): Likewise.
5216 * modules/stat-tests (Files): Likewise.
5217 * modules/stat-time-tests (Files): Likewise.
5218 * modules/strcasestr-tests (Files): Likewise.
5219 * modules/strchrnul-tests (Files): Likewise.
5220 * modules/strerror-tests (Files): Likewise.
5221 * modules/striconv-tests (Files): Likewise.
5222 * modules/striconveh-tests (Files): Likewise.
5223 * modules/striconveha-tests (Files): Likewise.
5224 * modules/strsignal-tests (Files): Likewise.
5225 * modules/strstr-tests (Files): Likewise.
5226 * modules/strtod-tests (Files): Likewise.
5227 * modules/strverscmp-tests (Files): Likewise.
5228 * modules/symlink-tests (Files): Likewise.
5229 * modules/symlinkat-tests (Files): Likewise.
5230 * modules/trunc-tests (Files): Likewise.
5231 * modules/truncf-tests (Files): Likewise.
5232 * modules/truncl-tests (Files): Likewise.
5233 * modules/uname-tests (Files): Likewise.
5234 * modules/unicase/cased-tests (Files): Likewise.
5235 * modules/unicase/ignorable-tests (Files): Likewise.
5236 * modules/unicase/locale-language-tests (Files): Likewise.
5237 * modules/unicase/tolower-tests (Files): Likewise.
5238 * modules/unicase/totitle-tests (Files): Likewise.
5239 * modules/unicase/toupper-tests (Files): Likewise.
5240 * modules/unicase/u8-casecmp-tests (Files): Likewise.
5241 * modules/unicase/u8-casecoll-tests (Files): Likewise.
5242 * modules/unicase/u8-casefold-tests (Files): Likewise.
5243 * modules/unicase/u8-is-cased-tests (Files): Likewise.
5244 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5245 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5246 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5247 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5248 * modules/unicase/u8-tolower-tests (Files): Likewise.
5249 * modules/unicase/u8-totitle-tests (Files): Likewise.
5250 * modules/unicase/u8-toupper-tests (Files): Likewise.
5251 * modules/unicase/u16-casecmp-tests (Files): Likewise.
5252 * modules/unicase/u16-casecoll-tests (Files): Likewise.
5253 * modules/unicase/u16-casefold-tests (Files): Likewise.
5254 * modules/unicase/u16-is-cased-tests (Files): Likewise.
5255 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5256 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5257 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5258 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5259 * modules/unicase/u16-tolower-tests (Files): Likewise.
5260 * modules/unicase/u16-totitle-tests (Files): Likewise.
5261 * modules/unicase/u16-toupper-tests (Files): Likewise.
5262 * modules/unicase/u32-casecmp-tests (Files): Likewise.
5263 * modules/unicase/u32-casecoll-tests (Files): Likewise.
5264 * modules/unicase/u32-casefold-tests (Files): Likewise.
5265 * modules/unicase/u32-is-cased-tests (Files): Likewise.
5266 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5267 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5268 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5269 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5270 * modules/unicase/u32-tolower-tests (Files): Likewise.
5271 * modules/unicase/u32-totitle-tests (Files): Likewise.
5272 * modules/unicase/u32-toupper-tests (Files): Likewise.
5273 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5274 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5275 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5276 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5277 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5278 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5279 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5280 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5281 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5282 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5283 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5284 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5285 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5286 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5287 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5288 * modules/unictype/bidicategory-name-tests (Files): Likewise.
5289 * modules/unictype/bidicategory-of-tests (Files): Likewise.
5290 * modules/unictype/bidicategory-test-tests (Files): Likewise.
5291 * modules/unictype/block-list-tests (Files): Likewise.
5292 * modules/unictype/block-of-tests (Files): Likewise.
5293 * modules/unictype/block-test-tests (Files): Likewise.
5294 * modules/unictype/category-C-tests (Files): Likewise.
5295 * modules/unictype/category-Cc-tests (Files): Likewise.
5296 * modules/unictype/category-Cf-tests (Files): Likewise.
5297 * modules/unictype/category-Cn-tests (Files): Likewise.
5298 * modules/unictype/category-Co-tests (Files): Likewise.
5299 * modules/unictype/category-Cs-tests (Files): Likewise.
5300 * modules/unictype/category-L-tests (Files): Likewise.
5301 * modules/unictype/category-Ll-tests (Files): Likewise.
5302 * modules/unictype/category-Lm-tests (Files): Likewise.
5303 * modules/unictype/category-Lo-tests (Files): Likewise.
5304 * modules/unictype/category-Lt-tests (Files): Likewise.
5305 * modules/unictype/category-Lu-tests (Files): Likewise.
5306 * modules/unictype/category-M-tests (Files): Likewise.
5307 * modules/unictype/category-Mc-tests (Files): Likewise.
5308 * modules/unictype/category-Me-tests (Files): Likewise.
5309 * modules/unictype/category-Mn-tests (Files): Likewise.
5310 * modules/unictype/category-N-tests (Files): Likewise.
5311 * modules/unictype/category-Nd-tests (Files): Likewise.
5312 * modules/unictype/category-Nl-tests (Files): Likewise.
5313 * modules/unictype/category-No-tests (Files): Likewise.
5314 * modules/unictype/category-P-tests (Files): Likewise.
5315 * modules/unictype/category-Pc-tests (Files): Likewise.
5316 * modules/unictype/category-Pd-tests (Files): Likewise.
5317 * modules/unictype/category-Pe-tests (Files): Likewise.
5318 * modules/unictype/category-Pf-tests (Files): Likewise.
5319 * modules/unictype/category-Pi-tests (Files): Likewise.
5320 * modules/unictype/category-Po-tests (Files): Likewise.
5321 * modules/unictype/category-Ps-tests (Files): Likewise.
5322 * modules/unictype/category-S-tests (Files): Likewise.
5323 * modules/unictype/category-Sc-tests (Files): Likewise.
5324 * modules/unictype/category-Sk-tests (Files): Likewise.
5325 * modules/unictype/category-Sm-tests (Files): Likewise.
5326 * modules/unictype/category-So-tests (Files): Likewise.
5327 * modules/unictype/category-Z-tests (Files): Likewise.
5328 * modules/unictype/category-Zl-tests (Files): Likewise.
5329 * modules/unictype/category-Zp-tests (Files): Likewise.
5330 * modules/unictype/category-Zs-tests (Files): Likewise.
5331 * modules/unictype/category-and-not-tests (Files): Likewise.
5332 * modules/unictype/category-and-tests (Files): Likewise.
5333 * modules/unictype/category-byname-tests (Files): Likewise.
5334 * modules/unictype/category-name-tests (Files): Likewise.
5335 * modules/unictype/category-none-tests (Files): Likewise.
5336 * modules/unictype/category-of-tests (Files): Likewise.
5337 * modules/unictype/category-or-tests (Files): Likewise.
5338 * modules/unictype/category-test-withtable-tests (Files): Likewise.
5339 * modules/unictype/combining-class-tests (Files): Likewise.
5340 * modules/unictype/ctype-alnum-tests (Files): Likewise.
5341 * modules/unictype/ctype-alpha-tests (Files): Likewise.
5342 * modules/unictype/ctype-blank-tests (Files): Likewise.
5343 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5344 * modules/unictype/ctype-digit-tests (Files): Likewise.
5345 * modules/unictype/ctype-graph-tests (Files): Likewise.
5346 * modules/unictype/ctype-lower-tests (Files): Likewise.
5347 * modules/unictype/ctype-print-tests (Files): Likewise.
5348 * modules/unictype/ctype-punct-tests (Files): Likewise.
5349 * modules/unictype/ctype-space-tests (Files): Likewise.
5350 * modules/unictype/ctype-upper-tests (Files): Likewise.
5351 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5352 * modules/unictype/decimal-digit-tests (Files): Likewise.
5353 * modules/unictype/digit-tests (Files): Likewise.
5354 * modules/unictype/mirror-tests (Files): Likewise.
5355 * modules/unictype/numeric-tests (Files): Likewise.
5356 * modules/unictype/property-alphabetic-tests (Files): Likewise.
5357 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5358 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5359 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5361 * modules/unictype/property-bidi-block-separator-tests (Files):
5363 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5365 * modules/unictype/property-bidi-common-separator-tests (Files):
5367 * modules/unictype/property-bidi-control-tests (Files): Likewise.
5368 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5370 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5372 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5374 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5375 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5377 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5378 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5380 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5381 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5382 * modules/unictype/property-bidi-segment-separator-tests (Files):
5384 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5385 * modules/unictype/property-byname-tests (Files): Likewise.
5386 * modules/unictype/property-combining-tests (Files): Likewise.
5387 * modules/unictype/property-composite-tests (Files): Likewise.
5388 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5389 * modules/unictype/property-dash-tests (Files): Likewise.
5390 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5391 * modules/unictype/property-default-ignorable-code-point-tests (Files):
5393 * modules/unictype/property-deprecated-tests (Files): Likewise.
5394 * modules/unictype/property-diacritic-tests (Files): Likewise.
5395 * modules/unictype/property-extender-tests (Files): Likewise.
5396 * modules/unictype/property-format-control-tests (Files): Likewise.
5397 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5398 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5399 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5400 * modules/unictype/property-hex-digit-tests (Files): Likewise.
5401 * modules/unictype/property-hyphen-tests (Files): Likewise.
5402 * modules/unictype/property-id-continue-tests (Files): Likewise.
5403 * modules/unictype/property-id-start-tests (Files): Likewise.
5404 * modules/unictype/property-ideographic-tests (Files): Likewise.
5405 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5406 * modules/unictype/property-ids-trinary-operator-tests (Files):
5408 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5409 * modules/unictype/property-iso-control-tests (Files): Likewise.
5410 * modules/unictype/property-join-control-tests (Files): Likewise.
5411 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5412 * modules/unictype/property-line-separator-tests (Files): Likewise.
5413 * modules/unictype/property-logical-order-exception-tests (Files):
5415 * modules/unictype/property-lowercase-tests (Files): Likewise.
5416 * modules/unictype/property-math-tests (Files): Likewise.
5417 * modules/unictype/property-non-break-tests (Files): Likewise.
5418 * modules/unictype/property-not-a-character-tests (Files): Likewise.
5419 * modules/unictype/property-numeric-tests (Files): Likewise.
5420 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5421 * modules/unictype/property-other-default-ignorable-code-point-tests
5423 * modules/unictype/property-other-grapheme-extend-tests (Files):
5425 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5426 * modules/unictype/property-other-id-start-tests (Files): Likewise.
5427 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5428 * modules/unictype/property-other-math-tests (Files): Likewise.
5429 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5430 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5431 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5432 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5433 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5434 * modules/unictype/property-private-use-tests (Files): Likewise.
5435 * modules/unictype/property-punctuation-tests (Files): Likewise.
5436 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5437 * modules/unictype/property-radical-tests (Files): Likewise.
5438 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5439 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5440 * modules/unictype/property-space-tests (Files): Likewise.
5441 * modules/unictype/property-terminal-punctuation-tests (Files):
5443 * modules/unictype/property-test-tests (Files): Likewise.
5444 * modules/unictype/property-titlecase-tests (Files): Likewise.
5445 * modules/unictype/property-unassigned-code-value-tests (Files):
5447 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5448 * modules/unictype/property-uppercase-tests (Files): Likewise.
5449 * modules/unictype/property-variation-selector-tests (Files): Likewise.
5450 * modules/unictype/property-white-space-tests (Files): Likewise.
5451 * modules/unictype/property-xid-continue-tests (Files): Likewise.
5452 * modules/unictype/property-xid-start-tests (Files): Likewise.
5453 * modules/unictype/property-zero-width-tests (Files): Likewise.
5454 * modules/unictype/scripts-tests (Files): Likewise.
5455 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5456 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5457 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5458 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5459 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5460 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5461 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5462 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5463 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5464 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5465 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5466 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5467 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5468 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5469 * modules/uninorm/composition-tests (Files): Likewise.
5470 * modules/uninorm/decomposing-form-tests (Files): Likewise.
5471 * modules/uninorm/decomposition-tests (Files): Likewise.
5472 * modules/uninorm/filter-tests (Files): Likewise.
5473 * modules/uninorm/nfc-tests (Files): Likewise.
5474 * modules/uninorm/nfd-tests (Files): Likewise.
5475 * modules/uninorm/nfkc-tests (Files): Likewise.
5476 * modules/uninorm/nfkd-tests (Files): Likewise.
5477 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5478 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5479 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5480 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5481 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5482 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5483 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5484 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5485 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5486 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5487 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5488 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5489 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5490 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5491 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5492 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5493 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5494 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5495 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5496 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5497 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5498 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5499 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5500 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5501 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5502 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5503 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5504 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5505 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5506 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5507 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5508 * modules/uniwidth/u8-width-tests (Files): Likewise.
5509 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5510 * modules/uniwidth/u16-width-tests (Files): Likewise.
5511 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5512 * modules/uniwidth/u32-width-tests (Files): Likewise.
5513 * modules/uniwidth/width-tests (Files): Likewise.
5514 * modules/unlink-tests (Files): Likewise.
5515 * modules/unsetenv-tests (Files): Likewise.
5516 * modules/usleep-tests (Files): Likewise.
5517 * modules/utimens-tests (Files): Likewise.
5518 * modules/utimensat-tests (Files): Likewise.
5519 * modules/vasnprintf-posix-tests (Files): Likewise.
5520 * modules/vasnprintf-tests (Files): Likewise.
5521 * modules/vasprintf-posix-tests (Files): Likewise.
5522 * modules/vasprintf-tests (Files): Likewise.
5523 * modules/vdprintf-posix-tests (Files): Likewise.
5524 * modules/vfprintf-posix-tests (Files): Likewise.
5525 * modules/vprintf-posix-tests (Files): Likewise.
5526 * modules/vsnprintf-posix-tests (Files): Likewise.
5527 * modules/vsnprintf-tests (Files): Likewise.
5528 * modules/vsprintf-posix-tests (Files): Likewise.
5529 * modules/wcrtomb-tests (Files): Likewise.
5530 * modules/wcsnrtombs-tests (Files): Likewise.
5531 * modules/wcsrtombs-tests (Files): Likewise.
5532 * modules/wctype-tests (Files): Likewise.
5533 * modules/wcwidth-tests (Files): Likewise.
5534 * modules/xmemdup0-tests (Files): Likewise.
5535 * modules/xprintf-posix-tests (Files): Likewise.
5536 * modules/xvasprintf-tests (Files): Likewise.
5538 2009-12-24 Eric Blake <ebb9@byu.net>
5540 test-nanosleep: fix typo
5541 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5543 Reported by Bruno Haible.
5545 2009-12-24 Bruno Haible <bruno@clisp.org>
5547 Reduce namespace pollution on glibc systems.
5548 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5549 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5551 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5552 <getopt.h> on glibc systems.
5553 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5555 * lib/fcntl.c: Include <unistd.h> here instead.
5557 2009-12-24 Bruno Haible <bruno@clisp.org>
5559 * lib/stdlib.in.h (includes): Fix typo in today's commit.
5561 2009-12-24 Eric Blake <ebb9@byu.net>
5563 tests: add signature checks
5564 * tests/signature.h (SIGNATURE_CHECK): New file.
5565 * modules/atexit-tests (Files): Use it.
5566 * modules/btowc-tests (Files): Likewise.
5567 * modules/canonicalize-lgpl-tests (Files): Likewise.
5568 * modules/ceilf-tests (Files): Likewise.
5569 * modules/ceill-tests (Files): Likewise.
5570 * modules/chown-tests (Files): Likewise.
5571 * modules/dprintf-posix-tests (Files): Likewise.
5572 * modules/dup2-tests (Files): Likewise.
5573 * modules/dup3-tests (Files): Likewise.
5574 * modules/duplocale-tests (Files): Likewise.
5575 * modules/fchdir-tests (Files): Likewise.
5576 * modules/fcntl-tests (Files): Likewise.
5577 * modules/fdopendir-tests (Files): Likewise.
5578 * modules/fflush-tests (Files): Likewise.
5579 * modules/flock-tests (Files): Likewise.
5580 * modules/floorf-tests (Files): Likewise.
5581 * modules/floorl-tests (Files): Likewise.
5582 * modules/fnmatch-tests (Files): Likewise.
5583 * modules/fopen-tests (Files): Likewise.
5584 * modules/fprintf-posix-tests (Files): Likewise.
5585 * modules/freopen-tests (Files): Likewise.
5586 * modules/frexp-nolibm-tests (Files): Likewise.
5587 * modules/frexp-tests (Files): Likewise.
5588 * modules/frexpl-nolibm-tests (Files): Likewise.
5589 * modules/frexpl-tests (Files): Likewise.
5590 * modules/fseek-tests (Files): Likewise.
5591 * modules/fseeko-tests (Files): Likewise.
5592 * modules/fsync-tests (Files): Likewise.
5593 * modules/ftell-tests (Files): Likewise.
5594 * modules/ftello-tests (Files): Likewise.
5595 * modules/futimens-tests (Files): Likewise.
5596 * modules/getaddrinfo-tests (Files): Likewise.
5597 * modules/getcwd-tests (Files): Likewise.
5598 * modules/getdelim-tests (Files): Likewise.
5599 * modules/getdtablesize-tests (Files): Likewise.
5600 * modules/getgroups-tests (Files): Likewise.
5601 * modules/gethostname-tests (Files): Likewise.
5602 * modules/getline-tests (Files): Likewise.
5603 * modules/getopt-posix-tests (Files): Likewise.
5604 * modules/gettimeofday-tests (Files): Likewise.
5605 * modules/glob-tests (Files): Likewise.
5606 * modules/iconv-tests (Files): Likewise.
5607 * modules/inet_ntop-tests (Files): Likewise.
5608 * modules/inet_pton-tests (Files): Likewise.
5609 * modules/isblank-tests (Files): Likewise.
5610 * modules/lchown-tests (Files): Likewise.
5611 * modules/ldexpl-tests (Files): Likewise.
5612 * modules/link-tests (Files): Likewise.
5613 * modules/linkat-tests (Files): Likewise.
5614 * modules/lseek-tests (Files): Likewise.
5615 * modules/lstat-tests (Files): Likewise.
5616 * modules/mbrtowc-tests (Files): Likewise.
5617 * modules/mbsinit-tests (Files): Likewise.
5618 * modules/mbsnrtowcs-tests (Files): Likewise.
5619 * modules/mbsrtowcs-tests (Files): Likewise.
5620 * modules/memchr-tests (Files): Likewise.
5621 * modules/memcmp-tests (Files): Likewise.
5622 * modules/memmem-tests (Files): Likewise.
5623 * modules/memrchr-tests (Files): Likewise.
5624 * modules/mkdir-tests (Files): Likewise.
5625 * modules/mkfifo-tests (Files): Likewise.
5626 * modules/mkfifoat-tests (Files): Likewise.
5627 * modules/mknod-tests (Files): Likewise.
5628 * modules/nanosleep-tests (Files): Likewise.
5629 * modules/nl_langinfo-tests (Files): Likewise.
5630 * modules/obstack-printf-tests (Files): Likewise.
5631 * modules/open-tests (Files): Likewise.
5632 * modules/openat-tests (Files): Likewise.
5633 * modules/perror-tests (Files): Likewise.
5634 * modules/pipe2-tests (Files): Likewise.
5635 * modules/poll-tests (Files): Likewise.
5636 * modules/popen-tests (Files): Likewise.
5637 * modules/posix_spawn-tests (Files): Likewise.
5638 * modules/posix_spawnp-tests (Files): Likewise.
5639 * modules/pread-tests (Files): Likewise.
5640 * modules/printf-posix-tests (Files): Likewise.
5641 * modules/pty-tests (Files): Likewise.
5642 * modules/random_r-tests (Files): Likewise.
5643 * modules/rawmemchr-tests (Files): Likewise.
5644 * modules/readlink-tests (Files): Likewise.
5645 * modules/remove-tests (Files): Likewise.
5646 * modules/rename-tests (Files): Likewise.
5647 * modules/renameat-tests (Files): Likewise.
5648 * modules/rmdir-tests (Files): Likewise.
5649 * modules/round-tests (Files): Likewise.
5650 * modules/roundf-tests (Files): Likewise.
5651 * modules/roundl-tests (Files): Likewise.
5652 * modules/select-tests (Files): Likewise.
5653 * modules/setenv-tests (Files): Likewise.
5654 * modules/sigaction-tests (Files): Likewise.
5655 * modules/sleep-tests (Files): Likewise.
5656 * modules/snprintf-posix-tests (Files): Likewise.
5657 * modules/snprintf-tests (Files): Likewise.
5658 * modules/sprintf-posix-tests (Files): Likewise.
5659 * modules/stat-tests (Files): Likewise.
5660 * modules/strcasestr-tests (Files): Likewise.
5661 * modules/strchrnul-tests (Files): Likewise.
5662 * modules/strerror-tests (Files): Likewise.
5663 * modules/strsignal-tests (Files): Likewise.
5664 * modules/strstr-tests (Files): Likewise.
5665 * modules/strtod-tests (Files): Likewise.
5666 * modules/strverscmp-tests (Files): Likewise.
5667 * modules/symlink-tests (Files): Likewise.
5668 * modules/symlinkat-tests (Files): Likewise.
5669 * modules/times-tests (Files): Likewise.
5670 * modules/trunc-tests (Files): Likewise.
5671 * modules/truncf-tests (Files): Likewise.
5672 * modules/truncl-tests (Files): Likewise.
5673 * modules/tsearch-tests (Files): Likewise.
5674 * modules/uname-tests (Files): Likewise.
5675 * modules/unlink-tests (Files): Likewise.
5676 * modules/unsetenv-tests (Files): Likewise.
5677 * modules/usleep-tests (Files): Likewise.
5678 * modules/utimensat-tests (Files): Likewise.
5679 * modules/vasprintf-tests (Files): Likewise.
5680 * modules/vdprintf-posix-tests (Files): Likewise.
5681 * modules/vfprintf-posix-tests (Files): Likewise.
5682 * modules/vprintf-posix-tests (Files): Likewise.
5683 * modules/vsnprintf-posix-tests (Files): Likewise.
5684 * modules/vsnprintf-tests (Files): Likewise.
5685 * modules/vsprintf-posix-tests (Files): Likewise.
5686 * modules/wcrtomb-tests (Files): Likewise.
5687 * modules/wcsnrtombs-tests (Files): Likewise.
5688 * modules/wcsrtombs-tests (Files): Likewise.
5689 * modules/wcwidth-tests (Files): Likewise.
5690 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5691 * tests/test-isinf.c (isinf): Likewise.
5692 * tests/test-isnan.c (isnan): Likewise.
5693 * tests/test-signbit.c (signbit): Likewise.
5694 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5695 declaration, either as macro or with correct signature.
5696 (select): Ensure function under test is declared with correct
5697 signature in correct header.
5698 * tests/test-atexit.c (atexit): Likewise.
5699 * tests/test-btowc.c (btowc): Likewise.
5700 * tests/test-canonicalize-lgpl.c (realpath)
5701 (canonicalize_file_name): Likewise.
5702 * tests/test-ceilf1.c (ceilf): Likewise.
5703 * tests/test-ceill.c (ceill): Likewise.
5704 * tests/test-chown.c (chown): Likewise.
5705 * tests/test-dprintf-posix.c (dprintf): Likewise.
5706 * tests/test-dup2.c (dup2): Likewise.
5707 * tests/test-dup3.c (dup3): Likewise.
5708 * tests/test-duplocale.c (duplocale): Likewise.
5709 * tests/test-fchdir.c (fchdir): Likewise.
5710 * tests/test-fchownat.c (fchownat): Likewise.
5711 * tests/test-fcntl.c (fcntl): Likewise.
5712 * tests/test-fdopendir.c (fdopendir): Likewise.
5713 * tests/test-fflush.c (fflush): Likewise.
5714 * tests/test-flock.c (flock): Likewise.
5715 * tests/test-floorf1.c (floorf): Likewise.
5716 * tests/test-floorl.c (floorl): Likewise.
5717 * tests/test-fnmatch.c (fnmatch): Likewise.
5718 * tests/test-fopen.c (fopen): Likewise.
5719 * tests/test-fprintf-posix.c (fprintf): Likewise.
5720 * tests/test-freopen.c (freopen): Likewise.
5721 * tests/test-frexp.c (frexp): Likewise.
5722 * tests/test-frexpl.c (frexpl): Likewise.
5723 * tests/test-fseek.c (fseek): Likewise.
5724 * tests/test-fseeko.c (fseeko): Likewise.
5725 * tests/test-fstatat.c (fstatat): Likewise.
5726 * tests/test-fsync.c (fsync): Likewise.
5727 * tests/test-ftell.c (ftell): Likewise.
5728 * tests/test-ftello.c (ftello): Likewise.
5729 * tests/test-futimens.c (futimens): Likewise.
5730 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5731 (gai_strerror): Likewise.
5732 * tests/test-getcwd.c (getcwd): Likewise.
5733 * tests/test-getdelim.c (getdelim): Likewise.
5734 * tests/test-getdtablesize.c (getdtablesize): Likewise.
5735 * tests/test-getgroups.c (getgroups): Likewise.
5736 * tests/test-gethostname.c (gethostname): Likewise.
5737 * tests/test-getline.c (getline): Likewise.
5738 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5740 * tests/test-gettimeofday.c (gettimeofday): Likewise.
5741 * tests/test-glob.c (glob, globfree): Likewise.
5742 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5743 * tests/test-inet_ntop.c (inet_ntop): Likewise.
5744 * tests/test-inet_pton.c (inet_pton): Likewise.
5745 * tests/test-isblank.c (isblank): Likewise.
5746 * tests/test-lchown.c (lchown): Likewise.
5747 * tests/test-ldexpl.c (ldexpl): Likewise.
5748 * tests/test-link.c (link): Likewise.
5749 * tests/test-linkat.c (linkat): Likewise.
5750 * tests/test-lseek.c (lseek): Likewise.
5751 * tests/test-lstat.c (lstat): Likewise.
5752 * tests/test-mbrtowc.c (mbrtowc): Likewise.
5753 * tests/test-mbsinit.c (mbsinit): Likewise.
5754 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5755 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5756 * tests/test-memchr.c (memchr): Likewise.
5757 * tests/test-memcmp.c (memcmp): Likewise.
5758 * tests/test-memmem.c (memmem): Likewise.
5759 * tests/test-memrchr.c (memrchr): Likewise.
5760 * tests/test-mkdir.c (mkdir): Likewise.
5761 * tests/test-mkdirat.c (mkdirat): Likewise.
5762 * tests/test-mkfifo.c (mkfifo): Likewise.
5763 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5764 * tests/test-mknod.c (mknod): Likewise.
5765 * tests/test-nanosleep.c (nanosleep): Likewise.
5766 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5767 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5769 * tests/test-open.c (open): Likewise.
5770 * tests/test-openat.c (openat): Likewise.
5771 * tests/test-perror.c (perror): Likewise.
5772 * tests/test-pipe2.c (pipe2): Likewise.
5773 * tests/test-poll.c (poll): Likewise.
5774 * tests/test-popen.c (popen, pclose): Likewise.
5775 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5776 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5777 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5778 (posix_spawn_file_actions_destroy)
5779 (posix_spawn_file_actions_addclose)
5780 (posix_spawn_file_actions_addopen)
5781 (posix_spawn_file_actions_adddup2): Likewise.
5782 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5783 * tests/test-pread.c (pread): Likewise.
5784 * tests/test-printf-posix.c (printf): Likewise.
5785 * tests/test-pty.c (openpty, forkpty): Likewise.
5786 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5787 (random_r): Likewise.
5788 * tests/test-rawmemchr.c (rawmemchr): Likewise.
5789 * tests/test-readlink.c (readlink): Likewise.
5790 * tests/test-remove.c (remove): Likewise.
5791 * tests/test-rename.c (rename): Likewise.
5792 * tests/test-renameat.c (renameat): Likewise.
5793 * tests/test-rmdir.c (rmdir): Likewise.
5794 * tests/test-round1.c (round): Likewise.
5795 * tests/test-roundf1.c (roundf): Likewise.
5796 * tests/test-roundl.c (roundl): Likewise.
5797 * tests/test-setenv.c (setenv): Likewise.
5798 * tests/test-sigaction.c (sigaction): Likewise.
5799 * tests/test-sleep.c (sleep): Likewise.
5800 * tests/test-snprintf.c (snprintf): Likewise.
5801 * tests/test-sprintf-posix.c (sprintf): Likewise.
5802 * tests/test-stat.c (stat): Likewise.
5803 * tests/test-stpncpy.c (stpncpy): Likewise.
5804 * tests/test-strcasestr.c (strcasestr): Likewise.
5805 * tests/test-strchrnul.c (strchrnul): Likewise.
5806 * tests/test-strerror.c (strerror): Likewise.
5807 * tests/test-strsignal.c (strsignal): Likewise.
5808 * tests/test-strstr.c (strstr): Likewise.
5809 * tests/test-strtod.c (strtod): Likewise.
5810 * tests/test-strverscmp.c (strverscmp): Likewise.
5811 * tests/test-symlink.c (symlink): Likewise.
5812 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5813 * tests/test-times.c (times): Likewise.
5814 * tests/test-trunc1.c (trunc): Likewise.
5815 * tests/test-truncf1.c (truncf): Likewise.
5816 * tests/test-truncl.c (truncl): Likewise.
5817 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5819 * tests/test-uname.c (uname): Likewise.
5820 * tests/test-unlink.c (unlink): Likewise.
5821 * tests/test-unlinkat.c (unlinkat): Likewise.
5822 * tests/test-unsetenv.c (unsetenv): Likewise.
5823 * tests/test-usleep.c (usleep): Likewise.
5824 * tests/test-utimensat.c (utimensat): Likewise.
5825 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5826 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5827 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5828 * tests/test-vprintf-posix.c (vprintf): Likewise.
5829 * tests/test-vsnprintf.c (vsnprintf): Likewise.
5830 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5831 * tests/test-wcrtomb.c (wcrtomb): Likewise.
5832 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5833 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5834 * tests/test-wcwidth.c (wcwidth): Likewise.
5836 build: pull in conditional headers during GNULIB_POSIXCHECK
5837 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5838 definitions from any conditionally-included headers.
5839 * lib/stdlib.in.h (includes): Likewise.
5840 * lib/unistd.in.h (includes): Likewise.
5842 2009-12-24 Bruno Haible <bruno@clisp.org>
5844 * tests/test-argv-iter.c: Include header file being tested immediately
5846 * tests/test-base64.c: Likewise.
5847 * tests/test-flock.c: Likewise.
5848 * tests/test-fsync.c: Likewise.
5849 * tests/test-getdate.c: Likewise.
5850 * tests/test-getndelim2.c: Likewise.
5851 * tests/test-isfinite.c: Likewise.
5852 * tests/test-isinf.c: Likewise.
5853 * tests/test-strerror.c: Likewise.
5854 * tests/test-strsignal.c: Likewise.
5856 2009-12-23 Eric Blake <ebb9@byu.net>
5858 unistd: work around cygwin bug
5859 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5860 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5861 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5863 2009-12-23 Bruno Haible <bruno@clisp.org>
5865 localename: More tests.
5866 * tests/test-localename.c (SIZEOF): New macro.
5867 (categories): New variable.
5868 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5869 test_locale_name_default): Add test w.r.t. thread locale.
5870 (test_locale_name_thread): New function.
5873 localename: Make aware of thread locale.
5874 * lib/localename.h (gl_locale_name_thread): New declaration.
5875 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5876 behaviour with respect to thread locale.
5877 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5878 <langinfo.h>, glthread/lock.h.
5879 (SIZE_BITS): New macro.
5880 (string_hash): New function.
5881 (struct hash_node): New type.
5882 (HASH_TABLE_SIZE): New macro.
5883 (struniq_hash_table, struniq_lock): New variables.
5884 (struniq): New function.
5885 (gl_locale_name_thread): New function.
5886 (gl_locale_name): Invoke it.
5887 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5888 * modules/localename (Depends-on): Add lock.
5889 Reported by Mike Gran <spk121@yahoo.com>.
5891 2009-12-23 Eric Blake <ebb9@byu.net>
5894 * modules/va-args: New file.
5895 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5896 * MODULES.html.sh (Core language properties): Mention it.
5898 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5899 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5900 named alias for __attribute__((__unused__)).
5901 * lib/chown.c: Update client.
5902 * lib/fchmodat.c: Likewise.
5903 * lib/fts.c: Likewise.
5904 * lib/getdate.y: Likewise.
5905 * lib/getgroups.c: Likewise.
5906 * lib/getopt.c: Likewise.
5907 * lib/getugroups.c: Likewise.
5908 * lib/mkdir.c: Likewise.
5909 * lib/mkfifo.c: Likewise.
5910 * lib/mkfifoat.c: Likewise.
5911 * lib/mknod.c: Likewise.
5912 * lib/mknodat.c: Likewise.
5913 * lib/readlink.c: Likewise.
5914 * lib/se-context.in.h: Likewise.
5915 * lib/se-selinux.in.h: Likewise.
5916 * lib/sockets.c: Likewise.
5917 * lib/symlink.c: Likewise.
5918 * lib/symlinkat.c: Likewise.
5919 * lib/unicodeio.c: Likewise.
5920 * lib/unistr.h: Likewise.
5921 * tests/test-areadlink.c: Likewise.
5922 * tests/test-areadlinkat.c: Likewise.
5923 * tests/test-filenamecat.c: Likewise.
5924 * tests/test-fseeko.c: Likewise.
5925 * tests/test-ftello.c: Likewise.
5926 * tests/test-getdate.c: Likewise.
5927 * tests/test-getgroups.c: Likewise.
5928 * tests/test-gethostname.c: Likewise.
5929 * tests/test-quotearg.c: Likewise.
5930 * tests/test-version-etc.c: Likewise.
5931 * tests/test-xalloc-die.c: Likewise.
5932 * tests/test-xfprintf-posix.c: Likewise.
5933 * tests/test-xprintf-posix.c: Likewise.
5934 * tests/test-xvasprintf.c: Likewise.
5936 tests: avoid compiler warnings
5937 * tests/test-fcntl.c (main): Delete unused parameters.
5938 * tests/test-freopen-safer.c (main): Likewise.
5939 * tests/test-xalloc-die.c (main): Mark unused parameters.
5940 * tests/test-fseeko.c (main): Likewise.
5941 * tests/test-ftello.c (main): Likewise.
5942 * tests/test-nanosleep.c (main): Avoid declaration warning.
5943 * tests/test-sleep.c (main): Likewise.
5944 * tests/test-unsetenv.c (main): Silence warning about string
5946 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5948 2009-12-23 Bruno Haible <bruno@clisp.org>
5950 * tests/test-localename.c (test_locale_name): New function, extracted
5951 from main. Also test mixed situations.
5952 (test_locale_name_posix, test_locale_name_environ,
5953 test_locale_name_default): New functions.
5954 (main): Invoke them all.
5955 * modules/localename-tests (configure.ac): Test for newlocale.
5957 2009-12-23 Bruno Haible <bruno@clisp.org>
5959 unistd: Ensure getcwd gets declared before being overridden.
5960 * lib/unistd.in.h: Conditionally include <io.h>.
5962 2009-12-22 Bruno Haible <bruno@clisp.org>
5964 wchar: Diagnose broken combination of glibc and gcc versions and flags.
5965 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5966 (gl_WCHAR_H): Invoke it.
5967 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5968 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5969 Reported by Karl Berry <karl@freefriends.org>.
5971 2009-12-22 Eric Blake <ebb9@byu.net>
5973 math, unistd: avoid redundant includes
5974 * lib/math.in.h (isnan): No need to re-include <math.h>.
5975 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5977 getsubopt: work around cygwin bug
5978 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5979 avoid conflicting with system getsubopt.
5980 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5983 getopt: synchronize from glibc
5984 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5985 parameter order. Adjust all callers.
5986 (_getopt_internal_r, main): Adjust quoting in error messages.
5987 Drop considerations for outdated POSIX 1003.2 error message.
5988 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5990 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5992 test-getopt: test stderr behavior
5993 * modules/getopt-posix-tests (Depends-on): Add dup2.
5994 * tests/test-getopt.c (ASSERT): Avoid stderr.
5995 (main): Move stderr to a temporary file.
5996 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5997 Instead, add parameter to inform caller if output occurred.
5998 (test_getopt): Adjust all existing tests to expect silence, and
5999 add new tests of leading ":".
6000 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6001 glibc shortcomings with leading "-:" or "+:" in optstring.
6002 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6004 * doc/posix-functions/getopt.texi (getopt): Likewise.
6006 test-getopt: enhance test
6007 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6009 * tests/test-getopt.c (OPTIND_MIN): Move...
6010 * tests/test-getopt.h (OPTIND_MIN): ...here.
6011 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6012 Require that optind=0 works, since modern BSD supports it in
6013 addition to optreset, and since coreutils expects it.
6014 (test_getopt_long_only): New test.
6015 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6016 glibc shortcomings with 'W;', and enforcement of optind=0.
6017 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6020 2009-12-21 Bruno Haible <bruno@clisp.org>
6022 localename: Improvements for MacOS X and Cygwin.
6023 * lib/localename.h (gl_locale_name_environ): New declaration.
6024 * lib/localename.c (gl_locale_name_environ): New function, extracted from
6025 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6026 (gl_locale_name_posix): Invoke it.
6027 (gl_locale_name_default): Add comments. Use Windows native API also on
6030 2009-12-21 Bruno Haible <bruno@clisp.org>
6032 Update list of Win32 locale ids.
6033 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6034 (LANG_SAMI): Renamed from LANG_SAAMI.
6035 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6036 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6037 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6038 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6039 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6040 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6041 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6042 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6043 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6044 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6045 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6046 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6047 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6048 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6049 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6050 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6051 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6052 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6053 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6054 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6055 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6056 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6057 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6058 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6059 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6060 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6061 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6062 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6063 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6064 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6065 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6066 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6067 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6068 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6069 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6070 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6071 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6072 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6073 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6074 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6075 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6076 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6077 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6078 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6079 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6080 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6081 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6082 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6083 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6084 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6085 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6086 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6087 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6088 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6089 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6090 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6091 Add more languages and countries for Sami, Sorbian. Add more countries
6092 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6093 for Pashto. Change country for Syriac, Tswana.
6095 2009-12-21 Eric Blake <ebb9@byu.net>
6097 test-utimens: avoid spurious failure
6098 * tests/test-chown.h (nap): Factor...
6099 * tests/nap.h: ...into new file.
6100 * tests/test-lchown.h (nap): Avoid duplication.
6101 * tests/test-utimens-common.h (nap): Use shared implementation,
6102 necessary on file systems with 1-second resolution.
6103 * modules/chown-tests (Files): Include new file.
6104 * modules/fdutimensat-tests (Files): Likewise.
6105 * modules/futimens-tests (Files): Likewise.
6106 * modules/lchown-tests (Files): Likewise.
6107 * modules/openat-tests (Files): Likewise.
6108 * modules/utimens-tests (Files): Likewise.
6109 * modules/utimensat-tests (Files): Likewise.
6111 2009-12-19 Eric Blake <ebb9@byu.net>
6113 futimens, utimensat: work around Linux bug
6114 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6115 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6116 * lib/utimensat.c (rpl_utimensat): Work around it.
6117 * lib/futimens.c (rpl_futimens): Adjust comment.
6119 utimens: work around Linux ctime bug
6120 * lib/utimens.c (detect_ctime_bug): New helper function.
6121 (update_timespec): Differentiate between workaround needed for
6122 this bug vs. what is needed for systems that lack utimensat.
6123 (fdutimens, lutimens): Work around bug.
6125 utimens: check for ctime update
6126 * tests/test-utimens-common.h (check_ctime): Define.
6127 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6128 * tests/test-futimens.h (test_futimens): Likewise.
6129 * tests/test-lutimens.h (test_lutimens): Likewise.
6130 * doc/posix-functions/futimens.texi (futimens): Document the bug.
6131 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6133 2009-12-19 Bruno Haible <bruno@clisp.org>
6135 dprintf-posix: Check against memory leak fixed on 2009-12-15.
6136 * tests/test-dprintf-posix2.sh: New file.
6137 * tests/test-dprintf-posix2.c: New file.
6138 * modules/dprintf-posix-tests (Files): Add them.
6139 (configure.ac): Check for getrlimit and setrlimit.
6140 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6142 2009-12-19 Bruno Haible <bruno@clisp.org>
6144 fprintf-posix: Check against memory leak fixed on 2009-12-15.
6145 * tests/test-fprintf-posix3.sh: New file.
6146 * tests/test-fprintf-posix3.c: New file.
6147 * modules/fprintf-posix-tests (Files): Add them.
6148 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6150 2009-12-19 Eric Blake <ebb9@byu.net>
6152 dirfd: fix prototype
6153 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6154 * lib/dirfd.c (dirfd): Likewise.
6156 canonicalize: reduce memory usage
6157 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6159 Reported by Solar Designer <solar@openwall.com>.
6161 2009-12-19 Bruno Haible <bruno@clisp.org>
6163 New module attribute 'Applicability'.
6164 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6165 * gnulib-tool: New option --extract-applicability.
6166 (func_usage): Document it.
6167 (sed_extract_prog): Recognize it.
6168 (func_get_applicability): New function.
6169 (func_import): Generalize handling of 'link-warning' module.
6170 * modules/link-warning (Applicability): New section.
6171 * modules/arg-nonnull (Applicability): New section.
6172 Repoted by Simon Josefsson <simon@josefsson.org>.
6174 2009-12-19 Bruno Haible <bruno@clisp.org>
6177 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6178 * lib/fseeko.c (rpl_fseeko): Likewise.
6180 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
6182 * lib/gl_list.h: Fix typo in comment.
6184 2009-12-16 Eric Blake <ebb9@byu.net>
6186 fcntl: use to simplify other modules
6187 * modules/cloexec (Depends-on): Add fcntl.
6188 * modules/fchdir (Depends-on): Likewise.
6189 * modules/fd-safer-flag (Depends-on): Likewise.
6190 * modules/unistd-safer (Depends-on): Likewise.
6191 * modules/dup3 (configure.ac): Set module indicator.
6192 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6194 * lib/fchdir.c (_gl_register_dup): Fix comment.
6195 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6196 * lib/dup-safer.c (dup_safer): Likewise.
6197 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6198 * lib/dup3.c (dup3): Likewise.
6199 * tests/test-fchdir.c (main): Enhance test.
6200 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
6202 fcntl: port portions of fcntl to mingw
6203 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6204 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6205 replacement for mingw.
6206 * modules/fcntl (Description): Update.
6207 (Depends-on): Add dup2.
6208 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6209 * modules/fcntl-h (Makefile.am): Substitute it.
6210 * lib/fcntl.in.h (fcntl): Update declaration.
6211 (F_DUPFD, F_GETFD): New macros, when needed.
6212 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6213 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6214 * tests/test-fcntl.c (check_flags, main): Enhance test for items
6217 fcntl: work around cygwin bug in F_DUPFD
6218 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6219 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
6220 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6221 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6222 * doc/posix-functions/fcntl.texi (fcntl): Document it.
6224 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6225 * modules/fcntl (Files): List new files.
6226 (configure.ac): Run a test.
6227 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6228 * lib/fcntl.c (rpl_fcntl): Likewise.
6229 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6230 (gl_FCNTL_H): Always replace fcntl.h.
6231 * modules/fcntl-h (Makefile.am): Substitute witnesses.
6232 * lib/fcntl.in.h (fcntl): Declare replacement.
6233 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6234 needed, plus a witness.
6235 * doc/posix-functions/fcntl.texi (fcntl): Document this.
6236 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6237 * tests/test-fcntl.c: New file.
6238 * modules/fcntl-tests: Likewise.
6240 binary-io: avoid potential compilation warning
6241 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6244 fflush: avoid compilation error on NetBSD
6245 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6246 between off_t and fpos_t, since the latter is sometimes a struct.
6247 * lib/fseeko.c (rpl_fseeko): Likewise.
6248 Reported by Alexander Nasonov <alnsn@yandex.ru>.
6250 2009-12-15 Eric Blake <ebb9@byu.net>
6252 fcntl-h, stdio, sys_ioctl: fix declarations
6253 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6254 function must not take arguments.
6255 * lib/sys_ioctl.in.h (ioctl): Likewise.
6256 * lib/fcntl.in.h (openat): Likewise. Declare extern.
6257 (open): Add a link warning.
6259 2009-12-15 Jim Meyering <meyering@redhat.com>
6261 areadlink, areadlink-with-size: relax license to LGPLv2+
6262 * modules/areadlink (License): Relax to LGPLv2+.
6263 * modules/areadlink-with-size (License): Likewise.
6265 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
6266 Bruno Haible <bruno@clisp.org>
6268 *printf: Fix memory leak.
6269 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6270 * lib/vfprintf.c (vfprintf): Likewise.
6271 * lib/dprintf.c (dprintf): Likewise.
6272 * lib/vdprintf.c (vdprintf): Likewise.
6274 2009-12-14 Eric Blake <ebb9@byu.net>
6276 accept4: adjust module dependencies
6277 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6279 utimens: one more try at avoiding compiler warning
6280 * lib/utimens.c (lutimens): Lower scope of result.
6282 2009-12-13 Bruno Haible <bruno@clisp.org>
6284 Move the malloc checking from module 'list' to new module 'xlist'.
6285 * modules/xlist: New file.
6286 * lib/gl_xlist.h: New file.
6287 * lib/gl_xlist.c: New file.
6288 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6289 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6290 gl_list_add_last, gl_list_add_before, gl_list_add_after,
6291 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6292 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6293 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6294 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6295 gl_sortedlist_nx_add): New declarations.
6296 (struct gl_list_implementation): Rename and change methods accordingly.
6297 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6298 (gl_list_nx_create): Renamed from gl_list_create.
6299 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6300 (gl_list_nx_set_at): Renamed from gl_list_set_at.
6301 (gl_list_nx_add_first): Renamed from gl_list_add_first.
6302 (gl_list_nx_add_last): Renamed from gl_list_add_last.
6303 (gl_list_nx_add_before): Renamed from gl_list_add_before.
6304 (gl_list_nx_add_after): Renamed from gl_list_add_after.
6305 (gl_list_nx_add_at): Renamed from gl_list_add_at.
6306 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6307 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6308 gl_list_create_empty.
6309 (gl_list_nx_create): Renamed from gl_list_create.
6310 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6311 (gl_list_nx_set_at): Renamed from gl_list_set_at.
6312 (gl_list_nx_add_first): Renamed from gl_list_add_first.
6313 (gl_list_nx_add_last): Renamed from gl_list_add_last.
6314 (gl_list_nx_add_before): Renamed from gl_list_add_before.
6315 (gl_list_nx_add_after): Renamed from gl_list_add_after.
6316 (gl_list_nx_add_at): Renamed from gl_list_add_at.
6317 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6318 * lib/gl_array_list.c: Don't include xalloc.h.
6319 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6320 NULL upon out-of-memory.
6321 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6323 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6324 Change return type to 'int'.
6325 (gl_array_nx_set_at): Renamed from gl_array_set_at.
6326 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6327 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6329 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6331 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6333 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6335 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6337 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6339 (gl_array_list_implementation): Update.
6340 * lib/gl_carray_list.c: Don't include xalloc.h.
6341 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6342 Return NULL upon out-of-memory.
6343 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6345 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6346 Change return type to 'int'.
6347 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6348 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6349 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6351 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6353 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6355 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6356 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6357 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6359 (gl_carray_list_implementation): Update.
6360 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6361 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6362 gl_linked_create_empty. Return NULL upon out-of-memory.
6363 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6365 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6366 Change return type to 'int'. Return -1 upon out-of-memory.
6367 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6369 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6371 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6373 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6374 NULL upon out-of-memory.
6375 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6377 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6379 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6381 * lib/gl_linked_list.c: Don't include xalloc.h.
6382 (gl_linked_list_implementation): Update.
6383 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6384 (add_to_bucket): Change return type to 'int'.
6385 (gl_linkedhash_list_implementation): Update.
6386 * lib/gl_anytree_list1.h (free_subtree): New function.
6387 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6388 gl_tree_create_empty. Return NULL upon out-of-memory.
6389 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6390 Change return type to 'int'. Return -1 upon out-of-memory.
6391 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6393 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6394 (gl_tree_remove_node): New function, moved here from
6395 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6396 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6398 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6399 malloc, not xmalloc. Return NULL upon out-of-memory.
6400 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6402 (gl_tree_remove_node_from_tree): New function, extracted from
6403 gl_tree_remove_node.
6404 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6406 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6408 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6410 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6412 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6413 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6414 not xmalloc. Return NULL upon out-of-memory.
6415 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6417 (gl_tree_remove_node_from_tree): New function, extracted from
6418 gl_tree_remove_node.
6419 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6421 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6423 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6425 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6427 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6428 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6429 gl_anytree_list1.h before gl_anyavltree_list2.h.
6430 (gl_avltree_list_implementation): Update.
6431 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6432 gl_anytree_list1.h before gl_anyavltree_list2.h.
6433 (gl_rbtree_list_implementation): Update.
6434 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6435 Change return type to 'int'. Return -1 upon out-of-memory. Use
6437 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6438 (gl_avltreehash_list_implementation): Update.
6439 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6440 (gl_rbtreehash_list_implementation): Update.
6441 * modules/array-list (Depends-on): Remove xalloc.
6442 * modules/carray-list (Depends-on): Likewise.
6443 * modules/linked-list (Depends-on): Likewise.
6444 * modules/linkedhash-list (Depends-on): Likewise.
6445 * modules/avltree-list (Depends-on): Likewise.
6446 * modules/rbtree-list (Depends-on): Likewise.
6447 * modules/avltreehash-list (Depends-on): Likewise.
6448 * modules/rbtreehash-list (Depends-on): Likewise.
6450 * modules/xsublist: New file.
6451 * lib/gl_xsublist.h: New file.
6452 * lib/gl_xsublist.c: New file.
6453 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6454 (gl_sublist_nx_create): New declaration.
6455 * lib/gl_sublist.c: Don't include xalloc.h.
6456 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6457 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6458 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6459 Change return type to 'int'. Return -1 upon out-of-memory.
6460 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6462 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6463 NULL upon out-of-memory.
6464 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6466 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6467 NULL upon out-of-memory.
6468 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6469 NULL upon out-of-memory.
6470 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6472 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6473 (gl_sublist_list_implementation): Update.
6474 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6476 * modules/sublist (Depends-on): Remove xalloc.
6478 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6479 * tests/test-carray_list.c: Likewise.
6480 * tests/test-linked_list.c: Likewise.
6481 * tests/test-linkedhash_list.c: Likewise.
6482 * tests/test-avltree_list.c: Likewise.
6483 * tests/test-rbtree_list.c: Likewise.
6484 * tests/test-avltreehash_list.c: Likewise.
6485 * tests/test-rbtreehash_list.c: Likewise.
6486 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6487 * modules/carray-list-tests (Makefile.am): Likewise.
6488 * modules/linked-list-tests (Makefile.am): Likewise.
6489 * modules/linkedhash-list-tests (Makefile.am): Likewise.
6490 * modules/avltree-list-tests (Makefile.am): Likewise.
6491 * modules/rbtree-list-tests (Makefile.am): Likewise.
6492 * modules/avltreehash-list-tests (Makefile.am): Likewise.
6493 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6495 * NEWS: Mention the changes.
6497 * lib/clean-temp.c: Include gl_xlist.h.
6498 * modules/clean-temp (Depends-on): Add xlist.
6500 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6501 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6503 * tests/test-array_oset.c: Include gl_xlist.h.
6504 * modules/array-oset-tests (Depends-on): Add xlist.
6506 Reported by José E. Marchesi <jemarch@gnu.org>.
6508 2009-12-13 Bruno Haible <bruno@clisp.org>
6510 Move the malloc checking from module 'oset' to new module 'xoset'.
6511 * modules/xoset: New file.
6512 * lib/gl_xoset.h: New file.
6513 * lib/gl_xoset.c: New file.
6514 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6516 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6517 (struct gl_oset_implementation): Rename and change methods accordingly.
6518 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6519 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6520 'int'. Mark as __warn_unused_result__.
6521 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6522 gl_oset_create_empty.
6523 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6525 * lib/gl_array_oset.c: Don't include xalloc.h.
6526 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6527 malloc, not xmalloc.
6528 (grow): Change return type to 'int'. Don't call xalloc_die.
6529 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6531 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6533 (gl_array_oset_implementation): Update.
6534 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6535 gl_tree_create_empty.
6536 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6538 * lib/gl_avltree_oset.c: Don't include xalloc.h.
6539 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6541 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6543 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6545 (gl_avltree_oset_implementation): Update.
6546 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6547 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6549 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6551 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6553 (gl_rbtree_oset_implementation): Update.
6554 * modules/array-oset (Depends-on): Remove xalloc.
6555 * modules/avltree-oset (Depends-on): Likewise.
6556 * modules/rbtree-oset (Depends-on): Likewise.
6557 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6558 * tests/test-avltree_oset.c: Likewise.
6559 * tests/test-rbtree_oset.c: Likewise.
6560 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6561 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6562 * modules/rbtree-oset-tests (Makefile.am): Likewise.
6563 * NEWS: Mention the change.
6565 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
6567 maint.mk: allow a project to override release-prep commands
6568 * top/maint.mk (alpha, beta, stable): Move release-preparatory
6569 commands into a new rule.
6570 (release-prep): New rule.
6571 (release-prep-hook): New overridable variable.
6573 2009-12-13 Bruno Haible <bruno@clisp.org>
6575 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6577 2009-12-13 Jim Meyering <meyering@redhat.com>
6579 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6580 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6582 2009-12-12 Bruno Haible <bruno@clisp.org>
6585 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6587 2009-12-12 Karl Berry <karl@gnu.org>
6589 * config/srclist.txt (strtoll.c): tab changes, no more sync.
6591 2009-12-12 Bruno Haible <bruno@clisp.org>
6593 * m4/po.m4: Undo incorrect untabification.
6595 2009-12-12 Bruno Haible <bruno@clisp.org>
6597 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6598 * modules/c-strtod (Depends-on): Add locale.
6599 * modules/c-strtold (Depends-on): Likewise.
6601 2009-12-12 Bruno Haible <bruno@clisp.org>
6603 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6605 2009-12-11 Eric Blake <ebb9@byu.net>
6607 setenv: relax requirement in light of POSIX ruling
6608 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6610 * tests/test-setenv.c (main): Relax test.
6611 * tests/test-unsetenv.c (main): Likewise.
6612 * doc/posix-functions/setenv.texi (setenv): Document this.
6613 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6615 2009-12-11 Bruno Haible <bruno@clisp.org>
6617 New module 'fd-safer-flag'.
6618 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6619 * lib/dup-safer.c (dup_safer_flag): Remove function.
6620 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6621 * lib/fd-safer.c (fd_safer_flag): Remove function.
6622 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6623 * modules/cloexec (configure.ac): Drop indicator macro.
6624 * modules/fd-safer-flag: New file.
6625 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6626 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6627 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6629 2009-12-11 Bruno Haible <bruno@clisp.org>
6631 Tests for module 'nl_langinfo'.
6632 * modules/nl_langinfo-tests: New file.
6633 * tests/test-nl_langinfo.sh: New file.
6634 * tests/test-nl_langinfo.c: New file.
6636 New module 'nl_langinfo'.
6637 * lib/nl_langinfo.c: New file.
6638 * m4/nl_langinfo.m4: New file.
6639 * modules/nl_langinfo: New file.
6640 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6642 2009-12-11 Bruno Haible <bruno@clisp.org>
6644 Tests for module 'langinfo'.
6645 * modules/langinfo-tests: New file.
6646 * tests/test-langinfo.c: New file.
6648 New module 'langinfo'.
6649 * lib/langinfo.in.h: New file.
6650 * m4/langinfo_h.m4: New file.
6651 * modules/langinfo: New file.
6652 * doc/posix-headers/langinfo.texi: Mention the new module.
6654 2009-12-11 Bruno Haible <bruno@clisp.org>
6656 * lib/config.charset: Untabify.
6658 2009-12-11 Bruno Haible <bruno@clisp.org>
6660 * modules/unistd-safer (configure.ac): Drop indicator macro.
6662 2009-12-11 Bruno Haible <bruno@clisp.org>
6664 Move pipe2-safer code to its own file.
6665 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6666 * lib/pipe-safer.c (pipe2_safer): Remove function.
6667 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6668 (Makefile.am): Add it to lib_SOURCES.
6670 2009-12-10 Bruno Haible <bruno@clisp.org>
6672 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6674 2009-12-10 Bruno Haible <bruno@clisp.org>
6676 Declare which arguments expect non-NULL values, for GCC and clang.
6677 * build-aux/arg-nonnull.h: New file.
6678 * modules/arg-nonnull: New file.
6679 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6680 (inet_ntop, inet_pton): Use it.
6681 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6682 (closedir, dirfd, opendir, scandir, alphasort): Use it.
6683 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6684 (open, openat): Use it.
6685 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6687 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6688 (getopt, getopt_long, getopt_long_only): Use it.
6689 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6690 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6692 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6693 (iconv_open): Use it.
6694 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6695 (strtoimax, strtoumax): Use it.
6696 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6697 (duplocale): Use it.
6698 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6699 (frexp, frexpl): Use it.
6700 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6701 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6702 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6703 (tsearch, tfind, tdelete, twalk): Use it.
6704 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6705 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6706 sigpending): Use it.
6707 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6708 (posix_spawn, posix_spawnp, posix_spawnattr_init,
6709 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6710 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6711 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6712 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6713 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6714 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6715 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6716 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6717 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6719 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6720 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6721 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6722 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6723 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6724 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6725 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6726 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6727 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6728 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6729 strtoull, unsetenv): Use it.
6730 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6731 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6732 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6733 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6734 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6735 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6736 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6737 (strcasecmp, strncasecmp): Use it.
6738 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6739 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6740 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6741 rpl_setsockopt): Use it.
6742 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6743 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6744 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6745 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6746 (gettimeofday): Use it.
6747 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6749 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6751 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6752 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6753 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6754 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6755 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6756 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6757 unlinkat, write): Use it.
6758 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6759 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6760 * lib/argv-iter.h: Include arg-nonnull.h.
6761 (_ATTRIBUTE_NONNULL_): Remove macro.
6762 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6763 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6764 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6766 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6767 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6768 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6769 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6770 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6771 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6772 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6773 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6774 * modules/arpa_inet (Depends-on): Add arg-nonnull.
6775 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6776 * modules/dirent (Depends-on): Add arg-nonnull.
6777 (Makefile.am): Insert arg-nonnull.h into dirent.h.
6778 * modules/fcntl-h (Depends-on): Add arg-nonnull.
6779 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6780 * modules/fnmatch (Depends-on): Add arg-nonnull.
6781 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6782 * modules/getopt-posix (Depends-on): Add arg-nonnull.
6783 (Makefile.am): Insert arg-nonnull.h into getopt.h.
6784 * modules/glob (Depends-on): Add arg-nonnull.
6785 (Makefile.am): Insert arg-nonnull.h into glob.h.
6786 * modules/iconv_open (Depends-on): Add arg-nonnull.
6787 (Makefile.am): Insert arg-nonnull.h into iconv.h.
6788 * modules/inttypes (Depends-on): Add arg-nonnull.
6789 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6790 * modules/locale (Depends-on): Add arg-nonnull.
6791 (Makefile.am): Insert arg-nonnull.h into locale.h.
6792 * modules/math (Depends-on): Add arg-nonnull.
6793 (Makefile.am): Insert arg-nonnull.h into math.h.
6794 * modules/netdb (Depends-on): Add arg-nonnull.
6795 (Makefile.am): Insert arg-nonnull.h into netdb.h.
6796 * modules/search (Depends-on): Add arg-nonnull.
6797 (Makefile.am): Insert arg-nonnull.h into search.h.
6798 * modules/signal (Depends-on): Add arg-nonnull.
6799 (Makefile.am): Insert arg-nonnull.h into signal.h.
6800 * modules/spawn (Depends-on): Add arg-nonnull.
6801 (Makefile.am): Insert arg-nonnull.h into spawn.h.
6802 * modules/stdio (Depends-on): Add arg-nonnull.
6803 (Makefile.am): Insert arg-nonnull.h into stdio.h.
6804 * modules/stdlib (Depends-on): Add arg-nonnull.
6805 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6806 * modules/string (Depends-on): Add arg-nonnull.
6807 (Makefile.am): Insert arg-nonnull.h into string.h.
6808 * modules/strings (Depends-on): Add arg-nonnull.
6809 (Makefile.am): Insert arg-nonnull.h into strings.h.
6810 * modules/sys_socket (Depends-on): Add arg-nonnull.
6811 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6812 * modules/sys_stat (Depends-on): Add arg-nonnull.
6813 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6814 * modules/sys_time (Depends-on): Add arg-nonnull.
6815 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6816 * modules/sys_times (Depends-on): Add arg-nonnull.
6817 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6818 * modules/sys_utsname (Depends-on): Add arg-nonnull.
6819 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6820 * modules/time (Depends-on): Add arg-nonnull.
6821 (Makefile.am): Insert arg-nonnull.h into time.h.
6822 * modules/unistd (Depends-on): Add arg-nonnull.
6823 (Makefile.am): Insert arg-nonnull.h into unistd.h.
6824 * modules/wchar (Depends-on): Add arg-nonnull.
6825 (Makefile.am): Insert arg-nonnull.h into wchar.h.
6826 * modules/argv-iter (Depends-on): Add arg-nonnull.
6827 * tests/test-canonicalize.c (null_ptr): New function.
6829 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6831 * tests/test-memmem.c (null_ptr): New function.
6833 Reported by Jim Meyering.
6835 2009-12-10 Bruno Haible <bruno@clisp.org>
6837 Use spaces for indentation, not tabs.
6838 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6839 * m4/*.m4: Untabify.
6840 * build-aux/*.h: Untabify.
6841 * tests/**/*.[hc]: Untabify.
6842 * README: New section "Indent with spaces, not TABs", based on
6843 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6844 * NEWS: Mention the change.
6846 2009-12-10 Bruno Haible <bruno@clisp.org>
6848 pty test: Fix link error.
6849 * modules/pty-tests (Makefile.am): Add the default LDADD value to
6852 2009-12-07 Simon Josefsson <simon@josefsson.org>
6854 * modules/pty: New file.
6855 * modules/pty-tests: New file.
6856 * m4/pty.m4: New file.
6857 * tests/test-pty.c: New file.
6858 * doc/glibc-headers/pty.texi: Modified.
6859 * doc/glibc-functions/forkpty.texi: Modified.
6860 * doc/glibc-functions/openpty.texi: Modified.
6862 2009-12-10 Bruno Haible <bruno@clisp.org>
6864 Avoid syntax error in C++ mode.
6865 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6867 2009-12-10 Bruno Haible <bruno@clisp.org>
6869 Use sed with option -e.
6870 * gnulib-tool (func_version, func_emit_copyright_notice,
6871 func_emit_initmacro_end, func_import, func_create_testdir): Pass
6873 * modules/link-warning (Makefile.am): Likewise.
6875 2009-12-10 Jim Meyering <meyering@redhat.com>
6877 mgetgroups: do not write bytes beyond end of malloc'd buffer
6878 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
6879 username, we call getgroups with a one-element-shorter buffer,
6880 but still told it the length was original, max_n_groups.
6882 2009-12-09 Eric Blake <ebb9@byu.net>
6884 cloexec: relax license
6885 * modules/cloexec (Maintainer): Add myself.
6886 (License): Use LGPL, not GPL.
6888 link-warning: optimize generation
6889 * modules/link-warning (Makefile.am): Reduce process usage.
6891 2009-12-09 Bruno Haible <bruno@clisp.org>
6893 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6894 workaround was added on 2009-11-17.
6896 2009-12-09 Jim Meyering <meyering@redhat.com>
6897 Bruno Haible <bruno@clisp.org>
6899 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6900 * modules/link-warning (Makefile.am): Make the comment-removing sed
6901 command more robust in the face of bootstrap-prepended comment lines.
6903 2009-12-09 Bruno Haible <bruno@clisp.org>
6905 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6908 2009-12-09 Simon Josefsson <simon@josefsson.org>
6909 Bruno Haible <bruno@clisp.org>
6911 * build-aux/link-warning.h: Add copyright notice.
6912 * modules/link-warning (Makefile.am): Generate link-warning.h from
6913 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6914 * NEWS: Mention change in link-warning module.
6915 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6916 * modules/dirent (Makefile.am): Add dependency to dirent.h.
6917 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6918 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6919 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6920 * modules/math (Makefile.am): Add dependency to math.h.
6921 * modules/search (Makefile.am): Add dependency to search.h.
6922 * modules/signal (Makefile.am): Add dependency to signal.h.
6923 * modules/spawn (Makefile.am): Add dependency to spawn.h.
6924 * modules/stdio (Makefile.am): Add dependency to stdio.h.
6925 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6926 * modules/string (Makefile.am): Add dependency to string.h.
6927 * modules/strings (Makefile.am): Add dependency to strings.h.
6928 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6929 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6930 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6931 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6932 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6933 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6934 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6935 * modules/unistd (Makefile.am): Add dependency to unistd.h.
6936 * modules/wchar (Makefile.am): Add dependency to wchar.h.
6938 2009-12-09 Bruno Haible <bruno@clisp.org>
6940 fchdir: Optimize away rpl_fstat when possible.
6941 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6942 REPLACE_OPEN_DIRECTORY.
6943 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6945 2009-12-09 Bruno Haible <bruno@clisp.org>
6947 * lib/fchdir.c: Update comment.
6949 2009-12-09 Bruno Haible <bruno@clisp.org>
6951 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6953 2009-12-08 Eric Blake <ebb9@byu.net>
6955 fchdir: avoid memory leak on re-registration.
6956 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6958 2009-12-08 Jim Meyering <meyering@redhat.com>
6960 init.sh: avoid Solaris 10 /bin/sh portability problem
6961 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6963 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6964 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6966 tests/init.sh relied on that, accepting a --set-path=DIR argument,
6967 and two tests used that idiom.
6968 * tests/init.sh: Update suggested usage comments.
6969 (path_prepend_): New function, to be used in place
6970 of the --src-path=DIR option.
6971 (setup_): Move PATH-prepending code into path_prepend_.
6972 * tests/test-pread.sh: Adapt to new usage.
6973 * tests/test-xalloc-die.sh: Likewise.
6975 2009-12-08 Simon Josefsson <simon@josefsson.org>
6977 * doc/gnulib.texi (Glibc pty.h): Add.
6978 * doc/glibc-functions/forkpty.texi: Add.
6979 * doc/glibc-functions/openpty.texi: Add.
6980 Suggested by Bruno Haible.
6982 2009-12-08 Eric Blake <ebb9@byu.net>
6984 fchdir: fix logic bugs
6985 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6986 * tests/test-fchdir.c (main): Enhance test.
6987 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6990 dup2: fix logic bugs
6991 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
6992 REPLACE_DUP2 to decide when rpl_dup2 is needed.
6993 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6995 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6997 2009-12-07 Eric Blake <ebb9@byu.net>
6999 unlink: fix m4 detection
7000 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7002 unistd-safer: add unit test
7003 * modules/unistd-safer-tests: New file.
7004 * tests/test-dup-safer.c: Likewise.
7005 * tests/test-cloexec.c (setmode): Avoid compiler warning.
7006 * tests/test-dup2.c (setmode): Likewise.
7007 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7009 cloexec: preserve text vs. binary across dup_cloexec
7010 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7012 * modules/dup2-tests (Depends-on): Add binary-io.
7013 * modules/cloexec-tests (Depends-on): Likewise.
7014 * tests/test-dup2.c (setmode, is_mode): New helpers.
7015 (main): Add tests that translation mode is preserved.
7016 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7017 Reported by Bruno Haible.
7019 mgetgroups: reduce duplicate listings
7020 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7022 * tests/test-chown.h (test_chown): Simplify client.
7023 * tests/test-lchown.h (test_lchown): Likewise.
7025 2009-12-06 Bruno Haible <bruno@clisp.org>
7027 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7030 2009-12-06 Bruno Haible <bruno@clisp.org>
7032 * lib/progname.c: Include stdio.h, stdlib.h.
7033 (set_program_name): Reject a NULL argument.
7035 2009-12-05 Eric Blake <ebb9@byu.net>
7037 pipe2-safer: new module
7038 * modules/pipe2-safer: New file.
7039 * lib/unistd-safer.h (pipe2_safer): New prototype.
7040 * lib/unistd--.h (pipe2): New wrapper.
7041 * lib/pipe-safer.c (pipe2_safer): New function.
7042 * modules/pipe (Depends-on): Add pipe2-safer.
7043 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7045 stdlib-safer: preserve cloexec flag for mkostemp[s]
7046 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7049 unistd-safer: allow preservation of cloexec status via flag
7050 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7052 * lib/dup-safer.c (dup_safer_flag): New function.
7053 * lib/fd-safer.c (fd_safer_flag): Likewise.
7054 * modules/cloexec (configure.ac): Set witness.
7056 test-dup2: enhance test
7057 * modules/dup2-tests (Depends-on): Add cloexec.
7058 * tests/test-dup2.c (main): Enhance test.
7060 cloexec: add dup_cloexec
7061 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
7062 header and comments.
7063 * lib/cloexec.c (set_cloexec_flag): Add comments.
7064 (dup_cloexec): New function, with mingw implementation borrowed
7066 * lib/w32spawn.h (dup_noinherit): ...here.
7067 * modules/execute (Depends-on): Add cloexec.
7068 * modules/pipe (Depends-on): Likewise.
7069 * modules/cloexec (Depends-on): Add dup2.
7070 * modules/cloexec-tests (Files): New file.
7071 * tests/test-cloexec.c: Likewise.
7073 test-xalloc-die: fix test for mingw
7074 * modules/xalloc-die-tests (Files): Add tests/init.sh.
7075 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
7076 directory and .exe suffix off argv[0] output.
7078 test-fseeko: fix test for mingw
7079 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7080 than undefining fseek, so test will pass on mingw.
7082 2009-12-05 Bruno Haible <bruno@clisp.org>
7084 * lib/progname.h (set_program_name): Clarify specification.
7085 * lib/progname.c (set_program_name): Likewise.
7086 Reported by Jim Meyering.
7088 2009-12-05 Jim Meyering <meyering@redhat.com>
7090 maint.mk: backslash-escape parens in default regexp
7091 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7092 backslash-escape the literal parentheses.
7094 maint.mk: news-date-check: use grep -E
7095 * top/maint.mk (today): Define a Make variable, not a...
7096 (news-date-check): ...shell variable.
7097 (news-date-regexp): Use the Make variable.
7098 Use grep's -E option. Change the failing diagnostic to mention
7099 the variable, $(news-date-regexp).
7101 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
7103 maintainer-makefile: allow customization of NEWS entry format
7104 * top/maint.mk (news-date-regexp): New overridable variable.
7105 (news-date-check): Use it.
7107 2009-12-04 Eric Blake <ebb9@byu.net>
7109 mgetgroups: add xgetgroups, and avoid ENOSYS failures
7110 * lib/mgetgroups.h (xgetgroups): New prototype.
7111 * lib/mgetgroups.c (xgetgroups): New wrapper.
7112 (mgetgroups): Handle ENOSYS.
7113 * modules/mgetgroups (Depends-on): Add realloc.
7114 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7116 mgetgroups: avoid argument promotion issues with -1
7117 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7119 * tests/test-chown.h (getegid, test_chown): Likewise.
7120 * tests/test-lchown.h (getegid, test_lchown): Likewise.
7122 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
7124 exclude: Fix header file problems.
7125 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7127 2009-12-01 Jim Meyering <meyering@redhat.com>
7129 fts: fts_open: do not let an empty string cause immediate failure
7130 This is required in support of GNU rm, for which the command
7131 "rm A '' B" must process and remove both A and B, in spite of
7132 the empty string argument.
7133 * lib/fts.c (fts_open): Do not let the presence of an empty string
7134 cause fts_open to fail immediately. Most fts-using tools must be
7135 able to process all arguments, in order, and can be expected to
7136 diagnose such arguments themselves.
7138 2009-11-30 Eric Blake <ebb9@byu.net>
7140 utimens: fix compilation error
7141 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7142 Declare variable at right scope.
7144 2009-11-29 Jim Meyering <meyering@redhat.com>
7146 bootstrap: handle perl-5.11's changed --version output
7147 * build-aux/bootstrap (get_version): Handle perl separately,
7148 since perl-5.11's --version output is different.
7150 2009-11-28 Jim Meyering <meyering@redhat.com>
7152 userspec: depend on the inttostr module, too
7153 * modules/userspec (Depends-on): Add inttostr.
7155 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7156 * lib/userspec.c (parse_with_separator): Do not accept a user ID
7157 number of MAXUID when it evaluates to (uid_t) -1.
7158 Likewise for group ID. Reported by Matt McCutchen in
7159 <http://savannah.gnu.org/bugs/?28113>
7161 userspec: reformat to use spaces, not TABs
7162 * lib/userspec.c: Expand TABs to spaces.
7163 Add Emacs' "indent-tabs-mode: nil" hint.
7165 2009-11-27 Eric Blake <ebb9@byu.net>
7167 getopt-gnu: flush out another BSD bug
7168 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7169 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7171 * tests/test-getopt.h (test_getopt): End lists with NULL.
7172 * tests/test-getopt_long.h (test_getopt_long): Likewise.
7173 (test_getopt_long_posix): Enhance test.
7174 * modules/getopt-posix-tests (Depends-on): Add stdbool.
7175 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7177 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7180 2009-11-27 Simon Josefsson <simon@josefsson.org>
7182 * modules/idpriv-droptemp-tests (Notice): Fix text.
7184 2009-11-27 Jim Meyering <meyering@redhat.com>
7186 test-xalloc-die: avoid spurious failure due to libtool argv difference
7187 In a libtool-enabled project, this test would fail due to a difference
7188 in the emitted program name, e.g.,
7189 -test-xalloc-die: memory exhausted
7190 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7191 Use program to avoid that.
7192 * modules/xalloc-die-tests (Depends-on): Add progname.
7193 * tests/test-xalloc-die.c: Include progname.h".
7194 (program_name): Remove decl.
7195 (main): Call set_program_name.
7196 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7198 2009-11-26 Richard Jones <rjones@redhat.com>
7200 w32sock: leave win32 error in place.
7201 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7203 2009-11-26 Eric Blake <ebb9@byu.net>
7205 init.sh: suggest to use skip_ and fail_ functions in comments
7206 * tests/init.sh: Add a sentence.
7208 2009-11-25 Bruno Haible <bruno@clisp.org>
7210 init.sh: add documentation in comments
7211 * tests/init.sh: Add some developer and user documentation.
7213 2009-11-26 Jim Meyering <meyering@redhat.com>
7215 init.sh: accommodate even those who specify bogus srcdir manually
7216 * tests/init.sh: Normally, srcdir is guaranteed by automake and
7217 configure-time tests to be sanitized, so that there is no need to
7218 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
7219 (with no double quotes) suffices. However, since tests may be
7220 invoked manually, and since you may explicitly set srcdir to the
7221 name of a directory containing spaces, do quote its uses here.
7222 * tests/test-pread.sh: Likewise.
7223 Suggested by Bruno Haible.
7225 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7226 * tests/test-pread.sh: Write no data into the pipe, because
7227 test-pread actually reads none. This avoids a diagnostic,
7228 "bash: echo: write error: Broken pipe", that arises in the unusual
7229 event something is ignoring SIGPIPE, and might be interpreted
7230 as some sort of failure. Reported by Bruno Haible.
7232 2009-11-25 Jim Meyering <meyering@redhat.com>
7234 test-pread: cover failure with ESPIPE and EINVAL
7235 * tests/test-pread.c (main): Test for failure, too.
7236 * tests/test-pread.sh: Invoke with stdin on a pipe.
7237 Suggested by Eric Blake.
7239 pread: improvement and fix
7240 * modules/pread (Depends-on): Depend on lseek, for portability to
7241 e.g., mingw. Suggested by Eric Blake.
7242 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
7244 unistd.in.h: correct declaration of pread
7245 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7246 Reported by Richard W.M. Jones.
7248 test-pread.sh: distribute the test script
7249 * modules/pread-tests (Files): Include test-pread.sh.
7251 test-pread.sh: clean up
7252 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7253 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7254 That is unnecessary, since it's always ".".
7255 Suggestion from Eric Blake.
7257 test-pread.sh: make executable
7258 * tests/test-pread.sh: Set executable bit.
7259 Reported by Eric Blake.
7261 correct typo in test-pread.sh
7262 * tests/test-pread.sh: Add #! line.
7265 * tests/test-pread.c: New file.
7266 * tests/test-pread.sh: Likewise.
7267 * modules/pread-tests: Likewise.
7270 * modules/pread: New file.
7271 * lib/unistd.in.h (pread): Define/declare.
7272 * lib/pread.c (pread): New file.
7273 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7274 * modules/unistd (Makefile.am): Substitute witnesses.
7275 * doc/posix-functions/pread.texi (pread): Update.
7276 * MODULES.html.sh: Add pread.
7278 2009-11-25 Jim Meyering <meyering@redhat.com>
7280 tests/init.sh: new file to be used via most *.sh tests
7281 * tests/init.sh: New file.
7283 2009-11-25 Eric Blake <ebb9@byu.net>
7285 utimens: work around older Linux failure with symlinks
7286 * lib/utimens.c (lutimensat_works_really): New variable.
7287 (fdutimens, lutimens): Use it to manage kernels that support
7288 nanosecond times on files, but not on symlinks.
7289 Reported by OndÅ™ej VaÅ¡Ãk.
7291 utimes: fix configure grammar
7292 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7294 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
7296 regex: Fix fastmap for multibyte character ranges.
7297 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7298 characters when a multibyte character range is included.
7300 2009-11-22 Andy Wingo <wingo@pobox.com>
7302 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7303 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7305 2009-11-24 Bruno Haible <bruno@clisp.org>
7307 doc: Most *_l functions exist in MacOS X 10.5.
7308 * doc/posix-functions/duplocale.texi: Update platforms list.
7309 * doc/posix-functions/freelocale.texi: Likewise.
7310 * doc/posix-functions/newlocale.texi: Likewise.
7311 * doc/posix-functions/uselocale.texi: Likewise.
7312 * doc/posix-functions/isalnum_l.texi: Likewise.
7313 * doc/posix-functions/isalpha_l.texi: Likewise.
7314 * doc/posix-functions/isblank_l.texi: Likewise.
7315 * doc/posix-functions/iscntrl_l.texi: Likewise.
7316 * doc/posix-functions/isdigit_l.texi: Likewise.
7317 * doc/posix-functions/isgraph_l.texi: Likewise.
7318 * doc/posix-functions/islower_l.texi: Likewise.
7319 * doc/posix-functions/isprint_l.texi: Likewise.
7320 * doc/posix-functions/ispunct_l.texi: Likewise.
7321 * doc/posix-functions/isspace_l.texi: Likewise.
7322 * doc/posix-functions/isupper_l.texi: Likewise.
7323 * doc/posix-functions/iswalnum_l.texi: Likewise.
7324 * doc/posix-functions/iswalpha_l.texi: Likewise.
7325 * doc/posix-functions/iswblank_l.texi: Likewise.
7326 * doc/posix-functions/iswcntrl_l.texi: Likewise.
7327 * doc/posix-functions/iswctype_l.texi: Likewise.
7328 * doc/posix-functions/iswdigit_l.texi: Likewise.
7329 * doc/posix-functions/iswgraph_l.texi: Likewise.
7330 * doc/posix-functions/iswlower_l.texi: Likewise.
7331 * doc/posix-functions/iswprint_l.texi: Likewise.
7332 * doc/posix-functions/iswpunct_l.texi: Likewise.
7333 * doc/posix-functions/iswspace_l.texi: Likewise.
7334 * doc/posix-functions/iswupper_l.texi: Likewise.
7335 * doc/posix-functions/iswxdigit_l.texi: Likewise.
7336 * doc/posix-functions/isxdigit_l.texi: Likewise.
7337 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7338 * doc/posix-functions/strcasecmp_l.texi: Likewise.
7339 * doc/posix-functions/strcoll_l.texi: Likewise.
7340 * doc/posix-functions/strfmon_l.texi: Likewise.
7341 * doc/posix-functions/strftime_l.texi: Likewise.
7342 * doc/posix-functions/strncasecmp_l.texi: Likewise.
7343 * doc/posix-functions/strxfrm_l.texi: Likewise.
7344 * doc/posix-functions/tolower_l.texi: Likewise.
7345 * doc/posix-functions/toupper_l.texi: Likewise.
7346 * doc/posix-functions/towctrans_l.texi: Likewise.
7347 * doc/posix-functions/towlower_l.texi: Likewise.
7348 * doc/posix-functions/towupper_l.texi: Likewise.
7349 * doc/posix-functions/wcscoll_l.texi: Likewise.
7350 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7351 * doc/posix-functions/wctrans_l.texi: Likewise.
7352 * doc/posix-functions/wctype_l.texi: Likewise.
7353 * doc/glibc-functions/strptime_l.texi: Likewise.
7354 * doc/glibc-functions/strtod_l.texi: Likewise.
7355 * doc/glibc-functions/strtof_l.texi: Likewise.
7356 * doc/glibc-functions/strtol_l.texi: Likewise.
7357 * doc/glibc-functions/strtold_l.texi: Likewise.
7358 * doc/glibc-functions/strtoll_l.texi: Likewise.
7359 * doc/glibc-functions/strtoul_l.texi: Likewise.
7360 * doc/glibc-functions/strtoull_l.texi: Likewise.
7361 * doc/glibc-functions/wcsftime_l.texi: Likewise.
7362 * doc/glibc-functions/wcstod_l.texi: Likewise.
7363 * doc/glibc-functions/wcstof_l.texi: Likewise.
7364 * doc/glibc-functions/wcstol_l.texi: Likewise.
7365 * doc/glibc-functions/wcstold_l.texi: Likewise.
7366 * doc/glibc-functions/wcstoll_l.texi: Likewise.
7367 * doc/glibc-functions/wcstoul_l.texi: Likewise.
7368 * doc/glibc-functions/wcstoull_l.texi: Likewise.
7370 2009-11-24 Bruno Haible <bruno@clisp.org>
7372 duplocale: Fix logic bug.
7373 * lib/duplocale.c: Don't include <langinfo.h>.
7374 (_NL_LOCALE_NAME): Remove macro.
7375 (rpl_duplocale): Use setlocale instead of nl_langinfo.
7376 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7378 2009-11-23 Jim Meyering <meyering@redhat.com>
7380 test-update-copyright: don't hard-code /usr/bin/perl
7381 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7382 perl to print the current year. Gilles Espinasse reported that
7383 the replaced use of perl was hard-coded as /usr/bin/perl.
7385 2009-11-23 Bruno Haible <bruno@clisp.org>
7387 duplocale: Add support for glibc 2.3.x.
7388 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7390 2009-11-22 Bruno Haible <bruno@clisp.org>
7392 vasnprintf: Tiny optimization.
7393 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7396 2009-11-22 Bruno Haible <bruno@clisp.org>
7398 Tests for module 'duplocale'.
7399 * modules/duplocale-tests: New file.
7400 * tests/test-duplocale.c: New file.
7402 New module 'duplocale'.
7403 * m4/duplocale.m4: New file.
7404 * lib/locale.in.h (duplocale): New declaration.
7405 * lib/duplocale.c: New file.
7406 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7407 gl_LOCALE_H_DEFAULTS): New macros.
7408 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7409 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7410 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7412 * modules/duplocale: New file.
7413 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7415 2009-11-22 Bruno Haible <bruno@clisp.org>
7417 * modules/locale-tests (configure.ac): Test for newlocale function.
7418 * tests/test-locale.c: When the system has extended locale functions,
7419 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7421 locale: Make locale_t available when possible.
7422 * lib/locale.in.h: Include <xlocale.h> when it exists.
7423 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7424 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7425 * modules/locale (Depends-on): Add extensions.
7426 (Makefile.am): Also substitute HAVE_XLOCALE_H.
7427 * doc/posix-headers/locale.texi: Document the problem with locale_t.
7429 2009-11-22 Bruno Haible <bruno@clisp.org>
7432 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7434 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7435 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7436 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7438 2009-11-22 Bruno Haible <bruno@clisp.org>
7440 error: account for the possibility of freopen (stdout).
7441 * lib/error.c: Include <unistd.h>.
7442 (flush_stdout): New function, extracted from error and error_at_line.
7443 Determine stdout's fd dynamically.
7444 (error, error_at_line): Invoke flush_stdout.
7445 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7446 * modules/error (Depends-on): Add unistd.
7448 2009-11-22 Bruno Haible <bruno@clisp.org>
7450 diffseq: Add comment.
7451 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7453 2009-11-22 Jim Meyering <meyering@redhat.com>
7455 c-stack: avoid defining an unused static function
7456 * lib/c-stack.c (find_stack_direction): Do not define this function
7457 when it will not be used.
7459 diffseq: avoid spurious gcc warnings
7460 * lib/diffseq.h (IF_LINT2): Define.
7461 (compareseq): Use it to initialize two members of "part".
7462 This avoids two used-uninitialized warnings.
7464 2009-11-21 Jim Meyering <meyering@redhat.com>
7466 c-stack: avoid "ignoring return value of `write'" warning
7467 * lib/c-stack.c: Include "ignore-value.h".
7468 (die): Explicitly ignore each write return value.
7469 * modules/c-stack (Depends-on): Add ignore-value.
7471 2009-11-21 Bruno Haible <bruno@clisp.org>
7473 diffseq: reduce scope of variable 'best'.
7474 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7475 variable, earlier used for two different purposes.
7477 2009-11-21 Jim Meyering <meyering@redhat.com>
7479 diffseq: remove useless assignment to "best"
7480 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7481 assignment. At that point "best" is already guaranteed to be zero.
7483 2009-11-20 Eric Blake <ebb9@byu.net>
7485 build: mention ftp redirector in release announcements
7486 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7487 values that used to come from cfg.mk; mention FTP redirect URL.
7488 * build-aux/announce-gen: Mention the mirror list.
7489 Suggested by Karl Berry.
7491 nanosleep: improve port to mingw
7492 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7493 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7494 LIB_NANOSLEEP, but only when needed.
7495 * modules/select (Link): Document LIBSOCKET.
7496 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7499 nanosleep: work around cygwin bug
7500 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7501 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
7503 (getnow): Delete, not needed.
7504 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7506 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
7507 clock-time, gettime.
7508 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7510 * modules/nanosleep-tests: New test.
7511 * tests/test-nanosleep.c: New file.
7513 sleep: work around cygwin bug
7514 * lib/sleep.c (rpl_sleep): Work around the bug.
7515 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7516 (gl_PREREQ_SLEEP): Delete unused macro.
7517 * modules/sleep (Depends-on): Add verify.
7518 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7519 * modules/unistd (Makefile.am): Substitute witness.
7520 * lib/unistd.in.h (sleep): Update prototype.
7521 * doc/posix-functions/sleep.texi (sleep): Document the bug.
7522 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7523 * modules/sleep-tests (Depends-on): Check for alarm.
7525 2009-11-20 Jim Meyering <meyering@redhat.com>
7527 maint.mk: improve sc_prohibit_magic_number_exit
7528 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7529 so it does not match uses like System.exit(1).
7530 Add comments showing how to correct all offenders.
7532 2009-11-19 Eric Blake <ebb9@byu.net>
7534 xalloc-die-tests: add missing library
7535 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7537 test-xvasprintf: silence compiler warnings
7538 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7539 empty string from gcc.
7541 2009-11-19 Jim Meyering <meyering@redhat.com>
7543 xfreopen: new module, from coreutils
7544 * modules/xfreopen: New module.
7545 * lib/xfreopen.c: New file.
7546 * lib/xfreopen.h: New file.
7547 * MODULES.html.sh (File stream based Input/Output"): Add it.
7549 2009-11-19 Eric Blake <ebb9@byu.net>
7551 manywarnings: depend on warnings
7552 * modules/manywarnings (Depends-on): Add warnings.
7554 build: avoid compiler warnings
7555 * lib/select.c (rpl_select): Delete unused variable.
7556 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7558 2009-11-18 Eric Blake <ebb9@byu.net>
7560 tests: avoid false negative with --with-packager
7561 * tests/test-version-etc.sh: Discard packager information.
7562 * tests/test-argp-version-etc-1.sh: Likewise.
7563 Reported by Mike Frysinger.
7565 utimens: fix regression on Solaris
7566 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7567 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7568 can only change fd timestamps via futimesat. Instead, use an
7569 additional witness macro to avoid BSD bug.
7570 Reported by Jim Meyering.
7572 2009-11-17 Eric Blake <ebb9@byu.net>
7574 usleep: use it to simplify tests
7575 * modules/stat-time-tests (Depends-on): Add usleep.
7576 (configure.ac): Drop usleep check.
7577 * modules/chown-tests (Depends-on, configure.ac): Likewise.
7578 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7579 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7580 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7581 * modules/openat-tests (Depends-on, configure.ac): Likewise.
7582 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7583 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7584 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7586 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7587 * tests/test-lchown.h (nap): Likewise.
7588 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7589 * tests/test-stat-time.c (nap): Likewise.
7590 * tests/test-utimens-common.h (nap): Update comments.
7593 * modules/usleep: New file.
7594 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7595 * lib/usleep.c (usleep): Likewise.
7596 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7597 * modules/unistd (Makefile.am): Substitute witnesses.
7598 * lib/unistd.in.h (usleep): Add declaration.
7599 * doc/pastposix-functions/usleep.texi (usleep): Document this.
7600 * MODULES.html.sh (Date and time): Likewise.
7601 * modules/usleep-tests (Depends-on): New test.
7602 * tests/test-usleep.c: New file.
7604 chown: work around OpenBSD bug
7605 * lib/chown.c (rpl_chown): Work around the bug.
7606 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7607 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7608 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7609 * modules/chown (Depends-on): Add stdbool.
7610 * modules/lchown (Depends-on): Likewise.
7611 * doc/posix-functions/chown.texi (chown): Document the bug.
7612 * doc/posix-functions/lchown.texi (lchown): Likewise.
7613 * tests/test-lchown.h (test_chown): Relax test.
7615 mkstemp: avoid conflict with C++ keyword template
7616 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7617 * lib/mkostemp.c (mkostemp): Likewise.
7618 * lib/mkostemps.c (mkostemps): Likewise.
7619 * lib/mkstemp.c (mkstemp): Likewise.
7620 * lib/mkstemps.c (mkstemps): Likewise.
7622 xalloc-die-tests: optimize
7623 * tests/test-xalloc-die.sh: Reduce number of processes.
7625 2009-11-17 Simon Josefsson <simon@josefsson.org>
7627 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
7628 patch from ludo@gnu.org (Ludovic Courtès).
7630 2009-11-17 Jim Meyering <meyering@redhat.com>
7632 version-etc: use proper license string
7633 * modules/version-etc (License): Use LGPL, not LGPLv3+.
7634 * modules/version-etc-fsf: Likewise.
7636 2009-11-17 Simon Josefsson <simon@josefsson.org>
7638 * tests/test-xalloc-die.sh: Add license. Check that nothing is
7639 printed to stdout. Deal with EOL differences.
7641 2009-11-17 Eric Blake <ebb9@byu.net>
7643 unsetenv: work around Solaris bug
7644 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7645 * lib/unsetenv.c (rpl_unsetenv): Work around it.
7646 Reported by Jim Meyering.
7648 vasnprintf: avoid compiler warnings
7649 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7651 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7653 2009-11-17 Simon Josefsson <simon@josefsson.org>
7655 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7656 settings since xalloc-die is no longer the self test,
7659 2009-11-17 Jim Meyering <meyering@redhat.com>
7661 test-xalloc-die.sh: make the code agree with the commit log
7662 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7663 at the end, just in case you happen to have a test-xalloc-die
7664 program in some other PATH directory.
7666 test-xalloc-die.sh: fix a portability bug
7667 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7668 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7669 Otherwise, argv[0] (as often seen in diagnostics) would be too
7670 system-dependent, sometimes with, and sometimes without the leading "./".
7672 version-etc-fsf: relax license to LGPLv3+
7673 * modules/version-etc-fsf (License): Relax license.
7675 2009-11-16 Eric Blake <ebb9@byu.net>
7677 xalloc-die-tests: avoid printing null pointer
7678 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7680 * tests/test-xalloc-die.c (program_name): Declare.
7681 * tests/test-xalloc-die.sh (tmpfiles): New file.
7683 setenv, unsetenv: work around various bugs
7684 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7685 (setenv) [HAVE_SETENV]: Work around bugs.
7686 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7687 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7689 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7690 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7691 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7692 * modules/stdlib (Makefile.am): Update substitutions.
7693 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7694 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7695 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7696 * modules/setenv-tests: New test.
7697 * modules/unsetenv-tests: Likewise.
7698 * tests/test-setenv.c: New file.
7699 * tests/test-unsetenv.c: Likewise.
7701 2009-11-16 Jim Meyering <meyering@redhat.com>
7703 version-etc: relax license to LGPLv3+
7704 * modules/version-etc (License): Relax license.
7706 better AC_REQUIRE expanded-before-required-warning avoidance
7707 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7708 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7709 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
7710 which is no longer needed.
7712 2009-11-16 Eric Blake <ebb9@byu.net>
7714 test-freading: clean up temporary file
7715 * tests/test-freading.c (main): Remove file on success, and use
7716 ASSERT more liberally.
7717 Reported by Jim Meyering.
7719 2009-11-16 Jim Meyering <meyering@redhat.com>
7721 avoid new AC_REQUIRE expanded-before-required warnings
7722 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7724 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7725 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7727 2009-11-15 Simon Josefsson <simon@josefsson.org>
7729 * tests/test-xalloc-die.c: New file.
7730 * modules/xalloc-die-tests: New file.
7731 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7732 XFAIL_TESTS so it can be appended by modules.
7734 2009-11-15 Simon Josefsson <simon@josefsson.org>
7736 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
7737 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7739 2009-11-14 Eric Blake <ebb9@byu.net>
7741 fnmatch: avoid compiler warning
7742 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7743 to silence compiler warning about mismatch signedness in ?:.
7744 Reported by Robert Millan.
7746 intprops: add double-inclusion guard
7747 * lib/intprops.h: Allow idempotent includes.
7748 Suggested by Bruce Korb.
7750 openat: detect Solaris fchownat bug
7751 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
7752 penalizing glibc chownat when only lchownat is broken.
7753 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7754 trailing slash bugs.
7755 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7756 * modules/openat-tests (Files): Include more files.
7757 (Depends-on): Add mgetgroups, sleep, stat-time.
7758 (configure.ac): Add additional checks.
7759 (Makefile.am): Build new test.
7760 * tests/test-fchownat.c: New file.
7762 lchown: detect Solaris and FreeBSD bug
7763 * lib/lchown.c (rpl_lchown): Work around bug.
7764 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7765 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7766 * modules/unistd (Makefile.am): Populate it.
7767 * lib/unistd.in.h (lchown): Update declaration.
7768 * doc/posix-functions/lchown.texi (lchown): Document the bug.
7769 * modules/lchown-tests: New file.
7770 * tests/test-lchown.h (test_lchown): Likewise.
7771 * tests/test-lchown.c (main): Likewise.
7773 chown: detect Solaris and FreeBSD bug
7774 * lib/chown.c (rpl_chown): Work around bug.
7775 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7776 (gl_PREREQ_CHOWN): Delete.
7777 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7778 * modules/unistd (Makefile.am): Populate it.
7779 * lib/unistd.in.h (chown): Update declaration.
7780 * lib/lchown.c (chown): Update client.
7781 * modules/lchown (Depends-on): Add lstat.
7782 * doc/posix-functions/chown.texi (chown): Document the bug.
7783 * doc/posix-functions/getgroups.texi (getgroups): Document
7785 * modules/chown-tests: New file.
7786 * tests/test-chown.h (test_chown): Likewise.
7787 * tests/test-chown.c (main): Likewise.
7789 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
7791 gnulib-tool: correctly detect absence of m4 directories
7792 * gnulib-tool: Avoid extra newline on data passed to wc -l.
7794 2009-11-14 Jim Meyering <meyering@redhat.com>
7796 maint.mk: Prohibit inclusion of "xalloc.h" without use.
7797 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7799 2009-11-14 John W. Eaton <jwe@gnu.org>
7801 strftime.h: wrap funtion declaration in extern "C" block
7802 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7804 2009-11-13 Eric Blake <ebb9@byu.net>
7806 getgroups: avoid compiler warning
7807 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7809 getgroups: work around FreeBSD bug
7810 * lib/getgroups.c (rpl_getgroups): Work around the bug.
7811 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7812 * doc/posix-functions/getgroups.texi (getgroups): Document it.
7813 * tests/test-getgroups.c (main): Fix buffer overrun.
7815 getgroups: avoid compilation failure
7816 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7817 * modules/getgroups (Depends-on): Add stdint.
7819 2009-11-13 Jim Meyering <meyering@redhat.com>
7821 test-getgroups: avoid compilation failure
7822 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7824 2009-11-13 Eric Blake <ebb9@byu.net>
7826 mgetgroups: new module, taken from coreutils
7827 * modules/mgetgroups: New file.
7828 * lib/mgetgroups.h: Likewise.
7829 * lib/mgetgroups.c (mgetgroups): Likewise.
7830 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7831 * MODULES.html.sh (Users and groups): Mention it.
7833 getgroups: don't expose GETGROUPS_T to user
7834 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
7835 an element at a time if GETGROUPS_T is wrong size.
7836 * lib/getugroups.h (getugroups): Change signature.
7837 * lib/unistd.in.h (getgroups): Likewise.
7838 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7839 signature needs fixing.
7840 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7842 * modules/group-member (Depends-on): Add getgroups.
7843 * lib/group-member.c (group_info, get_group_info): Use gid_t.
7844 (group_member): Rely on getgroups replacement.
7845 * lib/getugroups.c (getugroups): Use gid_t.
7846 * tests/test-getgroups.c (main): Likewise.
7847 * NEWS: Mention the signature change.
7848 * doc/posix-functions/getgroups.texi (getgroups): Mention the
7849 problem with signature.
7850 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7851 GETGROUPS_T is still useful for setgroups.
7853 getgroups, getugroups: provide stubs for mingw
7854 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7855 * lib/getugroups.c (getugroups): Likewise.
7856 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7857 function. Modernize replacement scheme.
7858 (gl_PREREQ_GETGROUPS): Delete.
7859 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7860 * modules/getgroups (configure.ac): Declare witness.
7861 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7862 * modules/unistd (Depends-on): Substitute witness.
7863 * lib/unistd.in.h (getgroups): Declare replacement.
7865 getgroups: avoid calling exit
7866 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7868 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7870 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7871 exiting, in the rare case of malloc failure.
7873 getgroups: fix logic error
7874 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7875 has more than 20 groups.
7876 * modules/getgroups-tests: New test.
7877 * tests/test-getgroups.c: New file.
7879 2009-11-13 Simon Josefsson <simon@josefsson.org>
7881 * tests/test-base64.c: Improve.
7883 2009-11-13 Simon Josefsson <simon@josefsson.org>
7885 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7886 Blake <ebb9@byu.net>.
7888 2009-11-13 Simon Josefsson <simon@josefsson.org>
7890 * tests/test-xvasprintf.c: Add %s%s related checks.
7892 2009-11-12 Eric Blake <ebb9@byu.net>
7894 version-etc: match standards.texi style
7895 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7896 and use <> only for URLs.
7898 2009-11-10 Kamil Dudka <kdudka@redhat.com>
7900 fts: do not fail on a submount during traversal
7901 * lib/fts.c (fts_build): Read the stat info again after opening
7902 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7903 Original report at http://bugzilla.redhat.com/501848.
7905 2009-11-12 Jim Meyering <meyering@redhat.com>
7907 bootstrap: sync from coreutils
7908 * build-aux/bootstrap (bootstrap_epilogue): New function.
7909 Use git_modules_config in one more place. This make bootstrap's
7910 --gnulib-srcdir option more useful for testing.
7912 bootstrap: generalize autoheader check
7913 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7916 2009-11-11 Eric Blake <ebb9@byu.net>
7918 mkfifoat: use new modules for Solaris and BSD bugs
7919 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7920 * lib/mkfifoat.c (mknodat): Split...
7921 * lib/mknodat.c (mknodat): ...into new file.
7922 * modules/mkfifoat (Files): Ship new file.
7923 (Depends-on): Add mkfifo, mknod.
7924 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7925 (Depends-on): Add symlink.
7926 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
7927 redundant with test_mkfifo.h.
7928 (do_mkfifoat, do_mknodat): New helpers.
7931 * modules/mknod: New file.
7932 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7933 * lib/mknod.c (mknod): Likewise.
7934 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7936 * modules/sys_stat (Makefile.am): Substitute them.
7937 * lib/sys_stat.in.h (mknod): Declare replacement.
7938 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7940 * doc/posix-functions/mknod.texi (mknod): Likewise.
7941 * modules/mknod-tests: New test.
7942 * tests/test-mknod.c: Likewise.
7945 * modules/mkfifo: New file.
7946 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7947 * lib/mkfifo.c (mkfifo): Likewise.
7948 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7950 * modules/sys_stat (Makefile.am): Substitute them.
7951 * lib/sys_stat.in.h (mkfifo): Declare replacement.
7952 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7954 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7955 * modules/mkfifo-tests: New test.
7956 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7957 from test-mkfifoat.c.
7958 * tests/test-mkfifo.c: New file.
7960 readlink: detect FreeBSD bug
7961 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7963 * doc/posix-functions/readlink.texi (readlink): Document the bug.
7964 * tests/test-readlink.h (test_readlink): Enhance test.
7966 symlink: detect FreeBSD bug
7967 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7969 * doc/posix-functions/symlink.texi (symlink): Document the bug.
7970 * tests/test-symlink.h (test_symlink): Enhance test.
7972 2009-11-10 Eric Blake <ebb9@byu.net>
7974 link: detect FreeBSD bug
7975 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7977 * doc/posix-functions/link.texi (link): Document the bug.
7978 * tests/test-link.h (test_link): Enhance test.
7979 * tests/test-linkat.c (main): Update caller.
7981 unlink, remove: detect FreeBSD bug
7982 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7984 * doc/posix-functions/unlink.texi (unlink): Document the bug.
7985 * doc/posix-functions/remove.texi (remove): Likewise.
7986 * tests/test-unlink.h (test_unlink): Enhance test.
7987 * tests/test-remove.c (main): Likewise.
7989 2009-11-09 Eric Blake <ebb9@byu.net>
7991 rename: detect FreeBSD bug
7992 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7994 * modules/renameat-tests (Depends-on): Add filenamecat.
7995 * tests/test-rename.h (test_rename): Allow one more errno.
7996 * tests/test-renameat.c (main): Likewise.
7997 * doc/posix-functions/rename.texi (rename): Document the bug.
7999 open: detect FreeBSD bug
8000 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8002 * doc/posix-functions/open.texi (open): Document the bug.
8003 * doc/posix-functions/utimes.texi (utimes): Likewise.
8004 * tests/test-open.h (test_open): Add parameters, and test symlink
8006 * tests/test-open.c (main): Adjust caller.
8007 * tests/test-fcntl-safer.c (main): Likewise.
8008 * modules/open-tests (Depends-on): Add stdbool, symlink.
8009 * modules/fcntl-safer-tests (Depends-on): Likewise.
8010 * tests/test-openat.c (main): Add test-open tests.
8012 stat: detect FreeBSD bug
8013 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8015 * doc/posix-functions/stat.texi (stat): Document the bug.
8016 * tests/test-stat.h (test_stat_func): Add argument.
8017 * tests/test-stat.c (main): Adjust caller.
8018 * tests/test-fstatat.c (main): Likewise.
8019 * modules/stat-tests (Depends-on): Add stdbool, symlink.
8020 Reported by Jim Meyering.
8022 2009-11-09 James Youngman <jay@gnu.org>
8024 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8025 * lib/strftime.c: Correct placement of #include "ignore-value.h".
8027 2009-11-08 Jim Meyering <meyering@redhat.com>
8029 utimens: remove invalid futimesat call
8030 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8031 It used the file descriptor of the target file as the DIR_FD
8032 parameter and NULL as the file name. That caused failure with
8033 errno == EFAULT on FreeBSD-8.0-rc2
8035 2009-11-07 Eric Blake <ebb9@byu.net>
8037 fflush, freadseek: use fseeko, not fseek
8038 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8039 (clear_ungetc_buffer): Avoid potential problems on large files.
8040 * lib/freadseek.c (freadseek): Likewise.
8041 * modules/freadseek (Depends-on): Add fseeko.
8042 * modules/fseek (configure.ac): Set a witness.
8043 * tests/test-fflush.c (main): Use fseeko.
8044 * tests/test-fpurge.c (fseek): Disable link warning.
8045 * tests/test-freadable.c (fseek): Likewise.
8046 * tests/test-freading.c (fseek): Likewise.
8047 * tests/test-fseeko.c (fseek): Likewise.
8048 * tests/test-ftell.c (fseek): Likewise.
8049 * tests/test-ftello.c (fseek): Likewise.
8050 * tests/test-fwritable.c (fseek): Likewise.
8051 * tests/test-fwriting.c (fseek): Likewise.
8053 2009-11-06 Simon Josefsson <simon@josefsson.org>
8055 * modules/memchr (Depends-on): Drop getpagesize dependency.
8057 2009-11-06 Simon Josefsson <simon@josefsson.org>
8059 * build-aux/pmccabe2html: Disable execute bit. Suggested by
8060 Reported by Ludovic Courtès.
8061 * build-aux/pmccabe2html: Improve example usage.
8062 * build-aux/pmccabe2html: Drop #! header. Doc fix.
8064 2009-11-06 Jim Meyering <meyering@redhat.com>
8066 do-release-commit-and-tag: New module.
8067 Automate the release-commit and tag process.
8068 * build-aux/do-release-commit-and-tag: New script, from coreutils.
8069 * modules/do-release-commit-and-tag: New file.
8070 * MODULES.html.sh (Support for maintaining and releasing): Add it.
8072 2009-11-06 Simon Josefsson <simon@josefsson.org>
8074 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8075 because test-select.c uses inet_pton.
8077 2009-11-06 Simon Josefsson <simon@josefsson.org>
8079 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8080 GETADDRINFO_LIB. Bump serial number.
8081 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8082 Suggested by Eric Blake <ebb9@byu.net>.
8084 2009-11-05 Eric Blake <ebb9@byu.net>
8086 strtod: detect darwin bug
8087 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8088 Reported by Leo Davis.
8090 freopen-safer: new module
8091 * modules/freopen-safer: New module.
8092 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8093 * lib/freopen-safer.c (freopen_safer): New file.
8094 * lib/stdio-safer.h (freopen_safer): New declaration.
8095 * lib/stdio--.h (freopen): New override.
8096 * MODULES.html.sh (File stream based Input/Output): Mention it.
8097 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8098 freopen-safer module.
8099 * doc/posix-functions/stderr.texi (stderr): Likewise.
8100 * doc/posix-functions/stdin.texi (stdin): Likewise.
8101 * doc/posix-functions/stdout.texi (stdout): Likewise.
8102 * modules/freopen-safer-tests: New test.
8103 * tests/test-reopen-safer.c: New file.
8105 2009-11-05 Jim Meyering <meyering@redhat.com>
8107 maint.mk: Prohibit inclusion of "close-stream.h" without use.
8108 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8110 2009-11-05 Simon Josefsson <simon@josefsson.org>
8112 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8114 2009-11-05 Simon Josefsson <simon@josefsson.org>
8116 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8118 2009-11-05 Simon Josefsson <simon@josefsson.org>
8121 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8122 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8124 2009-11-05 Simon Josefsson <simon@josefsson.org>
8126 * tests/test-func.c: Also test value of __func__.
8128 2009-11-05 Simon Josefsson <simon@josefsson.org>
8130 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8131 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
8133 2009-11-05 Bruno Haible <bruno@clisp.org>
8136 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8137 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8138 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8140 2009-11-05 Bruno Haible <bruno@clisp.org>
8142 Tests for module 'inet_pton'.
8143 * modules/inet_pton-tests: New file.
8144 * tests/test-inet_pton.c: New file.
8146 2009-11-05 Bruno Haible <bruno@clisp.org>
8148 Tests for module 'inet_ntop'.
8149 * modules/inet_ntop-tests: New file.
8150 * tests/test-inet_ntop.c: New file.
8152 2009-11-04 Eric Blake <ebb9@byu.net>
8154 stdlib-safer: wrap all mkstemp variants
8155 * modules/mkostemp (configure.ac): Set witness.
8156 * modules/mkostemps (configure.ac): Likewise.
8157 * modules/mkstemps (configure.ac): Likewise.
8158 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8159 (mkstemps_safer): Wrap more functions.
8160 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8162 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8163 (mkstemps_safer): Implement the wrappers.
8165 mkstemps, mkostemps: new modules
8166 * modules/mkostemps: New module.
8167 * modules/mkstemps: Likewise.
8168 * lib/mkostemps.c (mkostemps): New file.
8169 * lib/mkstemps.c (mkstemps): Likewise.
8170 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8171 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8172 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8173 * modules/stdlib (Makefile.am): Substitute them.
8174 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8175 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8176 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8177 * doc/gnulib.texi (Glibc stdlib.h): Include them.
8178 * MODULES.html.sh (File system functions): Mention them.
8180 tempname: resync from glibc
8181 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
8182 same values for __GT_FILE as glibc. Abort even when assertions
8184 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8185 match its value otherwise. Allow idempotent inclusion.
8186 * lib/mkdtemp.c (mkdtemp): Adjust caller.
8187 * lib/mkostemp.c (mkostemp): Likewise.
8188 * lib/mkstemp.c (mkstemp): Likewise.
8189 * lib/tmpfile.c (tmpfile): Likewise.
8190 * NEWS: Document this.
8192 utimens: fix use of futimens on older Linux
8193 * lib/utimens.c (fdutimens): Use updated, rather than original,
8194 timespec to avoid bug in older Linux kernel.
8195 Reported by Simon Josefsson.
8197 2009-11-04 Bruno Haible <bruno@clisp.org>
8199 Make num_processors more flexible and consistent.
8200 * lib/nproc.h (enum nproc_query): New type.
8201 (num_processors): Add a 'query' argument.
8202 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8203 (num_processors): Add a 'query' argument. Test the value of the
8204 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8205 mingw, count the number of CPUs available for the current process.
8206 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8207 Check for sched_getaffinity and sched_getaffinity_np.
8208 * modules/nproc (Depends-on): Add c-ctype, extensions.
8209 * NEWS: Mention the change.
8211 2009-11-03 Bruno Haible <bruno@clisp.org>
8213 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8215 2009-11-03 Jim Meyering <meyering@redhat.com>
8217 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8218 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8221 2009-11-02 Eric Blake <ebb9@byu.net>
8223 mktime, timegm: share common declaration
8224 * lib/mktime-internal.h: New file.
8225 * lib/mktime.c: Use it rather than open-coding a declaration.
8226 * lib/timegm.c: Likewise.
8227 * modules/mktime (Files): Ship it.
8228 * modules/timegm (Files): Likewise.
8229 Suggested by Bruno Haible.
8231 test-update-copyright: update test to match script changes
8232 * tests/test-update-copyright.sh: Avoid hard-coding perl
8233 location. Don't update *.bak created by earlier runs.
8235 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
8236 Simon Josefsson <simon@josefsson.org>
8237 Bruno Haible <bruno@clisp.org>
8239 Fix link error on Solaris 8.
8240 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8241 also in libnsl. Define also INET_PTON_LIB.
8242 * modules/inet_pton (Link): New section.
8244 2009-11-02 Simon Josefsson <simon@josefsson.org>
8245 Bruno Haible <bruno@clisp.org>
8247 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8248 * modules/inet_ntop (Link): New section.
8249 Reported by Boyan Kasarov <bkasarov@gmail.com>.
8251 2009-11-02 Eric Blake <ebb9@byu.net>
8253 maint: avoid compiler warnings in m4 macros
8254 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8255 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8257 2009-11-02 Simon Josefsson <simon@josefsson.org>
8259 * m4/pmccabe2html.m4: Remove file.
8260 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
8261 function. Change maintainer.
8262 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8263 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
8266 2009-10-31 Eric Blake <ebb9@byu.net>
8268 fseeko: fix m4 regression
8269 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
8270 regression from 2009-10-27.
8271 Reported by Ralf Wildenhues.
8273 2009-10-31 Jim Meyering <meyering@redhat.com>
8275 inttostr: aesthetics and improved (compile-time) safety
8276 Define inttype_is_signed rather than inttype_is_unsigned,
8277 since the sole use is via "#if inttype_is_signed".
8278 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8279 inttype_is_unsigned.
8280 * lib/offtostr.c (inttype_is_signed): Likewise.
8281 * lib/uinttostr.c (inttype_is_signed): Likewise.
8282 * lib/umaxtostr.c (inttype_is_signed): Likewise.
8283 * lib/inttostr.c (inttostr): Use verify to cross-check the
8284 inttype_is_signed value and the signedness of the actual type.
8285 * modules/inttostr (Depends-on): Add verify.
8287 2009-10-30 Eric Blake <ebb9@byu.net>
8289 build: avoid compiler warnings
8290 * lib/fchmodat.c (lchmod): Mark unused variables.
8291 * lib/getopt.c (_getopt_initialize): Likewise.
8292 * lib/mktime.c (__mktime_internal): Provide prototype.
8293 * lib/inttostr.c (inttostr): Avoid compiler warning even with
8294 older gcc that do not understand #pragma GCC diagnostic.
8295 * lib/uinttostr.c (inttype_is_unsigned): Define.
8296 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8298 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8300 stat: fix compilation on AIX
8301 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8302 only see struct stat64.
8304 2009-10-30 Eric Blake <ebb9@byu.net>
8306 exclude: make more robust
8307 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8308 rather than masking a coding bug.
8309 Suggested by Bruno Haible.
8311 2009-10-30 Jim Meyering <meyering@redhat.com>
8313 perl scripts: remove #!/usr/bin/perl in favor of more portable...
8314 Rather than putting #!/usr/bin/perl on the first line,
8315 start with a variant of what's recommended by "man perlrun" that
8316 invokes the first "perl" program from your shell's search path.
8317 * build-aux/gitlog-to-changelog: Replace #!... as above.
8318 Add a "Local Variables" perl mode setting.
8319 Prompted by a patch from Ludovic Courtès.
8320 Improved by Eric Blake.
8321 * build-aux/useless-if-before-free: Likewise.
8322 * build-aux/announce-gen: Likewise.
8323 * build-aux/update-copyright: Likewise.
8325 2009-10-29 Eric Blake <ebb9@byu.net>
8327 filenamecat-lgpl: adjust clients
8328 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8330 * modules/renameat (Depends-on): Likewise.
8332 filenamecat: split into filenamecat-lgpl
8333 * modules/filenamecat-lgpl: New module.
8334 * modules/filenamecat (Files): Move library-safe files into
8336 (Depends-on): Add filenamecat-lgpl.
8337 (configure.ac): Declare witness.
8338 * lib/filenamecat.h (file_name_concat): Only declare when using
8340 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8342 * lib/filenamecat-lgpl.c: ...into new file.
8343 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8344 (gl_FILE_NAME_CONCAT): Use it.
8345 * MODULES.html.sh (File system functions): Mention new module.
8347 argp: avoid memory leak
8348 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8349 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8350 base_name, since the latter malloc()s and can call exit().
8351 Leak introduced 2006-07-03.
8353 dirname-lgpl: adjust clients that don't need full dirname
8354 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8355 * modules/filenamecat (Depends-on): Likewise.
8356 * modules/linkat (Depends-on): Likewise.
8357 * modules/mkancesdirs (Depends-on): Likewise.
8358 * modules/mkdir (Depends-on): Likewise.
8359 * modules/openat (Depends-on): Likewise.
8360 * modules/savewd (Depends-on): Likewise.
8361 * modules/rename (Depends-on): Likewise.
8362 (License): Relax license.
8363 * modules/mkdir-tests (Depends-on): Drop progname.
8364 (Makefile.am): Delete unneeded LDADD.
8365 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8367 dirname: split into dirname-lgpl
8368 * modules/dirname-lgpl: New module.
8369 * modules/dirname (Files): Move library-safe files into
8371 (Depends-on): Add dirname-lgpl.
8372 (configure.ac): Declare witness.
8373 * modules/double-slash-root (License): Relax license.
8374 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8376 * lib/dirname.c (dir_len, mdir_name): Move...
8377 * lib/dirname-lgpl.c: ...into new file.
8378 * lib/basename.c (last_component, base_len): Move...
8379 * lib/basename-lgpl.c: ...into new file.
8380 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8381 (gl_DIRNAME): Use it.
8382 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8384 * modules/dirname-tests (Depends-on): Add progname.
8385 * tests/test-dirname.c (program_name): Delete.
8387 mkdir: make safe for libraries
8388 * modules/mkdir (Depends-on): Drop xalloc.
8389 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8392 tests: avoid some compiler warnings
8393 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8395 * tests/test-memchr.c (main): Avoid type mismatch.
8396 * tests/test-arpa_inet.c (main): Avoid unused parameters.
8397 * tests/test-base64.c (main): Likewise.
8398 * tests/test-getdelim.c (main): Likewise.
8399 * tests/test-gethostname.c (main): Likewise.
8400 * tests/test-getline.c (main): Likewise.
8401 * tests/test-netinet_in.c (main): Likewise.
8402 * tests/test-select.c (open_server_socket, main): Likewise.
8403 * tests/test-select-stdin.c (main): Likewise.
8404 * tests/test-sockets.c (main): Likewise.
8405 * tests/test-strsignal.c (main): Likewise.
8406 * tests/test-sys_select.c (main): Likewise.
8407 * tests/test-sys_socket.c (main): Likewise.
8408 * tests/test-u64.c (main): Likewise.
8409 * tests/test-xfprintf-posix.c (main): Likewise.
8410 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8412 sockets: avoid compiler warning
8413 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8415 maint: detect usage(1) and other suspicious exits
8416 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8418 2009-10-29 Jim Meyering <meyering@redhat.com>
8420 timespec: long-to-int truncation could make timespec_cmp malfunction
8421 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8422 a multiple of 2^32 nanoseconds as no difference.
8424 2009-10-28 Jim Meyering <meyering@redhat.com>
8426 fprintftime: wrap macro code argument in "do {...} while(0)"
8427 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8428 cpy macro must be a statement that can be followed by a semicolon.
8429 Now that the else clause contains a comment and is hence longer
8430 than one line, I require curly braces. That in turn requires
8431 that we wrap this code block in the standard do...while(0).
8433 fprintftime: remove stray semicolon from previous change
8434 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8436 fprintftime: avoid a warning about ignored fwrite return value
8437 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8438 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8440 * modules/fprintftime (Depends-on): Add ignore-value.
8442 exclude: avoid an unwarranted warning
8443 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8445 2009-10-27 Eric Blake <ebb9@byu.net>
8447 fseek: avoid compilation failure when fflush is replaced
8448 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8449 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8451 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8452 module is not in use; since REPLACE_FSEEK worked otherwise.
8453 (GNULIB_FTELLO): Likewise for ftell.
8454 Reported by Ian Beckwith and others.
8456 2009-10-27 Bruno Haible <bruno@clisp.org>
8458 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8459 Reported by Jim Meyering.
8461 2009-10-27 Jim Meyering <jim@meyering.net>
8462 Bruno Haible <bruno@clisp.org>
8464 Avoid warning despite dropping the return value of fwrite.
8465 * lib/unicodeio.c: Include ignore-value.h.
8466 (fwrite_success_callback): Explicitly ignore fwrite's return value.
8467 * modules/unicodeio (Depends-on): Add ignore-value.
8469 2009-10-26 Eric Blake <ebb9@byu.net>
8471 areadlinkat: fix fallback path
8472 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8475 2009-10-22 Pádraig Brady <P@draigBrady.com>
8477 Use a better IO block size for modern systems
8478 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8479 * lib/md2.c: Likewise.
8480 * lib/md4.c: Likewise.
8481 * lib/md5.c: Likewise.
8482 * lib/sha1.c: Likewise.
8483 * lib/sha256.c: Likewise.
8484 * lib/sha512.c: Likewise.
8486 2009-10-22 Eric Blake <ebb9@byu.net>
8488 tests: avoid several compiler warnings
8489 * tests/test-getcwd.c (main): Avoid buffer underflow.
8490 * tests/test-getdate.c (main): String literals are not safe with
8491 putenv, so use setenv. Declare unused argument.
8492 * modules/getdate-tests (Depends-on): Add setenv.
8493 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
8494 problems with string literals in char *.
8495 * tests/test-hash.c (main): Avoid shadowing declaration.
8496 (insert_new): Treat string literals as char const *.
8497 * tests/test-getopt.h (test_getopt): Likewise.
8498 (getopt_loop): Alter types to minimize casting elsewhere.
8499 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8500 (test_getopt_long_posix): Likewise.
8501 (do_getopt_long): Add wrapper to minimize casting.
8502 * tests/test-atexit.c (clear_temp_file): Use void.
8503 * tests/test-areadlink-with-size.c (main): Declare unused
8505 * tests/test-areadlink.c (main): Likewise.
8506 * tests/test-areadlinkat-with-size.c (main): Likewise.
8507 * tests/test-areadlinkat.c (main): Likewise.
8508 * tests/test-canonicalize-lgpl.c (main): Likewise.
8509 * tests/test-canonicalize.c (main): Likewise.
8510 * tests/test-dirent-safer.c (main): Likewise.
8511 * tests/test-dirname.c (main): Likewise.
8512 * tests/test-dup2.c (main): Likewise.
8513 * tests/test-fchdir.c (main): Likewise.
8514 * tests/test-fcntl-h.c (main): Likewise.
8515 * tests/test-fcntl-safer.c (main): Likewise.
8516 * tests/test-fdopendir.c (main): Likewise.
8517 * tests/test-fdutimensat.c (main): Likewise.
8518 * tests/test-fflush.c (main): Likewise.
8519 * tests/test-filenamecat.c (main): Likewise.
8520 * tests/test-filevercmp.c (main): Likewise.
8521 * tests/test-fopen-safer.c (main): Likewise.
8522 * tests/test-fopen.c (main): Likewise.
8523 * tests/test-fpending.c (main): Likewise.
8524 * tests/test-fpurge.c (main): Likewise.
8525 * tests/test-freading.c (main): Likewise.
8526 * tests/test-fstatat.c (main): Likewise.
8527 * tests/test-fsync.c (main): Likewise.
8528 * tests/test-futimens.c (main): Likewise.
8529 * tests/test-getndelim2.c (main): Likewise.
8530 * tests/test-gettimeofday.c (main): Likewise.
8531 * tests/test-getopt.c (main): Likewise.
8532 * tests/test-i-ring.c (main): Likewise.
8533 * tests/test-inttypes.c (main): Likewise.
8534 * tests/test-link.c (main): Likewise.
8535 * tests/test-lstat.c (main): Likewise.
8536 * tests/test-math.c (main): Likewise.
8537 * tests/test-md5.c (main): Likewise.
8538 * tests/test-memchr2.c (main): Likewise.
8539 * tests/test-memrchr.c (main): Likewise.
8540 * tests/test-mkdir.c (main): Likewise.
8541 * tests/test-mkdirat.c (main): Likewise.
8542 * tests/test-mkfifoat.c (main): Likewise.
8543 * tests/test-open.c (main): Likewise.
8544 * tests/test-openat-safer.c (main): Likewise.
8545 * tests/test-openat.c (main): Likewise.
8546 * tests/test-quotearg.c (main): Likewise.
8547 * tests/test-rawmemchr.c (main): Likewise.
8548 * tests/test-readlink.c (main): Likewise.
8549 * tests/test-remove.c (main): Likewise.
8550 * tests/test-rename.c (main): Likewise.
8551 * tests/test-renameat.c (main): Likewise.
8552 * tests/test-rmdir.c (main): Likewise.
8553 * tests/test-sha1.c (main): Likewise.
8554 * tests/test-signal.c (main): Likewise.
8555 * tests/test-sigaction.c (main): Likewise.
8556 * tests/test-stat.c (main): Likewise.
8557 * tests/test-stat-time.c (main): Likewise.
8558 * tests/test-stddef.c (main): Likewise.
8559 * tests/test-stdint.c (main): Likewise.
8560 * tests/test-stdio.c (main): Likewise.
8561 * tests/test-stdlib.c (main): Likewise.
8562 * tests/test-strchrnul.c (main): Likewise.
8563 * tests/test-strerror.c (main): Likewise.
8564 * tests/test-string.c (main): Likewise.
8565 * tests/test-strtod.c (main): Likewise.
8566 * tests/test-strverscmp.c (main): Likewise.
8567 * tests/test-symlink.c (main): Likewise.
8568 * tests/test-symlinkat.c (main): Likewise.
8569 * tests/test-sys_stat.c (main): Likewise.
8570 * tests/test-sys_time.c (main): Likewise.
8571 * tests/test-time.c (main): Likewise.
8572 * tests/test-unistd.c (main): Likewise.
8573 * tests/test-unlink.c (main): Likewise.
8574 * tests/test-unlinkat.c (main): Likewise.
8575 * tests/test-utimens.c (main): Likewise.
8576 * tests/test-utimensat.c (main): Likewise.
8577 * tests/test-version-etc.c (main): Likewise.
8578 * tests/test-wchar.c (main): Likewise.
8579 * tests/test-wctype.c (main): Likewise.
8580 * tests/test-xprintf-posix.c (main): Likewise.
8581 * tests/test-posixtm.c (main): Likewise.
8582 (STREQ): Delete unused macro.
8583 * tests/test-linkat.c (main): Declare unused arguments. Avoid
8585 * tests/test-memchr.c (main): Likewise.
8587 2009-10-21 Eric Blake <ebb9@byu.net>
8589 areadlinkat: avoid failure on older glibc
8590 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8591 rather than mis-comparing 0 against FUNC_RESULT of char*.
8593 2009-10-21 Bruno Haible <bruno@clisp.org>
8595 * modules/stpncpy (License): Relicense under LGPLv2+.
8596 Reported by David Lutterkort <lutter@redhat.com>.
8598 2009-10-20 Eric Blake <ebb9@byu.net>
8600 utimensat: work around Solaris 9 bug
8601 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8602 has trailing slash bugs.
8603 * tests/test-lutimens.h (test_lutimens): Enhance test.
8604 * tests/test-utimens.h (test_utimens): Likewise.
8605 * doc/posix-functions/utime.texi (utime): Enhance documentation.
8606 * doc/posix-functions/utimes.texi (utimes): Likewise.
8607 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8608 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8609 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8610 * doc/posix-functions/futimens.texi (futimens): Likewise.
8612 fdutimensat: new module
8613 * modules/fdutimensat: New file.
8614 * lib/fdutimensat.c (fdutimensat): Likewise.
8615 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8616 * MODULES.html.sh (File system functions): Mention module.
8617 * modules/fdutimensat-tests: New test.
8618 * tests/test-fdutimensat.c: Likewise.
8620 doc: regenerate INSTALL
8621 * doc/INSTALL: Reflect recent autoconf update.
8622 * doc/INSTALL.ISO: Likewise.
8623 * doc/INSTALL.UTF-8: Likewise.
8625 2009-10-20 Pádraig Brady <P@draigBrady.com>
8627 acl: warn if ACL support is not detected
8628 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8630 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
8632 * lib/nproc.h: Add extern "C" block for C++.
8634 2009-10-18 Reuben Thomas <rrt@sc3d.org>
8635 Bruno Haible <bruno@clisp.org>
8637 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8638 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8639 * doc/posix-functions/isalpha.texi: Likewise.
8640 * doc/posix-functions/isblank.texi: Likewise.
8641 * doc/posix-functions/iscntrl.texi: Likewise.
8642 * doc/posix-functions/isdigit.texi: Likewise.
8643 * doc/posix-functions/isgraph.texi: Likewise.
8644 * doc/posix-functions/islower.texi: Likewise.
8645 * doc/posix-functions/isprint.texi: Likewise.
8646 * doc/posix-functions/ispunct.texi: Likewise.
8647 * doc/posix-functions/isspace.texi: Likewise.
8648 * doc/posix-functions/isupper.texi: Likewise.
8649 * doc/posix-functions/isxdigit.texi: Likewise.
8651 2009-10-18 Bruno Haible <bruno@clisp.org>
8653 Tests for module 'isblank'.
8654 * modules/isblank-tests: New file.
8655 * tests/test-isblank.c: New file.
8657 New module 'isblank'.
8658 * lib/isblank.c: New file.
8659 * m4/isblank.m4: New file.
8660 * modules/isblank: New file.
8661 * doc/posix-functions/isblank.texi: Mention the new module.
8663 2009-10-18 Bruno Haible <bruno@clisp.org>
8666 * lib/ctype.in.h: New file.
8667 * m4/ctype.m4: New file.
8668 * modules/ctype: New file.
8669 * doc/posix-headers/ctype.texi: Mention the new module.
8671 2009-10-18 Jim Meyering <meyering@redhat.com>
8673 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8674 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8675 right after its initialization, rather than farther down.
8676 Keeping these in close proximity makes it easier to ensure
8677 that each such variable is initialized. E.g.,
8680 AC_SUBST([LIB_CLOCK_GETTIME])
8682 This change also increments these serial numbers.
8683 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8684 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8685 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8687 2009-10-18 Bruno Haible <bruno@clisp.org>
8689 Don't let environment variables perturb build.
8690 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8691 (gl_PREREQ_GETHRXTIME): ... not here.
8693 2009-10-18 Bruno Haible <bruno@clisp.org>
8695 Avoid symlink attack in localcharset module.
8696 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8697 (O_NOFOLLOW): Define fallback.
8698 (get_charset_aliases): Don't open the file if it is a symbolic link.
8699 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8701 (gl_FCNTL_H): Require it.
8702 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8703 * modules/localcharset (Files): Add m4/fcntl_h.m4.
8704 Reported by Fergal Glynn <fglynn@veracode.com>.
8706 2009-10-18 Bruno Haible <bruno@clisp.org>
8708 Implement nproc for mingw.
8709 * lib/nproc.c: Include <windows.h>
8710 (num_processors): On native Windows platforms, try GetSystemInfo.
8712 2009-10-18 Bruno Haible <bruno@clisp.org>
8714 Implement nproc for IRIX.
8715 * lib/nproc.c: Include <sys/sysmp.h>.
8716 (num_processors): On IRIX systems, try sysmp.
8717 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8719 2009-10-18 Bruno Haible <bruno@clisp.org>
8721 Implement nproc for HP-UX.
8722 * lib/nproc.c: Include <sys/pstat.h>
8723 (num_processors): On HP-UX systems, try pstat_getdynamic.
8724 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8727 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
8728 Bruno Haible <bruno@clisp.org>
8730 Implement nproc for NetBSD, OpenBSD.
8731 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8732 (ARRAY_SIZE): New macro.
8733 (num_processors): On BSD systems, try sysctl of HW_NCPU.
8734 * m4/nproc.m4: New file.
8735 * modules/nproc (Files): Add m4/nproc.m4.
8736 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8737 (Makefile.am): Instead, augment lib_SOURCES.
8739 2009-10-18 Bruno Haible <bruno@clisp.org>
8741 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8742 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8745 2009-10-16 Eric Blake <ebb9@byu.net>
8747 utimensat: new module
8748 * modules/utimensat: New file.
8749 * lib/utimensat.c (utimensat): Likewise.
8750 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8751 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8752 so we can work around Linux bugs.
8753 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8754 * modules/sys_stat (Makefile.am): Substitute them.
8755 * lib/sys_stat.in.h (utimensat): Declare it.
8756 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8757 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8758 * modules/utimensat-tests: New test.
8759 * tests/test-utimensat.c: Likewise.
8761 utimens: let lutimens work on non-symlinks
8762 * lib/utimens.c (lutimens): Fall back to utimens rather than
8763 failing with ENOSYS, when file is not a symlink.
8764 (utimens): Reduce redirection.
8765 * tests/test-lutimens.h (test_lutimens): Update test to cover
8767 * tests/test-utimens.h (test_utimens): Update test to cover
8769 * tests/test-utimens.c (main): Update caller.
8771 utimens: cache whether utimensat syscall works
8772 * lib/utimens.c (utimensat_works_really): New cache variable.
8773 (fdutimens, lutimens): Use it to avoid failing syscall.
8775 test-stat-time, test-utimens: improve portability
8776 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8777 ext4 on alpha, and for cygwin.
8778 * tests/test-utimens-common.h: New file.
8779 (nap): Factor delays into single function.
8780 * tests/test-lutimens.h (test_lutimens): Use new header.
8781 * tests/test-futimens.h (test_futimens): Likewise.
8782 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
8783 timestamps to occur from same machine, as was done previously for
8785 * modules/utimens-tests (Files): Ship new file.
8786 * modules/futimens-tests (Files): Likewise.
8787 Reported in part by Jim Meyering.
8789 sys_stat: sort replacement declarations
8790 * lib/sys_stat.in.h: Sort declarations.
8791 * lib/futimens.c (futimens): Fix typo.
8793 2009-10-15 Jim Meyering <meyering@redhat.com>
8795 don't let environment settings perturb build
8796 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8797 could cause a configure-time and/or build-time malfunction.
8798 Typically, a configure-time function-in-library test is performed
8803 prefix_saved_LIBS=$LIBS
8804 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8805 [test "$ac_cv_search_FUNC" = "none required" ||
8806 LIB_VAR=$ac_cv_search_FUNC])
8807 LIBS=$prefix_saved_LIBS
8809 However, in each of the files affected by this change, the LIB_VAR=
8810 initialization was omitted. Thus, when set in the environment, its
8811 value would propagate into generated Makefiles when FUNC is not found
8813 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8814 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8815 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8817 2009-10-14 Eric Blake <ebb9@byu.net>
8819 fchdir: avoid infinite recursion in mingw
8820 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8823 test-stat-time: port to mingw
8824 * tests/test-stat-time.c (force_unlink): Return a value.
8825 (test_ctime) [W32]: Fix compilation error.
8826 (nap): Don't call usleep with too large an argument. Use
8828 * doc/pastposix-functions/usleep.texi (usleep): Document the
8831 2009-10-13 Jim Meyering <meyering@redhat.com>
8833 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8834 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8835 * modules/pipe-filter-ii: Likewise.
8836 * modules/sys_socket-tests: Likewise.
8837 * modules/tsearch-tests: Likewise.
8838 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8839 (check): Depend on it.
8841 2009-10-12 Eric Blake <ebb9@byu.net>
8843 utimens-tests: port to NFS file systems
8844 * tests/test-utimens.h (test_utimens): Refactor utimecmp
8845 comparisons to avoid spurious failures from timestamp drift
8846 between NFS machines.
8848 2009-10-12 Eric Blake <ebb9@byu.net>
8850 stat-time-tests: minor cleanups
8851 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8852 * tests/test-stat-time.c (nap): Separate assignment from call.
8853 Suggested by Paolo Bonzini and Bruno Haible.
8855 sys_stat: guarantee struct timespec
8856 * lib/sys_stat.in.h (includes): Always include <time.h>
8857 * modules/sys_stat (Depends-on): Add time.
8858 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8859 mode_t permission values.
8860 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8861 get at subsecond timestamps.
8863 2009-10-10 Eric Blake <ebb9@byu.net>
8865 futimens: new module
8866 * modules/futimens: New file.
8867 * lib/futimens.c (futimens): Likewise.
8868 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8869 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8870 we can work around Linux bugs.
8871 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8872 * modules/sys_stat (Makefile.am): Substitute them.
8873 * lib/sys_stat.in.h (futimens): Declare it.
8874 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8875 * doc/posix-functions/futimens.texi (futimens): Likewise.
8876 * modules/futimens-tests: New test.
8877 * tests/test-futimens.c: Likewise.
8879 utimens: introduce fdutimens
8880 * lib/utimens.h (fdutimens): New prototype.
8881 * lib/utimens.c (gl_futimens): Move guts...
8882 (fdutimens): ...to new interface.
8883 * tests/test-utimens.c (do_fdutimens): Use it.
8885 utimens: add UTIME_NOW and UTIME_OMIT support
8886 * lib/utimens.c (validate_timespec, update_timespec): New helper
8888 (gl_futimens, lutimens): Use them.
8889 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8891 (Link): Mention resulting library dependency.
8892 * modules/utimecmp (Link): Likewise.
8893 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8894 (Makefile.am): Pick up library dependency.
8895 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8897 * tests/test-sys_stat.c: Test the definitions.
8898 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8899 * NEWS: Document library dependency.
8901 utimecmp: support symlink timestamps
8902 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
8903 hashing when possible. Use pathconf when available.
8904 (SYSCALL_RESOLUTION): Recognize tighter resolution.
8905 * modules/utimecmp (Depends-on): Add lstat.
8907 utimens: add lutimens interface
8908 * lib/utimens.c (lutimens): New function.
8909 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8910 * lib/utimens.h (lutimens): Declare new interface.
8911 * tests/test-utimens.c (main): Enhance test.
8912 * tests/test-lutimens.h (test_lutimens): New file.
8913 * modules/utimens-tests (Files): Distribute it.
8914 (Depends-on): Add symlink.
8915 (configure.ac): Check for usleep.
8917 utimens: validate futimens usage
8918 * lib/utimens.c (gl_futimens): Require valid fd up front, using
8919 fewer syscalls on failure later on. Avoid compiler warning on
8921 * modules/utimens (Depends-on): Add dup2.
8924 * modules/utimens-tests: New test.
8925 * tests/test-utimens.h: New file.
8926 * tests/test-futimens.h: Likewise.
8927 * tests/test-utimens.c: Likewise.
8929 doc: mention timestamp portability issues
8930 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8932 * doc/posix-functions/utime.texi (utime): Likewise.
8933 * doc/posix-functions/utimes.texi (utimes): Likewise.
8934 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8936 * doc/posix-functions/futimens.texi (futimens): Mention utimens
8938 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8939 Mention weakness with symlink timestamps.
8940 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8941 to utimensat/futimens instead.
8942 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8944 test-dup2: enhance test
8945 * tests/test-dup2.c (main): Also check AT_FDCWD.
8947 test-stat-time: avoid more spurious failures
8948 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8949 xfs; and avoid race if the two timestamps cross quantization edge.
8951 relocatable: prefer 'file system' over 'filesystem'
8952 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8953 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8954 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8955 * doc/relocatable.texi (Enabling Relocatability): Likewise.
8956 * lib/relocatable.c (compute_curr_prefix): Likewise.
8958 2009-10-10 Jim Meyering <meyering@redhat.com>
8960 stat-time-tests: check for the usleep function
8961 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8963 2009-10-10 Bruno Haible <bruno@clisp.org>
8965 * modules/xnanosleep: Put the Link section after the Include section.
8967 2009-10-09 Eric Blake <ebb9@byu.net>
8969 dup2: work around FreeBSD 6.1 bug
8970 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8971 * doc/posix-functions/dup2.texi (dup2): Document it.
8972 Reported by Nelson H. F. Beebe and Jim Meyering.
8974 test-stat-time: port to buggy NFS clients
8975 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8976 (test_ctime): Also skip test if mtime and ctime are skewed.
8978 maint: prefer 'file system' over 'filesystem'
8979 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8980 * doc/posix-functions/lstat.texi (lstat): Likewise.
8981 * lib/file-has-acl.c (file_has_acl): Likewise.
8982 * lib/fwriteerror.c [TEST]: Likewise.
8983 * tests/test-areadlink.h (test_areadlink): Likewise.
8984 * tests/test-areadlinkat-with-size.c (main): Likewise.
8985 * tests/test-areadlinkat.c (main): Likewise.
8986 * tests/test-canonicalize-lgpl.c (main): Likewise.
8987 * tests/test-canonicalize.c (main): Likewise.
8988 * tests/test-fstatat.c (main): Likewise.
8989 * tests/test-linkat.c (main): Likewise.
8990 * tests/test-lstat.h (test_lstat_func): Likewise.
8991 * tests/test-mkdir.h (test_mkdir): Likewise.
8992 * tests/test-readlink.h (test_readlink): Likewise.
8993 * tests/test-remove.c (main): Likewise.
8994 * tests/test-rename.h (test_rename): Likewise.
8995 * tests/test-renameat.c (main): Likewise.
8996 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8997 * tests/test-symlink.h (test_symlink): Likewise.
8998 * tests/test-symlinkat.c (main): Likewise.
8999 * tests/test-unlink.h (test_unlink_func): Likewise.
9000 * tests/test-unlinkat.c (main): Likewise.
9002 maint: make realtime library usage explicit
9003 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9004 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9005 * modules/settime (Link): Likewise.
9006 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9008 test-stat-time: speed up execution
9009 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9011 (nap): New helper function.
9012 (prepare_test): Use it to reduce sleep time.
9013 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9015 * modules/stat-time-tests (configure.ac): Check for usleep.
9017 2009-10-09 Jim Meyering <meyering@redhat.com>
9019 selinux-h: always use getfilecon wrappers
9020 * lib/getfilecon.c: New file.
9021 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9022 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9023 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9024 (fgetfilecon): Provide a stub.
9025 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9026 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9027 file unconditionally.
9028 When <selinux/selinux.h> is found, arrange to use wrappers.
9029 * modules/selinux-h (Files): Add getfilecon.c.
9030 (Makefile.am): Substitute include-next-related bits
9031 into the now-always-generated selinux/selinux.h file.
9032 * doc/glibc-functions/lgetfilecon.texi: New file.
9033 * doc/glibc-functions/fgetfilecon.texi: New file.
9034 * doc/glibc-functions/getfilecon.texi: New file.
9035 * doc/glibc-functions/getfilecon-desc.texi: New file.
9036 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9037 which to pull in the new files.
9038 * MODULES.html.sh (Misc): Add selinux-h.
9040 2009-10-08 Jim Meyering <meyering@redhat.com>
9042 unistd: fix comment typo
9043 * lib/unistd.in.h (euidaccess): Fix a comment typo.
9045 2009-10-08 Eric Blake <ebb9@byu.net>
9047 areadlink: use SIZE_MAX consistently
9048 * modules/areadlink (Depends-on): Add stdint.
9049 * modules/areadlink-with-size (Depends-on): Likewise.
9050 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9051 gives NULL; drop sys/types, since unistd gives size_t; and add
9052 stdint for SIZE_MAX.
9053 (SIZE_MAX): Rely on headers.
9054 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9056 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9057 (SIZE_MAX): Likewise.
9058 (INITIAL_BUF_SIZE): Turn into enum.
9059 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9061 2009-10-08 Jim Meyering <meyering@redhat.com>
9063 areadlinkat: avoid compilation failure
9064 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9065 Fix typo in comment.
9067 2009-10-07 Eric Blake <ebb9@byu.net>
9069 areadlinkat-with-size: new module
9070 * modules/areadlinkat-with-size: New module.
9071 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9072 * lib/areadlink.h (areadlinkat): Declare it.
9073 * MODULES.html.sh (File system functions): Mention it.
9074 * modules/areadlinkat-with-size-tests: New test.
9075 * tests/test-areadlinkat-with-size.c: New file.
9077 xreadlinkat: new module
9078 * modules/xreadlinkat: New module.
9079 * lib/xreadlinkat.c (xreadlinkat): New file.
9080 * lib/xreadlink.h (xreadlinkat): Declare it.
9081 * MODULES.html.sh (File system functions): Mention it.
9083 areadlinkat: new module
9084 * lib/at-func.c (FUNC_FAIL): New define.
9085 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9086 * modules/areadlinkat: New module.
9087 * lib/linkat.c (areadlinkat): Move...
9088 * lib/areadlinkat.c (areadlinkat): ...to new file.
9089 * lib/areadlink.h (areadlinkat): Declare it.
9090 * modules/linkat (Depends-on): Add areadlinkat.
9091 * MODULES.html.sh (File system functions): Mention it.
9092 * modules/areadlinkat-tests: New test.
9093 * tests/test-areadlinkat.c: New file.
9095 areadlink, areadlink-with-size: add tests
9096 * modules/areadlink-tests: New test.
9097 * modules/areadlink-with-size-tests: Likewise.
9098 * tests/test-areadlink.h: New file.
9099 * tests/test-areadlink.c: Likewise.
9100 * tests/test-areadlink-with-size.c: Likewise.
9102 maint: minor cleanups
9103 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9104 _UNUSED_PARAMETER_ instead.
9105 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9106 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9107 * modules/linkat-tests (Files): Distribute test-link.h.
9109 openat, utimens: whitespace cleanup
9110 * lib/openat.c: Prefer space throughout, rather than mix of 8
9112 * lib/at-func.c: Likewise.
9113 * lib/utimens.c: Likewise.
9115 openat: avoid using wrong fd
9116 * lib/openat.c (openat_permissive): Reject user's fd if saving the
9117 working directory chooses same fd.
9118 * lib/at-func.c (AT_FUNC_NAME): Likewise.
9120 mkdir, mkdirat: fix cygwin 1.5.x bug
9121 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9122 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9123 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9125 (gl_PREREQ_MKDIR): Delete unused macro.
9126 * modules/mkdir (Files): Track file rename.
9127 (configure.ac): Update macro name.
9128 * modules/openat (Depends-on): Add mkdir.
9129 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9131 mkdir, mkdirat: add tests
9132 * modules/mkdir-tests: New test.
9133 * tests/test-mkdir.h: New file.
9134 * tests/test-mkdir.c: Likewise.
9135 * tests/test-mkdirat.c: Likewise.
9136 * modules/openat-tests (Files): Add new files.
9137 (Makefile.am): Run new test.
9139 2009-10-06 Eric Blake <ebb9@byu.net>
9141 doc: tweak *at function documentation
9142 * doc/posix-functions/faccessat.texi (faccessat): Mention
9143 known issue with replacement.
9144 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9145 * doc/posix-functions/linkat.texi (linkat): Likewise.
9146 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9147 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9148 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9149 * doc/posix-functions/renameat.texi (renameat): Likewise.
9150 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9152 openat: fix GNU/Hurd bug in unlinkat
9153 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9155 * doc/posix-functions/unlink.texi (unlink): Document this.
9156 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9158 fdopendir: fix GNU/Hurd bug
9159 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9160 allowing non-directory fds.
9161 * lib/fdopendir.c (rpl_fdopendir): Work around it.
9162 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9163 * modules/dirent (Makefile.am): Substitute it.
9164 * lib/dirent.in.h (fdopendir): Declare replacement.
9165 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9166 * tests/test-fdopendir.c (main): Test something other than
9167 /dev/null, since on Hurd that behaves like a directory.
9169 test-symlink: port to GNU/Hurd
9170 * tests/test-symlink.h (test_symlink): Relax expected errno.
9172 doc: tweak more cygwin information
9173 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9174 now compatible with glibc.
9175 * doc/posix-functions/getopt.texi (getopt): Likewise.
9177 getopt-gnu: add another test
9178 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9179 guarantee behavior relied on by m4.
9180 * tests/test-getopt.c (main): Use it.
9181 * modules/getopt-posix-tests (Depends-on): Add setenv.
9182 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9184 getopt: fix compilation on darwin
9185 * lib/getopt.in.h (includes): Leave breadcrumbs during system
9187 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9188 Reported by Ludovic Courtès.
9190 2009-10-06 Bruno Haible <bruno@clisp.org>
9192 * modules/size_max (Description): Discourage its use.
9193 Reported by Simon Josefsson.
9195 2009-10-06 Jim Meyering <meyering@redhat.com>
9197 linkat: avoid compilation failure
9198 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9200 2009-10-05 Eric Blake <ebb9@byu.net>
9202 linkat: support Linux 2.6.17
9203 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9204 linkat on Linux, but allow cache variable override.
9205 * lib/linkat.c (rpl_linkat): Define override.
9206 * modules/linkat (Depends-on): Add symlinkat.
9207 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9208 * modules/unistd (Makefile.am): Substitute it.
9209 * lib/unistd.in.h (linkat): Declare replacement.
9210 Reported by Pádraig Brady.
9212 quotearg: port test to systems with C.UTF-8 locale
9213 * tests/test-quotearg.c (struct result_strings): Add another
9214 member, differentiating between C.ASCII and C.UTF-8 handling.
9215 (compare_strings): Add parameter.
9216 (main): Adjust all callers.
9218 getopt: avoid clash with FreeBSD _getopt_internal
9219 * lib/getopt.in.h (_getopt_internal): Override the name.
9220 * lib/getopt_int.h (includes): Pick up any overrides.
9221 Reported by Reuben Thomas.
9223 hash: allow C89 compilation
9224 * lib/hash.c (check_tuning): Move declaration before statement.
9225 Reported by Reuben Thomas.
9227 2009-10-05 Karl Berry <karl@gnu.org>
9229 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9231 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
9232 Bruno Haible <bruno@clisp.org>
9234 * lib/uname.c (uname): Use a table-driven algorithm to compute
9235 Windows NT versions.
9237 2009-10-04 Bruno Haible <bruno@clisp.org>
9239 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9240 program_invocation_short_name.
9241 * modules/progname (configure.ac): Test for presence of
9242 program_invocation_short_name.
9243 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9245 2009-10-04 Bruno Haible <bruno@clisp.org>
9247 * lib/progname.c (set_program_name): Fix comment.
9248 Reported by Jim Meyering.
9250 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
9251 Bruno Haible <bruno@clisp.org>
9253 * lib/uname.c: Include <string.h>.
9254 (uname): Do only one call to GetVersionEx in the common case.
9256 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
9257 Bruno Haible <bruno@clisp.org>
9259 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9260 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9261 (uname): Add support for Windows CE and various non-x86 CPU types.
9263 2009-10-03 Bruno Haible <bruno@clisp.org>
9265 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9266 invocation to tests/configure.ac.
9267 Reported by Ian Beckwith <ianb@erislabs.net>.
9269 2009-10-02 Eric Blake <ebb9@byu.net>
9271 fchdir: avoid compiler warning
9272 * lib/fchdir.c (canonicalize_file_name)
9273 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9275 test-open: support mingw errno values
9276 * tests/test-open.h (test_open): Relax test.
9277 * tests/test-fopen.h (test_fopen): Likewise.
9278 * tests/test-openat-safer.c (main): Likewise.
9280 open: fix opening directory on mingw
9281 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9283 test-open: on GNU/Hurd, /dev/null is a directory
9284 * tests/test-fopen.h (main): Rename...
9285 (test_fopen): ...to this. Use a guaranteed non-directory when
9286 confirming open behavior on trailing slash.
9287 * tests/test-openat-safer.c (main): Likewise.
9288 * tests/test-open.h (main): Likewise....
9289 (test_open): ...to this.
9290 * tests/test-fopen.c (main): Adjust caller.
9291 * tests/test-fopen-safer.c (main): Likewise.
9292 * tests/test-open.c (main): Likewise.
9293 * tests/test-fcntl-safer.c (main): Likewise.
9294 Reported by Samuel Thibault.
9296 rename, fchdir: don't ignore chdir failure
9297 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9298 * lib/rename.c (rpl_rename) [W32]: Likewise.
9299 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9300 an empty destination directory if source cannot be renamed,
9301 although there is still possibility for failure.
9302 * doc/posix-functions/rename.texi (rename): Document the race.
9303 Reported by Jim Meyering.
9305 maint: cleanup whitespace in recent commits
9306 * lib/rename.c (rpl_rename): Remove tabs.
9307 * tests/test-link.h (test_link): Likewise.
9308 * lib/fchdir.c (get_name): Likewise.
9309 Reported by Jim Meyering.
9311 2009-10-02 Ben Pfaff <blp@gnu.org>
9313 relocatable-prog-wrapper: Add missing dependency on
9315 * modules/relocatable-prog-wrapper: Add dependency.
9316 Reported by Ian Beckwith <ianb@erislabs.net>.
9318 2009-10-02 Eric Blake <ebb9@byu.net>
9320 renameat: fix Solaris bugs
9321 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9323 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9324 * modules/stdio (Makefile.am): Substitute it.
9325 * lib/stdio.in.h (renameat): Declare replacement.
9326 * lib/renameat.c (rpl_renameat): Implement fix.
9328 renameat: new module
9329 * modules/renameat: New file.
9330 * lib/renameat.c (renameat): Likewise.
9331 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9332 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9333 * modules/stdio (Makefile.am): Substitute them.
9334 * lib/stdio.in.h (renameat): Declare it.
9335 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9336 * doc/posix-functions/renameat.texi (renameat): Likewise.
9337 * modules/renameat-tests: New test.
9338 * tests/test-renameat.c: Likewise.
9340 rename: fix mingw bugs
9341 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9342 directory overwrite bugs.
9344 rename: fix another cygwin 1.5 bug
9345 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9347 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9348 unnecessary cygwin workarounds. Also work around bug with moving
9349 full directory onto an empty one.
9350 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9352 rename-dest-slash: merge into rename module
9353 * modules/rename-dest-slash (Status): Mark obsolete.
9354 (Depends-on): Add rename.
9355 (Files): Let rename do it all.
9356 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9357 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9358 * m4/rename-dest-slash.m4: ...so this file can be deleted.
9359 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9360 * lib/rename.c (rpl_rename): Update comments.
9362 rename: fix cygwin 1.5.x bugs
9363 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9364 * lib/rename.c (rpl_rename): Work around them.
9365 * modules/rename (Depends-on): Add same-inode.
9367 rename: fix Solaris 10 bug
9368 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9369 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9372 rename: fix Solaris 9 bug
9373 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9374 on non-directory. Avoid calling exit.
9375 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9377 * modules/rename-tests (Depends-on): Drop lstat.
9378 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9379 (gl_PREREQ_RENAME): Delete unused macro.
9381 rename-dest-slash: fix NetBSD bug
9382 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9384 * modules/rename-dest-slash (Depends-on): Add same-inode.
9386 rename-tests: new test, exposes several platform bugs
9387 * modules/rename-tests: New file.
9388 * tests/test-rename.h: Likewise.
9389 * tests/test-rename.c: Likewise.
9390 * doc/posix-functions/rename.texi (rename): Improve documentation,
9391 including bugs that will eventually be fixed in gnulib.
9393 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
9395 * lib/uname.c: Include <stdlib.h>
9396 (uname): Assume version info is available.
9398 2009-10-02 Jim Meyering <meyering@redhat.com>
9400 gnu-web-doc-update: correct --help output
9401 * build-aux/gnu-web-doc-update: Make --help output relevant.
9403 gnu-web-doc-update: add standard options
9404 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9406 gnu-web-doc-update: New module.
9407 Use this script to automatically update the on-line web documentation
9408 for your GNU project at http://www.gnu.org/software/$pkg/manual/
9409 * modules/gnu-web-doc-update: New file, from coreutils.
9410 * build-aux/gnu-web-doc-update: New script.
9412 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
9414 link: LoadLibrary is not needed.
9415 * lib/link.c: Use GetModuleHandle.
9417 2009-10-01 Eric Blake <ebb9@byu.net>
9419 getopt: bump serial number
9420 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9423 tests: tighten link, rmdir, and remove tests
9424 * tests/test-link.h (includes): No need to use <config.h> here.
9425 Clean up if directory hard link was created, otherwise test for
9427 * tests/test-linkat.c (main): Simplify.
9428 * tests/test-remove.c (main): Enhance test for trailing '.'.
9429 * tests/test-rmdir.h (test_rmdir_func): Likewise.
9431 2009-10-01 Jim Meyering <meyering@redhat.com>
9433 maint.mk: requiring "make major" was annoying, for a "minor" release.
9434 What is intended is "stable", to contrast with alpha and beta,
9435 so require "make stable", not "make major".
9436 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9437 (get_tool_versions): Likewise.
9438 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9440 2009-09-30 Ben Pfaff <blp@gnu.org>
9442 Fix broken build of replacement for Windows tmpfile().
9443 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9444 flags argument added along with the 'mkostemp' module.
9446 2009-09-28 Bruno Haible <bruno@clisp.org>
9448 Avoid identifier clash with POSIX function 'remove' defined as a macro.
9449 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9451 (gl_list_remove): Update.
9452 * lib/gl_list.c (gl_list_remove): Update.
9453 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9455 (gl_oset_remove): Update.
9456 * lib/gl_list.c (gl_oset_remove): Update.
9457 Reported by Eric Blake.
9459 2009-09-28 Eric Blake <ebb9@byu.net>
9461 doc: mention yet more cygwin 1.7 status
9462 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9464 * doc/glibc-functions/execvpe.texi (execvpe): New file.
9465 * doc/gnulib.texi (Glibc unistd.h): Mention it.
9467 argp: fix test failure
9468 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9469 that are not upper-case. Pass correct range to tolower.
9471 2009-09-27 Jim Meyering <meyering@redhat.com>
9473 test-yesno: work around sparc-dash here-document infelicity
9474 Without this change, the literal \177 byte in a here document
9475 would make dash 0.5.5.1-3 access uninitialized memory.
9476 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9477 Instead, use a marker, "@", and filter through tr to create the desired
9478 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9480 2009-09-27 Bruno Haible <bruno@clisp.org>
9482 Disable untested support for new flavours of ACLs on AIX.
9483 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9485 * lib/set-mode-acl.c (qset_acl): Likewise.
9487 2008-12-07 Bruno Haible <bruno@clisp.org>
9489 Add support for new flavours of ACLs on AIX. (Untested.)
9490 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9491 (file_has_acl): Add support for newer AIX.
9492 * lib/set-mode-acl.c (qset_acl): Likewise.
9493 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9494 Rainer Tammer <tammer@tammer.net>.
9496 2009-09-26 Eric Blake <ebb9@byu.net>
9498 argp: fix compilation of getopt
9499 * lib/getopt.in.h (includes): Use different guard than glibc.
9500 Reported by Sergey Poznyakoff.
9502 doc: mention more cygwin 1.7 status
9503 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9505 * doc/posix-functions/execl.texi (execl): Likewise.
9506 * doc/posix-functions/execle.texi (execle): Likewise.
9507 * doc/posix-functions/execlp.texi (execlp): Likewise.
9508 * doc/posix-functions/execv.texi (execv): Likewise.
9509 * doc/posix-functions/execve.texi (execve): Likewise.
9510 * doc/posix-functions/execvp.texi (execvp): Likewise.
9511 * doc/glibc-functions/canonicalize_file_name.texi
9512 (canonicalize_file_name): Cygwin 1.7 now provides this.
9513 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9514 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9515 on AT_SYMLINK_NOFOLLOW.
9517 2009-09-24 Eric Blake <ebb9@byu.net>
9519 test-linkat: make test more robust
9520 * tests/test-linkat.c (main): Avoid collision with EEXIST.
9522 getopt: fix inclusion guards for cygwin
9523 * modules/getopt-posix (Depends-on): Add include-next.
9524 (Makefile.am): Substitute more items in replacement header.
9525 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9527 * lib/getopt.in.h (includes): Use split inclusion guard, and
9528 prefer <getopt.h> over include <unistd.h> when one is present.
9529 (option): Also override name of 'struct option'.
9531 same-inode: revert prior change; it is not yet ready
9532 * NEWS: Undo mention of this change.
9533 * lib/same-inode.h (same-inode.h): Undo tri-state change.
9534 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9535 * lib/cycle-check.c (cycle_check): Likewise.
9536 * lib/same.c (same_name): Likewise.
9537 * lib/at-func2.c (at_func2): Likewise.
9539 2009-09-23 Eric Blake <ebb9@byu.net>
9542 * modules/linkat: New file.
9543 * lib/at-func2.c (at_func2): Likewise.
9544 * lib/linkat.c (linkat): Likewise.
9545 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9546 * lib/openat-priv.h (at_func2): Add declaration.
9547 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9548 * modules/unistd (Makefile.am): Substitute them.
9549 * lib/unistd.in.h (linkat): Declare it.
9550 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9551 * doc/posix-functions/linkat.texi (linkat): Likewise.
9552 * doc/posix-functions/link.texi (link): Tweak wording.
9553 * tests/test-link.c (main): Move guts...
9554 * tests/test-link.h (test_link): ...into new file.
9555 * modules/linkat-tests: New test.
9556 * tests/test-linkat.c: Likewise.
9557 * modules/link-tests (Files): Ship new file.
9558 (Depends-on): Add stdbool.
9560 dirname: add library-safe mdir_name
9561 * lib/dirname.h (mdir_name): New prototype.
9562 * lib/dirname.c (dir_name): Move guts...
9563 (mdir_name): ...to new function that avoids xalloc_die.
9565 fchdir: another mingw fix
9566 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9567 * lib/fchdir.c (get_name): New helper method; skips canonicalize
9568 on mingw (where it has not yet been ported), and make it optional
9570 (_gl_register_fd): Use it.
9572 same-inode: make SAME_INODE tri-state, to port to mingw
9573 * NEWS: Mention this change.
9574 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9575 st_ino always being 0.
9576 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9577 * lib/cycle-check.c (cycle_check): Likewise.
9578 * lib/same.c (same_name): Likewise.
9580 lstat: avoid mingw compilation error
9581 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9582 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9584 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9586 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9587 the checks for lstat.
9588 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9590 link: fix test failure on Solaris 9
9591 * lib/link.c (rpl_link): Don't assume link will catch bogus
9592 trailing slash on source.
9594 test-symlinkat: enhance test
9595 * tests/test-readlink.c (main): Move guts...
9596 * tests/test-readlink.h (test_readlink): ...into new file.
9597 * tests/test-symlink.c (main): Move guts...
9598 * tests/test-symlink.h (test_symlink): ...into new file.
9599 * tests/test-symlinkat.c (main): Use new files for further
9601 (do_symlink, do_readlink): New helper functions.
9602 * modules/symlink-tests (Files): Ship new file.
9603 (Depends-on): Add stdbool.
9604 * modules/readlink-tests (Files): Ship new file.
9605 (Depends-on): Add stdbool.
9606 * modules/symlinkat-tests (Files): Use new files.
9608 2009-09-23 Eric Blake <ebb9@byu.net>
9610 readlink: document portability issue with symlink length
9611 * doc/posix-functions/lstat.texi (lstat): Mention that some file
9612 systems have bogus st_size on symlinks, and mention the
9613 areadlink-with-size module.
9614 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9615 * doc/posix-functions/readlink.texi (readlink): Mention the
9616 areadlink module, and ERANGE failure.
9617 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9618 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9620 readlink: fix Solaris 9 bug with trailing slash
9621 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9622 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9623 * doc/posix-functions/readlink.texi (readlink): Document this.
9624 * modules/readlink-tests: New test.
9625 * tests/test-readlink.c: Likewise.
9627 readlink: fix cygwin 1.5.x bug with return type
9628 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9629 * lib/unistd.in.h (readlink): Use ssize_t.
9630 * lib/readlink.c (readlink): Likewise.
9631 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9632 * modules/unistd (Makefile.am): Substitute it.
9633 * lib/unistd.in.h (readlink): Declare replacement.
9634 * doc/posix-functions/readlink.texi (readlink): Document this.
9636 symlink: use throughout gnulib
9637 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9638 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9639 symlink is not used.
9640 * modules/symlinkat (Depends-on): Add symlink.
9641 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9642 * modules/canonicalize-tests (Depends-on): Likewise.
9643 * modules/lstat-tests (Depends-on): Likewise.
9644 * modules/openat-tests (Depends-on): Likewise.
9645 * modules/remove-tests (Depends-on): Likewise.
9646 * modules/rmdir-tests (Depends-on): Likewise.
9647 * modules/unlink-tests (Depends-on): Likewise.
9648 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9649 * tests/test-canonicalize.c (symlink): Likewise.
9650 * tests/test-fstatat.c (symlink): Likewise.
9651 * tests/test-lstat.c (symlink): Likewise.
9652 * tests/test-remove.c (symlink): Likewise.
9653 * tests/test-rmdir.c (symlink): Likewise.
9654 * tests/test-unlink.c (symlink): Likewise.
9655 * tests/test-unlinkat.c (symlink): Likewise.
9657 symlink: new module, for Solaris 9 bug
9658 * modules/symlink: New file.
9659 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9660 * lib/symlink.c: Likewise.
9661 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9662 * modules/unistd (Makefile.am): Substitute them.
9663 * lib/unistd.in.h (symlink): Declare replacement.
9664 * MODULES.html.sh (File system functions): Mention it.
9665 * doc/posix-functions/symlink.texi (symlink): Likewise.
9666 * modules/symlink-tests: New test.
9667 * tests/test-symlink.c: Likewise.
9669 2009-09-23 Bruno Haible <bruno@clisp.org>
9671 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9673 Test case: gnulib-tool --import --with-tests atexit inttypes.
9674 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9676 2009-09-23 Bruno Haible <bruno@clisp.org>
9678 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9679 subcommand, not in a subshell.
9681 2009-09-22 Eric Blake <ebb9@byu.net>
9683 unistd: sort replacement declarations
9684 * lib/unistd.in.h: Sort declarations.
9686 open, openat: minor optimization
9687 * lib/open.c (open): If open succeeded, len is non-zero.
9688 * lib/openat.c (rpl_openat): Likewise.
9690 link-follow: ensure correct result
9691 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9692 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9693 distinguish between possible failures.
9695 2009-09-21 Eric Blake <ebb9@byu.net>
9697 fts: avoid compiler warning
9698 * lib/fts.c (dirent_inode_sort_may_be_useful)
9699 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9701 2009-09-19 Bruno Haible <bruno@clisp.org>
9703 * lib/progreloc.c (canonicalize_file_name): New declaration.
9705 2009-09-19 Eric Blake <ebb9@byu.net>
9708 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9710 openat: fix openat bugs on Solaris 9
9711 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9712 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9713 * modules/openat (Depends-on): Add open.
9714 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9715 * modules/fcntl-h (Makefile.am): Substitute it.
9716 * lib/fcntl.in.h (openat): Declare replacement.
9717 * doc/posix-functions/openat.texi (openat): Document this.
9719 openat: move fstatat and unlinkat into correct files
9720 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9722 * lib/openat.c (fstatat, unlinkat): Move...
9723 * lib/fstatat.c (fstatat): ...into correct files.
9724 * lib/unlinkat.c (unlinkat): Likewise.
9726 openat: fix unlinkat bugs on Solaris 9
9727 * lib/unlinkat.c (unlinkat): New file.
9728 * modules/openat (Depends-on): Add unlink.
9729 (Files): Distribute it.
9730 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9731 trailing slash behavior is broken.
9732 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9733 * modules/unistd (Makefile.am): Substitute it.
9734 * lib/unistd.in.h (unlinkat): Declare replacement.
9735 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9737 openat: fix fstatat bugs on Solaris 9
9738 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9740 * doc/posix-functions/fstatat.texi (fstatat): Document this.
9742 test-unlinkat: enhance test, to expose Solaris 9 bug
9743 * tests/test-unlink.c (main): Factor guts...
9744 * tests/test-unlink.h (test_rmdir_func): ...into new file.
9745 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9746 * tests/test-rmdir.c (main): Adjust caller.
9747 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
9748 (unlinker): New helper function.
9749 (rmdirat): Enhance check.
9750 * modules/rmdir-tests (Depends-on): Add stdbool.
9751 * modules/unlink-tests (Depends-on): Likewise.
9752 (Files): Add test-unlink.h.
9753 * modules/openat-tests (Files): Likewise.
9754 (Depends-on): Add unlinkdir.
9756 test-fstatat: new test, to expose Solaris 9 bugs
9757 * tests/test-stat.c (main): Factor guts...
9758 * tests/test-stat.h (test_stat_func): ...into new file.
9759 * tests/test-lstat.c (main): Factor guts...
9760 * tests/test-lstat.h (test_lstat_func): ...into new file.
9761 * tests/test-fstatat.c: New file.
9762 * modules/stat-tests (Files): Add test-stat.h.
9763 * modules/lstat-tests (Files): Add test-lstat.h.
9764 (Depends-on): Add stdbool.
9765 * modules/openat-tests (Depends-on): Add pathmax.
9766 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9767 (Makefile.am): Run new test.
9769 remove: new module, for mingw and Solaris 9 bugs
9770 * modules/remove: New file.
9771 * lib/remove.c: Likewise.
9772 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9773 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9774 * modules/stdio (Makefile.am): Use them.
9775 * lib/stdio.in.h (remove): Declare replacement.
9776 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9777 * doc/posix-functions/remove.texi (remove): Likewise.
9778 * modules/remove-tests: New test.
9779 * tests/test-remove.c: Likewise.
9781 unlink: new module, for Solaris 9 bug
9782 * modules/unlink: New file.
9783 * lib/unlink.c: Likewise.
9784 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9785 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9786 * modules/unistd (Makefile.am): Use them.
9787 * lib/unistd.in.h (stat): Declare replacement.
9788 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9789 * doc/posix-functions/unlink.texi (unlink): Likewise.
9790 * modules/unlink-tests: New test.
9791 * tests/test-unlink.c: Likewise.
9793 lstat: fix Solaris 9 bug
9794 * lib/lstat.c (lstat): Also check for trailing slash on
9795 non-symlink, non-directories. Use stat module to simplify logic.
9796 * doc/posix-functions/lstat.texi (lstat): Document it.
9797 * modules/lstat-tests (Depends-on): Add errno, same-inode.
9798 (configure.ac): Check for symlink.
9799 * tests/test-lstat.c (main): Add more tests.
9801 stat: add as dependency to other modules
9802 * modules/chown (Depends-on): Add stat.
9803 * modules/euidaccess (Depends-on): Likewise.
9804 * modules/fchdir (Depends-on): Likewise.
9805 * modules/isdir (Depends-on): Likewise.
9806 * modules/link (Depends-on): Likewise.
9807 * modules/lstat (Depends-on): Likewise.
9808 * modules/mkdir-p (Depends-on): Likewise.
9809 * modules/modechange (Depends-on): Likewise.
9810 * modules/open (Depends-on): Likewise.
9811 * modules/readlink (Depends-on): Likewise.
9812 * modules/same (Depends-on): Likewise.
9814 stat: fix Solaris 9 bug
9815 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9817 * lib/stat.c (rpl_stat): Work around it.
9818 * doc/posix-functions/stat.texi (stat): Update documentation.
9820 stat: new module, for mingw bug
9821 * modules/stat: New file.
9822 * lib/stat.c: Likewise.
9823 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9824 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9825 * modules/sys_stat (Makefile.am): Use them.
9826 * lib/sys_stat.in.h (stat): Declare replacement.
9827 * lib/openat.c (fstatat): Deal with lstat and stat being function
9829 * modules/openat (Depends-on): Add inline.
9830 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9831 * doc/posix-functions/stat.texi (stat): Likewise.
9832 * modules/stat-tests: New test.
9833 * tests/test-stat.c: Likewise.
9835 2009-09-19 Jim Meyering <meyering@redhat.com>
9837 syntax-check: detect unnecessary inclusion of canonicalize.h
9838 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9840 2009-09-19 Eric Blake <ebb9@byu.net>
9842 canonicalize-lgpl: adjust clients to use correct header
9843 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9844 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9845 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9846 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9847 * lib/progreloc.c (includes): Likewise.
9849 2009-09-19 Jim Meyering <meyering@redhat.com>
9851 test-posixtm.c: correct a comment
9852 * tests/test-posixtm.c: Correct first-line comment.
9853 Spotted by Eric Blake.
9855 2009-09-16 Jim Meyering <meyering@redhat.com>
9857 posixtm-tests: make T const-correct; add a test case
9858 * tests/test-posixtm.c (T): Declare const.
9859 Add a test for -(2^31+1).
9860 Remove useless can-succeed-only-in-2002 test.
9862 posixtm-tests: adjust the sole failing test
9863 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9864 expected output matches what mktime now produces. Cross-checked via
9865 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9867 posixtm: move #ifdef'd tests into a new module
9868 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
9869 * tests/test-posixtm.c: ... this new file.
9870 * modules/posixtm-tests: New module.
9872 2009-09-19 Eric Blake <ebb9@byu.net>
9874 openat: simplify use of at-func.c
9875 * lib/at-func.c (includes): Include prerequisites here, to
9876 simplify requirements on client files.
9877 * lib/openat-priv.h: Add double-inclusion guard.
9878 * lib/faccessat.c (includes): Simplify.
9879 * lib/fchmodat.c (includes): Likewise.
9880 * lib/fchownat.c (includes): Likewise.
9881 * lib/mkdirat.c (includes): Likewise.
9882 * lib/mkfifoat.c (includes): Likewise.
9883 * lib/symlinkat.c (includes): Likewise.
9885 openat: allow return of fd 0
9886 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9887 * modules/save-cwd (Depends-on): Replace fcntl-safer with
9889 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9890 <fcntl.h>; this module does not leak fds.
9891 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9892 must be allowed to return 0, leaving openat_safer to add the
9894 (openat_permissive): Avoid writing to just-opened fd 2 if
9895 restoring the current directory fails.
9896 * lib/openat-die.c (openat_restore_fail): Add comment.
9897 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9898 (save_cwd): Guarantee safe fd, but without use of open_safer.
9899 * tests/test-openat.c: New test.
9900 * modules/openat-tests (Files, Makefile.am): Distribute and build
9903 relocatable-prog-wrapper: fix build
9904 * modules/relocatable-prog-wrapper (Files): Update name of
9905 canonicalize m4 file, broken on 2009-09-17.
9906 Reported by emad hajjar <aleppos@hotmail.com>.
9908 2009-09-19 Bruno Haible <bruno@clisp.org>
9910 * lib/safe-alloc.h: Use the standard header with GPL copyright.
9911 * lib/safe-alloc.c: Likewise.
9912 Reported by Ian Beckwith <ianb@erislabs.net>.
9914 2009-09-18 Bruno Haible <bruno@clisp.org>
9916 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9917 Reported by <erobles@sensacd.com.mx>.
9919 2009-09-17 Eric Blake <ebb9@byu.net>
9921 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9922 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9923 slashes when checking if last component is missing.
9924 * tests/test-canonicalize.c (main): Test this.
9926 canonicalize, canonicalize-lgpl: honor // if distinct from /
9927 * modules/canonicalize (Files): Add double-slash-root.m4.
9928 * modules/canonicalize-lgpl (Files): Likewise.
9929 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9930 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9931 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9932 fallback definition.
9933 (canonicalize_filename_mode): Use it to protect //.
9934 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9935 (__realpath): Likewise.
9936 * tests/test-canonicalize.c (main): Test this.
9937 * tests/test-canonicalize-lgpl.c (main): Likewise.
9938 * modules/canonicalize-tests (Depends-on): Add same-inode.
9939 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9941 canonicalize-lgpl: fix glibc bug with trailing slash
9942 * m4/canonicalize-lgpl.m4: Move contents...
9943 * m4/canonicalize.m4: ...here.
9944 (gl_CANONICALIZE_LGPL): Factor realpath check...
9945 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
9946 glibc 2.3.5 bug, fixed 2005-04-27.
9947 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9948 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9949 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9950 * modules/canonicalize-lgpl (Files): Manage file rename.
9951 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9952 * modules/stdlib (Makefile.am): Substitute witness.
9953 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9955 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9956 replacement is required.
9957 * lib/canonicalize.c (canonicalize_file_name): Likewise.
9958 * doc/glibc-functions/canonicalize_file_name.texi
9959 (canonicalize_file_name): Document this.
9960 * doc/posix-functions/realpath.texi (realpath): Likewise.
9962 canonicalize-lgpl: reject non-directory with trailing slash
9963 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9964 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
9965 catches failures in glibc 2.3.5.
9966 * tests/test-canonicalize.c (main): Likewise.
9968 canonicalize-lgpl: use native realpath if it works
9969 * lib/canonicalize-lgpl.c (realpath): Guard with
9970 FUNC_REALPATH_WORKS.
9971 * lib/stdlib.in.h (realpath): Make declaration optional based on
9973 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9974 native realpath works.
9975 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9976 * modules/stdlib (Makefile.am): Substitute witness.
9978 canonicalize, canonicalize-lgpl: use <stdlib.h>
9979 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9980 (Include): Mention <stdlib.h>.
9981 (configure.ac): Mention functions we provide.
9982 * modules/canonicalize (configure.ac): Likewise.
9983 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9984 realpath if canonicalize_file_name is missing.
9985 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9986 * modules/stdlib (Makefile.am): Substitute witnesses.
9987 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9988 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9989 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9990 * NEWS: Document this.
9991 * doc/glibc-functions/canonicalize_file_name.texi
9992 (canonicalize_file_name): Likewise.
9993 * doc/posix-functions/realpath.texi (realpath): Likewise.
9994 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9996 test-canonicalize: consolidate into single C program
9997 * tests/test-canonicalize.sh: Delete; move setup into...
9998 * tests/test-canonicalize.c (main): ...the program, making it
9999 easier to run in debugger. Add some tests.
10000 * modules/canonicalize-tests (Files): Remove unused file.
10001 (Depends-on): Add progname.
10002 (configure.ac, Makefile.am): Simplify.
10004 test-canonicalize-lgpl: consolidate into single C program
10005 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10006 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10007 easier to run in debugger. Add some tests.
10008 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10009 (configure.ac, Makefile.am): Simplify.
10011 canonicalize: avoid resolvepath
10012 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10013 unnecessary checks.
10014 * lib/canonicalize.c (includes): Simplify.
10015 (canonicalize_file_name): Drop resolvepath implementation.
10016 * modules/canonicalize (Depends-on): Drop filenamecat.
10018 canonicalize: don't lose errno
10019 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10020 over calls to free.
10022 canonicalize: simplify errno handling
10023 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10026 canonicalize, canonicalize-lgpl: update module dependencies
10027 * modules/canonicalize (Depends-on): Add extensions, lstat,
10029 (Files): Drop pathmax.h.
10030 (configure.ac): Adjust macro name.
10031 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10032 lstat, stdlib, sys_stat.
10033 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10034 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10036 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10037 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10038 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10039 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10040 declaration, if available.
10041 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10042 we can rely on the readlink module.
10043 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10044 (includes): Use <unistd.h> unconditionally.
10046 2009-09-17 Eric Blake <ebb9@byu.net>
10048 maint: make Include sections of modules consistent
10049 * modules/alloca: Use only header name; no need to list #include.
10050 * modules/alloca-opt: Likewise.
10051 * modules/arpa_inet: Likewise.
10052 * modules/canon-host: Likewise.
10053 * modules/configmake: Likewise.
10054 * modules/dirent: Likewise.
10055 * modules/eealloc: Likewise.
10056 * modules/environ: Likewise.
10057 * modules/fchdir: Likewise.
10058 * modules/fcntl: Likewise.
10059 * modules/fcntl-h: Likewise.
10060 * modules/gethrxtime: Likewise.
10061 * modules/gettime: Likewise.
10062 * modules/ignore-value: Likewise.
10063 * modules/inet_ntop: Likewise.
10064 * modules/inet_pton: Likewise.
10065 * modules/inttypes: Likewise.
10066 * modules/isnand-nolibm: Likewise.
10067 * modules/isnanf-nolibm: Likewise.
10068 * modules/mbchar: Likewise.
10069 * modules/mbfile: Likewise.
10070 * modules/mbiter: Likewise.
10071 * modules/mbuiter: Likewise.
10072 * modules/netdb: Likewise.
10073 * modules/netinet_in: Likewise.
10074 * modules/nproc: Likewise.
10075 * modules/pagealign_alloc: Likewise.
10076 * modules/poll: Likewise.
10077 * modules/printf-frexp: Likewise.
10078 * modules/pthread: Likewise.
10079 * modules/putenv: Likewise.
10080 * modules/random_r: Likewise.
10081 * modules/relocatable-prog: Likewise.
10082 * modules/search: Likewise.
10083 * modules/select: Likewise.
10084 * modules/selinux-h: Likewise.
10085 * modules/settime: Likewise.
10086 * modules/signal: Likewise.
10087 * modules/size_max: Likewise.
10088 * modules/socklen: Likewise.
10089 * modules/ssize_t: Likewise.
10090 * modules/stdarg: Likewise.
10091 * modules/stdbool: Likewise.
10092 * modules/stddef: Likewise.
10093 * modules/stdint: Likewise.
10094 * modules/stdio: Likewise.
10095 * modules/stdlib: Likewise.
10096 * modules/string: Likewise.
10097 * modules/strings: Likewise.
10098 * modules/sys_file: Likewise.
10099 * modules/sys_ioctl: Likewise.
10100 * modules/sys_select: Likewise.
10101 * modules/sys_socket: Likewise.
10102 * modules/sys_stat: Likewise.
10103 * modules/sys_time: Likewise.
10104 * modules/sys_times: Likewise.
10105 * modules/sys_utsname: Likewise.
10106 * modules/sys_wait: Likewise.
10107 * modules/sysexits: Likewise.
10108 * modules/time: Likewise.
10109 * modules/times: Likewise.
10110 * modules/tmpfile: Likewise.
10111 * modules/trim: Likewise.
10112 * modules/unistd: Likewise.
10113 * modules/wchar: Likewise.
10114 * modules/wctype: Likewise.
10116 2009-09-17 Bruno Haible <bruno@clisp.org>
10118 Make getdate.y compile on QNX and NetBSD 5 / i386.
10119 * m4/getdate.m4 (gl_GETDATE): Conditionally define
10120 TIME_T_FITS_IN_LONG_INT.
10121 * lib/getdate.y (long_time_t): New type.
10122 (relative_time): Change type of 'seconds' field to long_time_t.
10123 (get_date): Update types of local variables. Check against overflow
10124 during conversion from long_time_t to time_t.
10125 Reported by Matt Kraai <kraai@ftbfs.org>
10126 and Hasso Tepper <hasso@netbsd.org>.
10128 2009-09-17 Bruno Haible <bruno@clisp.org>
10130 * modules/COPYING: Update copyright years.
10131 * modules/README: Likeiwse.
10132 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10133 Reported by Ian Beckwith <ianb@erislabs.net>.
10135 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
10137 * users.txt: Update references for gnuit package.
10139 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
10141 * m4/getdelim.m4: Fix typo in copyright line.
10143 2009-09-17 Bruno Haible <bruno@clisp.org>
10145 * lib/atoll.c: Use the standard header with GPL copyright.
10146 * lib/argz.in.h: Likewise.
10147 * lib/glob.c: Likewise.
10148 * lib/glob-libc.h: Likewise.
10149 * lib/random_r.c: Likewise.
10150 * lib/siglist.h: Likewise.
10151 * lib/strsignal.c: Likewise.
10152 Reported by Ian Beckwith <ianb@erislabs.net>.
10154 2009-09-17 Eric Blake <ebb9@byu.net>
10156 rmdir: ensure correct dependency order
10157 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10159 2009-09-17 Bruno Haible <bruno@clisp.org>
10161 Disable assertion that fails on NetBSD 5 / i386.
10162 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10163 Reported by Sam Steingold <sds@gnu.org>
10164 and Hasso Tepper <hasso@netbsd.org>.
10166 2009-09-16 Eric Blake <ebb9@byu.net>
10168 unlinkdir: port to mingw
10169 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10170 on which no one can unlink a directory.
10172 stdlib: sort witness names
10173 * modules/stdlib (Makefile.am): Sort replacements.
10174 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10175 * lib/stdlib.in.h: Likewise.
10177 parse-duration-tests: avoid link failure
10178 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10180 Reported by Tom G. Christensen.
10182 openat-tests: ensure unlinkat behaves like rmdir
10183 * tests/test-rmdir.c (main): Factor guts...
10184 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10185 * modules/rmdir-tests (Files): Ship new file.
10186 * modules/openat-tests: New test.
10187 * tests/test-unlinkat.c: Likewise.
10189 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10190 * modules/rmdir-errno (Status, Notice): Now obsolete.
10192 rmdir: work around cygwin 1.5.x and mingw bugs
10193 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10194 * lib/rmdir.c (rmdir): Work around it.
10195 * modules/rmdir (Status, Notice): No longer obsolete.
10196 (Files): Add dos.m4.
10197 (Depends-on): Add unistd.
10198 (configure.ac): Set witnesses.
10199 (License): Relax to LGPLv2+.
10200 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10201 * modules/unistd (Makefile.am): Substitute witnesses.
10202 * lib/unistd.in.h (rmdir): Declare replacement.
10203 * doc/posix-functions/rmdir.texi (rmdir): Document this.
10204 * modules/rmdir-tests: New tests.
10205 * tests/test-rmdir.c: Likewise.
10207 2009-09-15 Eric Blake <ebb9@byu.net>
10209 fchdir: improve use of replacement functions
10210 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10211 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10212 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10214 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10215 * modules/sys_stat (Makefile.am): Substitute correct witness.
10216 * modules/dirent (Makefile.am): Likewise.
10217 * modules/unistd (Makefile.am): Likewise.
10218 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10219 * lib/unistd.in.h (dup): Likewise.
10220 * lib/sys_stat.in.h (fstat): Likewise.
10222 maint: ignore gnulib-tool temp files
10223 * .gitignore: Ignore files created during gnulib-tool --test.
10225 2009-09-13 Jim Meyering <meyering@redhat.com>
10227 posixtm: don't reject a time that specify "60" as the number of seconds
10228 * lib/posixtm.c (posixtime): The code to reject invalid dates
10229 would also reject a time specified with the .60 suffix.
10230 But POSIX allows that, in order to accommodate leap seconds.
10231 So don't reject it.
10232 (main): Adjust tests accordingly.
10233 * modules/posixtm (Depends-on): Add stpcpy.
10235 2009-09-11 Jim Meyering <meyering@redhat.com>
10237 announce-gen: include [$release_type] in emitted Subject:
10238 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10239 e.g., [stable] in the emitted Subject: line.
10241 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10243 Remove obsolete macros from several modules.
10244 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10245 obsolete Autoconf macros with their modern counterparts.
10246 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10247 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10248 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10249 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10250 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10251 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10252 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10253 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10254 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10255 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10256 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10257 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10258 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10259 * m4/sockets.m4 (gl_SOCKETS): Likewise.
10260 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10261 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10262 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10263 * m4/time_r.m4 (gl_TIME_R): Likewise.
10264 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10265 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10266 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10268 Fix copyright header in build-aux scripts.
10269 * build-aux/git-version-gen: Fix copyright header to match GPLv3
10271 * build-aux/ncftpput-ftp: Likewise.
10272 * build-aux/update-copyright: Likewise.
10274 2009-09-09 Eric Blake <ebb9@byu.net>
10276 test-link: allow Linux choice of errno
10277 * tests/test-link.c (main): Relax test for alternate error.
10279 strndup: fix improper m4 caching
10280 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10281 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10282 (gl_PREREQ_STRNDUP): Delete.
10283 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10284 * modules/string (Makefile.am): Substitute it.
10285 * lib/string.in.h (strndup): Modernize prototype.
10287 getcwd: port to mingw
10288 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10289 different from the POSIX assumptions made throughout the getcwd
10290 module; fortunately, the mingw getcwd does not need replacement.
10291 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10292 * modules/getcwd-tests: New test.
10293 * tests/test-getcwd.c: Likewise.
10295 link: fix platform bugs
10296 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10297 * lib/link.c (link): Work around them. Fix related mingw bug.
10298 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10299 * modules/unistd (Makefile.am): Substitute it.
10300 * lib/unistd.in.h (link): Declare replacement.
10301 * doc/posix-functions/link.texi (link): Document this.
10302 * modules/link (Depends-on): Add strdup-posix, sys_stat.
10304 test-link: consolidate into single C program, test more cases
10305 * tests/test-link.sh: Delete.
10306 * tests/test-link.c: Test more error conditions. Exposes bugs on
10307 at least Cygwin and Solaris.
10308 * modules/link-tests (Files): Remove unused file.
10309 (Depends-on): Add errno, sys_stat.
10310 (Makefile.am): Simplify.
10312 2009-09-08 Bruno Haible <bruno@clisp.org>
10314 Work around towlower, towupper bug on mingw.
10315 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10316 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10317 * doc/posix-functions/towlower.texi: Mention the mingw bug.
10318 * doc/posix-functions/towupper.texi: Likewise.
10319 Reported by Eric Blake.
10321 2009-09-08 Jim Meyering <meyering@redhat.com>
10323 build: don't try to run autoheader if we don't use it
10324 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10325 is not used in configure.ac.
10327 2009-09-08 Eric Blake <ebb9@byu.net>
10329 euidaccess: fix compilation error
10330 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10332 rawmemchr: relax license
10333 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10335 Reported by Jim Meyering.
10337 mkfifoat: new module
10338 * modules/mkfifoat: New file.
10339 * lib/mkfifoat.c: Likewise.
10340 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10341 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10342 * modules/sys_stat (Makefile.am): Use them.
10343 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10344 * MODULES.html.sh (File system functions): Mention module.
10345 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10346 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10347 * modules/mkfifoat-tests: New test.
10348 * tests/test-mkfifoat.c: Likewise.
10350 strchrnul: relax license
10351 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10353 Reported by Jim Meyering.
10355 2009-09-08 Eric Blake <ebb9@byu.net>
10357 fstatat: fix compilation on Solaris
10358 * lib/fstatat.c (includes): Add fcntl.h.
10359 Reported by Pádraig Brady.
10361 2009-09-07 Eric Blake <ebb9@byu.net>
10363 rename: modernize replacement
10364 * modules/rename (Depends-on): Add stdio.
10365 (configure.ac): Declare witness.
10366 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10367 stdio take care of replacement.
10368 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10369 * modules/stdio (Makefile.am): Substitute them.
10370 * lib/stdio.in.h (rename): Declare replacement.
10371 * lib/rename.c (includes): Allow cross-compilation to non-windows
10373 * doc/posix-functions/rename.texi (rename): Improve
10376 stdio: sort witness names
10377 * modules/stdio (Makefile.am): Sort replacements.
10378 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10379 * lib/stdio.in.h: Likewise.
10381 getcwd: minor cleanups
10382 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10383 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10385 openat: provide more convenience names
10386 * modules/faccessat (configure.ac): Add C witness.
10387 * lib/unistd.in.h (readlinkat): Fix typo.
10388 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10389 convenience wrappers.
10390 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10391 wrappers in syntax checks.
10393 2009-09-06 Eric Blake <ebb9@byu.net>
10395 doc: fix comments in recent patches
10396 * lib/faccessat.c: Mention correct function.
10397 * lib/fchmodat.c: Likewise.
10398 * lib/fchownat.c: Likewise.
10399 * lib/symlinkat.c: Likewise.
10400 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10403 faccessat, symlinkat: continue cleanup of previous patch
10404 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10405 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10406 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10407 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10408 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10409 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10412 2009-09-06 Bruno Haible <bruno@clisp.org>
10414 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10415 (fstatat): Declare if GNULIB_FSTATAT is set.
10416 (mkdirat): Declare if GNULIB_MKDIRAT is set.
10417 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10418 (unlinkat): Declare if GNULIB_UNLINKAT is set.
10419 * modules/fcntl-h (Files): Remove m4/openat.m4.
10420 * modules/sys_stat (Files): Remove m4/openat.m4.
10421 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10422 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10423 * modules/unistd (Files): Remove m4/openat.m4.
10424 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10426 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10427 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10428 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10429 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10430 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10431 gl_OPENAT_DEFAULTS.
10432 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10433 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10434 Don't require gl_OPENAT_DEFAULTS.
10435 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10436 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10437 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10438 (gl_OPENAT_DEFAULTS): Remove macro.
10440 2009-09-06 Bruno Haible <bruno@clisp.org>
10442 * modules/openat (configure.ac): Remove unneeded witness.
10444 2009-09-06 Bruno Haible <bruno@clisp.org>
10446 Set errno to ENOSYS when a function is entirely unsupported.
10447 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10449 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10450 * modules/chown (Depends-on): Remove errno.
10452 2009-09-06 Bruno Haible <bruno@clisp.org>
10454 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10456 2009-09-06 Bruno Haible <bruno@clisp.org>
10458 * lib/sys_stat.in.h: Fix preprocessor command indentation.
10460 2009-09-06 Ben Pfaff <blp@gnu.org>
10461 Bruno Haible <bruno@clisp.org>
10463 Work around a glibc bug in strtok_r.
10464 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10465 Undefine if UNDEFINE_STRTOK_R is set.
10466 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10467 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10468 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10469 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10470 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10472 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10474 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
10477 * lib/exclude.c: Include wctype.h
10479 2009-09-06 Akim Demaille <demaille@gostai.com>
10481 bootstrap: improve error message
10482 * build-aux/bootstrap (find_tool): Upon failure, report the list
10484 Honor the initial value of the envvar.
10486 2009-09-05 Eric Blake <ebb9@byu.net>
10488 symlinkat: new module
10489 * modules/symlinkat: New file.
10490 * lib/symlinkat.c: Likewise.
10491 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10492 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10493 * modules/unistd (Makefile.am): Use them.
10494 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10495 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10496 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10497 * MODULES.html.sh (File system functions): Mention module.
10498 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10499 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10500 * modules/symlinkat-tests: New test.
10501 * tests/test-symlinkat.c: Likewise.
10503 test-openat-safer: add more checks
10504 * tests/test-openat-safer.c (main): Check more code paths.
10506 2009-09-05 Jim Meyering <meyering@redhat.com>
10508 syntax-check: detect unnecessary inclusion of openat.h
10509 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10511 2009-09-05 Bruno Haible <bruno@clisp.org>
10513 Support towlower, towupper.
10514 * doc/posix-functions/towlower.texi: Mention module wctype.
10515 * doc/posix-functions/towupper.texi: Likewise.
10516 * lib/wctype.in.h (towlower, towupper): New functions.
10517 * tests/test-wctype.c: Include stdio.h, stdlib.h.
10518 (ASSERT): New macro.
10520 (main): Test also towlower, towupper. Test WEOF argument.
10521 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10523 2009-09-05 Bruno Haible <bruno@clisp.org>
10525 Fix conversion behaviour when the input is invalid.
10526 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10527 mark occurring in first pass of indirect conversion.
10528 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10530 Found by clang's static analyzer.
10532 2009-09-05 Bruno Haible <bruno@clisp.org>
10534 * tests/test-striconveh.c (main): Test indirect conversion on platforms
10535 where direct conversion is possible.
10537 2009-09-04 Eric Blake <ebb9@byu.net>
10539 openat: fail with ENOENT on empty name
10540 * lib/openat-proc.c (openat_proc_name): Special-case the empty
10543 link-follow: fix logic bug in prior patch
10544 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10545 reversed sense of yes and no in prior patch. Avoid confusing
10546 compilation failure with desired semantics.
10548 link-follow: accomodate mingw and cross-compilation
10549 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10550 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
10551 cross-compilation results to -1, to make linkat easier to
10552 implement when cross-compiling. Trivially support mingw.
10553 * modules/link-follow (configure.ac): Call new name.
10554 * NEWS: Mention this.
10556 2009-09-03 Eric Blake <ebb9@byu.net>
10558 faccessat: compile replacement
10559 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10562 fts: fix compilation error
10563 * lib/fts.c (includes): Re-add "openat.h", for
10564 openat_needs_fchdir.
10566 faccessat: new module
10567 * modules/faccessat: New file.
10568 * lib/faccessat.c: Likewise.
10569 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10570 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10571 * modules/unistd (Makefile.am): Use it.
10572 * lib/unistd.in.h (faccessat): Declare it.
10573 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10574 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10575 * MODULES.html.sh (File system functions): Mention it.
10576 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10577 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10579 euidaccess: prefer POSIX over non-standard implementation
10580 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10581 * lib/euidaccess.c (euidaccess): Use it if available.
10583 openat: make template easier to use
10584 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10585 AT_FUNC_F2 to be undefined.
10586 (VALIDATE_FLAG): New macro; use it to reject bad flags.
10587 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10588 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10589 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10590 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10592 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10593 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10594 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10597 openat: declare in POSIX headers
10598 * NEWS: Mention this.
10599 * modules/openat (configure.ac): Declare witnesses.
10600 (Depends-on): Add fcntl-h, sys_stat, unistd.
10601 (Include): Mention correct headers.
10602 * modules/fcntl-h (Depends-on): Add link-warning.
10603 (Files): Add openat.m4.
10604 (Makefile.am): Substitute witnesses.
10605 * modules/sys_stat (Files, Makefile.am): Likewise.
10606 * modules/unistd (Files, Makefile.am): Likewise.
10607 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10608 (gl_OPENAT_DEFAULTS): New macro.
10609 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10610 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10611 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10612 (SYS_STAT_H): Remove unused variable.
10613 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10614 * lib/fcntl--.h (includes): Remove unneeded header.
10615 * lib/openat-safer.c (includes): Likewise.
10616 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10617 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10618 appropriate headers.
10619 (__OPENAT_PREFIX): Delete.
10620 * lib/fcntl.in.h (openat): Provide declaration.
10621 (AT_FDCWD): Fix Solaris bug.
10622 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10623 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10624 * lib/fchmodat.c (includes): Adjust to find declaration.
10625 * lib/fchownat.c (includes): Likewise.
10626 * lib/mkdirat.c (includes): Likewise.
10627 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
10630 2009-09-02 Eric Blake <ebb9@byu.net>
10632 errno: use consistently
10633 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10634 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10635 * lib/canonicalize.c (ELOOP): Likewise.
10636 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10637 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10638 * lib/lchown.c (EOPNOTSUPP): Likewise.
10639 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10640 * lib/savewd.c (ESTALE): Likewise.
10641 * lib/settime.c (ENOSYS): Likewise.
10642 * lib/utimens.c (ENOSYS): Likewise.
10643 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10644 * lib/chdir-safer.c (ELOOP): Likewise.
10645 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10646 * modules/c-stack (Depends-on): Add errno.
10647 * modules/canonicalize (Depends-on): Likewise.
10648 * modules/chdir-safer (Depends-on): Likewise.
10649 * modules/fdopendir (Depends-on): Likewise.
10650 * modules/inet_ntop (Depends-on): Likewise.
10651 * modules/inet_pton (Depends-on): Likewise.
10652 * modules/lchown (Depends-on): Likewise.
10653 * modules/openat (Depends-on): Likewise.
10654 * modules/savewd (Depends-on): Likewise.
10655 * modules/settime (Depends-on): Likewise.
10656 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10658 fts: avoid leaking fds
10659 * modules/fts (Depends-on): Add cloexec.
10660 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10663 fts: make directory fds more robust
10664 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10665 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10667 backupfile, chdir-long, fts, savedir: make safer
10668 * lib/backupfile.c (includes): Use "dirent--.h", since
10669 numbered_backup can write to stderr during readdir.
10670 * lib/savedir.c (includes): Likewise.
10671 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10672 emulation can write to stderr on failure.
10673 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10674 * lib/getcwd.c: Document why opendir_safer is unused.
10675 * lib/glob.c: Likewise.
10676 * lib/scandir.c: Likewise.
10677 * lib/openat-proc.c: Likewise, for open_safer.
10678 * modules/backupfile (Depends-on): Add dirent-safer.
10679 * modules/savedir (Depends-on): Likewise.
10680 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10681 * modules/chdir-long (Depends-on): Add openat-safer.
10683 openat-safer: new module
10684 * modules/openat-safer: New file.
10685 * lib/openat-safer.c: Likewise.
10686 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10687 * lib/fcntl-safer.h (openat_safer): Declare.
10688 * lib/fcntl--.h (openat): Override.
10689 * MODULES.html.sh (File descriptor based I/O): Mention it.
10690 * lib/openat.h: Add double-inclusion guards.
10691 * lib/openat.c (includes): Only include "fcntl-safer.h", not
10692 "fcntl--.h", so we can implement openat.
10693 * modules/openat-safer-tests: New test.
10694 * tests/test-openat-safer.c: New file.
10696 dirent-safer: new module
10697 * modules/dirent-safer: New file.
10698 * lib/dirent--.h: Likewise.
10699 * lib/dirent-safer.h: Likewise.
10700 * lib/opendir-safer.c: Likewise.
10701 * m4/dirent-safer.m4: Likewise.
10702 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10703 * modules/dirent-safer-tests: New test.
10704 * tests/test-dirent-safer.c: New file.
10705 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10707 fdopendir: optimize on mingw
10708 * lib/unistd.in.h (_gl_directory_name): New prototype.
10709 * lib/fchdir.c (_gl_directory_name): Implement it.
10710 (fchdir): Use it to simplify implementation.
10711 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10712 fchdir, when available, to avoid calling [f]chdir().
10714 fdopendir: split into its own module
10715 * lib/openat.c (fdopendir): Move...
10716 * lib/fdopendir.c: ...into new file.
10717 * modules/fdopendir: New module.
10718 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10719 * modules/openat (Depends-on): Add fdopendir.
10720 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10722 * modules/savedir (Depends-on): Only need fdopendir, not full
10724 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10725 * lib/openat.h (fdopendir): Drop prototype.
10726 * lib/dirent.in.h (fdopendir): Provide prototype.
10727 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10728 * modules/dirent (Makefile.am): Substitute them.
10729 * MODULES.html.sh (File system functions): Mention it.
10730 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10731 * modules/fdopendir-tests: New file.
10732 * tests/test-fdopendir.c: Likewise.
10734 fchdir: use more consistent macro convention
10735 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10736 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10737 REPLACE_FCHDIR, rather than relying on config.h macros.
10738 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10739 inside a single make-time REPLACE_FCHDIR block, rather than using
10740 the config.h FCHDIR_REPLACEMENT.
10741 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10742 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
10743 Manage fstat replacement.
10744 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10746 * modules/sys_stat (Files): Add m4/unistd_h.m4.
10747 (Makefile.am): Substitute REPLACE_FCHDIR.
10748 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10749 FCHDIR_REPLACEMENT.
10750 * lib/dup-safer.c (dup_safer): Likewise.
10751 * lib/dup2.c (rpl_dup2): Likewise.
10752 * lib/dup3.c (rpl_dup3): Likewise.
10753 * lib/open.c (rpl_open): Likewise.
10755 fchdir: simplify error handling, and support dup3
10756 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
10757 stdbool, malloc-posix, realloc-posix.
10758 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10759 (ensure_dirs_slot): Return false on allocation failure.
10760 (rpl_dup2): Delete.
10761 (_gl_register_dup): New function.
10762 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10763 (_gl_register_fd): Close fd on allocation failure.
10764 * lib/fcntl.in.h (_gl_register_fd): Update signature.
10765 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10767 (rpl_dup2_fchdir): Delete prototype.
10768 * lib/open.c (open): Update caller.
10769 * lib/dup2.c (dup2): Track fchdir metadata.
10770 * lib/dup3.c (dup3): Likewise.
10771 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10772 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10774 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10776 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10777 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10778 don't pass arguments to AC_OUTPUT.
10780 2009-09-02 Bruno Haible <bruno@clisp.org>
10782 * modules/mkdtemp (License): Relicense under LGPLv2+.
10783 Reported by Paolo Bonzini.
10785 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10787 Replace uses of obsolete autoconf macros in Jim's modules.
10788 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10789 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10790 can evoke a warning from autoconf when run with -Wobsolete
10791 enabled. They were declared obsolete for good reasons (see
10792 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10793 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10794 should not continue using the deprecated macros.
10795 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10796 obsolete Autoconf macros with modern counterparts.
10797 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10798 * m4/dos.m4 (gl_AC_DOS): Likewise.
10799 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10800 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10801 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10802 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10803 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10804 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10805 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10806 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10807 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10809 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10810 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10811 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10812 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10813 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10814 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10816 2009-09-01 Eric Blake <ebb9@byu.net>
10818 fchdir: fix off-by-one bug in previous patch
10819 * lib/fchdir.c (rpl_fstat): Use correct bounds.
10820 (_gl_unregister_fd): Delete useless if.
10822 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
10824 maint.mk: sort the list of syntax-check rules
10825 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10826 easier to get a sense of progress when the rules are run sequentially
10827 and take a long time.
10829 2009-09-01 Simon Josefsson <simon@josefsson.org>
10831 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10832 * modules/netinet_in: Likewise.
10833 * modules/sys_file: Likewise.
10834 * modules/sys_ioctl: Likewise.
10835 * modules/sys_select: Likewise.
10836 * modules/sys_socket: Likewise.
10837 * modules/sys_stat: Likewise.
10838 * modules/sys_time: Likewise.
10839 * modules/sys_times: Likewise.
10840 * modules/sys_utsname: Likewise.
10841 * modules/sys_wait: Likewise.
10843 2009-09-01 Jim Meyering <meyering@redhat.com>
10845 fts: help ensure that return values are not ignored
10846 * lib/fts_.h (__GNUC_PREREQ): Define.
10847 (__attribute_warn_unused_result__): Define.
10848 (fts_children, fts_close, fts_open, fts_read): Declare with
10849 __attribute_warn_unused_result__.
10851 fts: fts_close now fails also when closing a dir file descriptor fails
10852 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10853 and propagate to caller, along with errno.
10855 announce-gen: correct formatting in --help output
10856 * build-aux/announce-gen (usage): Move the one-line description in
10857 --help output "up", to where it belongs, just after Usage:.
10859 2009-08-31 Eric Blake <ebb9@byu.net>
10861 fchdir: port to mingw
10862 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10863 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10864 opened, then use a substitute.
10865 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10867 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10868 (_gl_register_fd): No need to check stat if open already filters
10870 (fchdir): Fix error condition to match POSIX.
10871 * modules/fchdir (Depends-on): Add sys_stat.
10872 * doc/posix-functions/open.texi (open): Document the limitation.
10873 * modules/fchdir-tests: New file.
10874 * tests/test-fchdir.c: Likewise.
10876 canonicalize: allow cross-testing from cygwin to mingw
10877 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10878 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10879 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10881 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10882 target does not support symlinks.
10883 * tests/test-canonicalize-lgpl.sh: Likewise.
10885 chown: avoid compilation warning on mingw
10886 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10887 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10889 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10890 * modules/chown (Depends-on): Add errno.
10892 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
10894 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10897 2009-08-31 Jim Meyering <meyering@redhat.com>
10899 canonicalize: remove useless initialization
10900 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10901 initialization of local, "end".
10903 2009-08-30 Bruno Haible <bruno@clisp.org>
10905 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10906 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10909 2009-08-30 Bruno Haible <bruno@clisp.org>
10911 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10912 /usr/xpg4/bin/tr when it exists.
10913 * tests/test-pipe-filter-gi1.sh: Likewise.
10915 2009-08-30 Bruno Haible <bruno@clisp.org>
10917 Work around deficient /usr/bin/id program on Solaris.
10918 * tests/test-file-has-acl.sh (ID): New variable.
10919 * tests/test-set-mode-acl.sh (ID): Likewise.
10920 * tests/test-copy-acl.sh (ID): Likewise.
10921 * tests/test-copy-file.sh (ID): Likewise.
10923 2009-08-30 Bruno Haible <bruno@clisp.org>
10925 New module 'xstriconveh'.
10926 * lib/xstriconveh.h: New file.
10927 * lib/xstriconveh.c: New file.
10928 * modules/xstriconveh: New file.
10930 2009-08-30 Bruno Haible <bruno@clisp.org>
10932 Make it easier to use mem_cd_iconveh.
10933 * lib/striconveh.h (iconveh_t): New type.
10934 (iconveh_open, iconveh_close): New declarations.
10935 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10936 with a single 'const iconveh_t *' argument.
10937 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10938 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10939 with a single 'const iconveh_t *' argument.
10940 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10941 * tests/test-striconveh.c (main): Update.
10942 * NEWS: Mention the change.
10944 2009-08-30 Bruno Haible <bruno@clisp.org>
10946 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10949 2009-08-30 Bruno Haible <bruno@clisp.org>
10951 Work around iconv_open problem on Solaris.
10952 * lib/iconv_open-solaris.gperf: New file.
10953 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10954 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10955 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10956 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10957 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10958 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10960 2009-08-29 Jim Meyering <meyering@redhat.com>
10962 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10963 * top/maint.mk (cvs-check): Remove target; it was just an alias
10964 to the better-named vc-diff-check.
10965 (maintainer-distcheck): Remove rule. It was used only from
10966 the (alpha/beta/major) target, and all of its commands but one
10967 were coreutils-specific.
10968 (vc-dist): Remove rule.
10969 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10970 Run vc-diff-check, not vc-dist.
10971 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
10973 2009-08-27 Bruno Haible <bruno@clisp.org>
10975 * tests/test-bitrotate.c (main): Remove test that uses a shift count
10978 2009-08-27 Bruno Haible <bruno@clisp.org>
10980 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10982 * doc/func.texi: Document the SunPRO C bug.
10984 2009-08-27 Bruno Haible <bruno@clisp.org>
10986 Fix link error on Solaris.
10987 * tests/test-parse-duration.c (xstrdup): Remove function.
10989 2009-08-26 Pádraig Brady <P@draigbrady.com>
10991 ignore-value: handle pointer types, too
10992 * lib/ignore-value.h (__attribute__): Remove definition.
10993 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10994 of a more concise and more-often effective "(void) i" statement.
10995 (ignore_ptr): New function to suppress warnings from functions that
10996 return pointers, and to make it explicit that one function doesn't
10999 2009-08-25 Bruno Haible <bruno@clisp.org>
11001 dup2: work around a Linux bug.
11002 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11003 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11004 * doc/posix-functions/dup2.texi: Mention the Linux bug.
11005 Reported by Simon Josefsson.
11007 2009-08-25 Jim Meyering <meyering@redhat.com>
11009 libguestfs uses gnulib
11010 * users.txt: Add libguestfs.
11012 2009-08-24 Eric Blake <ebb9@byu.net>
11014 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11015 * lib/pipe2.c (includes): Add binary-io.h.
11016 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11018 2009-08-24 Bruno Haible <bruno@clisp.org>
11020 Tolerate declared but missing accept4 syscall.
11021 * lib/accept4.c (accept4): Invoke original accept4 function first, if
11023 * lib/sys_socket.in.h (accept4): If the function is already present,
11025 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11026 * modules/accept4 (Makefile.am): Compile accept4.c always.
11027 Reported by Paolo Bonzini and Eric Blake.
11029 2009-08-23 Bruno Haible <bruno@clisp.org>
11031 New module 'accept4'.
11032 * lib/sys_socket.in.h (accept4): New declaration.
11033 * lib/accept4.c: New file.
11034 * m4/accept4.m4: New file.
11035 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11036 GNULIB_ACCEPT4, HAVE_ACCEPT4.
11037 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11039 * modules/accept4: New file.
11040 * doc/glibc-functions/accept4.texi: Mention the new module.
11042 2009-08-24 Jim Meyering <meyering@redhat.com>
11044 progname: also set global program_invocation_name, when possible
11045 Before this change, a libtool-enabled program that calls glibc's
11046 error function would report the program name as
11047 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11048 * modules/progname (configure.ac): Check for a declaration of
11049 program_invocation_name.
11050 * lib/progname.c: Include <errno.h>.
11051 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11052 Set program_invocation_name.
11054 2009-08-23 Bruno Haible <bruno@clisp.org>
11056 * lib/dup3.c: Include <string.h>.
11058 2009-08-23 Bruno Haible <bruno@clisp.org>
11060 * lib/dup3.c (dup3): Test only once whether the system actually exists.
11061 * lib/pipe2.c (pipe2): Likewise.
11062 Suggested by Eric Blake.
11064 2009-08-23 Bruno Haible <bruno@clisp.org>
11066 Tolerate declared but missing dup3 syscall.
11067 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11068 * lib/unistd.in.h (dup3): If the function is already present,
11070 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11071 * modules/dup3 (Makefile.am): Compile dup3.c always.
11072 Reported by Paolo Bonzini.
11074 2009-08-23 Bruno Haible <bruno@clisp.org>
11076 Tolerate declared but missing pipe2 syscall.
11077 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11079 * lib/unistd.in.h (pipe2): If the function is already present,
11081 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11082 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11083 Reported by Paolo Bonzini.
11085 2009-08-23 Bruno Haible <bruno@clisp.org>
11087 * lib/pipe2.c (pipe2): Move #ifs inside function.
11089 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
11091 quotearg: document limitations of quote_these_too
11092 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11093 those limitations are created.
11094 * lib/quotearg.h (set_char_quoting): Document that digits and
11095 letters that are special after backslash are not permitted.
11096 (quotearg_char): Cross-reference set_char_quoting documentation.
11098 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
11100 quotearg: implement custom_quoting_style
11101 * lib/quotearg.c: (struct quoting_options): Add left_quote and
11102 right_quote fields.
11103 (set_custom_quoting): New public function.
11104 (quotearg_buffer_restyled): Add left_quote and right_quote
11105 arguments, handle them very much like locale quoting, and update
11107 (quotearg_n_custom): New public function.
11108 (quotearg_n_custom_mem): New public function.
11109 (quotearg_custom): New public function.
11110 (quotearg_custom_mem): New public function.
11111 * lib/quotearg.h: Prototype and document new public functions.
11112 (enum quoting_style): For escape_quoting_style and
11113 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11114 ignored even though they're otherwise like c_quoting_style.
11115 Add custom_quoting_style member and document with comparison to
11116 clocale_quoting_style.
11117 * tests/test-quotearg.c (custom_quotes): New array.
11118 (custom_results): New array.
11119 (main): Extend to test custom quoting.
11121 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
11123 quotearg: fix right quote escaping when it's in quote_these_too
11124 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11125 quote, be sure to prepend only one backslash.
11126 * tests/test-quotearg.c (use_quote_double_quotes): New function.
11129 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
11131 quotearg-tests: test escaping of embedded locale quotes
11132 * tests/test-quotearg.c (struct result_strings): Add member for
11134 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11135 (inputs): Add new input.
11136 (results_g): Add expected results.
11137 (flag_results): Likewise.
11138 (locale_results): Likewise.
11139 (compare_strings): Check those.
11141 2009-08-23 Bruno Haible <bruno@clisp.org>
11143 Tests for module 'dup3'.
11144 * modules/dup3-tests: New file.
11145 * tests/test-dup3.c: New file.
11148 * lib/unistd.in.h (dup3): New declaration.
11149 * lib/dup3.c: New file.
11150 * m4/dup3.m4: New file.
11151 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11153 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11154 * modules/dup3: New file.
11155 * doc/glibc-functions/dup3.texi: Mention the new module.
11157 2009-08-23 Bruno Haible <bruno@clisp.org>
11159 Tweak the dup2 test.
11160 * tests/test-dup2.c (main): Create the test file empty. Verify that an
11161 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11162 the test file is still empty. Fix argument order of lseek.
11164 2009-08-23 Bruno Haible <bruno@clisp.org>
11166 Avoid test link errors when the modules getopt-gnu, gettext are used.
11167 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11168 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11170 2009-08-23 Bruno Haible <bruno@clisp.org>
11172 Fix getdtablesize() on mingw.
11173 * lib/getdtablesize.c (getdtablesize): Implement differently.
11174 * lib/unistd.in.h (getdtablesize): Improve comment.
11176 2009-08-23 Bruno Haible <bruno@clisp.org>
11178 New module 'mkostemp'.
11179 Based on Ulrich Drepper's 2007-08-10 change in glibc.
11180 * lib/stdlib.in.h (mksotemp): New declaration.
11181 * lib/mkostemp.c: New file, from glibc with modifications.
11182 * lib/tempname.h (GT_FILE): Remove outdated comment.
11183 (gen_tempname): Add flags argument.
11184 * lib/tempname.c (__GT_BIGFILE): Remove macro.
11185 (__GT_FILE): Map to 1.
11186 (small_open, large_open): Remove macros.
11187 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11188 * lib/mkstemp.c (mkstemp): Update.
11189 * lib/mkdtemp.c (mkdtemp): Likewise.
11190 * m4/mkostemp.m4: New file.
11191 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11193 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11195 * modules/mkostemp: New file, based on modules/mkstemp.
11196 * doc/glibc-functions/mkostemp.texi: Mention the new module.
11197 * NEWS: Mention the change.
11199 2009-08-23 Bruno Haible <bruno@clisp.org>
11201 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11202 Reported by Eric Blake.
11204 2009-08-23 Bruno Haible <bruno@clisp.org>
11206 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11207 Reported by Eric Blake.
11209 2009-08-23 Bruno Haible <bruno@clisp.org>
11211 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11212 * modules/pipe2 (Depends-on): Likewise.
11214 2009-08-23 Eric Blake <ebb9@byu.net>
11216 fcntl-h: add O_TTY_INIT support
11217 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11218 * tests/test-fcntl-h.c (o): Test it.
11219 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11221 fcntl-h: rename from fcntl, in preparation for fcntl(2)
11222 * modules/fcntl: Move <fcntl.h> header replacement...
11223 * modules/fcntl-h: ...to new name, so as not to collide with
11224 like-named function.
11225 * tests/test-fcntl.c: Rename...
11226 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
11227 * modules/fcntl-tests: Rename...
11228 * modules/fcntl-h-tests: ...to this. Update test file name.
11229 * modules/chdir-long (Depends-on): Update clients.
11230 * modules/chdir-safer (Depends-on): Likewise.
11231 * modules/fcntl-safer (Depends-on): Likewise.
11232 * modules/fts (Depends-on): Likewise.
11233 * modules/mkancesdirs (Depends-on): Likewise.
11234 * modules/mkdir-p (Depends-on): Likewise.
11235 * modules/open (Depends-on): Likewise.
11236 * modules/savewd (Depends-on): Likewise.
11237 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11238 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11240 2009-08-22 Bruno Haible <bruno@clisp.org>
11242 * modules/binary-io (License): Relicense under LGPL.
11243 * modules/pipe2 (License): Likewise.
11245 2009-08-22 Bruno Haible <bruno@clisp.org>
11247 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11249 * lib/pipe-filter-gi.c (filter_init): Likewise.
11250 Reported by Eric Blake.
11252 2009-08-22 Bruno Haible <bruno@clisp.org>
11254 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11255 * modules/pipe (Depends-on): Add pipe2.
11257 2009-08-22 Bruno Haible <bruno@clisp.org>
11259 Tests for module 'pipe2'.
11260 * modules/pipe2-tests: New file.
11261 * tests/test-pipe2.c: New file.
11263 New module 'pipe2'.
11264 * lib/unistd.in.h (pipe2): New declaration.
11265 * lib/pipe2.c: New file.
11266 * m4/pipe2.m4: New file.
11267 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11269 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11270 * modules/pipe2: New file.
11271 * doc/glibc-functions/pipe2.texi: Mention the new module.
11273 2009-08-22 Bruno Haible <bruno@clisp.org>
11275 Reference some new glibc functions.
11276 * doc/glibc-functions/accept4.texi: New file.
11277 * doc/glibc-functions/dup3.texi: New file.
11278 * doc/glibc-functions/mkostemp.texi: New file.
11279 * doc/glibc-functions/pipe2.texi: New file.
11280 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11281 (Glibc sys/socket.h): Refer to accept4.
11282 (Glibc unistd.h): Refer to dup3, pipe2.
11283 Reported by Eric Blake.
11285 2009-08-22 Jim Meyering <meyering@redhat.com>
11286 Bruno Haible <bruno@clisp.org>
11288 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11289 This makes it so packages using automake-1.11's silent-rules option
11290 can print e.g., a single "GEN configmake.h" line, rather than
11291 the 30+ statements that perform the job. If you want to see the
11292 actual commands, you can still run "make V=1".
11293 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11294 so that make output is abbreviated when those variables are defined
11296 * modules/argz: Likewise.
11297 * modules/arpa_inet: Likewise.
11298 * modules/byteswap: Likewise.
11299 * modules/configmake: Likewise.
11300 * modules/dirent: Likewise.
11301 * modules/errno: Likewise.
11302 * modules/fcntl: Likewise.
11303 * modules/float: Likewise.
11304 * modules/fnmatch: Likewise.
11305 * modules/getopt-posix: Likewise.
11306 * modules/glob: Likewise.
11307 * modules/iconv_open: Likewise.
11308 * modules/inttypes: Likewise.
11309 * modules/localcharset: Likewise.
11310 * modules/locale: Likewise.
11311 * modules/math: Likewise.
11312 * modules/netdb: Likewise.
11313 * modules/netinet_in: Likewise.
11314 * modules/poll: Likewise.
11315 * modules/posix_spawnp-tests: Likewise.
11316 * modules/sched: Likewise.
11317 * modules/search: Likewise.
11318 * modules/selinux-h: Likewise.
11319 * modules/signal: Likewise.
11320 * modules/spawn: Likewise.
11321 * modules/stdarg: Likewise.
11322 * modules/stdbool: Likewise.
11323 * modules/stddef: Likewise.
11324 * modules/stdint: Likewise.
11325 * modules/stdio: Likewise.
11326 * modules/stdlib: Likewise.
11327 * modules/string: Likewise.
11328 * modules/strings: Likewise.
11329 * modules/sys_file: Likewise.
11330 * modules/sys_ioctl: Likewise.
11331 * modules/sys_select: Likewise.
11332 * modules/sys_socket: Likewise.
11333 * modules/sys_stat: Likewise.
11334 * modules/sys_time: Likewise.
11335 * modules/sys_times: Likewise.
11336 * modules/sys_utsname: Likewise.
11337 * modules/sys_wait: Likewise.
11338 * modules/sysexits: Likewise.
11339 * modules/time: Likewise.
11340 * modules/unistd: Likewise.
11341 * modules/wchar: Likewise.
11342 * modules/wctype: Likewise.
11344 2009-08-22 Jim Meyering <meyering@redhat.com>
11346 announce-gen: detect write failure
11347 * build-aux/announce-gen: Add Coda at end.
11348 Remove equivalent-but-more-verbose block at top.
11350 2009-08-19 Akim Demaille <demaille@gostai.com>
11352 bootstrap: --help to stdout.
11353 * bootstrap (usage): Don't send --help to stderr.
11354 Use a here doc instead of a long string.
11356 2009-08-21 Eric Blake <ebb9@byu.net>
11358 test-popen-safer: split from test-popen
11359 * tests/test-popen.c (main): Move...
11360 * tests/test-popen.h: ...into new file.
11361 * tests/test-popen-safer2.c: New file.
11362 * modules/popen-tests (Files): Add test-popen.h.
11363 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11364 Suggested by Bruno Haible.
11366 test-fcntl-safer: split from test-open
11367 * tests/test-open.c (main): Move...
11368 * tests/test-open.h: ...into new file.
11369 * tests/test-fcntl-safer.c: New file.
11370 * modules/open-tests (Files): Add test-open.h.
11371 * modules/fcntl-safer-tests: New file.
11372 Suggested by Bruno Haible.
11374 test-fopen-safer: split from test-fopen
11375 * tests/test-fopen.c (main): Move...
11376 * tests/test-fopen.h: ...into new file.
11377 * tests/test-fopen-safer.c: New file.
11378 * modules/fopen-tests (Files): Add test-fopen.h.
11379 * modules/fopen-safer-tests: New file.
11380 Suggested by Bruno Haible.
11382 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
11384 popen-safer: test O_CLOEXEC at run-time.
11385 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11387 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
11389 fcntl: move more flags to the header
11390 * lib/cloexec.c: Do not define FD_CLOEXEC here.
11391 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11392 * lib/fcntl.in.h: Do both things here.
11394 2009-08-21 Jim Meyering <meyering@redhat.com>
11396 consistently remove $@-t before redirecting to it
11397 * modules/argz: Remove $@-t and $@ before redirecting to the former.
11398 * modules/alloca-opt: Likewise.
11399 * modules/byteswap: Likewise.
11400 * modules/fnmatch: Likewise.
11401 * modules/getopt-posix: Likewise.
11402 * modules/glob: Likewise.
11403 * modules/poll: Likewise.
11404 * modules/posix_spawnp-tests: Likewise.
11405 * modules/sys_socket: Likewise.
11406 * modules/sysexits: Likewise.
11408 2009-08-21 Eric Blake <ebb9@byu.net>
11410 popen: simplify access to original popen
11411 * lib/popen.c (rpl_popen): No need to worry about popen being a
11413 Reported by Bruno Haible.
11415 2009-08-20 Eric Blake <ebb9@byu.net>
11417 build: avoid some compiler warnings
11418 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11419 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11421 (new_exclude_segment, excluded_file_pattern_p)
11422 (excluded_file_name_p): Reduce scope.
11423 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11424 old-style declaration.
11426 2009-08-20 Simon Josefsson <simon@josefsson.org>
11428 * tests/test-exclude1.sh: Handle Windows EOL.
11429 * tests/test-exclude2.sh: Likewise.
11430 * tests/test-exclude3.sh: Likewise.
11431 * tests/test-exclude4.sh: Likewise.
11432 * tests/test-exclude5.sh: Likewise.
11433 * tests/test-exclude6.sh: Likewise.
11434 * tests/test-exclude7.sh: Likewise.
11436 2009-08-19 Akim Demaille <demaille@gostai.com>
11438 bootstrap: find sha1sum when named gsha1sum.
11439 * bootstrap (find_tool): New.
11443 2009-08-20 Jim Meyering <meyering@redhat.com>
11445 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11446 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11447 expression that converts "." in a file name to "\." in the resulting
11448 regexp. Start with a dummy statement, so that prior shell variable
11449 definitions are expanded portably. Reported by Simon Josefsson.
11451 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
11453 Fix polling for writeability of a screen buffer.
11454 * lib/poll.c: Distinguish input and screen buffers for the
11455 Win32 implementation.
11456 * lib/select.c: Likewise.
11458 2009-08-19 Eric Blake <ebb9@byu.net>
11460 popen-safer: prevent popen from clobbering std descriptors
11461 * modules/popen-safer: New file.
11462 * lib/popen-safer.c: Likewise.
11463 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11464 * lib/stdio--.h (popen): Provide override.
11465 * lib/stdio-safer.h (popen_safer): Provide declaration.
11466 * tests/test-popen.c (includes): Partially test this.
11467 * modules/popen-safer-tests: New file, for more tests.
11468 * tests/test-popen-safer.c: Likewise.
11469 * MODULES.html.sh (file stream based Input/Output): Mention it.
11471 tests: test some of the *-safer modules
11472 * modules/fopen-safer (Depends-on): Add fopen.
11473 * modules/fcntl-safer (Depends-on): Add fcntl.
11474 * modules/stdlib-safer (Depends-on): Add stdlib.
11475 (configure.ac): Set indicator.
11476 * modules/unistd-safer (configure.ac): Likewise.
11477 * modules/tmpfile-safer (configure.ac): Likewise.
11478 (Depends-on): Add tmpfile.
11479 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11481 * tests/test-fopen.c (includes): Test safer versions when they are
11483 * tests/test-open.c (includes): Likewise.
11485 popen: fix cygwin 1.5 bug when stdin closed
11486 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11487 * modules/popen: New file.
11488 * modules/popen-tests: Likewise.
11489 * tests/test-popen.c: Likewise.
11490 * m4/popen.m4: Likewise.
11491 * lib/popen.c: Likewise.
11492 * lib/stdio.in.h (popen): New declaration.
11493 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11494 * modules/stdio (Makefile.am): Likewise.
11495 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11497 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
11499 maint.mk: give full control over update-copyright exclusions
11500 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11501 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11502 (update-copyright): Don't force inclusion of top-level
11503 ChangeLog. Don't force exclusion of all COPYING files, but make
11504 them the default exclusion instead.
11506 2009-08-16 Bruno Haible <bruno@clisp.org>
11508 Fix test failures on Solaris 10.
11509 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11510 tests when Solaris iconv() is used.
11511 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11512 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11513 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11514 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11515 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11517 2009-08-16 Bruno Haible <bruno@clisp.org>
11519 Fix test failures on Solaris 10.
11520 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11521 'tr' program and pass it as first argument.
11522 * tests/test-pipe-filter-gi1.sh: Likewise.
11523 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11524 program as first argument.
11525 * tests/test-pipe-filter-gi1.c (main): Likewise.
11527 2009-08-16 Eric Blake <ebb9@byu.net>
11529 fpurge: fix previous commits
11530 * modules/fpurge (Makefile.am): Make replacement conditional,
11531 partially reverting 2007-04-29 change; missed in previous
11533 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11536 2009-08-16 Bruno Haible <bruno@clisp.org>
11538 Clarify fpurge's effect on the file position.
11539 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11540 * tests/test-fpurge.c (main): Make a second pass for checking the file
11543 2009-08-16 Bruno Haible <bruno@clisp.org>
11545 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11546 declaration of fpurge is missing.
11547 * tests/test-fpurge.c (main): Check that the file has not more contents
11548 than expected. Close the file before removing it.
11550 2009-08-15 Eric Blake <ebb9@byu.net>
11552 fpurge: don't wrap working cygwin implementation
11553 * lib/fpurge.c (fpurge): Fix comment typo.
11554 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11555 1.7 to avoid replacement.
11556 * tests/test-fpurge.c (main): Enhance test.
11558 2009-08-15 Eric Blake <ebb9@byu.net>
11559 and Jim Meyering <meyering@redhat.com>
11561 test-update-copyright: skip if perl is insufficient
11562 * tests/test-update-copyright.sh: Failure to run maintainer tool
11563 should not cause testsuite failure on cygwin 1.5.
11565 2009-08-14 Eric Blake <ebb9@byu.net>
11567 doc: mention more functions added in cygwin 1.7.0
11568 * doc/posix-headers/limits.texi (limits.h): Update for recent
11570 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11571 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11572 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11573 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11574 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11576 2009-08-14 Eric Blake <ebb9@byu.net>
11578 maint.mk: simplify update-copyright rule
11579 * top/maint.mk (update-copyright-local): Delete, and document how
11580 to do it in cfg.mk instead.
11581 (update-copyright-exclude-regexp): Delete, and document how to do
11582 it in .x-update-copyright instead.
11583 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
11586 2009-08-14 Bruno Haible <bruno@clisp.org>
11588 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11590 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11592 maint.mk: support update-copyright-env
11593 * top/maint.mk (update-copyright-env): Define place-holder.
11594 (update-copyright): Expand $(update-copyright-env) before
11595 invoking update-copyright.
11597 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11599 update-copyright: implement forced reformatting
11600 * build-aux/update-copyright: Implement and document
11601 UPDATE_COPYRIGHT_FORCE.
11602 * tests/test-update-copyright.sh: Test it.
11604 2009-08-14 Eric Blake <ebb9@byu.net>
11605 and Bruno Haible <bruno@clisp.org>
11607 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11608 * tests/test-locale.c: Revert previous patch related to NULL.
11609 * tests/test-stdio.c: Likewise.
11610 * tests/test-stdlib.c: Likewise.
11611 * tests/test-string.c: Likewise.
11612 * tests/test-unistd.c: Likewise.
11613 * modules/time-tests (Depends-on): Add verify.
11614 * modules/wchar-tests (Depends-on): Likewise.
11615 * tests/test-time.c: Test for NULL compliance.
11616 * tests/test-wchar.c: Likewise.
11617 * modules/locale (Depends-on): Add stddef.
11618 * modules/stdio (Depends-on): Likewise.
11619 * modules/stdlib (Depends-on): Likewise.
11620 * modules/string (Depends-on): Likewise.
11621 * modules/time (Depends-on): Likewise.
11622 * modules/unistd (Depends-on): Likewise.
11623 * modules/wchar (Depends-on): Likewise.
11624 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11625 * lib/stdlib.in.h (includes): Likewise.
11626 * lib/string.in.h (includes): Likewise.
11627 * lib/time.in.h (includes): Likewise.
11628 * lib/unistd.in.h (includes): Likewise.
11629 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11631 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11632 * m4/stddef_h.m4: New file.
11633 * modules/stddef: Likewise.
11634 * lib/stddef.in.h: Likewise.
11635 * modules/stddef-tests: Likewise.
11636 * tests/test-stddef.c: Likewise.
11637 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11638 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11639 * doc/posix-headers/locale.texi (locale.h): Likewise.
11640 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11641 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11642 * doc/posix-headers/string.texi (string.h): Likewise.
11643 * doc/posix-headers/time.texi (time.h): Likewise.
11644 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11645 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11647 2009-08-14 Eric Blake <ebb9@byu.net>
11649 doc: improve git diff of texinfo files
11650 * .gitattributes: Add rule for *.texi files, with hint on how to
11652 Copied from m4, and based on a report by Bruno Haible.
11654 2009-08-14 Bruno Haible <bruno@clisp.org>
11656 Disable multithread support by default on Cygwin 1.5.x for real.
11657 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11659 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11661 update-copyright: much ado about intervals
11662 * build-aux/update-copyright: Implement and document
11663 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11664 of copyright year intervals.
11665 Also, document UPDATE_COPYRIGHT_YEAR.
11666 * tests/test-update-copyright.sh: Test it.
11668 update-copyright: convert 2-digit to 4-digit years
11669 * build-aux/update-copyright: Implement and document.
11670 * tests/test-update-copyright.sh: Update.
11672 2009-08-14 Jim Meyering <meyering@redhat.com>
11674 test-exclude: avoid coreutils "make check" failure
11675 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11676 just as in test-argmatch.c.
11678 2009-08-13 Eric Blake <ebb9@byu.net>
11680 test-dup2: fix bad assumption
11681 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11682 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11684 test-version-etc: fix CRLF portability issue
11685 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11687 * tests/test-argp-version-etc-1.sh: Likewise.
11689 getopt: update client modules
11690 * modules/argp (Depends-on): Use getopt-gnu.
11691 * modules/git-merge-changelog (Depends-on): Likewise.
11692 * modules/long-options (Depends-on): Likewise.
11693 * modules/xstrtol (Depends-on): Likewise.
11695 2009-08-13 Simon Josefsson <simon@josefsson.org>
11697 * tests/test-version-etc.sh: Don't fail on different
11698 project/version. Don't fail on CRLF differences. Rewrite to use
11699 multiple -e instead of multiple sed forks, suggested by Eric Blake
11701 * tests/test-argp-version-etc-1.sh: Likewise.
11703 2009-08-13 Simon Josefsson <simon@josefsson.org>
11705 * tests/test-version-etc.sh: Don't fail on different
11708 2009-08-12 Bruno Haible <bruno@clisp.org>
11710 Tests for modules 'getopt-posix', 'getopt-gnu'.
11711 * modules/getopt-posix-tests: New file.
11712 * tests/test-getopt.c: New file.
11713 * tests/test-getopt.h: New file.
11714 * tests/test-getopt_long.h: New file.
11716 New modules 'getopt-posix', 'getopt-gnu'.
11717 * modules/getopt-gnu: New file, renamed from modules/getopt.
11718 * modules/getopt-posix: New file.
11719 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11720 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11721 (gl_GETOPT): Remove macro.
11722 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11723 Disable the test against BSD systems that declare optreset. Test
11724 against mingw bug. Test against lack of support of optional arguments
11726 * doc/glibc-headers/getopt.texi: Update module name and list of
11727 relevant platforms.
11728 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11729 'getopt-gnu' and more portability problems.
11730 * NEWS: Mention the changes.
11732 2009-08-12 Bruno Haible <bruno@clisp.org>
11734 Ensure that optarg etc. get declared by <unistd.h>.
11735 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11736 AC_USE_SYSTEM_EXTENSIONS.
11737 * modules/getopt (Depends-on): Add 'extensions'.
11739 2009-08-12 Bruno Haible <bruno@clisp.org>
11741 Avoid test link errors.
11742 * modules/pipe-filter-ii-tests (Makefile.am): Define
11743 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11744 * modules/pipe-filter-gi-tests (Makefile.am): Define
11745 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11746 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11748 2009-08-12 Bruno Haible <bruno@clisp.org>
11750 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11751 gl_GETOPT_SUBSTITUTE before.
11752 (gl_GETOPT): Use it.
11753 * m4/argp.m4 (gl_ARGP): Update.
11754 Reported by Sergey Poznyakoff.
11756 * m4/getopt.m4: Reorder macros.
11757 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11758 (gl_GETOPT_SUBSTITUTE): Remove macro.
11760 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11762 Minor improvement in gitlog-to-changelog
11764 * build-aux/gitlog-to-changelog: New option `--format' makes
11765 output format string configurable.
11767 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11769 Optimize exclude: use hash tables for non-wildcard patterns.
11771 * lib/exclude.c: Include hash.h and mbuiter.h
11772 (struct exclude_pattern, exclude_segment): New data types.
11773 (struct exclude): Rewrite.
11774 (fnmatch_pattern_has_wildcards): New function.
11775 (new_exclude_segment, free_exclude_segment): New functions.
11776 (excluded_file_pattern_p, excluded_file_name_p): New functions.
11777 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11778 * lib/exclude.h (is_fnmatch_pattern): New prototype.
11779 * modules/exclude: Depend on hash and mbuiter.
11781 * modules/exclude-tests: New file.
11782 * tests/test-exclude.c: New file.
11783 * tests/test-exclude1.sh: New file.
11784 * tests/test-exclude2.sh: New file.
11785 * tests/test-exclude3.sh: New file.
11786 * tests/test-exclude4.sh: New file.
11787 * tests/test-exclude5.sh: New file.
11788 * tests/test-exclude6.sh: New file.
11789 * tests/test-exclude7.sh: New file.
11791 2009-08-12 Bruno Haible <bruno@clisp.org>
11793 Ensure that getopt() gets declared by <unistd.h>.
11794 * lib/unistd.in.h: Conditionally include getopt.h.
11795 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11796 Set GNULIB_UNISTD_H_GETOPT.
11797 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11798 GNULIB_UNISTD_H_GETOPT.
11799 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11801 2009-08-12 Bruno Haible <bruno@clisp.org>
11804 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11805 gl_replace_getopt instead of GETOPT_H.
11807 2009-08-12 Bruno Haible <bruno@clisp.org>
11809 * m4/getopt.m4: Add comments.
11811 2009-08-12 Bruno Haible <bruno@clisp.org>
11813 Disable multithread support by default on Cygwin 1.5.x.
11814 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11815 set gl_use_threads=no if not specified otherwise.
11817 2009-08-11 Bruno Haible <bruno@clisp.org>
11819 Avoid compilation error on NetBSD 5.0.
11820 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11821 * tests/test-stdio.c: Likewise.
11822 * tests/test-stdlib.c: Likewise.
11823 * tests/test-string.c: Likewise.
11824 * tests/test-unistd.c: Likewise.
11825 Reported by Greg Troxel <gdt@ir.bbn.com>
11826 at <https://savannah.gnu.org/support/?106973>.
11828 2009-08-11 Bruno Haible <bruno@clisp.org>
11830 * modules/dup2-tests (Depends-on): Remove close.
11832 Undo 2009-07-19 commit.
11833 * modules/acl-tests (Depends-on): Remove close.
11834 * modules/binary-io-tests (Depends-on): Likewise.
11835 * modules/closein-tests (Depends-on): Likewise.
11836 * modules/flock-tests (Depends-on): Likewise.
11837 * modules/fsync-tests (Depends-on): Likewise.
11838 * modules/lseek-tests (Depends-on): Likewise.
11839 * modules/pipe-tests (Depends-on): Likewise.
11840 * modules/posix_spawn-tests (Depends-on): Likewise.
11841 * modules/posix_spawnp-tests (Depends-on): Likewise.
11842 * modules/stat-time-tests (Depends-on): Likewise.
11843 * modules/yesno-tests (Depends-on): Likewise.
11845 2009-08-10 Bruno Haible <bruno@clisp.org>
11847 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11849 2009-08-10 Bruno Haible <bruno@clisp.org>
11852 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11854 2009-08-10 Bruno Haible <bruno@clisp.org>
11856 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11857 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11858 not only the first time.
11859 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11860 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11861 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11862 is 1, not only the the first time.
11864 2009-08-10 Bruno Haible <bruno@clisp.org>
11866 Make it possible to use module 'gethostname' without module 'close'.
11867 * lib/unistd.in.h (close): Evoke a link error only if
11868 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11869 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11870 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11871 * modules/unistd (Makefile.am): Substitute
11872 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11873 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11874 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11875 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11876 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11877 * modules/sys_ioctl (Makefile.am): Substitute
11878 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11879 * modules/socket (configure.ac): On native Windows, set
11880 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11881 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11882 Reported by Sam Steingold <sds@gnu.org>.
11884 2009-08-10 Bruno Haible <bruno@clisp.org>
11886 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11887 * modules/ioctl (configure.ac): Likewise.
11889 2009-08-10 Bruno Haible <bruno@clisp.org>
11891 Avoid collision between gnulib wrapper and libintl wrapper.
11892 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11893 already defined in intl/printf.c.
11894 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11895 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11897 2009-08-09 Bruno Haible <bruno@clisp.org>
11899 Make <sys/select.h> really self-contained, also on Solaris 10.
11900 * lib/sys_select.in.h: Include <string.h>.
11901 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11902 Solaris 10 problem.
11903 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11904 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11905 Reported by Jim Meyering.
11907 2009-08-09 Bruno Haible <bruno@clisp.org>
11909 Avoid warnings from 'aclocal' that are due to a use of macro name
11910 AM_XGETTEXT_OPTION that is not defined in automake.
11911 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11913 * modules/error (configure.ac): Likewise.
11914 * modules/propername (configure.ac): Likewise.
11915 * modules/vasprintf (configure.ac): Likewise.
11916 * modules/verror (configure.ac): Likewise.
11917 * modules/xprintf (configure.ac): Likewise.
11918 * modules/xvasprintf (configure.ac): Likewise.
11920 2009-08-08 Bruno Haible <bruno@clisp.org>
11922 Avoid compilation error in C++ mode.
11923 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11924 Reported by Sam Steingold <sds@gnu.org>.
11926 2009-08-08 Bruno Haible <bruno@clisp.org>
11928 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11929 for the various Unix platforms.
11930 * doc/posix-headers/limits.texi: Update platforms list regarding
11932 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11934 2009-08-07 Jim Meyering <meyering@redhat.com>
11936 selinux-at: fix typo in a comment
11937 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11938 Spotted by Paolo Bonzini.
11940 selinux-at: remove redundant m4 code, add documentation
11941 * modules/selinux-at (configure.ac): Remove redundant code.
11942 LIB_SELINUX is already set via the dependent module, selinux-h.
11943 (Include): Add quotes around selinux-at.h.
11944 * lib/selinux-at.h: Add documentation.
11945 Reported by Bruno Haible in
11946 http://marc.info/?l=gnulib-bug&m=124958988300749
11948 2009-08-07 Bruno Haible <bruno@clisp.org>
11950 Avoid link error on MacOS X 10.3 and 10.4.
11951 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11952 on non-ELF systems.
11953 * lib/argp-pv.c (argp_program_version): Likewise.
11954 Reported by Simon Josefsson.
11956 2009-08-07 Simon Josefsson <simon@josefsson.org>
11958 * tests/test-version-etc.sh: Use $EXEEXT.
11960 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
11962 update-copyright: update documentation to point to maint.mk
11963 * build-aux/update-copyright: Here.
11965 2009-08-06 Jim Meyering <meyering@redhat.com>
11967 maint.mk: support update-copyright-local
11968 * top/maint.mk (update-copyright-local): Define place-holder.
11969 (update-copyright): Depend on $(update-copyright-local).
11971 2009-08-06 Jim Meyering <meyering@redhat.com>
11973 selinux-at: new module
11974 Initially written for coreutils, this module will soon be
11975 used by findutils, too.
11976 * MODULES.html.sh [Misc]: Add selinux-at.
11977 * lib/selinux-at.h: New file, from coreutils.
11978 * lib/selinux-at.c: Likewise.
11979 * modules/selinux-at: Likewise.
11980 (License): Change from LGPL to GPL, since it depends
11981 on the GPL'd openat module.
11984 * README: Remove references to cogito.
11985 Remove cvs-repo-updating instructions from 2007.
11986 Don't imply that CVS is better if you have limited disk space.
11988 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11990 update-copyright: support C-style comments
11991 * build-aux/update-copyright: Implement and document.
11992 * tests/test-update-copyright.sh: Test.
11994 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11996 update-copyright: support omitted "(C)"
11997 * build-aux/update-copyright: Implement and document. Also,
11998 allow variable whitespace before "(C)".
11999 * tests/test-update-copyright.sh: Test.
12001 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
12003 update-copyright: don't trip on non-FSF copyright statements
12004 * build-aux/update-copyright: Fix so that the first correctly
12005 formatted FSF copyright statement is recognized no matter what
12006 appears before it. Update documentation.
12007 * tests/test-update-copyright.sh: Test that.
12009 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
12011 update-copyright: clean up code a little
12012 * build-aux/update-copyright: Append "_re" to the name of any
12013 variable holding a regular expression.
12014 Replace "old" and "new" with "stmt" in variable names.
12015 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12017 Format code more consistently.
12019 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
12021 update-copyright-tests: improve portability
12022 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12023 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
12025 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
12027 update-copyright: support @copyright{} and ©
12028 * build-aux/update-copyright: Implement and document.
12029 * tests/test-update-copyright.sh: Test.
12031 2009-08-04 Jim Meyering <meyering@redhat.com>
12033 update-copyright-tests: correctly test EOL=\r\n handling
12034 * tests/test-update-copyright.sh: Put \r at the end of some lines
12035 for the dos-eol tests. Based on a patch by Joel E. Denny.
12037 maint.mk: make update-copyright exclusion list more configurable
12038 * top/maint.mk (update-copyright): Default to excluding COPYING,
12039 but allow an override, in case someone does want to update that file.
12041 maint.mk: don't update copyright date in COPYING
12042 * top/maint.mk (update-copyright): Exclude COPYING.
12044 maint.mk: add a copyright-updating rule
12045 * top/maint.mk (update-copyright): New rule.
12046 Derived from coreutils/Makefile.am.
12048 update-copyright: rename some variables
12049 * build-aux/update-copyright: Rename a few variables for clarity.
12050 Tweak syntax. List Joel E. Denny as coauthor.
12052 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
12054 update-copyright: fix bug for 2-digit last year and add tests
12055 * build-aux/update-copyright: Fix bug.
12056 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12058 * modules/update-copyright-tests: New
12059 * tests/test-update-copyright.sh: New.
12061 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
12063 update-copyright: handle leading tabs in line prefix
12064 * build-aux/update-copyright: Count leading tabs as 8 spaces
12065 when computing margin. This helps with the formatting of
12066 ChangeLogs, for example.
12067 Fix documentation a little.
12069 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
12071 update-copyright: support EOL=\r\n
12072 * build-aux/update-copyright: Implement that.
12074 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
12076 update-copyright: automatically format copyright statements
12077 * build-aux/update-copyright: Implement that.
12078 Also, be a little more predictable and safer by always failing
12079 when the full copyright format is not perfectly recognized as an
12080 unbroken whole. Discussed at
12081 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12082 Rewrite documentation.
12084 2009-08-03 Bruno Haible <bruno@clisp.org>
12086 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12088 2009-08-02 Bruno Haible <bruno@clisp.org>
12090 Tests for module 'uname'.
12091 * modules/uname-tests: New file.
12092 * tests/test-uname.c: New file.
12094 New module 'uname'.
12095 * lib/uname.c: New file.
12096 * m4/uname.m4: New file.
12097 * modules/uname: New file.
12098 * doc/posix-functions/uname.texi: Mention the new module.
12100 2009-08-02 Bruno Haible <bruno@clisp.org>
12102 Tests for module 'sys_utsname'.
12103 * modules/sys_utsname-tests: New file.
12104 * tests/test-sys_utsname.c: New file.
12106 New module 'sys_utsname'.
12107 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12108 * m4/sys_utsname_h.m4: New file.
12109 * modules/sys_utsname: New file.
12110 * doc/posix-headers/sys_utsname.texi: Mention the new module.
12112 2009-08-02 Bruno Haible <bruno@clisp.org>
12114 Implicitly initialize the sockets library.
12115 * lib/gethostname.c: Include sockets.h.
12116 (rpl_gethostname): Invoke gl_sockets_startup.
12117 * lib/socket.c: Include sockets.h.
12118 (rpl_socket): Invoke gl_sockets_startup.
12119 * modules/gethostname (Depends-on): Add sockets.
12120 * modules/socket (Depends-on): Likewise.
12121 * tests/test-poll.c: Don't include sockets.h.
12122 (main): Don't invoke gl_sockets_startup.
12123 * tests/test-select.c: Don't include sockets.h.
12124 (main): Don't invoke gl_sockets_startup.
12126 2009-08-02 Bruno Haible <bruno@clisp.org>
12128 Allow multiple calls to gl_sockets_startup.
12129 * lib/sockets.c (initialized_sockets_version): New variable.
12130 (gl_sockets_startup): Do nothing if already called for this or a higher
12132 (gl_sockets_cleanup): Reset initialized_sockets_version.
12134 2009-08-03 Simon Josefsson <simon@josefsson.org>
12136 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
12137 different project/version.
12139 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
12140 Bruno Haible <bruno@clisp.org>
12142 Tests for module 'pipe-filter-gi'.
12143 * modules/pipe-filter-gi-tests: New file.
12144 * tests/test-pipe-filter-gi1.sh: New file.
12145 * tests/test-pipe-filter-gi1.c: New file.
12146 * tests/test-pipe-filter-gi2.sh: New file.
12147 * tests/test-pipe-filter-gi2-main.c: New file.
12148 * tests/test-pipe-filter-gi2-child.c: New file.
12150 New module 'pipe-filter-gi'.
12151 * lib/pipe-filter-gi.c: New file.
12152 * modules/pipe-filter-gi: New file.
12154 2009-08-02 Bruno Haible <bruno@clisp.org>
12155 Paolo Bonzini <bonzini@gnu.org>
12157 Tests for module 'pipe-filter-ii'.
12158 * modules/pipe-filter-ii-tests: New file.
12159 * tests/test-pipe-filter-ii1.sh: New file.
12160 * tests/test-pipe-filter-ii1.c: New file.
12161 * tests/test-pipe-filter-ii2.sh: New file.
12162 * tests/test-pipe-filter-ii2-main.c: New file.
12163 * tests/test-pipe-filter-ii2-child.c: New file.
12165 New module 'pipe-filter-ii'.
12166 * lib/pipe-filter.h: New file.
12167 * lib/pipe-filter-ii.c: New file.
12168 * lib/pipe-filter-aux.h: New file.
12169 * modules/pipe-filter-ii: New file.
12171 2009-08-02 Simon Josefsson <simon@josefsson.org>
12173 * lib/gc-libgcrypt.c: Change copyright to FSF.
12174 * lib/gc-gnulib.c: Likewise.
12176 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
12178 * lib/gethostname.c: Include limits.h.
12180 2009-08-02 Simon Josefsson <simon@josefsson.org>
12181 Bruno Haible <bruno@clisp.org>
12183 Ensure HOST_NAME_MAX as part of the gethostname module.
12184 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12185 define also HOST_NAME_MAX.
12186 * tests/test-gethostname.c: Include <limits.h>.
12187 (main): Check also HOST_NAME_MAX.
12188 * doc/posix-headers/limits.texi: Document the mingw problem.
12190 2009-08-02 Bruno Haible <bruno@clisp.org>
12192 * lib/gethostname.c (gethostname): Fix handling of large len argument.
12195 2009-03-31 Simon Josefsson <simon@josefsson.org>
12197 * lib/gethostname.c: Add Windows wrapper.
12198 * m4/gethostname.m4: Look for gethostname in -lws2_32.
12199 * modules/gethostname: Depend on sys_socket & errno, for also
12200 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
12201 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12203 2009-07-31 Jim Meyering <meyering@redhat.com>
12205 getloadavg: fix symbol name in comment
12206 * lib/getloadavg.c: Correct a typo I introduced when adding
12207 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12208 Matt Kraai spotted the problem.
12210 2009-07-29 Matt Kraai <mkraai@beckman.com>
12212 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12213 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12214 code also if ! defined N_NAME_POINTER.
12215 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12216 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12217 but the n_name member is a 12-byte array.
12219 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
12221 update-copyright: generalize comment handling
12222 * build-aux/update-copyright: Handle copyright statements
12223 within more comment styles.
12225 Report any file with an external copyright holder or parse failure.
12227 2009-07-29 Jim Meyering <meyering@redhat.com>
12229 mktime: correct setting of REPLACE_MKTIME
12230 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12232 update-copyright: new module
12233 * modules/update-copyright: New file.
12234 * build-aux/update-copyright: New file.
12235 * MODULES.html.sh (maint+release support): Add update-copyright.
12237 2009-07-27 Bruno Haible <bruno@clisp.org>
12239 Fix compilation error when <ctime> is used and mktime is replaced.
12240 * lib/time.in.h (mktime): New declaration.
12241 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12242 REPLACE_MKTIME instead of defining mktime in config.h.
12243 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12244 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12245 Reported by Ross McFarland <rwmcfa1@neces.com>.
12247 2009-07-27 Bruno Haible <bruno@clisp.org>
12249 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12250 Reported by Matt Kraai <mkraai@beckman.com>.
12252 2009-07-25 Jim Meyering <meyering@redhat.com>
12254 maint.mk: avoid warnings about missing files
12255 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12256 diagnostic when .prev-version does not exist.
12257 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12258 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12259 nonexistent cfg.mk.
12260 Suggestions from Simon Josefsson.
12262 2009-07-25 Bruno Haible <bruno@clisp.org>
12264 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12265 defined as macros. Needed on QNX 6.4.1.
12266 Reported by Matt Kraai <mkraai@beckman.com>.
12268 2009-07-23 Jim Meyering <meyering@redhat.com>
12270 maint.mk: invoke "make dist" with a working value of XZ_OPT
12271 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12273 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
12275 Make fseeko.c compile on QNX.
12276 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12278 2009-07-22 Peter Simons <simons@cryp.to>
12280 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12281 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12282 * lib/md4.h: Likewise.
12283 * lib/md5.h: Likewise.
12284 * lib/sha1.h: Likewise.
12285 * lib/sha256.h: Likewise.
12286 * lib/sha512.h: Likewise.
12288 tests-sha1: don't assign literal string to 'char *' variable
12289 * tests/test-sha1.c (main): Declare locals with "const" to match
12290 attributes of the right hand side.
12292 2009-07-21 Eric Blake <ebb9@byu.net>
12294 dup2: fix more mingw problems
12295 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12297 * doc/posix-functions/dup2.texi (dup2): Document the bug.
12298 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12299 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12300 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12301 care of mingw bugs.
12303 2009-07-21 Jim Meyering <meyering@redhat.com>
12305 vc-list-files: avoid failure when /bin/sh is dash
12306 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12307 On some Debian based systems, /bin/sh is a symlink to dash, and running
12308 this command would omit the "/" following each 'tests' prefix:
12309 dash -x build-aux/vc-list-files -C . tests
12310 That is because bash and dash work differently:
12311 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12315 2009-07-21 Eric Blake <ebb9@byu.net>
12317 dup2-tests: test previous patch
12318 * modules/dup2-tests: New file.
12319 * tests/test-dup2.c: Likewise.
12320 * tests/test-open.c (main): Avoid unspecified behavior.
12321 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12324 dup2: work around mingw and cygwin 1.5 bug
12325 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12326 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12327 * modules/unistd (Makefile.am): Substitute it.
12328 * lib/unistd.in.h (dup2): Declare the replacement.
12329 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12330 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12331 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12332 * modules/execute (Depends-on): Add dup2.
12333 * modules/fseterr (Depends-on): Likewise.
12334 * modules/pipe (Depends-on): Likewise.
12335 * modules/posix_spawn-internal (Depends-on): Likewise.
12337 2009-07-21 Bruno Haible <bruno@clisp.org>
12339 * modules/.gitattributes: New file.
12341 2009-07-20 Bruno Haible <bruno@clisp.org>
12343 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12346 2009-07-20 Eric Blake <ebb9@byu.net>
12348 test-pipe: make a bit more robust.
12349 * tests/test-pipe.c (myerr): Allow error messages regardless of
12350 what we do to stderr.
12351 (test_pipe): Rearrange to avoid deadlock.
12352 (child_main): Try a larger read, to ensure we avoided deadlock.
12353 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12354 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12357 2009-07-19 Jim Meyering <meyering@redhat.com>
12359 fts: avoid false-positive cycle-detection
12360 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12361 for each new command line argument.
12363 2009-07-19 Bruno Haible <bruno@clisp.org>
12365 Fix build error on mingw with the modules sys_select and unistd.
12366 * modules/acl-tests (Depends-on): Add close.
12367 * modules/binary-io-tests (Depends-on): Likewise.
12368 * modules/closein-tests (Depends-on): Likewise.
12369 * modules/flock-tests (Depends-on): Likewise.
12370 * modules/fsync-tests (Depends-on): Likewise.
12371 * modules/lseek-tests (Depends-on): Likewise.
12372 * modules/pipe-tests (Depends-on): Likewise.
12373 * modules/posix_spawn-tests (Depends-on): Likewise.
12374 * modules/posix_spawnp-tests (Depends-on): Likewise.
12375 * modules/stat-time-tests (Depends-on): Likewise.
12376 * modules/yesno-tests (Depends-on): Likewise.
12378 2009-07-19 Bruno Haible <bruno@clisp.org>
12380 Unify conditionals.
12381 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12382 macros, not at the compiler macros.
12383 * lib/pipe.c: Likewise.
12384 * lib/execute.c: Likewise.
12385 * lib/spawni.c: Likewise.
12387 2009-07-19 Bruno Haible <bruno@clisp.org>
12389 Fix handling of closed stdin/stdout/stderr on mingw.
12390 * lib/w32spawn.h: Include unistd.h.
12391 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12392 file descriptor with O_NOINHERIT flag.
12393 (fd_safer_noinherit): New function, based on fd-safer.c.
12394 (dup_safer_noinherit): New function, based on dup-safer.c.
12395 (undup_safer_noinherit): New function.
12396 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12397 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12398 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12399 instead of fd_safer.
12400 * tests/test-pipe.c: Include <windows.h>.
12401 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12403 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12405 (test_pipe): Pass an extra argument for disambiguation.
12406 (main): Invoke parent_main or child_main.
12408 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12411 2009-07-18 Eric Blake <ebb9@byu.net>
12413 test-pipe: fix mingw build
12414 * tests/test-pipe.c (main): Avoid fcntl on mingw.
12416 2009-07-18 Bruno Haible <bruno@clisp.org>
12418 * modules/pipe-tests (Makefile.am): Fix typo.
12420 2009-07-18 Eric Blake <ebb9@byu.net>
12422 error: fix mingw build
12423 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12424 Reported by Bruno Haible.
12426 error: avoid undefined use of stdout
12427 * lib/error.c (error, error_at_line): Check that fd 1 is open
12428 before flushing stdout. Avoids a crash on cygwin when libsigsegv
12429 is handling faults and the close_stdout module wants to report the
12430 detection of closed stdout as an error.
12432 2009-07-17 Eric Blake <ebb9@byu.net>
12434 pipe: be robust in face of closed fds
12435 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12436 should cause child to misbehave.
12437 * modules/pipe-tests: New module.
12438 * tests/test-pipe.c: New file.
12439 * tests/test-pipe.sh: New file.
12440 Reported by Akim Demaille.
12442 2009-07-14 Bruno Haible <bruno@clisp.org>
12444 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12445 Reported by anonymous kc.
12447 2009-07-07 Jim Meyering <meyering@redhat.com>
12449 maint.mk: don't look for translatable strings in *.m4 or *.mk
12450 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12451 when searching for translatable strings.
12453 2009-07-05 Jim Meyering <meyering@redhat.com>
12455 remove superfluous parentheses in STREQ definition
12456 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12457 * lib/getugroups.c (STREQ): Likewise.
12458 * lib/fnmatch.c (STREQ): Likewise.
12459 Spotted by Bruno Haible.
12461 2009-07-04 Jim Meyering <meyering@redhat.com>
12463 argv-iter: new module
12464 * MODULES.html.sh: Add argv-iter.
12465 * lib/argv-iter.c, lib/argv-iter.h: New files.
12466 * modules/argv-iter: New file.
12467 * modules/argv-iter-tests: New file.
12468 * tests/test-argv-iter.c: Test it.
12470 2009-07-04 Bruno Haible <bruno@clisp.org>
12473 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12474 contains more exact copies of a given entry than file2, leave the extra
12475 copies unpaired rather than aborting.
12476 Reported by Eric Blake.
12478 2009-07-02 Bruno Haible <bruno@clisp.org>
12480 Speedup git-merge-changelog for git cherry-pick.
12481 * lib/git-merge-changelog.c (struct entries_mapping): New type.
12482 (entries_mapping_get): New function, extracted from compute_mapping.
12483 (entries_mapping_reverse_get): New function.
12484 (compute_mapping): Add a 'full' argument. Return the result in a
12485 'struct entries_mapping'.
12486 (main): Update. Access the mappings through entries_mapping_get.
12487 Reported by Eric Blake.
12489 2009-07-02 Bruno Haible <bruno@clisp.org>
12491 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12494 2009-07-02 Bruno Haible <bruno@clisp.org>
12496 Speed up approximate search for matching ChangeLog entries.
12497 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12498 argument. Call fstrcmp_bounded instead of fstrcmp.
12499 (compute_mapping, try_split_merged_entry, main): Update callers.
12501 2009-07-02 Bruno Haible <bruno@clisp.org>
12503 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12505 2009-06-30 Bruno Haible <bruno@clisp.org>
12507 Reduce the number of uc_is_cased calls.
12508 * lib/unicase.h (casing_suffix_context_t): Add
12509 'first_char_except_ignorable' field.
12510 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12511 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12512 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12513 Update initializer.
12514 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12515 case-ignorable characters.
12516 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12517 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12518 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12519 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12520 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12522 2009-06-30 Bruno Haible <bruno@clisp.org>
12524 Tests for module 'unicase/ignorable'.
12525 * modules/unicase/ignorable-tests: New file.
12526 * tests/unicase/test-ignorable.c: New file, generated by
12529 Tests for module 'unicase/cased'.
12530 * modules/unicase/cased-tests: New file.
12531 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12532 * tests/unicase/test-predicate-part1.h: New file, derived from
12533 tests/unictype/test-predicate-part1.h.
12534 * tests/unicase/test-predicate-part2.h: New file, same as
12535 tests/unictype/test-predicate-part2.h.
12537 Fix evaluation of "Before C" condition of FINAL_SIGMA.
12538 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12539 (output_casing_properties): New function.
12541 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12542 * lib/unicase/cased.c: Include unictype/bitmap.h.
12543 (uc_is_cased): Define through a bitmap lookup.
12544 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12545 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12546 (uc_is_case_ignorable): Define through a bitmap lookup.
12547 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12548 lib/unictype/bitmap.h.
12549 (Depends-on): Add inline. Clean up.
12550 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12551 lib/unictype/bitmap.h.
12552 (Depends-on): Add inline. Clean up.
12553 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12555 * tests/unicase/test-u16-tolower.c (main): Likewise.
12556 * tests/unicase/test-u32-tolower.c (main): Likewise.
12558 2009-06-30 Bruno Haible <bruno@clisp.org>
12560 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12561 * lib/unicase/u16-casemap.c: Likewise.
12562 * lib/unicase/u32-casemap.c: Likewise.
12564 2009-06-29 Bruno Haible <bruno@clisp.org>
12566 Define u32_casefold as a wrapper around u32_ct_casefold.
12567 * lib/unicase/u32-casefold.c: Update.
12568 * modules/unicase/u32-casefold (Depends-on): Add
12569 unicase/u32-ct-casefold, unicase/empty-prefix-context,
12570 unicase/empty-suffix-context. Clean up.
12572 Define u16_casefold as a wrapper around u16_ct_casefold.
12573 * lib/unicase/u16-casefold.c: Update.
12574 * modules/unicase/u16-casefold (Depends-on): Add
12575 unicase/u16-ct-casefold, unicase/empty-prefix-context,
12576 unicase/empty-suffix-context. Clean up.
12578 Define u8_casefold as a wrapper around u8_ct_casefold.
12579 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12580 * lib/unicase/u8-casefold.c: Update.
12581 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12582 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12584 Define u32_totitle as a wrapper around u32_ct_totitle.
12585 * lib/unicase/u32-totitle.c: Update.
12586 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12587 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12589 Define u16_totitle as a wrapper around u16_ct_totitle.
12590 * lib/unicase/u16-totitle.c: Update.
12591 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12592 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12594 Define u8_totitle as a wrapper around u8_ct_totitle.
12595 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12597 (FUNC): Delegate to U_CT_TOTITLE.
12598 * lib/unicase/u8-totitle.c: Update.
12599 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12600 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12602 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12604 * modules/unicase/u32-tolower (Depends-on): Add
12605 unicase/empty-prefix-context, unicase/empty-suffix-context.
12607 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12609 * modules/unicase/u16-tolower (Depends-on): Add
12610 unicase/empty-prefix-context, unicase/empty-suffix-context.
12612 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12613 * modules/unicase/u8-tolower (Depends-on): Add
12614 unicase/empty-prefix-context, unicase/empty-suffix-context.
12616 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12618 * modules/unicase/u32-toupper (Depends-on): Add
12619 unicase/empty-prefix-context, unicase/empty-suffix-context.
12621 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12623 * modules/unicase/u16-toupper (Depends-on): Add
12624 unicase/empty-prefix-context, unicase/empty-suffix-context.
12626 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12627 * modules/unicase/u8-toupper (Depends-on): Add
12628 unicase/empty-prefix-context, unicase/empty-suffix-context.
12630 New module 'unicase/u32-ct-casefold'.
12631 * lib/unicase/u32-ct-casefold.c: New file.
12632 * modules/unicase/u32-ct-casefold: New file.
12634 New module 'unicase/u16-ct-casefold'.
12635 * lib/unicase/u16-ct-casefold.c: New file.
12636 * modules/unicase/u16-ct-casefold: New file.
12638 New module 'unicase/u8-ct-casefold'.
12639 * lib/unicase/u8-ct-casefold.c: New file.
12640 * lib/unicase/u-ct-casefold.h: New file, derived from
12641 lib/unicase/u-casefold.h.
12642 * modules/unicase/u8-ct-casefold: New file.
12644 New module 'unicase/u32-ct-totitle'.
12645 * lib/unicase/u32-ct-totitle.c: New file.
12646 * modules/unicase/u32-ct-totitle: New file.
12648 New module 'unicase/u16-ct-totitle'.
12649 * lib/unicase/u16-ct-totitle.c: New file.
12650 * modules/unicase/u16-ct-totitle: New file.
12652 New module 'unicase/u8-ct-totitle'.
12653 * lib/unicase/u8-ct-totitle.c: New file.
12654 * lib/unicase/u-ct-totitle.h: New file, derived from
12655 lib/unicase/u-totitle.h.
12656 * modules/unicase/u8-ct-totitle: New file.
12658 New module 'unicase/u32-ct-tolower'.
12659 * lib/unicase/u32-ct-tolower.c: New file.
12660 * modules/unicase/u32-ct-tolower: New file.
12662 New module 'unicase/u16-ct-tolower'.
12663 * lib/unicase/u16-ct-tolower.c: New file.
12664 * modules/unicase/u16-ct-tolower: New file.
12666 New module 'unicase/u8-ct-tolower'.
12667 * lib/unicase/u8-ct-tolower.c: New file.
12668 * modules/unicase/u8-ct-tolower: New file.
12670 New module 'unicase/u32-ct-toupper'.
12671 * lib/unicase/u32-ct-toupper.c: New file.
12672 * modules/unicase/u32-ct-toupper: New file.
12674 New module 'unicase/u16-ct-toupper'.
12675 * lib/unicase/u16-ct-toupper.c: New file.
12676 * modules/unicase/u16-ct-toupper: New file.
12678 New module 'unicase/u8-ct-toupper'.
12679 * lib/unicase/u8-ct-toupper.c: New file.
12680 * modules/unicase/u8-ct-toupper: New file.
12682 Add context arguments to u*_casemap functions.
12683 * lib/unicase/unicasemap.h: Include unicase.h.
12684 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12685 suffix_context arguments.
12686 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12688 (FUNC): Add prefix_context and suffix_context arguments. Use
12689 uc_is_cased and uc_is_case_ignorable.
12690 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12691 * lib/unicase/u16-casemap.c: Likewise.
12692 * lib/unicase/u32-casemap.c: Likewise.
12693 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12694 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12695 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12696 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12697 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12698 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12700 New module 'unicase/u32-suffix-context'.
12701 * lib/unicase/u32-suffix-context.c: New file.
12702 * modules/unicase/u32-suffix-context: New file.
12704 New module 'unicase/u16-suffix-context'.
12705 * lib/unicase/u16-suffix-context.c: New file.
12706 * modules/unicase/u16-suffix-context: New file.
12708 New module 'unicase/u8-suffix-context'.
12709 * lib/unicase/u8-suffix-context.c: New file.
12710 * lib/unicase/u-suffix-context.h: New file.
12711 * modules/unicase/u8-suffix-context: New file.
12713 New module 'unicase/empty-suffix-context'.
12714 * lib/unicase/empty-suffix-context.c: New file.
12715 * modules/unicase/empty-suffix-context: New file.
12717 New module 'unicase/u32-prefix-context'.
12718 * lib/unicase/u32-prefix-context.c: New file.
12719 * modules/unicase/u32-prefix-context: New file.
12721 New module 'unicase/u16-prefix-context'.
12722 * lib/unicase/u16-prefix-context.c: New file.
12723 * modules/unicase/u16-prefix-context: New file.
12725 New module 'unicase/u8-prefix-context'.
12726 * lib/unicase/u8-prefix-context.c: New file.
12727 * lib/unicase/u-prefix-context.h: New file.
12728 * lib/unicase/context.h: New file.
12729 * modules/unicase/u8-prefix-context: New file.
12731 New module 'unicase/empty-prefix-context'.
12732 * lib/unicase/empty-prefix-context.c: New file.
12733 * modules/unicase/empty-prefix-context: New file.
12735 New module 'unicase/ignorable'.
12736 * lib/unicase/ignorable.c: New file.
12737 * modules/unicase/ignorable: New file.
12739 New module 'unicase/cased'.
12740 * lib/unicase/caseprop.h: New file.
12741 * lib/unicase/cased.c: New file.
12742 * modules/unicase/cased: New file.
12744 New functions for case mapping of substrings.
12745 * lib/unicase.h (casing_prefix_context_t): New type.
12746 (unicase_empty_prefix_context): New variable.
12747 (u8_casing_prefix_context, u16_casing_prefix_context,
12748 u32_casing_prefix_context, u8_casing_prefixes_context,
12749 u16_casing_prefixes_context, u32_casing_prefixes_context): New
12751 (casing_suffix_context_t): New type.
12752 (unicase_empty_suffix_context): New variable.
12753 (u8_casing_suffix_context, u16_casing_suffix_context,
12754 u32_casing_suffix_context, u8_casing_suffixes_context,
12755 u16_casing_suffixes_context, u32_casing_suffixes_context,
12756 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12757 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12758 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12761 2009-06-28 Jim Meyering <meyering@redhat.com>
12763 boostrap: indent only with spaces
12764 * build-aux/bootstrap: Indent only with spaces, never TABs.
12766 bootstrap: split long lines
12767 * build-aux/bootstrap: Keep line length < 80.
12769 bootstrap: sync from coreutils
12770 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12771 just as autoreconf does. Verify a list of prerequisite
12772 package-name,version-number pairs if defined in bootstrap.conf.
12773 Refer to README-prereq, if prerequisites are not satisfied.
12775 2009-06-27 Eric Blake <ebb9@byu.net>
12777 tests: add test for bogus NULL definition
12778 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12779 * tests/test-stdlib.c: Likewise.
12780 * tests/test-string.c: Likewise.
12781 * tests/test-locale.c: Likewise.
12782 * tests/test-unistd.c: Likewise.
12783 * modules/stdio-tests (Depends-on): Add verify.
12784 * modules/stdlib-tests (Depends-on): Likewise.
12785 * modules/string-tests (Depends-on): Likewise.
12786 * modules/locale-tests (Depends-on): Likewise.
12787 * modules/unistd-tests (Depends-on): Likewise.
12789 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12791 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12792 self-explaining comment.
12793 * m4/selinux-selinux-h: Update serial.
12794 (gl_LIBSELINUX): New macro, adding a warning for missing development
12795 packages to code extracted from...
12796 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
12797 Add warning for missing development packages here, too.
12799 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
12801 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12803 2009-06-25 Eric Blake <ebb9@byu.net>
12805 version-etc: fix regression
12806 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12808 (version_etc): Use it, to catch bugs with trailing NULL.
12809 * lib/version-etc.c (version_etc_arn): Delete unused argument.
12810 (version_etc_va): Fix logic bug.
12811 * modules/version-etc-tests: Add test.
12812 * tests/test-version-etc.c: New file.
12813 * tests/test-version-etc.sh: Likewise.
12815 2009-06-25 Sam Steingold <sds@gnu.org>
12817 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12818 mbtowc declaration.
12820 2009-06-25 Eric Blake <ebb9@byu.net>
12822 fpurge: migrate into <stdio.h>
12823 * lib/fpurge.h: Delete...
12824 * lib/stdio.in.h (fpurge): ...and declare here, instead.
12825 * lib/fpurge.c (fpurge): Change declaring header.
12826 * modules/fpurge (Files): Drop deleted file.
12827 (Depends-on): Add stdio.
12828 (configure.ac): Set witness.
12829 * modules/stdio (Makefile.am): Support fpurge macros.
12830 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12831 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12832 * lib/fflush.c: Update client.
12833 * tests/test-fpurge.c: Likewise.
12834 * NEWS: Mention the change.
12836 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12838 * lib/argp-version-etc.c (program_authors): Add const
12840 * lib/version-etc.c: Fix typos in the comments.
12841 * modules/argp-version-etc: Depends on version-etc.
12843 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12845 argp-version-etc: new module.
12847 * lib/argp-version-etc.c: New file.
12848 * lib/argp-version-etc.h: New file.
12849 * modules/argp-version-etc: New file.
12850 * modules/argp-version-etc-tests: New file.
12851 * tests/test-argp-version-etc.c: New test.
12852 * tests/test-argp-version-etc-1.sh: New test.
12854 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12856 Provide additional interfaces and documentation for version-etc
12859 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12861 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12864 2009-06-24 Bruno Haible <bruno@clisp.org>
12866 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12867 HAVE_LIB${NAME} macro.
12868 Reported by Sam Steingold <sds@gnu.org>.
12870 2009-06-23 Simon Josefsson <simon@josefsson.org>
12872 * modules/hash-tests (test_hash_LDADD): Link to libintl when
12875 2009-06-21 Bruno Haible <bruno@clisp.org>
12877 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12879 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12880 together with LIB${NAME}, LTLIB${NAME}.
12881 Reported by Sam Steingold <sds@gnu.org>.
12883 2009-06-20 Jim Meyering <meyering@redhat.com>
12885 tests: make sc_require_test_exit_idiom more generic
12886 * top/maint.mk (Exit_witness_file): New overridable variable.
12887 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12888 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12890 2009-06-19 Jim Meyering <meyering@redhat.com>
12892 hash: reverse order of src/dst parameters in an internal interface
12893 * lib/hash.c (transfer_entries): Reverse order of parameters to
12894 put DST before SRC. Adjust callers.
12896 tests: test-hash: avoid wholesale duplication
12897 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12898 Instead, use a loop and add a single conditional.
12900 tests: test-hash: allow seed selection via a command line argument
12901 * tests/test-hash.c (get_seed): New function.
12904 2009-06-19 Eric Blake <ebb9@byu.net>
12906 hash: avoid memory leak on allocation failure
12907 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12908 failure. Factor repeated algorithm...
12909 (transfer_entries): ...into new helper routine.
12910 (hash_delete): React to hash_rehash return value.
12912 hash: reduce memory pressure in hash_rehash no-op case
12913 * lib/hash.c (next_prime): Avoid overflow.
12914 (hash_initialize): Factor bucket size computation...
12915 (compute_bucket_size): ...into new helper function.
12916 (hash_rehash): Use new function and open coding to reduce memory
12917 pressure, and avoid a memory leak in USE_OBSTACK code.
12918 Reported by Jim Meyering.
12920 2009-06-18 Eric Blake <ebb9@byu.net>
12922 hash: make rotation more obvious
12923 * modules/hash (Depends-on): Add bitrotate and stdint.
12924 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12925 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
12926 (SIZE_MAX): Rely on headers for definition.
12927 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12928 (raw_hasher): Use rotr_sz.
12929 Suggested by Jim Meyering.
12931 hash: fix memory leak in last patch
12932 * lib/hash.c (hash_rehash): Avoid memory leak.
12934 hash: avoid no-op rehashing
12935 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12937 hash: provide default callback functions
12938 * lib/hash.c (raw_hasher, raw_comparator): New functions.
12939 (hash_initialize): Use them as defaults.
12940 * tests/test-hash.c (main): Test this.
12942 hash: minor optimization
12943 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12945 (hash_initialize): Document this promise.
12946 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12947 * tests/test-hash.c (hash_compare_strings): Test this.
12949 2009-06-18 Bruno Haible <bruno@clisp.org>
12951 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12952 going to be replaced anyway.
12954 2009-06-18 Bruno Haible <bruno@clisp.org>
12956 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12958 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12959 be replaced anyway.
12961 2009-06-18 Eric Blake <ebb9@byu.net>
12963 hash: check for resize before insertion
12964 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12965 threshold before insertion, so that a pathological hash_rehash
12966 that fills every bucket can still trigger another rehash.
12968 2009-06-18 Jim Meyering <meyering@redhat.com>
12970 hash-tests: add a loop around the small tests
12971 * tests/test-hash.c (main): Repeat small tests with selected
12972 small initial table sizes.
12974 2009-06-17 Eric Blake <ebb9@byu.net>
12976 hash: minor cleanups
12977 * lib/hash.h (hash_entry): Make opaque, by moving...
12978 * lib/hash.c (hash_entry): ...here.
12979 (hash_insert): Clarify restrictions on what can be inserted.
12980 (hash_get_next): Clarify when it is safe to remove an element
12982 (check_tuning): Skip verification when tuning is known safe.
12983 (hash_initialize): Clarify restrictions on tuning.
12985 2009-06-17 Jim Meyering <jim@meyering.net>
12986 and Eric Blake <ebb9@byu.net>
12988 hash-tests: new module
12989 * modules/hash-tests: New file.
12990 * tests/test-hash.c: New file.
12992 2009-06-17 Eric Blake <ebb9@byu.net>
12994 strstr-simple: document new module
12995 * MODULES.html.sh: Document new module.
12997 strstr, strcasestr: replace on platforms with broken memchr
12998 * modules/strstr: Split into...
12999 * modules/strstr-simple: ...new module that does not care about
13000 performance, but does care about glibc bug.
13001 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13002 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13003 if platform memchr is broken, per Debian bug 521737.
13004 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13006 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13007 * doc/posix-functions/strstr.texi (strstr): Document the fix.
13008 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13009 * modules/mountlist (Depends-on): Add strstr-simple.
13010 * modules/gen-uni-tables (Depends-on): Likewise.
13011 * modules/argz (Depends-on): Add strstr.
13013 2009-06-17 Bruno Haible <bruno@clisp.org>
13015 * modules/posix_spawn-internal (Depends-on): Add errno.
13017 2009-06-17 Bruno Haible <bruno@clisp.org>
13019 Define missing ESTALE on Interix 3.5.
13020 * lib/errno.in.h (ESTALE): Assign a value if missing.
13021 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13022 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13024 * doc/posix-headers/errno.texi: Mention the Interix bug.
13025 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13027 2009-06-15 Eric Blake <ebb9@byu.net>
13029 memchr, memchr2: add valgrind exception
13030 * lib/memchr.valgrind: New file.
13031 * lib/memchr2.valgrind: New file.
13032 * modules/memchr (Files): Distribute valgrind file.
13033 * modules/memchr2 (Files): Likewise.
13035 docs: memchr is no longer obsolete
13036 * MODULES.html.sh: Move memchr from obsolete to string.h section.
13037 * lib/string.in.h (memchr): Simplify logic.
13039 2009-06-14 Jim Meyering <meyering@redhat.com>
13041 link-follow: fix the "checking..." message to not mention trailing slash
13042 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13043 never considered trailing slashes.
13045 2009-06-14 Bruno Haible <bruno@clisp.org>
13047 * m4/memchr.m4: Mention also the bug on IA-64.
13048 * doc/posix-functions/memchr.texi: Likewise.
13050 2009-06-12 Eric Blake <ebb9@byu.net>
13052 memchr: detect broken x86_64 and alpha implementations
13053 * modules/memchr-tests (Depends-on): Move mmap detection...
13054 * modules/memchr (Depends-on): ...here.
13055 (configure.ac): Set indicator.
13056 * lib/string.in.h (memchr): Declare replacement.
13057 * modules/string (Makefile.am): Trigger replacement.
13058 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13059 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13061 * doc/posix-functions/memchr.texi (memchr): Document the bug.
13062 * modules/getpagesize (License): Relax license.
13064 2009-06-11 Bruno Haible <bruno@clisp.org>
13066 * lib/idpriv.h: Add more references.
13068 2009-06-08 Bruno Haible <bruno@clisp.org>
13070 Tests for module 'idpriv-droptemp'.
13071 * modules/idpriv-droptemp-tests: New file.
13072 * tests/test-idpriv-droptemp.sh: New file.
13073 * tests/test-idpriv-droptemp.su.sh: New file.
13074 * tests/test-idpriv-droptemp.c: New file.
13076 New module 'idpriv-droptemp'.
13077 * lib/idpriv-droptemp.c: New file.
13078 * modules/idpriv-droptemp: New file.
13080 2009-06-08 Bruno Haible <bruno@clisp.org>
13082 Tests for module 'idpriv-drop'.
13083 * modules/idpriv-drop-tests: New file.
13084 * tests/test-idpriv-drop.sh: New file.
13085 * tests/test-idpriv-drop.su.sh: New file.
13086 * tests/test-idpriv-drop.c: New file.
13088 New module 'idpriv-drop'.
13089 * lib/idpriv.h: New file.
13090 * lib-idpriv-drop.c: New file.
13091 * m4/idpriv.m4: New file.
13092 * modules/idpriv-drop: New file.
13094 2009-06-08 Bruno Haible <bruno@clisp.org>
13096 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13097 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13098 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13099 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13100 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13101 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13102 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13104 2009-06-08 Eric Blake <ebb9@byu.net>
13106 test-strstr: use memory fence, when possible
13107 * tests/test-strstr.c (main): Use memory fence, in order to be
13108 more likely to trigger Debian bug 521737.
13109 * modules/strstr-tests (Files): Pull in additional files.
13111 memchr: no longer obsolete, for wider field testing
13112 * modules/memchr (Status, Notice): Delete, this module is no
13114 * modules/vasnprintf (Depends-on): Add memchr.
13116 2009-06-07 Jim Meyering <meyering@redhat.com>
13118 hash: declare some functions with the warn_unused_result attribute
13119 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13121 2009-06-07 Bruno Haible <bruno@clisp.org>
13123 * tests/test-alignof.c: Don't test int64_t if it does not exist.
13124 Reported by Eric Blake.
13126 2009-06-06 Eric Blake <ebb9@byu.net>
13128 test-alignof: fix typo with long double
13129 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13132 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
13134 Escape non-texinfo { and }s.
13135 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13138 2009-06-04 Jim Meyering <meyering@redhat.com>
13140 gitlog-to-changelog: don't infloop on an empty commit log
13141 * build-aux/gitlog-to-changelog: Warn about an empty log message.
13142 Reported by Boris Petersen <transacid@centerim.org>.
13144 2009-06-03 Mike Frysinger <vapier@gentoo.org>
13146 version-etc: extend for packagers
13147 Add three new configure options, intended for packagers:
13148 --with-packager="packager name"
13149 --with-packager-version="packager-specific version"
13150 --with-packager-bug-reports="packager bug reporting"
13151 An example with coreutils:
13153 --with-packager=Gentoo \
13154 --with-packager-bug-report=http://bugs.gentoo.org/ \
13155 --with-packager-version="patchset 1.6"
13156 $ ./src/ls --version | head -n2
13157 ls (GNU coreutils) 7.1-dirty
13158 Packaged by Gentoo (patchset 1.6)
13159 Note that the bug reporting info via --help doesn't show up because
13160 coreutils uses its own custom emit_bug_reporting_address() implementation
13161 in src/system.h. If it didn't, it'd look like:
13162 $ ./src/ls --help | tail -n4
13163 Report bugs to <bug-coreutils@gnu.org>.
13164 Report Gentoo bugs to <http://bugs.gentoo.org/>.
13165 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13166 General help using GNU software: <http://www.gnu.org/gethelp/>.
13167 * lib/version-etc.c: Print new information, if provided.
13168 * m4/version-etc.m4: New file.
13169 * modules/version-etc (Files): Add m4/version-etc.m4.
13170 (configure.ac): Add gl_VERSION_ETC.
13172 2009-05-31 Bruno Haible <bruno@clisp.org>
13174 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13176 * modules/alignof-tests (Dependencies): Add stdint.
13177 Reported by Eric Blake.
13179 2009-05-31 Bruno Haible <bruno@clisp.org>
13181 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13182 restriction due to compiler bugs.
13183 Reported by Eric Blake.
13185 2009-05-31 Simon Josefsson <simon@josefsson.org>
13186 Bruno Haible <bruno@clisp.org>
13188 Fix test-alignof failure.
13189 * lib/alignof.h (alignof_slot): New macro.
13190 (alignof_type): New macro, with the same semantics as the previous
13192 (alignof): Alias to alignof_slot.
13193 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13194 check that the results are usable as constant expressions.
13196 2009-05-31 Bruno Haible <bruno@clisp.org>
13198 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13199 * tests/test-memchr.c (main): Check that memchr does not read past the
13200 first occurrence of the byte.
13201 * tests/test-strstr.c (main): Update comment.
13202 Suggested by Eric Blake.
13204 2009-05-30 Bruno Haible <bruno@clisp.org>
13206 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13207 detail how to use dumpbin.
13208 Reported by David Byron <dbyron@dbyron.com>.
13210 2009-06-02 Simon Josefsson <simon@josefsson.org>
13212 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13214 2009-06-02 Simon Josefsson <simon@josefsson.org>
13216 * m4/manywarnings.m4: Add GCC 4.4 warnings.
13218 2009-05-28 Bruno Haible <bruno@clisp.org>
13220 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13223 2009-05-28 Simon Josefsson <simon@josefsson.org>
13225 * gnulib-tool (func_import): Transform license on build-aux/ files too.
13227 2009-05-27 Simon Josefsson <simon@josefsson.org>
13229 * gnulib-tool (sed_transform_main_lib_file)
13230 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13233 2009-05-26 Simon Josefsson <simon@josefsson.org>
13235 * tests/test-strstr.c: Add another self-test.
13236 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13237 strdup. Suggested by Eric Blake <ebb9@byu.net>.
13239 2009-05-23 Bruno Haible <bruno@clisp.org>
13241 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13244 2009-05-21 Bruno Haible <bruno@clisp.org>
13246 Simplify use of mode_t varargs.
13247 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13248 uses 'mode_t' or 'int'.
13249 * lib/openat.c (openat): Likewise.
13250 * lib/open-safer.c (open_safer): Likewise.
13251 * m4/mode_t.m4: New file.
13252 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13253 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13254 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13255 * modules/open (Files): Add m4/mode_t.m4.
13256 * modules/openat (Files): Likewise.
13257 * modules/fcntl-safer (Files): Likewise.
13258 Suggested by Eric Blake.
13260 2009-05-21 Pádraig Brady <P@draigbrady.com>
13262 * doc/glibc-functions/fallocate.texi: New file.
13263 * doc/gnulib.texi: Include it.
13265 2009-05-21 Eric Blake <ebb9@byu.net>
13266 Bruno Haible <bruno@clisp.org>
13268 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13270 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13272 2009-05-21 Eric Blake <ebb9@byu.net>
13273 Bruno Haible <bruno@clisp.org>
13275 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13276 include_next. Fix of 2008-11-20 commit.
13277 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13278 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13279 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13281 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13282 instead of NEXT_MATH_H.
13284 2009-05-21 Bruno Haible <bruno@clisp.org>
13286 Avoid redefinition warnings for SIZE_MAX.
13287 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13288 Reported by Simon Josefsson.
13290 2009-05-21 Bruno Haible <bruno@clisp.org>
13292 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13295 2009-05-20 Bruno Haible <bruno@clisp.org>
13297 Make zeroptr.h work on mingw.
13298 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13300 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13301 * modules/memchr2-tests (configure.ac): Likewise.
13302 * modules/memcmp-tests (configure.ac): Likewise.
13303 * modules/memmem-tests (configure.ac): Likewise.
13304 * modules/memrchr-tests (configure.ac): Likewise.
13305 Reported by Simon Josefsson.
13307 2009-05-20 Simon Josefsson <simon@josefsson.org>
13309 * tests/test-glob.c: Include string.h for strcmp prototype.
13311 2009-05-20 Simon Josefsson <simon@josefsson.org>
13313 * modules/getdelim (Depends-on): Add explicit stdint, although it
13314 was implicitly already pulled in via realloc-posix.
13315 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13317 2009-05-20 Simon Josefsson <simon@josefsson.org>
13319 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
13320 G. Christensen" <tgc@jupiterrise.com>.
13321 * m4/sys_socket_h.m4: Check for sa_family_t.
13322 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13323 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13324 * tests/test-sys_socket.c: Check that sa_family_t works.
13326 2009-05-18 Eric Blake <ebb9@byu.net>
13328 maint.mk: allow gnulib_dir in VPATH build
13329 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13331 2009-05-15 Jim Meyering <meyering@redhat.com>
13333 maint.mk: Give gnulib_dir a default definition.
13334 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13335 Thus, most packages no longer need to specify this variable in cfg.mk
13337 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
13339 rename.m4: fix typos that would make non-mingw cross-configure fail
13340 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13342 2009-05-13 Eric Blake <ebb9@byu.net>
13344 mmap-anon: avoid out-of-order autoconf expansion
13345 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13346 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13347 * modules/memchr-tests (Depends-on): Add extensions.
13348 * modules/memchr2-tests (Depends-on): Add extensions.
13349 * modules/memcmp-tests (Depends-on): Add extensions.
13350 * modules/memmem-tests (Depends-on): Add extensions.
13351 * modules/memrchr-tests (Depends-on): Add extensions.
13353 2009-05-13 Bruno Haible <bruno@clisp.org>
13355 Make some tests ISO C 99 compliant.
13356 * tests/zerosize-ptr.h: New file.
13357 * tests/test-memchr.c: Include zerosize-ptr.h.
13358 (main): Use a zero-size object pointer instead of NULL.
13359 * tests/test-memchr2.c: Include zerosize-ptr.h.
13360 (main): Use a zero-size object pointer instead of NULL.
13361 * tests/test-memcmp.c: Include zerosize-ptr.h.
13362 (main): Use a zero-size object pointer instead of NULL.
13363 * tests/test-memmem.c: Include zerosize-ptr.h.
13364 (main): Use a zero-size object pointer instead of NULL.
13365 * tests/test-memrchr.c: Include zerosize-ptr.h.
13366 (main): Use a zero-size object pointer instead of NULL.
13367 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13369 (Depends-on): Add getpagesize.
13370 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13371 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13373 (Depends-on): Add getpagesize.
13374 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13375 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13377 (Depends-on): Add getpagesize.
13378 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13379 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13381 (Depends-on): Add getpagesize.
13382 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13383 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13385 (Depends-on): Add getpagesize.
13386 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13388 2009-05-12 Bruno Haible <bruno@clisp.org>
13390 Tests for module 'alignof'.
13391 * modules/alignof-tests: New file.
13392 * tests/test-alignof.c: New file.
13394 2009-05-12 Bruno Haible <bruno@clisp.org>
13397 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13398 vendor compilers that are always correct.
13400 2009-05-12 Bruno Haible <bruno@clisp.org>
13402 Make the MAP_ANONYMOUS detection work on HP-UX 11.
13403 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13404 not whether its fully works.
13406 2009-05-12 Bruno Haible <bruno@clisp.org>
13408 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13410 2009-05-12 Jim Meyering <meyering@redhat.com>
13412 * top/maint.mk: Adjust backslash alignment.
13414 2009-05-11 Simon Josefsson <simon@josefsson.org>
13416 * top/maint.mk: Make $(srcdir)/build-aux configurable.
13418 2009-05-11 Eric Blake <ebb9@byu.net>
13420 argp: avoid undefined behavior
13421 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13424 2009-05-08 Simon Josefsson <simon@josefsson.org>
13426 * tests/test-vc-list-files-git.sh: Do git config of user.email and
13427 user.name to prevent git commit from complaining.
13429 2009-05-10 Bruno Haible <bruno@clisp.org>
13431 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13432 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13433 it rewrites every file name only once.
13434 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13436 2009-05-08 Bruno Haible <bruno@clisp.org>
13438 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13441 2009-05-08 Simon Josefsson <simon@josefsson.org>
13443 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13444 sockaddr_storage test.
13446 2009-05-07 Simon Josefsson <simon@josefsson.org>
13448 * modules/sys_socket (Makefile.am): Substitute
13449 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
13450 * m4/sys_socket_h.m4: Check for sockaddr_storage.
13451 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13452 * tests/test-sys_socket.c: Check sockaddr_storage.
13454 2009-05-08 Bruno Haible <bruno@clisp.org>
13456 New module 'alignof'.
13457 * lib/alignof.h: New file.
13458 * modules/alignof: New file.
13460 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13461 Bruno Haible <bruno@clisp.org>
13463 Fix test-file-has-acl on FreeBSD.
13464 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13465 mask is implicitly added.
13466 * tests/test-file-has-acl.c: Include <signal.h>.
13467 (main): Terminate the test after 5 seconds.
13468 * modules/acl-tests (configure.ac): Check for alarm function.
13470 2009-05-04 Bruno Haible <bruno@clisp.org>
13472 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13473 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13474 * modules/errno (configure.ac): Drop AC_REQUIRE.
13475 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13476 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13478 2009-05-04 Simon Josefsson <simon@josefsson.org>
13480 * modules/glob-tests: New module.
13481 * tests/test-glob.c: Add.
13483 2009-05-04 Simon Josefsson <simon@josefsson.org>
13485 * modules/fnmatch-tests: New module.
13486 * tests/test-fnmatch.c: Add.
13488 2009-05-04 Eric Blake <ebb9@byu.net>
13490 maint: make the new no-submodule-changes rule VPATH-safe
13491 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13493 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13494 Bruno Haible <bruno@clisp.org>
13496 acl: Fix infinite loop on FreeBSD.
13497 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13498 of return value from acl_get_entry.
13499 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13502 2009-05-03 Bruno Haible <bruno@clisp.org>
13504 * lib/acl-internal.h (acl_entries): Clarify return value.
13505 * lib/acl_entries.c (acl_entries): Likewise.
13507 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13509 Bug fix in acl module.
13510 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13512 2009-05-03 Bruno Haible <bruno@clisp.org>
13514 Create gperf-generated file in the source dir, not in the build dir.
13515 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13516 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13517 * modules/unicase/locale-language (unicase/locale-languages.h):
13519 * modules/unicase/special-casing (unicase/special-casing-table.h):
13521 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13522 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13523 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13524 Reported by Ralf Wildenhues.
13526 2009-05-03 Bruno Haible <bruno@clisp.org>
13528 * modules/fnmatch (Description, configure.ac): Taken from
13530 * modules/fnmatch-posix: Turn into a symbolic reference to the
13531 'fnmatch' module, and deprecate.
13532 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13534 2009-05-03 Bruno Haible <bruno@clisp.org>
13536 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13537 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13538 Reported by Ralf Wildenhues.
13540 2009-05-04 Simon Josefsson <simon@josefsson.org>
13542 * m4/fnmatch.m4: Fix fnmatch re-define.
13544 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
13546 priv-set: new module and tests; adapt write-any-file
13547 * lib/priv-set.c: New file.
13548 * lib/priv-set.h: New file.
13549 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13550 * lib/write-any-file.c: Simplify by using priv-set module.
13551 * m4/priv-set.m4: New file.
13552 * modules/priv-set: New file.
13553 * modules/unlinkdir: Add dependency on priv-set module.
13554 * modules/write-any-file: Likewise.
13556 Tests for module 'priv-set'.
13557 * modules/priv-set-tests: New file.
13558 * tests/test-priv-set.c: New file.
13560 2009-05-03 Jim Meyering <meyering@redhat.com>
13561 Bruno Haible <bruno@clisp.org>
13563 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13564 use the converted UTF-8 variant of the name instead.
13566 2009-05-03 Jim Meyering <meyering@redhat.com>
13568 tests: tighten some getdate tests
13569 * tests/test-getdate.c (main): Tighten tests: require equality,
13570 not just greater than. Set TZ envvar to UTC0.
13572 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
13574 getdate: correctly interpret "next monday" when run on a Monday
13575 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13576 that e.g., "next tues" (when run on a tuesday) results in a date
13577 that is one week in the future, and not today's date.
13578 I.e., add a week when the wday is the same as the current one.
13579 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13580 and earlier by Martin Bernreuther and Jan Minář.
13581 * tests/test-getdate.c (main): Check that "next DAY" is always in
13582 the future and that "last DAY" is always in the past.
13584 2009-05-02 Jim Meyering <meyering@redhat.com>
13586 build: ensure that a release build fails when a submodule is unclean
13587 * top/maint.mk (no-submodule-changes): New rule.
13588 (alpha beta major): Depend on it.
13590 2009-05-02 Bruno Haible <bruno@clisp.org>
13592 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13593 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13594 shell variable gl_fnmatch_required to detect which variant is
13596 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13597 gl_FUNC_FNMATCH_POSIX.
13598 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13599 exclude fnmatch-posix.
13601 2009-05-02 Bruno Haible <bruno@clisp.org>
13603 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13604 * modules/mbsrtowcs (License): Change to LGPLv2+.
13605 * modules/strnlen1 (License): Likewise.
13606 Reported by Simon Josefsson.
13608 2009-05-02 Bruno Haible <bruno@clisp.org>
13610 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13612 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13613 gnulib-tool was called with option --source-base=lib.
13615 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13617 Use automake *-local hooks without commands, for extensibility.
13618 * modules/localcharset (Makefile.am): Rename install-exec-local
13619 rule to install-exec-localcharset, and make it a prerequisite of
13620 install-exec-local. Likewise, rename the uninstall-local rule to
13621 uninstall-localcharset, and make it a prerequisite of the former.
13623 2009-05-01 Bruno Haible <bruno@clisp.org>
13625 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13626 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13627 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13628 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13629 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13630 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13631 m4/locale-zh.m4, m4/codeset.m4.
13633 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13634 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13635 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13638 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13639 REPLACE_WCRTOMB if mbstate_t must be replaced.
13640 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13641 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13643 2009-05-01 Bruno Haible <bruno@clisp.org>
13645 Avoid compiler warnings when redefining macros defined by <libintl.h>.
13646 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13647 dngettext, dcngettext, textdomain, bindtextdomain,
13648 bind_textdomain_codeset): Undefine before redefining.
13650 2009-04-30 Bruno Haible <bruno@clisp.org>
13652 Fix bug introduced on 2009-04-25.
13653 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13654 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13655 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13657 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13659 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13661 Reported by Elbert_Pol <elbert.pol@gmail.com>.
13663 2009-04-28 Bruno Haible <bruno@clisp.org>
13666 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13667 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13668 * lib/unicase.h (u*_casexfrm): Likewise.
13669 Reported by Paolo Bonzini.
13671 2009-04-28 Bruno Haible <bruno@clisp.org>
13673 Fix a compilation error.
13674 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13675 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13676 Reported by Jim Meyering.
13678 2009-04-27 Bruno Haible <bruno@clisp.org>
13680 New module 'libunistring'.
13681 * modules/libunistring: New file.
13682 * m4/libunistring.m4: New file.
13683 * MODULES.html.sh (Unicode string functions): Add it.
13685 2009-04-27 Eric Blake <ebb9@byu.net>
13687 maint.mk: allow package-specific header to provide <config.h>
13688 * top/maint.mk (sc_require_config_h): New variable.
13689 (sc_require_config_h, sc_require_config_h_first): Use it.
13691 2009-04-27 Simon Josefsson <simon@josefsson.org>
13693 * top/maint.mk (sc_avoid_if_before_free): Except
13694 useless-if-before-free script.
13696 2009-04-27 Eric Blake <ebb9@byu.net>
13698 maintainer-makefile: depend on all required helper scripts
13699 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13700 useless-if-before-free.
13701 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13702 version, rather than assuming gnulib checkout is available.
13703 Reported by Simen Josefsson.
13705 2009-04-26 Bruno Haible <bruno@clisp.org>
13707 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13708 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13711 2009-04-26 Bruno Haible <bruno@clisp.org>
13713 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13714 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13715 AC_LIB_HAVE_LINKFLAGS.
13717 2009-04-26 Bruno Haible <bruno@clisp.org>
13719 Simplify calling convention of u*_conv_from_encoding.
13720 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13721 u32_conv_from_encoding): Expect a resultbuf argument and return the
13722 result directly as a pointer.
13723 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13724 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13725 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13726 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13727 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13728 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13730 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13731 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13732 * lib/vasnprintf.c (VASNPRINTF): Update.
13733 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13734 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13735 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13736 * NEWS: Mention the change.
13738 2009-04-26 Bruno Haible <bruno@clisp.org>
13740 Simplify calling convention of u*_conv_to_encoding.
13741 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13742 u32_conv_to_encoding): Expect a resultbuf argument and return the
13743 result directly as a pointer.
13744 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13745 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13746 freeing scaled_offsets if mem_iconveha failed.
13747 * lib/unicase/u-casexfrm.h (FUNC): Update.
13748 * lib/uninorm/u-normxfrm.h (FUNC): Update.
13749 * lib/vasnprintf.c (VASNPRINTF): Update.
13750 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13751 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13752 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13753 * NEWS: Mention the change.
13755 2009-04-26 Bruno Haible <bruno@clisp.org>
13757 Avoid test failures on AIX and OSF/1.
13758 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13760 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13761 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13763 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13764 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13765 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13766 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13767 * doc/posix-functions/malloc.texi: Document the portability problem
13768 related to malloc(0).
13770 2009-04-26 Bruno Haible <bruno@clisp.org>
13772 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13773 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13774 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13776 2009-04-25 Bruno Haible <bruno@clisp.org>
13778 Avoid link error when creating a namespace clean library.
13779 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13780 as macro with arguments if already defined as an alias.
13781 * lib/signbitf.c (gl_signbitf): Don't undefine.
13782 * lib/signbitd.c (gl_signbitd): Don't undefine.
13783 * lib/signbitl.c (gl_signbitl): Don't undefine.
13785 2009-04-25 Jim Meyering <meyering@redhat.com>
13787 vc-list-files: fix another quoting bug
13788 * build-aux/vc-list-files: Avoid sed backslash expansion
13789 of pathological directory names.
13791 2009-04-25 Eric Blake <ebb9@byu.net>
13793 vc-list-files: fix shell quoting error
13794 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
13797 2009-04-25 Jim Meyering <meyering@redhat.com>
13799 vc-list-files: restore lost functionality with subdir argument
13800 * build-aux/vc-list-files: When given a non-"." sub-directory
13801 argument, substitute the $dir/ prefix back onto each resulting name.
13802 Otherwise, coreutils' root_tests check would fail.
13804 2009-04-24 Eric Blake <ebb9@byu.net>
13806 vc-list-files: ignore git symlinks
13807 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13808 than ls-files, to ignore git symlinks.
13810 maint.mk: import improvements from m4
13811 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13812 (move_if_change): Delete unused macro.
13813 (news-date-check, vc-diff-check): Support VPATH builds.
13814 (announcement): Likewise. Split --bootstrap-tools list...
13815 (boostrap-tools): ...into separate list, which can be overridden
13817 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13818 requiring dependency on useless-if-before-free module.
13819 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13820 Support VPATH builds.
13822 2009-04-24 Jim Meyering <meyering@redhat.com>
13824 maint.mk: remove coreutils-specific rules and variables
13825 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13826 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13827 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13829 maint.mk: remove obsolete rule
13830 * top/maint.mk (rel-check): Remove rule.
13831 (WGET, WGETFLAGS): Remove now-unused variables.
13833 2009-04-24 Simon Josefsson <simon@josefsson.org>
13835 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13838 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13839 '$(PATH_SEPARATOR)' instead of ':'.
13841 2009-04-24 Simon Josefsson <simon@josefsson.org>
13843 * lib/getopt1.c (main): Use 'const' for static array.
13845 2009-04-24 Simon Josefsson <simon@josefsson.org>
13847 * top/maint.mk: Sync with coreutils.
13848 * NEWS: Explain incompatibilities.
13850 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13851 Bruno Haible <bruno@clisp.org>
13853 Fix cross-compilation results.
13854 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13855 statement, as third argument of AC_TRY_RUN.
13856 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13857 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13859 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13860 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13862 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13863 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13864 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13866 2009-04-20 Bruno Haible <bruno@clisp.org>
13868 Avoid test failure on mingw.
13869 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13871 2009-04-20 Bruno Haible <bruno@clisp.org>
13873 Avoid compilation error on mingw.
13874 * modules/localename-tests (Depends-on): Add locale.
13876 2009-04-19 Bruno Haible <bruno@clisp.org>
13878 Support for building a shared library on Windows platforms.
13879 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13880 (main): Test the presence of UNINORM_NFC here.
13881 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13882 (main): Test the presence of UNINORM_NFD here.
13883 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13884 (main): Test the presence of UNINORM_NFKC here.
13885 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13886 (main): Test the presence of UNINORM_NFKD here.
13888 2009-04-19 Bruno Haible <bruno@clisp.org>
13890 Avoid a compiler warning.
13891 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13892 Change type of variable 'sequence'.
13894 2009-04-19 Bruno Haible <bruno@clisp.org>
13896 * modules/configmake (Makefile.am): When the contents of configmake.h
13897 does not change, arrange to preserve its modification time.
13899 2009-04-17 Simon Josefsson <simon@josefsson.org>
13901 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13904 2009-04-16 Jim Meyering <meyering@redhat.com>
13906 useless-if-before-free: improve conversion code
13907 * build-aux/useless-if-before-free: Adjust code-in-comment to match
13908 "...!= 0" as well as "...!= NULL". emacs has one of the former.
13910 2009-04-14 Bruno Haible <bruno@clisp.org>
13912 * modules/fcntl (Depends-on): Add extensions.
13913 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13915 2009-04-12 Ben Pfaff <blp@gnu.org>
13917 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13918 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13920 2009-03-20 Ben Pfaff <blp@gnu.org>
13922 Make rename replace existing destinations on Windows.
13923 * m4/rename.m4: Add test for Mingw.
13924 * lib/rename.c: Add rename replacement that uses MoveFileEx with
13925 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13926 * doc/posix-functions/rename.texi: Document.
13928 2009-04-10 Bruno Haible <bruno@clisp.org>
13930 New include file "iconveh.h".
13931 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13932 * lib/striconveh.h: Include it.
13933 (enum iconv_ilseq_handler): Remove definition.
13934 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13936 * lib/striconveha.c: Include striconveh.h.
13937 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13938 * modules/striconveh (Files): Add lib/iconveh.h.
13939 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13942 2009-04-10 Bruno Haible <bruno@clisp.org>
13944 * lib/uniconv.h: Update comment.
13946 2009-04-10 Bruno Haible <bruno@clisp.org>
13948 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13950 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13951 * lib/unistr/u16-mbtouc-aux.c: Likewise.
13952 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13953 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13954 "unistring-notinline.h", so that the function gets defined always.
13955 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13956 * lib/unistr/u8-uctomb.c: Likewise.
13957 * lib/unistr/u16-mbtouc.c: Likewise.
13958 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13959 * lib/unistr/u16-uctomb.c: Likewise.
13960 * lib/unistr/u32-mbtouc.c: Likewise.
13961 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13962 * lib/unistr/u32-uctomb.c: Likewise.
13964 2009-04-10 Bruno Haible <bruno@clisp.org>
13966 Mark 'utime' obsolete.
13967 * modules/utime (Status, Notice): New sections.
13968 Suggested by Jim Meyering.
13970 Fix cross-compile guess for utime test.
13971 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13973 * doc/posix-functions/utime.texi: Give more precisions.
13974 Reported by Jan <ipif@ymail.com>.
13976 2009-04-09 Kamil Dudka <kdudka@redhat.com>
13978 filevercmp: correct today's change
13979 * lib/filevercmp.c: Also handle coreutils' test inputs.
13980 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13982 Fix regression in 'filevercmp' module. Thanks Sven Joachim
13984 * lib/filevercmp.c: Special handle for "", "." and "..".
13985 * tests/test-filevercmp.c: Enlarge the set suite.
13987 2009-04-07 Jim Meyering <meyering@redhat.com>
13989 useless-if-before-free: show how to remove braced useless free, too
13990 * build-aux/useless-if-before-free: still only in a comment, though.
13992 2009-04-07 Reuben Thomas <rrt@sc3d.org>
13994 maint.mk: import changes to syntax-check macros from coreutils
13995 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13996 Use them in the relevant macros.
13998 2009-04-06 Bruno Haible <bruno@clisp.org>
14000 Fix unportable use of bit-fields.
14001 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14002 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14003 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14005 2009-04-06 Bruno Haible <bruno@clisp.org>
14007 Avoid test failures on AIX and OSF/1.
14008 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14009 that malloc(0) = NULL.
14010 * tests/unicase/test-u8-tolower.c (check): Likewise.
14011 * tests/unicase/test-u8-totitle.c (check): Likewise.
14012 * tests/unicase/test-u8-toupper.c (check): Likewise.
14013 * tests/unicase/test-u16-casefold.c (check): Likewise.
14014 * tests/unicase/test-u16-tolower.c (check): Likewise.
14015 * tests/unicase/test-u16-totitle.c (check): Likewise.
14016 * tests/unicase/test-u16-toupper.c (check): Likewise.
14017 * tests/unicase/test-u32-casefold.c (check): Likewise.
14018 * tests/unicase/test-u32-tolower.c (check): Likewise.
14019 * tests/unicase/test-u32-totitle.c (check): Likewise.
14020 * tests/unicase/test-u32-toupper.c (check): Likewise.
14021 * tests/uninorm/test-u8-nfc.c (check): Likewise.
14022 * tests/uninorm/test-u8-nfd.c (check): Likewise.
14023 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14024 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14025 * tests/uninorm/test-u16-nfc.c (check): Likewise.
14026 * tests/uninorm/test-u16-nfd.c (check): Likewise.
14027 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14028 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14029 * tests/uninorm/test-u32-nfc.c (check): Likewise.
14030 * tests/uninorm/test-u32-nfd.c (check): Likewise.
14031 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14032 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14034 2009-04-05 Bruno Haible <bruno@clisp.org>
14036 Work around an autoconf limitation.
14037 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14038 comment line if it would be longer than 3 KB.
14040 2009-04-05 Bruno Haible <bruno@clisp.org>
14042 Avoid test failure with libiconv-1.13.
14043 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14044 of the expected test results.
14046 2009-04-05 Bruno Haible <bruno@clisp.org>
14048 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14049 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14050 that it should be installed.
14052 2009-04-05 Bruno Haible <bruno@clisp.org>
14054 * gnulib-tool: New option --copy-file.
14055 (func_usage): Document it.
14056 (func_dest_tmpfilename): Moved out of func_import.
14057 (func_add_file, func_update_file): New functions, extracted from
14059 (func_import): Update.
14061 2009-04-05 Karl Berry <karl@gnu.org>
14063 * README: prominently mention gnulib-tool.
14064 Rearrange sections so getting the code is near the top.
14066 2009-04-05 Bruno Haible <bruno@clisp.org>
14068 * lib/unicase.h: Mention u*_cmp2.
14069 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14070 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14071 * lib/unicase/ulc-casecmp.c: Likewise.
14072 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14073 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14074 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14076 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14077 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14079 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14082 * lib/uninorm.h: Mention u*_cmp2.
14083 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14084 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14085 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14086 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14087 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14089 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14091 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14094 New module 'unistr/u32-cmp2'.
14095 * lib/unistr/u32-cmp2.c: New file.
14096 * modules/unistr/u32-cmp2: New file.
14098 New module 'unistr/u16-cmp2'.
14099 * lib/unistr/u16-cmp2.c: New file.
14100 * modules/unistr/u16-cmp2: New file.
14102 New module 'unistr/u8-cmp2'.
14103 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14104 * lib/unistr/u8-cmp2.c: New file.
14105 * lib/unistr/u-cmp2.h: New file.
14106 * modules/unistr/u8-cmp2: New file.
14108 2009-04-05 Bruno Haible <bruno@clisp.org>
14110 * lib/unictype.h (uc_property_is_valid): New macro.
14111 * tests/unictype/test-pr_byname.c (main): Use it.
14113 * lib/unistr.h: Doc fixes.
14114 * lib/uniconv.h: Doc fixes.
14115 * lib/unictype.h: Doc fixes.
14117 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
14119 Port coreutils 7.2 to Solaris 8.
14121 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14122 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14123 for Solaris 8. This is a bit of a hack, as it means it's the
14124 caller's responsibility to add -lnsl if needed, but most likely it
14125 won't be needed since only getaddrinfo uses this and getaddrinfo
14126 isn't needed on Solaris 8.
14128 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14129 problem to Solaris 8 encountered with coreutils 7.2, which
14130 resulted in a message "fnmatch.c:292: warning: passing argument 4
14131 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
14132 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14134 2009-04-03 Simon Josefsson <simon@josefsson.org>
14136 * m4/ld-version-script.m4: Add FIXME comment.
14138 2009-04-02 Simon Josefsson <simon@josefsson.org>
14140 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14141 SOVERSION variable.
14143 2009-04-02 Bruno Haible <bruno@clisp.org>
14145 * Makefile (info, html, dvi, pdf): Combine the rules.
14146 Suggested by Jim Meyering.
14148 2009-04-01 Bruno Haible <bruno@clisp.org>
14150 * Makefile (info, html, dvi, pdf): New targets.
14151 Reported by Reuben Thomas <rrt@sc3d.org>.
14153 2009-04-01 Bruno Haible <bruno@clisp.org>
14155 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14156 can be put into PATH.
14157 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14159 2009-04-01 Bruno Haible <bruno@clisp.org>
14161 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14163 2009-04-01 Bruno Haible <bruno@clisp.org>
14165 Rename module 'visibility'.
14166 * modules/lib-symbol-visibility: Renamed from modules/visibility.
14167 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14168 * doc/gnulib.texi: Update.
14169 * MODULES.html.sh (Misc): Update.
14170 * NEWS: Mention the change.
14172 2009-04-01 Simon Josefsson <simon@josefsson.org>
14174 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
14175 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14176 Eric Blake <ebb9@byu.net> for review.
14177 * MODULES.html.sh: Add lib-msvc-compat.
14178 * doc/gnulib.texi: Link to new section.
14179 * m4/ld-output-def.m4: New file.
14180 * doc/ld-output-def.texi: New file.
14182 2009-04-01 Simon Josefsson <simon@josefsson.org>
14184 Rename ld-version-script to lib-symbol-versions. Suggested by
14185 Bruno Haible <bruno@clisp.org>.
14186 * modules/ld-version-script: Renamed to lib-symbol-versions.
14187 * doc/ld-version-script.texi: Fix module name.
14188 * MODULES.html.sh: Add lib-symbol-versions.
14190 2009-03-31 Simon Josefsson <simon@josefsson.org>
14192 * modules/u64-tests: New file.
14193 * tests/test-u64.c: New file.
14195 2009-03-04 Simon Josefsson <simon@josefsson.org>
14197 * MODULES.html.sh: Mention u64.
14198 * modules/u64: New module.
14199 * modules/crypto/sha512: Depend on u64 module instead of providing
14202 2009-03-27 Eric Blake <ebb9@byu.net>
14204 test-strerror: make debugging EAI_SYSTEM easier
14205 * modules/getaddrinfo-tests (Depends-on): Add strerror.
14206 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14207 failure was EAI_SYSTEM.
14209 2009-03-25 Bruno Haible <bruno@clisp.org>
14211 Fix a problem with --enable-relocatable on Solaris 7.
14212 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14215 2009-03-25 Eric Blake <ebb9@byu.net>
14217 test-sockets: avoid gcc warning
14218 * tests/test-sockets.c (main): Silence compiler warning.
14220 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
14222 New modules nproc, pthread, contributed by Glen Lenker.
14224 * MODULES.html.sh: Add pthread, nproc.
14225 * lib/nproc.c: New file.
14226 * lib/nproc.h: New file.
14227 * lib/pthread.in.h: New file.
14228 * m4/pthread.m4: New file.
14229 * modules/nproc: New file.
14230 * modules/pthread: New file.
14232 2009-03-24 Simon Josefsson <simon@josefsson.org>
14234 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14237 2009-03-24 Kamil Dudka <kdudka@redhat.com>
14239 filevercmp: handle simple~ and numbered.~3~ backup suffixes
14240 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14241 * tests/test-filevercmp.c: Add tests for backup suffixes.
14243 2009-03-24 Simon Josefsson <simon@josefsson.org>
14245 * modules/stdlib (Depends-on): Add stdint, needed when defining
14246 struct random_data on, for example, HP-UX 10.20. Reported by
14247 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14249 2009-03-24 Simon Josefsson <simon@josefsson.org>
14251 * lib/readline.c (readline): Call fflush on stdout after printing
14254 2009-03-20 Bruno Haible <bruno@clisp.org>
14256 Remove dependency from 'close' module to -lws2_32 on native Windows.
14257 * lib/close-hook.h: New file.
14258 * lib/close-hook.c: New file.
14259 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14261 (_gl_close_fd_maybe_socket): Remove function.
14262 (rpl_close): Invoke execute_all_close_hooks instead of
14263 _gl_close_fd_maybe_socket.
14264 * lib/sockets.c: Include close-hook.h, w32sock.h.
14265 (close_fd_maybe_socket): New function, essentially from lib/close.c.
14266 (close_sockets_hook): New variable.
14267 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14268 (gl_sockets_cleanup): Unregister it.
14269 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14270 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14271 * modules/close-hook: New file.
14272 * modules/close (Files): Remove lib/w32sock.h.
14273 (Depends-on): Add close-hook.
14274 (Link): Remove section.
14275 * modules/sockets (Files): Add lib/w32sock.h.
14276 (Depends-on): Add close-hook.
14277 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14279 * NEWS: Mention that LIB_CLOSE is gone.
14281 2009-03-23 Eric Blake <ebb9@byu.net>
14283 signal-tests: test previous patch
14284 * tests/test-signal.c: New file.
14285 * modules/signal-tests: Likewise.
14287 signal.h: always support 'volatile sig_atomic_t'
14288 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14289 (gl_SIGNAL_H_DEFAULTS): Add a default.
14290 * modules/signal (Makefile.am): Substitute if needed.
14291 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14292 users can blindly add volatile.
14293 * doc/posix-headers/signal.texi (signal.h): Document it.
14294 Reported by Matthew Woehlke.
14296 2009-03-23 Jim Meyering <meyering@redhat.com>
14298 pathmax: PATH_MAX: use pathconf only when available
14299 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14300 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
14301 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14302 This avoids a link failure in a PSP cross-compilation environment
14303 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14305 * lib/vasnprintf.c (divide): Fix typo in comment.
14307 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14309 * gnulib-tool (func_filter_filelist): Fix comment.
14311 2009-03-20 Bruno Haible <bruno@clisp.org>
14313 Make sockets.h self-contained.
14314 * lib/sockets.c: Include sockets.h first.
14315 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14317 2009-03-19 Eric Blake <ebb9@byu.net>
14319 doc: mention more functions added in cygwin 1.7.0
14320 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14322 * doc/posix-functions/log2f.texi: Likewise.
14324 2009-03-19 Jim Meyering <meyering@redhat.com>
14326 fsusage: avoid syntax error due to statement-before-declaration
14327 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14328 after all declarations. Reported by Matthew Woehlke in
14329 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14331 2009-03-18 Eric Blake <ebb9@byu.net>
14333 build-aux/compile: sync from automake
14334 * build-aux/compile: New file, from automake.
14335 * config/srclist.txt: Mention build-aux/compile.
14337 2009-03-17 Bruno Haible <bruno@clisp.org>
14339 * lib/git-merge-changelog.c: Fix typo in comment.
14340 Reported by Reuben Thomas <rrt@sc3d.org>.
14342 2009-03-17 Reuben Thomas <rrt@sc3d.org>
14344 * m4/regex.m4: update and improve help for
14345 --without-included-regex.
14347 2009-03-17 Simon Josefsson <simon@josefsson.org>
14349 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14350 failure on missing include files.
14352 2009-03-17 Eric Blake <ebb9@byu.net>
14354 doc: mention more functions added in cygwin 1.7.0
14355 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14357 * doc/posix-functions/fwscanf.texi: Likewise.
14358 * doc/posix-functions/swprintf.texi: Likewise.
14359 * doc/posix-functions/swscanf.texi: Likewise.
14360 * doc/posix-functions/vfwprintf.texi: Likewise.
14361 * doc/posix-functions/vfwscanf.texi: Likewise.
14362 * doc/posix-functions/vswprintf.texi: Likewise.
14363 * doc/posix-functions/vswscanf.texi: Likewise.
14364 * doc/posix-functions/vwprintf.texi: Likewise.
14365 * doc/posix-functions/vwscanf.texi: Likewise.
14366 * doc/posix-functions/wcscasecmp.texi: Likewise.
14367 * doc/posix-functions/wcsdup.texi: Likewise.
14368 * doc/posix-functions/wcsftime.texi: Likewise.
14369 * doc/posix-functions/wcsncasecmp.texi: Likewise.
14370 * doc/posix-functions/wprintf.texi: Likewise.
14371 * doc/posix-functions/wscanf.texi: Likewise.
14372 * doc/glibc-functions/gethostbyname2.texi: Likewise.
14374 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14376 maint.mk: really add $(AM_MAKEFLAGS)
14377 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14378 was inadvertently omitted in the last commit.
14379 Spotted by Bruno Haible.
14381 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14382 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14383 $(AM_MAKEFLAGS)' rather than plain `make'.
14385 gnulib-tool: execute $MAKE not make
14386 * gnulib-tool: Default $MAKE to 'make'.
14387 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14388 than make. Initialize $MAKE in the do-autobuild script.
14390 gnulib-tool: use $MAKE not make in generated files
14391 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14392 make, in generated files. Initialize $MAKE in the do-autobuild
14395 * top/GNUmakefile (_have-git-version-gen): Fix typo.
14397 GNUmakefile: disable parallelism only for multiple, recursive targets
14398 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14399 additions in the Makefile.
14400 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14402 (.NOTPARALLEL): Only disable parallel builds if multiple targets
14403 are listed on the command line and at least one of them is
14404 listed in $(ALL_RECURSIVE_TARGETS).
14406 2009-03-14 Bruno Haible <bruno@clisp.org>
14408 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14409 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14410 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14411 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14412 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14413 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14414 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14416 * modules/unistr/u8-strchr (Depends-on): Likewise.
14417 * modules/unistr/u8-strrchr (Depends-on): Likewise.
14418 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14420 * modules/unistr/u16-strchr (Depends-on): Likewise.
14421 * modules/unistr/u16-strrchr (Depends-on): Likewise.
14423 2009-03-12 Bruno Haible <bruno@clisp.org>
14425 Work around select() bug on Interix 3.5.
14426 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14427 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14428 * m4/select.m4: New file.
14429 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14430 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14431 * modules/select (Files): Add m4/select.m4.
14432 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14433 * modules/nanosleep (Depends-on): Add select.
14434 * modules/poll (Depends-on): Likewise.
14435 * doc/posix-functions/select.texi: Mention the Interix bug.
14436 Reported by Markus Duft <mduft@gentoo.org>.
14438 * lib/select.c: Renamed from lib/winsock-select.c.
14439 * modules/select (Files): Add lib/select.c, remove
14440 lib/winsock-select.c.
14441 (configure.ac): Update.
14443 2009-03-12 Jim Meyering <meyering@redhat.com>
14445 avoid gcc warnings about unused macro definitions
14446 * lib/readtokens.c (STREQ): Remove unused definition.
14447 * lib/xmalloc.c (SIZE_MAX): Likewise.
14448 * lib/openat-die.c (N_): Likewise.
14449 * lib/mountlist.c (SIZE_MAX): Remove definition.
14450 Instead, include <stdint.h>.
14451 * lib/readutmp.c: Likewise.
14452 * modules/readutmp (Depends-on): Add stdint.
14453 * modules/mountlist (Depends-on): Add stdint.
14454 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14456 2009-03-10 Bruno Haible <bruno@clisp.org>
14458 Tests for module 'mbmemcasecoll'.
14459 * modules/mbmemcasecoll-tests: New file.
14460 * tests/test-mbmemcasecoll1.sh: New file.
14461 * tests/test-mbmemcasecoll2.sh: New file.
14462 * tests/test-mbmemcasecoll3.sh: New file.
14463 * tests/test-mbmemcasecoll.c: New file.
14465 New module 'mbmemcasecoll'.
14466 * lib/mbmemcasecoll.h: New file.
14467 * lib/mbmemcasecoll.c: New file.
14468 * modules/mbmemcasecoll: New file.
14470 * tests/test-mbmemcasecmp.h: New file, extracted from
14471 tests/test-mbmemcasecmp.c.
14472 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14473 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14475 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14477 2009-03-09 Bruno Haible <bruno@clisp.org>
14479 Tests for module 'mbmemcasecmp'.
14480 * modules/mbmemcasecmp-tests: New file.
14481 * tests/test-mbmemcasecmp1.sh: New file.
14482 * tests/test-mbmemcasecmp2.sh: New file.
14483 * tests/test-mbmemcasecmp3.sh: New file.
14484 * tests/test-mbmemcasecmp.c: New file.
14486 New module 'mbmemcasecmp'.
14487 * lib/mbmemcasecmp.h: New file.
14488 * lib/mbmemcasecmp.c: New file.
14489 * modules/mbmemcasecmp: New file.
14491 2009-03-09 Bruno Haible <bruno@clisp.org>
14493 Tests for module 'unicase/ulc-casecoll'.
14494 * modules/unicase/ulc-casecoll-tests: New file.
14495 * tests/unicase/test-ulc-casecoll1.sh: New file.
14496 * tests/unicase/test-ulc-casecoll2.sh: New file.
14497 * tests/unicase/test-ulc-casecoll.c: New file.
14499 New module 'unicase/ulc-casecoll'.
14500 * lib/unicase.h (ulc_casecoll): New declaration.
14501 * lib/unicase/ulc-casecoll.c: New file.
14502 * modules/unicase/ulc-casecoll: New file.
14504 New module 'unicase/ulc-casexfrm'.
14505 * lib/unicase.h (ulc_casexfrm): New declaration.
14506 * lib/unicase/ulc-casexfrm.c: New file.
14507 * modules/unicase/ulc-casexfrm: New file.
14509 2009-03-09 Bruno Haible <bruno@clisp.org>
14511 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14514 * m4/mbscasecmp.m4: Remove file.
14515 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14516 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14518 * m4/mbscasestr.m4: Remove file.
14519 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14520 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14522 * m4/mbschr.m4: Remove file.
14523 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14524 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14526 * m4/mbscspn.m4: Remove file.
14527 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14528 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14530 * m4/mbslen.m4: Remove file.
14531 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14532 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14534 * m4/mbsncasecmp.m4: Remove file.
14535 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14536 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14538 * m4/mbsnlen.m4: Remove file.
14539 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14540 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14542 * m4/mbspbrk.m4: Remove file.
14543 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14544 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14546 * m4/mbspcasecmp.m4: Remove file.
14547 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14548 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14550 * m4/mbsrchr.m4: Remove file.
14551 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14552 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14554 * m4/mbssep.m4: Remove file.
14555 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14556 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14558 * m4/mbsspn.m4: Remove file.
14559 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14560 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14562 * m4/mbsstr.m4: Remove file.
14563 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14564 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14566 * m4/mbstok_r.m4: Remove file.
14567 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14568 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14570 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14572 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14573 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14575 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14577 2009-03-08 Bruno Haible <bruno@clisp.org>
14579 Tests for module 'unicase/ulc-casecmp'.
14580 * modules/unicase/ulc-casecmp-tests: New file.
14581 * tests/unicase/test-ulc-casecmp1.sh: New file.
14582 * tests/unicase/test-ulc-casecmp2.sh: New file.
14583 * tests/unicase/test-ulc-casecmp.c: New file.
14585 New module 'unicase/ulc-casecmp'.
14586 * lib/unicase.h (ulc_casecmp): New declaration.
14587 * lib/unicase/ulc-casecmp.c: New file.
14588 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14589 'const SRC_UNIT *'.
14590 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14591 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14592 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14593 * modules/unicase/ulc-casecmp: New file.
14595 Tests for module 'unicase/u32-is-cased'.
14596 * modules/unicase/u32-is-cased-tests: New file.
14597 * tests/unicase/test-u32-is-cased.c: New file.
14599 Tests for module 'unicase/u16-is-cased'.
14600 * modules/unicase/u16-is-cased-tests: New file.
14601 * tests/unicase/test-u16-is-cased.c: New file.
14603 Tests for module 'unicase/u8-is-cased'.
14604 * modules/unicase/u8-is-cased-tests: New file.
14605 * tests/unicase/test-u8-is-cased.c: New file.
14606 * tests/unicase/test-is-cased.h: New file.
14608 New module 'unicase/u32-is-cased'.
14609 * lib/unicase/u32-is-cased.c: New file.
14610 * modules/unicase/u32-is-cased: New file.
14612 New module 'unicase/u16-is-cased'.
14613 * lib/unicase/u16-is-cased.c: New file.
14614 * modules/unicase/u16-is-cased: New file.
14616 New module 'unicase/u8-is-cased'.
14617 * lib/unicase/u8-is-cased.c: New file.
14618 * lib/unicase/u-is-cased.h: New file.
14619 * modules/unicase/u8-is-cased: New file.
14621 Tests for module 'unicase/u32-is-casefolded'.
14622 * modules/unicase/u32-is-casefolded-tests: New file.
14623 * tests/unicase/test-u32-is-casefolded.c: New file.
14625 Tests for module 'unicase/u16-is-casefolded'.
14626 * modules/unicase/u16-is-casefolded-tests: New file.
14627 * tests/unicase/test-u16-is-casefolded.c: New file.
14629 Tests for module 'unicase/u8-is-casefolded'.
14630 * modules/unicase/u8-is-casefolded-tests: New file.
14631 * tests/unicase/test-u8-is-casefolded.c: New file.
14632 * tests/unicase/test-is-casefolded.h: New file.
14634 New module 'unicase/u32-is-casefolded'.
14635 * lib/unicase/u32-is-casefolded.c: New file.
14636 * modules/unicase/u32-is-casefolded: New file.
14638 New module 'unicase/u16-is-casefolded'.
14639 * lib/unicase/u16-is-casefolded.c: New file.
14640 * modules/unicase/u16-is-casefolded: New file.
14642 New module 'unicase/u8-is-casefolded'.
14643 * lib/unicase/u8-is-casefolded.c: New file.
14644 * modules/unicase/u8-is-casefolded: New file.
14646 Tests for module 'unicase/u32-is-titlecase'.
14647 * modules/unicase/u32-is-titlecase-tests: New file.
14648 * tests/unicase/test-u32-is-titlecase.c: New file.
14650 Tests for module 'unicase/u16-is-titlecase'.
14651 * modules/unicase/u16-is-titlecase-tests: New file.
14652 * tests/unicase/test-u16-is-titlecase.c: New file.
14654 Tests for module 'unicase/u8-is-titlecase'.
14655 * modules/unicase/u8-is-titlecase-tests: New file.
14656 * tests/unicase/test-u8-is-titlecase.c: New file.
14657 * tests/unicase/test-is-titlecase.h: New file.
14659 New module 'unicase/u32-is-titlecase'.
14660 * lib/unicase/u32-is-titlecase.c: New file.
14661 * modules/unicase/u32-is-titlecase: New file.
14663 New module 'unicase/u16-is-titlecase'.
14664 * lib/unicase/u16-is-titlecase.c: New file.
14665 * modules/unicase/u16-is-titlecase: New file.
14667 New module 'unicase/u8-is-titlecase'.
14668 * lib/unicase/u8-is-titlecase.c: New file.
14669 * modules/unicase/u8-is-titlecase: New file.
14671 Tests for module 'unicase/u32-is-lowercase'.
14672 * modules/unicase/u32-is-lowercase-tests: New file.
14673 * tests/unicase/test-u32-is-lowercase.c: New file.
14675 Tests for module 'unicase/u16-is-lowercase'.
14676 * modules/unicase/u16-is-lowercase-tests: New file.
14677 * tests/unicase/test-u16-is-lowercase.c: New file.
14679 Tests for module 'unicase/u8-is-lowercase'.
14680 * modules/unicase/u8-is-lowercase-tests: New file.
14681 * tests/unicase/test-u8-is-lowercase.c: New file.
14682 * tests/unicase/test-is-lowercase.h: New file.
14684 New module 'unicase/u32-is-lowercase'.
14685 * lib/unicase/u32-is-lowercase.c: New file.
14686 * modules/unicase/u32-is-lowercase: New file.
14688 New module 'unicase/u16-is-lowercase'.
14689 * lib/unicase/u16-is-lowercase.c: New file.
14690 * modules/unicase/u16-is-lowercase: New file.
14692 New module 'unicase/u8-is-lowercase'.
14693 * lib/unicase/u8-is-lowercase.c: New file.
14694 * modules/unicase/u8-is-lowercase: New file.
14696 Tests for module 'unicase/u32-is-uppercase'.
14697 * modules/unicase/u32-is-uppercase-tests: New file.
14698 * tests/unicase/test-u32-is-uppercase.c: New file.
14700 Tests for module 'unicase/u16-is-uppercase'.
14701 * modules/unicase/u16-is-uppercase-tests: New file.
14702 * tests/unicase/test-u16-is-uppercase.c: New file.
14704 Tests for module 'unicase/u8-is-uppercase'.
14705 * modules/unicase/u8-is-uppercase-tests: New file.
14706 * tests/unicase/test-u8-is-uppercase.c: New file.
14707 * tests/unicase/test-is-uppercase.h: New file.
14709 New module 'unicase/u32-is-uppercase'.
14710 * lib/unicase/u32-is-uppercase.c: New file.
14711 * modules/unicase/u32-is-uppercase: New file.
14713 New module 'unicase/u16-is-uppercase'.
14714 * lib/unicase/u16-is-uppercase.c: New file.
14715 * modules/unicase/u16-is-uppercase: New file.
14717 New module 'unicase/u8-is-uppercase'.
14718 * lib/unicase/u8-is-uppercase.c: New file.
14719 * modules/unicase/u8-is-uppercase: New file.
14721 New module 'unicase/u32-is-invariant'.
14722 * lib/unicase/u32-is-invariant.c: New file.
14723 * modules/unicase/u32-is-invariant: New file.
14725 New module 'unicase/u16-is-invariant'.
14726 * lib/unicase/u16-is-invariant.c: New file.
14727 * modules/unicase/u16-is-invariant: New file.
14729 New module 'unicase/u8-is-invariant'.
14730 * lib/unicase/u8-is-invariant.c: New file.
14731 * lib/unicase/invariant.h: New file.
14732 * lib/unicase/u-is-invariant.h: New file.
14733 * modules/unicase/u8-is-invariant: New file.
14735 Tests for module 'unicase/u32-casecoll'.
14736 * modules/unicase/u32-casecoll-tests: New file.
14737 * tests/unicase/test-u32-casecoll.c: New file.
14739 Tests for module 'unicase/u16-casecoll'.
14740 * modules/unicase/u16-casecoll-tests: New file.
14741 * tests/unicase/test-u16-casecoll.c: New file.
14743 Tests for module 'unicase/u8-casecoll'.
14744 * modules/unicase/u8-casecoll-tests: New file.
14745 * tests/unicase/test-u8-casecoll.c: New file.
14747 New module 'unicase/u32-casecoll'.
14748 * lib/unicase/u32-casecoll.c: New file.
14749 * modules/unicase/u32-casecoll: New file.
14751 New module 'unicase/u16-casecoll'.
14752 * lib/unicase/u16-casecoll.c: New file.
14753 * modules/unicase/u16-casecoll: New file.
14755 New module 'unicase/u8-casecoll'.
14756 * lib/unicase/u8-casecoll.c: New file.
14757 * lib/unicase/u-casecoll.h: New file.
14758 * modules/unicase/u8-casecoll: New file.
14760 New module 'unicase/u32-casexfrm'.
14761 * lib/unicase/u32-casexfrm.c: New file.
14762 * modules/unicase/u32-casexfrm: New file.
14764 New module 'unicase/u16-casexfrm'.
14765 * lib/unicase/u16-casexfrm.c: New file.
14766 * modules/unicase/u16-casexfrm: New file.
14768 New module 'unicase/u8-casexfrm'.
14769 * lib/unicase/u8-casexfrm.c: New file.
14770 * lib/unicase/u-casexfrm.h: New file.
14771 * modules/unicase/u8-casexfrm: New file.
14773 Tests for module 'unicase/u32-casecmp'.
14774 * modules/unicase/u32-casecmp-tests: New file.
14775 * tests/unicase/test-u32-casecmp.c: New file.
14777 Tests for module 'unicase/u16-casecmp'.
14778 * modules/unicase/u16-casecmp-tests: New file.
14779 * tests/unicase/test-u16-casecmp.c: New file.
14781 Tests for module 'unicase/u8-casecmp'.
14782 * modules/unicase/u8-casecmp-tests: New file.
14783 * tests/unicase/test-u8-casecmp.c: New file.
14784 * tests/unicase/test-casecmp.h: New file.
14786 New module 'unicase/u32-casecmp'.
14787 * lib/unicase/u32-casecmp.c: New file.
14788 * modules/unicase/u32-casecmp: New file.
14790 New module 'unicase/u16-casecmp'.
14791 * lib/unicase/u16-casecmp.c: New file.
14792 * modules/unicase/u16-casecmp: New file.
14794 New module 'unicase/u8-casecmp'.
14795 * lib/unicase/u8-casecmp.c: New file.
14796 * lib/unicase/u-casecmp.h: New file.
14797 * modules/unicase/u8-casecmp: New file.
14799 Tests for module 'unicase/u32-casefold'.
14800 * modules/unicase/u32-casefold-tests: New file.
14801 * tests/unicase/test-u32-casefold.c: New file.
14803 Tests for module 'unicase/u16-casefold'.
14804 * modules/unicase/u16-casefold-tests: New file.
14805 * tests/unicase/test-u16-casefold.c: New file.
14807 Tests for module 'unicase/u8-casefold'.
14808 * modules/unicase/u8-casefold-tests: New file.
14809 * tests/unicase/test-u8-casefold.c: New file.
14811 New module 'unicase/u32-casefold'.
14812 * lib/unicase/u32-casefold.c: New file.
14813 * modules/unicase/u32-casefold: New file.
14815 New module 'unicase/u16-casefold'.
14816 * lib/unicase/u16-casefold.c: New file.
14817 * modules/unicase/u16-casefold: New file.
14819 New module 'unicase/u8-casefold'.
14820 * lib/unicase/u8-casefold.c: New file.
14821 * lib/unicase/u-casefold.h: New file.
14822 * modules/unicase/u8-casefold: New file.
14824 New module 'unicase/tocasefold'.
14825 * lib/unicase/casefold.h: New file.
14826 * lib/unicase/tocasefold.c: New file.
14827 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14828 * modules/unicase/tocasefold: New file.
14830 Tests for module 'unicase/u32-totitle'.
14831 * modules/unicase/u32-totitle-tests: New file.
14832 * tests/unicase/test-u32-totitle.c: New file.
14834 Tests for module 'unicase/u16-totitle'.
14835 * modules/unicase/u16-totitle-tests: New file.
14836 * tests/unicase/test-u16-totitle.c: New file.
14838 Tests for module 'unicase/u8-totitle'.
14839 * modules/unicase/u8-totitle-tests: New file.
14840 * tests/unicase/test-u8-totitle.c: New file.
14842 New module 'unicase/u32-totitle'.
14843 * lib/unicase/u32-totitle.c: New file.
14844 * modules/unicase/u32-totitle: New file.
14846 New module 'unicase/u16-totitle'.
14847 * lib/unicase/u16-totitle.c: New file.
14848 * modules/unicase/u16-totitle: New file.
14850 New module 'unicase/u8-totitle'.
14851 * lib/unicase/u8-totitle.c: New file.
14852 * lib/unicase/u-totitle.h: New file.
14853 * modules/unicase/u8-totitle: New file.
14855 Tests for module 'unicase/u32-tolower'.
14856 * modules/unicase/u32-tolower-tests: New file.
14857 * tests/unicase/test-u32-tolower.c: New file.
14859 Tests for module 'unicase/u16-tolower'.
14860 * modules/unicase/u16-tolower-tests: New file.
14861 * tests/unicase/test-u16-tolower.c: New file.
14863 Tests for module 'unicase/u8-tolower'.
14864 * modules/unicase/u8-tolower-tests: New file.
14865 * tests/unicase/test-u8-tolower.c: New file.
14867 New module 'unicase/u32-tolower'.
14868 * lib/unicase/u32-tolower.c: New file.
14869 * modules/unicase/u32-tolower: New file.
14871 New module 'unicase/u16-tolower'.
14872 * lib/unicase/u16-tolower.c: New file.
14873 * modules/unicase/u16-tolower: New file.
14875 New module 'unicase/u8-tolower'.
14876 * lib/unicase/u8-tolower.c: New file.
14877 * modules/unicase/u8-tolower: New file.
14879 Tests for module 'unicase/u32-toupper'.
14880 * modules/unicase/u32-toupper-tests: New file.
14881 * tests/unicase/test-u32-toupper.c: New file.
14883 Tests for module 'unicase/u16-toupper'.
14884 * modules/unicase/u16-toupper-tests: New file.
14885 * tests/unicase/test-u16-toupper.c: New file.
14887 Tests for module 'unicase/u8-toupper'.
14888 * modules/unicase/u8-toupper-tests: New file.
14889 * tests/unicase/test-u8-toupper.c: New file.
14891 New module 'unicase/u32-toupper'.
14892 * lib/unicase/u32-toupper.c: New file.
14893 * modules/unicase/u32-toupper: New file.
14895 New module 'unicase/u16-toupper'.
14896 * lib/unicase/u16-toupper.c: New file.
14897 * modules/unicase/u16-toupper: New file.
14899 New module 'unicase/u8-toupper'.
14900 * lib/unicase/u8-toupper.c: New file.
14901 * modules/unicase/u8-toupper: New file.
14903 New module 'unicase/u32-casemap'.
14904 * lib/unicase/u32-casemap.c: New file.
14905 * modules/unicase/u32-casemap: New file.
14907 New module 'unicase/u16-casemap'.
14908 * lib/unicase/u16-casemap.c: New file.
14909 * modules/unicase/u16-casemap: New file.
14911 New module 'unicase/u8-casemap'.
14912 * lib/unicase/unicasemap.h: New file.
14913 * lib/unicase/u8-casemap.c: New file.
14914 * lib/unicase/u-casemap.h: New file.
14915 * modules/unicase/u8-casemap: New file.
14917 New module 'unicase/special-casing'.
14918 * lib/unicase/special-casing.h: New file.
14919 * lib/unicase/special-casing.c: New file.
14920 * lib/unicase/special-casing-table.gperf: New file, generated by
14922 * modules/unicase/special-casing: New file.
14924 Tests for module 'unicase/locale-language'.
14925 * modules/unicase/locale-language-tests: New file.
14926 * tests/unicase/test-locale-language.sh: New file.
14927 * tests/unicase/test-locale-language.c: New file.
14929 New module 'unicase/locale-language'.
14930 * lib/unicase/locale-language.c: New file.
14931 * lib/unicase/locale-languages.gperf: New file.
14932 * modules/unicase/locale-language: New file.
14934 Generate more tables for case conversion and case folding.
14935 * lib/gen-uni-tables.c (SCC_*): New enum items.
14936 (struct special_casing_rule): New type.
14937 (casing_rules, num_casing_rules, allocated_casing_rules): New
14939 (add_casing_rule, fill_casing_rules): New functions.
14940 (struct casefold_rule): New type.
14941 (casefolding_rules, num_casefolding_rules,
14942 allocated_casefolding_rules): New variables.
14943 (fill_casefolding_rules): New function.
14944 (unicode_casefold): New variable.
14945 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14946 sort_casing_rules, output_casing_rules): New functions.
14947 (main): Accept to more arguments: SpecialCasing.txt and
14948 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14949 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14950 Output mapping for casefolding.
14952 * lib/unicase.h: Include stdbool.h, uninorm.h.
14953 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14954 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14955 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14957 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14959 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14960 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14962 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14963 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14964 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14965 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14967 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14969 2009-03-08 Bruno Haible <bruno@clisp.org>
14971 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14972 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14973 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14974 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14976 2009-03-07 Bruno Haible <bruno@clisp.org>
14978 Adjust u*_normcmp, u*_normcoll API.
14979 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14980 u16_normcoll, u32_normcoll): Change failure conventions.
14981 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14982 errno and return -1.
14983 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14985 2009-03-07 Bruno Haible <bruno@clisp.org>
14987 Tests for module 'uninorm/u32-normcoll'.
14988 * modules/uninorm/u32-normcoll-tests: New file.
14989 * tests/uninorm/test-u32-normcoll.c: New file.
14991 Tests for module 'uninorm/u16-normcoll'.
14992 * modules/uninorm/u16-normcoll-tests: New file.
14993 * tests/uninorm/test-u16-normcoll.c: New file.
14995 Tests for module 'uninorm/u8-normcoll'.
14996 * modules/uninorm/u8-normcoll-tests: New file.
14997 * tests/uninorm/test-u8-normcoll.c: New file.
14999 2009-03-07 Bruno Haible <bruno@clisp.org>
15001 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15002 tests/uninorm/test-u32-normcmp.c.
15003 * tests/uninorm/test-u32-normcmp.c: Include it.
15004 (test_nonascii): New function, extracted from main. Add some more
15006 (main): Invoke test_ascii and test_nonascii.
15007 * modules/uninorm/u32-normcmp-tests (Files): Add
15008 tests/uninorm/test-u32-normcmp.h.
15009 (Depends-on): Remove uninorm/u32-normcmp.
15011 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15012 tests/uninorm/test-u16-normcmp.c.
15013 * tests/uninorm/test-u16-normcmp.c: Include it.
15014 (test_nonascii): New function, extracted from main. Add some more
15016 (main): Invoke test_ascii and test_nonascii.
15017 * modules/uninorm/u16-normcmp-tests (Files): Add
15018 tests/uninorm/test-u16-normcmp.h.
15019 (Depends-on): Remove uninorm/u16-normcmp.
15021 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15022 tests/uninorm/test-u8-normcmp.c.
15023 * tests/uninorm/test-u8-normcmp.c: Include it.
15024 (test_nonascii): New function, extracted from main. Add some more
15026 (main): Invoke test_ascii and test_nonascii.
15027 * modules/uninorm/u8-normcmp-tests (Files): Add
15028 tests/uninorm/test-u8-normcmp.h.
15029 (Depends-on): Remove uninorm/u8-normcmp.
15031 2009-03-07 Bruno Haible <bruno@clisp.org>
15033 New module 'uninorm/u32-normcoll'.
15034 * lib/uninorm/u32-normcoll.c: New file.
15035 * modules/uninorm/u32-normcoll: New file.
15037 New module 'uninorm/u16-normcoll'.
15038 * lib/uninorm/u16-normcoll.c: New file.
15039 * modules/uninorm/u16-normcoll: New file.
15041 New module 'uninorm/u8-normcoll'.
15042 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15044 * lib/uninorm/u8-normcoll.c: New file.
15045 * lib/uninorm/u-normcoll.h: New file.
15046 * modules/uninorm/u8-normcoll: New file.
15048 New module 'uninorm/u32-normxfrm'.
15049 * lib/uninorm/u32-normxfrm.c: New file.
15050 * modules/uninorm/u32-normxfrm: New file.
15052 New module 'uninorm/u16-normxfrm'.
15053 * lib/uninorm/u16-normxfrm.c: New file.
15054 * modules/uninorm/u16-normxfrm: New file.
15056 New module 'uninorm/u8-normxfrm'.
15057 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15059 * lib/uninorm/u8-normxfrm.c: New file.
15060 * lib/uninorm/u-normxfrm.h: New file.
15061 * modules/uninorm/u8-normxfrm: New file.
15063 2009-03-07 Bruno Haible <bruno@clisp.org>
15065 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15066 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15067 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15069 2009-03-07 Bruno Haible <bruno@clisp.org>
15071 New module 'memxfrm'.
15072 * lib/memxfrm.h: New file.
15073 * lib/memxfrm.c: New file.
15074 * modules/memxfrm: New file.
15076 2009-03-07 Bruno Haible <bruno@clisp.org>
15078 New module 'memcmp2'.
15079 * lib/memcmp2.h: New file.
15080 * lib/memcmp2.c: New file.
15081 * modules/memcmp2: New file.
15083 2009-03-07 Bruno Haible <bruno@clisp.org>
15085 Tests for module 'uninorm/decomposing-form'.
15086 * modules/uninorm/decomposing-form-tests: New file.
15087 * tests/uninorm/test-decomposing-form.c: New file.
15089 New module 'uninorm/decomposing-form'.
15090 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15091 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15092 Add 'decomposing_variant' field.
15093 * lib/uninorm/decomposing-form.c: New file.
15094 * lib/uninorm/nfc.c (uninorm_nfc): Update.
15095 * lib/uninorm/nfd.c (uninorm_nfd): Update.
15096 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15097 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15098 * modules/uninorm/decomposing-form: New file.
15099 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15100 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15102 2009-03-07 Bruno Haible <bruno@clisp.org>
15104 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15107 2009-03-06 Bruno Haible <bruno@clisp.org>
15109 Tests for module 'uninorm/u32-normcmp'.
15110 * tests/uninorm/test-u32-normcmp.c: New file.
15111 * modules/uninorm/u32-normcmp-tests: New file.
15113 Tests for module 'uninorm/u16-normcmp'.
15114 * tests/uninorm/test-u16-normcmp.c: New file.
15115 * modules/uninorm/u16-normcmp-tests: New file.
15117 Tests for module 'uninorm/u8-normcmp'.
15118 * tests/uninorm/test-u8-normcmp.c: New file.
15119 * modules/uninorm/u8-normcmp-tests: New file.
15121 New module 'uninorm/u32-normcmp'.
15122 * lib/uninorm/u32-normcmp.c: New file.
15123 * modules/uninorm/u32-normcmp: New file.
15125 New module 'uninorm/u16-normcmp'.
15126 * lib/uninorm/u16-normcmp.c: New file.
15127 * modules/uninorm/u16-normcmp: New file.
15129 New module 'uninorm/u8-normcmp'.
15130 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15132 * lib/uninorm/u8-normcmp.c: New file.
15133 * lib/uninorm/u-normcmp.h: New file.
15134 * modules/uninorm/u8-normcmp: New file.
15136 2009-03-06 Bruno Haible <bruno@clisp.org>
15138 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15139 Reported by Eric Blake.
15141 2009-03-06 Eric Blake <ebb9@byu.net>
15142 Bruno Haible <bruno@clisp.org>
15144 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15145 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15147 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15148 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15150 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15152 2009-03-06 Eric Blake <ebb9@byu.net>
15154 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15155 to avoid compiler warnings.
15156 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15158 2009-03-05 Bruno Haible <bruno@clisp.org>
15160 * tests/test-ftell.c (main): Disable test beyond end of file on
15162 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15164 2009-03-05 Kamil Dudka <kdudka@redhat.com>
15166 * lib/filevercmp.c: Move hidden files up in ordering.
15167 * tests/test-filevercmp.c: Add tests for hidden files.
15169 2009-03-04 Bruno Haible <bruno@clisp.org>
15171 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15172 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15174 Reported by Simon Josefsson.
15176 2009-03-03 Bruno Haible <bruno@clisp.org>
15178 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15179 Reported by Simon Josefsson.
15181 * doc/ld-version-script.texi: Update node reference.
15183 2009-03-03 Bruno Haible <bruno@clisp.org>
15185 * modules/visibility (License): Change to 'unlimited'.
15186 Suggested by Simon Josefsson.
15188 2009-03-03 Jim Meyering <meyering@redhat.com>
15190 unlinkdir: cannot_unlink_dir may modify process state
15191 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15192 it's neither thread-safe nor appropriate for use in a library.
15194 2009-03-03 Eric Blake <ebb9@byu.net>
15196 test-closein: silence test under Darwin
15197 * tests/test-closein.sh: Ignore stderr from cat, since we don't
15198 care if it dies from EPIPE or EBADF.
15200 2009-03-03 Bruno Haible <bruno@clisp.org>
15202 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15204 * doc/visibility.texi: Fix @node and @section.
15206 2009-03-03 Simon Josefsson <simon@josefsson.org>
15208 * doc/gnulib.texi: Link to sections for ld version script and
15210 * doc/visibility.texi: Add @node and @section.
15211 * modules/ld-version-script: New module.
15212 * m4/ld-version-script.m4: New file.
15213 * doc/ld-version-script.texi: New file.
15215 2009-03-02 David Lutterkort <lutter@redhat.com>
15217 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15218 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15220 2009-03-02 Bruno Haible <bruno@clisp.org>
15222 * doc/visibility.texi: Mention libtool's -export-symbols option.
15224 2009-03-02 Jim Meyering <meyering@redhat.com>
15226 announce-gen: new option: --no-print-checksums
15227 * build-aux/announce-gen (usage): Describe it.
15228 (print_checksums): Print a newline here, not in the [*] footnote.
15231 2009-03-01 Bruno Haible <bruno@clisp.org>
15233 Use socklen_t in the native Windows replacements prototypes.
15234 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15236 * lib/getsockopt.c (rpl_getsockopt): Likewise.
15237 * lib/setsockopt.c (rpl_setsockopt): Likewise.
15238 * modules/getsockopt (Depends-on): Add socklen.
15239 * modules/setsockopt (Depends-on): Add socklen.
15241 2009-03-01 Bruno Haible <bruno@clisp.org>
15243 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15246 2009-03-01 Eric Blake <ebb9@byu.net>
15247 Bruno Haible <bruno@clisp.org>
15249 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15251 * lib/wait-process.c (wait_subprocess): Omit error message about
15252 deadly signal sent to the child of termsigp != NULL.
15254 2009-03-01 Eric Blake <ebb9@byu.net>
15256 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15258 2009-03-01 Bruno Haible <bruno@clisp.org>
15260 Avoid a gcc warning.
15261 * tests/test-sched.c (b): Make global.
15262 Reported by Eric Blake.
15264 2009-01-19 Martin Lambers <marlam@marlam.de>
15266 Provide POSIX semantics for socket timeout options on W32.
15267 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15268 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15269 * modules/setsockopt: Depend on sys_time module for struct timeval.
15270 * modules/getsockopt: Depend on sys_time module for struct timeval.
15272 2009-03-01 Simon Josefsson <simon@josefsson.org>
15274 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15275 __USE_GNU, for consistency with netdb.in.h.
15276 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15278 2009-03-01 Bruno Haible <bruno@clisp.org>
15280 More support for FreeMiNT.
15281 * lib/fseeko.c (rpl_fseeko): Complete last commit.
15282 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15284 2009-03-01 Bruno Haible <bruno@clisp.org>
15286 More support for FreeMiNT.
15287 * lib/fpurge.c (fpurge): Correct last commit.
15288 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15290 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15292 Fix unportable awk script in vc-list-files.
15293 * build-aux/vc-list-files: In the replacement awk script, use
15294 substr with a second argument of 1, not zero.
15295 Report by Simon Josefsson.
15297 2009-02-28 Bruno Haible <bruno@clisp.org>
15299 More support for FreeMiNT.
15300 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15302 * lib/fwriting.c (fwriting): Likewise.
15303 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15305 2009-02-28 Bruno Haible <bruno@clisp.org>
15307 * tests/test-freadseek.c (main): Disable test beyond end of file on
15309 * tests/test-ftello.c (main): Likewise.
15310 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15312 2009-02-28 Bruno Haible <bruno@clisp.org>
15314 Add tentative support for FreeMiNT.
15315 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15316 * lib/fpurge.c (fpurge): Likewise.
15317 * lib/freadable.c (freadable): Likewise.
15318 * lib/freading.c (freading): Likewise.
15319 * lib/freadptr.c (freadptr): Likewise.
15320 * lib/freadseek.c (freadptrinc): Likewise.
15321 * lib/fseeko.c (rpl_fseeko): Likewise.
15322 * lib/fseterr.c (fseterr): Likewise.
15323 * lib/fwritable.c (fwritable): Likewise.
15324 * lib/fwriting.c (fwriting): Likewise.
15325 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15327 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15329 2009-02-28 Bruno Haible <bruno@clisp.org>
15331 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15333 Reported by Jim Meyering.
15335 2009-02-28 Bruno Haible <bruno@clisp.org>
15337 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15338 Mention the results of these tests on various platforms.
15339 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15341 * doc/posix-functions/printf.texi: Likewise.
15342 * doc/posix-functions/snprintf.texi: Likewise.
15343 * doc/posix-functions/sprintf.texi: Likewise.
15344 * doc/posix-functions/vfprintf.texi: Likewise.
15345 * doc/posix-functions/vprintf.texi: Likewise.
15346 * doc/posix-functions/vsnprintf.texi: Likewise.
15347 * doc/posix-functions/vsprintf.texi: Likewise.
15348 * doc/glibc-functions/obstack_printf.texi: Likewise.
15349 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15351 2009-02-28 Bruno Haible <bruno@clisp.org>
15353 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15354 Reported by Loïc Minier <lool@dooz.org>.
15356 2009-02-27 Bruno Haible <bruno@clisp.org>
15358 * gnulib-tool (func_import): Make the sed expression used to create the
15359 sed script for updating the .gitignore file POSIX compliant.
15360 Reported by Eric Blake.
15362 2009-02-27 Bruno Haible <bruno@clisp.org>
15364 * gnulib-tool (sed): Don't alias as "sed --posix".
15365 Reported by Eric Blake.
15367 2009-02-27 Bruno Haible <bruno@clisp.org>
15369 Avoid test link errors.
15370 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15371 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15372 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15373 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15374 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15376 2009-02-27 Bruno Haible <bruno@clisp.org>
15378 Avoid spurious "(cached)" in configure output.
15379 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15380 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15381 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15382 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15383 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15384 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15385 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15386 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15387 Reported by Eric Blake.
15389 2009-02-27 Eric Blake <ebb9@byu.net>
15391 printf: fix regression in previous patch
15392 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15394 2009-02-27 Bruno Haible <bruno@clisp.org>
15396 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15398 * lib/stdint.in.h: Likewise.
15399 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15401 2009-02-27 Eric Blake <ebb9@byu.net>
15403 doc: mention more functions added in cygwin 1.7.0
15404 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15406 * doc/posix-functions/open_wmemstream.texi: Likewise.
15407 * doc/posix-functions/wcsnlen.texi: Likewise.
15408 * doc/posix-functions/wcsnrtombs.texi: Likewise.
15409 * doc/posix-functions/wcstod.texi: Likewise.
15410 * doc/posix-functions/wcstof.texi: Likewise.
15411 * doc/posix-functions/wcstoimax.texi: Likewise.
15412 * doc/posix-functions/wcstok.texi: Likewise.
15413 * doc/posix-functions/wcstoumax.texi: Likewise.
15415 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15416 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15417 * doc/posix-functions/fprintf.texi: Update.
15418 * doc/posix-functions/printf.texi: Update.
15419 * doc/posix-functions/snprintf.texi: Update.
15420 * doc/posix-functions/sprintf.texi: Update.
15421 * doc/posix-functions/vfprintf.texi: Update.
15422 * doc/posix-functions/vprintf.texi: Update.
15423 * doc/posix-functions/vsnprintf.texi: Update.
15424 * doc/posix-functions/vsprintf.texi: Update.
15425 * doc/glibc-functions/obstack_printf.texi: Update.
15426 * doc/glibc-functions/obstack_vprintf.texi: Update.
15428 2009-02-26 Eric Blake <ebb9@byu.net>
15430 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15431 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15432 compilation bug by using runtime conversion.
15433 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15434 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15435 * modules/ceill-tests (Files): Use nan.h.
15436 * modules/floorl-tests (Files): Likewise.
15437 * modules/frexpl-tests (Files): Likewise.
15438 * modules/isnanl-tests (Files): Likewise.
15439 * modules/ldexpl-tests (Files): Likewise.
15440 * modules/roundl-tests (Files): Likewise.
15441 * modules/truncl-tests (Files): Likewise.
15442 * tests/test-ceill.c (main): Use a working NaN.
15443 * tests/test-floorl.c (main): Likewise.
15444 * tests/test-frexpl.c (main): Likewise.
15445 * tests/test-isnan.c (test_long_double): Likewise.
15446 * tests/test-isnanl.h (main): Likewise.
15447 * tests/test-ldexpl.h (main): Likewise.
15448 * tests/test-roundl.h (main): Likewise.
15449 * tests/test-truncl.h (main): Likewise.
15450 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15452 2009-02-26 Eric Blake <ebb9@byu.net>
15453 Bruno Haible <bruno@clisp.org>
15455 Work around a *printf bug with %ls on Solaris.
15456 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15457 precision is specified, sprintf stops converting the wide string
15458 argument when the number of bytes that have been produced by this
15459 conversion equals or exceeds the precision.
15460 * doc/posix-functions/fprintf.texi: Update.
15461 * doc/posix-functions/printf.texi: Update.
15462 * doc/posix-functions/snprintf.texi: Update.
15463 * doc/posix-functions/sprintf.texi: Update.
15464 * doc/posix-functions/vfprintf.texi: Update.
15465 * doc/posix-functions/vprintf.texi: Update.
15466 * doc/posix-functions/vsnprintf.texi: Update.
15467 * doc/posix-functions/vsprintf.texi: Update.
15468 * doc/glibc-functions/obstack_printf.texi: Update.
15469 * doc/glibc-functions/obstack_vprintf.texi: Update.
15471 2009-02-26 Eric Blake <ebb9@byu.net>
15473 stdlib: favor compiler check of random.h
15474 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
15475 to avoid an ObjC random.h installed by Swarm.
15477 2009-02-26 Bruno Haible <bruno@clisp.org>
15479 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15480 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15481 Reported by Gary V. Vaughan <gary@gnu.org>.
15483 2009-02-26 Bruno Haible <bruno@clisp.org>
15485 Fix *printf behaviour regarding the %ls directive.
15486 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15487 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15488 NEED_PRINTF_DIRECTIVE_LS.
15489 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15490 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15491 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15492 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15493 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15494 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15495 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15496 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15497 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15498 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15499 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15500 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15501 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15502 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15503 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15504 * doc/posix-functions/fprintf.texi: Update.
15505 * doc/posix-functions/printf.texi: Update.
15506 * doc/posix-functions/snprintf.texi: Update.
15507 * doc/posix-functions/sprintf.texi: Update.
15508 * doc/posix-functions/vfprintf.texi: Update.
15509 * doc/posix-functions/vprintf.texi: Update.
15510 * doc/posix-functions/vsnprintf.texi: Update.
15511 * doc/posix-functions/vsprintf.texi: Update.
15512 * doc/glibc-functions/obstack_printf.texi: Update.
15513 * doc/glibc-functions/obstack_vprintf.texi: Update.
15514 Reported by Eric Blake.
15516 2009-02-25 Bruno Haible <bruno@clisp.org>
15518 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15520 Reported by Gary V. Vaughan <gary@gnu.org>.
15522 2009-02-25 Bruno Haible <bruno@clisp.org>
15524 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15525 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15526 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15527 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15528 Reported by Gary V. Vaughan <gary@gnu.org>.
15530 2009-02-25 Bruno Haible <bruno@clisp.org>
15532 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15533 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15534 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15535 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15536 Reported by Gary V. Vaughan <gary@gnu.org>.
15538 2009-02-25 Eric Blake <ebb9@byu.net>
15540 tests: skip fseek/ftell tests if ungetc is broken
15541 * m4/ungetc.m4: New file.
15542 * modules/fseek-tests: Split test, so ungetc dependency is
15543 separate from rest of test.
15544 * modules/fseeko-tests: Likewise.
15545 * modules/ftell-tests: Likewise.
15546 * modules/ftello-tests: Likewise.
15547 * tests/test-fseek.c (main): Isolate ungetc dependency.
15548 * tests/test-fseeko.c (main): Likewise.
15549 * tests/test-ftell.c (main): Likewise.
15550 * tests/test-ftello.c (main): Likewise.
15551 * tests/test-fseek2.sh: New file.
15552 * tests/test-fseeko2.sh: Likewise.
15553 * tests/test-ftell2.sh: Likewise.
15554 * tests/test-ftello2.sh: Likewise.
15556 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
15558 test-getaddrinfo: fix usage of skip return code 77
15559 * tests/test-gettaddrinfo.c: Return skip code 77 only
15560 for first occurance of skip (4x77 is not 77)
15562 2009-02-25 Gary V. Vaughan <gary@gnu.org>
15564 strtod: avoid C99 decl-after-statement
15565 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15567 2009-02-24 Eric Blake <ebb9@byu.net>
15569 strtod: detect HP-UX 11.31 bug
15570 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15571 Reported by Gary V. Vaughan.
15573 2009-02-23 Bruno Haible <bruno@clisp.org>
15575 Fix invalid read past end of memory block.
15576 * lib/vasnprintf.c (DCHAR_SET): Define.
15577 (local_wcslen): Define only when needed.
15578 (local_strnlen, local_wcsnlen): New functions.
15579 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15580 directives that involve a conversion ourselves.
15581 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15582 wcsnlen, mbrtowc, wcrtomb.
15583 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15584 * tests/test-vasprintf-posix.c (test_function): Likewise.
15585 * tests/test-snprintf-posix.h (test_function): Likewise.
15586 * tests/test-sprintf-posix.h (test_function): Likewise.
15587 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15589 2009-02-22 Bruno Haible <bruno@clisp.org>
15591 Implement new clarified decomposition of Hangul syllables.
15592 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15593 of type LTV, return only a pairwise decomposition.
15594 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15596 * tests/uninorm/test-decomposition.c (main): Updated expected result.
15597 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15598 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15600 2009-02-22 Bruno Haible <bruno@clisp.org>
15602 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15603 zero-length results and shrink excess allocated memory.
15604 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15605 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15606 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15607 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15608 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15609 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15610 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15611 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15612 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15613 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15614 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15615 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15617 2009-02-21 Bruno Haible <bruno@clisp.org>
15619 * doc/gnulib.texi: Include safe-alloc.texi earlier.
15620 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15621 spaces after a period. Put a space between a macro name and its
15622 argument list. Trivial rewordings.
15623 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15624 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15625 (main): Return 0 explicitly.
15627 2009-02-21 Bruno Haible <bruno@clisp.org>
15629 Tests for module 'uninorm/filter'.
15630 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15631 * modules/uninorm/filter-tests: New file.
15633 New module 'uninorm/filter'.
15634 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15635 uninorm_filter_flush, uninorm_filter_free): New declarations.
15636 * lib/uninorm/uninorm-filter.c: New file.
15637 * modules/uninorm/filter: New file.
15639 2009-02-21 Bruno Haible <bruno@clisp.org>
15641 Tests for module 'uninorm/nfkc'.
15642 * tests/uninorm/test-nfkc.c: New file.
15643 * tests/uninorm/test-u8-nfkc.c: New file.
15644 * tests/uninorm/test-u16-nfkc.c: New file.
15645 * tests/uninorm/test-u32-nfkc.c: New file.
15646 * tests/uninorm/test-u32-nfkc-big.sh: New file.
15647 * tests/uninorm/test-u32-nfkc-big.c: New file.
15648 * modules/uninorm/nfkc-tests: New file.
15650 New module 'uninorm/nfkc'.
15651 * lib/uninorm/nfkc.c: New file.
15652 * modules/uninorm/nfkc: New file.
15654 Tests for module 'uninorm/nfkd'.
15655 * tests/uninorm/test-nfkd.c: New file.
15656 * tests/uninorm/test-u8-nfkd.c: New file.
15657 * tests/uninorm/test-u16-nfkd.c: New file.
15658 * tests/uninorm/test-u32-nfkd.c: New file.
15659 * tests/uninorm/test-u32-nfkd-big.sh: New file.
15660 * tests/uninorm/test-u32-nfkd-big.c: New file.
15661 * modules/uninorm/nfkd-tests: New file.
15663 New module 'uninorm/nfkd'.
15664 * lib/uninorm/nfkd.c: New file.
15665 * modules/uninorm/nfkd: New file.
15667 Tests for module 'uninorm/nfc'.
15668 * tests/uninorm/test-nfc.c: New file.
15669 * tests/uninorm/test-u8-nfc.c: New file.
15670 * tests/uninorm/test-u16-nfc.c: New file.
15671 * tests/uninorm/test-u32-nfc.c: New file.
15672 * tests/uninorm/test-u32-nfc-big.sh: New file.
15673 * tests/uninorm/test-u32-nfc-big.c: New file.
15674 * modules/uninorm/nfc-tests: New file.
15676 New module 'uninorm/nfc'.
15677 * lib/uninorm/nfc.c: New file.
15678 * modules/uninorm/nfc: New file.
15680 Tests for module 'uninorm/nfd'.
15681 * tests/uninorm/test-nfd.c: New file.
15682 * tests/uninorm/test-u8-nfd.c: New file.
15683 * tests/uninorm/test-u16-nfd.c: New file.
15684 * tests/uninorm/test-u32-nfd.c: New file.
15685 * tests/uninorm/test-u32-nfd-big.sh: New file.
15686 * tests/uninorm/test-u32-nfd-big.c: New file.
15687 * tests/uninorm/test-u32-normalize-big.h: New file.
15688 * tests/uninorm/test-u32-normalize-big.c: New file.
15689 * tests/uninorm/NormalizationTest.txt: New file, created from
15690 Unicode 5.1.0 NormalizationTest.txt.
15691 * modules/uninorm/nfd-tests: New file.
15693 New module 'uninorm/nfd'.
15694 * lib/uninorm/nfd.c: New file.
15695 * modules/uninorm/nfd: New file.
15697 New module 'uninorm/u32-normalize'.
15698 * lib/uninorm/u32-normalize.c: New file.
15699 * modules/uninorm/u32-normalize: New file.
15701 New module 'uninorm/u16-normalize'.
15702 * lib/uninorm/u16-normalize.c: New file.
15703 * modules/uninorm/u16-normalize: New file.
15705 New module 'uninorm/u8-normalize'.
15706 * lib/uninorm/u8-normalize.c: New file.
15707 * lib/uninorm/normalize-internal.h: New file.
15708 * lib/uninorm/u-normalize-internal.h: New file.
15709 * modules/uninorm/u8-normalize: New file.
15711 New module 'uninorm/decompose-internal'.
15712 * lib/uninorm/decompose-internal.c: New file.
15713 * modules/uninorm/decompose-internal: New file.
15715 Tests for module 'uninorm/composition'.
15716 * tests/uninorm/test-composition.c: New file.
15717 * modules/uninorm/composition-tests: New file.
15719 New module 'uninorm/composition'.
15720 * lib/uninorm/composition.c: New file.
15721 * lib/uninorm/composition-table.gperf: New file, generated by
15723 * modules/uninorm/composition: New file.
15725 Tests for module 'uninorm/compat-decomposition'.
15726 * tests/uninorm/test-compat-decomposition.c: New file.
15727 * modules/uninorm/compat-decomposition-tests: New file.
15729 New module 'uninorm/compat-decomposition'.
15730 * lib/uninorm/decompose-internal.h: New file.
15731 * lib/uninorm/compat-decomposition.c: New file.
15732 * modules/uninorm/compat-decomposition: New file.
15734 Tests for module 'uninorm/canonical-decomposition'.
15735 * tests/uninorm/test-canonical-decomposition.c: New file.
15736 * modules/uninorm/canonical-decomposition-tests: New file.
15738 New module 'uninorm/canonical-decomposition'.
15739 * lib/uninorm/canonical-decomposition.c: New file.
15740 * modules/uninorm/canonical-decomposition: New file.
15742 Tests for module 'uninorm/decomposition'.
15743 * tests/uninorm/test-decomposition.c: New file.
15744 * modules/uninorm/decomposition-tests: New file.
15746 New module 'uninorm/decomposition'.
15747 * lib/uninorm/decomposition.c: New file.
15748 * modules/uninorm/decomposition: New file.
15750 New module 'uninorm/decomposition-table'.
15751 * lib/uninorm/decomposition-table.h: New file.
15752 * lib/uninorm/decomposition-table.c: New file.
15753 * lib/uninorm/decomposition-table1.h: New file, generated by
15755 * lib/uninorm/decomposition-table2.h: New file, generated by
15757 * modules/uninorm/decomposition-table: New file.
15759 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15760 (UC_DECOMP_*): New enumeration items.
15761 (get_decomposition): New function.
15762 (struct decomp_table): New type.
15763 (output_decomposition, output_decomposition_tables): New functions.
15764 (unicode_composition_exclusions): New variable.
15765 (fill_composition_exclusions, debug_output_composition_tables): New
15767 (main): Accept one more argument. Invoke fill_composition_exclusions.
15768 Output decomposition and composition tables.
15770 New module 'uninorm/base'.
15771 * lib/uninorm.h: New file.
15772 * lib/unictype.h: Update comment.
15773 * modules/uninorm/base: New file.
15775 2009-02-21 David Lutterkort <lutter@redhat.com>
15777 Tests for module 'safe-alloc'.
15778 * tests/test-safe-alloc.c: New file.
15779 * modules/safe-alloc-tests: New file.
15781 New module 'safe-alloc'.
15782 * lib/safe-alloc.h: New file.
15783 * lib/safe-alloc.c: New file.
15784 * m4/safe-alloc.m4: New file.
15785 * modules/safe-alloc: New file.
15786 * doc/safe-alloc.texi: New file.
15787 * doc/gnulib.texi: Include it.
15788 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15791 2009-02-18 Bruno Haible <bruno@clisp.org>
15793 Fix link error on non-glibc systems.
15794 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15796 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15798 2009-02-18 Jim Meyering <meyering@redhat.com>
15800 fts: avoid used-uninitialized error due to recent change
15801 * lib/fts.c (fts_read): Guard uses of the new member,
15802 parent->fts_n_dirs_remaining, since it's not relevant for
15803 the parent of a directory specified on the command-line.
15805 2009-02-17 James Youngman <jay@gnu.org>
15806 Bruno Haible <bruno@clisp.org>
15808 * m4/include_next.m4: Reformulate comment.
15810 2009-02-16 Jim Meyering <meyering@redhat.com>
15812 fts: add #if guards so that the fts_lgpl module still builds
15813 * lib/fts.c: Guard just-added hash-table-using parts with
15814 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15815 Reported by Simon Josefsson.
15817 2009-02-15 Bruno Haible <bruno@clisp.org>
15819 * modules/array-mergesort-tests: New file.
15820 * tests/test-array-mergesort.c: New file.
15822 New module 'array-mergesort'.
15823 * modules/array-mergesort: New file.
15824 * lib/array-mergesort.h: New file.
15826 2009-02-15 Bruno Haible <bruno@clisp.org>
15828 Fix 2009-02-07 commit.
15829 * lib/gen-uni-tables.c (output_predicate, output_category,
15830 output_combclass, output_bidi_category, output_decimal_digit,
15831 output_digit, output_numeric, output_mirror, output_scripts,
15832 output_ident_category, output_simple_mapping): Fix format directives.
15833 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15835 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
15837 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15838 fixes are available from IBM.
15840 2009-02-13 Jim Meyering <meyering@redhat.com>
15842 fts: arrange not to stat non-directories in more cases
15843 This makes GNU find (when it doesn't need to stat each file)
15844 *much* more efficient at traversing reiserfs file systems.
15845 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15846 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15847 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15848 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15849 (leaf_optimization_applies): New function.
15850 (LCO_hash, LCO_compare): New helper functions.
15851 (link_count_optimize_ok): New function.
15852 (fts_stat): Initialize new member (if dir).
15853 (fts_read): Decrement parent's fts_n_dirs_remaining count if
15854 we've just stat'ed a directory. Skip the stat call when possible.
15856 Note this AFS-related exchange:
15857 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15858 and note find's pioctl call in find/fstype.c.
15859 But that is necessary only if you want to enable the
15860 optimization for AFS, and for now, I don't.
15862 fts: move a function definition "up" (no semantic change)
15863 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15864 "up" to precede upcoming use of a related function.
15866 2009-02-11 Jim Meyering <meyering@redhat.com>
15868 fts: correct internal computation of nlinks (optimization-related)
15869 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15870 whether the current entry is a directory, so don't test it.
15872 2009-02-10 Bruno Haible <bruno@clisp.org>
15874 Tests for module 'uniwbrk/ulc-wordbreaks'.
15875 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15876 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15877 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15879 Tests for module 'uniwbrk/u32-wordbreaks'.
15880 * modules/uniwbrk/u32-wordbreaks-tests: New file.
15881 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15883 Tests for module 'uniwbrk/u16-wordbreaks'.
15884 * modules/uniwbrk/u16-wordbreaks-tests: New file.
15885 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15887 Tests for module 'uniwbrk/u8-wordbreaks'.
15888 * modules/uniwbrk/u8-wordbreaks-tests: New file.
15889 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15891 2009-02-10 Bruno Haible <bruno@clisp.org>
15893 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15895 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15896 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15897 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15899 2009-02-10 Simon Josefsson <simon@josefsson.org>
15901 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15902 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
15904 2009-02-10 Bruno Haible <bruno@clisp.org>
15906 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15907 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15908 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15909 * lib/unilbrk/u8-possible-linebreaks.c: Update.
15910 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15911 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15913 2009-02-09 Simon Josefsson <simon@josefsson.org>
15915 * lib/sockets.h (gl_fd_to_handle): New function.
15917 * tests/test-sockets.c: Call gl_fd_to_handle.
15919 2009-02-09 Bruno Haible <bruno@clisp.org>
15921 * doc/havelib.texi: Document the conventions on bi-arch systems.
15923 2009-02-08 Bruno Haible <bruno@clisp.org>
15925 Document the AC_LIB_LINKFLAGS macro.
15926 * doc/havelib.texi: New file, mostly written on 2005-05-24.
15927 * doc/gnulib.texi: Include it.
15929 2009-02-08 Bruno Haible <bruno@clisp.org>
15931 Fix wrong order of sections, compared to TOC.
15932 * doc/gnulib.texi: Include relocatable-maint.texi after the
15933 "Regular expressions" node, not before.
15935 2009-02-08 Bruno Haible <bruno@clisp.org>
15937 Tests for module 'unicase/totitle'.
15938 * modules/unicase/totitle-tests: New file.
15940 Tests for module 'unicase/tolower'.
15941 * modules/unicase/tolower-tests: New file.
15943 Tests for module 'unicase/toupper'.
15944 * modules/unicase/toupper-tests: New file.
15945 * tests/unicase/test-mapping-part1.h: New file.
15946 * tests/unicase/test-mapping-part2.h: New file.
15948 New module 'unicase/totitle'.
15949 * modules/unicase/totitle: New file.
15950 * lib/unicase/totitle.c: New file.
15952 New module 'unicase/tolower'.
15953 * modules/unicase/tolower: New file.
15954 * lib/unicase/tolower.c: New file.
15956 New module 'unicase/toupper'.
15957 * modules/unicase/toupper: New file.
15958 * lib/unicase/toupper.c: New file.
15959 * lib/unicase/simple-mapping.h: New file.
15961 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15962 (mapping_table): New structure.
15963 (output_simple_mapping): New function.
15964 (main): Invoke output_simple_mapping_test and output_simple_mapping.
15965 * modules/gen-uni-tables (Description): Update.
15966 * lib/unicase/toupper.h: New file, automatically generated by
15968 * lib/unicase/tolower.h: New file, automatically generated by
15970 * lib/unicase/totitle.h: New file, automatically generated by
15972 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15974 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15976 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15979 New module 'unicase/base'.
15980 * modules/unicase/base: New file.
15981 * lib/unicase.h: New file.
15983 2009-02-08 Bruno Haible <bruno@clisp.org>
15985 New module 'uniwbrk/ulc-wordbreaks'.
15986 * modules/uniwbrk/ulc-wordbreaks: New file.
15987 * lib/uniwbrk/ulc-wordbreaks.c: New file.
15989 New module 'uniwbrk/u32-wordbreaks'.
15990 * modules/uniwbrk/u32-wordbreaks: New file.
15991 * lib/uniwbrk/u32-wordbreaks.c: New file.
15993 New module 'uniwbrk/u16-wordbreaks'.
15994 * modules/uniwbrk/u16-wordbreaks: New file.
15995 * lib/uniwbrk/u16-wordbreaks.c: New file.
15997 New module 'uniwbrk/u8-wordbreaks'.
15998 * modules/uniwbrk/u8-wordbreaks: New file.
15999 * lib/uniwbrk/u8-wordbreaks.c: New file.
16000 * lib/uniwbrk/u-wordbreaks.h: New file.
16002 New module 'uniwbrk/table'.
16003 * modules/uniwbrk/table: New file.
16004 * lib/uniwbrk/wbrktable.h: New file.
16005 * lib/uniwbrk/wbrktable.c: New file.
16007 New module 'uniwbrk/wordbreak-property'.
16008 * modules/uniwbrk/wordbreak-property: New file.
16009 * lib/uniwbrk/wordbreak-property.c: New file.
16011 * lib/gen-uni-tables.c (WBP_*): New enum items.
16012 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16013 (unicode_org_wbp): New variable.
16014 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16016 (wbp_table): New structure.
16017 (output_wbp, output_wbrk_tables): New functions.
16018 (main): Accept additional argument. Invoke fill_org_wbp,
16019 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16020 output_wbrk_tables.
16021 * modules/gen-uni-tables (Description): Update.
16022 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16025 New module 'uniwbrk/base'.
16026 * modules/uniwbrk/base: New file.
16027 * lib/uniwbrk.h: New file.
16029 2009-02-08 Bruno Haible <bruno@clisp.org>
16031 Update to Unicode 5.1.0.
16032 * lib/gen-uni-tables.c (is_property_alphabetic): Include
16034 (is_property_default_ignorable_code_point): Don't include characters
16035 of category Cc or Cs and not-a-characters.
16036 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16037 U+0D79, U+109E, U+109F, U+A60C.
16038 * lib/unictype/bidi_of.h: Regenerated.
16039 * lib/unictype/blocks.h: Regenerated.
16040 * lib/unictype/categ_C.h: Regenerated.
16041 * lib/unictype/categ_Cf.h: Regenerated.
16042 * lib/unictype/categ_Cn.h: Regenerated.
16043 * lib/unictype/categ_L.h: Regenerated.
16044 * lib/unictype/categ_Ll.h: Regenerated.
16045 * lib/unictype/categ_Lm.h: Regenerated.
16046 * lib/unictype/categ_Lo.h: Regenerated.
16047 * lib/unictype/categ_Lu.h: Regenerated.
16048 * lib/unictype/categ_M.h: Regenerated.
16049 * lib/unictype/categ_Mc.h: Regenerated.
16050 * lib/unictype/categ_Me.h: Regenerated.
16051 * lib/unictype/categ_Mn.h: Regenerated.
16052 * lib/unictype/categ_N.h: Regenerated.
16053 * lib/unictype/categ_Nd.h: Regenerated.
16054 * lib/unictype/categ_Nl.h: Regenerated.
16055 * lib/unictype/categ_No.h: Regenerated.
16056 * lib/unictype/categ_P.h: Regenerated.
16057 * lib/unictype/categ_Pd.h: Regenerated.
16058 * lib/unictype/categ_Pe.h: Regenerated.
16059 * lib/unictype/categ_Pf.h: Regenerated.
16060 * lib/unictype/categ_Pi.h: Regenerated.
16061 * lib/unictype/categ_Po.h: Regenerated.
16062 * lib/unictype/categ_Ps.h: Regenerated.
16063 * lib/unictype/categ_S.h: Regenerated.
16064 * lib/unictype/categ_Sk.h: Regenerated.
16065 * lib/unictype/categ_Sm.h: Regenerated.
16066 * lib/unictype/categ_So.h: Regenerated.
16067 * lib/unictype/categ_of.h: Regenerated.
16068 * lib/unictype/combining.h: Regenerated.
16069 * lib/unictype/ctype_alnum.h: Regenerated.
16070 * lib/unictype/ctype_alpha.h: Regenerated.
16071 * lib/unictype/ctype_graph.h: Regenerated.
16072 * lib/unictype/ctype_lower.h: Regenerated.
16073 * lib/unictype/ctype_print.h: Regenerated.
16074 * lib/unictype/ctype_punct.h: Regenerated.
16075 * lib/unictype/ctype_upper.h: Regenerated.
16076 * lib/unictype/decdigit.h: Regenerated.
16077 * lib/unictype/digit.h: Regenerated.
16078 * lib/unictype/mirror.h: Regenerated.
16079 * lib/unictype/numeric.h: Regenerated.
16080 * lib/unictype/pr_alphabetic.h: Regenerated.
16081 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16082 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16083 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16084 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16085 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16086 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16087 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16088 * lib/unictype/pr_combining.h: Regenerated.
16089 * lib/unictype/pr_dash.h: Regenerated.
16090 * lib/unictype/pr_decimal_digit.h: Regenerated.
16091 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16092 * lib/unictype/pr_deprecated.h: Regenerated.
16093 * lib/unictype/pr_diacritic.h: Regenerated.
16094 * lib/unictype/pr_extender.h: Regenerated.
16095 * lib/unictype/pr_format_control.h: Regenerated.
16096 * lib/unictype/pr_grapheme_base.h: Regenerated.
16097 * lib/unictype/pr_grapheme_extend.h: Regenerated.
16098 * lib/unictype/pr_grapheme_link.h: Regenerated.
16099 * lib/unictype/pr_id_continue.h: Regenerated.
16100 * lib/unictype/pr_id_start.h: Regenerated.
16101 * lib/unictype/pr_ideographic.h: Regenerated.
16102 * lib/unictype/pr_ignorable_control.h: Regenerated.
16103 * lib/unictype/pr_lowercase.h: Regenerated.
16104 * lib/unictype/pr_math.h: Regenerated.
16105 * lib/unictype/pr_numeric.h: Regenerated.
16106 * lib/unictype/pr_other_alphabetic.h: Regenerated.
16107 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16108 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16109 * lib/unictype/pr_other_id_continue.h: Regenerated.
16110 * lib/unictype/pr_other_lowercase.h: Regenerated.
16111 * lib/unictype/pr_other_math.h: Regenerated.
16112 * lib/unictype/pr_punctuation.h: Regenerated.
16113 * lib/unictype/pr_sentence_terminal.h: Regenerated.
16114 * lib/unictype/pr_soft_dotted.h: Regenerated.
16115 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16116 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16117 * lib/unictype/pr_unified_ideograph.h: Regenerated.
16118 * lib/unictype/pr_uppercase.h: Regenerated.
16119 * lib/unictype/pr_xid_continue.h: Regenerated.
16120 * lib/unictype/pr_xid_start.h: Regenerated.
16121 * lib/unictype/pr_zero_width.h: Regenerated.
16122 * lib/unictype/scripts.h: Regenerated.
16123 * lib/unictype/scripts_byname.gperf: Regenerated.
16124 * lib/unictype/sy_java_ident.h: Regenerated.
16125 * lib/unilbrk/lbrkprop1.h: Regenerated.
16126 * lib/unilbrk/lbrkprop2.h: Regenerated.
16127 * tests/unictype/test-categ_C.c: Regenerated.
16128 * tests/unictype/test-categ_Cf.c: Regenerated.
16129 * tests/unictype/test-categ_Cn.c: Regenerated.
16130 * tests/unictype/test-categ_L.c: Regenerated.
16131 * tests/unictype/test-categ_Ll.c: Regenerated.
16132 * tests/unictype/test-categ_Lm.c: Regenerated.
16133 * tests/unictype/test-categ_Lo.c: Regenerated.
16134 * tests/unictype/test-categ_Lu.c: Regenerated.
16135 * tests/unictype/test-categ_M.c: Regenerated.
16136 * tests/unictype/test-categ_Mc.c: Regenerated.
16137 * tests/unictype/test-categ_Me.c: Regenerated.
16138 * tests/unictype/test-categ_Mn.c: Regenerated.
16139 * tests/unictype/test-categ_N.c: Regenerated.
16140 * tests/unictype/test-categ_Nd.c: Regenerated.
16141 * tests/unictype/test-categ_Nl.c: Regenerated.
16142 * tests/unictype/test-categ_No.c: Regenerated.
16143 * tests/unictype/test-categ_P.c: Regenerated.
16144 * tests/unictype/test-categ_Pd.c: Regenerated.
16145 * tests/unictype/test-categ_Pe.c: Regenerated.
16146 * tests/unictype/test-categ_Pf.c: Regenerated.
16147 * tests/unictype/test-categ_Pi.c: Regenerated.
16148 * tests/unictype/test-categ_Po.c: Regenerated.
16149 * tests/unictype/test-categ_Ps.c: Regenerated.
16150 * tests/unictype/test-categ_S.c: Regenerated.
16151 * tests/unictype/test-categ_Sk.c: Regenerated.
16152 * tests/unictype/test-categ_Sm.c: Regenerated.
16153 * tests/unictype/test-categ_So.c: Regenerated.
16154 * tests/unictype/test-ctype_alnum.c: Regenerated.
16155 * tests/unictype/test-ctype_alpha.c: Regenerated.
16156 * tests/unictype/test-ctype_graph.c: Regenerated.
16157 * tests/unictype/test-ctype_lower.c: Regenerated.
16158 * tests/unictype/test-ctype_print.c: Regenerated.
16159 * tests/unictype/test-ctype_punct.c: Regenerated.
16160 * tests/unictype/test-ctype_upper.c: Regenerated.
16161 * tests/unictype/test-decdigit.h: Regenerated.
16162 * tests/unictype/test-digit.h: Regenerated.
16163 * tests/unictype/test-numeric.h: Regenerated.
16164 * tests/unictype/test-pr_alphabetic.c: Regenerated.
16165 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16166 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16167 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16168 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16169 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16170 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16171 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16172 * tests/unictype/test-pr_combining.c: Regenerated.
16173 * tests/unictype/test-pr_dash.c: Regenerated.
16174 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16175 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16176 * tests/unictype/test-pr_deprecated.c: Regenerated.
16177 * tests/unictype/test-pr_diacritic.c: Regenerated.
16178 * tests/unictype/test-pr_extender.c: Regenerated.
16179 * tests/unictype/test-pr_format_control.c: Regenerated.
16180 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16181 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16182 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16183 * tests/unictype/test-pr_id_continue.c: Regenerated.
16184 * tests/unictype/test-pr_id_start.c: Regenerated.
16185 * tests/unictype/test-pr_ideographic.c: Regenerated.
16186 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16187 * tests/unictype/test-pr_lowercase.c: Regenerated.
16188 * tests/unictype/test-pr_math.c: Regenerated.
16189 * tests/unictype/test-pr_numeric.c: Regenerated.
16190 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16191 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16193 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16194 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16195 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16196 * tests/unictype/test-pr_other_math.c: Regenerated.
16197 * tests/unictype/test-pr_punctuation.c: Regenerated.
16198 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16199 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16200 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16201 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16202 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16203 * tests/unictype/test-pr_uppercase.c: Regenerated.
16204 * tests/unictype/test-pr_xid_continue.c: Regenerated.
16205 * tests/unictype/test-pr_xid_start.c: Regenerated.
16206 * tests/unictype/test-pr_zero_width.c: Regenerated.
16208 Update to Unicode 5.1.0.
16209 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16210 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16211 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16212 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16213 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16214 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16215 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16216 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16217 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16218 (nonspacing_table_ind): Update.
16219 * tests/uniwidth/test-uc_width2.sh: Update expected result.
16221 Update to Unicode 5.1.0.
16222 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16224 * lib/uniname/uniname.c (unicode_character_name,
16225 unicode_name_character): Add the range 0x1Fxxx to the code transform.
16226 * lib/uniname/uninames.h: Regenerated.
16227 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16229 2009-02-07 Bruno Haible <bruno@clisp.org>
16231 Merge gen-ctype and gen-lbrk into a single program.
16232 * lib/gen-uni-tables.c: New file, incorporating
16233 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16234 Add directory prefixes to the names of the generated files.
16235 * lib/unictype/gen-ctype.c: Remove file.
16236 * lib/unilbrk/gen-lbrk.c: Remove file.
16237 * modules/gen-uni-tables: New file.
16238 * modules/unictype/gen-ctype: Remove file.
16239 * modules/unilbrk/gen-lbrk: Remove file.
16241 2009-02-07 Bruno Haible <bruno@clisp.org>
16243 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16245 New module 'unistr/u32-strcoll'.
16246 * modules/unistr/u32-strcoll: New file.
16247 * lib/unistr/u32-strcoll.c: New file.
16249 New module 'unistr/u16-strcoll'.
16250 * modules/unistr/u16-strcoll: New file.
16251 * lib/unistr/u16-strcoll.c: New file.
16253 New module 'unistr/u8-strcoll'.
16254 * modules/unistr/u8-strcoll: New file.
16255 * lib/unistr/u8-strcoll.c: New file.
16256 * lib/unistr/u-strcoll.h: New file.
16258 2009-02-07 Bruno Haible <bruno@clisp.org>
16260 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16261 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16262 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16263 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16264 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16265 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16267 2009-02-07 Bruno Haible <bruno@clisp.org>
16270 * lib/unictype/gen-ctype.c (output_predicate, output_category,
16271 output_combclass, output_bidi_category, output_decimal_digit,
16272 output_digit, output_numeric, output_mirror, output_scripts,
16273 output_ident_category): Use proper width specifier in format strings.
16275 2009-02-07 Bruno Haible <bruno@clisp.org>
16277 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16280 2009-02-07 Jim Meyering <meyering@redhat.com>
16282 regex: avoid compilation failure with upcoming gcc-4.4
16283 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16284 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
16285 "... error: integer overflow in preprocessor expression".
16287 2009-02-05 Ben Pfaff <blp@gnu.org>
16289 Fix link errors on Windows when close module is used.
16290 * modules/close: Add $(LIB_CLOSE) to Link section.
16291 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16292 $(LIB_CLOSE) on Windows.
16294 2009-02-05 Jim Meyering <meyering@redhat.com>
16296 still avoid unused-parameter warnings, but do it cleanly
16297 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16298 (get_fs_usage): Cast to void instead.
16299 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16300 (dev_from_mount_options, read_file_system_list): Cast to void.
16301 Prompted by Bruno Haible.
16303 2009-02-04 Jim Meyering <meyering@redhat.com>
16305 fsusage.c: correct copyright year
16306 * lib/fsusage.c: Reflect year in which the change is pushed into
16308 avoid misc. warnings
16309 * lib/fsusage.c (UNUSED_PARAM): Define.
16310 (get_fs_usage): Mark parameter "disk" as unused.
16311 * lib/getugroups.c (getgrent): Use "void" in prototype.
16312 * lib/mountlist.c: Mark unused parameters.
16313 (read_file_system_list): Declare a local with "const".
16314 * lib/nanosleep.c (getnow): Declare static.
16315 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16317 dirfd: set errno upon failure
16318 * lib/dirfd.c: Include <errno.h>.
16319 Set errno to ENOTSUP when returning -1.
16320 * modules/dirfd (Depends-on): Add errno.
16321 Suggested by John Kodis <kodis@comcast.net>.
16323 2009-02-01 Bruno Haible <bruno@clisp.org>
16325 Don't assume sizeof (long) >= sizeof (void *).
16326 * lib/memcmp.c: Include stdint.h.
16327 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16328 srcp2 to 'const byte *'.
16329 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16330 types to uintptr_t.
16331 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16332 * modules/memcmp (Depends-on): Add stdint.
16333 Reported by Ozkan Sezer <sezeroz@gmail.com>.
16335 2009-01-30 Eric Blake <ebb9@byu.net>
16337 fix more require-before-expand issues
16338 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16339 expand, AC_PROG_AWK.
16340 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16342 2009-01-28 Eric Blake <ebb9@byu.net>
16344 version-etc: use consistent URL formatting
16345 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16346 Improve formatting. Use fputs for string without %.
16348 2009-01-28 Jim Meyering <meyering@redhat.com>
16350 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16351 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16352 "underquoted definition of NAME" from autoconf-2.59.
16354 2009-01-28 Bruno Haible <bruno@clisp.org>
16356 * doc/gnulib.texi: Add "Obsolete modules" to index.
16358 2009-01-28 Jim Meyering <meyering@redhat.com>
16360 useless-if-before-free: recognize more variants
16361 * build-aux/useless-if-before-free: Also recognize e.g.,
16362 if (NULL != p) free (p);
16364 2009-01-27 Mark McLoughlin <markmc@redhat.com>
16366 test-getaddrinfo: skip (don't fail) this test when there's no network
16367 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16368 on the presumption that it means you lack network access.
16370 2009-01-26 Jim Meyering <meyering@redhat.com>
16372 fflush: avoid warnings on modern systems
16373 * lib/fflush.c (rpl_fflush): Move declarations of locals,
16374 pos and result, into scopes where they're used.
16376 2009-01-26 Eric Blake <ebb9@byu.net>
16378 Silence warning reintroduced by recent extensions patch.
16379 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16380 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16383 Backport improved autoconf semantics of AC_DEFUN_ONCE.
16384 * m4/00gnulib.m4: New file.
16385 * gnulib-tool (func_get_filelist): Always use it.
16386 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16387 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16389 2009-01-25 Bruno Haible <bruno@clisp.org>
16391 Make test-quotearg work on MacOS X and AIX.
16392 * tests/test-quotearg.sh: New file.
16393 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16394 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16395 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16396 include <libintl.h>.
16397 (fake_locale): Remove variable.
16398 (gettext, dgettext, dcgettext): Remove functions.
16399 (main): Instead of setting a fake locale, set a real locale. Call
16400 textdomain and bindtextdomain.
16401 * modules/quotearg-tests (Files): Add the new files.
16402 (Depends-on): Add gettext, setenv, unsetenv.
16403 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16404 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16405 Augment TESTS_ENVIRONMENT.
16407 2009-01-25 Bruno Haible <bruno@clisp.org>
16409 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16410 fr_FR.ISO8859-1 locale on MacOS X.
16411 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16412 ja_JP.eucJP locale on MacOS X.
16413 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16414 zh_CN.GB18030 locale on MacOS X.
16416 2009-01-25 Bruno Haible <bruno@clisp.org>
16418 Avoid link errors on MacOS X 10.3.
16419 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16420 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16422 2009-01-25 Bruno Haible <bruno@clisp.org>
16424 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16425 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16426 * modules/pipe (Files): Remove m4/posix_spawn.m4.
16427 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16428 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16429 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16430 posix_spawnattr_init, posix_spawnattr_setsigmask,
16431 posix_spawnattr_setflags, posix_spawnattr_destroy.
16433 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16434 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16435 * modules/execute (Files): Remove m4/posix_spawn.m4.
16436 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16437 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16438 posix_spawnattr_init, posix_spawnattr_setsigmask,
16439 posix_spawnattr_setflags, posix_spawnattr_destroy.
16441 2009-01-25 Bruno Haible <bruno@clisp.org>
16443 * lib/glthread/threadlib.c: Include <stdlib.h>.
16445 2009-01-25 Bruno Haible <bruno@clisp.org>
16447 * lib/glthread/threadlib.c (dummy): New declaration.
16449 2009-01-25 Bruno Haible <bruno@clisp.org>
16451 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16452 multibyte characters also for the GB18030 encoding. Don't crash when
16453 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16455 2009-01-25 Bruno Haible <bruno@clisp.org>
16457 Avoid redefining 'struct random_data' on OSF/1 5.1.
16458 * lib/stdlib.in.h: Include <random.h> if it exists.
16459 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16460 HAVE_RANDOM_H. Include <random.h> when testing whether
16461 'struct random_data' exists.
16462 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16464 2009-01-25 Bruno Haible <bruno@clisp.org>
16466 Don't install charset.alias on MacOS X >= 10.3.
16467 * lib/localcharset.c (DARWIN7): New macro.
16468 (get_charset_aliases): Hardcode the result for Darwin7.
16469 * modules/localcharset (install-exec-local): Don't install
16470 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16472 2009-01-25 Bruno Haible <bruno@clisp.org>
16474 Don't install charset.alias on mingw and Cygwin.
16475 * modules/localcharset (install-exec-local): Don't install
16476 charset.alias on mingw and Cygwin, if the file does not yet exist.
16477 The result for these platforms is hardcoded in localcharset.c.
16479 2009-01-25 Bruno Haible <bruno@clisp.org>
16481 Make it possible again to use AC_GNU_SOURCE together with gnulib.
16482 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16483 before requiring AC_USE_SYSTEM_EXTENSIONS.
16485 2009-01-25 Jim Meyering <meyering@redhat.com>
16487 c-strtod: avoid warnings
16488 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16489 "assignment discards qualifiers from pointer target type" warnings.
16491 2009-01-24 Bruno Haible <bruno@clisp.org>
16493 Add support for non-UTF-8 locales on MacOS X.
16494 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16495 canonical encodings. For Darwin 7 and newer, don't map traditional
16496 encodings to UTF-8.
16497 Reported by Vincent Lefevre <vincent@vinc17.org>
16498 at <http://savannah.gnu.org/bugs/?25235>.
16500 2009-01-24 Bruno Haible <bruno@clisp.org>
16502 * doc/gnulib.texi (Obsolete modules): New section.
16503 Reported by Mike Frysinger <vapier@gentoo.org>.
16505 2009-01-24 Bruno Haible <bruno@clisp.org>
16507 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16510 2009-01-24 Bruno Haible <bruno@clisp.org>
16512 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16513 Reported by Eric Blake.
16515 2009-01-24 Bruno Haible <bruno@clisp.org>
16517 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16518 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16519 Reported by Gary V. Vaughan <gary@gnu.org>.
16521 2009-01-24 Bruno Haible <bruno@clisp.org>
16523 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16525 2009-01-23 Bruno Haible <bruno@clisp.org>
16527 Make c-strtod, c-strtold usable in libraries.
16528 * lib/c-strtod.c: Include string.h instead of xalloc.h.
16529 (C_STRTOD): Call strdup instead of xstrdup.
16530 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16531 * modules/c-strtold (Depends-on): Likewise.
16532 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16533 * NEWS: Mention the change.
16534 Reported by Michael Gold <mgold@ncf.ca>.
16536 2009-01-23 Jim Meyering <meyering@redhat.com>
16538 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16539 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16540 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16542 2009-01-23 Simon Josefsson <simon@josefsson.org>
16544 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16546 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16547 * modules/version-etc (Description): Update.
16549 2009-01-22 Bruno Haible <bruno@clisp.org>
16551 Cache the C locale object.
16552 * lib/c-strtod.c (c_locale_cache): New variable.
16553 (c_locale): New function.
16554 (C_STRTOD): Use it, and don't call freelocale.
16555 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16556 Suggested by Paolo Bonzini.
16558 2009-01-21 Bruno Haible <bruno@clisp.org>
16560 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16561 conditions other than overflow.
16563 2009-01-21 Bruno Haible <bruno@clisp.org>
16565 * lib/c-strtod.c: Include errno.h.
16566 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16567 value from STRTOD_L and STRTOD.
16569 2009-01-21 Bruno Haible <bruno@clisp.org>
16570 and Jim Meyering <meyering@redhat.com>
16572 nanosleep: skip configure test (fail it) for apple universal builds
16573 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16574 universal builds, assume that nanosleep does not work.
16575 * modules/nanosleep (Depends-on): Add multiarch.
16577 mktime: skip configure test (fail it) for apple universal builds
16578 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16579 universal builds, assume that mktime does not work.
16580 * modules/mktime (Depends-on): Add multiarch.
16582 2009-01-21 Eric Blake <ebb9@byu.net>
16584 multiarch: avoid expand-before-require warning
16585 * modules/multiarch (configure.ac): Require, rather than expand,
16587 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16588 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16589 enforce that all clients require it. Partial reversion of
16592 error: avoid expand-before-require warning
16593 * modules/errno (configure.ac): Require, rather than expand,
16595 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16596 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16597 enforce that all clients require it.
16599 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16600 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16601 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16602 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16604 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
16607 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16609 regex: do not depend on obsolete modules.
16610 * modules/regex: Remove memcmp and memmove.
16612 2009-01-20 Bruno Haible <bruno@clisp.org>
16614 Make the 'link' module link on Windows NT 4.
16615 * lib/link.c (_WIN32_WINNT): Don't define.
16616 (CreateHardLinkFuncType): New type.
16617 (CreateHardLinkFunc, initialized): New variables.
16618 (initialize): New function.
16619 (link): Invoke CreateHardLink indirectly through the function pointer.
16621 2009-01-20 Bruno Haible <bruno@clisp.org>
16623 Fix compilation failure on mingw.
16624 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16626 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
16628 * doc/c-strtod.texi: Mention a couple of restrictions.
16630 2009-01-20 Jim Meyering <meyering@redhat.com>
16632 gettimeofday: move more declarations out of functions
16633 * lib/gettimeofday.c: Move extern declarations of tzset and
16634 gmtime out of containing functions. Prompted by Bruno Haible.
16636 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16638 regex: do not depend on obsolete modules.
16639 * modules/regex: Remove memcmp and memmove.
16641 2009-01-19 Bruno Haible <bruno@clisp.org>
16643 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16644 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16645 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16646 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16647 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16649 2009-01-19 Bruno Haible <bruno@clisp.org>
16651 * tests/test-link.c: Include <errno.h>.
16652 (main): Exit with code 77 when a hard link cannot be created due to
16654 * tests/test-link.sh: Skip test when a hard link cannot be created due
16655 to the file system.
16656 Suggested by Eric Blake.
16658 2009-01-19 Martin Lambers <marlam@marlam.de>
16660 * modules/link-tests: New file.
16661 * tests/test-link.sh: New file.
16662 * tests/test-link.c: New file.
16664 2009-01-19 Eric Blake <ebb9@byu.net>
16666 doc: mention another function added in cygwin 1.7.0
16667 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16668 Another new function in cygwin 1.7.
16670 2009-01-19 Bruno Haible <bruno@clisp.org>
16672 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16673 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16674 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16675 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16676 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16677 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16678 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16679 * m4/md4.m4 (gl_MD4): Likewise.
16680 * m4/md5.m4 (gl_MD5): Likewise.
16681 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16682 * m4/sha1.m4 (gl_SHA1): Likewise.
16683 * m4/sha256.m4 (gl_SHA256): Likewise.
16684 * m4/sha512.m4 (gl_SHA512): Likewise.
16686 2009-01-19 Bruno Haible <bruno@clisp.org>
16688 * modules/uniname/uniname-tests (Depends-on): Add progname.
16689 * tests/uniname/test-uninames.c: Include progname.h.
16690 (main): Call set_program_name.
16692 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16693 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16694 (main): Call set_program_name.
16696 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16697 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16698 (main): Call set_program_name.
16700 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16701 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16702 (main): Call set_program_name.
16704 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16705 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16706 (main): Call set_program_name.
16708 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16709 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16710 (main): Call set_program_name.
16712 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16713 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16714 (main): Call set_program_name.
16716 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16717 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16718 (main): Call set_program_name.
16720 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16721 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16722 (main): Call set_program_name.
16724 2009-01-19 Eric Blake <ebb9@byu.net>
16726 test-unistd: test previous patch
16727 * tests/test-unistd.c: Test *_FILENO macros.
16729 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16730 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16731 Guarantee a definition.
16732 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16733 * modules/unistd-safer (Depends-on): Add dependency on unistd.
16734 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16735 * lib/dup-safer.c (STDERR_FILENO): Likewise.
16736 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16738 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16739 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16740 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16742 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16743 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16744 (STDERR_FILENO): Likewise.
16745 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16746 (STDERR_FILENO): Likewise.
16747 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16748 (STDERR_FILENO): Likewise.
16749 Reported by Elbert Pol.
16751 2009-01-19 Eric Blake <ebb9@byu.net>
16753 doc: mention more functions added in cygwin 1.7.0
16754 * doc/posix-functions/abort.texi (abort): Update wording related
16756 * doc/posix-functions/daylight.texi (daylight): Likewise.
16757 * doc/posix-functions/optarg.texi (optarg): Likewise.
16758 * doc/posix-functions/optarg.texi (opterr): Likewise.
16759 * doc/posix-functions/optarg.texi (optind): Likewise.
16760 * doc/posix-functions/optarg.texi (optopt): Likewise.
16761 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16762 worked in 1.5.x, and was withdrawn in 1.7.
16763 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16764 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16766 * doc/posix-functions/perror.texi (perror): Likewise.
16767 * doc/posix-functions/printf.texi (printf): Likewise.
16768 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16769 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16770 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16771 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16772 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16773 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16774 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16776 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16778 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16780 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16781 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16783 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16784 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16785 * doc/posix-functions/confstr.texi (confstr): Likewise.
16786 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16787 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16788 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16789 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16790 * doc/posix-functions/fputws.texi (fputws): Likewise.
16791 * doc/posix-functions/fwide.texi (fwide): Likewise.
16792 * doc/posix-functions/getwc.texi (getwc): Likewise.
16793 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16794 * doc/posix-functions/putwc.texi (putwc): Likewise.
16795 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16796 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16797 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16798 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16799 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16800 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16801 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16802 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16803 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16804 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16805 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16807 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16809 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16810 * lib/ioctl.c: Include <sys/ioctl.h>.
16812 2009-01-19 Simon Josefsson <simon@josefsson.org>
16814 * modules/getdate-tests (Depends-on): Add progname.
16815 * tests/test-getdate.c: Use progname module, to avoid link errors
16816 on non-glibc systems.
16818 2009-01-18 Simon Josefsson <simon@josefsson.org>
16820 * modules/filenamecat-tests (Depends-on): Add progname.
16821 * modules/fstrcmp-tests (Depends-on): Likewise.
16823 * tests/test-filenamecat.c: Use progname module, to avoid link
16824 errors on non-glibc systems.
16825 * tests/test-fstrcmp.c: Likewise.
16827 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16829 gettimeofday: avoid warning: nested extern declaration of 'localtime'
16830 * lib/gettimeofday.c: Move extern declaration out of function.
16832 2009-01-18 Bruno Haible <bruno@clisp.org>
16834 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16835 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16836 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16838 2009-01-18 Bruno Haible <bruno@clisp.org>
16840 * lib/strftime.c (MEMPCPY): Remove unused macro.
16841 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16843 2009-01-18 Martin Lambers <marlam@marlam.de>
16846 * lib/unistd.in.h (link): New declaration.
16847 * lib/link.c: New file.
16848 * m4/link.m4: New file.
16849 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16851 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16852 * modules/link: New file.
16853 * doc/posix-functions/link.texi: Mention the new module.
16855 2009-01-18 Bruno Haible <bruno@clisp.org>
16857 * tests/test-avltree_list.c (main): Call set_program_name.
16858 * tests/test-avltree_oset.c (main): Likewise.
16859 * tests/test-obstack-printf.c: Include progname.h.
16860 (main): Call set_program_name.
16861 * tests/test-quotearg.c: Include progname.h.
16862 (main): Call set_program_name.
16863 * tests/test-xmemdup0.c: Include progname.h.
16864 (main): Call set_program_name.
16866 2009-01-18 Bruno Haible <bruno@clisp.org>
16868 New module 'alphasort'.
16869 * lib/dirent.in.h (alphasort): New declaration.
16870 * lib/alphasort.c: New file, from glibc with modifications.
16871 * m4/alphasort.m4: New file.
16872 * modules/alphasort: New file.
16873 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16875 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16877 * doc/posix-functions/alphasort.texi: Mention the new module and the
16878 portability problems.
16880 2009-01-18 Bruno Haible <bruno@clisp.org>
16882 New module 'scandir'.
16883 * lib/dirent.in.h (scandir): New declaration.
16884 * lib/scandir.c: New file, from glibc with modifications.
16885 * m4/scandir.m4: New file.
16886 * modules/scandir: New file.
16887 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16889 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16891 * doc/posix-functions/scandir.texi: Mention the new module and the
16892 portability problems.
16894 2009-01-17 Bruno Haible <bruno@clisp.org>
16896 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16897 Update documentation.
16898 (func_remove_suffix): Escape all dots in the suffix. Update
16900 (func_filter_filelist): Update documentation.
16901 Reported by Ralf Wildenhues.
16903 2009-01-17 Bruno Haible <bruno@clisp.org>
16905 * modules/dprintf-posix-tests: New file.
16906 * tests/test-dprintf-posix.sh: New file.
16907 * tests/test-dprintf-posix.c: New file.
16909 New modules 'dprintf', 'dprintf-posix'.
16910 * lib/stdio.in.h (dprintf): New declaration.
16911 * lib/dprintf.c: New file.
16912 * m4/dprintf.m4: New file.
16913 * m4/dprintf-posix.m4: New file.
16914 * modules/dprintf: New file.
16915 * modules/dprintf-posix: New file.
16916 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16917 HAVE_DPRINTF, REPLACE_DPRINTF.
16918 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16919 HAVE_DPRINTF, REPLACE_DPRINTF.
16920 * doc/posix-functions/dprintf.texi: Mention the new modules.
16922 2009-01-17 Bruno Haible <bruno@clisp.org>
16924 * modules/vdprintf-posix-tests: New file.
16925 * tests/test-vdprintf-posix.sh: New file.
16926 * tests/test-vdprintf-posix.c: New file.
16928 New modules 'vdprintf', 'vdprintf-posix'.
16929 * lib/stdio.in.h (vdprintf): New declaration.
16930 * lib/vdprintf.c: New file.
16931 * m4/vdprintf.m4: New file.
16932 * m4/vdprintf-posix.m4: New file.
16933 * modules/vdprintf: New file.
16934 * modules/vdprintf-posix: New file.
16935 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16936 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16937 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16938 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16939 * doc/posix-functions/vdprintf.texi: Mention the new modules.
16941 2009-01-17 Bruno Haible <bruno@clisp.org>
16943 Fix replacement of fopen on mingw.
16944 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16947 2009-01-17 Bruno Haible <bruno@clisp.org>
16949 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16950 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16952 2009-01-17 Bruno Haible <bruno@clisp.org>
16954 Avoid test-fflush2.sh failure on mingw.
16955 * tests/test-fflush2.c: Include binary-io.h.
16956 (main): Put standard input into binary mode.
16957 * modules/fflush-tests (Depends-on): Add binary-io.
16959 2009-01-17 Bruno Haible <bruno@clisp.org>
16961 * lib/wchar.in.h: In another particular situation, include only the
16962 system's <wchar.h> file.
16963 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16964 Reported by Albert Chin-A-Young <china@thewrittenword.com>
16965 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16967 2009-01-17 Bruno Haible <bruno@clisp.org>
16969 Support for stripping executables in --enable-relocatable.
16970 * build-aux/install-reloc: Expect one more argument, or an environment
16971 variable RELOC_STRIP_PROG. If set, strip the destination program and
16973 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16975 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16976 to set RELOCATABLE_STRIP.
16977 * NEWS: Mention the new Makefile requirement.
16979 2009-01-17 Bruno Haible <bruno@clisp.org>
16981 * build-aux/install-reloc: Remove debugging information left over by
16982 C compiler on MacOS X.
16984 2009-01-17 Bruno Haible <bruno@clisp.org>
16986 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16987 * lib/progreloc.c (find_executable): Fix type of pointer passed to
16988 _NSGetExecutablePath.
16990 2009-01-16 Jim Meyering <meyering@redhat.com>
16992 strerror: avoid warnings about discarding "const"
16993 * lib/strerror.c (rpl_strerror): Instead of returning a const
16994 string from each and every "case", use a variable, and add a single
16995 cast after the switch.
16997 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
16999 * lib/arpa_inet.in.h: Add extern "C" block for C++.
17001 2009-01-16 Bruno Haible <bruno@clisp.org>
17003 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17004 array initializer syntax that also works in C++ mode.
17005 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17007 2009-01-16 Jim Meyering <meyering@redhat.com>
17009 poll: suppress a warning
17010 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17011 to ignore "...unsigned expression < 0 is always false" warnings.
17013 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
17015 poll: remove declarations of unused variables
17016 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17017 sockbuf and optlen.
17019 2009-01-15 Bruno Haible <bruno@clisp.org>
17021 Make fflush-after-ungetc POSIX compliant on BSD systems.
17022 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17023 (clear_ungetc_buffer): Implement also for other systems.
17024 (rpl_fflush): On glibc systems, invoke
17025 clear_ungetc_buffer_preserving_position. Otherwise, invoke
17026 clear_ungetc_buffer after fetching the stream's position, not before.
17028 2009-01-15 Bruno Haible <bruno@clisp.org>
17030 Make fflush-after-ungetc POSIX compliant on glibc systems.
17031 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17033 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17034 (rpl_fflush): On glibc systems, simply call the system's fflush
17035 function after clearing the ungetc buffer.
17036 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17037 Instead, lseek only to the end of file, then use the system's fseeko
17038 for the rest. On glibc systems, reset the EOF indicator bit.
17040 2009-01-15 Jim Meyering <meyering@redhat.com>
17042 openmp.m4: revert quote-adding change, for portability to older autoconf
17043 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17044 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17045 Simon Josefsson noticed the problem when using autoconf-2.61.
17047 2009-01-15 Bruno Haible <bruno@clisp.org>
17049 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17050 * tests/test-fflush2.c (ASSERT): Always fail.
17051 (main): Add two tests for fflush() after ungetc(), taking into account
17052 the Austin Group's clarification.
17053 Suggested by Eric Blake.
17055 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
17057 mktime.m4: remove K&R-style function prototypes
17058 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17059 for the Sun C++ compiler.
17061 2009-01-14 Bruno Haible <bruno@clisp.org>
17063 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17064 while including <wchar.h>.
17065 * lib/wchar.in.h: In two particular situations on HP-UX, include only
17066 the system's <wchar.h> file.
17067 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17069 2009-01-14 Bruno Haible <bruno@clisp.org>
17071 * m4/csharp.m4: Don't mention gettext on the serial number line.
17072 * m4/csharpexec.m4: Likewise.
17073 * m4/eaccess.m4: Likewise.
17074 * m4/javaexec.m4: Likewise.
17075 * m4/sig_atomic_t.m4: Likewise.
17076 * m4/tmpdir.m4: Likewise.
17077 * m4/intldir.m4: Bump gettext version.
17078 * m4/lib-ld.m4: Likewise.
17080 2009-01-14 Bruno Haible <bruno@clisp.org>
17082 * lib/progname.c (set_program_name): Add more comments.
17083 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17085 2009-01-14 Simon Josefsson <simon@josefsson.org>
17087 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17088 were sys/stat.h does not define it.
17090 2009-01-14 Jim Meyering <meyering@redhat.com>
17092 many *.m4 files: improve m4 quoting
17093 99% of this change was performed by running the following commands:
17094 git ls-files | grep '\.m4$' | xargs perl -pi \
17095 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17096 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17097 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17098 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17099 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17100 The remainder were to add Copyright dates, increment serial numbers,
17101 undo some changes in comments, exclude m4/intl.m4, and add quotes
17102 around the "1" in ",1" where the unusual spacing prohibited the
17103 above regexps from doing the job. For more details, see
17104 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17105 * m4/acl.m4: Modified.
17106 * m4/afs.m4: Likewise.
17107 * m4/alloca.m4: Likewise.
17108 * m4/argp.m4: Likewise.
17109 * m4/argz.m4: Likewise.
17110 * m4/atexit.m4: Likewise.
17111 * m4/bison-i18n.m4: Likewise.
17112 * m4/bison.m4: Likewise.
17113 * m4/byteswap.m4: Likewise.
17114 * m4/c-stack.m4: Likewise.
17115 * m4/c-strtod.m4: Likewise.
17116 * m4/calloc.m4: Likewise.
17117 * m4/canonicalize-lgpl.m4: Likewise.
17118 * m4/chown.m4: Likewise.
17119 * m4/clock_time.m4: Likewise.
17120 * m4/codeset.m4: Likewise.
17121 * m4/copy-file.m4: Likewise.
17122 * m4/csharp.m4: Likewise.
17123 * m4/csharpcomp.m4: Likewise.
17124 * m4/csharpexec.m4: Likewise.
17125 * m4/d-ino.m4: Likewise.
17126 * m4/d-type.m4: Likewise.
17127 * m4/dirfd.m4: Likewise.
17128 * m4/double-slash-root.m4: Likewise.
17129 * m4/eaccess.m4: Likewise.
17130 * m4/eealloc.m4: Likewise.
17131 * m4/environ.m4: Likewise.
17132 * m4/errno_h.m4: Likewise.
17133 * m4/euidaccess.m4: Likewise.
17134 * m4/execute.m4: Likewise.
17135 * m4/fatal-signal.m4: Likewise.
17136 * m4/fchdir.m4: Likewise.
17137 * m4/fcntl_h.m4: Likewise.
17138 * m4/fileblocks.m4: Likewise.
17139 * m4/filenamecat.m4: Likewise.
17140 * m4/findprog.m4: Likewise.
17141 * m4/flexmember.m4: Likewise.
17142 * m4/fnmatch.m4: Likewise.
17143 * m4/fopen.m4: Likewise.
17144 * m4/fpending.m4: Likewise.
17145 * m4/fprintf-posix.m4: Likewise.
17146 * m4/free.m4: Likewise.
17147 * m4/frexp.m4: Likewise.
17148 * m4/frexpl.m4: Likewise.
17149 * m4/fsusage.m4: Likewise.
17150 * m4/ftruncate.m4: Likewise.
17151 * m4/gc-camellia.m4: Likewise.
17152 * m4/gc-random.m4: Likewise.
17153 * m4/gc.m4: Likewise.
17154 * m4/getaddrinfo.m4: Likewise.
17155 * m4/getcwd-abort-bug.m4: Likewise.
17156 * m4/getcwd-path-max.m4: Likewise.
17157 * m4/getdate.m4: Likewise.
17158 * m4/getdomainname.m4: Likewise.
17159 * m4/getgroups.m4: Likewise.
17160 * m4/gethostname.m4: Likewise.
17161 * m4/gethrxtime.m4: Likewise.
17162 * m4/getline.m4: Likewise.
17163 * m4/getloadavg.m4: Likewise.
17164 * m4/getndelim2.m4: Likewise.
17165 * m4/getpass.m4: Likewise.
17166 * m4/gettext.m4: Likewise.
17167 * m4/gettime.m4: Likewise.
17168 * m4/gettimeofday.m4: Likewise.
17169 * m4/gnulib-common.m4: Likewise.
17170 * m4/group-member.m4: Likewise.
17171 * m4/host-os.m4: Likewise.
17172 * m4/iconv.m4: Likewise.
17173 * m4/iconv_open.m4: Likewise.
17174 * m4/inet_ntop.m4: Likewise.
17175 * m4/inet_pton.m4: Likewise.
17176 * m4/inline.m4: Likewise.
17177 * m4/intldir.m4: Likewise.
17178 * m4/intlmacosx.m4: Likewise.
17179 * m4/intmax.m4: Likewise.
17180 * m4/intmax_t.m4: Likewise.
17181 * m4/inttypes.m4: Likewise.
17182 * m4/inttypes_h.m4: Likewise.
17183 * m4/inttypes-pri.m4: Likewise.
17184 * m4/isapipe.m4: Likewise.
17185 * m4/isnand.m4: Likewise.
17186 * m4/isnanf.m4: Likewise.
17187 * m4/isnanl.m4: Likewise.
17188 * m4/javacomp.m4: Likewise.
17189 * m4/javaexec.m4: Likewise.
17190 * m4/jm-winsz1.m4: Likewise.
17191 * m4/jm-winsz2.m4: Likewise.
17192 * m4/lchown.m4: Likewise.
17193 * m4/lcmessage.m4: Likewise.
17194 * m4/ldexpl.m4: Likewise.
17195 * m4/lib-ld.m4: Likewise.
17196 * m4/lib-link.m4: Likewise.
17197 * m4/libsigsegv.m4: Likewise.
17198 * m4/link-follow.m4: Likewise.
17199 * m4/localcharset.m4: Likewise.
17200 * m4/locale-fr.m4: Likewise.
17201 * m4/locale-ja.m4: Likewise.
17202 * m4/locale-tr.m4: Likewise.
17203 * m4/locale-zh.m4: Likewise.
17204 * m4/lock.m4: Likewise.
17205 * m4/longlong.m4: Likewise.
17206 * m4/ls-mntd-fs.m4: Likewise.
17207 * m4/lstat.m4: Likewise.
17208 * m4/malloc.m4: Likewise.
17209 * m4/mathl.m4: Likewise.
17210 * m4/mbrtowc.m4: Likewise.
17211 * m4/mbstate_t.m4: Likewise.
17212 * m4/mbswidth.m4: Likewise.
17213 * m4/memchr.m4: Likewise.
17214 * m4/memcmp.m4: Likewise.
17215 * m4/memcpy.m4: Likewise.
17216 * m4/memmem.m4: Likewise.
17217 * m4/memmove.m4: Likewise.
17218 * m4/mempcpy.m4: Likewise.
17219 * m4/memrchr.m4: Likewise.
17220 * m4/memset.m4: Likewise.
17221 * m4/minmax.m4: Likewise.
17222 * m4/mkdir-slash.m4: Likewise.
17223 * m4/mkdtemp.m4: Likewise.
17224 * m4/mktime.m4: Likewise.
17225 * m4/mmap-anon.m4: Likewise.
17226 * m4/mountlist.m4: Likewise.
17227 * m4/nanosleep.m4: Likewise.
17228 * m4/nls.m4: Likewise.
17229 * m4/nocrash.m4: Likewise.
17230 * m4/open.m4: Likewise.
17231 * m4/openat.m4: Likewise.
17232 * m4/openmp.m4: Likewise.
17233 * m4/pathmax.m4: Likewise.
17234 * m4/perl.m4: Likewise.
17235 * m4/physmem.m4: Likewise.
17236 * m4/pipe.m4: Likewise.
17237 * m4/po.m4: Likewise.
17238 * m4/poll.m4: Likewise.
17239 * m4/posixtm.m4: Likewise.
17240 * m4/posixver.m4: Likewise.
17241 * m4/printf-frexp.m4: Likewise.
17242 * m4/printf-frexpl.m4: Likewise.
17243 * m4/printf-posix.m4: Likewise.
17244 * m4/printf-posix-rpl.m4: Likewise.
17245 * m4/printf.m4: Likewise.
17246 * m4/progtest.m4: Likewise.
17247 * m4/putenv.m4: Likewise.
17248 * m4/readline.m4: Likewise.
17249 * m4/readlink.m4: Likewise.
17250 * m4/readutmp.m4: Likewise.
17251 * m4/realloc.m4: Likewise.
17252 * m4/regex.m4: Likewise.
17253 * m4/relocatable.m4: Likewise.
17254 * m4/relocatable-lib.m4: Likewise.
17255 * m4/rename-dest-slash.m4: Likewise.
17256 * m4/rename.m4: Likewise.
17257 * m4/rmdir-errno.m4: Likewise.
17258 * m4/rmdir.m4: Likewise.
17259 * m4/roundf.m4: Likewise.
17260 * m4/roundl.m4: Likewise.
17261 * m4/rpmatch.m4: Likewise.
17262 * m4/save-cwd.m4: Likewise.
17263 * m4/selinux-selinux-h.m4: Likewise.
17264 * m4/setenv.m4: Likewise.
17265 * m4/settime.m4: Likewise.
17266 * m4/sig2str.m4: Likewise.
17267 * m4/sig_atomic_t.m4: Likewise.
17268 * m4/signalblocking.m4: Likewise.
17269 * m4/signbit.m4: Likewise.
17270 * m4/sigpipe.m4: Likewise.
17271 * m4/sockets.m4: Likewise.
17272 * m4/sockpfaf.m4: Likewise.
17273 * m4/st_dm_mode.m4: Likewise.
17274 * m4/stat-time.m4: Likewise.
17275 * m4/stdbool.m4: Likewise.
17276 * m4/stdint.m4: Likewise.
17277 * m4/stdint_h.m4: Likewise.
17278 * m4/stpcpy.m4: Likewise.
17279 * m4/stpncpy.m4: Likewise.
17280 * m4/strcase.m4: Likewise.
17281 * m4/strchrnul.m4: Likewise.
17282 * m4/strcspn.m4: Likewise.
17283 * m4/strdup.m4: Likewise.
17284 * m4/strftime.m4: Likewise.
17285 * m4/strndup.m4: Likewise.
17286 * m4/strnlen.m4: Likewise.
17287 * m4/strpbrk.m4: Likewise.
17288 * m4/strptime.m4: Likewise.
17289 * m4/strsep.m4: Likewise.
17290 * m4/strtod.m4: Likewise.
17291 * m4/strtoimax.m4: Likewise.
17292 * m4/strtok_r.m4: Likewise.
17293 * m4/strtol.m4: Likewise.
17294 * m4/strtoll.m4: Likewise.
17295 * m4/strtoul.m4: Likewise.
17296 * m4/strtoull.m4: Likewise.
17297 * m4/strtoumax.m4: Likewise.
17298 * m4/strverscmp.m4: Likewise.
17299 * m4/threadlib.m4: Likewise.
17300 * m4/timegm.m4: Likewise.
17301 * m4/tm_gmtoff.m4: Likewise.
17302 * m4/tmpdir.m4: Likewise.
17303 * m4/tmpfile.m4: Likewise.
17304 * m4/tzset.m4: Likewise.
17305 * m4/uintmax_t.m4: Likewise.
17306 * m4/unlinkdir.m4: Likewise.
17307 * m4/unlocked-io.m4: Likewise.
17308 * m4/uptime.m4: Likewise.
17309 * m4/userspec.m4: Likewise.
17310 * m4/utimbuf.m4: Likewise.
17311 * m4/utime.m4: Likewise.
17312 * m4/utimes-null.m4: Likewise.
17313 * m4/utimes.m4: Likewise.
17314 * m4/vararrays.m4: Likewise.
17315 * m4/vasnprintf.m4: Likewise.
17316 * m4/vfprintf-posix.m4: Likewise.
17317 * m4/vprintf-posix.m4: Likewise.
17318 * m4/wait-process.m4: Likewise.
17319 * m4/wchar_t.m4: Likewise.
17320 * m4/wint_t.m4: Likewise.
17321 * m4/write-any-file.m4: Likewise.
17322 * m4/yield.m4: Likewise.
17324 2009-01-13 Bruno Haible <bruno@clisp.org>
17326 Avoid test-copy-file.sh failures when ACL support insufficient.
17327 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17329 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17330 Reported by Jim Meyering.
17332 2009-01-13 Bruno Haible <bruno@clisp.org>
17334 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17335 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17336 * modules/unistdio/u8-printf-parse (Files): Likewise.
17337 * modules/unistdio/u32-printf-parse (Files): Likewise.
17338 * modules/unistdio/ulc-printf-parse (Files): Likewise.
17340 2009-01-13 Simon Josefsson <simon@josefsson.org>
17342 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17343 and m4/inttypes_h.m4 too.
17345 2009-01-12 Eric Blake <ebb9@byu.net>
17347 tests: IRIX 6.2 cc can't compile -0.0 into .data
17348 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17349 rather than at compile-time.
17350 * tests/test-floorl.c (minus_zero): Likewise.
17351 * tests/test-frexpl.c (minus_zero): Likewise.
17352 * tests/test-isnan.c (minus_zerol): Likewise.
17353 * tests/test-isnanl.h (minus_zero): Likewise.
17354 * tests/test-ldexpl.c (minus_zero): Likewise.
17355 * tests/test-roundl.c (minus_zero): Likewise.
17356 * tests/test-signbit.c (minus_zerol): Likewise.
17357 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17358 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17359 * tests/test-truncl.c (minus_zero): Likewise.
17360 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17361 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17362 Reported by Tom G. Christensen and Nelson H. F. Beebe.
17364 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17366 regex: fix glibc bug 9697
17367 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17370 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17372 regex: fix glibc bug 697
17373 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17374 being NULL also if there are no backreferences.
17376 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17378 regex: merge glibc changes
17379 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17380 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17381 re_string_skip_chars, re_string_reconstruct): Likewise.
17382 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17384 2009-01-07 Jim Meyering <meyering@redhat.com>
17386 poll: filter through cppi
17387 * lib/poll.c: Indent cpp directives to reflect nesting.
17389 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
17391 poll: don't return uninitialized
17392 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17394 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
17396 avoid compile failure on AIX 6.1
17397 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17398 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17400 2009-01-04 Jim Meyering <meyering@redhat.com>
17402 remove duplicate inclusion of <stdio.h>
17403 * tests/test-fprintf-posix.c: Likewise.
17404 * tests/test-printf-posix.c: Likewise.
17405 * tests/test-snprintf-posix.c: Likewise.
17406 * tests/test-sprintf-posix.c: Likewise.
17407 * tests/test-vasprintf-posix.c: Likewise.
17408 * tests/test-vfprintf-posix.c: Likewise.
17409 * tests/test-vprintf-posix.c: Likewise.
17410 * tests/test-vsnprintf-posix.c: Likewise.
17411 * tests/test-vsprintf-posix.c: Likewise.
17413 2009-01-03 Jim Meyering <meyering@redhat.com>
17415 gnulib-tool: fix sed-based filtering
17416 * gnulib-tool (func_filter_filelist): Remove extra backslash
17417 in sed_fff_filter definition.
17419 2009-01-02 Jim Meyering <meyering@redhat.com>
17421 strftime: avoid compilation failure on Solaris 2.6
17422 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17423 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17424 Don't #define mbrlen or mbsinit, since now they're guaranteed to
17425 be available. Reported by Tom G. Christensen. Details in
17426 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17428 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17429 Bruno Haible <bruno@clisp.org>
17431 Speed up gnulib-tool by doing more string processing through shell
17433 * gnulib-tool (fast_func_append): New variable.
17434 (func_remove_prefix, func_remove_suffix): New functions.
17435 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17436 (func_filter_filelist): New function.
17437 (func_get_dependencies): Use func_remove_suffix instead of sed.
17438 (func_get_automake_snippet): Use func_filter_filelist instead of a
17439 subshell and sed invocation.
17441 2009-01-01 Bruno Haible <bruno@clisp.org>
17443 Fix a security bug.
17444 * gnulib-tool (func_import, import, update): Don't allow the characters
17445 '"', '$', '`', '\' in macro arguments that become part of commands that
17448 2009-01-01 Bruno Haible <bruno@clisp.org>
17450 * gnulib-tool (func_reset_sigpipe): Add more comments.
17452 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17454 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17455 func_emit_tests_Makefile_am, func_import): Abort loops early if we
17456 already know the answer.
17458 2009-01-01 Jim Meyering <meyering@redhat.com>
17460 * lib/version-etc.c (version_etc_va): Update copyright year.
17462 2008-12-30 Bruno Haible <bruno@clisp.org>
17464 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17465 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17466 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17468 2008-12-29 Eric Blake <ebb9@byu.net>
17470 multiarch: avoid autoconf AC_REQUIRE bug
17471 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17472 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17474 Reported by Bruno Haible, and analyzed in
17475 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17477 2008-12-29 Bruno Haible <bruno@clisp.org>
17479 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17480 files in subdirectories correctly.
17481 Reported by Ralf Wildenhues.
17483 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17485 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17486 rather than 'join FILE -', for Solaris join.
17488 2008-12-29 Bruno Haible <bruno@clisp.org>
17490 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17492 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17493 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17494 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17495 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17496 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17497 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17498 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17499 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17500 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17501 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17502 * m4/nls.m4 (AM_NLS): Likewise.
17503 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17504 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17505 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17506 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17507 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17508 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17509 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17510 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17511 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17512 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17513 * m4/xsize.m4 (gl_XSIZE): Likewise.
17514 Suggested by Jim Meyering.
17516 2008-11-17 Bruce Korb <bkorb@gnu.org>
17518 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17519 * lib/parse-duration.c: use a switch instead of cascading if's.
17521 2008-12-29 Eric Blake <ebb9@byu.net>
17523 wchar.h: supply WEOF on Irix 5.3
17524 * lib/wchar.in.h (wint_t): Also supply WEOF.
17525 * lib/wctype.in.h (wint_t): Likewise.
17526 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17527 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17528 Reported by Tom G. Christensen.
17530 2008-12-26 Bruno Haible <bruno@clisp.org>
17532 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17535 2008-12-26 Bruno Haible <bruno@clisp.org>
17537 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17539 2008-12-26 Bruno Haible <bruno@clisp.org>
17541 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17542 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17543 not __STDC_CONSTANT_MACROS.
17544 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17546 2008-12-25 Bruno Haible <bruno@clisp.org>
17548 Add support for universal builds to vasnprintf.
17549 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17550 universal builds, guess no.
17551 * modules/vasnprintf-posix (Depends-on): Add multiarch.
17552 * modules/vasprintf-posix (Depends-on): Likewise.
17553 * modules/fprintf-posix (Depends-on): Likewise.
17554 * modules/vfprintf-posix (Depends-on): Likewise.
17555 * modules/snprintf-posix (Depends-on): Likewise.
17556 * modules/vsnprintf-posix (Depends-on): Likewise.
17557 * modules/sprintf-posix (Depends-on): Likewise.
17558 * modules/vsprintf-posix (Depends-on): Likewise.
17559 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17560 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17561 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17562 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17563 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17564 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17565 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17567 Add support for universal builds to <inttypes.h>.
17568 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17569 _SCNu64_PREFIX): In Apple
17570 universal builds, define directly, using _LP64.
17571 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17572 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17573 * modules/inttypes (Depends-on): Add multiarch.
17574 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17576 Add support for universal builds to <stdint.h>.
17577 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17578 universal builds, define directly, using _LP64.
17579 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17580 Apple universal builds, don't test for the size and suffix of ptrdiff_t
17582 * modules/stdint (Depends-on): Add multiarch.
17583 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17585 New module 'multiarch'.
17586 * modules/multiarch: New file.
17587 * m4/multiarch.m4: New file.
17589 2008-12-25 Bruno Haible <bruno@clisp.org>
17591 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17593 2008-12-25 Bruno Haible <bruno@clisp.org>
17595 * modules/btowc (License): Relicense under LGPLv2+.
17596 * modules/mbsinit (License): Likewise.
17597 * modules/mbrtowc (License): Likewise.
17598 * modules/wcrtomb (License): Likewise.
17599 * modules/streq (License): Likewise.
17600 Reported by David Lutterkort <lutter@redhat.com>.
17602 2008-12-23 Bruno Haible <bruno@clisp.org>
17604 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17606 2008-12-23 Bruno Haible <bruno@clisp.org>
17608 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17609 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17610 GETADDRINFO_LIB, not in LIBS.
17611 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17612 * modules/canon-host (Link): Likewise.
17613 * NEWS: Mention the change.
17614 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17617 2008-12-22 Bruno Haible <bruno@clisp.org>
17619 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17620 * doc/posix-functions/iswalpha_l.texi: Likewise.
17621 * doc/posix-functions/iswblank_l.texi: Likewise.
17622 * doc/posix-functions/iswcntrl_l.texi: Likewise.
17623 * doc/posix-functions/iswctype_l.texi: Likewise.
17624 * doc/posix-functions/iswdigit_l.texi: Likewise.
17625 * doc/posix-functions/iswgraph_l.texi: Likewise.
17626 * doc/posix-functions/iswlower_l.texi: Likewise.
17627 * doc/posix-functions/iswprint_l.texi: Likewise.
17628 * doc/posix-functions/iswpunct_l.texi: Likewise.
17629 * doc/posix-functions/iswspace_l.texi: Likewise.
17630 * doc/posix-functions/iswupper_l.texi: Likewise.
17631 * doc/posix-functions/iswxdigit_l.texi: Likewise.
17632 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17633 * doc/posix-functions/open_wmemstream.texi: Likewise.
17634 * doc/posix-functions/swscanf.texi: Likewise.
17635 * doc/posix-functions/towctrans_l.texi: Likewise.
17636 * doc/posix-functions/towlower.texi: Likewise.
17637 * doc/posix-functions/towlower_l.texi: Likewise.
17638 * doc/posix-functions/towupper.texi: Likewise.
17639 * doc/posix-functions/towupper_l.texi: Likewise.
17640 * doc/posix-functions/vfwprintf.texi: Likewise.
17641 * doc/posix-functions/vfwscanf.texi: Likewise.
17642 * doc/posix-functions/vswscanf.texi: Likewise.
17643 * doc/posix-functions/vwprintf.texi: Likewise.
17644 * doc/posix-functions/vwscanf.texi: Likewise.
17645 * doc/posix-functions/wcpcpy.texi: Likewise.
17646 * doc/posix-functions/wcpncpy.texi: Likewise.
17647 * doc/posix-functions/wcscasecmp.texi: Likewise.
17648 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17649 * doc/posix-functions/wcscoll_l.texi: Likewise.
17650 * doc/posix-functions/wcsdup.texi: Likewise.
17651 * doc/posix-functions/wcsncasecmp.texi: Likewise.
17652 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17653 * doc/posix-functions/wcsnlen.texi: Likewise.
17654 * doc/posix-functions/wcsnrtombs.texi: Likewise.
17655 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17656 * doc/posix-functions/wctrans_l.texi: Likewise.
17657 * doc/posix-functions/wctype_l.texi: Likewise.
17658 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17659 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17660 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17661 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17662 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17663 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17664 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17665 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17666 * doc/glibc-functions/wcschrnul.texi: Likewise.
17667 * doc/glibc-functions/wcsftime_l.texi: Likewise.
17668 * doc/glibc-functions/wcstod_l.texi: Likewise.
17669 * doc/glibc-functions/wcstof_l.texi: Likewise.
17670 * doc/glibc-functions/wcstol_l.texi: Likewise.
17671 * doc/glibc-functions/wcstold_l.texi: Likewise.
17672 * doc/glibc-functions/wcstoll_l.texi: Likewise.
17673 * doc/glibc-functions/wcstoq.texi: Likewise.
17674 * doc/glibc-functions/wcstoul_l.texi: Likewise.
17675 * doc/glibc-functions/wcstoull_l.texi: Likewise.
17676 * doc/glibc-functions/wcstouq.texi: Likewise.
17677 * doc/glibc-functions/wmempcpy.texi: Likewise.
17679 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
17680 Eric Blake <ebb9@byu.net>
17681 Paolo Bonzini <bonzini@gnu.org>
17682 Bruno Haible <bruno@clisp.org>
17684 Make c-stack work on Haiku.
17685 * lib/c-stack.c (SA_ONSTACK): Define fallback.
17686 (c_stack_action): Use SA_ONSTACK flag.
17688 2008-12-22 Bruno Haible <bruno@clisp.org>
17690 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17692 2008-12-22 Bruno Haible <bruno@clisp.org>
17694 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17695 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17697 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17699 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17700 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17701 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17702 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17704 2008-12-22 Bruno Haible <bruno@clisp.org>
17706 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17709 2008-12-22 Eric Blake <ebb9@byu.net>
17711 Avoid gcc warnings on cygwin.
17712 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17713 Avoid unused variable.
17714 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17717 2008-12-22 Bruno Haible <bruno@clisp.org>
17719 Remove HAVE_MBRTOWC conditionals.
17720 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17721 (mbscasecmp): Assume mbrtowc function.
17722 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17723 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17724 * lib/mbschr.c: Include mbuiter.h unconditionally.
17725 (mbschr): Assume mbrtowc function.
17726 * lib/mbscspn.c: Include mbuiter.h unconditionally.
17727 (mbscspn): Assume mbrtowc function.
17728 * lib/mbslen.c: Include mbuiter.h unconditionally.
17729 (mbslen): Assume mbrtowc function.
17730 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17731 (mbsncasecmp): Assume mbrtowc function.
17732 * lib/mbsnlen.c: Include mbiter.h unconditionally.
17733 (mbsnlen): Assume mbrtowc function.
17734 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17735 (mbspbrk): Assume mbrtowc function.
17736 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17737 (mbspcasecmp): Assume mbrtowc function.
17738 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17739 (mbsrchr): Assume mbrtowc function.
17740 * lib/mbssep.c: Include mbuiter.h unconditionally.
17741 (mbssep): Assume mbrtowc function.
17742 * lib/mbsspn.c: Include mbuiter.h unconditionally.
17743 (mbsspn): Assume mbrtowc function.
17744 * lib/mbsstr.c: Include mbuiter.h unconditionally.
17745 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17746 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17747 (mbstok_r): Assume mbrtowc function.
17748 * lib/propername.c: Include mbuiter.h unconditionally.
17749 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17750 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17751 (trim2): Assume mbrtowc function.
17752 * lib/mbswidth.c (mbsinit): Remove fallback definition.
17753 (mbsnwidth): Assume mbrtowc function.
17754 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17755 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17756 fallback definitions.
17757 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17759 2008-12-22 Bruno Haible <bruno@clisp.org>
17761 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17763 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
17765 * modules/regex: Request emulations for the mb*/wc* functions we need.
17766 * m4/regex.m4: Don't look for those functions here.
17767 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17769 2008-12-22 Bruno Haible <bruno@clisp.org>
17771 * modules/fnmatch (Depends-on): Remove duplicated dependency.
17773 2008-12-21 Bruno Haible <bruno@clisp.org>
17775 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17776 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17777 (Include): Remove conditionalization.
17778 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17779 (Include): Remove conditionalization.
17780 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17781 (Include): Remove conditionalization.
17782 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17783 * m4/mbfile.m4 (gl_MBFILE): Likewise.
17784 * NEWS: Mention the change.
17785 Reported by Alan Hourihane <alanh@fairlite.co.uk>
17786 via Sergey Poznyakoff <gray@gnu.org.ua>.
17788 2008-12-21 Bruno Haible <bruno@clisp.org>
17790 * MODULES.html.sh (Extended multibyte and wide character utilities
17791 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17792 wcrtomb, wcsrtombs.
17793 (Support for systems lacking POSIX:2008): Add accept, bind, close,
17794 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17795 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17796 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17798 2008-12-21 Bruno Haible <bruno@clisp.org>
17800 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17802 2008-12-21 Bruno Haible <bruno@clisp.org>
17804 * modules/wcsnrtombs-tests: New file.
17805 * tests/test-wcsnrtombs1.sh: New file.
17806 * tests/test-wcsnrtombs2.sh: New file.
17807 * tests/test-wcsnrtombs3.sh: New file.
17808 * tests/test-wcsnrtombs4.sh: New file.
17809 * tests/test-wcsnrtombs.c: New file.
17811 New module 'wcsnrtombs'.
17812 * lib/wchar.in.h (wcsnrtombs): New declaration.
17813 * lib/wcsnrtombs.c: New file.
17814 * lib/wcsrtombs-state.c: New file.
17815 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17816 (internal_state): Remove variable.
17817 * m4/wcsnrtombs.m4: New file.
17818 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17820 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17822 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17824 * modules/wcsnrtombs: New file.
17825 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17826 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17828 2008-12-21 Bruno Haible <bruno@clisp.org>
17830 * modules/wcsrtombs-tests: New file.
17831 * tests/test-wcsrtombs1.sh: New file.
17832 * tests/test-wcsrtombs2.sh: New file.
17833 * tests/test-wcsrtombs3.sh: New file.
17834 * tests/test-wcsrtombs4.sh: New file.
17835 * tests/test-wcsrtombs.c: New file.
17837 New module 'wcsrtombs'.
17838 * lib/wchar.in.h (wcsrtombs): New declaration.
17839 * lib/wcsrtombs.c: New file.
17840 * m4/wcsrtombs.m4: New file.
17841 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17842 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17843 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17844 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17845 * modules/wcsrtombs: New file.
17846 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17849 2008-12-21 Bruno Haible <bruno@clisp.org>
17851 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17852 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17853 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17854 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17856 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17857 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17858 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17859 m4/locale-zh.m4, m4/codeset.m4.
17860 * doc/posix-functions/wcrtomb.texi: Document the bug.
17862 2008-12-21 Bruno Haible <bruno@clisp.org>
17864 Work around a btowc() bug on IRIX 6.5.
17865 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17866 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17867 REPLACE_WTOBC if not.
17868 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17869 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17870 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17872 2008-12-21 Bruno Haible <bruno@clisp.org>
17874 * modules/wcrtomb-tests: New file.
17875 * tests/test-wcrtomb.sh: New file.
17876 * tests/test-wcrtomb.c: New file.
17878 New module 'wcrtomb'.
17879 * lib/wchar.in.h (wcrtomb): New declaration.
17880 * lib/wcrtomb.c: New file.
17881 * m4/wcrtomb.m4: New file.
17882 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17884 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17886 * modules/wcrtomb: New file.
17887 * doc/posix-functions/wcrtomb.texi: Mention the new module.
17889 2008-12-21 Bruno Haible <bruno@clisp.org>
17891 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17892 * modules/mbsrtowcs (Files): Likewise.
17893 * modules/wctob (Files): Likewise.
17894 * modules/c-strcase-tests (Files): Likewise.
17895 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17896 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17897 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17898 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17899 * modules/vasnprintf-posix-tests (Files): Likewise.
17901 2008-12-21 William Pursell <bill.pursell@gmail.com>
17903 gitlog-to-changelog: pass all command-line arguments to git-log
17904 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17905 it is sometimes convenient to filter the commits in various ways.
17906 gitlog-to-changelog only allows --since to specify a start date,
17907 but git-log itself supports many other filtering mechanisms.
17908 At the moment, I want to filter by branch name. Rather than
17909 adding a --branch option to gitlog-to-changelog, it seems more
17910 flexible to simply pass all options directly to git-log and let
17911 git do the work. Notice that this effectively makes --since a
17912 redundant option for gitlog-to-changelog, but removing it would
17913 require current usage to change since calls would then require
17914 an additional '--'.
17916 2008-12-21 Bruno Haible <bruno@clisp.org>
17918 * modules/mbsnrtowcs-tests: New file.
17919 * tests/test-mbsnrtowcs1.sh: New file.
17920 * tests/test-mbsnrtowcs2.sh: New file.
17921 * tests/test-mbsnrtowcs3.sh: New file.
17922 * tests/test-mbsnrtowcs4.sh: New file.
17923 * tests/test-mbsnrtowcs.c: New file.
17925 New module 'mbsnrtowcs'.
17926 * lib/wchar.in.h (mbsnrtowcs): New declaration.
17927 * lib/mbsnrtowcs.c: New file.
17928 * lib/mbsrtowcs-state.c: New file.
17929 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17930 (internal_state): Remove variable.
17931 * m4/mbsnrtowcs.m4: New file.
17932 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17934 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17935 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17936 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17937 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17938 * modules/mbsnrtowcs: New file.
17939 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17940 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17941 portability problem.
17943 2008-12-21 Bruno Haible <bruno@clisp.org>
17945 Work around mbsrtowcs bug.
17946 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17947 (gl_FUNC_MBSRTOWCS): Invoke it.
17948 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17950 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17952 2008-12-21 Bruno Haible <bruno@clisp.org>
17954 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17956 2008-12-21 Bruno Haible <bruno@clisp.org>
17958 Update doc for AIX.
17959 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17960 16-bit wchar_t type.
17961 * doc/posix-functions/btowc.texi: Likewise.
17962 * doc/posix-functions/fgetwc.texi: Likewise.
17963 * doc/posix-functions/fgetws.texi: Likewise.
17964 * doc/posix-functions/fputwc.texi: Likewise.
17965 * doc/posix-functions/fputws.texi: Likewise.
17966 * doc/posix-functions/fwide.texi: Likewise.
17967 * doc/posix-functions/fwprintf.texi: Likewise.
17968 * doc/posix-functions/fwscanf.texi: Likewise.
17969 * doc/posix-functions/getwchar.texi: Likewise.
17970 * doc/posix-functions/getwc.texi: Likewise.
17971 * doc/posix-functions/iswalnum.texi: Likewise.
17972 * doc/posix-functions/iswalpha.texi: Likewise.
17973 * doc/posix-functions/iswblank.texi: Likewise.
17974 * doc/posix-functions/iswcntrl.texi: Likewise.
17975 * doc/posix-functions/iswctype.texi: Likewise.
17976 * doc/posix-functions/iswdigit.texi: Likewise.
17977 * doc/posix-functions/iswgraph.texi: Likewise.
17978 * doc/posix-functions/iswlower.texi: Likewise.
17979 * doc/posix-functions/iswprint.texi: Likewise.
17980 * doc/posix-functions/iswpunct.texi: Likewise.
17981 * doc/posix-functions/iswspace.texi: Likewise.
17982 * doc/posix-functions/iswupper.texi: Likewise.
17983 * doc/posix-functions/iswxdigit.texi: Likewise.
17984 * doc/posix-functions/mbrtowc.texi: Likewise.
17985 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17986 * doc/posix-functions/mbstowcs.texi: Likewise.
17987 * doc/posix-functions/mbtowc.texi: Likewise.
17988 * doc/posix-functions/putwchar.texi: Likewise.
17989 * doc/posix-functions/putwc.texi: Likewise.
17990 * doc/posix-functions/swprintf.texi: Likewise.
17991 * doc/posix-functions/tolower.texi: Likewise.
17992 * doc/posix-functions/toupper.texi: Likewise.
17993 * doc/posix-functions/towctrans.texi: Likewise.
17994 * doc/posix-functions/ungetwc.texi: Likewise.
17995 * doc/posix-functions/vswprintf.texi: Likewise.
17996 * doc/posix-functions/wcrtomb.texi: Likewise.
17997 * doc/posix-functions/wcscat.texi: Likewise.
17998 * doc/posix-functions/wcschr.texi: Likewise.
17999 * doc/posix-functions/wcscmp.texi: Likewise.
18000 * doc/posix-functions/wcscoll.texi: Likewise.
18001 * doc/posix-functions/wcscpy.texi: Likewise.
18002 * doc/posix-functions/wcscspn.texi: Likewise.
18003 * doc/posix-functions/wcsftime.texi: Likewise.
18004 * doc/posix-functions/wcslen.texi: Likewise.
18005 * doc/posix-functions/wcsncat.texi: Likewise.
18006 * doc/posix-functions/wcsncmp.texi: Likewise.
18007 * doc/posix-functions/wcsncpy.texi: Likewise.
18008 * doc/posix-functions/wcspbrk.texi: Likewise.
18009 * doc/posix-functions/wcsrchr.texi: Likewise.
18010 * doc/posix-functions/wcsrtombs.texi: Likewise.
18011 * doc/posix-functions/wcsspn.texi: Likewise.
18012 * doc/posix-functions/wcsstr.texi: Likewise.
18013 * doc/posix-functions/wcstod.texi: Likewise.
18014 * doc/posix-functions/wcstof.texi: Likewise.
18015 * doc/posix-functions/wcstoimax.texi: Likewise.
18016 * doc/posix-functions/wcstok.texi: Likewise.
18017 * doc/posix-functions/wcstold.texi: Likewise.
18018 * doc/posix-functions/wcstoll.texi: Likewise.
18019 * doc/posix-functions/wcstol.texi: Likewise.
18020 * doc/posix-functions/wcstombs.texi: Likewise.
18021 * doc/posix-functions/wcstoull.texi: Likewise.
18022 * doc/posix-functions/wcstoul.texi: Likewise.
18023 * doc/posix-functions/wcstoumax.texi: Likewise.
18024 * doc/posix-functions/wcswidth.texi: Likewise.
18025 * doc/posix-functions/wcsxfrm.texi: Likewise.
18026 * doc/posix-functions/wctob.texi: Likewise.
18027 * doc/posix-functions/wctomb.texi: Likewise.
18028 * doc/posix-functions/wctrans.texi: Likewise.
18029 * doc/posix-functions/wctype.texi: Likewise.
18030 * doc/posix-functions/wcwidth.texi: Likewise.
18031 * doc/posix-functions/wmemchr.texi: Likewise.
18032 * doc/posix-functions/wmemcmp.texi: Likewise.
18033 * doc/posix-functions/wmemcpy.texi: Likewise.
18034 * doc/posix-functions/wmemmove.texi: Likewise.
18035 * doc/posix-functions/wmemset.texi: Likewise.
18036 * doc/posix-functions/wprintf.texi: Likewise.
18037 * doc/posix-functions/wscanf.texi: Likewise.
18039 2008-12-21 Bruno Haible <bruno@clisp.org>
18041 Update doc for HP-UX 11.11.
18042 * doc/posix-functions/btowc.texi: Clarify that the function is missing
18043 in HP-UX version 11.00, not in all versions of HP-UX 11.
18044 * doc/posix-functions/fwide.texi: Likewise.
18045 * doc/posix-functions/fwprintf.texi: Likewise.
18046 * doc/posix-functions/fwscanf.texi: Likewise.
18047 * doc/posix-functions/inet_ntop.texi: Likewise.
18048 * doc/posix-functions/inet_pton.texi: Likewise.
18049 * doc/posix-functions/mbrlen.texi: Likewise.
18050 * doc/posix-functions/mbrtowc.texi: Likewise.
18051 * doc/posix-functions/mbsinit.texi: Likewise.
18052 * doc/posix-functions/mbsrtowcs.texi: Likewise.
18053 * doc/posix-functions/swprintf.texi: Likewise.
18054 * doc/posix-functions/swscanf.texi: Likewise.
18055 * doc/posix-functions/towctrans.texi: Likewise.
18056 * doc/posix-functions/vfwprintf.texi: Likewise.
18057 * doc/posix-functions/vswprintf.texi: Likewise.
18058 * doc/posix-functions/vwprintf.texi: Likewise.
18059 * doc/posix-functions/wcrtomb.texi: Likewise.
18060 * doc/posix-functions/wcsrtombs.texi: Likewise.
18061 * doc/posix-functions/wcsstr.texi: Likewise.
18062 * doc/posix-functions/wctob.texi: Likewise.
18063 * doc/posix-functions/wctrans.texi: Likewise.
18064 * doc/posix-functions/wmemchr.texi: Likewise.
18065 * doc/posix-functions/wmemcmp.texi: Likewise.
18066 * doc/posix-functions/wmemcpy.texi: Likewise.
18067 * doc/posix-functions/wmemmove.texi: Likewise.
18068 * doc/posix-functions/wmemset.texi: Likewise.
18069 * doc/posix-functions/wprintf.texi: Likewise.
18070 * doc/posix-functions/wscanf.texi: Likewise.
18072 2008-12-21 Bruno Haible <bruno@clisp.org>
18074 Work around a portability problem.
18075 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18076 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18078 2008-12-20 Bruno Haible <bruno@clisp.org>
18080 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18081 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18082 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18083 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18084 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18086 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18087 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18089 (GNULIB_defined_mbstate_t): New macro.
18090 (mbsinit): Redefine if REPLACE_MBSINIT is set.
18091 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18092 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18093 reuses the system's mbrtowc function but works around the bugs.
18094 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18095 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18097 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18098 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18099 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18100 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18101 REPLACE_MBSINIT if mbsinit needs to be overridden.
18102 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18103 REPLACE_MBSINIT, REPLACE_MBRTOWC.
18104 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18105 REPLACE_MBSINIT, REPLACE_MBRTOWC.
18106 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18108 (Depends): Add mbsinit.
18109 * modules/mbsinit (Depends): Add mbrtowc.
18110 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18112 2008-12-20 Bruno Haible <bruno@clisp.org>
18114 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18115 so that there are no conversion errors on AIX.
18116 * tests/test-mbsrtowcs.c (main): LIkewise.
18118 2008-12-20 Bruno Haible <bruno@clisp.org>
18120 Work around wctob bug on Solaris <= 9.
18121 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18122 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18123 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18124 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18125 * modules/wctob (Files): Add m4/locale-fr.m4.
18126 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18128 2008-12-20 Bruno Haible <bruno@clisp.org>
18130 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18132 * tests/test-select-in.sh: Likewise.
18133 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18135 2008-12-20 Bruno Haible <bruno@clisp.org>
18137 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18138 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18141 2008-12-20 Bruno Haible <bruno@clisp.org>
18143 Ensure mbstate_t is defined on HP-UX 11.11.
18144 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18145 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18146 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18147 AC_USE_SYSTEM_EXTENSIONS.
18148 * modules/fnmatch (Depends-on): Add extensions.
18149 * modules/mbrlen (Depends-on): Likewise.
18150 * modules/mbrtowc (Depends-on): Likewise.
18151 * modules/mbsinit (Depends-on): Likewise.
18152 * modules/mbsrtowcs (Depends-on): Likewise.
18153 * modules/mbswidth (Depends-on): Likewise.
18154 * modules/quotearg (Depends-on): Likewise.
18155 * modules/strftime (Depends-on): Likewise.
18157 2008-12-20 Bruno Haible <bruno@clisp.org>
18159 Ensure wctob is declared on IRIX 6.5.
18160 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18161 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18162 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18163 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18165 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18167 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18169 2008-12-19 Bruno Haible <bruno@clisp.org>
18171 * modules/mbsrtowcs-tests: New file.
18172 * tests/test-mbsrtowcs1.sh: New file.
18173 * tests/test-mbsrtowcs2.sh: New file.
18174 * tests/test-mbsrtowcs3.sh: New file.
18175 * tests/test-mbsrtowcs4.sh: New file.
18176 * tests/test-mbsrtowcs.c: New file.
18178 New module 'mbsrtowcs'.
18179 * lib/wchar.in.h (mbsrtowcs): New declaration.
18180 * lib/mbsrtowcs.c: New file.
18181 * m4/mbsrtowcs.m4: New file.
18182 * modules/mbsrtowcs: New file.
18183 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18185 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18187 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18189 2008-12-19 Bruno Haible <bruno@clisp.org>
18191 New module 'mbrlen'.
18192 * lib/wchar.in.h (mbrlen): New declaration.
18193 * lib/mbrlen.c: New file.
18194 * m4/mbrlen.m4: New file.
18195 * modules/mbrlen: New file.
18196 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18198 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18200 * doc/posix-functions/mbrlen.texi: Document the new module.
18202 2008-12-19 Bruno Haible <bruno@clisp.org>
18204 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18205 * modules/mbrtowc (Depends-on): Add verify.
18206 Suggested by Paul Eggert.
18208 2008-12-18 Bruno Haible <bruno@clisp.org>
18210 * modules/mbsinit-tests: New file.
18211 * tests/test-mbsinit.sh: New file.
18212 * tests/test-mbsinit.c: New file.
18214 2008-12-18 Bruno Haible <bruno@clisp.org>
18216 * modules/mbrtowc-tests: New file.
18217 * tests/test-mbrtowc1.sh: New file.
18218 * tests/test-mbrtowc2.sh: New file.
18219 * tests/test-mbrtowc3.sh: New file.
18220 * tests/test-mbrtowc4.sh: New file.
18221 * tests/test-mbrtowc.c: New file.
18223 New module 'mbrtowc'.
18224 * lib/wchar.in.h (mbstate_t): Override when the system does not have
18225 mbsinit and mbrtowc.
18226 (mbrtowc): New declaration.
18227 * lib/mbrtowc.c: New file.
18228 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18229 * modules/mbrtowc: New file.
18230 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18232 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18234 * doc/posix-functions/mbrtowc.texi: Document the new module.
18236 2008-12-18 Bruno Haible <bruno@clisp.org>
18238 New module 'wctob'.
18239 * lib/wchar.in.h (wctob): New declaration.
18240 * lib/wctob.c: New file.
18241 * m4/wctob.m4: New file.
18242 * modules/wctob: New file.
18243 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18245 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18246 * doc/posix-functions/wctob.texi: Document the new module.
18248 2008-12-18 Bruno Haible <bruno@clisp.org>
18250 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18251 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18253 2008-12-18 Simon Josefsson <simon@josefsson.org>
18255 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
18256 G. Christensen" <tgc@jupiterrise.com>.
18258 * lib/flock.c: Need to include errno.h. Reported by "Tom
18259 G. Christensen" <tgc@jupiterrise.com>.
18261 * lib/flock.c: Need to include string.h. Reported by "Tom
18262 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18265 2008-12-18 Bruno Haible <bruno@clisp.org>
18267 * m4/locale-ja.m4: New file, from GNU gettext.
18269 2008-12-17 Bruno Haible <bruno@clisp.org>
18271 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18272 Suggested by Eric Blake.
18274 2008-12-17 Bruno Haible <bruno@clisp.org>
18276 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18278 2008-12-17 Bruno Haible <bruno@clisp.org>
18280 * lib/mbsinit.c: Include verify.h. Verify an assumption.
18281 * modules/mbsinit (Depends-on): Add verify.
18282 Suggested by Paul Eggert.
18284 2008-12-17 Bruno Haible <bruno@clisp.org>
18286 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18287 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18289 * m4/mbiter.m4 (gl_MBITER): LIkewise.
18290 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18291 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18292 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18293 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18294 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18295 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18296 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18297 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18298 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18299 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18300 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18301 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18302 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18303 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18304 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18305 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18306 * modules/trim (configure.ac): Likewise.
18308 2008-12-17 Bruno Haible <bruno@clisp.org>
18310 * modules/btowc-tests: New file.
18311 * tests/test-btowc1.sh: New file.
18312 * tests/test-btowc2.sh: New file.
18313 * tests/test-btowc.c: New file.
18315 New module 'btowc'.
18316 * lib/wchar.in.h (btowc): New declaration.
18317 * lib/btowc.c: New file.
18318 * m4/btowc.m4: New file.
18319 * modules/btowc: New file.
18320 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18322 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18323 * doc/posix-functions/btowc.texi: Document the new module.
18325 2008-12-17 Bruno Haible <bruno@clisp.org>
18327 New module 'mbsinit'.
18328 * lib/wchar.in.h (mbsinit): New declaration.
18329 * lib/mbsinit.c: New file.
18330 * m4/mbsinit.m4: New file.
18331 * modules/mbsinit: New file.
18332 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18334 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18336 * doc/posix-functions/mbsinit.texi: Document the new module.
18338 2008-12-16 Bruno Haible <bruno@clisp.org>
18340 * lib/unistd.in.h: Add comment.
18341 * tests/test-environ.c: Don't include <stdlib.h>.
18343 2008-12-16 Bruno Haible <bruno@clisp.org>
18345 * lib/parse-duration.h (parse_duration): Document return value
18347 * lib/parse-duration.c: Include specification header first. Add
18350 (parse_year_month_day, parse_hour_minute_second): Move side effects
18351 outside of strchr call.
18352 (parse_non_iso8601): Move side effects outside of isspace call.
18353 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18356 2008-12-16 Bruno Haible <bruno@clisp.org>
18358 * tests/test-parse-duration.sh: Produce no output when the test
18361 2008-12-16 Bruno Haible <bruno@clisp.org>
18363 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18366 2008-12-15 Bruno Haible <bruno@clisp.org>
18368 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18369 * doc/glibc-functions/flistxattr.texi: Likewise.
18370 * doc/glibc-functions/fopencookie.texi: Likewise.
18371 * doc/glibc-functions/fremovexattr.texi: Likewise.
18372 * doc/glibc-functions/fsetxattr.texi: Likewise.
18373 * doc/glibc-functions/getxattr.texi: Likewise.
18374 * doc/glibc-functions/lgetxattr.texi: Likewise.
18375 * doc/glibc-functions/listxattr.texi: Likewise.
18376 * doc/glibc-functions/llistxattr.texi: Likewise.
18377 * doc/glibc-functions/lremovexattr.texi: Likewise.
18378 * doc/glibc-functions/lsetxattr.texi: Likewise.
18379 * doc/glibc-functions/removexattr.texi: Likewise.
18380 * doc/glibc-functions/setxattr.texi: Likewise.
18381 * doc/posix-functions/open_memstream.texi: Likewise.
18383 2008-12-15 Eric Blake <ebb9@byu.net>
18385 Update doc for cygwin 1.7.
18386 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18388 * doc/posix-functions/fchmodat.texi: Likewise.
18389 * doc/posix-functions/fchownat.texi: Likewise.
18390 * doc/posix-functions/fdopendir.texi: Likewise.
18391 * doc/posix-functions/fmemopen.texi: Likewise.
18392 * doc/posix-functions/freeaddrinfo.texi: Likewise.
18393 * doc/posix-functions/fstatat.texi: Likewise.
18394 * doc/posix-functions/futimens.texi: Likewise.
18395 * doc/posix-functions/gai_strerror.texi: Likewise.
18396 * doc/posix-functions/getaddrinfo.texi: Likewise.
18397 * doc/posix-functions/getnameinfo.texi: Likewise.
18398 * doc/posix-functions/if_freenameindex.texi: Likewise.
18399 * doc/posix-functions/if_indextoname.texi: Likewise.
18400 * doc/posix-functions/if_nameindex.texi: Likewise.
18401 * doc/posix-functions/if_nametoindex.texi: Likewise.
18402 * doc/posix-functions/insque.texi: Likewise.
18403 * doc/posix-functions/linkat.texi: Likewise.
18404 * doc/posix-functions/llrint.texi: Likewise.
18405 * doc/posix-functions/llrintf.texi: Likewise.
18406 * doc/posix-functions/llrintl.texi: Likewise.
18407 * doc/posix-functions/lockf.texi: Likewise.
18408 * doc/posix-functions/lrintl.texi: Likewise.
18409 * doc/posix-functions/mkdirat.texi: Likewise.
18410 * doc/posix-functions/mkfifoat.texi: Likewise.
18411 * doc/posix-functions/mknodat.texi: Likewise.
18412 * doc/posix-functions/mq_close.texi: Likewise.
18413 * doc/posix-functions/mq_getattr.texi: Likewise.
18414 * doc/posix-functions/mq_notify.texi: Likewise.
18415 * doc/posix-functions/mq_open.texi: Likewise.
18416 * doc/posix-functions/mq_receive.texi: Likewise.
18417 * doc/posix-functions/mq_send.texi: Likewise.
18418 * doc/posix-functions/mq_setattr.texi: Likewise.
18419 * doc/posix-functions/mq_timedreceive.texi: Likewise.
18420 * doc/posix-functions/mq_timedsend.texi: Likewise.
18421 * doc/posix-functions/mq_unlink.texi: Likewise.
18422 * doc/posix-functions/open_memstream.texi: Likewise.
18423 * doc/posix-functions/openat.texi: Likewise.
18424 * doc/posix-functions/posix_fadvise.texi: Likewise.
18425 * doc/posix-functions/posix_fallocate.texi: Likewise.
18426 * doc/posix-functions/posix_madvise.texi: Likewise.
18427 * doc/posix-functions/posix_memalign.texi: Likewise.
18428 * doc/posix-functions/posix_openpt.texi: Likewise.
18429 * doc/posix-functions/readlinkat.texi: Likewise.
18430 * doc/posix-functions/remque.texi: Likewise.
18431 * doc/posix-functions/renameat.texi: Likewise.
18432 * doc/posix-functions/rintl.texi: Likewise.
18433 * doc/posix-functions/sem_unlink.texi: Likewise.
18434 * doc/posix-functions/shm_open.texi: Likewise.
18435 * doc/posix-functions/shm_unlink.texi: Likewise.
18436 * doc/posix-functions/signgam.texi: Likewise.
18437 * doc/posix-functions/sigset.texi: Likewise.
18438 * doc/posix-functions/stpcpy.texi: Likewise.
18439 * doc/posix-functions/stpncpy.texi: Likewise.
18440 * doc/posix-functions/strerror.texi: Likewise.
18441 * doc/posix-functions/strtod.texi: Likewise.
18442 * doc/posix-functions/symlinkat.texi: Likewise.
18443 * doc/posix-functions/unlinkat.texi: Likewise.
18444 * doc/posix-functions/utimensat.texi: Likewise.
18445 * doc/glibc-functions/bindresvport.texi: Likewise.
18446 * doc/glibc-functions/dn_expand.texi: Likewise.
18447 * doc/glibc-functions/exp10.texi: Likewise.
18448 * doc/glibc-functions/exp10f.texi: Likewise.
18449 * doc/glibc-functions/fgetxattr.texi: Likewise.
18450 * doc/glibc-functions/flistxattr.texi: Likewise.
18451 * doc/glibc-functions/fopencookie.texi: Likewise.
18452 * doc/glibc-functions/freeifaddrs.texi: Likewise.
18453 * doc/glibc-functions/fremovexattr.texi: Likewise.
18454 * doc/glibc-functions/fsetxattr.texi: Likewise.
18455 * doc/glibc-functions/getifaddrs.texi: Likewise.
18456 * doc/glibc-functions/getxattr.texi: Likewise.
18457 * doc/glibc-functions/lgetxattr.texi: Likewise.
18458 * doc/glibc-functions/listxattr.texi: Likewise.
18459 * doc/glibc-functions/llistxattr.texi: Likewise.
18460 * doc/glibc-functions/lremovexattr.texi: Likewise.
18461 * doc/glibc-functions/lsetxattr.texi: Likewise.
18462 * doc/glibc-functions/pow10.texi: Likewise.
18463 * doc/glibc-functions/pow10f.texi: Likewise.
18464 * doc/glibc-functions/rcmd_af.texi: Likewise.
18465 * doc/glibc-functions/removexattr.texi: Likewise.
18466 * doc/glibc-functions/res_init.texi: Likewise.
18467 * doc/glibc-functions/res_mkquery.texi: Likewise.
18468 * doc/glibc-functions/res_query.texi: Likewise.
18469 * doc/glibc-functions/res_querydomain.texi: Likewise.
18470 * doc/glibc-functions/res_send.texi: Likewise.
18471 * doc/glibc-functions/rresvport_af.texi: Likewise.
18472 * doc/glibc-functions/setxattr.texi: Likewise.
18473 * doc/glibc-functions/strcasestr.texi: Likewise.
18475 2008-12-15 Bruno Haible <bruno@clisp.org>
18477 Fix compilation error on OSF/1 4.0.
18478 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18479 <sys/time.h>, simply delegate to the system header.
18480 Reported by Daniel Richard G. <oss@teragram.com>.
18482 2008-12-15 Bruno Haible <bruno@clisp.org>
18484 * doc/posix-functions/openat.texi: Mention the 'openat' module.
18485 * doc/posix-functions/fchmodat.texi: Likewise.
18486 * doc/posix-functions/fchownat.texi: Likewise.
18487 * doc/posix-functions/fdopendir.texi: Likewise.
18488 * doc/posix-functions/fstatat.texi: Likewise.
18489 * doc/posix-functions/mkdirat.texi: Likewise.
18490 * doc/posix-functions/unlinkat.texi: Likewise.
18492 2008-12-14 Bruno Haible <bruno@clisp.org>
18494 Update doc for POSIX:2008.
18495 * doc/posix-functions/faccessat.texi: New file.
18496 * doc/posix-functions/fchmodat.texi: New file.
18497 * doc/posix-functions/fchownat.texi: New file.
18498 * doc/posix-functions/fdopendir.texi: New file.
18499 * doc/posix-functions/fstatat.texi: New file.
18500 * doc/posix-functions/futimens.texi: New file.
18501 * doc/posix-functions/linkat.texi: New file.
18502 * doc/posix-functions/mkdirat.texi: New file.
18503 * doc/posix-functions/mkfifoat.texi: New file.
18504 * doc/posix-functions/mknodat.texi: New file.
18505 * doc/posix-functions/open_wmemstream.texi: New file.
18506 * doc/posix-functions/openat.texi: New file.
18507 * doc/posix-functions/psiginfo.texi: New file.
18508 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18509 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18510 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18511 * doc/posix-functions/readlinkat.texi: New file.
18512 * doc/posix-functions/renameat.texi: New file.
18513 * doc/posix-functions/strerror_l.texi: New file.
18514 * doc/posix-functions/symlinkat.texi: New file.
18515 * doc/posix-functions/unlinkat.texi: New file.
18516 * doc/posix-functions/utimensat.texi: New file.
18517 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18519 2008-12-14 Bruno Haible <bruno@clisp.org>
18521 Update doc for POSIX:2008.
18522 * doc/posix-functions/alphasort.texi: Renamed from
18523 doc/glibc-functions/alphasort.texi.
18524 * doc/posix-functions/dirfd.texi: Renamed from
18525 doc/glibc-functions/dirfd.texi.
18526 * doc/posix-functions/dprintf.texi: Renamed from
18527 doc/glibc-functions/dprintf.texi.
18528 * doc/posix-functions/duplocale.texi: Renamed from
18529 doc/glibc-functions/duplocale.texi.
18530 * doc/posix-functions/fexecve.texi: Renamed from
18531 doc/glibc-functions/fexecve.texi.
18532 * doc/posix-functions/fmemopen.texi: Renamed from
18533 doc/glibc-functions/fmemopen.texi.
18534 * doc/posix-functions/freelocale.texi: Renamed from
18535 doc/glibc-functions/freelocale.texi.
18536 * doc/posix-functions/getdate_err.texi: Renamed from
18537 doc/glibc-functions/getdate_err.texi.
18538 * doc/posix-functions/isalnum_l.texi: Renamed from
18539 doc/glibc-functions/isalnum_l.texi.
18540 * doc/posix-functions/isalpha_l.texi: Renamed from
18541 doc/glibc-functions/isalpha_l.texi.
18542 * doc/posix-functions/isblank_l.texi: Renamed from
18543 doc/glibc-functions/isblank_l.texi.
18544 * doc/posix-functions/iscntrl_l.texi: Renamed from
18545 doc/glibc-functions/iscntrl_l.texi.
18546 * doc/posix-functions/isdigit_l.texi: Renamed from
18547 doc/glibc-functions/isdigit_l.texi.
18548 * doc/posix-functions/isgraph_l.texi: Renamed from
18549 doc/glibc-functions/isgraph_l.texi.
18550 * doc/posix-functions/islower_l.texi: Renamed from
18551 doc/glibc-functions/islower_l.texi.
18552 * doc/posix-functions/isprint_l.texi: Renamed from
18553 doc/glibc-functions/isprint_l.texi.
18554 * doc/posix-functions/ispunct_l.texi: Renamed from
18555 doc/glibc-functions/ispunct_l.texi.
18556 * doc/posix-functions/isspace_l.texi: Renamed from
18557 doc/glibc-functions/isspace_l.texi.
18558 * doc/posix-functions/isupper_l.texi: Renamed from
18559 doc/glibc-functions/isupper_l.texi.
18560 * doc/posix-functions/iswalnum_l.texi: Renamed from
18561 doc/glibc-functions/iswalnum_l.texi.
18562 * doc/posix-functions/iswalpha_l.texi: Renamed from
18563 doc/glibc-functions/iswalpha_l.texi.
18564 * doc/posix-functions/iswblank_l.texi: Renamed from
18565 doc/glibc-functions/iswblank_l.texi.
18566 * doc/posix-functions/iswcntrl_l.texi: Renamed from
18567 doc/glibc-functions/iswcntrl_l.texi.
18568 * doc/posix-functions/iswctype_l.texi: Renamed from
18569 doc/glibc-functions/iswctype_l.texi.
18570 * doc/posix-functions/iswdigit_l.texi: Renamed from
18571 doc/glibc-functions/iswdigit_l.texi.
18572 * doc/posix-functions/iswgraph_l.texi: Renamed from
18573 doc/glibc-functions/iswgraph_l.texi.
18574 * doc/posix-functions/iswlower_l.texi: Renamed from
18575 doc/glibc-functions/iswlower_l.texi.
18576 * doc/posix-functions/iswprint_l.texi: Renamed from
18577 doc/glibc-functions/iswprint_l.texi.
18578 * doc/posix-functions/iswpunct_l.texi: Renamed from
18579 doc/glibc-functions/iswpunct_l.texi.
18580 * doc/posix-functions/iswspace_l.texi: Renamed from
18581 doc/glibc-functions/iswspace_l.texi.
18582 * doc/posix-functions/iswupper_l.texi: Renamed from
18583 doc/glibc-functions/iswupper_l.texi.
18584 * doc/posix-functions/iswxdigit_l.texi: Renamed from
18585 doc/glibc-functions/iswxdigit_l.texi.
18586 * doc/posix-functions/isxdigit_l.texi: Renamed from
18587 doc/glibc-functions/isxdigit_l.texi.
18588 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18589 doc/glibc-functions/mbsnrtowcs.texi.
18590 * doc/posix-functions/mkdtemp.texi: Renamed from
18591 doc/glibc-functions/mkdtemp.texi.
18592 * doc/posix-functions/newlocale.texi: Renamed from
18593 doc/glibc-functions/newlocale.texi.
18594 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18595 doc/glibc-functions/nl_langinfo_l.texi.
18596 * doc/posix-functions/open_memstream.texi: Renamed from
18597 doc/glibc-functions/open_memstream.texi.
18598 * doc/posix-functions/opterr.texi: Renamed from
18599 doc/glibc-functions/opterr.texi.
18600 * doc/posix-functions/optind.texi: Renamed from
18601 doc/glibc-functions/optind.texi.
18602 * doc/posix-functions/optopt.texi: Renamed from
18603 doc/glibc-functions/optopt.texi.
18604 * doc/posix-functions/psignal.texi: Renamed from
18605 doc/glibc-functions/psignal.texi.
18606 * doc/posix-functions/scandir.texi: Renamed from
18607 doc/glibc-functions/scandir.texi.
18608 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18609 doc/glibc-functions/sched_get_priority_min.texi.
18610 * doc/posix-functions/signgam.texi: Renamed from
18611 doc/glibc-functions/signgam.texi.
18612 * doc/posix-functions/stpcpy.texi: Renamed from
18613 doc/glibc-functions/stpcpy.texi.
18614 * doc/posix-functions/stpncpy.texi: Renamed from
18615 doc/glibc-functions/stpncpy.texi.
18616 * doc/posix-functions/strcasecmp_l.texi: Renamed from
18617 doc/glibc-functions/strcasecmp_l.texi.
18618 * doc/posix-functions/strcoll_l.texi: Renamed from
18619 doc/glibc-functions/strcoll_l.texi.
18620 * doc/posix-functions/strfmon_l.texi: Renamed from
18621 doc/glibc-functions/strfmon_l.texi.
18622 * doc/posix-functions/strftime_l.texi: Renamed from
18623 doc/glibc-functions/strftime_l.texi.
18624 * doc/posix-functions/strncasecmp_l.texi: Renamed from
18625 doc/glibc-functions/strncasecmp_l.texi.
18626 * doc/posix-functions/strndup.texi: Renamed from
18627 doc/glibc-functions/strndup.texi.
18628 * doc/posix-functions/strnlen.texi: Renamed from
18629 doc/glibc-functions/strnlen.texi.
18630 * doc/posix-functions/strsignal.texi: Renamed from
18631 doc/glibc-functions/strsignal.texi.
18632 * doc/posix-functions/strxfrm_l.texi: Renamed from
18633 doc/glibc-functions/strxfrm_l.texi.
18634 * doc/posix-functions/timer_gettime.texi: Renamed from
18635 doc/glibc-functions/timer_gettime.texi.
18636 * doc/posix-functions/tolower_l.texi: Renamed from
18637 doc/glibc-functions/tolower_l.texi.
18638 * doc/posix-functions/toupper_l.texi: Renamed from
18639 doc/glibc-functions/toupper_l.texi.
18640 * doc/posix-functions/towctrans_l.texi: Renamed from
18641 doc/glibc-functions/towctrans_l.texi.
18642 * doc/posix-functions/towlower_l.texi: Renamed from
18643 doc/glibc-functions/towlower_l.texi.
18644 * doc/posix-functions/towupper_l.texi: Renamed from
18645 doc/glibc-functions/towupper_l.texi.
18646 * doc/posix-functions/uselocale.texi: Renamed from
18647 doc/glibc-functions/uselocale.texi.
18648 * doc/posix-functions/vdprintf.texi: Renamed from
18649 doc/glibc-functions/vdprintf.texi.
18650 * doc/posix-functions/wcpcpy.texi:
18651 Renamed from doc/glibc-functions/wcpcpy.texi.
18652 * doc/posix-functions/wcpncpy.texi: Renamed from
18653 doc/glibc-functions/wcpncpy.texi.
18654 * doc/posix-functions/wcscasecmp.texi: Renamed from
18655 doc/glibc-functions/wcscasecmp.texi.
18656 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18657 doc/glibc-functions/wcscasecmp_l.texi.
18658 * doc/posix-functions/wcscoll_l.texi: Renamed from
18659 doc/glibc-functions/wcscoll_l.texi.
18660 * doc/posix-functions/wcsdup.texi: Renamed from
18661 doc/glibc-functions/wcsdup.texi.
18662 * doc/posix-functions/wcsncasecmp.texi: Renamed from
18663 doc/glibc-functions/wcsncasecmp.texi.
18664 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18665 doc/glibc-functions/wcsncasecmp_l.texi.
18666 * doc/posix-functions/wcsnlen.texi: Renamed from
18667 doc/glibc-functions/wcsnlen.texi.
18668 * doc/posix-functions/wcsnrtombs.texi: Renamed from
18669 doc/glibc-functions/wcsnrtombs.texi.
18670 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18671 doc/glibc-functions/wcsxfrm_l.texi.
18672 * doc/posix-functions/wctrans_l.texi: Renamed from
18673 doc/glibc-functions/wctrans_l.texi.
18674 * doc/posix-functions/wctype_l.texi: Renamed from
18675 doc/glibc-functions/wctype_l.texi.
18676 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18677 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18678 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18679 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18681 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18684 2008-12-14 Bruno Haible <bruno@clisp.org>
18686 Update doc for POSIX:2008.
18687 * doc/posix-functions/*.texi: Update URL of POSIX specification.
18689 2008-12-14 Bruno Haible <bruno@clisp.org>
18691 Update doc for POSIX:2008.
18692 * doc/pastposix-functions/bcmp.texi: Renamed from
18693 doc/posix-functions/bcmp.texi.
18694 * doc/pastposix-functions/bcopy.texi: Renamed from
18695 doc/posix-functions/bcopy.texi.
18696 * doc/pastposix-functions/bsd_signal.texi: Renamed from
18697 doc/posix-functions/bsd_signal.texi.
18698 * doc/pastposix-functions/bzero.texi: Renamed from
18699 doc/posix-functions/bzero.texi.
18700 * doc/pastposix-functions/ecvt.texi: Renamed from
18701 doc/posix-functions/ecvt.texi.
18702 * doc/pastposix-functions/fcvt.texi: Renamed from
18703 doc/posix-functions/fcvt.texi.
18704 * doc/pastposix-functions/ftime.texi: Renamed from
18705 doc/posix-functions/ftime.texi.
18706 * doc/pastposix-functions/gcvt.texi: Renamed from
18707 doc/posix-functions/gcvt.texi.
18708 * doc/pastposix-functions/getcontext.texi: Renamed from
18709 doc/posix-functions/getcontext.texi.
18710 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18711 doc/posix-functions/gethostbyaddr.texi.
18712 * doc/pastposix-functions/gethostbyname.texi: Renamed from
18713 doc/posix-functions/gethostbyname.texi.
18714 * doc/pastposix-functions/getwd.texi: Renamed from
18715 doc/posix-functions/getwd.texi.
18716 * doc/pastposix-functions/h_errno.texi: Renamed from
18717 doc/posix-functions/h_errno.texi.
18718 * doc/pastposix-functions/index.texi: Renamed from
18719 doc/posix-functions/index.texi.
18720 * doc/pastposix-functions/makecontext.texi: Renamed from
18721 doc/posix-functions/makecontext.texi.
18722 * doc/pastposix-functions/mktemp.texi: Renamed from
18723 doc/posix-functions/mktemp.texi.
18724 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18725 doc/posix-functions/pthread_attr_getstackaddr.texi.
18726 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18727 doc/posix-functions/pthread_attr_setstackaddr.texi.
18728 * doc/pastposix-functions/rindex.texi: Renamed from
18729 doc/posix-functions/rindex.texi.
18730 * doc/pastposix-functions/scalb.texi: Renamed from
18731 doc/posix-functions/scalb.texi.
18732 * doc/pastposix-functions/setcontext.texi: Renamed from
18733 doc/posix-functions/setcontext.texi.
18734 * doc/pastposix-functions/swapcontext.texi: Renamed from
18735 doc/posix-functions/swapcontext.texi.
18736 * doc/pastposix-functions/ualarm.texi: Renamed from
18737 doc/posix-functions/ualarm.texi.
18738 * doc/pastposix-functions/usleep.texi: Renamed from
18739 doc/posix-functions/usleep.texi.
18740 * doc/pastposix-functions/vfork.texi: Renamed from
18741 doc/posix-functions/vfork.texi.
18742 * doc/pastposix-functions/wcswcs.texi: Renamed from
18743 doc/posix-functions/wcswcs.texi.
18744 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18745 (Function Substitutes): Update.
18747 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18749 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18752 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18753 Bruno Haible <bruno@clisp.org>
18755 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18757 2008-12-13 Bruno Haible <bruno@clisp.org>
18759 * modules/strtoull (Depends-on): Remove unistd.
18761 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18763 * modules/strtoull (Depends-on): Add stdlib.
18765 2008-12-11 Simon Josefsson <simon@josefsson.org>
18767 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18769 2008-12-10 Jim Meyering <meyering@redhat.com>
18771 gl_ASSERT: don't say assertions are disabled when they're not
18772 * m4/assert.m4 (gl_ASSERT): Do not make configure report
18773 "checking whether to enable assertions... no", when they are in
18774 fact enabled. This is solely a bug in the output of configure.
18775 In spite of saying "no", NDEBUG was not defined in that case.
18776 Also, as noted by Eric Blake, leave assertions enabled upon
18777 --enable-assert=INVALID.
18779 2008-12-10 Bruno Haible <bruno@clisp.org>
18781 Change MODULES.html to refer to POSIX:2008 where possible.
18782 * MODULES.html.sh (POSIX2008_URL): New variable.
18783 (posix_headers): Remove sys/timeb, ucontext.
18784 (posix2001_headers): New variable.
18785 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18786 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18787 index, makecontext, mktemp, pthread_attr_getstackaddr,
18788 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18789 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18790 (posix2001_functions): New variable.
18791 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18794 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18796 add missing include to parse-duration.c
18797 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18798 * modules/parse-duration (Depends-on): Add xalloc.
18800 fix sed script reading maint.mk
18801 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18802 (syntax-check-rules): Use it.
18804 2008-12-09 Bruno Haible <bruno@clisp.org>
18806 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18807 MacOS X 10.4/PowerPC.
18808 Reported by Simon Josefsson.
18810 2008-12-08 Jim Meyering <meyering@redhat.com>
18812 work around mingw's lack of some S_IF definitions
18813 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18814 Reported by Simon Josefsson.
18816 2008-12-08 Bruno Haible <bruno@clisp.org>
18818 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18819 applied to variables. Needed on MacOS X 10.4/PowerPC.
18820 Reported by Simon Josefsson.
18822 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
18823 and Eric Blake <ebb9@byu.net>
18825 assert: honor --enable-assert
18826 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18827 order to honor --enable-assert, rather than treating it as a
18828 synonym for --disable-assert.
18830 2008-12-08 Jim Meyering <meyering@redhat.com>
18832 * lib/posixtm.c: Remove now-useless declaration of mktime.
18834 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18836 2008-12-07 Bruno Haible <bruno@clisp.org>
18838 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18839 test_once): Mark functions as static.
18840 * tests/test-tls.c (test_tls): Likewise.
18842 2008-12-07 Bruno Haible <bruno@clisp.org>
18844 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18845 iconv_register_autodetect.
18847 2008-12-07 Jim Meyering <meyering@redhat.com>
18849 posixtm.c: avoid a warning
18850 * lib/posixtm.c (posixtime): Don't initialize tm0.
18851 It's no longer needed to placate gcc4's -Wuninitialized,
18852 and the attempt to placate would elicit a new warning.
18854 unicodeio.c: mark unused parameters
18855 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18856 (fallback_failure_callback): Likewise.
18858 2008-12-07 Bruno Haible <bruno@clisp.org>
18860 * gnulib-tool (func_create_testdir): When building the tests
18861 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18862 Reported by Simon Josefsson.
18864 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18866 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18868 2008-12-06 Bruno Haible <bruno@clisp.org>
18870 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18871 Suggested by Eric Blake.
18873 2008-12-06 Bruno Haible <bruno@clisp.org>
18875 Fix a c-stack test failure on MacOS X.
18876 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18877 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18878 handler for SIGBUS as well.
18879 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18880 install a signal handler for SIGBUS as well.
18881 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18883 2008-12-06 Bruno Haible <bruno@clisp.org>
18885 Advocacy documentation.
18886 * doc/gnulib-intro.texi (Benefits): New section.
18887 * doc/gnulib.texi: Update.
18889 2008-12-06 Bruno Haible <bruno@clisp.org>
18891 Document the 'manywarnings' module.
18892 * doc/manywarnings.texi: New file.
18893 * doc/gnulib.texi: Include it.
18895 2008-12-05 Eric Blake <ebb9@byu.net>
18897 tests: silence some gcc warnings
18898 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18899 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18902 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18903 Bruno Haible <bruno@clisp.org>
18905 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18907 2008-11-29 Jim Meyering <meyering@redhat.com>
18909 unicodeio.c: mark unused parameters
18910 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18911 (fallback_failure_callback): Likewise.
18914 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
18915 (set_stat_type): Return S_IF*-valued "type" directly.
18916 Prompted by James Youngman's spotting a related bug.
18917 Confirmed by further testing through find.
18919 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18920 * lib/fts.c (D_TYPE): Define.
18921 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18922 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18923 (s_ifmt_shift_bits): New function.
18924 (set_stat_type): New function.
18925 (fts_build): When not calling fts_stat, call set_stat_type
18926 to propagate dirent.d_type info to fts_read caller.
18927 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18928 fts_statp->st_mode type information may be valid.
18930 2008-11-28 Simon Josefsson <simon@josefsson.org>
18932 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
18933 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
18936 2008-11-20 Bruno Haible <bruno@clisp.org>
18938 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18939 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18941 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18942 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18943 * modules/math (Makefile.am): Substitute
18944 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18945 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18947 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
18948 Bruno Haible <bruno@clisp.org>
18950 * lib/stdint.in.h: Define all type macros so that their expansion is
18951 a single typedef'ed token. Fixes a compilation failure in Boost which
18952 does "using ::int8_t;".
18954 2008-11-18 Simon Josefsson <simon@josefsson.org>
18956 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18957 gl_MANYWARN_ALL_GCC.
18958 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18959 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
18960 * modules/manywarnings: New file.
18961 * MODULES.html.sh: Mention manywarnings module.
18963 2008-11-18 Bruno Haible <bruno@clisp.org>
18965 * doc/gnulib-tool.texi (Unit tests): New section.
18967 2008-11-18 Simon Josefsson <simon@josefsson.org>
18969 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18970 paths like 'lib/po/foo.po'.
18972 2008-11-17 Simon Josefsson <simon@josefsson.org>
18974 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
18975 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18977 2008-11-17 Simon Josefsson <simon@josefsson.org>
18979 * m4/warnings.m4: Use CPPFLAGS to really check whether the
18982 2008-11-17 Simon Josefsson <simon@josefsson.org>
18984 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18986 2008-11-17 Bruce Korb <bkorb@gnu.org>
18988 * modules/parse-duration-tests: New file.
18989 * tests/test-parse-duration.sh: New file.
18990 * tests/test-parse-duration.c: New file.
18992 New module 'parse-duration'.
18993 * lib/parse-duration.h: New file.
18994 * lib/parse-duration.c: New file.
18995 * modules/parse-duration: New file.
18997 2008-11-17 Bruno Haible <bruno@clisp.org>
18999 * tests/test-select-out.sh: Comment out the first pipe test.
19000 Reported by Simon Josefsson.
19002 2008-11-17 Bruno Haible <bruno@clisp.org>
19004 * modules/getaddrinfo (Depends-on): Add servent, hostent.
19005 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19008 2008-11-17 Bruno Haible <bruno@clisp.org>
19010 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19011 -lnetwork and -lnet. Needed for Haiku and BeOS.
19013 2008-11-16 Bruno Haible <bruno@clisp.org>
19015 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19017 2008-11-16 Bruno Haible <bruno@clisp.org>
19019 Avoid test failure on Haiku.
19020 * tests/test-fsync.c: Include <errno.h>.
19021 (main): Don't require that fsync (0) fails.
19023 2008-11-15 Bruno Haible <bruno@clisp.org>
19025 New module 'hostent'.
19026 * modules/hostent: New file.
19027 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19029 2008-11-15 Bruno Haible <bruno@clisp.org>
19031 New module 'servent'.
19032 * modules/servent: New file.
19033 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19035 2008-11-15 Bruno Haible <bruno@clisp.org>
19037 Avoid generating same test program with two different rules.
19038 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19039 test-frexp to test-frexp-nolibm.
19040 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19041 test-frexpl to test-frexpl-nolibm.
19043 2008-11-15 Bruno Haible <bruno@clisp.org>
19045 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19048 2008-11-15 Bruno Haible <bruno@clisp.org>
19050 * lib/netdb.in.h: Activate the definitions also when the system's
19051 <netdb.h> has 'struct addrinfo'.
19052 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19053 EAI_OVERFLOW or AI_NUMERICSERV.
19054 * doc/posix-headers/netdb.texi: Document the problem.
19056 2008-11-15 Bruno Haible <bruno@clisp.org>
19058 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19060 Make the 'sched' module work on platforms where <sched.h> exists but
19061 is incomplete (such as Haiku).
19062 * lib/sched.in.h; Include the system's <sched.h> if it exists.
19063 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19064 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19065 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19066 HAVE_STRUCT_SCHED_PARAM.
19067 * modules/sched (Depends-on): Add include_next.
19068 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19069 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19070 * doc/posix-headers/sched.texi: Document the issue.
19072 2008-11-13 Jim Meyering <meyering@redhat.com>
19074 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19075 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19076 test would fail due to the difference in the Report bugs to ...
19077 line. The expected address is empty, "<>", while the actual
19078 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
19080 2008-11-12 Bruno Haible <bruno@clisp.org>
19082 lstat: don't compile lstat.c on systems lacking lstat
19083 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19084 which don't have lstat; this is handled by lib/sys_stat.in.h already.
19085 Reported by Daniel P. Berrange via Jim Meyering.
19087 2008-11-12 Jim Meyering <meyering@redhat.com>
19089 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19091 2008-11-12 Simon Josefsson <simon@josefsson.org>
19093 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19096 2008-11-12 Bruno Haible <bruno@clisp.org>
19098 * lib/unicodeio.c: Include unistr.h.
19099 (utf8_wctomb): Remove function.
19100 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19102 2008-11-12 Simon Josefsson <simon@josefsson.org>
19104 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19105 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19107 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19109 2008-11-12 Simon Josefsson <simon@josefsson.org>
19111 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19112 * doc/gnulib.texi: Add section for warnings.
19114 2008-11-11 Bruno Haible <bruno@clisp.org>
19116 * lib/sockets.h: Add a comment.
19118 2008-11-11 Karl Berry <karl@gnu.org>
19120 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19122 2008-11-11 Eric Blake <ebb9@byu.net>
19124 fdl.texi: avoid git symlinks
19125 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19127 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19129 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19131 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19133 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19134 (gl_WARN_ADD): Substitute $2 if literal.
19136 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19138 * m4/warning.m4: Remove.
19140 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19142 * m4/warnings.m4: Almost complete rewrite. :-)
19144 2008-11-10 Simon Josefsson <simon@josefsson.org>
19146 * modules/warnings: New module.
19147 * m4/warnings.m4: New file.
19148 * MODULES.html.sh: Mention warnings module.
19149 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19150 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19152 2008-11-10 Eric Blake <ebb9@byu.net>
19154 fdl.texi: make a symlink to the latest version
19155 * doc/standards.texi: Revert today's earlier change.
19156 * doc/fdl-1.2.texi: Rename from old fdl.texi...
19157 * doc/fdl.texi: ...and replace this with a symlink to the newer
19160 2008-11-10 Bruno Haible <bruno@clisp.org>
19162 * tests/test-select-fd.c (main): Accept the result file name as fourth
19164 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19165 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19167 2008-11-10 Bruno Haible <bruno@clisp.org>
19169 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19170 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19171 as autoconf-substituted macros.
19172 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19173 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19174 gl_NETDB_H_DEFAULTS. Set these variables.
19175 * modules/netdb (Makefile.am): Substitute these variables.
19177 2008-11-10 Eric Blake <ebb9@byu.net>
19179 standards.texi: include correct file for FDL 1.3
19180 * doc/standards.texi (GNU Free Documentation License): Change
19181 include file to pull in FDL 1.3, not 1.2.
19183 fdl.texi: revert accidental change to license
19184 * doc/fdl.texi: This is FDL 1.2, not 1.3.
19186 2008-11-10 Bruno Haible <bruno@clisp.org>
19188 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19189 cross-compiling guesses also when the native compile gives no result.
19191 2008-11-10 Bruno Haible <bruno@clisp.org>
19193 * lib/spawni.c (__spawni): Force variable into the stack.
19195 2008-11-10 Bruno Haible <bruno@clisp.org>
19197 Add support for Haiku.
19198 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19199 glibc and BeOS, but also on Haiku.
19200 * lib/fpurge.c (fpurge): Likewise.
19201 * lib/freadable.c (freadable): Likewise.
19202 * lib/freadahead.c (freadahead): Likewise.
19203 * lib/freading.c (freading): Likewise.
19204 * lib/freadptr.c (freadptr): Likewise.
19205 * lib/freadseek.c (freadptrinc): Likewise.
19206 * lib/fseeko.c (rpl_fseeko): Likewise.
19207 * lib/fseterr.c (fseterr): Likewise.
19208 * lib/fwritable.c (fwritable): Likewise.
19209 * lib/fwriting.c (fwriting): Likewise.
19210 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19212 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
19214 * lib/config.charset: Treat Haiku like BeOS.
19216 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
19218 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19219 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19221 2008-11-08 Bruno Haible <bruno@clisp.org>
19223 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19226 2008-11-08 Bruno Haible <bruno@clisp.org>
19228 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19230 2008-11-08 Bruno Haible <bruno@clisp.org>
19232 * tests/test-select-fd.c: New file.
19233 * tests/test-select-in.sh: New file.
19234 * tests/test-select-out.sh: New file.
19235 * tests/test-select-stdin.c: New file.
19236 * modules/select-tests (Files): Add the new files.
19237 (Depends-on): Add gettimeofday.
19238 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19239 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19240 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19242 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
19243 Bruno Haible <bruno@clisp.org>
19245 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19247 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
19249 * build-aux/pmccabe2html: Added support for C++ source files.
19251 2008-11-05 Ben Pfaff <blp@gnu.org>
19253 Fix lib/close.c build on Windows.
19254 * modules/close (Files): Add lib/w32sock.h.
19256 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
19258 Accept Bison's NEWS format.
19259 * build-aux/announce-gen (print_news_deltas): Tweak
19262 2008-11-04 Bruno Haible <bruno@clisp.org>
19264 * modules/random_r (Maintainer): Add glibc.
19266 2008-11-04 Simon Josefsson <simon@josefsson.org>
19268 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19269 by karl@freefriends.org (Karl Berry).
19270 * doc/alloca.texi: Likewise.
19271 * doc/c-ctype.texi: Likewise.
19272 * doc/c-strcase.texi: Likewise.
19273 * doc/c-strcaseeq.texi: Likewise.
19274 * doc/c-strcasestr.texi: Likewise.
19275 * doc/c-strstr.texi: Likewise.
19276 * doc/c-strtod.texi: Likewise.
19277 * doc/c-strtold.texi: Likewise.
19278 * doc/ctime.texi: Likewise.
19279 * doc/error.texi: Likewise.
19280 * doc/fdl.texi: Likewise.
19281 * doc/gcd.texi: Likewise.
19282 * doc/getdate.texi: Likewise.
19283 * doc/gnulib-intro.texi: Likewise.
19284 * doc/gnulib-tool.texi: Likewise.
19285 * doc/gnulib.texi: Likewise.
19286 * doc/inet_ntoa.texi: Likewise.
19287 * doc/maintain.texi: Likewise.
19288 * doc/make-stds.texi: Likewise.
19289 * doc/quote.texi: Likewise.
19290 * doc/regexprops-generic.texi: Likewise.
19291 * doc/standards.texi: Likewise.
19292 * doc/verify.texi: Likewise.
19293 * doc/visibility.texi: Likewise.
19294 * doc/gnulib.texi (GNU Free Documentation License): Include
19295 fdl-1.3.texi instead of fdl.texi.
19297 2008-11-04 Simon Josefsson <simon@josefsson.org>
19299 * doc/fdl-1.3.texi: New file, from
19300 <http://www.gnu.org/licenses/fdl-1.3.texi>.
19301 * modules/fdl-1.3: Add.
19302 * MODULES.html.sh: Add fdl-1.3.
19304 2008-11-03 Bruno Haible <bruno@clisp.org>
19306 Make determination of absolute name of header file work with AIX xlc.
19307 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19308 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19310 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19311 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19313 2008-11-03 Simon Josefsson <simon@josefsson.org>
19315 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19316 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
19319 2008-11-02 Bruno Haible <bruno@clisp.org>
19321 Mark 'strpbrk' obsolete.
19322 * modules/strpbrk (Status, Notice): New sections.
19323 * modules/strtok_r (Depends-on): Add strpbrk.
19325 2008-11-02 Bruno Haible <bruno@clisp.org>
19327 Mark 'strdup' obsolete.
19328 * modules/strdup (Status, Notice): New sections.
19329 * modules/findprog (Depends-on): Add strdup.
19330 * modules/getaddrinfo (Depends-on): Likewise.
19331 * modules/localename (Depends-on): Likewise.
19332 * modules/relocatable-lib (Depends-on): Likewise.
19333 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19334 * modules/relocatable-prog (Depends-on): Likewise.
19335 * modules/trim (Depends-on): Likewise.
19336 * modules/unictype/gen-ctype (Depends-on): Likewise.
19337 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19339 2008-11-02 Bruno Haible <bruno@clisp.org>
19341 Mark 'strcspn' obsolete.
19342 * modules/strcspn (Status, Notice): New sections.
19344 2008-11-02 Bruno Haible <bruno@clisp.org>
19346 Mark 'rmdir' obsolete.
19347 * modules/rmdir (Status, Notice): New sections.
19348 * modules/clean-temp (Depends-on): Add rmdir.
19349 * modules/openat (Depends-on): Likewise.
19351 2008-11-02 Bruno Haible <bruno@clisp.org>
19353 Mark 'raise' obsolete.
19354 * modules/raise (Status, Notice): New sections.
19355 (Include): Specify <signal.h>.
19356 * modules/stdio (Depends-on): Add raise.
19357 * modules/write (Depends-on): Likewise.
19359 2008-11-02 Bruno Haible <bruno@clisp.org>
19361 Mark 'memset' obsolete.
19362 * modules/memset (Status, Notice): New sections.
19364 2008-11-02 Bruno Haible <bruno@clisp.org>
19366 Mark 'memmove' obsolete.
19367 * modules/memmove (Status, Notice): New sections.
19368 * modules/argp (Depends-on): Add memmove.
19369 * modules/argz (Depends-on): Likewise.
19370 * modules/canonicalize (Depends-on): Likewise.
19371 * modules/canonicalize-lgpl (Depends-on): Likewise.
19372 * modules/fts (Depends-on): Likewise.
19373 * modules/getcwd (Depends-on): Likewise.
19374 * modules/human (Depends-on): Likewise.
19375 * modules/regex (Depends-on): Likewise.
19376 * modules/striconveh (Depends-on): Likewise.
19377 * modules/trim (Depends-on): Likewise.
19378 * modules/unistr/u8-move (Depends-on): Likewise.
19379 * modules/unistr/u16-move (Depends-on): Likewise.
19380 * modules/unistr/u32-move (Depends-on): Likewise.
19382 2008-11-02 Bruno Haible <bruno@clisp.org>
19384 Mark 'memcpy' obsolete.
19385 * modules/memcpy (Status, Notice): New sections.
19387 2008-11-02 Bruno Haible <bruno@clisp.org>
19389 Mark 'memcmp' obsolete.
19390 * modules/memcmp (Status, Notice): New sections.
19391 * modules/argmatch (Depends-on): Add memchr.
19392 * modules/backupfile (Depends-on): Likewise.
19393 * modules/c-strcasestr (Depends-on): Likewise.
19394 * modules/crypto/des (Depends-on): Likewise.
19395 * modules/csharpcomp (Depends-on): Likewise.
19396 * modules/fnmatch (Depends-on): Likewise.
19397 * modules/git-merge-changelog (Depends-on): Likewise.
19398 * modules/isnand (Depends-on): Likewise.
19399 * modules/isnand-nolibm (Depends-on): Likewise.
19400 * modules/isnanf (Depends-on): Likewise.
19401 * modules/isnanf-nolibm (Depends-on): Likewise.
19402 * modules/isnanl (Depends-on): Likewise.
19403 * modules/isnanl-nolibm (Depends-on): Likewise.
19404 * modules/mbchar (Depends-on): Likewise.
19405 * modules/memcoll (Depends-on): Likewise.
19406 * modules/quotearg (Depends-on): Likewise.
19407 * modules/regex (Depends-on): Likewise.
19408 * modules/relocatable-prog (Depends-on): Likewise.
19409 * modules/same (Depends-on): Likewise.
19410 * modules/signbit (Depends-on): Likewise.
19411 * modules/strcasestr-simple (Depends-on): Likewise.
19412 * modules/unictype/gen-ctype (Depends-on): Likewise.
19413 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19414 * modules/uniname/uniname (Depends-on): Likewise.
19415 * modules/unistr/u8-cmp (Depends-on): Likewise.
19417 2008-11-02 Bruno Haible <bruno@clisp.org>
19419 Mark 'memchr' obsolete.
19420 * modules/memchr (Status, Notice): New sections.
19421 * modules/argp (Depends-on): Add memchr.
19422 * modules/base64 (Depends-on): Likewise.
19423 * modules/c-strcasestr (Depends-on): Likewise.
19424 * modules/chdir-long (Depends-on): Likewise.
19425 * modules/fnmatch (Depends-on): Likewise.
19426 * modules/getsubopt (Depends-on): Likewise.
19427 * modules/git-merge-changelog (Depends-on): Likewise.
19428 * modules/glob (Depends-on): Likewise.
19429 * modules/strcasestr-simple (Depends-on): Likewise.
19430 * modules/strnlen (Depends-on): Likewise.
19432 2008-11-02 Bruno Haible <bruno@clisp.org>
19434 Mark 'atexit' obsolete.
19435 * modules/atexit (Status, Notice): New sections.
19436 * modules/chdir-long (Depends-on): Add atexit.
19437 * modules/wait-process (Depends-on): Likewise.
19439 2008-11-02 Bruno Haible <bruno@clisp.org>
19441 * gnulib-tool: New option --with-obsolete.
19442 (func_usage): Document it.
19443 (func_modules_transitive_closure): Drop obsolete dependencies if
19444 incobsolete is not true.
19445 (func_import): Read and save the incobsolete variable to the cache.
19447 2008-11-02 Bruno Haible <bruno@clisp.org>
19449 * modules/TEMPLATE-EXTENDED: New field 'Status'.
19450 * gnulib-tool: New option --extract-status.
19451 (func_usage): Document it.
19452 (sed_extract_prog): Recognize it.
19453 (func_get_status): New function.
19455 2008-10-30 Simon Josefsson <simon@josefsson.org>
19457 * modules/sockets (License): Change from LGPL to LGPLv2+.
19459 2008-10-28 Simon Josefsson <simon@josefsson.org>
19461 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19463 2008-10-28 Simon Josefsson <simon@josefsson.org>
19465 * MODULES.html.sh (Support for systems lacking POSIX:2001):
19466 Mention times and sys_times.
19467 * modules/sys_times, modules/sys_times-tests: New modules.
19468 * modules/times, modules/times-tests: Likewise
19469 * m4/sys_times_h.m4: New file.
19470 * lib/sys_times.in.h: Likewise
19471 * lib/times.c: Likewise.
19472 * tests/test-sys_times.c: Likewise.
19473 * tests/test-times.c: Likewise.
19474 * doc/posix-headers/sys_times.texi: Update.
19475 * doc/posix-functions/times.texi: Update.
19477 2008-10-28 Jim Meyering <meyering@redhat.com>
19479 * modules/tempname (Depends-on): Add lstat.
19481 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19483 2008-10-28 Simon Josefsson <simon@josefsson.org>
19485 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19486 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19487 using idiom used elsewhere in gnulib.
19489 2008-10-27 Jim Meyering <meyering@redhat.com>
19491 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19493 2008-10-27 Simon Josefsson <simon@josefsson.org>
19495 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19496 TESTS_ENVIRONMENT, for shell scripts that needs to call built
19498 * tests/test-argp-2.sh: Use $EXEEXT when needed.
19500 2008-10-27 Simon Josefsson <simon@josefsson.org>
19502 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19504 2008-10-27 Bruno Haible <bruno@clisp.org>
19506 * tests/test-lstat.c: Include <stdio.h>.
19508 2008-10-27 Simon Josefsson <simon@josefsson.org>
19510 * modules/lstat-tests: New module.
19511 * tests/test-lstat.c: New file.
19513 2008-10-26 Jim Meyering <meyering@redhat.com>
19515 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19517 2008-10-26 Simon Josefsson <simon@josefsson.org>
19518 Bruno Haible <bruno@clisp.org>
19520 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19521 * modules/configmake (Include): Add a note that the include must come
19522 after all system headers.
19523 * lib/javaversion.c: Include configmake.h after all other includes.
19525 2008-10-26 Bruno Haible <bruno@clisp.org>
19527 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19528 HAVE_STRUCT_RANDOM_DATA to 1.
19529 (gl_STDLIB_H): Simplify.
19531 2008-10-26 Simon Josefsson <simon@josefsson.org>
19533 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
19534 substitute HAVE_STRUCT_RANDOM_DATA.
19535 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19537 * modules/stdlib (Makefile.am): Substitute
19538 HAVE_STRUCT_RANDOM_DATA.
19540 2008-10-26 Simon Josefsson <simon@josefsson.org>
19542 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19543 * doc/gnulib-intro.texi (Copyright): Likewise.
19545 2008-10-26 Simon Josefsson <simon@josefsson.org>
19547 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19550 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
19551 Bruno Haible <bruno@clisp.org>
19553 * lib/unistd.in.h: Include <winsock2.h>.
19554 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19555 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19556 Provide dummy declarations.
19557 (gethostname): Override.
19558 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19559 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19560 gl_PREREQ_SYS_H_WINSOCK2.
19561 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19562 * doc/posix-functions/gethostname.texi: More details.
19564 2008-10-25 Bruno Haible <bruno@clisp.org>
19566 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19567 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19568 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19570 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19572 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19573 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19574 gl_UNISTD_H_DEFAULTS.
19576 2008-10-25 Eric Blake <ebb9@byu.net>
19578 signbit: avoid spurious compiler failure
19579 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19580 declarations inside function.
19582 2008-10-24 Simon Josefsson <simon@josefsson.org>
19583 Bruno Haible <bruno@clisp.org>
19585 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19586 * modules/random_r (Depends-on): Add stdint.
19588 2008-10-24 Bruno Haible <bruno@clisp.org>
19590 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19592 * modules/strerror (License): Likewise.
19594 2008-10-24 Jim Meyering <meyering@redhat.com>
19596 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19597 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19599 2008-10-24 Eric Blake <ebb9@byu.net>
19601 getgroups: fix compilation when getgroups is available
19602 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19603 but with <config.h> override of getgroups disabled.
19605 2008-10-24 Simon Josefsson <simon@josefsson.org>
19607 * doc/gnulib.texi (Header files): Add note about C++ problems.
19608 Explained by Bruno Haible <bruno@clisp.org>.
19610 2008-10-23 Bruno Haible <bruno@clisp.org>
19612 Define a dummy SA_NODEFER macro on Interix.
19613 * lib/signal.in.h (SA_NODEFER): Define fallback.
19614 Reported by Aleksey Cheusov <cheusov@tut.by> via
19615 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19617 2008-10-23 Bruno Haible <bruno@clisp.org>
19619 * modules/freadahead (License): Change to LGPLv2+.
19620 Suggested by Simon Josefsson.
19622 2008-10-23 Jim Meyering <meyering@redhat.com>
19624 random_r: new module
19625 * modules/random_r: New file.
19626 * m4/random_r.m4: New file.
19627 * lib/random_r.c: New file, from glibc.
19628 * modules/random_r-tests: New file.
19629 * tests/test-random_r.c: New file.
19630 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19632 (RAND_MAX): Define.
19633 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19634 * modules/stdlib: Substitute them, too.
19635 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19636 * doc/glibc-functions/initstate_r.texi: Mention the new module.
19637 * doc/glibc-functions/random_r.texi: Likewise.
19638 * doc/glibc-functions/setstate_r.texi: Likewise.
19639 * doc/glibc-functions/srandom_r.texi: Likewise.
19640 * config/srclist.txt: Mention it.
19642 2008-10-23 David Lutterkort <lutter@redhat.com>
19644 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19647 2008-10-23 Jim Meyering <meyering@redhat.com>
19649 selinux-h: mark parameters of stub functions as intentionally unused
19650 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19651 * lib/se-context.in.h: Likewise.
19653 2008-10-22 Simon Josefsson <simon@josefsson.org>
19655 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19657 2008-10-22 Simon Josefsson <simon@josefsson.org>
19659 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19661 2008-10-22 Eric Blake <ebb9@byu.net>
19663 glthread/thread: avoid compiler warning
19664 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19665 Add unreachable abort to silence compiler.
19667 2008-10-22 Eric Blake <ebb9@byu.net>
19669 netdb: also supply struct addrinfo for cygwin 1.5.x
19670 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19672 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19674 * doc/posix-headers/netdb.texi (netdb.h): Document this.
19676 2008-10-22 Bruno Haible <bruno@clisp.org>
19678 * users.txt: Update entry about pspp.
19680 2008-10-21 Bruno Haible <bruno@clisp.org>
19683 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19684 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19687 * lib/ioctl.c (ioctl): Don't undefine.
19688 * lib/socket.c (socket): Don't undefine.
19690 Remove unused module indicator macros.
19691 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19692 GNULIB_$1 as a C macro.
19694 * doc/posix-functions/close.texi: Undo last change.
19695 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19698 2008-10-21 Bruno Haible <bruno@clisp.org>
19700 Add gethostname() declaration to <unistd.h>.
19701 * lib/unistd.in.h (gethostname): New declaration.
19702 * lib/gethostname.c: Include <unistd.h>.
19703 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19704 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19705 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19706 and HAVE_GETHOSTNAME.
19707 * modules/gethostname (Depends-on): Add unistd.
19708 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19709 (Include): Specify <unistd.h>.
19710 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19712 * tests/test-gethostname.c: Include <unistd.h> first.
19714 2008-10-21 Bruno Haible <bruno@clisp.org>
19716 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19717 * modules/select-tests (Depends-on): Likewise.
19718 Reported by Simon Josefsson.
19720 2008-10-21 Simon Josefsson <simon@josefsson.org>
19722 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19723 * lib/accept.c: New file, based on winsock.c.
19724 * lib/bind.c: New file, based on winsock.c.
19725 * lib/connect.c: New file, based on winsock.c.
19726 * lib/getpeername.c: New file, based on winsock.c.
19727 * lib/getsockname.c: New file, based on winsock.c.
19728 * lib/getsockopt.c: New file, based on winsock.c.
19729 * lib/ioctl.c: New file, based on winsock.c.
19730 * lib/listen.c: New file, based on winsock.c.
19731 * lib/recv.c: New file, based on winsock.c.
19732 * lib/recvfrom.c: New file, based on winsock.c.
19733 * lib/send.c: New file, based on winsock.c.
19734 * lib/sendto.c: New file, based on winsock.c.
19735 * lib/setsockopt.c: New file, based on winsock.c.
19736 * lib/shutdown.c: New file, based on winsock.c.
19737 * lib/socket.c: New file, based on winsock.c.
19738 * lib/w32sock.h: New file, based on winsock.c.
19739 * lib/winsock.c: Remove file.
19740 * modules/accept: Likewise.
19741 * modules/bind: Likewise.
19742 * modules/connect: Likewise.
19743 * modules/getpeername: Likewise.
19744 * modules/getsockname: Likewise.
19745 * modules/getsockopt: Likewise.
19746 * modules/ioctl: Likewise.
19747 * modules/listen: Likewise.
19748 * modules/recv: Likewise.
19749 * modules/recvfrom: Likewise.
19750 * modules/send: Likewise.
19751 * modules/sendto: Likewise.
19752 * modules/setsockopt: Likewise.
19753 * modules/shutdown: Likewise.
19754 * modules/socket: Use socket.c instead of winsock.c.
19755 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19756 * doc/posix-functions/accept.texi: Doc fix.
19757 * doc/posix-functions/bind.texi: Doc fix.
19758 * doc/posix-functions/close.texi: Doc fix.
19759 * doc/posix-functions/connect.texi: Doc fix.
19760 * doc/posix-functions/getpeername.texi: Doc fix.
19761 * doc/posix-functions/getsockname.texi: Doc fix.
19762 * doc/posix-functions/getsockopt.texi: Doc fix.
19763 * doc/posix-functions/ioctl.texi: Doc fix.
19764 * doc/posix-functions/listen.texi: Doc fix.
19765 * doc/posix-functions/recv.texi: Doc fix.
19766 * doc/posix-functions/recvfrom.texi: Doc fix.
19767 * doc/posix-functions/send.texi: Doc fix.
19768 * doc/posix-functions/sendto.texi: Doc fix.
19769 * doc/posix-functions/setsockopt.texi: Doc fix.
19770 * doc/posix-functions/shutdown.texi: Doc fix.
19771 * doc/posix-functions/socket.texi: Doc fix.
19773 2008-10-20 Bruno Haible <bruno@clisp.org>
19775 Take into account the role of SIGABRT_COMPAT on Windows 2008.
19776 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19777 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19778 as an alias for SIGABRT.
19779 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19780 (sigaction): Map it to SIGABRT.
19781 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19783 2008-10-20 Bruno Haible <bruno@clisp.org>
19785 * lib/fts.c: Don't include lstat.h.
19786 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19788 Move the lstat() declaration to <sys/stat.h>.
19789 * lib/lstat.h: Remove file.
19790 * lib/sys_stat.in.h: Add special invocation convention.
19791 (lstat): New declaration.
19792 * lib/lstat.c (orig_lstat): New function.
19793 (rpl_lstat): Use orig_lstat instead of lstat.
19794 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19795 AC_C_INLINE. Set REPLACE_LSTAT.
19796 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19798 * modules/lstat (Files): Remove lib/lstat.h.
19799 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19800 (Include): Specify <sys/stat.h> instead of lstat.h.
19801 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19803 * NEWS: Mention the change.
19805 2008-10-20 Bruno Haible <bruno@clisp.org>
19807 * modules/posix_spawn-tests: New file.
19808 * tests/test-posix_spawn3.c: New file.
19810 2008-10-20 Bruno Haible <bruno@clisp.org>
19812 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19813 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19814 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19815 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19816 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19818 2008-10-20 Bruno Haible <bruno@clisp.org>
19820 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19821 of posix_spawn on AIX 5.3.
19823 2008-10-20 Bruno Haible <bruno@clisp.org>
19825 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19827 2008-10-20 Bruno Haible <bruno@clisp.org>
19829 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19830 of AC_LANG_PROGRAM.
19832 2008-10-20 Simon Josefsson <simon@josefsson.org>
19834 * lib/netdb.in.h: Don't define GNU specific constants until they
19835 are supported or needed. Reported by Bruno Haible
19838 2008-10-20 Simon Josefsson <simon@josefsson.org>
19840 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19842 2008-10-20 Simon Josefsson <simon@josefsson.org>
19844 * lib/getaddrinfo.h: Remove file.
19845 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19846 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
19847 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19848 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19849 * modules/netdb: Substitute GNULIB_GETADDRINFO.
19850 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19851 * tests/test-getaddrinfo.c: Likewise.
19852 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
19853 * NEWS: Mention change.
19855 2008-10-19 Bruno Haible <bruno@clisp.org>
19857 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19859 2008-10-19 Bruno Haible <bruno@clisp.org>
19861 * lib/wait-process.c: Include simply <sys/wait.h>.
19862 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19863 WIFSTOPPED): Remove fallback definitions.
19864 * modules/wait-process (Depends-on): Add sys_wait.
19866 New module 'sys_wait'.
19867 * modules/sys_wait: New file.
19868 * lib/sys_wait.in.h: New file, partially copied from
19869 lib/wait-process.c.
19870 * m4/sys_wait_h.m4: New file.
19871 * doc/posix-headers/sys_wait.texi: Mention the new module.
19873 2008-10-19 Bruno Haible <bruno@clisp.org>
19875 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19877 2008-10-19 Bruno Haible <bruno@clisp.org>
19879 Assume that waitpid() fills an 'int' status, not a 'union wait'.
19880 * lib/wait-process.c (WAIT_T): Remove type.
19881 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19882 (wait_subprocess): Update.
19884 2008-10-19 Bruno Haible <bruno@clisp.org>
19886 New module 'atoll'.
19887 * modules/atoll: New file.
19888 * lib/stdlib.in.h (atoll): New declaration.
19889 * lib/atoll.c: New file, from glibc with modifications.
19890 * m4/atoll.m4: New file.
19891 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19893 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19894 * doc/posix-functions/atoll.texi: Mention the new module.
19896 2008-10-19 Bruno Haible <bruno@clisp.org>
19898 Add strtoull() declaration to <stdlib.h>.
19899 * lib/stdlib.in.h (strtoull): New declaration.
19900 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19902 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19904 * modules/strtoull (Depends-on): Add stdlib.
19905 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19906 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19909 2008-10-19 Bruno Haible <bruno@clisp.org>
19911 Add strtoll() declaration to <stdlib.h>.
19912 * lib/stdlib.in.h (strtoll): New declaration.
19913 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19915 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19917 * modules/strtoll (Depends-on): Add stdlib.
19918 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19919 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19921 2008-10-19 Bruno Haible <bruno@clisp.org>
19923 * modules/bcopy (Depends-on): Add strings.
19924 (Include): Specify <strings.h>.
19926 2008-10-19 Bruno Haible <bruno@clisp.org>
19928 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19930 2008-10-19 Bruno Haible <bruno@clisp.org>
19932 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19933 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19936 2008-10-19 Bruno Haible <bruno@clisp.org>
19938 * lib/atanl.c: Don't include isnanl.h.
19939 * lib/cosl.c: Likewise.
19940 * lib/ldexpl.c: Likewise.
19941 * lib/logl.c: Likewise.
19942 * lib/sinl.c: Likewise.
19943 * lib/sqrtl.c: Likewise.
19944 * lib/tanl.c: Likewise.
19946 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19947 * lib/isnanf.h: Remove file.
19948 * lib/isnand.h: Remove file.
19949 * lib/isnanl.h: Remove file.
19950 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19951 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19953 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19954 HAVE_ISNANF, don't define it as a C macro.
19955 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19956 HAVE_ISNAND, don't define it as a C macro.
19957 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19958 HAVE_ISNANL, don't define it as a C macro.
19959 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19961 * modules/isnanf (Files): Remove lib/isnanf.h.
19962 (Depends-on): Add math.
19963 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19964 (Include): Specify <math.h> instead of isnanf.h.
19965 * modules/isnand (Files): Remove lib/isnand.h.
19966 (Depends-on): Add math.
19967 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19968 (Include): Specify <math.h> instead of isnand.h.
19969 * modules/isnanl (Files): Remove lib/isnanl.h.
19970 (Depends-on): Add math.
19971 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19972 (Include): Specify <math.h> instead of isnanl.h.
19973 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19975 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19976 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19977 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19978 * NEWS: Mention the change.
19980 2008-10-18 Bruno Haible <bruno@clisp.org>
19982 Add getusershell(), setusershell(), endusershell() declarations to
19984 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19986 * lib/getusershell.c: Include unistd.h.
19987 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19988 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19990 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19991 and HAVE_GETUSERSHELL.
19992 * modules/getusershell (Depends-on): Add unistd, extensions.
19993 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19994 (Include): Specify <unistd.h>.
19995 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19998 2008-10-18 Bruno Haible <bruno@clisp.org>
20000 Add a getloadavg() declaration to <stdlib.h>.
20001 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20002 getloadavg declaration.
20003 (getloadavg): New declaration.
20004 * lib/getloadavg.c: Include <stdlib.h> first.
20005 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20006 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20007 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20008 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20009 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20010 * modules/getloadavg (Depends-on): Add stdlib, extensions.
20011 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20012 (Include): Specify <stdlib.h>.
20013 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20014 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20016 2008-10-18 Bruno Haible <bruno@clisp.org>
20018 * lib/dirchownmod.c: Don't include lchmod.h.
20020 Move the lchmod() declaration to <sys/stat.h>.
20021 * lib/lchmod.h: Remove file.
20022 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20023 (lchmod): New declaration, moved here from lib/lchown.h.
20024 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20025 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20026 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20028 * modules/lchmod (Files): Remove lib/lchmod.h.
20029 (Depends-on): Add sys_stat, extensions.
20030 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20031 (Include): Specify <sys/stat.h> instead of lchmod.h.
20032 * modules/sys_stat (Depends-on): Add link-warning.
20033 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20034 definition of GL_LINK_WARNING.
20035 * NEWS: Mention the change.
20037 2008-10-18 Bruno Haible <bruno@clisp.org>
20039 * lib/fchdir.c: Don't include dirfd.h.
20040 * lib/fts.c: Likewise.
20041 * lib/getcwd.c: Likewise.
20042 * lib/glob.c: Likewise.
20044 Move the dirfd() declaration to <dirent.h>.
20045 * lib/dirfd.h: Remove file.
20046 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20047 (dirfd): New declaration.
20048 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20049 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20050 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20052 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20054 * modules/dirfd (Files): Remove lib/dirfd.h.
20055 (Depends-on): Add dirent, extensions.
20056 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20057 (Include): Specify <dirent.h> instead of dirfd.h.
20058 * modules/dirent (Depends-on): Add link-warning.
20059 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20060 definition of GL_LINK_WARNING.
20061 * NEWS: Mention the change.
20063 2008-10-18 Bruno Haible <bruno@clisp.org>
20065 Move the euidaccess() declaration to <unistd.h>.
20066 * lib/euidaccess.h: Remove file.
20067 * lib/unistd.in.h (euidaccess): New declaration.
20068 * lib/euidaccess.c: Don't include euidaccess.h.
20069 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20070 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20071 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20072 and HAVE_EUIDACCESS.
20073 * modules/euidaccess (Files): Remove lib/euidaccess.h.
20074 (Depends-on): Add unistd.
20075 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20076 (Include): Specify <unistd.h> instead of euidaccess.h.
20077 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20079 * NEWS: Mention the change.
20081 2008-10-18 Bruno Haible <bruno@clisp.org>
20083 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20085 Move the getdomainname() declaration to <unistd.h>.
20086 * lib/getdomainname.h: Remove file.
20087 * lib/unistd.in.h (getdomainname): New declaration.
20088 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20089 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20090 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20091 HAVE_GETDOMAINNAME.
20092 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20093 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20094 * modules/getdomainname (Files): Remove lib/getdomainname.h.
20095 (Depends-on): Add unistd, extensions.
20096 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20097 (Includes): Specify <unistd.h> instead of getdomainname.h.
20098 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20099 HAVE_GETDOMAINNAME.
20100 * NEWS: Mention the change.
20102 2008-10-18 Bruno Haible <bruno@clisp.org>
20104 * modules/dirent: New file.
20105 * m4/dirent_h.m4: New file.
20106 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20107 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20108 * modules/fchdir (Files): Remove lib/dirent.in.h.
20109 (Depends-on): Add dirent.
20110 (Makefile.am): Move rules to modules/dirent.
20111 * doc/posix-headers/dirent.texi: Mention the new module.
20113 2008-10-18 Bruno Haible <bruno@clisp.org>
20115 Avoid -Wunused-parameter warnings in public gnulib header files.
20116 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20118 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20120 2008-10-18 Bruno Haible <bruno@clisp.org>
20122 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20123 * doc/glibc-functions/error.texi: Mention the module 'error'.
20124 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20125 * doc/glibc-functions/getdomainname.texi: Mention the module
20127 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20128 * doc/glibc-functions/getpagesize.texi: Mention the module
20130 * doc/glibc-functions/getusershell.texi: Mention the module
20132 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20133 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20134 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20135 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20136 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20137 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20138 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20139 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20140 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20141 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20142 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20143 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20144 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20145 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20147 2008-10-17 Bruno Haible <bruno@clisp.org>
20149 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20150 HP-UX and IRIX, use -0.0L.
20151 * tests/test-ceill.c (minus_zero): Likewise.
20152 * tests/test-floorl.c (minus_zero): Likewise.
20153 * tests/test-frexpl.c (minus_zero): Likewise.
20154 * tests/test-isnan.c (minus_zerol): Likewise.
20155 * tests/test-isnanl.h (minus_zero): Likewise.
20156 * tests/test-ldexpl.c (minus_zero): Likewise.
20157 * tests/test-roundl.c (minus_zero): Likewise.
20158 * tests/test-signbit.c (minus_zerol): Likewise.
20159 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20160 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20161 * tests/test-truncl.c (minus_zero): Likewise.
20162 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20163 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20164 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20165 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20167 2008-10-17 Bruno Haible <bruno@clisp.org>
20169 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20170 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20171 that it gets activated only for gcc >= 3.0.
20172 * lib/dirent.in.h: Likewise.
20173 * lib/errno.in.h: Likewise.
20174 * lib/fcntl.in.h: Likewise.
20175 * lib/float.in.h: Likewise.
20176 * lib/iconv.in.h: Likewise.
20177 * lib/inttypes.in.h: Likewise.
20178 * lib/locale.in.h: Likewise.
20179 * lib/math.in.h: Likewise.
20180 * lib/netdb.in.h: Likewise.
20181 * lib/netinet_in.in.h: Likewise.
20182 * lib/search.in.h: Likewise.
20183 * lib/signal.in.h: Likewise.
20184 * lib/spawn.in.h: Likewise.
20185 * lib/stdarg.in.h: Likewise.
20186 * lib/stdint.in.h: Likewise.
20187 * lib/stdio.in.h: Likewise.
20188 * lib/stdlib.in.h: Likewise.
20189 * lib/string.in.h: Likewise.
20190 * lib/strings.in.h: Likewise.
20191 * lib/sys_file.in.h: Likewise.
20192 * lib/sys_ioctl.in.h: Likewise.
20193 * lib/sys_select.in.h: Likewise.
20194 * lib/sys_socket.in.h: Likewise.
20195 * lib/sys_stat.in.h: Likewise.
20196 * lib/sys_time.in.h: Likewise.
20197 * lib/sysexits.in.h: Likewise.
20198 * lib/time.in.h: Likewise.
20199 * lib/unistd.in.h: Likewise.
20200 * lib/wchar.in.h: Likewise.
20201 * lib/wctype.in.h: Likewise.
20202 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20204 2008-10-17 Jim Meyering <meyering@redhat.com>
20206 ignore-value: don't depend on inline module
20207 * modules/ignore-value (Depends-on): Remove 'inline'.
20208 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20209 Suggestion from Bruno Haible.
20211 2008-10-17 Bruno Haible <bruno@clisp.org>
20213 New implementation of condition variables for Win32.
20214 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20215 (gl_linked_waitqueue_t): New type.
20216 (gl_cond_t): Use it.
20217 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20218 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20219 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20220 (glthread_cond_init_func, glthread_cond_wait_func,
20221 glthread_cond_timedwait_func, glthread_cond_signal_func,
20222 glthread_cond_broadcast_func, glthread_cond_destroy_func):
20223 Reimplemented on the basis of gl_linked_waitqueue_t.
20224 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20226 (gl_rwlock_t): Update.
20227 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20229 2008-10-17 Simon Josefsson <simon@josefsson.org>
20231 * modules/recvfrom (Depends-on): Add dependency on getpeername.
20232 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20234 2008-10-17 Jim Meyering <meyering@redhat.com>
20236 ignore-value: new module
20237 * modules/ignore-value: New file.
20238 * lib/ignore-value.h: New file.
20239 * MODULES.html.sh (Compiler warning management): New section,
20240 just for this module. More to come.
20242 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
20244 open-safer.c: avoid 'signed and unsigned in conditional...' warning
20245 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20246 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
20248 2008-10-16 Jim Meyering <meyering@redhat.com>
20250 openat-die.c: avoid 'no previous prototype' warning
20251 * lib/openat-die.c: Include "openat.h".
20252 Reported by Reuben Thomas <rrt@sc3d.org>.
20254 2008-10-16 Simon Josefsson <simon@josefsson.org>
20256 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20257 * lib/netdb.in.h: Fix typo.
20258 Reported by Bruno Haible <bruno@clisp.org>
20260 * lib/netdb.in.h: Include sys/socket.h for platforms without
20261 netdb.h, to get structures like hostent on MinGW.
20262 * modules/netdb (Depends-on): Add sys_socket.
20264 2008-10-15 Simon Josefsson <simon@josefsson.org>
20266 * modules/netdb, modules/netdb-tests: New file.
20267 * m4/netdb_h.m4: New file.
20268 * lib/netdb.in.h: Add, currently just an empty file pending
20270 * tests/test-netdb.c: New file.
20271 * doc/posix-headers/netdb.texi: Mention that we replace it if
20273 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20276 2008-10-15 Simon Josefsson <simon@josefsson.org>
20278 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20281 2008-10-13 Bruno Haible <bruno@clisp.org>
20283 * lib/glthread/cond.c (glthread_cond_wait_func,
20284 glthread_cond_timedwait_func): Add a comment.
20286 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
20288 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20289 * tests/test-select.c: Likewise,
20291 2008-10-13 Bruno Haible <bruno@clisp.org>
20293 * lib/glthread/cond.c (glthread_cond_wait_func,
20294 glthread_cond_timedwait_func): Fix variable name.
20295 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20297 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
20299 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20300 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20301 struct sockaddr.sa_len.
20302 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20304 2008-10-13 Simon Josefsson <simon@josefsson.org>
20306 * build-aux/pmccabe2html: Add css and css_url parameters.
20308 2008-10-12 Bruno Haible <bruno@clisp.org>
20310 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20312 Reported by Rainer Tammer <tammer@tammer.net>.
20314 2008-10-12 Bruno Haible <bruno@clisp.org>
20316 Use msvcrt aware primitives for creation/termination of Win32 threads.
20317 * lib/glthread/thread.c: Include <process.h>.
20318 (glthread_create_func): Use _beginthreadex instead of CreateThread.
20319 (wrapper_func): Update signature.
20320 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20322 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
20323 Bruno Haible <bruno@clisp.org>
20325 Provide a Win32 implementation of the 'cond' module.
20326 * lib/glthread/cond.h [USE_WIN32]: New implementation.
20327 * lib/glthread/cond.c (glthread_cond_init_func,
20328 glthread_cond_wait_func, glthread_cond_timedwait_func,
20329 glthread_cond_signal_func, glthread_cond_broadcast_func,
20330 glthread_cond_destroy_func) [USE_WIN32]: New functions.
20331 * modules/cond (Dependencies): Add gettimeofday.
20333 2008-10-11 Bruno Haible <bruno@clisp.org>
20335 Make sleep work on older versions of mingw.
20336 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20337 only whether it exists.
20338 * doc/posix-functions/sleep.texi: Mention the problem with older
20341 2008-10-11 Bruno Haible <bruno@clisp.org>
20343 New module 'shutdown'.
20344 * modules/shutdown: New file.
20345 * lib/sys_socket.in.h (shutdown): New declaration.
20346 * lib/winsock.c (shutdown): New function.
20347 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20349 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20350 * doc/posix-functions/shutdown.texi: Document the new module.
20352 2008-10-11 Jim Meyering <meyering@redhat.com>
20354 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20356 2008-10-11 Bruno Haible <bruno@clisp.org>
20358 New module 'fclose'.
20359 * modules/fclose: New file.
20360 * lib/stdio.in.h (fclose): New declaration.
20361 * lib/fclose.c: New file.
20362 * m4/fclose.m4: New file.
20363 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20365 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20366 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20368 * modules/close (Depends-on): fclose.
20369 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20371 2008-10-11 Bruno Haible <bruno@clisp.org>
20373 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20374 set errno and don't call _close.
20376 2008-10-10 Bruno Haible <bruno@clisp.org>
20378 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20379 ACL, not afterwards. Fixes test failure on Cygwin.
20381 2008-10-09 Ben Pfaff <blp@gnu.org>
20383 * build-aux/announce-gen: Fix gnulib version related part of usage
20384 message. Die with a useful error message if no tarballs are
20387 2008-10-10 Jim Meyering <meyering@redhat.com>
20389 bootstrap: use git's --depth=N option only if it's supported
20390 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20391 recognize the --depth option. Reported by Pádraig Brady.
20393 2008-10-09 Bruno Haible <bruno@clisp.org>
20395 New module 'ioctl'.
20396 * modules/ioctl: New file.
20397 * lib/sys_socket.in.h (ioctl): Remove declaration.
20398 * lib/winsock.c: Include <sys/ioctl.h>.
20399 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20400 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20401 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20402 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20403 * doc/posix-functions/ioctl.texi: Mention the new module.
20405 2008-10-09 Bruno Haible <bruno@clisp.org>
20407 New module 'sys_ioctl'.
20408 * lib/sys_ioctl.in.h: New file.
20409 * m4/sys_ioctl_h.m4: New file.
20410 * modules/sys_ioctl: New file.
20411 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20413 2008-10-09 Bruno Haible <bruno@clisp.org>
20415 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20416 * lib/winsock.c: Include <stdarg.h>.
20417 (rpl_ioctl): Change to second argument 'int' and then varargs.
20419 2008-10-09 Bruno Haible <bruno@clisp.org>
20421 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20422 when the sys_socket module is present and the system has <winsock2.h>.
20424 2008-10-09 Bruno Haible <bruno@clisp.org>
20426 * doc/posix-functions/close.texi: Mention module 'close' instead of
20427 module 'sys_socket'.
20429 2008-10-09 Bruno Haible <bruno@clisp.org>
20431 * doc/glibc-headers/sys_ioctl.texi: New file.
20432 * doc/gnulib.texi: Include it.
20434 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20435 Bruno Haible <bruno@clisp.org>
20437 Combine the two replacements of 'close'.
20438 * lib/sys_socket.in.h (close): Define to a reminder to include
20440 (_gl_close_fd_maybe_socket): New declaration.
20441 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20442 * lib/winsock.c (close): Remove undefinition.
20443 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20444 needed for the gnulib module 'close'.
20445 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20446 define to an error symbol or to a warning, if suitable.
20447 * lib/close.c: Include <sys/socket.h>.
20448 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20449 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20450 UNISTD_H_HAVE_WINSOCK2_H.
20451 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20452 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20453 UNISTD_H_HAVE_WINSOCK2_H.
20454 * modules/sys_socket (Files): Add m4/unistd_h.m4.
20455 (configure.ac): Set a module indicator.
20456 (Makefile.am): Substitute GNULIB_CLOSE.
20457 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20458 * modules/poll-tests (Depends-on): Add close.
20459 * modules/select-tests (Depends-on): Likewise.
20461 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20462 Bruno Haible <bruno@clisp.org>
20464 New module 'close'.
20465 * modules/close: New file.
20466 * lib/unistd.in.h (close): Move declaration out of the
20467 FCHDIR_REPLACEMENT scope.
20468 (_gl_unregister_fd): New declaration.
20469 * lib/close.c: New file.
20470 * lib/fchdir.c (rpl_close): Remove function.
20471 * m4/close.m4: New file.
20472 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20474 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20476 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20478 * modules/fchdir (Depends-on): Add close.
20480 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20481 Bruno Haible <bruno@clisp.org>
20483 * lib/fcntl.in.h (open): Simplify conditionals.
20484 (_gl_register_fd): New declaration.
20485 * lib/fchdir.c (rpl_open): Remove function.
20486 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20488 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20489 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20492 2008-10-09 Jim Meyering <meyering@redhat.com>
20494 GNUmakefile: use the more name-space-friendly "_version"
20495 * top/GNUmakefile (_dummy): Update.
20496 (_version): Rename from "version".
20498 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20499 Bruno Haible <bruno@clisp.org>
20501 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20503 (_gl_register_fd): New function, extracted from rpl_open.
20504 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20505 (rpl_open, rpl_opendir): Use _gl_register_fd.
20507 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20509 Fix organization of 'open' replacement.
20510 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20511 (gl_FUNC_OPEN): Use it.
20512 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20514 2008-10-08 Bruno Haible <bruno@clisp.org>
20516 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20518 2008-10-08 Simon Josefsson <simon@josefsson.org>
20520 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
20521 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20524 2008-10-08 Eric Blake <ebb9@byu.net>
20526 GNUmakefile: add 'make version' target
20527 * top/GNUmakefile (_curr-ver): Split version update rules...
20528 (version): ...into a target.
20530 2008-10-07 Bruno Haible <bruno@clisp.org>
20532 Use a more portable replacement expression for -0.0L.
20533 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20534 instead of -0.0L. Fix m4 quotation.
20536 * tests/test-signbit.c: Include <float.h>.
20537 (minus_zero): New variable.
20538 (test_signbitl): Use minus_zero instead of -zero.
20539 * modules/signbit-tests (Depends-on): Add float.
20541 * tests/test-ceill.c: Include <float.h>.
20542 (zero): Remove variable.
20543 (minus_zero): New variable.
20544 (main): Use minus_zero instead of -zero.
20545 * modules/ceill-tests (Depends-on): Add float.
20547 * tests/test-floorl.c: Include <float.h>.
20548 (zero): Remove variable.
20549 (minus_zero): New variable.
20550 (main): Use minus_zero instead of -zero.
20551 * modules/floorl-tests (Depends-on): Add float.
20553 * tests/test-roundl.c: Include <float.h>.
20554 (zero): Remove variable.
20555 (minus_zero): New variable.
20556 (main): Use minus_zero instead of -zero.
20557 * modules/roundl-tests (Depends-on): Add float.
20559 * tests/test-truncl.c: Include <float.h>.
20560 (zero): Remove variable.
20561 (minus_zero): New variable.
20562 (main): Use minus_zero instead of -zero.
20563 * modules/truncl-tests (Depends-on): Add float.
20565 * tests/test-frexpl.c (zero): Remove variable.
20566 (minus_zero): New variable.
20567 (main): Use minus_zero instead of -zero.
20568 * modules/frexpl-tests (Depends-on): Add float.
20570 * tests/test-isnan.c (zerol): Remove variable.
20571 (minus_zerol): New variable.
20572 (test_long_double): Use minus_zerol instead of -zerol.
20573 * modules/isnan-tests (Depends-on): Add float.
20575 * tests/test-isnanl.h (zero): Remove variable.
20576 (minus_zero): New variable.
20577 (main): Use minus_zero instead of -zero.
20578 * modules/isnanl-nolibm-tests (Depends-on): Add float.
20579 * modules/isnanl-tests (Depends-on): Add float.
20581 * tests/test-ldexpl.c (zero): Remove variable.
20582 (minus_zero): New variable.
20583 (main): Use minus_zero instead of -zero.
20584 * modules/ldexpl-tests (Depends-on): Add float.
20586 * tests/test-snprintf-posix.h (zerol): Remove variable.
20587 (minus_zerol): New variable.
20588 (test_function): Use minus_zerol instead of -zerol.
20589 * modules/snprintf-posix-tests (Depends-on): Add float.
20590 * modules/vsnprintf-posix-tests (Depends-on): Add float.
20592 * tests/test-sprintf-posix.h (zerol): Remove variable.
20593 (minus_zerol): New variable.
20594 (test_function): Use minus_zerol instead of -zerol.
20595 * modules/sprintf-posix-tests (Depends-on): Add float.
20596 * modules/vsprintf-posix-tests (Depends-on): Add float.
20598 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20599 (minus_zerol): New variable.
20600 (test_function): Use minus_zerol instead of -zerol.
20601 * modules/vasnprintf-posix-tests (Depends-on): Add float.
20603 * tests/test-vasprintf-posix.c (zerol): Remove variable.
20604 (minus_zerol): New variable.
20605 (test_function): Use minus_zerol instead of -zerol.
20606 * modules/vasprintf-posix-tests (Depends-on): Add float.
20608 2008-10-07 Simon Josefsson <simon@josefsson.org>
20610 * MODULES.html.sh (Support for building documentation): Mention
20611 pmccabe2html. Sort entries.
20613 Add pmccabe2html module, from gnupdf.
20614 * build-aux/pmccabe.css: New file.
20615 * build-aux/pmccabe2html: New file.
20616 * m4/pmccabe2html.m4: New file.
20617 * modules/pmccabe2html: New file.
20619 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
20622 * MODULES.html.sh: Add to list of modules.
20623 * lib/flock.c: flock implementation for Windows and Unix systems
20625 * doc/glibc-functions/flock.texi: Update documentation.
20626 * lib/sys_file.in.h: <sys/file.h> header file.
20627 * m4/flock.m4: M4 macros.
20628 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20629 * modules/flock: flock module.
20630 * modules/flock-tests: flock tests module.
20631 * modules/sys_file: sys/file.h module.
20632 * tests/test-flock.c: test suite for flock.
20634 2008-10-06 Jim Meyering <meyering@redhat.com>
20636 bootstrap: check for LT_INIT more portably still ;-)
20637 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20638 Spotted by Bruno Haible.
20640 2008-10-06 Eric Blake <ebb9@byu.net>
20642 test-signbit: avoid tripping Irix cc bug on -0.0L
20643 * tests/test-signbit.c (minus_zerol): Delete, and replace with
20644 '-zerol'. This may break on HP-UX/hppa, but at least makes the
20645 entire testsuite consistent and avoids an Irix 6.2 bug.
20647 2008-10-05 Bruno Haible <bruno@clisp.org>
20648 Jim Meyering <jim@meyering.net>
20650 Add an option for ignoring EPIPE during close_stdout.
20651 * lib/closeout.h: Include <stdbool.h>.
20652 (close_stdout_set_ignore_EPIPE): New declaration.
20653 * lib/closeout.c: Include <stdbool.h>.
20654 (ignore_EPIPE): New variable.
20655 (close_stdout_set_ignore_EPIPE): New function.
20656 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20657 * lib/close-stream.c (close_stream): Mention the possible EPIPE
20659 * modules/closeout (Depends-on): Add stdbool.
20661 2008-10-05 Bruno Haible <bruno@clisp.org>
20663 * modules/accept: New file.
20664 * modules/bind: New file.
20665 * modules/connect: New file.
20666 * modules/getpeername: New file.
20667 * modules/getsockname: New file.
20668 * modules/getsockopt: New file.
20669 * modules/listen: New file.
20670 * modules/recv: New file.
20671 * modules/recvfrom: New file.
20672 * modules/send: New file.
20673 * modules/sendto: New file.
20674 * modules/setsockopt: New file.
20675 * modules/socket: New file.
20676 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20677 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20678 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20679 the particular module is requested. Add a link warning when the
20680 particular module is not requested.
20681 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20682 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20683 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20684 the particular module is requested.
20685 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20686 gl_SYS_SOCKET_H_DEFAULTS): New macros.
20687 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20688 * modules/sys_socket (Depends-on): Add link-warning.
20689 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20690 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20691 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20692 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20694 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20695 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20696 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20697 * doc/posix-functions/getpeername.texi: Mention the new module
20699 * doc/posix-functions/getsockname.texi: Mention the new module
20701 * doc/posix-functions/getsockopt.texi: Mention the new module
20703 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20704 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20705 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20706 * doc/posix-functions/send.texi: Mention the new module 'send'.
20707 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20708 * doc/posix-functions/setsockopt.texi: Mention the new module
20710 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20711 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20712 listen, connect, accept.
20713 * modules/select-tests (Depends-on): Likewise.
20715 2008-10-05 Bruno Haible <bruno@clisp.org>
20717 * lib/winsock.c (strerror): Remove unused #undef.
20718 (rpl_close): Remove unused local variable.
20720 * modules/sys_socket (Depends-on); Add errno.
20722 2008-10-05 Bruno Haible <bruno@clisp.org>
20724 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20725 (select): Add a link warning when the 'select' module is not used.
20726 * modules/sys_select (Depends-on): Add link-warning.
20727 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20728 Suggested by Paolo Bonzini.
20730 2008-10-05 Jim Meyering <meyering@redhat.com>
20732 bootstrap: check for LT_INIT more portably
20733 * build-aux/bootstrap: Avoid using grep -E, since it's not
20734 portable enough. Suggestion from Bruno Haible.
20736 2008-10-05 Bruno Haible <bruno@clisp.org>
20738 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20739 as being fixed by gnulib.
20741 2008-10-05 Bruno Haible <bruno@clisp.org>
20743 * modules/select-tests: New file, mostly copied from
20744 modules/sys_select-tests.
20745 * tests/test-select.c: New file, mostly copied from
20746 tests/test-sys_select.c.
20747 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20748 * modules/sys_select-tests (Depends-on): Remove all dependencies.
20749 (Makefile.am): Remove test_sys_select_LDADD.
20751 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20752 to an undefined symbol, for an error message.
20753 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20754 (gl_SYS_SELECT_H_DEFAULTS): New macro.
20755 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20756 winsock-select.c here.
20757 * modules/sys_select (Files): Remove lib/winsock-select.c.
20758 (Depends-on): Remove alloca.
20759 (Makefile.am): Substitute GNULIB_SELECT.
20760 * modules/select: New file.
20761 * doc/posix-functions/select.texi: Update.
20763 2008-10-05 Bruno Haible <bruno@clisp.org>
20765 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20766 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20767 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20768 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20770 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20771 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20773 2008-10-05 Bruno Haible <bruno@clisp.org>
20775 * modules/getdtablesize-tests: New file.
20776 * tests/test-getdtablesize.c: New file.
20778 New module 'getdtablesize'.
20779 * lib/unistd.in.h (getdtablesize): New declaration.
20780 * lib/getdtablesize.c: New file.
20781 * m4/getdtablesize.m4: New file.
20782 * modules/getdtablesize: New file.
20783 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20784 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20785 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20786 HAVE_GETDTABLESIZE.
20787 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20789 2008-10-05 Bruno Haible <bruno@clisp.org>
20791 * modules/sched (Makefile.am): Fix typo.
20792 Reported by Simon Josefsson.
20794 2008-10-05 Jim Meyering <meyering@redhat.com>
20796 bootstrap: check for LT_INIT, too
20797 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20798 are deprecated. Suggestion from Ralf Wildenhues.
20800 2008-10-05 Bruno Haible <bruno@clisp.org>
20802 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20803 overriding them by ours.
20804 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20806 2008-10-05 Jim Meyering <meyering@redhat.com>
20808 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20809 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20810 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
20812 2008-10-04 Bruno Haible <bruno@clisp.org>
20814 * modules/dup2 (License): Change to LGPLv2+.
20815 * modules/sleep (License): Likewise.
20816 * modules/perror (License): Likewise.
20817 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20819 * modules/signal (License): Likewise.
20820 * modules/sigprocmask (License): Likewise.
20821 * modules/raise (License): Change to LGPLv2+, with approval by Jim
20824 2008-10-04 Bruno Haible <bruno@clisp.org>
20826 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20827 Reported by Rainer Tammer <tammer@tammer.net>.
20829 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
20830 Bruno Haible <bruno@clisp.org>
20832 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20833 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20834 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20836 2008-10-03 Kamil Dudka <kdudka@redhat.com>
20838 filevercmp: new module
20839 * lib/filevercmp.h: New function filevercmp comparing version strings.
20840 * lib/filevercmp.c: Implementation of filevercmp function.
20841 * modules/filevercmp: Module metadata.
20842 * tests/test-filevercmp.c: Unit test for new module.
20843 * modules/filevercmp-tests: Unit test metadata.
20844 * MODULES.html.sh: Add filevercmp module.
20846 2008-10-03 Bruno Haible <bruno@clisp.org>
20848 * lib/c-ctype.h: Add comment.
20849 Reported by Jim Meyering.
20851 2008-10-02 Bruno Haible <bruno@clisp.org>
20853 * modules/posix_spawn-internal (Depends-on): Add 'open'.
20855 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20857 * build-aux/bootstrap: Allow renaming bootstrap, and change the
20858 name of bootstrap.conf accordingly.
20860 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20862 * build-aux/bootstrap: Install git-merge-changelog configuration
20863 items into .gitconfig if needed.
20865 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20867 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20868 git repository, and initialize/update it accordingly.
20870 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
20872 * modules/fsync-tests: New file.
20873 * tests/test-fsync.c: New file.
20875 New module 'fsync'.
20876 * lib/fsync.c: New file.
20877 * m4/fsync.m4: New file.
20878 * modules/fsync: New file.
20879 * lib/unistd.in.h (fsync): New declaration.
20880 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20881 GNULIB_FSYNC and HAVE_FSYNC.
20882 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20883 * MODULES.html.sh (posix_functions): Add fsync.
20884 * doc/posix-functions/fsync.texi: Mention the new module.
20886 2008-10-02 Jim Meyering <meyering@redhat.com>
20888 fts.c: sync with similar code from coreutils' remove.c
20889 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20890 Guard also with "#if defined __linux__", since for now at least,
20891 this code is Linux-kernel-specific.
20893 2008-10-02 Jim Meyering <meyering@redhat.com>
20896 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20897 Include <sys/vfs.h>, not <sys/statfs.h>.
20899 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20900 Include <sys/vfs.h>, not <sys/statfs.h>.
20902 2008-10-01 Bruno Haible <bruno@clisp.org>
20904 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20905 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20906 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20907 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20908 * doc/posix-functions/posix_spawnp.texi: Likewise.
20909 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20910 whether posix_spawn actually works.
20911 * m4/pipe.m4 (gl_PIPE): Likewise.
20912 * modules/execute (Files): Add m4/posix_spawn.m4.
20913 * modules/pipe (Files): Add m4/posix_spawn.m4.
20914 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20916 2008-10-01 Jim Meyering <meyering@redhat.com>
20918 remove trailing spaces
20920 * lib/poll.c (poll): Likewise.
20921 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20922 * lib/winsock.c (rpl_close): Likewise.
20923 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20924 * modules/yield: Likewise.
20925 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20926 * tests/test-sys_select.c (connect_to_socket): Likewise.
20928 fts.c: adjust a new interface to be more generally useful
20929 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20930 (fts_build): Adjust caller.
20932 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20934 * modules/cond-tests: New file.
20935 * tests/test-cond.c: New file.
20937 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20938 Bruno Haible <bruno@clisp.org>
20940 * modules/cond (Dependencies): Add errno, time.
20941 * lib/glthread/cond.h: Include <time.h>.
20942 (gl_cond_define, gl_cond_define_initialized): Use the same definition
20945 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20946 Bruno Haible <bruno@clisp.org>
20948 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20950 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20951 Bruno Haible <bruno@clisp.org>
20953 * modules/tls-tests (Depends-on): Add thread, yield.
20954 (configure.ac): Remove all checks.
20955 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20956 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20957 gl_thread_self): Remove definitions. Include glthread/thread.h and
20958 glthread/yield.h instead.
20959 (test_tls): Pass an additional NULL argument to gl_thread_join.
20961 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20962 Bruno Haible <bruno@clisp.org>
20964 * modules/lock-tests (Depends-on): Add thread, yield.
20965 (configure.ac): Remove all checks.
20966 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20967 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20968 gl_thread_self): Remove definitions. Include glthread/thread.h and
20969 glthread/yield.h instead.
20970 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20971 additional NULL argument to gl_thread_join.
20973 2008-09-30 Bruno Haible <bruno@clisp.org>
20975 Fix the Win32 implementation of the 'thread' module.
20976 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20978 (gl_thread_self): Invoke gl_thread_self_func.
20979 (gl_thread_self_func): New declaration.
20980 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20981 (do_init_self_key, init_self_key): New functions.
20982 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20983 Remove some fields.
20984 (running_threads, running_lock): Remove variables.
20985 (get_current_thread_handle): New function.
20986 (gl_thread_self_func, wrapper_func, glthread_create_func,
20987 glthread_join_func, gl_thread_exit_func): Largely rewritten and
20990 2008-09-30 Bruno Haible <bruno@clisp.org>
20992 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20995 2008-09-30 Jim Meyering <meyering@redhat.com>
20997 fts.m4: correct the test for statfs.f_type
20998 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20999 when checking for statfs.f_type.
21001 2008-09-15 Simon Josefsson <simon@josefsson.org>
21003 tests: avoid some compiler warnings
21004 * tests/test-memchr.c (main): Pass NULL indirectly.
21005 * tests/test-getdate.c (main): Remove unused variable 'ret'.
21007 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
21009 getdate.y: disallow countable dayshifts like "4 yesterday ago"
21010 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21011 exactly specified dayshifts.
21012 (dayshift): New rule.
21013 (rel): Add dayshift.
21014 (relative_time_table) [tomorrow, yesterday, today, now]:
21015 Use tDAY_SHIFT in place of tDAY_UNIT.
21016 * tests/test-getdate.c: Add tests for now-disallowed countable
21017 dayshifts, e.g., "4 yesterday ago".
21019 2008-09-29 Bruno Haible <bruno@clisp.org>
21021 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21022 * tests/test-posix_spawn1.in.sh: Renamed from
21023 tests/test-posix_spawn.in.sh.
21024 * tests/test-posix_spawn2.c: New file.
21025 * tests/test-posix_spawn2.in.sh: New file.
21026 * modules/posix_spawnp-tests (Files): Update.
21027 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21029 2008-09-29 Bruno Haible <bruno@clisp.org>
21031 Propagate effects of putenv/setenv/unsetenv to child processes.
21032 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21033 * lib/pipe.c (create_pipe): Likewise.
21035 2008-09-29 Bruno Haible <bruno@clisp.org>
21037 Enable use of shell scripts as executables in mingw.
21038 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21039 run the program as a shell script.
21040 * lib/pipe.c (create_pipe): Likewise.
21041 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21044 2008-09-29 Eric Blake <ebb9@byu.net>
21046 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21048 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
21050 * doc/posix-functions/accept.texi: Update mingw problems.
21051 * doc/posix-functions/bind.texi: Update mingw problems.
21052 * doc/posix-functions/close.texi: Update mingw problems.
21053 * doc/posix-functions/connect.texi: Update mingw problems.
21054 * doc/posix-functions/getpeername.texi: Update mingw problems.
21055 * doc/posix-functions/getsockname.texi: Update mingw problems.
21056 * doc/posix-functions/getsockopt.texi: Update mingw problems.
21057 * doc/posix-functions/ioctl.texi: Update mingw problems.
21058 * doc/posix-functions/listen.texi: Update mingw problems.
21059 * doc/posix-functions/recv.texi: Update mingw problems.
21060 * doc/posix-functions/recvfrom.texi: Update mingw problems.
21061 * doc/posix-functions/select.texi: Update mingw problems.
21062 * doc/posix-functions/send.texi: Update mingw problems.
21063 * doc/posix-functions/sendto.texi: Update mingw problems.
21064 * doc/posix-functions/setsockopt.texi: Update mingw problems.
21065 * doc/posix-functions/socket.texi: Update mingw problems.
21067 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
21068 Bruno Haible <bruno@clisp.org>
21070 * lib/sys_select.in.h: Include sys/time.h.
21071 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21072 * modules/sys_select: Depend on sys_time.
21073 * tests/test-sys_select.c: Test that sys/select.h defines struct
21076 2008-09-29 Bruno Haible <bruno@clisp.org>
21078 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21079 * lib/sys_select.in.h: Likewise.
21081 2008-09-29 Bruno Haible <bruno@clisp.org>
21083 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21085 2008-09-29 Bruno Haible <bruno@clisp.org>
21087 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21088 Set LIBSOCKET instead of augmenting LIBS.
21089 * modules/sockets (Link): New section.
21090 * modules/sockets-tests (test_sockets_LDADD): New variable.
21091 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21092 * modules/poll-tests (test_poll_LDADD): New variable.
21093 * NEWS: Document the change.
21095 2008-09-29 Bruno Haible <bruno@clisp.org>
21097 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21098 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21099 ARPA_INET_H directly.
21100 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21102 2008-09-28 Bruno Haible <bruno@clisp.org>
21104 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21105 from gl_HEADER_SYS_SOCKET.
21106 (gl_HEADER_SYS_SOCKET): Invoke it.
21107 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21109 2008-09-28 Bruno Haible <bruno@clisp.org>
21111 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21112 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21113 Needed on OSF/1 4.0.
21115 2008-09-28 Bruno Haible <bruno@clisp.org>
21117 Override open more carefully.
21118 * lib/open.c (orig_open): New function.
21119 (rpl_open): Use orig_open instead of open.
21120 * lib/fcntl.in.h: Add special invocation convention.
21121 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21122 (gl_FUNC_OPEN): Invoke it.
21124 Override freopen more carefully.
21125 * lib/freopen.c (orig_freopen): New function.
21126 (rpl_freopen): Use orig_freopen instead of freopen.
21127 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21128 (gl_FUNC_FREOPEN): Invoke it.
21130 Override fopen more carefully.
21131 * lib/fopen.c (orig_fopen): New function.
21132 (rpl_fopen): Use orig_fopen instead of fopen.
21133 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21134 (gl_FUNC_FOPEN): Invoke it.
21135 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21137 2008-09-28 Bruno Haible <bruno@clisp.org>
21139 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21142 2008-09-28 Bruno Haible <bruno@clisp.org>
21144 * tests/test-sigaction.c (handler, main): Disable the check whether
21145 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21146 glibc systems with LinuxThreads.
21148 2008-09-28 Bruno Haible <bruno@clisp.org>
21150 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21152 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21154 * lib/fcntl.in.h (open): Likewise.
21155 Reported by Rainer Tammer <tammer@tammer.net>.
21157 2008-09-28 Bruno Haible <bruno@clisp.org>
21159 * modules/posix_spawnp-tests: New file.
21160 * tests/test-posix_spawn.c: New file.
21161 * tests/test-posix_spawn.in.sh: New file.
21163 New module 'posix_spawnp'.
21164 * modules/posix_spawnp: New file.
21165 * lib/spawnp.c: New file, from GNU libc with modifications.
21166 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21168 New module 'posix_spawn'.
21169 * modules/posix_spawn: New file.
21170 * lib/spawn.c: New file, from GNU libc with modifications.
21171 * doc/posix-functions/posix_spawn.texi: Mention the new module.
21173 New module 'posix_spawnattr_destroy'.
21174 * modules/posix_spawnattr_destroy: New file.
21175 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21176 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21179 New module 'posix_spawnattr_setsigmask'.
21180 * modules/posix_spawnattr_setsigmask: New file.
21181 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21183 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21186 New module 'posix_spawnattr_getsigmask'.
21187 * modules/posix_spawnattr_getsigmask: New file.
21188 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21190 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21193 New module 'posix_spawnattr_setsigdefault'.
21194 * modules/posix_spawnattr_setsigdefault: New file.
21195 * lib/spawnattr_setdefault.c: New file, from GNU libc with
21197 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21200 New module 'posix_spawnattr_getsigdefault'.
21201 * modules/posix_spawnattr_getsigdefault: New file.
21202 * lib/spawnattr_getdefault.c: New file, from GNU libc with
21204 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21207 New module 'posix_spawnattr_setschedpolicy'.
21208 * modules/posix_spawnattr_setschedpolicy: New file.
21209 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21211 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21214 New module 'posix_spawnattr_getschedpolicy'.
21215 * modules/posix_spawnattr_getschedpolicy: New file.
21216 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21218 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21221 New module 'posix_spawnattr_setschedparam'.
21222 * modules/posix_spawnattr_setschedparam: New file.
21223 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21225 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21228 New module 'posix_spawnattr_getschedparam'.
21229 * modules/posix_spawnattr_getschedparam: New file.
21230 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21232 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21235 New module 'posix_spawnattr_setpgroup'.
21236 * modules/posix_spawnattr_setpgroup: New file.
21237 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21239 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21242 New module 'posix_spawnattr_getpgroup'.
21243 * modules/posix_spawnattr_getpgroup: New file.
21244 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21246 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21249 New module 'posix_spawnattr_setflags'.
21250 * modules/posix_spawnattr_setflags: New file.
21251 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21252 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21255 New module 'posix_spawnattr_getflags'.
21256 * modules/posix_spawnattr_getflags: New file.
21257 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21258 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21261 New module 'posix_spawnattr_init'.
21262 * modules/posix_spawnattr_init: New file.
21263 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21264 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21267 New module 'posix_spawn_file_actions_destroy'.
21268 * modules/posix_spawn_file_actions_destroy: New file.
21269 * lib/spawn_faction_destroy.c: New file, from GNU libc with
21271 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21274 New module 'posix_spawn_file_actions_addopen'.
21275 * modules/posix_spawn_file_actions_addopen: New file.
21276 * lib/spawn_faction_addopen.c: New file, from GNU libc with
21278 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21281 New module 'posix_spawn_file_actions_adddup2'.
21282 * modules/posix_spawn_file_actions_adddup2: New file.
21283 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21285 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21288 New module 'posix_spawn_file_actions_addclose'.
21289 * modules/posix_spawn_file_actions_addclose: New file.
21290 * lib/spawn_faction_addclose.c: New file, from GNU libc with
21292 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21295 New module 'posix_spawn_file_actions_init'.
21296 * modules/posix_spawn_file_actions_init: New file.
21297 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21298 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21301 New module 'posix_spawn-internal'.
21302 * modules/posix_spawn-internal: New file.
21303 * lib/spawn_int.h: New file, from GNU libc with modifications.
21304 * lib/spawni.c: New file, from GNU libc with modifications.
21305 * m4/posix_spawn.m4: New file.
21307 New module 'spawn'.
21308 * modules/spawn: New file.
21309 * lib/spawn.in.h: New file, from GNU libc with modifications.
21310 * m4/spawn_h.m4: New file.
21311 * doc/posix-headers/spawn.texi: Mention the new module.
21313 2008-09-28 Bruno Haible <bruno@clisp.org>
21315 * modules/sched-tests: New file.
21316 * tests/test-sched.c: New file.
21318 New module 'sched'.
21319 * modules/sched: New file.
21320 * lib/sched.in.h: New file.
21321 * m4/sched_h.m4: New file.
21322 * doc/posix-headers/sched.texi: Mention the new module.
21324 2008-09-27 Eric Blake <ebb9@byu.net>
21326 Fix previous patch, and tweak references to $0.
21327 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21328 (func_version, func_gnulib_dir): Don't call this program
21330 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21331 with using $0 in function.
21332 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21333 (func_fatal_error): Reuse the name the user invoked us with.
21335 2008-09-27 Bruno Haible <bruno@clisp.org>
21337 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21338 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21339 (gl_ICONV_H): Not here.
21340 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21341 instead of assigning ICONV_H directly.
21343 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21344 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21347 2008-09-27 Bruno Haible <bruno@clisp.org>
21349 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21350 * modules/arpa_inet (Depends-on): Add link-warning.
21351 (Makefile.am): Insert the definition of GL_LINK-WARNING.
21352 * modules/unistd (Makefile.am): Likewise.
21354 2008-09-26 Bruno Haible <bruno@clisp.org>
21356 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21358 (func_version): Essentially copied from gnulib-tool.
21359 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21360 func_readlink): Copied from gnulib-tool.
21362 2008-09-26 Bruno Haible <bruno@clisp.org>
21364 * gnulib-tool (func_version): Change directory to $gnulib_dir before
21365 invoking git-version-gen.
21367 2008-09-26 Bruno Haible <bruno@clisp.org>
21369 * posix-modules: Update to directory names changed on 2008-01-19.
21370 Remove commas in output before splitting into words. No more need to
21371 avoid 'ftruncate' since 2007-02-19.
21373 2008-09-26 Bruno Haible <bruno@clisp.org>
21375 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21377 2008-09-26 Bruno Haible <bruno@clisp.org>
21379 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21380 * modules/fwriteerror (Depends-on): Add errno.
21382 2008-09-26 Bruno Haible <bruno@clisp.org>
21384 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21385 * tests/test-vc-list-files-cvs.sh: Likewise.
21387 2008-09-26 Bruno Haible <bruno@clisp.org>
21389 * doc/posix-headers/sys_resource.texi: Reorder items.
21391 2008-09-26 Jim Meyering <meyering@redhat.com>
21393 fts: tweak inode comparison function
21394 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21395 inode numbers, as documented.
21397 fts: sort dirent entries on inode number before traversing
21398 This avoids a quadratic, seek-related performance penalty when
21399 operating on a directory containing many entries (measurable at 10k;
21400 3.5 hours at 2 million entries with a cold cache) on certain types
21401 of file systems, including ext3 and ext4, but not tmpfs.
21402 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21403 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21404 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21405 (fs_handles_readdir_ordered_dirents_efficiently): New function.
21406 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21407 (fts_build): Set the stat.st_ino member from D_INO.
21408 If it is likely to be useful, sort dirent entries on inode number.
21410 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21411 and the struct statfs.f_type member.
21412 * modules/fts (Depends-on): Add d-ino.
21414 2008-09-26 Bruno Haible <bruno@clisp.org>
21416 * modules/sigpipe-die (Depends-on): Add sigpipe.
21418 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21419 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21420 and GNULIB_STDIO_H_SIGPIPE are set.
21421 * lib/stdio-write.c: New file.
21422 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21423 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21424 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21425 REPLACE_STDIO_WRITE_FUNCS.
21426 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21427 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21428 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21429 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21430 * modules/stdio (Files): Add lib/stdio-write.c.
21431 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21432 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21433 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21434 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21435 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21436 REPLACE_FPRINTF_POSIX.
21437 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21438 REPLACE_PRINTF_POSIX.
21439 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21440 REPLACE_VFPRINTF_POSIX.
21441 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21442 REPLACE_VPRINTF_POSIX.
21443 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21445 * doc/posix-functions/fputc.texi: Likewise.
21446 * doc/posix-functions/fputs.texi: Likewise.
21447 * doc/posix-functions/fwrite.texi: Likewise.
21448 * doc/posix-functions/printf.texi: Likewise.
21449 * doc/posix-functions/putc.texi: Likewise.
21450 * doc/posix-functions/putchar.texi: Likewise.
21451 * doc/posix-functions/puts.texi: Likewise.
21452 * doc/posix-functions/vfprintf.texi: Likewise.
21453 * doc/posix-functions/vprintf.texi: Likewise.
21455 * modules/safe-write (Depends-on): Add write.
21457 * modules/sigpipe-tests: New file.
21458 * tests/test-sigpipe.c: New file.
21459 * tests/test-sigpipe.sh: New file.
21461 * modules/write: New file.
21462 * lib/unistd.in.h: Include <sys/types.h>.
21463 (write): New declaration.
21464 * lib/write.c: New file.
21465 * m4/write.m4: New file.
21466 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21467 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21468 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21469 GNULIB_WRITE, REPLACE_WRITE.
21470 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21471 and the SIGPIPE issue.
21473 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21474 (raise): New declaration.
21475 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21476 (ext_signal): New function.
21477 (rpl_raise): New function.
21478 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21479 GNULIB_SIGNAL_H_SIGPIPE.
21480 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21481 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21483 * modules/sigpipe: New file.
21484 * m4/sigpipe.m4: New file.
21486 2008-09-25 Derek Price <derek@ximbiot.com>
21487 Bruno Haible <bruno@clisp.org>
21489 * gnulib-tool (func_import): Report all license incompatibilities, not
21490 just the first one.
21492 2008-09-25 Bruno Haible <bruno@clisp.org>
21494 * gnulib-tool (func_import): When computing the edits, consider not
21495 only the Makefile.ams that exist but also those that will be generated.
21497 2008-09-25 Simon Josefsson <simon@josefsson.org>
21499 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21500 fixes gnulib-tool --test warning about duplicate dependency.
21502 2008-09-25 Bruno Haible <bruno@clisp.org>
21504 * gnulib-tool: Don't ask the user to perform edits in the generated
21506 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21507 apply to the Makefile.am being generated.
21508 (func_emit_tests_Makefile_am): Execute edits that apply to the
21509 Makefile.am being generated.
21510 (func_import): Setup list of Makefile.am edits before emitting the
21511 Makefile.ams, not at the end.
21512 (func_create_testdir): Update.
21513 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21515 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21517 * gnulib-tool (func_import): Store the --tests-base option in the
21518 comment in gnulib-cache.m4.
21520 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
21522 * NEWS: Document increased portability that sys_select now provides.
21524 * lib/sys_select.in.h: Install select wrapper.
21525 * lib/sys_socket.in.h: Use more descriptive name when there is no
21527 * lib/winsock-select.c: New.
21528 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21529 Require gl_HEADER_SYS_SOCKET.
21530 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21531 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21532 * tests/test-sys_select.c: Add functional tests.
21534 2008-09-24 Eric Blake <ebb9@byu.net>
21536 open, fopen: close fd leak in last patch
21537 * lib/open.c (rpl_open): Close fd before returning error.
21538 * lib/fopen.c (rpl_fopen): Close fd before returning error.
21539 * doc/posix-functions/open.texi (open): Document that Irix also
21541 * doc/posix-functions/fopen.texi (fopen): Likewise.
21542 Reported by Paolo Bonzini.
21544 2008-09-24 Bruno Haible <bruno@clisp.org>
21546 Ensure that a filename ending in a slash cannot be used to access a
21548 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21549 to check whether it's really a directory.
21550 * lib/fopen.c: Include fcntl.h, unistd.h.
21551 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21553 * modules/fopen (Depends-on): Add unistd.
21554 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21555 * tests/test-fopen.c (main): Likewise.
21556 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21557 * doc/posix-functions/fopen.texi: Likewise.
21558 Reported by Eric Blake.
21560 2008-09-23 Eric Blake <ebb9@byu.net>
21562 c-stack: avoid compiler optimizations when provoking overflow
21563 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21564 recursion harder to optimize, to ensure a stack overflow occurs.
21565 * tests/test-c-stack.c (recurse): Likewise.
21566 Borrowed from libsigsegv.
21568 c-stack: work around Irix sigaltstack bug
21569 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21570 whether sigaltstack uses wrong end of stack_t (copied in part from
21572 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21573 Irix bug, without requiring an over-allocation.
21574 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21577 fopen: document mingw bug on directories
21578 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21579 not allowing a stream visiting a directory, even though reading
21580 from such a stream is not portable.
21582 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21584 * lib/poll.c: Rewrite.
21585 * modules/poll: Depend on alloca.
21587 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21589 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21590 instead define prototypes for a full set of wrappers. Ensure
21591 that Cygwin does not use the compatibility code, which is only
21593 * lib/winsock.c: New.
21594 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21595 * modules/sys_socket: Add lib/winsock.c.
21597 * modules/poll-tests: Add errno and perror.
21598 * tests/test-poll.c: Use ioctl, not ioctlsocket.
21600 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21602 * tests/test-poll.c: Downgrade minimum needed Winsock version.
21604 2008-09-23 Bruno Haible <bruno@clisp.org>
21606 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21607 * doc/glibc-functions/*: Likewise.
21609 2008-09-23 Simon Josefsson <simon@josefsson.org>
21611 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21614 2008-09-22 Eric Blake <ebb9@byu.net>
21615 Bruno Haible <bruno@clisp.org>
21617 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21618 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21619 supply %A but mishandle pseudo-NaN.
21620 Reported by Simon Josefsson.
21622 2008-09-21 Bruno Haible <bruno@clisp.org>
21624 * tests/test-lock.c (main): Tweak skip message.
21625 * tests/test-tls.c (main): Likewise.
21627 2008-09-21 Bruno Haible <bruno@clisp.org>
21629 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21630 whether 'struct sigaction' has sa_sigaction here...
21631 (gl_PREREQ_SIG_HANDLER_H): ... not here.
21632 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21634 2008-09-21 Bruno Haible <bruno@clisp.org>
21636 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21638 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21639 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21641 (Support for obsolete systems lacking POSIX:2001): New section.
21642 (String handling <string.h>): Move strdup to the new section.
21643 Suggested by Simon Josefsson and Paolo Bonzini.
21645 2008-09-21 Bruno Haible <bruno@clisp.org>
21647 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21648 exponents in %e and %g results on 'long double'. Needed for mingw's
21649 improved *printf functions.
21650 * tests/test-vasprintf-posix.c (test_function): Likewise.
21651 * tests/test-snprintf-posix.h (test_function): Likewise.
21652 * tests/test-sprintf-posix.h (test_function): Likewise.
21653 Reported by Eric Blake.
21655 2008-09-21 Bruno Haible <bruno@clisp.org>
21657 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21658 * tests/test-sprintf-posix.h (test_function): Likewise.
21660 2008-09-21 Bruno Haible <bruno@clisp.org>
21662 * modules/getpass (Depends-on): Add strdup-posix.
21664 New module 'strdup-posix'.
21665 * modules/strdup-posix: New file.
21666 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21667 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21668 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21670 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21671 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21672 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21675 * modules/strdup (Depends-on): Remove malloc-posix.
21677 2008-09-20 Bruno Haible <bruno@clisp.org>
21679 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21682 2008-09-20 Bruno Haible <bruno@clisp.org>
21684 Ensure that wint_t gets defined on IRIX 5.3.
21685 * lib/wchar.in.h (wint_t): Define if not defined by the system.
21686 * lib/wctype.in.h (wint_t): Likewise.
21687 (__wctype_wint_t): Remove type.
21688 (isw*): Use wint_t instead of __wctype_wint_t.
21689 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21690 * modules/wchar (Files): Add m4/wint_t.m4.
21691 (Makefile.am): Substitute HAVE_WINT_T.
21692 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21693 * tests/test-wctype.c: Check that wint_t is defined.
21694 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21695 * doc/posix-headers/wctype.texi: Likewise.
21696 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21698 2008-09-18 Bruno Haible <bruno@clisp.org>
21700 * gnulib-tool (func_exit): Update comment.
21702 2008-09-18 Simon Josefsson <simon@josefsson.org>
21704 * modules/getaddrinfo (Depends-on): Remove strdup, this module
21705 assumes strdup exists and does not depend on strdup to return
21706 ENOMEM on out of memory conditions.
21708 2008-09-18 Bruno Haible <bruno@clisp.org>
21710 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21711 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21712 digits for the exponent.
21714 2008-09-18 Jim Meyering <meyering@redhat.com>
21715 Bruno Haible <bruno@clisp.org>
21717 * lib/vasnprintf.c (decimal_point_char): Define also if
21718 NEED_PRINTF_INFINITE_LONG_DOUBLE.
21720 2008-09-16 Bruno Haible <bruno@clisp.org>
21721 and Eric Blake <ebb9@byu.net>
21723 vasnprintf: support Irix 5.3
21724 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21725 that mishandle long double infinity.
21726 Reported by Tom G. Christensen.
21728 2008-09-16 Bruno Haible <bruno@clisp.org>
21730 * doc/glibc-functions/scandir.texi: Mention the function is missing on
21732 * doc/glibc-functions/alphasort.texi: Likewise.
21733 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21735 2008-09-16 Jim Meyering <meyering@redhat.com>
21737 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21738 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21739 a umask modification leak out of a subshell. Otherwise, the
21740 opensolaris /bin/sh would be accepted and thus cause unwarranted
21741 failures in the coreutils test suite.
21743 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
21745 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21748 2008-09-16 Jim Meyering <meyering@redhat.com>
21750 avoid spurious test failure when library is built without ACL support
21751 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21752 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21753 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21754 * tests/test-copy-acl.sh: Likewise.
21756 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21758 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21759 based on character occurrence counts.
21761 2008-09-15 Eric Blake <ebb9@byu.net>
21763 tests: avoid some compiler warnings
21764 * tests/test-memchr.c (main): Pass NULL indirectly.
21765 * tests/test-closein.c (main): Avoid unused variable.
21767 2008-09-15 Bruno Haible <bruno@clisp.org>
21769 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21770 are missing on OpenBSD 4.0 individually.
21771 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21773 2008-09-15 Bruno Haible <bruno@clisp.org>
21775 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21776 * doc/posix-functions/strerror.texi: Mention also Cygwin.
21777 * doc/posix-functions/perror.texi: Likewise.
21778 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21780 Reported by Eric Blake.
21782 * lib/errno.in.h: Use replacement values >= 2000.
21783 Reported by Eric Blake.
21785 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21787 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21788 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21790 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21791 compareseq was aborted.
21793 2008-09-14 Bruno Haible <bruno@clisp.org>
21795 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21797 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21798 (fstrcmp_bounded): Simplify result computation accordingly.
21800 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21802 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21803 (fstrcmp): Define in terms of fstrcmp_bounded.
21804 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21805 lower_bound argument.
21806 Return quickly if the result is certainly < lower_bound.
21807 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21809 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21811 * lib/diffseq.h (EARLY_ABORT): New macro.
21812 (compareseq): Change return type to bool. Return true when EARLY_ABORT
21815 2008-09-14 Bruno Haible <bruno@clisp.org>
21817 * modules/perror-tests: New file.
21818 * tests/test-perror.sh: New file.
21819 * tests/test-perror.c: New file.
21821 New module 'perror'.
21822 * lib/stdio.in.h (perror): New declaration.
21823 * lib/perror.c: New file.
21824 * m4/perror.m4: New file.
21825 * modules/perror: New file.
21826 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21827 * doc/posix-functions/perror.texi: Mention the perror module.
21828 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21830 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21833 2008-09-14 Bruno Haible <bruno@clisp.org>
21835 * modules/stdio (Makefile.am): Reorder to match the order in
21837 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21839 2008-09-13 Bruno Haible <bruno@clisp.org>
21841 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21843 2008-09-13 Bruno Haible <bruno@clisp.org>
21845 Extend strerror to cover the added errno values.
21846 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21847 (rpl_strerror): Provide error messages for the added errno values and
21848 for the WSA* values.
21849 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21850 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21852 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21853 * modules/strerror (Depends-on): Add errno.
21854 * doc/posix-functions/strerror.texi: Document the change.
21855 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21858 2008-09-13 Bruno Haible <bruno@clisp.org>
21860 * modules/EOVERFLOW: Remove file.
21861 * m4/eoverflow.m4: Remove file.
21862 * modules/EOVERFLOW-tests: Remove file.
21863 * tests/test-EOVERFLOW.c: Remove file.
21864 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21865 * modules/ftell (Depends-on): Likewise.
21866 * modules/getdelim (Depends-on): Likewise.
21867 * modules/getugroups (Depends-on): Likewise.
21868 * modules/poll (Depends-on): Likewise.
21869 * modules/snprintf (Depends-on): Likewise.
21870 * modules/sprintf-posix (Depends-on): Likewise.
21871 * modules/vasnprintf (Depends-on): Likewise.
21872 * modules/vasprintf (Depends-on): Likewise.
21873 * modules/vfprintf-posix (Depends-on): Likewise.
21874 * modules/vsnprintf (Depends-on): Likewise.
21875 * modules/vsprintf-posix (Depends-on): Likewise.
21876 * modules/xvasprintf (Depends-on): Likewise.
21877 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21878 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21879 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21880 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21881 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21882 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21883 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21884 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21885 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21886 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21887 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21888 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21889 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21890 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21891 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21892 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21893 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21894 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21895 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21896 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21897 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21898 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21899 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21900 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21901 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21902 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21903 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21904 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21905 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21906 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21907 * MODULES.html.sh: Remove EOVERFLOW.
21908 * NEWS: Mention the change.
21910 2008-09-13 Bruno Haible <bruno@clisp.org>
21912 * modules/errno-tests: New file.
21913 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21915 * lib/errno.in.h: New file.
21916 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21917 * modules/errno: New file.
21918 * doc/posix-headers/errno.texi: Update documentation.
21919 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21921 2008-09-13 Bruno Haible <bruno@clisp.org>
21923 * tests/test-poll.c: Use #if for native Windows, rather than testing
21926 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21927 Bruno Haible <bruno@clisp.org>
21929 * lib/glob.c: Don't include <pwd.h> on native Windows.
21930 (WINDOWS32): New macro.
21931 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21933 2008-09-13 Bruno Haible <bruno@clisp.org>
21935 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21936 (ETIMEDOUT): Remove macro.
21937 (glthread_cond_timedwait_multithreaded): New declaration.
21938 (glthread_cond_timedwait): Use it.
21939 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21940 (glthread_cond_timedwait_multithreaded): New function.
21942 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21944 * modules/poll-tests: Do not check for io.h.
21945 * tests/test-poll.c: Check for __MSVCRT__ instead.
21947 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21949 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21950 * modules/poll-tests: Add inet_pton, stdbool, sockets.
21951 * tests/test-poll.c: Use them. Use _pipe on Windows.
21953 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21955 * modules/poll-tests: New.
21956 * tests/test-poll.c: New.
21958 2008-09-12 Eric Blake <ebb9@byu.net>
21960 frexp: test for NetBSD failure on -0.0
21961 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21962 not all, bugs from NetBSD 3.0 have been fixed.
21963 * doc/posix-functions/frexp.texi (frexp): Document bug.
21964 Reported by Thomas Klausner.
21966 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21967 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21969 Reported by Jonathan C. Patschke <jp@centtech.com>.
21971 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21973 * lib/glthread/cond.h: Use dummy implementation also if
21976 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21978 * modules/fnmatch-posix (License): Change to LGPLv2+.
21979 * modules/fnmatch-gnu (License): Likewise.
21981 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21983 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21985 2008-09-11 Jim Meyering <meyering@redhat.com>
21987 * users.txt: Add gtk-vnc.
21989 2008-09-08 Simon Josefsson <simon@josefsson.org>
21991 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21994 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21995 required for 16-bit and 8-bit rotates.
21996 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21997 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21998 UINT8_MAX instead of hard-coded constants.
21999 Suggested by Paul Eggert.
22001 2008-09-07 Bruno Haible <bruno@clisp.org>
22003 * tests/test-striconveh.c (main): Check behaviour when converting from
22006 Make striconveh work better with stateful encodings.
22007 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22008 that iconv does not increment the inptr when returning -1/EINVAL.
22010 2008-09-07 Bruno Haible <bruno@clisp.org>
22012 * build-aux/config.rpath: Update according to libtool-2.2.6.
22013 * build-aux/config.libpath: Likewise.
22015 2008-09-06 Bruno Haible <bruno@clisp.org>
22017 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22018 * lib/freadptr.c (freadptr): Likewise.
22019 * lib/freadseek.c (freadptrinc): Likewise.
22020 Reported by Simon Josefsson.
22022 2008-09-06 Bruno Haible <bruno@clisp.org>
22024 * modules/freadptr (License): Change to LGPLv2+.
22025 * modules/freadseek (License): Likewise.
22026 Suggested by Eric Blake.
22028 * modules/memchr2 (License): Change to LGPLv2+.
22029 Approved by Eric Blake.
22031 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22032 Bruno Haible <bruno@clisp.org>
22034 Make gnulib-tool work with native 'sed' on AIX.
22035 * gnulib-tool (sed_noop): New variable.
22036 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22037 func_add_or_update, func_create_testdir): Use it to initialize sed
22039 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22041 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
22042 Bruno Haible <bruno@clisp.org>
22044 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22045 also works after #include directives.
22047 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22049 getdate.y: reject an out-of-range timezone value
22050 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22051 the range [-24...+24]. When specified with only one or two digits,
22052 * tests/test-getdate.c: Tests for the fix.
22053 * doc/getdate.texi: Document this change.
22055 2008-09-03 Bruno Haible <bruno@clisp.org>
22057 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22059 2008-09-02 Simon Josefsson <simon@josefsson.org>
22061 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
22062 <bruce.korb@gmail.com> with ideas from Ben Pfaff
22063 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22064 Blake <ebb9@byu.net>.
22066 * tests/test-bitrotate.c: Add more test vectors.
22068 2008-09-02 Eric Blake <ebb9@byu.net>
22070 vasnprintf-posix: handle large precision via %.*d
22071 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22072 when handling it ourselves.
22073 * tests/test-vasnprintf-posix.c (test_function): Add test.
22074 * tests/test-snprintf-posix.h (test_function): Likewise.
22075 * tests/test-sprintf-posix.h (test_function): Likewise.
22076 * tests/test-vasprintf-posix.c (test_function): Likewise.
22077 Reported by Alain Guibert.
22079 2008-09-01 Eric Blake <ebb9@byu.net>
22081 c-stack: make configure-time check more robust
22082 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22083 successful sigaction call.
22084 Reported by Tom G. Christensen.
22086 2008-09-01 Bruno Haible <bruno@clisp.org>
22088 New module 'findprog-lgpl'.
22089 * modules/findprog-lgpl: New file.
22090 * lib/findprog-lgpl.c: New file.
22091 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22092 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22093 to decide whether to use strdup or xstrdup, concatenated_filename or
22094 xconcatenated_filename.
22096 2008-09-01 Bruno Haible <bruno@clisp.org>
22098 Split module 'concat-filename' into 'concat-filename' (LGPL) and
22099 'xconcat-filename' (GPL).
22100 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22101 (License): Change to LGPLv2+.
22102 * modules/xconcat-filename: New file.
22103 * lib/concat-filename.h (concatenated_filename): Change specification.
22104 (xconcatenated_filename): New declaration.
22105 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22106 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22108 * lib/xconcat-filename.c: New file.
22109 * NEWS: Mention the change.
22110 * lib/findprog.c: Include concat-filename.h, not filename.h.
22111 (find_in_path): Use xconcatenated_filename instead of
22112 concatenated_filename.
22113 * lib/javacomp.c: Include concat-filename.h, not filename.h.
22114 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22115 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22116 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22117 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22118 instead of concatenated_filename.
22119 * lib/javaexec.c: Include concat-filename.h, not filename.h.
22120 (execute_java_class): Use xconcatenated_filename instead of
22121 concatenated_filename.
22122 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22123 * modules/javacomp (Depends-on): Likewise.
22124 * modules/javaexec (Depends-on): Likewise.
22126 2008-09-01 Bruno Haible <bruno@clisp.org>
22128 Split module 'filename' into 'filename' and 'concat-filename'.
22129 * modules/filename: Keep only lib/filename.h.
22130 (License): Change to LGPLv2+.
22131 * modules/concat-filename: New file, extracted from modules/filename.
22132 * lib/filename.h (concatenated_filename): Remove declaration.
22133 * lib/concat-filename.h: New file, extracted from lib/filename.h.
22134 * lib/concat-filename.c: Include concat-filename.h.
22135 * NEWS: Mention the change.
22137 2008-09-01 Simon Josefsson <simon@josefsson.org>
22139 * lib/bitrotate.h (rotl8, rotr8): Add.
22141 * modules/bitrotate (configure.ac): Need
22142 AC_REQUIRE([AC_C_INLINE]).
22143 (Description): Mention stdint.h. Reported by Bruno Haible
22146 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
22147 Paolo Bonzini <bonzini@gnu.org>.
22149 2008-08-31 Bruno Haible <bruno@clisp.org>
22151 Assume Solaris specific bi-arch conventions on Solaris systems.
22152 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22153 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22154 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22155 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22156 like acl_libdirstem.
22157 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22159 * NEWS: Mention the change.
22160 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22162 2008-08-31 Jim Meyering <meyering@redhat.com>
22164 * lib/strftime.h: Add comments describing the two added arguments.
22166 remove duplicate #include directives
22167 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22168 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22170 2008-08-31 Bruno Haible <bruno@clisp.org>
22172 New module 'sigpipe-die'.
22173 * modules/sigpipe-die: New file.
22174 * lib/sigpipe-die.h: New file.
22175 * lib/sigpipe-die.c: New file.
22176 * MODULES.html.sh (Signal handling): Add sigpipe-die.
22178 2008-08-31 Bruno Haible <bruno@clisp.org>
22180 Don't override previously installed signal handlers.
22181 * lib/fatal-signal.c (saved_sigactions): New variable.
22182 (uninstall_handlers): Reset the signal to the saved handler, not
22183 to SIG_DFL (except when ignored).
22184 (install_handlers): Save the previous handlers.
22186 2008-08-30 Bruno Haible <bruno@clisp.org>
22188 * gnulib-tool (func_reset_sigpipe): New function.
22189 (func_get_automake_snippet, func_modules_transitive_closure,
22190 func_import): Invoke it before a join command that reads from stdin,
22191 to avoid "echo: write error: Broken pipe" error messages on stderr.
22192 Reported by Sam Steingold <sds@gnu.org>.
22194 2008-08-30 Bruno Haible <bruno@clisp.org>
22196 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22197 Code copied from m4/open.m4.
22198 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22199 access and the filename ends in a slash. Code copied from lib/open.c.
22200 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22201 * tests/test-fopen.c (main): Check against bug with trailing slash.
22203 2008-08-29 Bruno Haible <bruno@clisp.org>
22205 Avoid some "gcc -pedantic" warnings.
22206 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22207 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22208 * lib/dirent.in.h: Likewise.
22209 * lib/fcntl.in.h: Likewise.
22210 * lib/float.in.h: Likewise.
22211 * lib/iconv.in.h: Likewise.
22212 * lib/inttypes.in.h: Likewise.
22213 * lib/locale.in.h: Likewise.
22214 * lib/math.in.h: Likewise.
22215 * lib/netinet_in.in.h: Likewise.
22216 * lib/search.in.h: Likewise.
22217 * lib/signal.in.h: Likewise.
22218 * lib/stdarg.in.h: Likewise.
22219 * lib/stdint.in.h: Likewise.
22220 * lib/stdio.in.h: Likewise.
22221 * lib/stdlib.in.h: Likewise.
22222 * lib/string.in.h: Likewise.
22223 * lib/strings.in.h: Likewise.
22224 * lib/sys_select.in.h: Likewise.
22225 * lib/sys_socket.in.h: Likewise.
22226 * lib/sys_stat.in.h: Likewise.
22227 * lib/sys_time.in.h: Likewise.
22228 * lib/sysexits.in.h: Likewise.
22229 * lib/time.in.h: Likewise.
22230 * lib/unistd.in.h: Likewise.
22231 * lib/wchar.in.h: Likewise.
22232 * lib/wctype.in.h: Likewise.
22233 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22234 * modules/fchdir (Makefile.am): Likewise.
22235 * modules/fcntl (Makefile.am): Likewise.
22236 * modules/float (Makefile.am): Likewise.
22237 * modules/iconv_open (Makefile.am): Likewise.
22238 * modules/inttypes (Makefile.am): Likewise.
22239 * modules/locale (Makefile.am): Likewise.
22240 * modules/math (Makefile.am): Likewise.
22241 * modules/netinet_in (Makefile.am): Likewise.
22242 * modules/search (Makefile.am): Likewise.
22243 * modules/signal (Makefile.am): Likewise.
22244 * modules/stdarg (Makefile.am): Likewise.
22245 * modules/stdint (Makefile.am): Likewise.
22246 * modules/stdio (Makefile.am): Likewise.
22247 * modules/stdlib (Makefile.am): Likewise.
22248 * modules/string (Makefile.am): Likewise.
22249 * modules/strings (Makefile.am): Likewise.
22250 * modules/sys_select (Makefile.am): Likewise.
22251 * modules/sys_socket (Makefile.am): Likewise.
22252 * modules/sys_stat (Makefile.am): Likewise.
22253 * modules/sys_time (Makefile.am): Likewise.
22254 * modules/sysexits (Makefile.am): Likewise.
22255 * modules/time (Makefile.am): Likewise.
22256 * modules/unistd (Makefile.am): Likewise.
22257 * modules/wchar (Makefile.am): Likewise.
22258 * modules/wctype (Makefile.am): Likewise.
22259 Reported by Reuben Thomas <rrt@sc3d.org>.
22261 2008-08-29 Bruno Haible <bruno@clisp.org>
22263 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22266 2008-08-29 Simon Josefsson <simon@josefsson.org>
22268 * MODULES.html.sh (Misc): Add bitrotate.
22270 * modules/bitrotate: New file.
22272 * lib/bitrotate.h: New file.
22274 * modules/bitrotate-tests: New file.
22276 * tests/test-bitrotate.c: New file.
22278 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22279 on the bitrotate module.
22281 * lib/arctwo.c: Use new bitrotate module.
22283 2008-08-29 Jim Meyering <meyering@redhat.com>
22285 bootstrap: merge changes from coreutils
22286 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22287 of copied files. Remove a kludge, now that this is fixed.
22288 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22289 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22290 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22292 2008-08-29 Bruno Haible <bruno@clisp.org>
22294 * MODULES.html.sh: Remove --cvs-urls option.
22296 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
22298 maint.mk: adjust to file name change
22299 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22301 2008-08-28 Jim Meyering <meyering@redhat.com>
22303 * modules/getndelim2 (License): Relicense to LGPLv2+.
22304 Approved by Richard Stallman for the version of 1995, and by
22305 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22307 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
22309 * lib/getdelim.c (flockfile, funlockfile): Make all of them
22310 dummy if one is not available. Do not touch them if
22311 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22312 (getc_maybe_unlocked): New.
22313 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22315 2008-08-26 Eric Blake <ebb9@byu.net>
22317 doc/INSTALL: resync from autoconf
22318 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22319 (INSTALL_PRELUDE): Delete; this is done more efficiently by
22321 * install.texi [!autoconf]: ...here. Resync from autoconf.
22322 * INSTALL: Regenerate.
22323 * INSTALL.ISO: New file.
22324 * INSTALL.UTF-8: Likewise.
22326 2008-08-26 Jim Meyering <meyering@redhat.com>
22328 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22329 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22330 these definitions conditional, so that they may be overridden, too.
22332 2008-08-26 Bruno Haible <bruno@clisp.org>
22334 Generate INSTALL file variants with prettier quotes.
22335 * doc/Makefile (INSTALL_PRELUDE): New macro.
22337 (INSTALL.ISO, INSTALL.UTF-8): New rules.
22339 2008-08-26 Bruno Haible <bruno@clisp.org>
22341 Run makeinfo in an English locale.
22342 * doc/Makefile (MAKEINFO): New variable.
22344 2008-08-26 Bruno Haible <bruno@clisp.org>
22346 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22347 Suggested by Eric Blake.
22349 2008-08-25 Bruno Haible <bruno@clisp.org>
22351 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22353 2008-08-25 Eric Blake <ebb9@byu.net>
22355 c-stack: test that stack overflow can be caught
22356 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22357 that platform allows handling stack overflow; at least OS/2 EMX
22358 has sigaltstack, but crashes before transferring control to
22359 handler on stack overflow.
22360 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22361 check for HAVE_STACK_OVERFLOW_HANDLING.
22362 Reported by Elbert Pol.
22364 2008-08-25 Bruno Haible <bruno@clisp.org>
22366 * doc/posix-functions/strftime.texi: Fix description of strftime
22369 2008-08-24 Bruno Haible <bruno@clisp.org>
22371 * tests/uniwidth/test-uc_width2.c: New file.
22372 * tests/uniwidth/test-uc_width2.sh: New file.
22373 * modules/uniwidth/width-tests (Files): Add the new files.
22374 (TESTS): Add uniwidth/test-uc_width2.sh.
22375 (TESTS_ENVIRONMENT): New variable.
22376 (check_PROGRAMS): Add test-uc_width2.
22377 (test_uc_width2_SOURCES): New variable.
22379 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22380 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22382 Reported by Alexander V. Lukyanov <lav@netis.ru>.
22384 2008-08-22 Eric Blake <ebb9@byu.net>
22386 test-lock, test-tls: mention why a test is skipped
22387 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22389 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22391 count-one-bits: relax license
22392 * modules/count-one-bits (License): Relicense to LGPLv2+.
22393 Suggested by Ludovic Courtès, approved by Ben Pfaff.
22395 2008-08-22 Andreas Schwab <schwab@suse.de>
22397 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22398 Remove spurious space in assignment.
22400 2008-08-21 Simon Josefsson <simon@josefsson.org>
22402 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
22403 Paul Eggert <eggert@CS.UCLA.EDU>.
22405 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
22407 * modules/gettext: Add m4/threadlib.m4.
22409 2008-08-19 Eric Blake <ebb9@byu.net>
22411 test-c-stack: fix compilation failure on FreeBSD 5.0
22412 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22413 headers before <sys/resource.h>.
22414 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22416 Reported by Nelson H. F. Beebe.
22418 strverscmp: migrate from "strverscmp.h" to <string.h>
22419 * modules/string (Makefile.am): Add new hooks.
22420 * modules/strverscmp (Files): Remove strverscmp.h.
22421 (Depends-on): Add string.
22422 (configure.ac): Add indicator.
22423 (Include): Mention new header.
22424 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22426 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22428 * lib/strverscmp.h: Delete.
22429 * lib/string.in.h (strverscmp): Provide declaration, when needed.
22430 * tests/test-strverscmp.c (includes): Adjust client.
22431 * lib/check-version.c (includes): Likewise.
22432 * NEWS: Document the change.
22434 strverscmp: add unit test
22435 * modules/strverscmp-tests: New file.
22436 * tests/test-strverscmp.c: Likewise.
22438 2008-08-19 Simon Josefsson <simon@josefsson.org>
22440 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
22441 regarding Windows crypto stuff, from Mono.
22443 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
22445 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
22446 if present, for intel RND. Return error on failures.
22448 2008-08-18 Ben Pfaff <blp@gnu.org>
22450 gitlog-to-changelog: give better diagnostic for failed pipe-open
22451 * build-aux/gitlog-to-changelog: Improve error message: suggest
22452 that the version of Git may be too old.
22454 2008-08-18 Simon Josefsson <simon@josefsson.org>
22456 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
22457 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
22459 2008-08-18 Bruno Haible <bruno@clisp.org>
22461 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22464 2008-08-18 Bruno Haible <bruno@clisp.org>
22466 * lib/glthread/threadlib.c: Include <pthread.h>.
22468 2008-08-18 Bruno Haible <bruno@clisp.org>
22470 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22471 glthread_recursive_lock_* macros.
22472 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22475 2008-08-18 Bruno Haible <bruno@clisp.org>
22477 * lib/glthread/thread.c: Avoid forcing a context switch right after
22480 2008-08-17 Bruno Haible <bruno@clisp.org>
22482 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22483 * lib/glthread/thread.h: Provide Win32 specific implementation.
22484 * modules/thread (Files): Add lib/glthread/thread.c.
22485 (Depends-on): Add lock.
22486 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22488 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22490 New module 'yield'.
22491 * modules/yield: New file.
22492 * lib/glthread/yield.h: New file.
22493 * m4/yield.m4: New file.
22494 * MODULES.html.sh (Multithreading): Add yield.
22496 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22498 New module 'thread'.
22499 * modules/thread: New file.
22500 * lib/glthread/thread.h: New file.
22501 * m4/thread.m4: New file.
22502 * MODULES.html.sh (Multithreading): Add thread.
22504 2008-08-17 Bruno Haible <bruno@clisp.org>
22506 * lib/glthread/lock.h: Include <stdlib.h> always.
22507 * lib/glthread/tls.h: Likewise.
22508 * lib/glthread/cond.h: Likewise.
22510 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22513 * modules/cond: New file.
22514 * lib/glthread/cond.h: New file.
22515 * lib/glthread/cond.c: New file.
22516 * m4/cond.m4: New file.
22517 * MODULES.html.sh (Multithreading): Add cond.
22519 2008-08-16 Eric Blake <ebb9@byu.net>
22521 c-stack: fix regression on Irix 5.3 from 2008-06-21
22522 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22524 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22525 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22526 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22527 * modules/signal (Makefile.am): Use the value.
22528 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22529 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22530 * doc/posix-headers/signal.texi (signal.h): Document this
22532 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22533 Reported by Tom G. Christensen.
22535 2008-08-17 Bruno Haible <bruno@clisp.org>
22537 New module 'threadlib'.
22538 * modules/threadlib: New file.
22539 * lib/glthread/threadlib.c: New file, extracted from
22540 lib/glthread/lock.c.
22541 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22543 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22544 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22545 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22547 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22548 (gl_DISABLE_THREADS): Remove macro.
22549 * modules/lock (Files): Remove build-aux/config.rpath.
22550 (Depends-on): Remove havelib. Add threadlib.
22551 (configure.ac-early): Remove section.
22552 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22553 * modules/tls (Depends-on): Remove lock. Add threadlib.
22554 (Link): New section, copied from threadlib.
22555 * MODULES.html.sh (Multithreading): Add threadlib.
22557 2008-08-14 Bruno Haible <bruno@clisp.org>
22559 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22560 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22561 glthread_rwlock_unlock, glthread_rwlock_destroy,
22562 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22563 glthread_recursive_lock_destroy): Define as macros always.
22564 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22565 glthread_lock_lock.
22566 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22567 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22568 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22569 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22570 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22571 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22572 (glthread_recursive_lock_lock_func): Renamed from
22573 glthread_recursive_lock_lock.
22574 (glthread_recursive_lock_unlock_func): Renamed from
22575 glthread_recursive_lock_unlock.
22576 (glthread_recursive_lock_destroy_func): Renamed from
22577 glthread_recursive_lock_destroy.
22579 2008-08-14 Bruno Haible <bruno@clisp.org>
22581 * lib/glthread/lock.h: Renamed from lib/lock.h.
22582 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22583 * lib/glthread/tls.h: Renamed from lib/tls.h.
22584 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22585 * lib/fstrcmp.c: Update includes.
22586 * lib/strsignal.c: Update includes.
22587 * modules/lock (Files, Makefile.am): Update.
22588 (Include): Change to "glthread/lock.h".
22589 * modules/tls (Files, Makefile.am): Update.
22590 (Include): Change to "glthread/tls.h".
22591 * tests/test-lock.c: Update includes.
22592 * tests/test-tls.c: Update includes.
22593 * NEWS: Mention the renamed header files.
22595 2008-08-11 Jim Meyering <meyering@redhat.com>
22597 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22599 2008-08-11 Eric Blake <ebb9@byu.net>
22601 test-c-stack: avoid C99-ism
22602 * tests/test-c-stack.c (main): Fix whitespace, move declaration
22604 Reported by Alain Guibert.
22606 2008-08-10 Jim Meyering <meyering@redhat.com>
22608 ensure that return value of uinttostr et al are not ignored
22609 * lib/inttostr.h (__GNUC_PREREQ): Define.
22610 (__attribute_warn_unused_result__): Define.
22611 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22613 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
22615 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22616 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22618 2008-08-07 Jim Meyering <meyering@redhat.com>
22620 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22622 * modules/mkstemp (License): Relicense under LGPLv2+.
22623 * modules/tempname (License): Likewise.
22625 2008-08-06 Bruno Haible <bruno@clisp.org>
22627 * lib/poll.c (poll): Further micro-optimization.
22629 2008-08-06 Jim Meyering <meyering@redhat.com>
22631 inet_pton.c: use locale-independent tolower
22632 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22633 (inet_pton6): Use c_tolower rather than tolower.
22634 * modules/inet_pton (Depends-on): Add c-ctype.
22636 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
22638 * lib/poll.c (poll): Avoid division when timeout is 0, cache
22639 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
22641 2008-08-06 Jim Meyering <meyering@redhat.com>
22643 * modules/inet_pton (License): Relicense under LGPLv2+.
22645 2008-08-03 Bruno Haible <bruno@clisp.org>
22647 Additional non-aborting API for lock and tls.
22648 * lib/lock.h: Include <errno.h>.
22649 (glthread_lock_init): New macro/function.
22650 (gl_lock_init): Define as wrapper around glthread_lock_init.
22651 (glthread_lock_lock): New macro/function.
22652 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22653 (glthread_lock_unlock): New macro/function.
22654 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22655 (glthread_lock_destroy): New macro/function.
22656 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22657 (glthread_rwlock_init): New macro/function.
22658 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22659 (glthread_rwlock_rdlock): New macro/function.
22660 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22661 (glthread_rwlock_wrlock): New macro/function.
22662 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22663 (glthread_rwlock_unlock): New macro/function.
22664 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22665 (glthread_rwlock_destroy): New macro/function.
22666 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22667 (glthread_recursive_lock_init): New macro/function.
22668 (gl_recursive_lock_init): Define as wrapper around
22669 glthread_recursive_lock_init.
22670 (glthread_recursive_lock_lock): New macro/function.
22671 (gl_recursive_lock_lock): Define as wrapper around
22672 glthread_recursive_lock_lock.
22673 (glthread_recursive_lock_unlock): New macro/function.
22674 (gl_recursive_lock_unlock): Define as wrapper around
22675 glthread_recursive_lock_unlock.
22676 (glthread_recursive_lock_destroy): New macro/function.
22677 (gl_recursive_lock_destroy): Define as wrapper around
22678 glthread_recursive_lock_destroy.
22679 (glthread_once): New macro/function.
22680 (gl_once): Define as wrapper around glthread_once.
22681 Update function declarations.
22682 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22683 glthread_rwlock_init. Return error code.
22684 (glthread_rwlock_rdlock_multithreaded): Renamed from
22685 glthread_rwlock_rdlock. Return error code.
22686 (glthread_rwlock_wrlock_multithreaded): Renamed from
22687 glthread_rwlock_wrlock. Return error code.
22688 (glthread_rwlock_unlock_multithreaded): Renamed from
22689 glthread_rwlock_unlock. Return error code.
22690 (glthread_rwlock_destroy_multithreaded): Renamed from
22691 glthread_rwlock_destroy. Return error code.
22692 (glthread_recursive_lock_init_multithreaded): Renamed from
22693 glthread_recursive_lock_init. Return error code.
22694 (glthread_recursive_lock_lock_multithreaded): Renamed from
22695 glthread_recursive_lock_lock. Return error code.
22696 (glthread_recursive_lock_unlock_multithreaded): Renamed from
22697 glthread_recursive_lock_unlock. Return error code.
22698 (glthread_recursive_lock_destroy_multithreaded): Renamed from
22699 glthread_recursive_lock_destroy. Return error code.
22700 (glthread_once_call): Make static.
22701 (glthread_once_multithreaded): Renamed from glthread_once.
22702 * lib/tls.h: Include <errno.h>.
22703 (glthread_tls_key_init): New macro/function.
22704 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22705 (glthread_tls_set): New macro/function.
22706 (gl_tls_set): Define as wrapper around glthread_tls_set.
22707 (glthread_tls_key_destroy): New macro/function.
22708 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22709 Update function declarations.
22710 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22712 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22714 2008-08-04 Eric Blake <ebb9@byu.net>
22716 gnumakefile: use space, not TAB, outside of targets
22717 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22719 2008-08-02 Jim Meyering <meyering@redhat.com>
22721 getdate.y: avoid locale-dependent date parsing failure
22722 In Turkish locales, getdate would fail to recognize keywords
22723 containing a lowercase "i". The solution is not to rely on
22724 locale-sensitive case-conversion.
22725 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22726 (lookup_word): Use c_toupper in place of toupper.
22727 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22728 Reported by Vefa Bicakci <bicave@superonline.com> in
22729 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22730 * modules/getdate (Depends-on): Add c-ctype.
22732 2008-08-02 Bruno Haible <bruno@clisp.org>
22734 * gnulib-tool (func_import): When updating or creating a .gitignore
22735 file, prepend each added line with a slash, and ignore leading slashes
22736 from the existing lines.
22737 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22739 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22741 Portability fix for GNU make 3.79.1.
22742 * top/GNUmakefile: Avoid 'else COND', which older GNU make
22743 versions do not understand.
22745 2008-08-01 Bruno Haible <bruno@clisp.org>
22747 Work around bug of HP-UX 10.20 cc with -0.0 literal.
22748 * tests/test-isnanf.h (zero): New variable.
22749 (main): Avoid literal -0.0f.
22750 * tests/test-isnand.h (zero): New variable.
22751 (main): Avoid literal -0.0.
22752 * tests/test-isnanl.h (zero): New variable.
22753 (main): Avoid literal -0.0L.
22754 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22755 (test_float, test_double, test_long_double): Avoid literals -0.0f,
22757 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22758 (test_signbitd): Avoid literal -0.0.
22759 (test_signbitl): Avoid literal -0.0L.
22760 * tests/test-ceilf1.c (zero): New variable.
22761 (main): Avoid literal -0.0f.
22762 * tests/test-ceill.c (zero): New variable.
22763 (main): Avoid literal -0.0L.
22764 * tests/test-floorf1.c (zero): New variable.
22765 (main): Avoid literal -0.0f.
22766 * tests/test-floorl.c (zero): New variable.
22767 (main): Avoid literal -0.0L.
22768 * tests/test-roundf1.c (zero): New variable.
22769 (main): Avoid literal -0.0f.
22770 * tests/test-round1.c (zero): New variable.
22771 (main): Avoid literal -0.0.
22772 * tests/test-roundl.c (zero): New variable.
22773 (main): Avoid literal -0.0L.
22774 * tests/test-truncf1.c (zero): New variable.
22775 (main): Avoid literal -0.0f.
22776 * tests/test-trunc1.c (zero): New variable.
22777 (main): Avoid literal -0.0.
22778 * tests/test-truncl.c (zero): New variable.
22779 (main): Avoid literal -0.0L.
22780 * tests/test-frexp.c (zero): New variable.
22781 (main): Avoid literal -0.0.
22782 * tests/test-frexpl.c (zero): New variable.
22783 (main): Avoid literal -0.0L.
22784 * tests/test-ldexpl.c (zero): New variable.
22785 (main): Avoid literal -0.0L.
22786 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22787 (zerod, zerol): New variables.
22788 (test_function): Avoid literals -0.0, -0.0L.
22789 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22790 (zerod, zerol): New variables.
22791 (test_function): Avoid literals -0.0, -0.0L.
22792 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22793 (zerod, zerol): New variables.
22794 (test_function): Avoid literals -0.0, -0.0L.
22795 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22796 (zerod, zerol): New variables.
22797 (test_function): Avoid literals -0.0, -0.0L.
22798 * tests/test-strtod.c (zero): New variable.
22799 (main): Avoid literal -0.0.
22800 Reported by Jonathan C. Patschke <jp@centtech.com>.
22802 2008-07-31 Jim Meyering <meyering@redhat.com>
22804 sha256.h: correct definition of SHA224_DIGEST_SIZE
22805 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22806 Reported by Paulie Pena IV <paulie4@gmail.com>.
22807 Define as 224 / 8, rather than as a literal.
22808 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22809 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22810 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22812 2008-07-31 Bruno Haible <bruno@clisp.org>
22814 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22815 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22816 Reported by Jonathan Patschke <jp@centtech.com>.
22818 2008-07-31 Bruno Haible <bruno@clisp.org>
22820 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22821 Reported by Paolo Bonzini <bonzini@gnu.org>.
22823 2008-07-30 Eric Blake <ebb9@byu.net>
22825 test-strtod: allow compilation without -lm
22826 * tests/test-strtod.c (main): Avoid link dependence on fabs.
22827 Reported by Dennis Clarke <blastwave@gmail.com>.
22829 2008-07-28 Jim Meyering <meyering@redhat.com>
22831 bootstrap: work also when there are no .po files in po/
22832 * build-aux/bootstrap (update_po_files): Complete the change
22833 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22835 2008-07-27 Jim Meyering <meyering@redhat.com>
22837 * users.txt: Add zile.
22839 2008-07-26 Ben Pfaff <blp@gnu.org>
22841 Add missing dependencies on new m4/exponent[fdl].m4 files.
22842 * modules/isnanf-nolibm: Add m4/exponentf.m4.
22843 * modules/isnand-nolibm: Add m4/exponentd.m4.
22844 * modules/isnanl-nolibm: Add m4/exponentl.m4.
22845 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22846 m4/isnan[fdl].m4, because the macros actually used moved.
22847 Reported by Jim Meyering.
22849 2008-07-14 Ben Pfaff <blp@gnu.org>
22852 * lib/isinf.c: New file.
22853 * lib/math.in.h: Define isinf macro if we have decided to replace
22855 * m4/isinf.m4: New file.
22856 * m4/math_h.m4: Initialize and substitute variables for isinf
22858 * modules/isinf: New file.
22859 * modules/isinf-tests: New file.
22860 * modules/math: Add substitutions for new module.
22861 * tests/test-isinf.c: New file.
22862 * doc/posix-functions/isinf.texi: Mention new module.
22863 * MODULES.html.sh: Mention new module.
22865 2008-07-14 Ben Pfaff <blp@gnu.org>
22867 Factor out some macros for use by additional modules.
22868 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22870 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22872 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22874 * m4/exponentf.m4: New file.
22875 * m4/exponentd.m4: New file.
22876 * m4/exponentl.m4: New file.
22877 * modules/isnanf: Use new file m4/exponentf.m4.
22878 * modules/isnand: Use new file m4/exponentd.m4.
22879 * modules/isnanl: Use new file m4/exponentl.m4.
22881 2008-07-23 Ulrich Drepper <drepper@redhat.com>
22883 mktime.c: normalize tp->tm_isdst value to -1/0/1.
22884 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22885 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22886 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22888 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22889 readlink on platforms without PATH_MAX.
22891 2008-07-21 Eric Blake <ebb9@byu.net>
22893 Warn, not fail, on stale version.
22894 * top/GNUmakefile (_curr-ver): Tone down previous patch.
22896 Don't allow installation with stale devel version number.
22897 * top/GNUmakefile (_is-install-target): New macro.
22898 (_curr-ver): Forbid installation with stale version number.
22900 2008-07-20 Bruno Haible <bruno@clisp.org>
22902 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22904 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22906 2008-07-20 Bruno Haible <bruno@clisp.org>
22908 * lib/c-stack.h (c_stack_action): Add documentation.
22909 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22911 2008-07-20 Bruno Haible <bruno@clisp.org>
22913 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22914 * modules/readlink (License): Likewise.
22916 2008-07-17 Eric Blake <ebb9@byu.net>
22918 * modules/c-stack (Link): Fix typo.
22920 Make c-stack use libsigsegv, when available.
22921 * modules/c-stack (Depends-on): Add libsigsegv.
22922 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22924 * lib/c-stack.c (SIGSTKSZ): Define fallback.
22925 (segv_handler, overflow_handler, c_stack_action)
22926 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22927 implementation when libsigsegv is available, but only when using
22928 the library is necessary.
22929 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22930 comment, explaining why XSI check fails on Linux.
22931 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22932 * tests/test-c-stack2.sh: Tweak skip message.
22933 * NEWS: Document new link-time requirements.
22935 2008-07-16 Eric Blake <ebb9@byu.net>
22937 c-stack: Expose false positives when not using libsigsegv.
22938 * modules/c-stack-tests (Files): Expand test.
22939 * tests/test-c-stack.c (main): Add means to conditionally trigger
22940 non-overflow SIGSEGV.
22941 * tests/test-c-stack2.sh: New file.
22943 2008-07-14 Bruno Haible <bruno@clisp.org>
22945 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22946 Reported by Eric Blake.
22948 2008-07-14 Sam Steingold <sds@gnu.org>
22949 Bruno Haible <bruno@clisp.org>
22951 New module libsigsegv.
22952 * modules/libsigsegv: New file.
22953 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22955 * MODULES.html.sh (Signal handling): New section.
22957 2008-07-14 Bruno Haible <bruno@clisp.org>
22959 * modules/unictype/ctype-* (Description): Add the word "function".
22960 Improves the resulting doc in MODULES.html.
22962 2008-07-12 Ben Pfaff <blp@gnu.org>
22964 Add longlong module.
22965 * modules/longlong: New file.
22967 2008-07-12 Bruno Haible <bruno@clisp.org>
22969 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22972 2008-07-10 Ben Pfaff <blp@gnu.org>
22975 * doc/posix-functions/isnan.texi: Mention new module.
22976 * lib/math.in.h: Define isnan macro if we have decided to replace
22978 * m4/isnan.m4: New file.
22979 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22980 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22982 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22984 * m4/math_h.m4: Initialize and substitute variables for isnan
22986 * modules/isnan: New file.
22987 * modules/isnan-tests: New file.
22988 * modules/math: Add substitutions for new module.
22989 * tests/test-isnan.c: New file.
22990 * MODULES.html.sh: Mention new module.
22992 2008-07-10 Ben Pfaff <blp@gnu.org>
22995 * lib/isnanf.m4: New file.
22996 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22997 (gl_HAVE_ISNANF_IN_LIBM): New macro.
22998 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22999 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23000 * modules/isnanf: New file.
23001 * modules/isnanf-tests: New file.
23002 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23004 * tests/test-isnanf-nolibm.c: factored most of its contents into
23005 new file tests/test-isnanf.h.
23006 * tests/test-isnanf.h: New file.
23007 * tests/test-isnanf.c: New file.
23008 * MODULES.html.sh: Mention new module.
23009 * doc/glibc-functions/isnanf.texi: Mention new module.
23011 2008-07-10 Ben Pfaff <blp@gnu.org>
23014 * lib/isnand.h: New file.
23015 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23016 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23017 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23018 functionality also.
23019 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23020 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23021 (gl_HAVE_ISNAND_IN_LIBM): New macro.
23022 * modules/isnand: New file.
23023 * modules/isnand-tests: New file.
23024 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23026 * tests/test-isnand-nolibm.c: factored most of its contents into
23027 new file tests/test-isnand.h.
23028 * tests/test-isnand.h: New file.
23029 * tests/test-isnand.c: New file.
23030 * MODULES.html.sh: Mention new module.
23032 2008-07-10 Ben Pfaff <blp@gnu.org>
23034 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23035 * lib/isnand.h: Rename lib/isnand-nolibm.h.
23036 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23037 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23038 * modules/isnanf-nolibm: Update references to renamed files.
23039 * modules/isnand-nolibm: Likewise.
23040 * modules/isnanf-nolibm-tests: Likewise.
23041 * modules/isnand-nolibm-tests: Likewise.
23042 * lib/frexp.c: Likewise.
23043 * lib/isfinite.c: Likewise.
23044 * lib/signbitd.c: Likewise.
23045 * lib/signbitf.c: Likewise.
23046 * lib/vasnprintf.c: Likewise.
23047 * tests/test-ceilf1.c: Likewise.
23048 * tests/test-ceilf2.c: Likewise.
23049 * tests/test-floorf1.c: Likewise.
23050 * tests/test-floorf2.c: Likewise.
23051 * tests/test-frexp.c: Likewise.
23052 * tests/test-round1.c: Likewise.
23053 * tests/test-round2.c: Likewise.
23054 * tests/test-roundf1.c: Likewise.
23055 * tests/test-strtod.c: Likewise.
23056 * tests/test-trunc1.c: Likewise.
23057 * tests/test-trunc2.c: Likewise.
23058 * tests/test-truncf1.c: Likewise.
23059 * tests/test-truncf2.c: Likewise.
23060 * NEWS: Mention the renamed header files.
23062 2008-07-11 Jim Meyering <meyering@redhat.com>
23064 vc-list-files: make the last-resort awk code more portable
23065 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23066 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23067 does not support it.
23069 2008-07-10 Eric Blake <ebb9@byu.net>
23071 Work with tar's bootstrap.
23072 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23073 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23076 2008-07-09 Jim Meyering <meyering@redhat.com>
23078 posix-shell.m4: fix typo that made this test malfunction
23079 * m4/posix-shell.m4: Remove capitalization in variable name.
23081 2008-07-08 Bruno Haible <bruno@clisp.org>
23083 * m4/onceonly.m4: Update comments.
23084 Reported by Ben Pfaff <blp@cs.stanford.edu>.
23086 2008-07-04 Jim Meyering <meyering@redhat.com>
23088 * users.txt: Add vc-dwim.
23089 (bison, coreutils): Use the gitweb URL.
23091 2008-07-03 Jim Meyering <meyering@redhat.com>
23093 * users.txt: Add libffcall. From Sam Steingold.
23095 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
23097 getdate.y: do not ignore TZ with relative day, month or year offset
23098 * lib/getdate.y (get_date): Move the tz-handling block to follow the
23099 relative-date-handling, since otherwise, the latter would clobber the
23100 sole output (an updated Start value) of the tz-handling block.
23101 * tests/test-getdate.c: Tests for the fix
23103 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23105 Recognize 'foo_LIBRARIES += libgnu.a'.
23106 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23107 makefile snippet has already specified an installation location,
23110 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
23112 getdate.y: factor out common actions
23113 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23114 Use them in place of open-coded actions.
23116 2008-07-01 Simon Josefsson <simon@josefsson.org>
23118 Add self-test for getdate module.
23119 * modules/getdate-tests: New file.
23120 * tests/test-getdate.c: New file.
23122 2008-06-29 Bruno Haible <bruno@clisp.org>
23124 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23126 Reported by Sylvain Beucler <beuc@beuc.net>.
23128 2008-06-29 Bruno Haible <bruno@clisp.org>
23130 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23131 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23133 2008-06-29 Bruno Haible <bruno@clisp.org>
23135 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23137 Reported by Sylvain Beucler <beuc@beuc.net>.
23139 2008-06-26 Jim Meyering <meyering@redhat.com>
23141 make several modules depend on the "open" module
23142 This provides slightly increased consistency when opening-for-write
23143 the name of a non-directory spelled with a trailing slash.
23144 * modules/chdir-safer: Likewise.
23145 * modules/chown: Likewise.
23146 * modules/clean-temp: Likewise.
23147 * modules/copy-file: Likewise.
23148 * modules/fchdir: Likewise.
23149 * modules/fcntl-safer: Likewise.
23150 * modules/pipe: Likewise.
23151 * modules/utime: Likewise.
23152 Prompted by Eric Blake and Bruno Haible.
23154 2008-06-24 Andreas Schwab <schwab@suse.de>
23156 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23157 literals can be used as initializers for global variables.
23159 2008-06-23 Eric Blake <ebb9@byu.net>
23161 Make gnulib-cache.m4 easier to diff.
23162 * gnulib-tool (func_import): Allow newlines when reading cached
23163 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23165 2008-06-23 Bruno Haible <bruno@clisp.org>
23167 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23168 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23169 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23170 m4/signalblocking.m4.
23171 (gl_PREREQ_SIGACTION): Don't invoke it.
23172 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23173 gl_PREREQ_SIG_HANDLER_H.
23174 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23175 Don't check for sigaction here.
23177 2008-06-23 Bruno Haible <bruno@clisp.org>
23179 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23180 (install_handlers): Don't set the SA_RESETHAND flag.
23182 2008-06-23 Bruno Haible <bruno@clisp.org>
23184 * m4/sigaction.m4: Comment fixes.
23185 * lib/signal.in.h: Likewise.
23187 2008-06-23 Eric Blake <ebb9@byu.net>
23190 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23192 Avoid SA_ namespace.
23193 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23194 Reported by Ralf Wildenhues.
23196 Avoid test failure due to SA_RESTORER.
23197 * tests/test-sigaction.c (SA_MASK): New macro.
23198 (main): Avoid failing due to extension flags being set.
23199 Reported by Jim Meyering.
23201 Revert use of sig-handler.h in sigprocmask.c.
23202 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23203 it requires the existence of struct sigaction.
23204 * lib/sigprocmask.c (handler_t): Restore typedef.
23205 (rpl_signal, old_handlers): Use local type.
23207 2008-06-22 Bruno Haible <bruno@clisp.org>
23209 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23211 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23213 2008-06-22 Bruno Haible <bruno@clisp.org>
23215 * doc/posix-functions/siginterrupt.texi: Move note.
23217 * lib/signal.in.h (SA_RESTART): New macro.
23218 * lib/sigaction.c: Update comment.
23220 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23222 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23223 (gl_PREREQ_SIGPROCMASK): Invoke it.
23224 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23226 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23228 * lib/sigprocmask.c: Update a comment.
23230 2008-06-21 Eric Blake <ebb9@byu.net>
23232 Use sigaction module rather than signal().
23233 * modules/c-stack (Depends-on): Add sigaction.
23234 * modules/fatal-signal (Depends-on): Likewise.
23235 * modules/nanosleep (Depends-on): Likewise.
23236 * modules/sigprocmask (Files): Add sig-handler.h.
23237 * modules/sigaction (Files): Likewise.
23238 * lib/sig-handler.h (get_handler): New file, suggested by Paul
23240 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23241 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23242 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23243 (init_fatal_signals): Likewise.
23244 * lib/nanosleep.c (rpl_nanosleep): Likewise.
23245 (siginterrupt): Delete fallback.
23246 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23248 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23251 New module sigaction, for mingw.
23252 * modules/sigaction: New module...
23253 * modules/sigaction-tests: ...and its test.
23254 * m4/sigaction.m4: New file.
23255 * lib/sigaction.c: Likewise.
23256 * tests/test-sigaction.c: Likewise.
23257 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23258 * modules/signal (Makefile.am): Likewise.
23259 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23261 * doc/posix-headers/signal.texi (signal.h): Mention provided
23263 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23264 that sigaction is preferable.
23265 * doc/posix-functions/sigaction.texi (sigaction): Mention new
23267 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23270 Improve robustness of sigprocmask by overriding signal.
23271 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23273 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23274 (SIGKILL, SIGSTOP): Provide fallbacks.
23275 (rpl_signal): Implement.
23276 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23277 signal can be called inside handlers.
23279 Fix nanosleep module on mingw.
23280 * modules/nanosleep (Depends-on): Add sys_select.
23281 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23283 Fix licensing of sigprocmask.
23284 * modules/raise (License): Relicense as LGPL.
23286 2008-06-21 Bruno Haible <bruno@clisp.org>
23288 * lib/propername.c (proper_name_utf8): Don't use the transliterated
23289 result if it contains question marks.
23290 Reported by Michael Geng <linux@michaelgeng.de>.
23292 2008-06-19 Bruno Haible <bruno@clisp.org>
23295 * doc/gnulib.texi: Include updated-stamp.texi.
23296 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23297 (updated-stamp.texi): New rule.
23298 (gnulib.info): Depend on it.
23299 * doc/.gitignore: Add updated-stamp.texi.
23300 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23302 2008-06-19 Bruno Haible <bruno@clisp.org>
23304 * doc/Makefile (gnulib.info): Update and simplify dependencies.
23305 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23307 2008-06-19 Eric Blake <ebb9@byu.net>
23309 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23310 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23311 Reported by Stepan Kasal.
23313 2008-06-18 Bruno Haible <bruno@clisp.org>
23315 * lib/fatal-signal.c (init_fatal_signals): Add comment.
23316 Reported by Eric Blake.
23318 2008-06-18 Eric Blake <ebb9@byu.net>
23320 Work around cygwin 1.5.25 strsignal bug.
23321 * tests/test-strsignal.c: Allow for const char *.
23322 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23324 2008-06-18 Simon Josefsson <simon@josefsson.org>
23326 * users.txt: Update URL to article and add author/date
23329 2008-06-17 Bruno Haible <bruno@clisp.org>
23331 New macro gl_DISABLE_THREADS.
23332 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23333 if the user did not pass --enable-threads or --disable-threads option.
23334 (gl_DISABLE_THREADS): New macro.
23335 Reported by Eric Blake <ebb9@byu.net>.
23337 2008-06-17 Bruno Haible <bruno@clisp.org>
23339 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23340 when the macro ignores it.
23341 Based on a patch by Eric Blake <ebb9@byu.net>.
23343 2008-06-17 Bruno Haible <bruno@clisp.org>
23345 * modules/tls (License): Change to LGPLv2+.
23346 Reported by Eric Blake.
23348 2008-06-17 Eric Blake <ebb9@byu.net>
23350 Simplify c-stack prerequisites.
23351 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23352 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23353 no longer requires <ucontext.h> to exist. Optimize setrlimit
23355 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23358 Move c-stack test into testsuite.
23359 * modules/c-stack-tests: New file.
23360 * lib/c-stack.c [DEBUG]: Move test program...
23361 * tests/test-c-stack.c: ...into this new file. Skip rather than
23362 fail test if sigaltstack is lacking.
23363 * tests/test-c-stack.sh: New driver file.
23365 2008-06-16 Eric Blake <ebb9@byu.net>
23367 Use raise module consistently.
23368 * modules/fatal-signal (Depends-on): Add raise.
23369 * modules/sigprocmask (Depends-on): Likewise.
23370 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23371 * lib/sigprocmask.c (sigprocmask): Likewise.
23372 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23373 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23375 Fix compliance bug in sigpending.
23376 * lib/sigprocmask.c (sigpending): Return pending array via
23377 parameter, not return value.
23379 2008-06-14 Eric Blake <ebb9@byu.net>
23381 Improve obstack-printf test code.
23382 * tests/test-obstack-printf.c (test_function): Fix comment, and
23383 simplify usage of obstack_* in macros. Add a test for coverage.
23384 Reported by Bruno Haible.
23386 2008-06-14 Bruno Haible <bruno@clisp.org>
23388 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23389 array size as a constant, not as a const variable.
23390 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23391 AC_USE_SYSTEM_EXTENSIONS.
23392 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23393 Test whether the obstack_printf function actually exists.
23394 * modules/obstack-printf (Depends-on): Add extensions.
23395 (Include): Remove obstack.h.
23396 * modules/obstack-printf-posix (Depends-on): Add extensions.
23397 (Include): Remove obstack.h.
23399 2008-06-13 Eric Blake <ebb9@byu.net>
23401 Add obstack-printf and obstack-printf-posix modules.
23402 * modules/obstack-printf: New file.
23403 * modules/obstack-printf-posix: Likewise.
23404 * MODULES.html.sh (Misc): Mention them.
23405 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23407 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23409 * modules/stdio (Makefile.am): Accomodate new modules.
23410 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23411 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23413 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23415 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23416 (gl_REPLACE_OBSTACK_PRINTF): New macros
23417 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23418 * tests/test-obstack-printf.c: New file.
23419 * modules/obstack-printf-tests: Likewise.
23420 * modules/obstack-printf-posix-tests: Likewise.
23422 2008-06-11 Bruno Haible <bruno@clisp.org>
23424 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23425 * lib/open.c: Include errno.h.
23426 (open): Fail when attempting to write to a file that has a trailing
23428 * tests/test-open.c (main): Test against trailing slash bug.
23429 * doc/posix-functions/open.texi: Mention the trailing slash bug.
23431 2008-06-10 Bruno Haible <bruno@clisp.org>
23433 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23434 for $? to work inside the trap command, with various /bin/sh-s.
23435 * tests/test-vc-list-files-cvs.sh: Likewise.
23437 2008-06-10 Bruno Haible <bruno@clisp.org>
23439 * lib/acl-internal.h: Don't include gettext.h here.
23440 * lib/set-mode-acl.c: Include gettext.h here.
23441 * lib/copy-acl.c: Likewise.
23443 2008-06-10 Bruno Haible <bruno@clisp.org>
23445 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23446 * lib/wait-process.c (wait_subprocess): Likewise.
23447 * lib/execute.h (execute): Add termsigp argument.
23448 * lib/execute.c (execute): Likewise.
23449 * lib/csharpcomp.c (compile_csharp_using_pnet,
23450 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23451 * lib/csharpexec.c (execute_csharp_using_pnet,
23452 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23453 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23454 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23455 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23456 is_jikes_present): Update.
23457 * lib/javaexec.c (execute_java_class): Update.
23458 * lib/javaversion.c (execute_and_read_line): Update.
23459 * NEWS: Document the changes.
23460 Reported by Eric Blake.
23462 2008-06-10 Eric Blake <ebb9@byu.net>
23464 Add missing include.
23465 * tests/test-strstr.c (includes): Add <signal.h>.
23466 * tests/test-strcasestr.c (includes): Likewise.
23467 * tests/test-memmem.c (includes): Likewise.
23469 2008-06-10 Bruno Haible <bruno@clisp.org>
23471 * lib/wait-process.c (wait_subprocess): Add an assertion.
23473 2008-06-10 Bruno Haible <bruno@clisp.org>
23475 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23477 2008-06-10 Bruno Haible <bruno@clisp.org>
23479 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23481 * tests/test-strcasestr.c (main): Likewise.
23482 * tests/test-strstr.c (main): Likewise.
23484 2008-06-09 Bruno Haible <bruno@clisp.org>
23486 Work around the Solaris 10 ACE ACLs ABI change.
23487 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23488 declare if ACL_NO_TRIVIAL is present.
23489 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23490 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23491 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23492 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23493 define if ACL_NO_TRIVIAL is present.
23494 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23495 and use the current ABI.
23496 (file_has_acl): Use same #if condition as elsewhere.
23497 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23498 in use, and use the current ABI.
23499 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23500 Reported by Jim Meyering.
23502 2008-06-09 Eric Blake <ebb9@byu.net>
23504 Work around environments that (stupidly) ignore SIGALRM.
23505 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23506 before using alarm().
23507 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23508 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23509 Reported by Ian Beckwith <ianb@erislabs.net>.
23511 Produce autobuild blurb earlier in log.
23512 * modules/autobuild (configure.ac-early): Move AB_INIT here.
23514 2008-06-09 Jim Meyering <meyering@redhat.com>
23515 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
23517 utimens.c: correct kernel bug work-around
23518 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
23519 failure, not success, and the kernel bug we're trying to work
23520 around affects not just the utimensat call, but also the fallback
23522 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23524 [HAVE_FUTIMENS]: Use the same work-around, here.
23526 2008-06-09 Jim Meyering <meyering@redhat.com>
23528 add more guards around definition of ACE_-related code
23529 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23530 ALLOW and ACE_OWNER are also defined.
23532 2008-06-08 Bruno Haible <bruno@clisp.org>
23534 * lib/acl-internal.h: Add me as co-author.
23535 * lib/file-has-acl.c: Likewise.
23536 * lib/set-mode-acl.c: Likewise.
23537 * lib/copy-acl.c: Likewise.
23539 2008-06-08 Bruno Haible <bruno@clisp.org>
23541 Add support for AIX ACLs.
23542 * lib/acl-internal.h (acl_nontrivial): New declaration.
23543 * lib/file-has-acl.c (acl_nontrivial): New function.
23544 (file_has_acl): Add implementation using AIX 4 ACL API.
23545 * lib/set-mode-acl.c (qset_acl): Likewise.
23546 * lib/copy-acl.c (qcopy_acl): Likewise.
23548 2008-06-08 Bruno Haible <bruno@clisp.org>
23550 Add support for HP-UX ACLs.
23551 * lib/acl-internal.h (acl_nontrivial): New declaration.
23552 * lib/file-has-acl.c (acl_nontrivial): New function.
23553 (file_has_acl): Add implementation using HP-UX 11 ACL API.
23554 * lib/set-mode-acl.c (qset_acl): Likewise.
23555 * lib/copy-acl.c (qcopy_acl): Likewise.
23557 2008-06-08 Bruno Haible <bruno@clisp.org>
23559 Add support for Cygwin ACLs.
23560 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23561 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23562 the chmod_or_fchmod call.
23563 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23565 2008-06-08 Bruno Haible <bruno@clisp.org>
23567 Fix bug with setuid modes in Solaris 10+ code.
23568 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23569 succeeded, when the mode contains some special bits.
23571 2008-06-08 Bruno Haible <bruno@clisp.org>
23573 Add support for Solaris 7..10 ACLs.
23574 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23576 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23578 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23579 * lib/set-mode-acl.c (qset_acl): Likewise.
23580 * lib/copy-acl.c (qcopy_acl): Likewise.
23582 2008-06-08 Bruno Haible <bruno@clisp.org>
23584 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23586 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23587 (acl_access_nontrivial): Remove MacOS X case.
23588 (file_has_acl): Use acl_extended_nontrivial.
23589 * lib/copy-acl.c (qcopy_acl): Likewise.
23591 2008-06-08 Bruno Haible <bruno@clisp.org>
23593 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23595 2008-06-08 Jim Meyering <meyering@redhat.com>
23597 * modules/acl (Maintainer): Add Bruno Haible.
23599 2008-06-07 Bruno Haible <bruno@clisp.org>
23601 Improve support for Tru64 ACLs.
23602 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23605 2008-06-07 Bruno Haible <bruno@clisp.org>
23607 Add support for MacOS X ACLs.
23608 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23609 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23610 * lib/set-mode-acl.c (qset_acl): Likewise.
23611 * lib/copy-acl.c (qcopy_acl): Likewise.
23613 2008-06-07 Bruno Haible <bruno@clisp.org>
23615 Fix memory leak introduced on 2008-05-22.
23616 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23619 2008-06-07 Bruno Haible <bruno@clisp.org>
23621 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23622 to construct an empty ACL.
23624 2008-06-07 Bruno Haible <bruno@clisp.org>
23626 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23628 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23630 2008-06-07 Bruno Haible <bruno@clisp.org>
23632 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23633 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23635 2008-06-07 Bruno Haible <bruno@clisp.org>
23637 * doc/posix-functions/_setjmp.texi: Explain the use of this function
23638 regardless of POSIX.
23639 * doc/posix-functions/_longjmp.texi: Likewise.
23640 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23641 SystemV platform in this case.
23643 2008-06-06 Eric Blake <ebb9@byu.net>
23645 Document abort() bugs.
23646 * doc/posix-functions/abort.texi (abort): Mention anomalies.
23648 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23649 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23651 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23652 siglongjmp, but only as a macro.
23653 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23655 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23657 Tweak documentation to cover cygwin argz bugs.
23658 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23659 argz bug fix; no code change needed since no cygwin releases
23660 occurred between the last fix and the bug being tested.
23661 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23662 module and recently fixed cygwin bugs.
23663 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23664 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23665 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23666 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23667 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23669 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23670 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23671 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23672 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23673 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23674 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23677 Avoid gcc warning on cygwin.
23678 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23679 !ACL_NO_TRIVIAL]: Avoid unused variable.
23681 2008-06-05 Eric Blake <ebb9@byu.net>
23683 Be tolerant of UNKNOWN version in gnulib-tool test dir.
23684 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23685 git-version-gen fails to come up with a version.
23686 Reported by Simon Josefsson.
23688 2008-06-05 Jim Meyering <meyering@redhat.com>
23689 Paul Eggert <eggert@cs.ucla.edu>
23691 utimens.c: work around a probable Linux kernel bug
23692 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23693 appears to be a kernel bug that causes utimensat to return 280
23694 instead of 0, indicating success.
23696 2008-06-04 Bruno Haible <bruno@clisp.org>
23698 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23701 2008-06-04 Bruno Haible <bruno@clisp.org>
23703 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23704 * lib/file-has-acl.c (acl_access_nontrivial): New function.
23705 (file_has_acl): Use it. Save errno afterwards.
23706 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23708 2008-06-03 Bruno Haible <bruno@clisp.org>
23710 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23711 draft code. Simplify #ifs.
23712 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23713 Put Solaris code after POSIX-draft code. Fix comments regarding
23714 Solaris 10, HP-UX. Mention Cygwin.
23715 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23717 2008-06-03 Eric Blake <ebb9@byu.net>
23719 Provide fallback for older kernels.
23720 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23721 Provide runtime fallback if kernel lacks support.
23722 Reported by Mike Frysinger.
23724 2008-06-02 Bruno Haible <bruno@clisp.org>
23726 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23729 2008-06-02 Bruno Haible <bruno@clisp.org>
23731 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23732 * lib/copy-acl.c (qcopy_acl): Update comment.
23734 2008-06-02 Bruno Haible <bruno@clisp.org>
23736 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23739 2008-06-02 Bruno Haible <bruno@clisp.org>
23741 * tests/test-file-has-acl.sh: Use different code for Cygwin.
23742 * tests/test-set-mode-acl.sh: Likewise.
23743 * tests/test-copy-acl.sh: Likewise.
23744 * tests/test-copy-file.sh: Likewise.
23746 2008-06-02 Bruno Haible <bruno@clisp.org>
23748 * tests/test-file-has-acl.sh: Remove unused code.
23750 2008-06-01 Bruno Haible <bruno@clisp.org>
23752 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23753 (copy_acl): Just a wrapper around qcopy_acl that emits the error
23755 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23757 2008-06-01 Bruno Haible <bruno@clisp.org>
23759 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23760 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23761 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23763 * modules/acl-tests (configure.ac): Remove tests now contained in
23766 2008-06-02 Jim Meyering <meyering@redhat.com>
23768 announce-gen: use a better key-server host name
23769 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23770 it may be more consistently reliable. Suggested by Werner Koch
23771 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23773 2008-06-01 Bruno Haible <bruno@clisp.org>
23775 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23776 Reported by Voroskoi Andras <voroskoi@gmail.com>.
23778 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
23780 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23782 2008-06-01 Bruno Haible <bruno@clisp.org>
23785 * tests/test-file-has-acl.sh: New file.
23786 * tests/test-file-has-acl.c: New file.
23787 * tests/test-set-mode-acl.sh: New file.
23788 * tests/test-set-mode-acl.c: New file.
23789 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23790 * tests/test-copy-acl.c: New file.
23791 * modules/acl-tests: New file, based on modules/copy-file-tests.
23792 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23793 (Depends-on): Add acl-tests.
23794 (configure.ac): Remove checks.
23795 (Makefile.am): Don't create test-sameacls program here any more.
23797 2008-06-01 Bruno Haible <bruno@clisp.org>
23799 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23800 * tests/test-sameacls.c: Include progname.h.
23801 (main): Invoke set_program_name. Portability fixes for MacOS X,
23804 2008-06-01 Bruno Haible <bruno@clisp.org>
23806 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23808 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23810 2008-06-01 Bruno Haible <bruno@clisp.org>
23812 * modules/rpmatch (Depends-on): Add strdup.
23814 2008-06-01 Bruno Haible <bruno@clisp.org>
23816 * lib/pipe.c: Include unistd-safer.h.
23817 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23818 * modules/pipe (Depends-on): Add unistd-safer.
23820 2008-05-30 Simon Josefsson <simon@josefsson.org>
23822 * modules/autobuild (configure.ac): Call AB_INIT.
23824 2008-05-30 Simon Josefsson <simon@josefsson.org>
23826 * tests/test-getaddrinfo.c: Don't print debug messages by default.
23827 Suggested by Bruno Haible <bruno@clisp.org>.
23829 2008-05-30 Simon Josefsson <simon@josefsson.org>
23831 * tests/test-base64.c: Cast size_t to unsigned long when invoking
23832 printf. Use %lu instead of %d. Reported by Bruno Haible
23835 2008-05-29 Eric Blake <ebb9@byu.net>
23837 Prefer new POSIX 200x interfaces over futimesat.
23838 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23839 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23841 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23843 2008-05-28 Bruno Haible <bruno@clisp.org>
23845 * modules/stpcpy (License): Change to LGPLv2+.
23846 Requested by David Lutterkort <dlutter@redhat.com>.
23848 2008-05-27 Bruno Haible <bruno@clisp.org>
23850 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23852 Reported by Jose E. Marchesi <jemarch@gnu.org>.
23854 2008-05-27 Bruno Haible <bruno@clisp.org>
23856 * modules/iconv_open (Link): New section, from module 'iconv'.
23857 * modules/striconv (Link): Likewise.
23858 * modules/striconveh (Link): Likewise.
23859 * modules/xstriconv (Link): Likewise.
23860 * modules/unicodeio (Link): Likewise.
23861 * modules/propername (Link): Likewise.
23862 Reported by Jim Meyering.
23864 2008-05-26 Jim Meyering <meyering@redhat.com>
23866 sha256: do not artificially restrict buffer length to be < 2^32
23867 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23868 uint32_t to size_t.
23869 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23872 avoid unaligned access errors, e.g., on sparc
23873 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23874 direct access through a possibly-unaligned uint64* pointer.
23875 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23876 direct access through a possibly-unaligned uint32* pointer.
23877 Prompted by this patch from Tom "spot" Callaway:
23878 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23880 sha512.c: fix typo in comment
23881 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23883 2008-05-25 Bruno Haible <bruno@clisp.org>
23885 * lib/set-mode-acl.c: Renamed from lib/acl.c.
23886 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23887 (Makefile.am): Update lib_SOURCES.
23889 2008-05-25 Bruno Haible <bruno@clisp.org>
23891 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23893 2008-05-25 Jim Meyering <meyering@redhat.com>
23895 useless-if-before-free: freed expr may have white-space differences
23896 * build-aux/useless-if-before-free: Recognize cases in which the
23897 freed expression differs from the tested one in embedded white
23898 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
23899 $1 was used, so we can't make any regexp shy. Improved tests now
23902 useless-if-before-free: accept white space in the expression.
23903 * build-aux/useless-if-before-free: For now, any white space
23904 in the expression must be identical in the free argument.
23906 useless-if-before-free: efficiency tweak
23907 * build-aux/useless-if-before-free: Make the expression-matching
23909 Make the *outer* regexp shy, not the expr-matching one.
23911 update code-in-comment to accept cast of free arg
23912 * build-aux/useless-if-before-free: Update regexp.
23914 2008-05-25 Bruno Haible <bruno@clisp.org>
23916 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23917 * modules/copy-file-tests (Files, Makefile.am): Update.
23918 * tests/test-copy-file.c (func_test_copy): Update.
23920 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
23922 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23924 2008-05-23 Bruno Haible <bruno@clisp.org>
23926 Improve support for ACLs on OSF/1.
23927 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23928 Remove fallback for unknown flavors of ACLs.
23930 2008-05-22 Bruno Haible <bruno@clisp.org>
23932 Add support for ACLs on OSF/1.
23933 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23935 (acl_free_text): New macro fallback.
23936 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23938 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23939 acl_free_text function. Require AC_C_INLINE.
23941 2008-05-22 Bruno Haible <bruno@clisp.org>
23943 Make copy_acl work on MacOS X 10.5.
23944 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23945 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23946 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23947 If MODE_INSIDE_ACL, don't assume that every system has the same text
23948 representation for ACLs as FreeBSD.
23949 * lib/copy-acl.c (copy_acl): Add support for platforms with
23951 * lib/file-has-acl.c (file_has_acl): Likewise.
23952 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23953 FreeBSD, MacOS X, or IRIX, respectively.
23955 2008-05-22 Bruno Haible <bruno@clisp.org>
23957 * lib/acl.h: Don't include <sys/acl.h>.
23958 (GETACLCNT): Move fallback to lib/acl-internal.h.
23959 * lib/acl-internal.h: Include <sys/acl.h> here.
23960 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23962 2008-05-22 Bruno Haible <bruno@clisp.org>
23964 Split off copy_acl function to separate file.
23965 * lib/copy-acl.c: New file, extracted from lib/acl.c.
23966 * lib/acl.c (copy_acl): Moved function to separate file.
23967 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23968 * modules/acl (Files): Add lib/copy-acl.c.
23969 (Makefiles.am): Augment lib_SOURCES.
23971 2008-05-22 Bruno Haible <bruno@clisp.org>
23973 * modules/copy-file-tests: New file.
23974 * tests/test-copy-file.sh: New file.
23975 * tests/test-copy-file.c: New file.
23976 * tests/test-copy-file-sameacls.c: New file.
23978 2008-05-22 Eric Blake <ebb9@byu.net>
23981 * tests/test-memcmp.c (main): Pass NULL indirectly.
23983 2008-05-21 Bruno Haible <bruno@clisp.org>
23985 Add reference doc about ACLs.
23986 * doc/acl-resources.txt: New file.
23987 * doc/acl-cygwin.txt: New file.
23989 2008-05-21 Bruno Haible <bruno@clisp.org>
23991 Avoid one more warning from gcc.
23992 * lib/vasnprintf.c (IF_LINT): Update comments.
23993 (VASNPRINTF): Use it also for the 'prefix' array initializer.
23995 2008-05-21 Jim Meyering <meyering@redhat.com>
23997 avoid a warning from gcc
23998 * lib/vasnprintf.c (IF_LINT): Define.
23999 (scale10_round_decimal_long_double):
24000 Use it to avoid a "may be used uninitialized" warning.
24001 (scale10_round_decimal_double): Likewise.
24003 2008-05-21 Simon Josefsson <simon@josefsson.org>
24005 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24008 2008-05-20 Bruno Haible <bruno@clisp.org>
24010 * tests/test-memcmp.c (main): Test also the sign of the result. Test
24011 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24013 2008-05-20 Simon Josefsson <simon@josefsson.org>
24015 * modules/memcmp-tests: New file.
24016 * tests/test-memcmp.c: New file.
24018 2008-05-19 Bruno Haible <bruno@clisp.org>
24020 * modules/propername (Notice, configure.ac): Put quoted "..." into
24022 * lib/propername.h: Update comments accordingly.
24023 Reported by Eric Blake.
24025 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
24027 * modules/getpass-gnu (Depends-on): Add fseeko.
24029 2008-05-19 Simon Josefsson <simon@josefsson.org>
24031 * modules/base64-tests: New file.
24033 2008-05-19 Bo Borgerson <gigabo@gmail.com>
24035 * lib/base64.c (base64_decode_ctx): If a decode context structure
24036 was passed in use it to ignore newlines. If a context structure
24037 was _not_ passed in, continue to treat newlines as garbage (this
24038 is the historical behavior). Formerly base64_decode.
24039 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
24040 takes a decode context structure.
24041 * lib/base64.h (base64_decode): Macro for four-argument calls.
24042 (base64_decode_alloc): Likewise.
24043 * lib/base64.c (base64_decode_ctx): If a decode context structure
24044 was passed in use it to ignore newlines. If a context structure
24045 was _not_ passed in, continue to treat newlines as garbage (this
24046 is the historical behavior). Formerly base64_decode.
24047 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
24048 takes a decode context structure.
24049 * lib/base64.h (base64_decode): Macro for four-argument calls.
24050 (base64_decode_alloc): Likewise.
24052 2008-05-19 Jim Meyering <meyering@redhat.com>
24054 avoid a warning from gcc
24055 * lib/trim.c (IF_LINT): Define.
24056 (trim2): Use it to avoid a "may be used uninitialized" warning.
24059 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24061 2008-05-19 Bruno Haible <bruno@clisp.org>
24063 * doc/glibc-functions/getpass.texi: Document limits of other
24066 2008-05-19 Simon Josefsson <simon@josefsson.org>
24067 Bruno Haible <bruno@clisp.org>
24069 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24071 2008-05-18 Bruno Haible <bruno@clisp.org>
24073 * modules/propername: New file, from GNU gettext.
24074 * lib/propername.h: New file, from GNU gettext.
24075 * lib/propername.c: New file, from GNU gettext.
24076 * MODULES.html.sh (Internationalization functions): Add propername.
24078 2008-05-16 Jim Meyering <meyering@redhat.com>
24079 Bruno Haible <bruno@clisp.org>
24081 Avoid some warnings from "gcc -Wshadow".
24082 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24084 2008-05-15 Eric Blake <ebb9@byu.net>
24086 Extend previous patch to cygwin 1.7.0.
24087 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24088 fast implementation in cygwin >= 1.7.0.
24089 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24090 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24092 2008-05-15 Bruno Haible <bruno@clisp.org>
24094 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24095 implementation in glibc >= 2.9.
24096 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24097 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24099 2008-05-15 Bruno Haible <bruno@clisp.org>
24101 * MODULES.html.sh (Internationalization functions): Remove linebreak.
24102 (Unicode string functions): Add unilbrk/*.
24103 Reported by Karl Berry.
24105 2008-05-15 Eric Blake <ebb9@byu.net>
24107 Fix violation of <stdbool.h> replacement in regex.
24108 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24109 * lib/regexec.c (re_search_internal): Likewise.
24110 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24112 2008-05-15 Jim Meyering <meyering@redhat.com>
24114 avoid distracting test output when git or cvs is not found
24115 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24116 * tests/test-vc-list-files-git.sh: Likewise.
24118 2008-05-15 Eric Blake <ebb9@byu.net>
24120 Glibc finally accepted the memmem speedup code, bugzilla #5514.
24121 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24123 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24124 * doc/posix-functions/strstr.texi (strstr): Likewise.
24125 * lib/str-two-way.h (MAX): Sychronize with glibc.
24127 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
24129 * lib/regcomp.c (optimize_utf8): Add a note on why we test
24131 (calc_first): Initialize constraint field.
24132 (duplicate_node_closure): Use it instead of special casing ANCHORS.
24134 (duplicate_node): Merge constraint field for all node types.
24135 (calc_eclosure_iter): Look at constraint field for all node types.
24136 * lib/regex_internal.c (create_cd_newstate): Don't look at
24139 2008-05-14 Bruno Haible <bruno@clisp.org>
24141 Help GCC to do better code generation.
24142 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24143 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24144 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24145 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24146 Declare with attribute 'malloc' if supported.
24148 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
24150 use "echo STR|wc -c" rather than unportable "expr length STR"
24151 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24152 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24154 2008-05-14 Jim Meyering <meyering@redhat.com>
24156 use dd ibs=$n count=1 ... rather than less-portable head -c$n
24157 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24158 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24159 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24162 2008-05-14 Eric Blake <ebb9@byu.net>
24164 Avoid quadratic growth in gl_LIBSOURCES.
24165 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24166 Suggested by Bruno Haible.
24169 * modules/xmemdup0-tests: New file.
24170 * tests/test-xmemdup0.c: Likewise.
24172 2008-05-13 Eric Blake <ebb9@byu.net>
24174 Split xmemdup0 into its own module.
24175 * modules/xmemdup0: New file.
24176 * lib/xmemdup0.h: Likewise.
24177 * lib/xmemdup0.c: Likewise.
24178 * MODULES.html.sh (Memory management functions): Add xmemdup0.
24179 * lib/xalloc.h (xmemdup0): Remove.
24180 * lib/xmalloc.c (xmemdup0): Likewise.
24182 2008-05-13 Eric Blake <ebb9@byu.net>
24183 Bruno Haible <bruno@clisp.org>
24185 Reduce number of forks required during autoconf.
24186 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24187 and gl_LIBSOURCES_DIR.
24188 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24189 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24190 m4_syscmd per file.
24191 <m4_foreach_w>: Move...
24192 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24194 2008-05-13 Eric Blake <ebb9@byu.net>
24196 * gnulib-tool: Fix various comment typos.
24198 2008-05-12 Bruno Haible <bruno@clisp.org>
24200 Tailor the linebreaking algorithm.
24201 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24203 2008-05-12 Bruno Haible <bruno@clisp.org>
24205 Update to Unicode 5.0.0.
24206 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24207 LBP_JV, LBP_JT. Redistribute values.
24208 (unilbrk_table): Change size.
24209 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24210 Unicode TR#14 rev. 22.
24211 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24212 LBP_JV, LBP_JT. Redistribute values.
24213 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24214 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24216 * lib/unilbrk/lbrkprop1.h: Regenerated.
24217 * lib/unilbrk/lbrkprop2.h: Regenerated.
24218 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24219 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24220 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24222 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24224 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24226 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24227 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24228 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24229 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24230 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24231 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24233 2008-05-11 Bruno Haible <bruno@clisp.org>
24235 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24237 2008-05-11 Bruno Haible <bruno@clisp.org>
24239 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24240 * modules/unilbrk/gen-lbrk: New file.
24242 2008-05-11 Bruno Haible <bruno@clisp.org>
24244 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24245 * m4/sha512.m4 (gl_SHA512): Likewise.
24247 2008-05-11 Jim Meyering <meyering@redhat.com>
24249 New modules: crypto/sha256, crypto/sha512 (from coreutils)
24250 * modules/crypto/sha256: New file.
24251 * modules/crypto/sha512: Likewise.
24252 * lib/sha256.c: Likewise.
24253 * lib/sha256.h: Likewise.
24254 * lib/sha512.c: Likewise.
24255 * lib/sha512.h: Likewise.
24256 * lib/u64.h: Likewise.
24257 * m4/sha256.m4: Likewise.
24258 * m4/sha512.m4: Likewise.
24259 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24261 2008-05-10 Bruno Haible <bruno@clisp.org>
24263 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24264 (Input/Output <stdio.h>): Add xprintf.
24265 (Signal handling <signal.h>): Add strsignal.
24266 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24267 (Core language properties): Add func.
24268 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24269 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24271 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24272 (Input/output): New section.
24273 (File system functions): Add openat-die, stat-macros.
24274 (Networking functions): Add sockets.
24275 (Unicode string functions): Add unictype/*.
24276 (Support for building libraries and executables): Add gperf.
24277 (Support for building documentation): Add agpl-3.0.
24278 (Misc): Add nocrash.
24280 2008-05-10 Bruno Haible <bruno@clisp.org>
24282 * modules/unictype/gen-ctype: New file.
24284 2008-05-10 Jim Meyering <meyering@redhat.com>
24286 Make chdir-safer.c more efficient on a system with no symlinks.
24287 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24288 also if ELOOP is zero. Suggested by Bruno Haible.
24290 Make chdir-safer.c slightly safer.
24291 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24292 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24294 Avoid compile failure on systems without ELOOP (like mingw).
24295 * lib/chdir-safer.c (ELOOP): Define if not already defined.
24296 Reported by Bruno Haible.
24298 2008-05-10 Bruno Haible <bruno@clisp.org>
24300 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24301 (is_utf8_encoding): Use a case-insensitive comparison.
24302 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24305 2008-05-10 Bruno Haible <bruno@clisp.org>
24307 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24308 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24309 * lib/unilbrk/ulc-common.h (iconv_string_length,
24310 iconv_string_keeping_offsets): Remove declarations.
24311 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24312 Don't include <iconv.h>, streq.h, xsize.h.
24313 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24315 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24316 <iconv.h>, streq.h, xsize.h.
24317 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24319 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24320 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24321 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24322 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24324 2008-05-10 Bruno Haible <bruno@clisp.org>
24326 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24327 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24329 * modules/unilbrk/u32-width-linebreaks-tests: New file.
24330 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24332 * modules/unilbrk/u16-width-linebreaks-tests: New file.
24333 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24335 * modules/unilbrk/u8-width-linebreaks-tests: New file.
24336 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24338 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24339 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24341 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24342 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24344 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24345 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24347 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24348 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24350 2008-05-10 Bruno Haible <bruno@clisp.org>
24352 Split up 'linebreak' module.
24353 * lib/unilbrk.h: New file, based on lib/linebreak.h.
24354 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24355 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24357 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24358 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24359 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24361 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24363 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24365 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24366 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24367 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24369 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24371 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24373 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24375 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24377 * modules/unilbrk/base: New file.
24378 * modules/unilbrk/tables: New file.
24379 * modules/unilbrk/u8-possible-linebreaks: New file.
24380 * modules/unilbrk/u16-possible-linebreaks: New file.
24381 * modules/unilbrk/u32-possible-linebreaks: New file.
24382 * modules/unilbrk/ulc-common: New file.
24383 * modules/unilbrk/ulc-possible-linebreaks: New file.
24384 * modules/unilbrk/u8-width-linebreaks: New file.
24385 * modules/unilbrk/u16-width-linebreaks: New file.
24386 * modules/unilbrk/u32-width-linebreaks: New file.
24387 * modules/unilbrk/ulc-width-linebreaks: New file.
24388 * lib/linebreak.h: Remove file.
24389 * lib/linebreak.c: Remove file.
24390 * m4/linebreak.m4: Remove file.
24391 * modules/linebreak: Remove file.
24392 * NEWS: Mention the changes.
24394 2008-05-09 Eric Blake <ebb9@byu.net>
24397 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24399 * lib/xmalloc.c (xmemdup0): New C implementation.
24401 2008-05-08 Bruno Haible <bruno@clisp.org>
24403 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24405 2008-05-07 Eric Blake <ebb9@byu.net>
24407 Support cross-compilation of <wctype.h>.
24408 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24411 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
24413 * build-aux/vc-list-files: Add support for bzr.
24415 2008-05-03 Jim Meyering <meyering@redhat.com>
24417 avoid failed assertion with tight malloc
24418 * tests/test-getndelim2.c: Correct an off-by-one assertion.
24420 2008-05-03 Simon Josefsson <simon@josefsson.org>
24422 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24423 are needed from arpa/inet.h.
24424 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24425 Reported by Bruno Haible.
24427 2008-05-02 Jim Meyering <meyering@redhat.com>
24429 avoid compilation error on FreeBSD 6
24430 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24432 2008-05-01 Jim Meyering <meyering@redhat.com>
24434 useless-if-before-free: correct --help's exit status description
24435 * build-aux/useless-if-before-free (usage): Like grep, exit 0
24436 for one or more matches, etc. Reported by Bruno Haible.
24438 vc-list-files: make the stand-alone gnulib test work
24439 * modules/vc-list-files-tests (configure.ac):
24440 Define and AC_SUBST abs_aux_dir.
24441 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24442 $(abs_top_srcdir) to each script and having each of them
24443 duplicate the work of setting PATH, set PATH here, using
24444 the new variable, abs_aux_dir instead.
24445 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24446 * tests/test-vc-list-files-git.sh: Likewise.
24447 Reported by Bruno Haible.
24449 2008-05-01 Bruno Haible <bruno@clisp.org>
24451 * lib/getndelim2.c (getndelim2): Fix newsize computation during
24452 reallocation. Rename 'done' to 'found_delimiter'.
24454 2008-05-01 Jim Meyering <meyering@redhat.com>
24456 vc-list-files: accommodate /bin/sh like the one from Solaris 10
24457 * build-aux/vc-list-files: Use `...`, not $(...).
24459 2008-04-30 Jim Meyering <meyering@redhat.com>
24461 add tests for vc-list-files
24462 * modules/vc-list-files-tests: New module.
24463 * tests/test-vc-list-files-cvs.sh: New file.
24464 * tests/test-vc-list-files-git.sh: New file.
24466 avoid a warning from gcc
24467 * lib/getndelim2.c (IF_LINT): Define.
24468 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24470 vc-list-files: work properly with build-aux/cvsu, too
24471 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24472 to all cvs-based clauses.
24474 vc-list-files: work properly in the CVS+awk case, too
24475 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24477 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24478 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24479 take more than one file argument, so . Add quotes, just in case $dir
24480 ever contains a shell meta-character. Prompted by Soren Hansen in
24481 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24483 2008-04-29 Eric Blake <ebb9@byu.net>
24485 Optimize getndelim2 to use block operations when possible.
24486 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24487 freadseek, and memchr2.
24488 * lib/getndelim2.c (getndelim2): Use them for block reads.
24490 2008-04-29 Bruno Haible <bruno@clisp.org>
24492 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24493 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24494 * modules/inet_ntop (Depends-on): Add extensions.
24495 * modules/inet_pton (Depends-on): Likewise.
24496 Reported by Simon Josefsson.
24498 2008-04-29 Jim Meyering <meyering@redhat.com>
24500 When the is more than one match in a block, match all of them.
24501 * build-aux/useless-if-before-free: Iterate through each block
24502 until there are no more matches.
24504 Fix broken useless-if-before-free script.
24505 * build-aux/useless-if-before-free: Fix typo: missing "?" after
24506 the expression to match cast of argument to free-like function.
24508 2008-04-29 Eric Blake <ebb9@byu.net>
24511 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24513 2008-04-29 Jim Meyering <meyering@redhat.com>
24515 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24516 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24517 by gnulib to exist and to declare e.g., inet_ntop.
24518 Don't include "inet_ntop.h", now removed.
24520 * m4/arpa_inet_h.m4: Remove trailing blanks.
24522 2008-04-29 Eric Blake <ebb9@byu.net>
24524 Silence valgrind on safe reads beyond potential array bounds.
24525 * lib/rawmemchr.valgrind: New file.
24526 * lib/strchrnul.valgrind: Likewise.
24527 * modules/rawmemchr (Files): Distribute new file.
24528 * modules/strchrnul (Files): Likewise.
24529 Suggested by Bruno Haible.
24531 2008-04-29 Bruno Haible <bruno@clisp.org>
24533 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24534 (inet_ntop, inet_pton): Change portability warning's wording.
24535 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24536 Invoke gl_CHECK_NEXT_HEADERS.
24537 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24538 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24540 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24541 * modules/arpa_inet (Description): No longer only for systems that
24543 (Depends-on): Add include_next.
24544 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24547 2008-04-29 Jim Meyering <meyering@redhat.com>
24549 * modules/mkdir (License): Re-license as LGPLv2+.
24551 2008-04-29 Bruno Haible <bruno@clisp.org>
24553 * modules/rawmemchr (Maintainer): Set to Eric.
24554 * modules/strchrnul (Maintainer): Likewise.
24556 2008-04-29 Simon Josefsson <simon@josefsson.org>
24558 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24559 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24561 * modules/arpa_inet (arpa/inet.h): Use them.
24563 2008-04-28 Eric Blake <ebb9@byu.net>
24566 * modules/getndelim2-tests: New file.
24567 * tests/test-getndelim2.c: Likewise.
24568 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
24570 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24572 * MODULES.html.sh: Document new module.
24574 2008-04-20 Bruno Haible <bruno@clisp.org>
24576 * lib/c-stack.c (die): Use raise.
24577 * modules/c-stack (Depends-on): Add raise.
24579 2008-04-28 Bruno Haible <bruno@clisp.org>
24581 Expect rpmatch to be declared.
24582 * lib/yesno.c (rpmatch): Remove declaration.
24585 * lib/stdlib.in.h (rpmatch): New declaration.
24586 * lib/rpmatch.c: Include <stdlib.h> first.
24587 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24588 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24589 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24591 * modules/rpmatch (Depends-on): Add stdlib, extensions.
24592 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24593 (Include): Set to <stdlib.h>.
24594 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24596 * NEWS: Document the change.
24598 2008-04-28 Bruno Haible <bruno@clisp.org>
24600 Change rpmatch to use nl_langinfo when appropriate.
24601 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24603 (localized_pattern): New function/macro.
24604 (try): Remove match, nomatch arguments. Copy the pattern into safe
24605 memory before caching it.
24606 (rpmatch): Use localized_pattern. Add translator comments.
24607 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24608 Suggested by Eric Blake.
24609 * modules/rpmatch (Depends-on): Add stdbool.
24611 2008-04-28 Eric Blake <ebb9@byu.net>
24613 Add rawmemchr module, matching glibc.
24614 * modules/string (Makefile.am): New indicator.
24615 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24616 * lib/string.in.h (rawmemchr): Declare when appropriate.
24617 * modules/rawmemchr: New file.
24618 * m4/rawmemchr.m4: Likewise.
24619 * lib/rawmemchr.c: Likewise.
24620 * modules/rawmemchr-tests: Likewise.
24621 * tests/test-rawmemchr.c: Likewise.
24622 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24624 * modules/strchrnul (Depends-on): Add rawmemchr.
24625 * lib/strchrnul.c (strchrnul): Optimize a corner case.
24627 Whitespace cleanup.
24628 * tests/test-strchrnul.c: Reindent.
24629 * lib/strchrnul.c: Likewise.
24631 Optimize and test strchrnul.
24632 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24633 * modules/strchrnul-tests: New file.
24634 * tests/test-strchrnul.c: Likewise.
24636 Remove intprops dependency.
24637 * modules/memchr (Depends-on): Remove intprops.
24638 * modules/memrchr (Depends-on): Likewise.
24639 * modules/memchr2 (Depends-on): Likewise.
24640 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24641 * lib/memrchr.c (__memrchr): Likewise.
24642 * lib/memrchr2.c (memchr2): Likewise.
24643 Reported by Simon Josefsson.
24645 2008-04-28 Simon Josefsson <simon@josefsson.org>
24647 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24648 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24650 2008-04-28 Simon Josefsson <simon@josefsson.org>
24652 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24654 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24656 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24658 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24660 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24662 * m4/inet_pton.m4: Don't check for header files.
24664 * m4/inet_ntop.m4: Don't check for header files.
24666 2008-04-28 Simon Josefsson <simon@josefsson.org>
24668 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24669 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24670 trigger for cygwin).
24671 Reported by Bruno Haible <bruno@clisp.org>.
24673 2008-04-28 Bruno Haible <bruno@clisp.org>
24675 * doc/posix-functions/strdup.texi: Mention mingw problem.
24677 2008-04-27 Bruno Haible <bruno@clisp.org>
24679 * modules/stat-time-tests (Depends-on): Add sleep.
24680 * tests/test-stat-time.c (force_unlink): New function.
24682 (test_mtime): Remove the ctime related tests.
24683 (test_ctime): New function, containing the ctime related tests.
24684 (main): Call test_ctime, except on native Windows platforms.
24686 2008-04-27 Bruno Haible <bruno@clisp.org>
24688 * lib/rpmatch.c (rpmatch): Add some comments.
24689 Reported by James Youngman <jay@gnu.org>.
24691 2008-04-27 Bruno Haible <bruno@clisp.org>
24693 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24696 2008-04-27 Bruno Haible <bruno@clisp.org>
24698 Make test-yesno.sh work on mingw.
24699 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24700 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24701 (main): Set stdin to binary mode.
24702 * modules/yesno-tests (Depends-on): Add binary-io.
24704 2008-04-27 Bruno Haible <bruno@clisp.org>
24706 Fix 'isfinite' on x86, x86_64, ia64 platforms.
24707 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24708 argument that lie outside the IEEE 854 domain.
24709 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24710 (gl_ISFINITE): Use it.
24711 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24713 2008-04-27 Bruno Haible <bruno@clisp.org>
24715 Allow local renaming in config.h.
24716 * lib/memrchr.c (memrchr): Don't undefine outside libc.
24718 2008-04-27 Bruno Haible <bruno@clisp.org>
24720 * lib/memchr.c (__memchr): Change type of 'i'.
24721 * lib/memchr2.c (memchr2): Likewise.
24723 2008-04-26 Eric Blake <ebb9@byu.net>
24724 and Bruno Haible <bruno@clisp.org>
24726 Optimize and test memrchr.
24727 * modules/memrchr (Depends-on): Add intprops.
24728 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24729 * modules/memrchr-tests: New file.
24730 * tests/test-memrchr.c: New file.
24732 2008-04-26 Bruno Haible <bruno@clisp.org>
24734 Add tentative support for DragonFly BSD.
24735 * lib/stdio-impl.h: Add macros for DragonFly BSD.
24736 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24738 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24739 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24740 * lib/fpurge.c (fpurge): Likewise.
24741 * lib/freadable.c (freaadable): Likewise.
24742 * lib/freadahead.c (freadahead): Likewise.
24743 * lib/freading.c (freading): Likewise.
24744 * lib/freadptr.c (freadptr): Likewise.
24745 * lib/freadseek.c (freadptrinc): Likewise.
24746 * lib/fseeko.c (fseeko): Likewise.
24747 * lib/fseterr.c (fseterr): Likewise.
24748 * lib/fwritable.c (fwritable): Likewise.
24749 * lib/fwriting.c (fwriting): Likewise.
24751 2008-04-26 Bruno Haible <bruno@clisp.org>
24753 * lib/stdio-impl.h: New file.
24754 * lib/fbufmode.c: Include stdio-impl.h.
24755 (fbufmode): Use fp_, remove redundant #defines.
24756 * lib/fflush.c: Include stdio-impl.h.
24757 (clear_ungetc_buffer): Remove redundant #defines.
24758 * lib/fpurge.c: Include stdio-impl.h.
24759 (fpurge): Remove redundant #defines.
24760 * lib/freadable.c: Include stdio-impl.h.
24761 (freadable): Remove redundant #defines.
24762 * lib/freadahead.c: Include stdio-impl.h.
24763 (freadahead): Remove redundant #defines.
24764 * lib/freading.c: Include stdio-impl.h.
24765 (freading): Remove redundant #defines.
24766 * lib/freadptr.c: Include stdio-impl.h.
24767 (freadptr): Remove redundant #defines.
24768 * lib/freadseek.c: Include stdio-impl.h.
24769 (freadptrinc): Remove redundant #defines.
24770 * lib/fseeko.c: Include stdio-impl.h.
24771 (rpl_fseeko): Remove redundant #defines.
24772 * lib/fseterr.c: Include stdio-impl.h.
24773 (fseterr): Remove redundant #defines.
24774 * lib/fwritable.c: Include stdio-impl.h.
24775 (fwritable: Remove redundant #defines.
24776 * lib/fwriting.c: Include stdio-impl.h.
24777 (fwriting): Remove redundant #defines.
24778 * modules/fbufmode (Files): Add lib/stdio-impl.h.
24779 * modules/fflush (Files): Likewise.
24780 * modules/fpurge (Files): Likewise.
24781 * modules/freadable (Files): Likewise.
24782 * modules/freadahead (Files): Likewise.
24783 * modules/freading (Files): Likewise.
24784 * modules/freadptr (Files): Likewise.
24785 * modules/freadseek (Files): Likewise.
24786 * modules/fseeko (Files): Likewise.
24787 * modules/fseterr (Files): Likewise.
24788 * modules/fwritable (Files): Likewise.
24789 * modules/fwriting (Files): Likewise.
24791 2008-04-26 Bruno Haible <bruno@clisp.org>
24793 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24794 restore_seek_optimization, update_fpos_cache): New functions, extracted
24796 (rpl_fflush): Use them.
24797 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24798 (gl_REPLACE_FFLUSH): Use it.
24800 2008-04-26 Bruno Haible <bruno@clisp.org>
24802 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24804 * tests/test-xstrtoimax.sh: Likewise.
24805 * tests/test-xstrtoumax.sh: Likewise.
24806 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24808 2008-04-26 Bruno Haible <bruno@clisp.org>
24810 * modules/memchr-tests: New file.
24811 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24813 2008-04-26 Eric Blake <ebb9@byu.net>
24814 Bruno Haible <bruno@clisp.org>
24816 * lib/memchr.c: Include intprops.h.
24817 (__memchr): Optimize parallel detection of matching bytes. Rename local
24818 variables. Add explanatory comments.
24820 2008-04-26 Bruno Haible <bruno@clisp.org>
24822 Fix module 'memchr', broken since 2000-10-28.
24823 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24825 2008-04-26 Bruno Haible <bruno@clisp.org>
24827 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24830 2008-04-25 Eric Blake <ebb9@byu.net>
24832 Use native fstatat on cygwin 1.7.0.
24833 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24836 2008-04-23 Eric Blake <ebb9@byu.net>
24838 Improve memchr2 performance.
24839 * lib/memchr2.c (memchr2): Further optimize parallel detection of
24841 * modules/memchr2 (Depends-on): Use intprops.h.
24843 2008-04-23 Simon Josefsson <simon@josefsson.org>
24845 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24846 an inline function instead of a CPP macro. Patch by Ben Pfaff
24847 <blp@cs.stanford.edu>.
24849 2008-04-23 Simon Josefsson <simon@josefsson.org>
24851 * lib/arpa_inet.in.h: New file.
24853 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24854 (Makefile.am): Sed in substitute header file.
24856 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24857 gl_ARPA_INET_MODULE_INDICATOR. Use them.
24859 * modules/inet_ntop (configure.ac): Use
24860 gl_ARPA_INET_MODULE_INDICATOR.
24862 * modules/inet_pton (configure.ac): Use
24863 gl_ARPA_INET_MODULE_INDICATOR.
24865 2008-04-22 Jim Meyering <meyering@redhat.com>
24867 * modules/verify (License): Re-license as LGPLv2+.
24869 2008-04-22 Simon Josefsson <simon@josefsson.org>
24871 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24872 parameter to void* as per POSIX standard (MinGW uses char*).
24874 2008-04-21 Bruno Haible <bruno@clisp.org>
24876 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24877 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24878 Define to replacements if REPLACE_ISWCNTRL is 1.
24879 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24880 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24881 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24882 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24884 * doc/posix-functions/iswalpha.texi: Likewise.
24885 * doc/posix-functions/iswblank.texi: Likewise.
24886 * doc/posix-functions/iswcntrl.texi: Likewise.
24887 * doc/posix-functions/iswdigit.texi: Likewise.
24888 * doc/posix-functions/iswgraph.texi: Likewise.
24889 * doc/posix-functions/iswlower.texi: Likewise.
24890 * doc/posix-functions/iswprint.texi: Likewise.
24891 * doc/posix-functions/iswpunct.texi: Likewise.
24892 * doc/posix-functions/iswspace.texi: Likewise.
24893 * doc/posix-functions/iswupper.texi: Likewise.
24894 * doc/posix-functions/iswxdigit.texi: Likewise.
24895 Reported by Alain Guibert.
24897 2008-04-21 Bruno Haible <bruno@clisp.org>
24899 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24900 Patch by Alain Guibert.
24902 2008-04-21 Bruno Haible <bruno@clisp.org>
24904 Fix test failures on mingw.
24905 * tests/test-xstrtol.c (print_no_progname): New function.
24906 (main): Install it in error_print_progname hook.
24907 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24908 * tests/test-xstrtoimax.sh: Likewise.
24909 * tests/test-xstrtoumax.sh: Likewise.
24911 2008-04-21 Bruno Haible <bruno@clisp.org>
24913 Fix test failure on mingw.
24914 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24916 2008-04-21 Bruno Haible <bruno@clisp.org>
24918 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24919 Actually assign a value.
24921 2008-04-20 Bruno Haible <bruno@clisp.org>
24923 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24925 * lib/canonicalize.c (canonicalize_file_name): Elide if the
24926 'canonicalize-lgpl' module is also used.
24927 * lib/canonicalize-lgpl.c: Undo last change.
24928 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24930 2008-04-20 Bruno Haible <bruno@clisp.org>
24932 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24933 config.h. Provide _mkdir based fallback for mingw.
24934 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24935 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24936 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24937 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24938 rather than defining mkdir in config.h.
24939 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24940 (gl_SYS_STAT_H_DEFAULTS): New macro.
24941 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24942 HAVE_IO_H any more.
24943 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24944 HAVE_DECL_MKDIR and HAVE_IO_H.
24946 2008-04-20 Bruno Haible <bruno@clisp.org>
24948 * lib/isapipe.c: Port to native Windows platforms.
24950 2008-04-20 Bruno Haible <bruno@clisp.org>
24952 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24954 2008-04-21 Eric Blake <ebb9@byu.net>
24956 Work around preprocessors that don't handle UINTMAX_MAX.
24957 * lib/memchr2.c (memchr2): Avoid embedded #if.
24958 Reported by Alain Guibert, fix suggested by Bruno Haible.
24960 2008-04-21 Simon Josefsson <simon@josefsson.org>
24962 * doc/posix-functions/strftime.texi (strftime): Explain better
24963 Windows incompatibility. Suggested by Micah Cowan
24964 <micah@cowan.name>.
24966 2008-04-20 Bruno Haible <bruno@clisp.org>
24968 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24971 2008-04-20 Bruno Haible <bruno@clisp.org>
24973 Fix test failure on platforms with non-GNU iconv.
24974 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24975 (U_TO_U8): Use it, rather than u16_to_u8.
24976 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24977 units at the end of the input string.
24978 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24980 2008-04-20 Bruno Haible <bruno@clisp.org>
24982 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24983 when the resulting length is 0.
24984 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24986 2008-04-20 Bruno Haible <bruno@clisp.org>
24988 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24990 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24992 2008-04-20 Bruno Haible <bruno@clisp.org>
24994 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24995 * modules/tsearch-tests (configure.ac): Test for initstate function.
24997 2008-04-20 Bruno Haible <bruno@clisp.org>
24999 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25000 for nlink_t if missing.
25001 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25003 2008-04-19 Bruno Haible <bruno@clisp.org>
25005 Work around snprintf bug on Linux libc5.
25006 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25007 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25009 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25010 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25012 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25013 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25014 * modules/snprintf (Files): Add m4/printf.m4.
25015 * modules/vsnprintf (Files): Likewise.
25016 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25017 * doc/posix-functions/vsnprintf.texi: Likewise.
25019 2008-04-19 Bruno Haible <bruno@clisp.org>
25021 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25022 from 0.0058 to less than 10^-7.
25024 2008-04-19 Bruno Haible <bruno@clisp.org>
25026 Fix rounding when a precision is given.
25027 * lib/vasnprintf.c (is_borderline): New function.
25028 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25030 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25032 * tests/test-vasprintf-posix.c (test_function): Likewise.
25033 * tests/test-snprintf-posix.h (test_function): Likewise.
25034 * tests/test-sprintf-posix.h (test_function): Likewise.
25035 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25036 * tests/test-printf-posix.h (test_function): Likewise.
25037 * tests/test-printf-posix.output: Update.
25038 Reported by John Darrington <john@darrington.wattle.id.au> via
25039 Ben Pfaff <blp@cs.stanford.edu>.
25041 2008-04-18 Simon Josefsson <simon@josefsson.org>
25043 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25044 Suggested by Bruno Haible <bruno@clisp.org>.
25046 2008-04-17 Bruno Haible <bruno@clisp.org>
25048 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25049 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25051 Patch by Bruce Merry <bmerry@gmail.com>.
25053 2008-04-17 Simon Josefsson <simon@josefsson.org>
25055 * doc/posix-functions/strftime.texi (strftime): Mention that %e
25056 doesn't work under Windows.
25058 2008-04-16 Bruno Haible <bruno@clisp.org>
25060 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25062 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25063 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25064 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25065 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25066 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25067 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25068 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25070 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25071 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25072 Northern Sotho, Uighur.
25074 2008-04-16 Bruno Haible <bruno@clisp.org>
25076 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25077 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25078 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25079 Reported by Daniel Bergström <daniel@octocode.com>.
25081 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
25082 Bruno Haible <bruno@clisp.org>
25084 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25086 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25087 New functions, mostly extracted from gl_locale_name_default.
25088 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25090 2008-04-16 Eric Blake <ebb9@byu.net>
25092 Adjust strtod detection to catch glibc 2.7 bug.
25093 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25094 Reported by John Gatewood Ham.
25096 2008-04-16 Bruno Haible <bruno@clisp.org>
25098 Add tentative support for Linux libc5.
25099 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25100 * lib/fpurge.c (fpurge): Likewise.
25101 * lib/freadable.c (freadable): Likewise.
25102 * lib/freadahead.c (freadahead): Likewise.
25103 * lib/freading.c (freading): Likewise.
25104 * lib/freadptr.c (freadptr): Likewise.
25105 * lib/freadseek.c (freadptrinc): Likewise.
25106 * lib/fseeko.c (rpl_fseeko): Likewise.
25107 * lib/fseterr.c (fseterr): Likewise.
25108 * lib/fwritable.c (fwritable): Likewise.
25109 * lib/fwriting.c (fwriting): Likewise.
25110 Reported by Alain Guibert <alguibert+bts@free.fr>.
25112 2008-04-15 Bruno Haible <bruno@clisp.org>
25114 * modules/mathl (configure.ac): Define module indicator.
25116 2008-04-15 Bruno Haible <bruno@clisp.org>
25118 * lib/logl.c (logl): Remove unused variables.
25120 2008-04-15 Bruno Haible <bruno@clisp.org>
25122 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25125 2008-04-15 Bruno Haible <bruno@clisp.org>
25127 * lib/trim.c (trim2): Fix argument of isspace() macro.
25129 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
25131 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25133 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25135 2008-04-14 Bruno Haible <bruno@clisp.org>
25137 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25138 AC_LANG_PROGRAM argument.
25139 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25140 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25141 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25142 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25143 * m4/math_h.m4 (gl_MATH_H): Likewise.
25144 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25145 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25146 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25147 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25148 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25149 * m4/regex.m4 (gl_REGEX): Likewise.
25150 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25151 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25152 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25153 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25154 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25155 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25156 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25157 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25159 2008-04-14 Jim Meyering <meyering@redhat.com>
25161 test-strtod: fix typos: s/abs/fabs/
25162 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25164 2008-04-13 Bruno Haible <bruno@clisp.org>
25166 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25167 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25168 module is also used and while not building the reloc-wrapper.
25170 2008-04-13 Bruno Haible <bruno@clisp.org>
25172 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25174 2008-04-13 Bruno Haible <bruno@clisp.org>
25176 Fix AIX compilation failure introduced on 2008-04-02.
25177 * tests/test-frexp.c (exp): Undefine before redefining.
25178 * tests/test-frexpl.c (exp): Likewise.
25180 2008-04-13 Bruno Haible <bruno@clisp.org>
25182 Work around a HP-UX stdio bug.
25183 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25184 * tests/test-ftello.c (main): Likewise.
25185 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25186 * doc/posix-functions/ftello.texi: Likewise.
25188 2008-04-13 Bruno Haible <bruno@clisp.org>
25190 Make test-signbit pass on HP-UX/hppa.
25191 * tests/test-signbit.c (minus_zerol): New variable.
25192 (test_signbitl): Use it.
25194 2008-04-13 Bruno Haible <bruno@clisp.org>
25196 Make truncl work on OSF/1 4.0.
25197 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25198 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25199 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25200 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25202 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25204 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25206 2008-04-13 Bruno Haible <bruno@clisp.org>
25208 * lib/unictype.h: Remove trailing comma from enumeration definitions.
25210 2008-04-13 Bruno Haible <bruno@clisp.org>
25212 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25213 expression, so as to avoid HP-UX 11 cc compiler bug.
25215 2008-04-13 Bruno Haible <bruno@clisp.org>
25217 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25219 2008-04-13 Bruno Haible <bruno@clisp.org>
25221 * lib/git-merge-changelog.c: Remove empty declaration outside of
25224 2008-04-13 Bruno Haible <bruno@clisp.org>
25226 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25228 2008-04-13 Bruno Haible <bruno@clisp.org>
25230 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25231 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25232 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25233 also if it exists but lacks definitions of the SHUT_* macros.
25234 * modules/sys_socket (Description): Update.
25235 Reported by Elbert Pol <e.pol@chello.nl>.
25237 2008-04-13 Bruno Haible <bruno@clisp.org>
25239 * lib/localcharset.c (OS2): Don't redefine if already defined.
25240 Reported by Elbert Pol <e.pol@chello.nl>.
25242 2008-04-13 Bruno Haible <bruno@clisp.org>
25244 * lib/binary-io.h [__EMX__]: Include <io.h>.
25245 Reported by Elbert Pol <e.pol@chello.nl>.
25247 2008-04-12 Bruno Haible <bruno@clisp.org>
25249 * lib/fpucw.h: Enable the definitions also for x86_64.
25250 Needed for NetBSD/x86_64.
25251 Reported by Thomas Klausner <tk@giga.or.at>.
25253 2008-04-12 Bruno Haible <bruno@clisp.org>
25255 * tests/test-strtod.c: Include isnand.h.
25256 (main): Use isnand instead of isnan.
25257 Reported by Jim Meyering.
25259 2008-04-12 Bruno Haible <bruno@clisp.org>
25261 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25262 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25264 2008-04-12 Jim Meyering <meyering@redhat.com>
25266 * m4/math_h.m4 (gl_MATH_H): Fix typos.
25268 2008-04-12 Bruno Haible <bruno@clisp.org>
25270 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25271 Reported by Elbert Pol <e.pol@chello.nl>.
25273 2008-04-12 Eric Blake <ebb9@byu.net>
25275 Work around Solaris 10 math.h bug.
25276 * m4/math_h.m4 (gl_MATH_H): Check for bug.
25277 (gl_MATH_H_DEFAULTS): Set up default.
25278 * modules/math (Makefile.am): Replace new indicators.
25279 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25280 * tests/test-math.c (main): Test this.
25281 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25282 * doc/posix-headers/math.texi (math.h): Mention bug.
25283 Reported by Nelson H. F. Beebe and Jim Meyering.
25285 2008-04-11 Bruno Haible <bruno@clisp.org>
25287 Adapt to future versions of Apple GCC.
25288 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25289 Reported by Peter O'Gorman <peter@pogma.com>.
25291 2008-04-11 Bruno Haible <bruno@clisp.org>
25293 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25295 2008-04-11 Bruno Haible <bruno@clisp.org>
25297 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25299 * modules/getaddrinfo-tests (Makefile.am): Define
25300 test_getaddrinfo_LDADD.
25302 2008-04-11 Bruno Haible <bruno@clisp.org>
25304 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25305 (init): Fix syntax error.
25306 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25309 2008-04-11 Bruno Haible <bruno@clisp.org>
25311 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25312 * modules/glob (Depends-on): Add stdbool.
25314 2008-04-11 Bruno Haible <bruno@clisp.org>
25316 * lib/trim.c: Include <string.h>.
25318 2008-04-11 Eric Blake <ebb9@byu.net>
25320 Avoid compile failure on OS/2.
25321 * lib/regex_internal.h (internal_function): Disable optimization
25322 on OS/2 (__EMX__), where it caused compiler error.
25323 Reported by Elbert Pol.
25325 2008-04-11 Bruno Haible <bruno@clisp.org>
25327 Flush the standard error stream before aborting. Needed on mingw.
25328 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25329 * tests/test-array_list.c (ASSERT): Likewise.
25330 * tests/test-array_oset.c (ASSERT): Likewise.
25331 * tests/test-avltree_list.c (ASSERT): Likewise.
25332 * tests/test-avltree_oset.c (ASSERT): Likewise.
25333 * tests/test-avltreehash_list.c (ASSERT): Likewise.
25334 * tests/test-binary-io.c (ASSERT): Likewise.
25335 * tests/test-byteswap.c (ASSERT): Likewise.
25336 * tests/test-c-ctype.c (ASSERT): Likewise.
25337 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25338 * tests/test-c-strcasestr.c (ASSERT): Likewise.
25339 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25340 * tests/test-c-strstr.c (ASSERT): Likewise.
25341 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25342 * tests/test-canonicalize.c (ASSERT): Likewise.
25343 * tests/test-carray_list.c (ASSERT): Likewise.
25344 * tests/test-ceilf1.c (ASSERT): Likewise.
25345 * tests/test-ceilf2.c (ASSERT): Likewise.
25346 * tests/test-ceill.c (ASSERT): Likewise.
25347 * tests/test-count-one-bits.c (ASSERT): Likewise.
25348 * tests/test-fbufmode.c (ASSERT): Likewise.
25349 * tests/test-fflush2.c (ASSERT): Likewise.
25350 * tests/test-floorf1.c (ASSERT): Likewise.
25351 * tests/test-floorf2.c (ASSERT): Likewise.
25352 * tests/test-floorl.c (ASSERT): Likewise.
25353 * tests/test-fopen.c (ASSERT): Likewise.
25354 * tests/test-fpending.c (ASSERT): Likewise.
25355 * tests/test-fprintf-posix.c (ASSERT): Likewise.
25356 * tests/test-fpurge.c (ASSERT): Likewise.
25357 * tests/test-freadable.c (ASSERT): Likewise.
25358 * tests/test-freadahead.c (ASSERT): Likewise.
25359 * tests/test-freading.c (ASSERT): Likewise.
25360 * tests/test-freadptr.c (ASSERT): Likewise.
25361 * tests/test-freadptr2.c (ASSERT): Likewise.
25362 * tests/test-freadseek.c (ASSERT): Likewise.
25363 * tests/test-freopen.c (ASSERT): Likewise.
25364 * tests/test-frexp.c (ASSERT): Likewise.
25365 * tests/test-frexpl.c (ASSERT): Likewise.
25366 * tests/test-fseek.c (ASSERT): Likewise.
25367 * tests/test-fseeko.c (ASSERT): Likewise.
25368 * tests/test-fstrcmp.c (ASSERT): Likewise.
25369 * tests/test-ftell.c (ASSERT): Likewise.
25370 * tests/test-ftello.c (ASSERT): Likewise.
25371 * tests/test-func.c (ASSERT): Likewise.
25372 * tests/test-fwritable.c (ASSERT): Likewise.
25373 * tests/test-fwriting.c (ASSERT): Likewise.
25374 * tests/test-getdelim.c (ASSERT): Likewise.
25375 * tests/test-getline.c (ASSERT): Likewise.
25376 * tests/test-i-ring.c (ASSERT): Likewise.
25377 * tests/test-iconv-utf.c (ASSERT): Likewise.
25378 * tests/test-iconv.c (ASSERT): Likewise.
25379 * tests/test-isfinite.c (ASSERT): Likewise.
25380 * tests/test-isnand.c (ASSERT): Likewise.
25381 * tests/test-isnanf.c (ASSERT): Likewise.
25382 * tests/test-isnanl.h (ASSERT): Likewise.
25383 * tests/test-ldexpl.c (ASSERT): Likewise.
25384 * tests/test-linked_list.c (ASSERT): Likewise.
25385 * tests/test-linkedhash_list.c (ASSERT): Likewise.
25386 * tests/test-localename.c (ASSERT): Likewise.
25387 * tests/test-lseek.c (ASSERT): Likewise.
25388 * tests/test-mbscasecmp.c (ASSERT): Likewise.
25389 * tests/test-mbscasestr1.c (ASSERT): Likewise.
25390 * tests/test-mbscasestr2.c (ASSERT): Likewise.
25391 * tests/test-mbscasestr3.c (ASSERT): Likewise.
25392 * tests/test-mbscasestr4.c (ASSERT): Likewise.
25393 * tests/test-mbschr.c (ASSERT): Likewise.
25394 * tests/test-mbscspn.c (ASSERT): Likewise.
25395 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25396 * tests/test-mbspbrk.c (ASSERT): Likewise.
25397 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25398 * tests/test-mbsrchr.c (ASSERT): Likewise.
25399 * tests/test-mbsspn.c (ASSERT): Likewise.
25400 * tests/test-mbsstr1.c (ASSERT): Likewise.
25401 * tests/test-mbsstr2.c (ASSERT): Likewise.
25402 * tests/test-mbsstr3.c (ASSERT): Likewise.
25403 * tests/test-memchr2.c (ASSERT): Likewise.
25404 * tests/test-memmem.c (ASSERT): Likewise.
25405 * tests/test-open.c (ASSERT): Likewise.
25406 * tests/test-printf-frexp.c (ASSERT): Likewise.
25407 * tests/test-printf-frexpl.c (ASSERT): Likewise.
25408 * tests/test-printf-posix.c (ASSERT): Likewise.
25409 * tests/test-quotearg.c (ASSERT): Likewise.
25410 * tests/test-rbtree_list.c (ASSERT): Likewise.
25411 * tests/test-rbtree_oset.c (ASSERT): Likewise.
25412 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25413 * tests/test-round1.c (ASSERT): Likewise.
25414 * tests/test-roundf1.c (ASSERT): Likewise.
25415 * tests/test-roundl.c (ASSERT): Likewise.
25416 * tests/test-signbit.c (ASSERT): Likewise.
25417 * tests/test-sleep.c (ASSERT): Likewise.
25418 * tests/test-snprintf-posix.c (ASSERT): Likewise.
25419 * tests/test-snprintf.c (ASSERT): Likewise.
25420 * tests/test-sprintf-posix.c (ASSERT): Likewise.
25421 * tests/test-stat-time.c (ASSERT): Likewise.
25422 * tests/test-strcasestr.c (ASSERT): Likewise.
25423 * tests/test-strerror.c (ASSERT): Likewise.
25424 * tests/test-striconv.c (ASSERT): Likewise.
25425 * tests/test-striconveh.c (ASSERT): Likewise.
25426 * tests/test-striconveha.c (ASSERT): Likewise.
25427 * tests/test-strsignal.c (ASSERT): Likewise.
25428 * tests/test-strstr.c (ASSERT): Likewise.
25429 * tests/test-strtod.c (ASSERT): Likewise.
25430 * tests/test-trunc1.c (ASSERT): Likewise.
25431 * tests/test-trunc2.c (ASSERT): Likewise.
25432 * tests/test-truncf1.c (ASSERT): Likewise.
25433 * tests/test-truncf2.c (ASSERT): Likewise.
25434 * tests/test-truncl.c (ASSERT): Likewise.
25435 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25436 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25437 * tests/test-vasnprintf.c (ASSERT): Likewise.
25438 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25439 * tests/test-vasprintf.c (ASSERT): Likewise.
25440 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25441 * tests/test-vprintf-posix.c (ASSERT): Likewise.
25442 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25443 * tests/test-vsnprintf.c (ASSERT): Likewise.
25444 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25445 * tests/test-wcwidth.c (ASSERT): Likewise.
25446 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25447 * tests/test-xprintf-posix.c (ASSERT): Likewise.
25448 * tests/test-xvasprintf.c (ASSERT): Likewise.
25449 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25450 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25451 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25452 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25453 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25454 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25455 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25456 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25457 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25458 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25459 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25460 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25461 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25462 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25463 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25464 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25465 * tests/unictype/test-block_list.c (ASSERT): Likewise.
25466 * tests/unictype/test-block_of.c (ASSERT): Likewise.
25467 * tests/unictype/test-block_test.c (ASSERT): Likewise.
25468 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25469 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25470 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25471 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25472 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25473 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25474 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25475 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25476 * tests/unictype/test-combining.c (ASSERT): Likewise.
25477 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25478 * tests/unictype/test-digit.c (ASSERT): Likewise.
25479 * tests/unictype/test-mirror.c (ASSERT): Likewise.
25480 * tests/unictype/test-numeric.c (ASSERT): Likewise.
25481 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25482 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25483 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25484 * tests/unictype/test-scripts.c (ASSERT): Likewise.
25485 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25486 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25487 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25488 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25489 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25490 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25491 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25492 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25493 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25494 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25495 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25496 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25497 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25498 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25499 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25500 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25501 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25502 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25503 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25504 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25505 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25506 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25507 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25508 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25509 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25510 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25511 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25512 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25513 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25514 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25515 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25516 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25517 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25518 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25519 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25520 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25521 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25522 Reported by Eric Blake.
25524 2008-04-11 Bruno Haible <bruno@clisp.org>
25526 * lib/wchar.in.h: Tweak comment.
25528 2008-04-11 Bruno Haible <bruno@clisp.org>
25530 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25531 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25533 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25535 2008-04-11 Bruno Haible <bruno@clisp.org>
25537 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25539 2008-04-11 Simon Josefsson <simon@josefsson.org>
25541 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25542 of attempting to use non-existing /dev/*random. Based on patch
25543 from Adam Strzelecki <ono@java.pl> in
25544 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25546 2008-04-08 Bruno Haible <bruno@clisp.org>
25548 Add tentative support for emx+gcc.
25549 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25550 * lib/fpurge.c (fpurge): Likewise.
25551 * lib/freadable.c (freadable): Likewise.
25552 * lib/freadahead.c (freadahead): Likewise.
25553 * lib/freading.c (freading): Likewise.
25554 * lib/freadptr.c (freadptr): Likewise.
25555 * lib/freadseek.c (freadptrinc): Likewise.
25556 * lib/fseeko.c (rpl_fseeko): Likewise.
25557 * lib/fseterr.c (fseterr): Likewise.
25558 * lib/fwritable.c (fwritable): Likewise.
25559 * lib/fwriting.c (fwriting): Likewise.
25560 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25562 2008-04-09 Eric Blake <ebb9@byu.net>
25564 Avoid some autoconf warnings.
25565 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25566 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25567 * m4/afs.m4 (gl_AFS): Likewise.
25568 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25569 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25570 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25571 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25572 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25573 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25574 (AC_CHECK_DECLS_ONCE): Likewise.
25576 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25577 gnulib-tool requires autoconf 2.59 or better.
25578 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25580 2008-04-08 Eric Blake <ebb9@byu.net>
25582 Use 'git describe --match' if present (added in git 1.5.5).
25583 * build-aux/git-version-gen: Limit result to tags that match 'v*'
25586 2008-04-08 Bruno Haible <bruno@clisp.org>
25588 Add tentative support for OpenServer.
25589 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25591 * lib/fpurge.c (fpurge): Likewise.
25592 * lib/freadable.c (freadable): Likewise.
25593 * lib/freadahead.c (freadahead): Likewise.
25594 * lib/freading.c (freading): Likewise.
25595 * lib/freadptr.c (freadptr): Likewise.
25596 * lib/freadseek.c (freadptrinc): Likewise.
25597 * lib/fseeko.c (rpl_fseeko): Likewise.
25598 * lib/fseterr.c (fseterr): Likewise.
25599 * lib/fwritable.c (fwritable): Likewise.
25600 * lib/fwriting.c (fwriting): Likewise.
25601 Reported by Roger Cornelius <rac@tenzing.org> and
25602 Brian K. White <brian@aljex.com>.
25604 2008-04-06 Jim Meyering <meyering@redhat.com>
25606 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25608 2008-04-06 Bruno Haible <bruno@clisp.org>
25610 Avoid possible error with non-ASCII bytes in UTF-8 locales.
25611 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25612 * tests/test-printf-posix.sh: Likewise.
25613 * tests/test-vfprintf-posix.sh: Likewise.
25614 * tests/test-vprintf-posix.sh: Likewise.
25615 * tests/test-xprintf-posix.sh: Likewise.
25617 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25619 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25620 hide error from 'ls', needed on OS/2.
25621 Report by Elbert Pol <elbert.pol@gmail.com>.
25623 2008-04-04 Eric Blake <ebb9@byu.net>
25625 Make test-fseeko.c failures meaningful.
25626 * tests/test-fseeko.c: Print line number on failure.
25627 * tests/test-fseek.c: Likewise.
25628 Reported by Nelson H. F. Beebe.
25630 Improve strtod bug detection check.
25631 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25632 required for Solaris 10.
25633 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25635 2008-04-04 Bruno Haible <bruno@clisp.org>
25637 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25640 2008-04-03 Eric Blake <ebb9@byu.net>
25642 Ensure sane .version contents.
25643 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25645 * build-aux/git-version-gen: Improve documentation.
25647 Make GNU make output nicer.
25648 * top/GNUmakefile [!_have-Makefile]: Add dependency on
25649 MAKECMDGOALS to enforce message for all command line targets. Set
25650 srcdir for use in maint.mk.
25652 Another maintainer tweak.
25653 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25654 a target that regenerates version.
25656 2008-04-03 Jim Meyering <meyering@redhat.com>
25658 vc-list-files: don't cause coreutils "make po-check" failure
25659 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25661 2008-04-03 Eric Blake <ebb9@byu.net>
25663 Allow VPATH usage of vc-list-files.
25664 * build-aux/vc-list-files (scriptversion): Add timestamp.
25665 (options): Add --help, --version, -C.
25666 (CVS): Support installed cvsu.
25668 2008-04-02 Bruno Haible <bruno@clisp.org>
25670 Avoid some "statement with no effect" warnings from gcc.
25671 * tests/test-wctype.c (main): Explicitly ignore unused values.
25672 Reported by Jim Meyering.
25674 2008-04-02 Jim Meyering <meyering@redhat.com>
25676 Avoid some warnings from "gcc -Wshadow".
25677 * tests/test-frexp.c (exp): Define to a different identifier.
25678 * tests/test-frexpl.c (exp): Likewise.
25680 2008-04-03 Jim Meyering <meyering@redhat.com>
25682 bootstrap: remove dangling *.[ch] symlinks from lib
25683 * build-aux/bootstrap [dangling symlink removal]: Move find's
25684 -depth option to precede all others, to avoid a warning.
25685 Remove *.[ch] files too, and from "$source_base" (usually lib/).
25687 2008-04-02 Bruno Haible <bruno@clisp.org>
25689 Avoid some warnings from "gcc -Wshadow".
25690 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25691 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25692 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25693 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25694 Reported by Jim Meyering.
25696 2008-04-01 Bruno Haible <bruno@clisp.org>
25698 Fix test to work on IRIX 6.5 with cc.
25699 * tests/test-math.c (numeric_equal): New function.
25702 2008-04-01 Bruno Haible <bruno@clisp.org>
25704 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25706 2008-04-01 Bruno Haible <bruno@clisp.org>
25708 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25709 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25710 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25711 (Depends-on): Remove math.
25713 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25714 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25715 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25716 (Depends-on): Remove math.
25718 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25719 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25720 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25721 (Depends-on): Remove math.
25722 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25723 (Depends-on): Remove math.
25725 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25726 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25727 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25728 (Depends-on): Remove math.
25729 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25730 (Depends-on): Remove math.
25732 * tests/test-round1.c: Include nan.h.
25733 (main): Use NaNd instead of NAN.
25734 * modules/round-tests (Files): Add tests/nan.h.
25736 * tests/test-trunc1.c: Include nan.h.
25737 (main): Use NaNd instead of NAN.
25738 * modules/trunc-tests (Files): Add tests/nan.h.
25740 * tests/test-roundf1.c: Include nan.h.
25741 (main): Use NaNf instead of NAN.
25742 * modules/roundf-tests (Files): Add tests/nan.h.
25744 * tests/test-truncf1.c: Include nan.h.
25745 (main): Use NaNf instead of NAN.
25746 * modules/truncf-tests (Files): Add tests/nan.h.
25748 * tests/test-ceilf1.c: Include nan.h.
25749 (main): Use NaNf instead of NAN.
25750 * modules/ceilf-tests (Files): Add tests/nan.h.
25752 * tests/test-floorf1.c: Include nan.h.
25753 (main): Use NaNf instead of NAN.
25754 * modules/floorf-tests (Files): Add tests/nan.h.
25756 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25757 (main): Use NaNf instead of NAN.
25758 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25760 * tests/test-isnand.c: Include nan.h instead of <math.h>.
25761 (main): Use NaNd instead of NAN.
25762 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25764 * tests/test-frexp.c: Include nan.h.
25765 (main): Use NaNd instead of NAN.
25766 * modules/frexp-tests (Files): Add tests/nan.h.
25768 * lib/isnan.c: Don't include <math.h>.
25769 (FUNC): Don't use NAN macro.
25770 * modules/isnand-nolibm (Depends-on): Remove math.
25771 * modules/isnanf-nolibm (Depends-on): Remove math.
25772 * modules/isnanl (Depends-on): Remove math.
25773 * modules/isnanl-nolibm (Depends-on): Remove math.
25775 * tests/nan.h: New file.
25777 2008-04-01 Eric Blake <ebb9@byu.net>
25780 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25781 values to be the right type.
25783 For now, cater to gnulib strtod inaccuracies.
25784 * tests/test-strtod.c (main): Allow 1-ulp error on expected
25785 fractional results. While not as nice from a QoI perspective, it
25786 is a quicker patch than correctly implementing decimal to binary
25789 2008-03-31 Eric Blake <ebb9@byu.net>
25791 Guarantee a definition of NAN.
25792 * lib/math.in.h (NAN): Define if missing.
25793 * tests/test-math.c (main): Test it.
25794 * doc/posix-headers/math.texi (math.h): Document this.
25795 * lib/isnan.c (rpl_isnand): Use it.
25796 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25797 * tests/test-floorf1.c (NaN): Likewise.
25798 * tests/test-frexp.c (NaN): Likewise.
25799 * tests/test-isnand.c (NaN): Likewise.
25800 * tests/test-isnanf.c (NaN): Likewise.
25801 * tests/test-round1.c (NaN): Likewise.
25802 * tests/test-roundf1.c (NaN): Likewise.
25803 * tests/test-snprintf-posix.h (NaN): Likewise.
25804 * tests/test-sprintf-posix.h (NaN): Likewise.
25805 * tests/test-trunc1.c (NaN): Likewise.
25806 * tests/test-truncf1.c (NaN): Likewise.
25807 * tests/test-vasnprintf-posix.c (NaN): Likewise.
25808 * tests/test-vasprintf-posix.c (NaN): Likewise.
25809 * modules/isnand-nolibm (Depends-on): Add math.
25810 * modules/isnanf-nolibm (Depends-on): Likewise.
25811 * modules/isnanl (Depends-on): Likewise.
25812 * modules/isnanl-nolibm (Depends-on): Likewise.
25813 * modules/snprintf-posix-tests (Depends-on): Likewise.
25814 * modules/sprintf-posix-tests (Depends-on): Likewise.
25815 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25816 * modules/vsprintf-posix-tests (Depends-on): Likewise.
25817 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25818 * modules/vasprintf-posix-tests (Depends-on): Likewise.
25820 2008-03-31 Bruno Haible <bruno@clisp.org>
25822 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25823 * doc/posix-functions/strtod.texi: Likewise.
25825 2008-03-31 Bruno Haible <bruno@clisp.org>
25827 * tests/test-strtod.c (main): Don't use C99 syntax.
25829 2008-03-31 Bruno Haible <bruno@clisp.org>
25831 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25832 Reported by Eric Blake.
25834 2008-03-31 Jim Meyering <meyering@redhat.com>
25836 Don't compare actual signbit return values.
25837 * tests/test-strtod.c (main): Rather, compare only their
25838 zero/non-zero nature.
25840 2008-03-31 Eric Blake <ebb9@byu.net>
25842 More strtod documentation.
25843 * doc/posix-functions/strtod.texi (strtod): Interpret more test
25844 failures as distinct bugs.
25846 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
25848 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25849 Problem reported by Erik Benada in
25850 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25852 2008-03-30 Bruno Haible <bruno@clisp.org>
25854 * tests/test-strtod.c: Add comments about which assertion fails on which
25856 * doc/posix-functions/strtod.texi: Add info about many more platforms.
25858 2008-03-30 Eric Blake <ebb9@byu.net>
25860 Test signbit behavior on zeros.
25861 * tests/test-signbit.c (test_signbitf): Add tests for zero.
25862 (test_signbitd, test_signbitl): Likewise.
25864 More strtod touchups.
25865 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25866 sign of negative underflow, for now. Use .5, not .1.
25867 * doc/posix-functions/strtod.texi (strtod): Mention these
25869 Reported by Jim Meyering.
25871 2008-03-30 Bruno Haible <bruno@clisp.org>
25873 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25874 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25876 2008-03-30 Bruno Haible <bruno@clisp.org>
25878 Avoid failure when attempting to return empty iconv results on some
25880 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25881 allocation, don't report ENOMEM when the resulting string is empty.
25883 2008-03-30 Bruno Haible <bruno@clisp.org>
25885 Fix buffer overrun.
25886 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25887 Don't consider the width for tmp_length. Check count against tmp_length
25888 before doing the padding. Ensure enough allocation during padding.
25890 2008-03-30 Eric Blake <ebb9@byu.net>
25893 * lib/strtod.c (strtod): Avoid compiler warnings.
25894 Reported by Jim Meyering.
25896 2008-03-30 Bruno Haible <bruno@clisp.org>
25898 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25899 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25900 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25901 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25902 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25903 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25904 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25905 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25907 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25908 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25909 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25910 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25911 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25912 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25913 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25914 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25916 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25917 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25918 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25919 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25920 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25921 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25922 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25923 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25925 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25926 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25928 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25929 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25931 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25932 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25934 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25935 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25936 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25938 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25939 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25940 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25942 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25943 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25944 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25946 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25947 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25948 * modules/vasprintf (Depends-on): Add EOVERFLOW.
25950 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25951 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25952 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25953 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25954 (Depends-on): Add EOVERFLOW.
25955 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25956 (Depends-on): Add EOVERFLOW.
25957 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25958 (Depends-on): Add EOVERFLOW.
25959 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25960 (Depends-on): Add EOVERFLOW.
25961 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25962 (Depends-on): Add EOVERFLOW.
25963 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25964 (Depends-on): Add EOVERFLOW.
25965 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25966 (Depends-on): Add EOVERFLOW.
25967 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25968 (Depends-on): Add EOVERFLOW.
25970 * lib/sprintf.c (EOVERFLOW): Remove fallback.
25971 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25972 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25974 * lib/snprintf.c (EOVERFLOW): Remove fallback.
25975 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25976 * modules/snprintf (Depends-on): Add EOVERFLOW.
25978 * lib/poll.c (EOVERFLOW): Remove fallback.
25979 * modules/poll (Depends-on): Add EOVERFLOW.
25981 * lib/getugroups.c (EOVERFLOW): Remove fallback.
25982 * modules/getugroups (Depends-on): Add EOVERFLOW.
25984 * lib/getdelim.c (EOVERFLOW): Remove fallback.
25985 * modules/getdelim (Depends-on): Add EOVERFLOW.
25987 * lib/ftell.c (EOVERFLOW): Remove fallback.
25988 * modules/ftell (Depends-on): Add EOVERFLOW.
25990 * lib/fprintf.c (EOVERFLOW): Remove fallback.
25991 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25992 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25994 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25996 * modules/EOVERFLOW-tests: New file.
25997 * tests/test-EOVERFLOW.c: New file.
25999 * modules/EOVERFLOW: New file.
26000 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26002 2008-03-30 Bruno Haible <bruno@clisp.org>
26004 Fix bug introduced on 2007-06-10.
26005 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26006 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26008 2008-03-30 Bruno Haible <bruno@clisp.org>
26010 Improve freadseek's efficiency after ungetc.
26011 * lib/freadseek.c: Include freadahead.h.
26012 (freadptrinc): New function, extracted from freadseek.
26013 (freadseek): Use it in a loop. Use freadahead to determine the number
26014 of loop iterations.
26015 * modules/freadseek (Depends-on): Add freadahead.
26016 (configure.ac): Require AC_C_INLINE.
26018 2008-03-30 Bruno Haible <bruno@clisp.org>
26020 * lib/freadseek.c (freadseek): Don't ignore the return value of
26023 2008-03-29 Eric Blake <ebb9@byu.net>
26025 Add hex float support.
26026 * modules/strtod (Depends-on): Add c-ctype.
26027 (Link): Mention POW_LIB.
26028 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
26029 whitespace between 'e' and exponent.
26030 * tests/test-strtod.c (main): Enable hex float tests.
26031 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26034 Document various strtod bugs, with some fixes.
26035 * doc/posix-functions/strtod.texi (strtod): Document bugs with
26036 "-0x", "inf", "nan", and hex constants.
26037 * doc/posix-functions/atof.texi (atof): Likewise.
26038 * modules/stdlib (Makefile.am): Support strtod.
26039 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26040 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26041 detect additional strtod bugs.
26042 * lib/stdlib.in.h (rpl_strtod): Add declarations.
26043 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
26044 bool where appropriate. Parse 'inf' and 'nan'.
26045 * tests/test-strtod.c: New file.
26046 * modules/strtod (Depends-on): Add stdbool, stdlib.
26047 (configure.ac): Turn on module indicator.
26048 * modules/strtod-tests: New module.
26050 2008-03-29 Eric Blake <ebb9@byu.net>
26052 Fix ftell on mingw.
26053 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26054 * modules/ftell-tests (Depends-on): Add binary-io.
26055 * modules/ftello-tests (Depends-on): Likewise.
26056 * tests/test-ftell.c (main): Enhance test to cover behavior after
26057 ungetc. Enforce binary mode.
26058 * tests/test-ftello.c (main): Likewise.
26060 Pass test-freadseek on cygwin.
26061 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26062 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26065 * tests/test-fflush2.c (main): Fix typo.
26067 2008-03-29 Bruno Haible <bruno@clisp.org>
26069 * tests/test-fflush2.c (main): Temporarily disable the contents of
26071 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26072 Reported by Eric Blake.
26074 2008-03-28 Simon Josefsson <simon@josefsson.org>
26076 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26077 (GC_SHA224_DIGEST_SIZE): Add.
26079 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26080 (gc_hash_digest_length): Likewise.
26081 (gc_hash_buffer): Likewise.
26083 2008-03-25 Bruno Haible <bruno@clisp.org>
26085 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26086 detail which gettext release to use.
26087 Reported by Simon Josefsson.
26089 2008-03-26 Jim Meyering <meyering@redhat.com>
26091 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26092 * modules/gnumakefile (clean-GNUmakefile): Also, use
26093 test ... && ... || : syntax rather than if-then ... fi.
26095 gnumakefile: Don't double-quote-expand $(VPATH) value.
26096 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26098 2008-03-24 Eric Blake <ebb9@byu.net>
26100 Alter GNUmakefile to install into top directory.
26101 * modules/maintainer-makefile: Split, and add dependency...
26102 * modules/gnumakefile: to this new module.
26103 * build-aux/GNUmakefile: Move...
26104 * top/GNUmakefile: ...here.
26105 * build-aux/maint.mk: Move...
26106 * top/maint.mk: ...here.
26107 * MODULES.html.sh (Support for maintaining...): Document new
26110 2008-03-23 Bruno Haible <bruno@clisp.org>
26112 * gnulib-tool: New options --vc-files, --no-vc-files.
26113 (func_usage): Document them.
26114 (vc_files): New variable.
26115 (func_import): Consider vc_files.
26116 (func_create_testdir): Set vc_files to empty.
26117 Suggested by Jim Meyering and Karl Berry.
26119 2008-03-23 Bruno Haible <bruno@clisp.org>
26121 Fix regex compilation error on HP-UX 11.
26122 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26123 * modules/regex (Files): Add m4/mbstate_t.m4.
26124 Reported by Ton Voon <ton.voon@altinity.com>.
26126 2008-03-23 Bruno Haible <bruno@clisp.org>
26128 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26130 2008-03-23 Eric Blake <ebb9@byu.net>
26131 Bruno Haible <bruno@clisp.org>
26133 Install files from top/ in the destination directory.
26134 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26135 augmentation also for the files from top/.
26136 (func_import, func_create_testdir): Rewrite file names:
26137 top/filename -> filename.
26139 2008-03-23 Bruno Haible <bruno@clisp.org>
26141 Tweak "gnulib --version" output.
26142 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26144 2008-03-23 Bruno Haible <bruno@clisp.org>
26146 Tweak "gnulib --version" output.
26147 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26148 rather than contents of ChangeLog, when possible.
26150 2008-03-21 Eric Blake <ebb9@byu.net>
26152 More --version tweaks.
26153 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
26154 date of last ChangeLog entry.
26156 2008-03-21 Jim Meyering <meyering@redhat.com>
26158 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26160 2008-03-20 Eric Blake <ebb9@byu.net>
26163 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26165 2008-03-20 Simon Josefsson <simon@josefsson.org>
26167 * build-aux/GNUmakefile: Make git-version-gen optional. Add
26168 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
26170 2008-03-20 Eric Blake <ebb9@byu.net>
26172 Sync GNUmakefile with coreutils.
26173 * build-aux/GNUmakefile (have-Makefile): Rename...
26174 (_have-Makefile): ...to this, for namespace consideration.
26175 (GNUmakefile.cfg): Include, if present.
26176 (_autoreconf): Define a default.
26177 (_is-dist-target): New rule for rebuilds to pick up intra-release
26179 (maint-cfg.mk): Rename...
26180 (cfg.mk): ...to this.
26182 2008-03-18 Jim Meyering <meyering@redhat.com>
26184 New script and module: mktempd
26185 * MODULES.html.sh (maint+release support): Add mktempd.
26186 * build-aux/mktempd: New file.
26187 * modules/mktempd: New file.
26189 2008-03-15 Jim Meyering <meyering@redhat.com>
26192 * lib/sha1.c, lib/md5.c: 63 != ~63.
26193 Reported by Andreas Schwab.
26195 sha1.c, md5.c: Hoist a redundant expression.
26196 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26197 "ctx->buflen" only once, before calling *_process_block.
26198 * lib/md5.c (md5_process_bytes): Likewise.
26200 2008-03-14 Eric Blake <ebb9@byu.net>
26202 Bump copyright year in files generated by gnulib-tool.
26203 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26204 gnulib-tool, rather than hard-coding it.
26206 Fix 'gnulib-tool --version' output to work with git.
26207 * gnulib-tool (func_gnulib_dir): New function, extracted from...
26208 (startup): ...here.
26209 (func_version): Use it to invoke git-version-gen, rather than
26210 relying on CVS keyword expansion. Modernize wording.
26211 (cvsdatestamp, last_checkin_date, version): Kill unused
26214 2008-03-12 Jim Meyering <meyering@redhat.com>
26216 Recognize optional cast of the argument to free.
26217 * build-aux/useless-if-before-free: Update regexps.
26219 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26221 2008-03-11 Bruno Haible <bruno@clisp.org>
26223 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26224 by a single package.
26225 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26226 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26227 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26228 Reported by Sam Steingold <sds@gnu.org>.
26230 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
26232 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26235 2008-03-11 Bruno Haible <bruno@clisp.org>
26237 Avoid conflicts between local macro definitions.
26238 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26239 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26241 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
26242 Bruno Haible <bruno@clisp.org>
26244 Make va_copy work with some version of xlc on AIX 5.1.
26245 * lib/stdarg.in.h: New file.
26246 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26247 On AIX, use a <stdarg.h> file substitute.
26248 * modules/stdarg (Files): Add lib/stdarg.in.h.
26249 (Depends-on): Add include_next.
26250 (Makefile.am): Build a stdarg.h substitute if requested.
26251 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26253 2008-03-10 Bruno Haible <bruno@clisp.org>
26255 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26256 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26257 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26259 2008-03-10 Bruno Haible <bruno@clisp.org>
26261 * modules/stdlib (Depends-on): Add include_next, remove
26264 2008-03-09 Bruno Haible <bruno@clisp.org>
26266 * lib/freadahead.h (freadahead): Document more precisely.
26267 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26268 the sum of both buffer sizes.
26269 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26270 * NEWS: Document the change.
26272 2008-03-09 Bruno Haible <bruno@clisp.org>
26274 Extend freadptr to return also the buffer size.
26275 * lib/freadptr.h (freadptr): Add sizep argument.
26276 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26277 (freadptr): Add sizep argument. Determine buffer size like freadahead
26279 * tests/test-freadptr.c: Don't include freadahead.h.
26280 (main): Adapt for new calling convention of freadptr.
26281 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26282 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26283 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26284 tests/test-freadptr2.sh.
26285 (Depends): Remove freadahead.
26286 (TESTS): Add test-freadptr2.sh.
26287 (check_PROGRAMS): Add test-freadptr2.
26289 2008-03-09 Bruno Haible <bruno@clisp.org>
26291 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26292 Report and solution by Simon Josefsson.
26294 2008-03-06 Bruno Haible <bruno@clisp.org>
26296 Make fflush after ungetc work on BSD platforms.
26297 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26298 * tests/test-fflush2.c: New file.
26299 * tests/test-fflush2.sh: New file.
26300 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26301 tests/test-fflush2.c.
26302 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26303 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26305 2008-03-06 Eric Blake <ebb9@byu.net>
26307 Likewise for ftello.
26308 * modules/ftello (Dependencies): Add extensions.
26309 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26311 2008-03-06 Bruno Haible <bruno@clisp.org>
26313 * modules/fseeko (Dependencies): Add extensions.
26314 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26315 Needed on glibc systems.
26317 2008-03-06 Bruno Haible <bruno@clisp.org>
26319 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26321 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26323 2008-03-06 Bruno Haible <bruno@clisp.org>
26325 * users.txt: Add libgnupdf.
26327 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
26329 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26330 (Header File Substitutes, Function Substitutes,
26331 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26332 (Build robot for gnulib): Fix typo.
26334 2008-03-06 Bruno Haible <bruno@clisp.org>
26336 * doc/gnulib-tool.texi (VCS Issues): Small updates.
26337 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26339 2008-03-06 Bruno Haible <bruno@clisp.org>
26341 * doc/func.texi: New file, extracted from doc/gnulib.texi.
26342 * doc/gnulib.texi: Include it.
26344 2008-03-06 Simon Josefsson <simon@josefsson.org>
26346 * modules/func (License): Change license to unlimited; there was
26347 no LGPL parts in the module anyway.
26349 2008-03-06 Simon Josefsson <simon@josefsson.org>
26351 * modules/__func__: Renamed to modules/func.
26352 * modules/__func__-tests: Renamed to modules/func-tests.
26353 * tests/test-__func__.c: Renamed to tests/test-func.c.
26354 * m4/__func__.m4: Renamed to m4/func.m4.
26355 * doc/gnulib.texi (__func__): Section renamed to func.
26356 Suggested by Eric Blake <ebb9@byu.net>.
26358 2008-03-06 Simon Josefsson <simon@josefsson.org>
26360 * doc/gnulib.texi (__func__): Use C99 terminology when talking
26361 about __func__. Make example self-contained. Suggested by Eric
26362 Blake <ebb9@byu.net>.
26364 * tests/test-__func__.c (main): Avoid extraneous () around __func.
26365 Suggested by Eric Blake <ebb9@byu.net>.
26367 2008-03-06 Simon Josefsson <simon@josefsson.org>
26369 * modules/__func__: New file.
26370 * modules/__func__-tests: New file.
26371 * tests/test-__func__.c: New file.
26372 * m4/__func__.m4: New file.
26373 * doc/gnulib.texi (__func__): Document __func__ module.
26375 2008-03-05 Simon Josefsson <simon@josefsson.org>
26377 * modules/byteswap (License): Re-license as LGPLv2+.
26379 2008-03-05 Simon Josefsson <simon@josefsson.org>
26381 * doc/Makefile: Add pdf target.
26383 2008-03-05 Simon Josefsson <simon@josefsson.org>
26385 * modules/inline (License): Use 'unlimited', since there are only
26386 *.m4 files in this module.
26388 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
26389 Bruno Haible <bruno@clisp.org>
26391 Add support for HP C 7.1 on OpenVMS 8.3.
26392 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26394 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
26396 Update VMS specifics.
26397 * lib/getopt.c [VMS]: Remove include of unixlib.h.
26399 2008-03-02 Jim Meyering <meyering@redhat.com>
26401 Remove the last dependency on the "free" module.
26402 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26403 Reported by Bob Proulx.
26405 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26407 Remove useless "if" tests before free. Deprecate "free" module.
26408 * doc/posix-functions/free.texi: Mention that this
26409 module is no longer useful.
26410 * modules/free (Notice): Say this module is obsolete.
26411 * modules/readutmp (Depends-on): Remove free.
26412 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26413 * lib/putenv.c (putenv): Likewise.
26414 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26415 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26416 * tests/test-c-strcasestr.c (main): Likewise.
26417 * tests/test-c-strstr.c (main): Likewise.
26418 * tests/test-mbscasestr1.c (main): Likewise.
26419 * tests/test-mbscasestr2.c (main): Likewise.
26420 * tests/test-mbsstr1.c (main): Likewise.
26421 * tests/test-mbsstr2.c (main): Likewise.
26422 * tests/test-memmem.c (main): Likewise.
26423 * tests/test-strcasestr.c (main): Likewise.
26424 * tests/test-striconv.c (main): Likewise.
26425 * tests/test-striconveh.c (main): Likewise.
26426 * tests/test-striconveha.c (main): Likewise.
26427 * tests/test-strstr.c (main): Likewise.
26429 * build-aux/git-version-gen: Adjust a comment and the Usage string.
26431 bootstrap: sync from coreutils again
26432 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26434 2008-03-01 Jim Meyering <meyering@redhat.com>
26436 bootstrap: sync from coreutils
26437 * build-aux/bootstrap (update_po_files): Copy a .po file into place
26438 also when the target doesn't exist.
26440 2008-03-01 Eric Blake <ebb9@byu.net>
26442 Fix bugs in last patch.
26443 * lib/memchr2.c (memchr2): Fix typo.
26444 * tests/test-memchr2.c: Test previous bug, and don't use GNU
26446 Reported by Bruce Korb.
26448 New module 'memchr2'.
26449 * modules/memchr2: New file.
26450 * modules/memchr2-tests: Likewise.
26451 * lib/memchr2.h: Likewise.
26452 * lib/memchr2.c: Likewise, based on memchr.c.
26453 * tests/test-memchr2.c: New test.
26454 * MODULES.html.sh (String handling): Add memchr2.
26456 2008-02-29 Bruno Haible <bruno@clisp.org>
26458 * modules/freadseek-tests: New file.
26459 * tests/test-freadseek.sh: New file.
26460 * tests/test-freadseek.c: New file.
26462 New module 'freadseek'.
26463 * modules/freadseek: New file.
26464 * lib/freadseek.h: New file.
26465 * lib/freadseek.c: New file.
26466 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26468 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
26470 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26473 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26474 program_invocation_name and program_invocation_short_name are
26477 2008-02-28 Bruno Haible <bruno@clisp.org>
26479 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26480 * tests/test-freadptr.sh: Also test non-seekable stdin.
26482 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
26484 * build-aux/bootstrap (source_base, m4_base)
26485 (doc_base, tests_base): New variables.
26486 (gnulib_tool_options): Do not hardcode base directories, use
26487 the above variables instead.
26489 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
26491 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26493 2008-02-28 Bruno Haible <bruno@clisp.org>
26495 * modules/freadptr-tests: New file.
26496 * tests/test-freadptr.sh: New file.
26497 * tests/test-freadptr.c: New file.
26499 New module 'freadptr'.
26500 * modules/freadptr: New file.
26501 * lib/freadptr.h: New file.
26502 * lib/freadptr.c: New file.
26503 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26505 2008-02-26 Karl Berry <karl@freefriends.org>
26508 * libltdl/argz.c (argz_add, argz_count): New functions.
26509 * libltdl/argz.in.h: Declare them.
26510 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26512 2008-02-22 Bruno Haible <bruno@clisp.org>
26514 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26515 is a pointer type. Needed for HP-UX 10.
26516 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26517 * doc/posix-functions/gmtime_r.texi: Likewise.
26518 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26520 2008-02-24 Bruno Haible <bruno@clisp.org>
26522 * modules/environ-tests: New file.
26523 * tests/test-environ.c: New file.
26525 New module 'environ'.
26526 * modules/environ: New file.
26527 * lib/unistd.in.h (environ): New declaration.
26528 * m4/environ.m4: New file.
26529 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26531 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26533 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26535 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26536 wrong claim that 'environ' is missing on some systems.
26537 * modules/execute (Depends-on): Add environ.
26538 * lib/execute.c (environ): Remove fallback declaration.
26539 * modules/pipe (Depends-on): Add environ.
26540 * lib/pipe.c (environ): Remove fallback declaration.
26541 * modules/setenv (Depends-on): Add environ.
26542 * lib/setenv.c (environ): Remove fallback declaration.
26543 * modules/unsetenv (Depends-on): Add environ.
26544 * lib/unsetenv.c (environ): Remove fallback declaration.
26545 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26547 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26548 (gl_PREREQ_UNSETENV): Likewise.
26550 2008-02-24 Bruno Haible <bruno@clisp.org>
26552 * doc/posix-functions/environ.texi: Document the MacOS X problem.
26554 2008-02-20 Bob Proulx <bob@proulx.com>
26556 Enable use of older two part flavor 'git describe'.
26557 * build-aux/git-version-gen: If using the older two part flavor of
26558 git version then recreate the third part now present in the
26559 newer three part flavor of git describe.
26561 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
26563 * lib/fts.c (fts_build): Typo correction to comment.
26565 2008-02-17 Bruno Haible <bruno@clisp.org>
26567 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26568 generating no-op conflicts.
26570 2008-02-17 Bruno Haible <bruno@clisp.org>
26573 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26574 result_entries, rather than an index-based loop.
26576 2008-02-17 Bruno Haible <bruno@clisp.org>
26579 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26581 (entry_create): New function.
26582 (entry_hashcode): Use the cached hashcode if possible.
26583 (read_changelog_file, try_split_merged_entry): Use entry_create.
26585 2008-02-17 Bruno Haible <bruno@clisp.org>
26587 Speed up from O(n^2) to O(n) for long ChangeLog files.
26588 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26589 (read_changelog_file): Change implementation of entries_reversed list
26591 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26593 2008-02-17 Bruno Haible <bruno@clisp.org>
26595 New option --split-merged-entry.
26596 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26597 (find_paragraph_end, try_split_merged_entry): New functions.
26598 (long_options): Add option --split-merged-entry.
26599 (usage): Document option --split-merged-entry.
26600 (main): Implement option --split-merged-entry.
26601 Reported by Eric Blake.
26603 2008-02-17 Bruno Haible <bruno@clisp.org>
26605 * lib/git-merge-changelog.c: Include c-strstr.h.
26606 (main): Support the "git pull --rebase" situation.
26607 * modules/git-merge-changelog (Depends-on): Add c-strstr.
26608 Reported by Eric Blake.
26610 2008-02-16 Eric Blake <ebb9@byu.net>
26612 Avoid doubling \ in common case of "c-maybe" quoting style.
26613 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26614 eliding outer quotes.
26615 * lib/quotearg.h: Document this.
26616 * tests/test-quotearg.c (result_strings, inputs, results_g)
26617 (flag_results, locale_results): Test it by adding a new string to
26619 (compare_strings): Test new string.
26621 2008-02-13 Eric Blake <ebb9@byu.net>
26623 Avoid trigraph quoting in default output.
26624 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26625 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26626 unless explicitly requested.
26627 * tests/test-quotearg.c (flag_results, main): Add additional tests.
26629 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
26631 Don't rely on signed integer overflowing to negative value.
26632 * lib/getugroups.c (getugroups): Include <limits.h>.
26633 Instead, compare against INT_MAX, and increment only if the test passes.
26635 2008-02-13 Jim Meyering <meyering@redhat.com>
26636 and Eric Blake <ebb9@byu.net>
26638 Avoid shadowing warning and compile errors on Linux.
26639 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26640 forwarding macros on Linux.
26641 (dcgettext): Define a stub, for Linux.
26642 (results_g, main): Avoid warnings.
26644 2008-02-12 Eric Blake <ebb9@byu.net>
26646 Silence warning in last patch.
26647 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26649 Quotearg part 4: add tests, fix c-maybe colon quoting.
26650 * lib/quotearg.h: Improve documentation.
26651 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26652 escapes when adding outer quotes. When quoting trigraphs, use
26653 valid C notation. When quoting NUL, omit extra characters if next
26654 character is not digit. Alter prototype.
26655 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26657 * modules/quotearg-tests: New module.
26658 * tests/test-quotearg.c: New test.
26660 2008-02-07 Eric Blake <ebb9@byu.net>
26662 Quotearg part 3: add flag to control outer quote elision.
26663 * lib/quotearg.h (c_maybe_quoting_style): New style.
26664 (enum quoting_flags): Better documentation of flags.
26665 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26667 (quotearg_buffer_restyled): Handle new flag to elide outer
26670 Quotearg part 2: add flag that can control NUL elision.
26671 * lib/quotearg.h (set_quoting_flags): New prototype.
26672 * lib/quotearg.c (struct quoting_options): Add flag field.
26673 (set_quoting_flags): New function.
26674 (quotearg_buffer_restyled): Add flags parameter.
26675 (quotearg_alloc_mem): Set the flag if length cannot be returned.
26676 (quotearg_n_options): Set the flag, since length cannot be
26678 (quoting_options_from_style): Default flags correctly.
26680 Quotearg part 1: more wrappers, restore quotearg_char state.
26681 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26682 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26683 (quotearg_colon_mem): New wrappers.
26684 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26685 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26687 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26688 (quotearg_colon_mem): New functions.
26690 2008-02-11 Bruno Haible <bruno@clisp.org>
26692 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26693 library in the current directory: it does not work with parallel make.
26694 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26696 2008-02-11 Bruno Haible <bruno@clisp.org>
26698 * .gitattributes: New file.
26700 2008-02-11 Jim Meyering <meyering@redhat.com>
26702 useless-if-before-free: Fix reversed exit values.
26703 * build-aux/useless-if-before-free: Use correct values
26704 for EXIT_MATCH and EXIT_NO_MATCH.
26706 * build-aux/useless-if-before-free: Close stdout carefully.
26708 2008-02-10 Bruno Haible <bruno@clisp.org>
26710 New module 'git-merge-changelog'.
26711 * modules/git-merge-changelog: New file.
26712 * lib/git-merge-changelog.c: New file.
26714 2008-02-10 Jim Meyering <meyering@redhat.com>
26716 useless-if-before-free: New option: --list (-l).
26718 useless-if-before-free: Don't exit immediately upon open failure.
26719 * build-aux/useless-if-before-free: Exit 2 for errors.
26720 Upon failure to open a file, don't exit immediately.
26721 Rather, just warn and continue with any remaining files.
26723 2008-02-10 Bruno Haible <bruno@clisp.org>
26725 New abstract list operation 'node_set_value'.
26726 * lib/gl_list.h (gl_list_node_set_value): New function.
26727 (struct gl_list_implementation): New field node_set_value.
26728 * lib/gl_list.c (gl_list_node_set_value): New function.
26729 * lib/gl_array_list.c (gl_array_node_set_value): New function.
26730 (gl_array_list_implementation): Update.
26731 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26732 (gl_carray_list_implementation): Update.
26733 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26734 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26735 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26736 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26737 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26738 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26739 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26741 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26742 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26743 (gl_sublist_list_implementation): Update.
26745 2008-02-10 Bruno Haible <bruno@clisp.org>
26747 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26748 Needed when ELEMENT is #defined to 'some_type *'.
26750 2008-02-10 Jim Meyering <meyering@redhat.com>
26752 New script and module: useless-if-before-free
26753 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26754 * build-aux/useless-if-before-free: New file.
26755 * modules/useless-if-before-free: New file.
26757 * build-aux/gitlog-to-changelog: Use committer date, not author date.
26759 xstrtol_error: Fix typo.
26760 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26761 s/exit_failure/exit_status/.
26763 2008-02-09 Jim Meyering <meyering@redhat.com>
26765 New script and module: gitlog-to-changelog
26766 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26767 * modules/gitlog-to-changelog: New file.
26768 * build-aux/gitlog-to-changelog: New file.
26770 2008-02-08 Jim Meyering <meyering@redhat.com>
26772 Avoid two "parameter unused" warnings.
26773 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26776 Use "git COMMAND", not "git-COMMAND".
26777 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26778 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26779 * build-aux/git-version-gen: Use "git status", not "git-status".
26781 2008-02-07 Bruno Haible <bruno@clisp.org>
26783 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26784 Avoids a crash on Windows Vista.
26785 Reported by Adam Strzelecki <ono@java.pl> via
26786 Simon Josefsson <simon@josefsson.org>.
26788 2008-02-06 Bruno Haible <bruno@clisp.org>
26790 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26791 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26792 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26793 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26794 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26795 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26796 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26797 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26798 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26799 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26800 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26801 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26802 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26803 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26804 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26805 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26807 * tests/test-snprintf-posix.h (test_function): Likewise.
26808 * tests/test-sprintf-posix.h (test_function): Likewise.
26809 * tests/test-vasprintf-posix.c (test_function): Likewise.
26810 * doc/posix-functions/fprintf.texi: Update.
26811 * doc/posix-functions/printf.texi: Update.
26812 * doc/posix-functions/snprintf.texi: Update.
26813 * doc/posix-functions/sprintf.texi: Update.
26814 * doc/posix-functions/vfprintf.texi: Update.
26815 * doc/posix-functions/vprintf.texi: Update.
26816 * doc/posix-functions/vsnprintf.texi: Update.
26817 * doc/posix-functions/vsprintf.texi: Update.
26818 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26820 2008-02-06 Bruno Haible <bruno@clisp.org>
26822 Fix bug introduced on 2008-01-26.
26823 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26825 2008-02-06 Bruno Haible <bruno@clisp.org>
26827 Fix bug introduced on 2007-06-10.
26828 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26829 !NEED_PRINTF_FLAG_ZERO.
26831 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
26833 getloadavg: use libperfstat on AIX5
26834 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26836 2008-02-03 Bruno Haible <bruno@clisp.org>
26838 * lib/diffseq.h: Add comments about required #includes.
26839 Reported by Michael Biggs <gnulib@doubleplum.net>.
26841 2008-02-01 Bruno Haible <bruno@clisp.org>
26843 * users.txt: Add gnuit.
26845 2008-01-31 Bruno Haible <bruno@clisp.org>
26847 * lib/md4.c (set_uint32): Mark as inline.
26848 * lib/md5.c (set_uint32): Likewise.
26849 * lib/sha1.c (set_uint32): Likewise.
26850 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26851 * m4/md5.m4 (gl_MD5): Likewise.
26852 * m4/sha1.m4 (gl_SHA1): Likewise.
26854 2008-01-31 Jim Meyering <meyering@redhat.com>
26856 Use "sizeof VAR", rather than a literal "4".
26857 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26858 * lib/md4.c (md4_read_ctx): Likewise.
26859 * lib/sha1.c (sha1_read_ctx): Likewise.
26861 2008-01-31 Simon Josefsson <simon@josefsson.org>
26863 * tests/test-sha1.c: New file, based on test-md5.c.
26865 * modules/crypto/sha1-tests: New file.
26867 2008-01-31 Simon Josefsson <simon@josefsson.org>
26869 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26871 2008-01-31 Jim Meyering <meyering@redhat.com>
26873 Prefer "sizeof v" over the equivalent "4".
26874 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26875 * lib/md5.c (set_uint32): Likewise.
26876 * lib/sha1.c (set_uint32): Likewise.
26878 2008-01-31 Simon Josefsson <simon@josefsson.org>
26880 * lib/sha1.c (set_uint32): Mark function as static.
26882 2008-01-31 Simon Josefsson <simon@josefsson.org>
26884 md2: clarify comments to say that alignment is not required.
26885 * lib/md2.h: Remove warning about alignment in comment.
26886 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26887 never been required.
26889 2008-01-31 Simon Josefsson <simon@josefsson.org>
26891 md4: adapt alignment constraint fix from sha1.
26892 * lib/md4.c (set_uint32): New function, from sha1.c
26893 (md4_read_ctx): Use it.
26894 (md4_finish_ctx): Doc fix.
26895 * lib/md4.h: Doc fix.
26897 2008-01-31 Simon Josefsson <simon@josefsson.org>
26899 md5: adapt alignment constraint fix from sha1.
26900 * lib/md5.c (set_uint32): New function, from sha1.c
26901 (md5_read_ctx): Use it.
26902 (md5_finish_ctx): Doc fix.
26903 * lib/md5.h: Doc fix.
26905 2008-01-30 Peter Palfrader <weasel@debian.org>
26907 sha1: remove the result buffer alignment constraint
26908 * lib/sha1.c (set_uint32): New function.
26909 (sha1_read_ctx): Rewrite to remove the result buffer alignment
26911 (sha1_finish_ctx): Remove comment warning about alignment constraint.
26912 * lib/sha1.h: Likewise.
26914 2008-01-30 Andreas Schwab <schwab@suse.de>
26915 Bruno Haible <bruno@clisp.org>
26917 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26918 correct definition of LDBL_MIN_EXP.
26920 2008-01-30 Karl Berry <karl@gnu.org>
26922 * config/srclist-update: try to preserve x bit on updates.
26923 * config/srclistvars.sh: update for karl.
26925 2008-01-29 Jim Meyering <meyering@redhat.com>
26927 vasnprintf.c: Avoid warning about unused label
26928 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26929 "overflow" label definition and associated code with the
26930 same cpp condition that guards the sole use of that label.
26932 2008-01-26 Bruno Haible <bruno@clisp.org>
26934 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26935 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26936 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26937 * lib/isnanl-nolibm.h (isnanl): Likewise.
26938 Reported by Paul Eggert <eggert@cs.ucla.edu>.
26940 2008-01-26 Bruno Haible <bruno@clisp.org>
26942 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26943 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26945 2008-01-26 Bruno Haible <bruno@clisp.org>
26947 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26948 GCC >= 4.0 built-in.
26949 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26951 2008-01-26 Bruno Haible <bruno@clisp.org>
26953 Rename isnan, applicable to 'double' only, to isnand.
26954 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26955 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26956 (configure.ac): Update.
26957 (Include): Replace "isnan.h" with "isnand.h".
26958 * m4/isnand.m4: Renamed from m4/isnan.m4.
26959 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26960 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26961 instead of isnan.c.
26962 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26963 instead of HAVE_ISNAN_IN_LIBC.
26964 (isnand): Renamed from isnan.
26965 * lib/isnand.c: New file.
26966 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26967 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26968 (Makefile.am): Update.
26969 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26970 Include isnand.h instead of isnan.h.
26971 (main): Test isnand instead of isnan.
26972 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26974 * modules/frexp (Depends-on): Likewise.
26975 * modules/frexp-tests (Depends-on): Likewise.
26976 * modules/frexp-nolibm (Depends-on): Likewise.
26977 * modules/frexp-nolibm-tests (Depends-on): Likewise.
26978 * modules/isfinite (Depends-on): Likewise.
26979 * modules/round-tests (Depends-on): Likewise.
26980 * modules/signbit (Depends-on): Likewise.
26981 * modules/signbit-tests (Depends-on): Likewise.
26982 * modules/snprintf-posix (Depends-on): Likewise.
26983 * modules/sprintf-posix (Depends-on): Likewise.
26984 * modules/trunc-tests (Depends-on): Likewise.
26985 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26986 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26987 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26988 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26989 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26990 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26991 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26992 * modules/vasnprintf-posix (Depends-on): Likewise.
26993 * modules/vasprintf-posix (Depends-on): Likewise.
26994 * modules/vfprintf-posix (Depends-on): Likewise.
26995 * modules/vsnprintf-posix (Depends-on): Likewise.
26996 * modules/vsprintf-posix (Depends-on): Likewise.
26997 * lib/frexp.c: Include isnand.h instead of isnan.h.
26998 (ISNAN): Set to isnand instead of isnan.
26999 * lib/isfinite.c: Include isnand.h instead of isnan.h.
27000 (gl_isfinited): Use isnand instead of isnan.
27001 * lib/signbitd.c: Include isnand.h instead of isnan.h.
27002 (gl_signbitd): Use isnand instead of isnan.
27003 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27004 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27005 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27006 (main): Use isnand instead of isnan.
27007 * tests/test-round1.c: Include isnand.h.
27008 (main): Use isnand instead of isnan.
27009 * tests/test-round2.c: Include isnand.h instead of isnan.h.
27010 (ISNAN): Set to isnand instead of isnan.
27011 * tests/test-trunc1.c: Include isnand.h.
27012 (main): Use isnand instead of isnan.
27013 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27014 (equal): Use isnand instead of isnan.
27015 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27017 * NEWS: Mention the change.
27019 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
27020 Bruno Haible <bruno@clisp.org>
27022 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27023 the GCC builtins for signbits are present and set
27024 REPLACE_SIGNBIT_USING_GCC if so.
27025 * lib/math.in.h (signbit): Define using GCC builtins if
27026 REPLACE_SIGNBIT_USING_GCC is set.
27027 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27028 REPLACE_SIGNBIT_USING_GCC.
27029 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27031 2008-01-25 Jim Meyering <meyering@redhat.com>
27033 Prefer <config.h> over "config.h". See autoconf doc for explanation.
27034 * lib/poll.c: Include <config.h>, not "config.h".
27035 * tests/test-getaddrinfo.c: Likewise.
27037 2008-01-25 Simon Josefsson <simon@josefsson.org>
27039 * modules/sockets-tests: New file.
27041 2008-01-24 Simon Josefsson <simon@josefsson.org>
27043 * modules/sockets: New module, can be used to call WSA_Startup and
27044 WSA_Cleanup when needed.
27046 * lib/sockets.h, lib/sockets.c: New files.
27048 * m4/sockets.m4: New file.
27050 * tests/test-sockets.c: New file.
27052 2008-01-19 Bruno Haible <bruno@clisp.org>
27054 * doc/posix-headers: Renamed from doc/headers.
27055 * doc/posix-functions: Renamed from doc/functions.
27056 * doc/gnulib.texi: Update.
27058 2008-01-19 Bruno Haible <bruno@clisp.org>
27060 * doc/glibc-functions/strcasestr.texi: Include contents of
27061 doc/functions/strcasestr.texi, fixing the list of platforms.
27062 * doc/functions/strcasestr.texi: Remove file.
27064 2008-01-19 Bruno Haible <bruno@clisp.org>
27066 * doc/glibc-functions/memmem.texi: Include contents of
27067 doc/functions/memmem.texi.
27068 * doc/functions/memmem.texi: Remove file.
27070 2008-01-18 Bruno Haible <bruno@clisp.org>
27072 * doc/glibc-functions/*.texi: New files.
27073 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27074 to use the new files.
27076 2008-01-17 Bruno Haible <bruno@clisp.org>
27078 * tests/test-gethostname.c (main): Fix printf statement.
27080 2008-01-17 Simon Josefsson <simon@josefsson.org>
27082 * modules/gethostname-tests: New file.
27084 * tests/test-gethostname.c: New file.
27086 2008-01-17 Simon Josefsson <simon@josefsson.org>
27088 * lib/gethostname.c: Include string.h unconditionally, strncpy is
27089 used by the UNAME case. Reported by Bruno Haible
27092 2008-01-17 Eric Blake <ebb9@byu.net>
27094 Convert c-strcasestr to be more efficient.
27095 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27096 (Depends-on): Add c-strcase, remove malloca, strnlen.
27097 * tests/test-c-strcasestr.c (main): Enhance test.
27098 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27100 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
27102 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27103 Use it in creating po/Makevars.
27105 2008-01-15 Simon Josefsson <simon@josefsson.org>
27107 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27108 Applications that requires it should initialize libgcrypt
27111 2008-01-16 Simon Josefsson <simon@josefsson.org>
27113 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27115 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
27117 Fix problem with getdate on mingw32 reported by Simon Josefsson
27118 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27119 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27120 tzname", when deciding whether to declare tzname.
27121 * lib/strftime.c (tzname): Likewise.
27123 2008-01-15 Bruno Haible <bruno@clisp.org>
27125 Work around a MacOS X 10.5 bug in frexpl().
27126 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27127 * doc/functions/frexpl.texi: Document the bug.
27128 Reported by Elias Pipping <pipping@gentoo.org>.
27130 2008-01-14 Eric Blake <ebb9@byu.net>
27132 Touch up previous patch.
27133 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27134 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27136 Convert strcasestr module to use Two-Way algorithm.
27137 * modules/strcasestr-simple: New module, based on the old
27138 strcasestr, but with Two-Way rather than KMP.
27139 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27140 * lib/string.in.h (rpl_strcasestr): Declare.
27141 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27143 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27144 * modules/string (Makefile.am): Support strcasestr.
27145 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27146 * modules/strcasestr-tests (Depends-on): Check for alarm.
27147 * tests/test-strcasestr.c: Augment test.
27148 * lib/str-two-way.h: Clean up stray macro.
27149 * NEWS: Document new module.
27150 * MODULES.html.sh (string handling): Likewise.
27151 * doc/functions/strcasestr.texi: New file.
27152 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
27153 here, since it is not a POSIX function.
27155 2008-01-14 Colin Watson <cjwatson@debian.org>
27156 Bruno Haible <bruno@clisp.org>
27158 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27159 works fine; if not, set REPLACE_STRSIGNAL.
27160 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27161 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27163 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27164 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27165 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27167 2008-01-14 Bruno Haible <bruno@clisp.org>
27169 * modules/strsignal (Include): Change to <string.h>.
27171 2008-01-14 Colin Watson <cjwatson@debian.org>
27173 * modules/argp (Notice): Add a notice recommending to change
27175 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27177 2008-01-13 Colin Watson <cjwatson@debian.org>
27179 * modules/strsignal-tests: New file.
27180 * tests/test-strsignal.c: New file.
27182 * lib/strsignal.c: New file, from glibc with modifications.
27183 * lib/siglist.h: New file, from glibc with modifications.
27184 * lib/string.in.h (strsignal): New declaration.
27185 * m4/strsignal.m4: New file.
27186 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27187 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27188 * modules/strsignal: New file.
27189 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27190 HAVE_DECL_STRSIGNAL.
27192 2008-01-13 Bruno Haible <bruno@clisp.org>
27194 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27195 locale encoding is not ASCII. Needed for OpenBSD 4.0.
27196 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27197 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27199 2008-01-13 Bruno Haible <bruno@clisp.org>
27201 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27202 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27203 * lib/argp.h (__attribute__): Likewise.
27204 * lib/c-stack.c (__attribute__): Likewise.
27205 * lib/error.h (__attribute__): Likewise.
27206 * lib/fts.c (__attribute__): Likewise.
27207 * lib/openat.h (__attribute__): Likewise.
27208 * lib/stdio.in.h (__attribute__): Likewise.
27209 * lib/string.in.h (__attribute__): Likewise.
27210 * lib/utimens.c (__attribute__): Likewise.
27211 * lib/vasnprintf.h (__attribute__): Likewise.
27212 * lib/xalloc.h (__attribute__): Likewise.
27213 * lib/xprintf.h (__attribute__): Likewise.
27214 * lib/xstrtol.h (__attribute__): Likewise.
27215 * lib/xvasprintf.h (__attribute__): Likewise.
27217 2008-01-12 Bruno Haible <bruno@clisp.org>
27219 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27220 * doc/glibc-headers/a.out.texi: New file.
27221 * doc/glibc-headers/aliases.texi: New file.
27222 * doc/glibc-headers/alloca.texi: New file.
27223 * doc/glibc-headers/ar.texi: New file.
27224 * doc/glibc-headers/argp.texi: New file.
27225 * doc/glibc-headers/argz.texi: New file.
27226 * doc/glibc-headers/byteswap.texi: New file.
27227 * doc/glibc-headers/crypt.texi: New file.
27228 * doc/glibc-headers/endian.texi: New file.
27229 * doc/glibc-headers/envz.texi: New file.
27230 * doc/glibc-headers/err.texi: New file.
27231 * doc/glibc-headers/error.texi: New file.
27232 * doc/glibc-headers/execinfo.texi: New file.
27233 * doc/glibc-headers/fpu_control.texi: New file.
27234 * doc/glibc-headers/fstab.texi: New file.
27235 * doc/glibc-headers/fts.texi: New file.
27236 * doc/glibc-headers/getopt.texi: New file.
27237 * doc/glibc-headers/ieee754.texi: New file.
27238 * doc/glibc-headers/ifaddrs.texi: New file.
27239 * doc/glibc-headers/libintl.texi: New file.
27240 * doc/glibc-headers/mcheck.texi: New file.
27241 * doc/glibc-headers/mntent.texi: New file.
27242 * doc/glibc-headers/obstack.texi: New file.
27243 * doc/glibc-headers/paths.texi: New file.
27244 * doc/glibc-headers/printf.texi: New file.
27245 * doc/glibc-headers/pty.texi: New file.
27246 * doc/glibc-headers/resolv.texi: New file.
27247 * doc/glibc-headers/shadow.texi: New file.
27248 * doc/glibc-headers/sysexits.texi: New file.
27249 * doc/glibc-headers/ttyent.texi: New file.
27251 2008-01-12 Jim Meyering <meyering@redhat.com>
27253 announce-gen: emit Gnulib's git-based version string.
27254 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27255 New option --gnulib-version=V, where V is expected to be
27256 the output of running git describe in the gnulib directory.
27257 (get_tool_versions): Request feedback on xdelta. I suspect it's
27258 not useful, and plan to stop publishing an xdelta file with each
27261 * build-aux/announce-gen: Also check for lzma-compressed files.
27263 2008-01-11 Bruno Haible <bruno@clisp.org>
27265 * tests/test-memmem.c (main): Increase maximum allowed time.
27266 * tests/test-strstr.c (main): Likewise.
27268 2008-01-11 Bruno Haible <bruno@clisp.org>
27270 * doc/functions/memmem.texi: Add more precisions about platforms.
27271 * doc/functions/strstr.texi: Likewise.
27273 2008-01-10 Eric Blake <ebb9@byu.net>
27275 * m4/strstr.m4: Delete cruft from copy-n-paste.
27276 Reported by Bruno Haible.
27278 2008-01-10 Bruno Haible <bruno@clisp.org>
27280 Make c-strstr rely on strstr.
27281 * lib/c-strstr.c: Don't include str-kmp.h.
27282 (c_strstr): Define in terms of strstr.
27283 * modules/c-strstr (Files): Remove lib/str-kmp.h.
27284 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27286 2008-01-10 Bruno Haible <bruno@clisp.org>
27288 * doc/gnulib.texi (String Functions in C Locale): New section.
27289 * doc/c-ctype.texi: New file.
27290 * doc/c-strcase.texi: New file.
27291 * doc/c-strcaseeq.texi: New file.
27292 * doc/c-strcasestr.texi: New file.
27293 * doc/c-strstr.texi: New file.
27294 * doc/c-strtod.texi: New file.
27295 * doc/c-strtold.texi: New file.
27297 2008-01-10 Eric Blake <ebb9@byu.net>
27299 * lib/relocatable.h: Fix a comment.
27301 2008-01-10 Eric Blake <ebb9@byu.net>
27303 Share two-way algorithm.
27304 * lib/str-two-way.h: New file, merged from...
27305 * lib/memmem.c: ...here...
27306 * lib/strstr.c: ...and here.
27307 * modules/memmem (Files): Use it.
27308 * modules/strstr (Files): Likewise.
27310 Avoid quadratic strstr implementations.
27311 * lib/strstr.c: New file.
27312 * m4/strstr.m4: Likewise.
27313 * modules/strstr: Likewise.
27314 * modules/strstr-tests: Likewise.
27315 * tests/test-strstr.c: Likewise.
27316 * lib/string.in.h (rpl_strstr): Declare.
27317 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27318 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27319 * modules/string (Makefile.am): Likewise.
27320 * MODULES.html.sh (string handling): Mention new module.
27321 * doc/functions/strstr.texi (strstr): Document the bug.
27323 2008-01-10 Bruno Haible <bruno@clisp.org>
27325 * lib/relocatable.h (relocate): State whether result is freshly
27327 * lib/relocatable.c (relocate): Return a freshly allocated string
27328 instead of a pointer to a privately held string.
27329 Reported by Sylvain Beucler <beuc@gnu.org>.
27331 2008-01-10 Colin Watson <cjwatson@debian.org>
27333 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27334 s/S_ISNLK/S_ISLNK/.
27336 2008-01-09 Bruno Haible <bruno@clisp.org>
27338 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27340 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27341 if it's only a guess.
27342 * modules/memmem: Simplify by depending on memmem-simple.
27344 2008-01-09 Bruno Haible <bruno@clisp.org>
27346 Work around OpenBSD 4.0 tdelete() bug.
27347 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27348 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27349 macros and don't redefine the enum values.
27350 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27351 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27352 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27354 2008-01-09 Bruno Haible <bruno@clisp.org>
27356 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27357 (main): Don't perform the tests if setlocale did not install a UTF-8
27358 locale. Needed on OpenBSD 4.0.
27359 * modules/wcwidth-tests (Depends-on): Add localcharset.
27361 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
27363 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27364 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27365 * NEWS: announce this.
27366 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27368 2008-01-09 Simon Josefsson <simon@josefsson.org>
27369 and Eric Blake <ebb9@byu.net>
27371 Add memmem-simple module.
27372 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27373 (gl_FUNC_MEMMEM): Separate performance from presence checks.
27374 * modules/memmem-simple: New file.
27375 * modules/memmem (Description): Tweak.
27376 * MODULES.html.sh (string handling): Mention new module.
27377 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27378 addressed by memmem-simple.
27379 * NEWS: Document the difference.
27381 2008-01-09 Eric Blake <ebb9@byu.net>
27383 Give gcc some memmem optimization hints.
27384 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27385 (strcasestr): Declare as pure.
27386 * modules/memmem (Maintainer): Claim my implementation.
27388 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27390 Support AIX 6.1 and higher.
27391 * build-aux/config.libpath: Likewise.
27392 * build-aux/config.rpath: Likewise.
27394 2008-01-08 Jim Meyering <meyering@redhat.com>
27395 Bruno Haible <bruno@clisp.org>
27397 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27398 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27399 Reported by Peter Fales in
27400 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27402 2008-01-08 Bruno Haible <bruno@clisp.org>
27404 * modules/unictype/category-of (Depends-on): Add
27405 unictype/category-none.
27406 * modules/unictype/category-and-tests (Depends-on): Add
27407 unictype/category-{L,N,Lu,Nd}.
27408 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27409 * modules/unictype/category-or-tests (Depends-on): Add
27410 unictype/category-{L,N}.
27411 * modules/unictype/category-name-tests (Depends-on): Add
27412 unictype/category-{Z,Nl}.
27413 Reported by Simon Josefsson.
27415 2008-01-08 Bruno Haible <bruno@clisp.org>
27417 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27419 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27420 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27421 Reported by Peter Miller <millerp@canb.auug.org.au>.
27423 2008-01-08 Eric Blake <ebb9@byu.net>
27425 Rewrite memmem to guarantee linear complexity without malloc.
27426 * lib/memmem.c (memmem): Use Two-Way rather than
27427 Knuth-Morris-Pratt, to allow O(1) space usage.
27428 (critical_factorization, two_way_short_needle)
27429 (two_way_long_needle): New functions.
27430 (knuth_morris_pratt): Delete.
27431 * modules/memmem (Depends-on): No longer need malloca or stdbool.
27433 * tests/test-memmem.c (main): Add tests for periodic needle and
27434 sublinear performance.
27435 * doc/functions/memmem.texi (memmem): Document other deficiencies
27436 in cygwin and older glibc.
27438 2008-01-08 Bruno Haible <bruno@clisp.org>
27440 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27443 2008-01-08 Mike Frysinger <vapier@gentoo.org>
27445 Add a configure time option: --disable-acl.
27446 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27447 AC_ARG_ENABLE(acl).
27449 2008-01-06 Simon Josefsson <simon@josefsson.org>
27451 * tests/test-localename.c: Don't include obsolete "setenv.h".
27453 * modules/localename-tests (Depends-on): Need unsetenv.
27455 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27457 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27459 2008-01-06 Colin Watson <cjwatson@debian.org>
27461 * users.txt: Add man-db.
27463 2008-01-07 Bruno Haible <bruno@clisp.org>
27465 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27466 previous section name.
27468 2008-01-07 Bruno Haible <bruno@clisp.org>
27470 * lib/progname.c (set_program_name): Don't strip off a leading
27471 "lt-" prefix outside a .libs directory.
27472 Suggested by Paul Eggert.
27474 2008-01-01 Sylvain Beucler <beuc@gnu.org>
27475 Bruno Haible <bruno@clisp.org>
27477 Improve memory cleanup in 'relocatable' module.
27478 * lib/relocatable.h (compute_curr_prefix): Change return type to
27480 * lib/relocatable.c (compute_curr_prefix): Change return type to
27481 'char *'. Free curr_installdir after use.
27482 (relocate): Free curr_prefix_better after use.
27483 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27485 2008-01-01 Bruno Haible <bruno@clisp.org>
27487 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27488 failure on older glibc systems.
27489 Reported by Peter Fales <psfales@alcatel-lucent.com>.
27491 2008-01-05 Eric Blake <ebb9@byu.net>
27493 Avoid quadratic system memmem.
27494 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27495 Reported by Ralf Wildenhues.
27497 Fix memmem test for mingw.
27498 * modules/memmem-tests (configure.ac): Check for alarm.
27499 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27501 * doc/functions/memmem.texi: New file.
27502 * doc/gnulib.texi (Function Substitutes): Add memmem.
27503 Reported by Bruno Haible.
27505 2008-01-04 Bruno Haible <bruno@clisp.org>
27507 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27508 Require gl_HEADER_STRINGS_H_DEFAULTS, not
27509 gl_HEADER_STRING_H_DEFAULTS.
27511 2008-01-04 Eric Blake <ebb9@byu.net>
27513 Shorten duration of memmem test.
27514 * tests/test-memmem.c (main): Use alarm to declare failure if test
27515 is taking too long.
27516 Reported by Ralf Wildenhues.
27518 2007-12-21 Simon Josefsson <simon@josefsson.org>
27520 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27521 string, needed by strerror.
27523 2008-01-03 Colin Watson <cjwatson@debian.org>
27524 Bruno Haible <bruno@clisp.org>
27526 * doc/gnulib-tool.texi (Localization): New section.
27528 2008-01-02 Bruno Haible <bruno@clisp.org>
27530 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27531 variables to 'unsigned char *' type.
27532 Reported by Paul Eggert.
27534 2008-01-02 Jim Meyering <jim@meyering.net>
27536 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27538 2007-12-31 Jim Meyering <jim@meyering.net>
27540 Avoid use of private FTS type name.
27541 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27543 2007-12-30 Karl Berry <karl@gnu.org>
27545 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27546 work around defect in Texinfo and/or the standalone Info browser.
27548 2007-12-30 Bruno Haible <bruno@clisp.org>
27550 Unify 5 copies of the KMP code.
27551 * lib/str-kmp.h: New file.
27552 * lib/c-strcasestr.c: Include str-kmp.h.
27553 (knuth_morris_pratt): Remove function.
27554 (c_strcasestr): Update.
27555 * lib/c-strstr.c: Include str-kmp.h.
27556 (knuth_morris_pratt): Remove function.
27557 (c_strcasestr): Update.
27558 * lib/mbscasestr.c: Include str-kmp.h.
27559 (knuth_morris_pratt_unibyte): Remove function.
27560 * lib/mbsstr.c: Include str-kmp.h.
27561 (knuth_morris_pratt_unibyte): Remove function.
27562 * lib/strcasestr.c: Include str-kmp.h.
27563 (knuth_morris_pratt): Remove function.
27564 (strcasestr): Update.
27565 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27566 * modules/c-strstr (Files): Likewise.
27567 * modules/mbscasestr (Files): Likewise.
27568 * modules/mbsstr (Files): Likewise.
27569 * modules/strcasestr (Files): Likewise.
27570 Suggested by Paul Eggert.
27572 2007-12-30 Bruno Haible <bruno@clisp.org>
27574 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27577 2007-12-30 Bruno Haible <bruno@clisp.org>
27579 * lib/xmalloca.h: Include xalloc.h.
27580 (xnmalloca): New macro.
27582 2007-12-30 Bruno Haible <bruno@clisp.org>
27584 * lib/malloca.h (nmalloca): New macro.
27585 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27586 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27587 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27588 knuth_morris_pratt_multibyte): Likewise.
27589 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27590 knuth_morris_pratt_multibyte): Likewise.
27591 * lib/memmem.c (knuth_morris_pratt): Likewise.
27592 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27594 2007-12-25 Bruno Haible <bruno@clisp.org>
27596 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27597 * lib/glob.c: Don't include openat.h.
27598 (link_exists2_p): Add back the code that deals with the
27599 !GLOB_ALTDIRFUNC case.
27600 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27601 let it do the filename concatenation.
27602 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27603 * modules/glob (Depends-on): Remove openat.
27605 2007-12-31 Bruno Haible <bruno@clisp.org>
27607 * modules/dirfd (License): Change to LGPLv2+.
27608 Approved by Jim Meyering.
27610 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
27612 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27613 when multiplying M by sizeof (size_t).
27615 2007-12-10 Martin Lambers <marlam@marlam.de>
27617 Override getpagesize on mingw.
27618 * lib/getpagesize.c: New file.
27619 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27620 * modules/getpagesize (Files): Add lib/getpagesize.c.
27621 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27622 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27623 REPLACE_GETPAGESIZE.
27624 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27626 2007-12-25 Bruno Haible <bruno@clisp.org>
27628 * modules/localcharset (Notice): New field.
27629 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27630 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27632 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
27633 Bruno Haible <bruno@clisp.org>
27635 Avoid using the syntax symbol() in formatted documentation.
27636 * MODULES.html.sh (func_module): When replacing symbol() with a
27637 hyperlink, remove the parentheses. Show an error if some remain.
27638 Recognize and render the '...' syntax.
27639 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27640 Rework. Add paragraph about GCC's inlining.
27641 * doc/alloca.texi: Likewise.
27642 * doc/error.texi: Remove parentheses from symbol reference.
27643 * doc/gnulib-intro.texi: Likewise.
27644 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27645 * modules/fnmatch (Description): Reword to say "the ... function".
27646 * modules/full-read (Description): Likewise.
27647 * modules/full-write (Description): Likewise.
27648 * modules/safe-read (Description): Likewise.
27649 * modules/safe-write (Description): Likewise.
27650 * modules/strchrnul (Description): Likewise.
27651 * modules/trim (Description): Likewise.
27652 * modules/error (Description): Remove parentheses from symbol
27654 * modules/verror (Description): Likewise.
27655 Reported by Karl Berry.
27657 2007-12-25 Bruno Haible <bruno@clisp.org>
27659 Fixup after 2007-10-16 commit.
27660 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27662 2007-12-24 Bruno Haible <bruno@clisp.org>
27664 Make --enable-relocatable work with DESTDIR.
27665 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27666 to compute installdir from destprog.
27667 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27668 also set the RELOC_DESTDIR variable.
27669 Reported by Левашев Иван <octagram@bluebottle.com>.
27671 2007-12-24 Bruno Haible <bruno@clisp.org>
27673 Fix link error due to xalloc_die().
27674 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27676 * lib/relocwrapper.c: Update comments.
27677 * build-aux/install-reloc: Remove xreadlink.c from file list.
27678 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27680 Reported by Левашев Иван <octagram@bluebottle.com>.
27682 2007-12-24 Bruno Haible <bruno@clisp.org>
27684 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27685 * lib/setenv.h: Remove file.
27686 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27688 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27689 (Depends-on): Add stdlib.
27690 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27692 (Include): Replace setenv.h with <stdlib.h>.
27693 * modules/unsetenv: New file.
27694 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27695 * lib/unsetenv.c: Include <stdlib.h> first.
27696 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27697 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27698 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27699 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27700 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27701 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27702 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27703 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27704 * doc/functions/unsetenv.texi: Update.
27705 * modules/xsetenv (Depends-on): Add unsetenv.
27706 * modules/getdate (Depends-on): Likewise.
27707 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27708 * lib/xsetenv.c: Don't include setenv.h.
27709 * lib/getdate.y: Likewise.
27710 * lib/relocwrapper.c: Likewise.
27711 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27712 (Depends-on): Add stdlib.
27713 * NEWS: Mention the changes.
27714 Reported by Левашев Иван <octagram@bluebottle.com>.
27716 2007-12-23 Bruno Haible <bruno@clisp.org>
27718 * lib/memmem.c (memmem): Use lowercase variable names. Tab
27721 2007-12-23 Bruno Haible <bruno@clisp.org>
27723 * lib/c-strcasestr.c: Add more comments.
27724 * lib/c-strstr.c: Likewise.
27725 * lib/mbscasestr.c: Likewise.
27726 * lib/mbsstr.c: Likewise.
27727 * lib/strcasestr.c: Likewise.
27728 * lib/memmem.c: Likewise.
27730 2007-12-23 Bruno Haible <bruno@clisp.org>
27732 * tests/test-memmem.c: Include <string.h> first.
27734 2007-12-22 Bruno Haible <bruno@clisp.org>
27736 * gnulib-tool (func_create_testdir): Change $auxdir while generating
27737 the contents of $testsbase.
27738 Reported by Ralf Wildenhues.
27740 2007-12-22 Bruno Haible <bruno@clisp.org>
27742 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27743 two variables local_ldadd_before, local_ldadd_last.
27745 2007-12-20 Eric Blake <ebb9@byu.net>
27747 Work around circular library issue when cross-compiling.
27748 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27749 that progname.o does not need to pull in rpl_memcmp.
27751 2007-12-19 Eric Blake <ebb9@byu.net>
27753 Fix memmem to avoid O(n^2) worst-case complexity.
27754 * lib/memmem.c (knuth_morris_pratt): New function.
27755 (memmem): Use it if first few naive iterations fail.
27756 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27757 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27758 * modules/memchr (License): Likewise.
27759 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27761 * tests/test-memmem.c: Rewrite, borrowing ideas from
27762 test-mbsstr1.c; the old version wouldn't even compile!
27763 * modules/memmem-tests: New file.
27764 * lib/string.in.h (rpl_memmem): Add declaration.
27765 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27766 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27769 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
27771 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27772 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27773 before any system include files, and undef after them all. This
27774 should fix a problem on VMS reported by John E. Malmberg in
27775 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27777 2007-12-17 Eric Blake <ebb9@byu.net>
27779 Revert addition of verify, for BSD/OS.
27780 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27781 can't handle large files, for the sake of obsolete platforms.
27782 * modules/fseeko (Depends-on): Remove verify.
27783 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27784 * doc/functions/ftello.texi (ftello): Likewise.
27785 * doc/functions/fgetpos.texi (fgetpos): Likewise.
27786 Reported by Larry Jones.
27788 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
27790 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27791 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27793 2007-12-17 Jim Meyering <meyering@redhat.com>
27795 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27796 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27797 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27798 * modules/getcwd (Depends-on): Add openat.
27799 Reported by Petr Salinger.
27801 2007-12-17 Bruno Haible <bruno@clisp.org>
27803 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27804 avoid a segmentation fault of the configure test on x86_64 systems.
27806 2007-12-15 Jim Meyering <meyering@redhat.com>
27808 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27810 2007-12-13 Eric Blake <ebb9@byu.net>
27812 Another fseek test.
27813 * tests/test-fseek.c (main): Also test ungetc handling.
27814 * tests/test-fseeko.c (main): Likewise.
27815 * modules/fseeko (Depends-on): Add verify.
27816 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27818 Reported by Larry Jones.
27820 Fix fseeko on mingw.
27821 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27824 Beef up fseek tests.
27825 * tests/test-fseek.c (main): Also test eof handling.
27826 * tests/test-fseeko.c (main): Likewise.
27827 Reported by Larry Jones.
27829 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
27831 Fix fseeko on BSD-based platforms.
27832 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27835 2007-12-12 Eric Blake <ebb9@byu.net>
27837 Allow circular dependency of separate libtests.a
27838 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27841 2007-12-11 Eric Blake <ebb9@byu.net>
27843 Fix bug with -0.0L in previous patch.
27844 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27845 * tests/test-isnan.c (main): Also test on zeroes.
27846 * tests/test-isnanf.c (main): Likewise.
27847 * tests/test-isnanl.h (main): Likewise.
27849 Detect pseudo-denormals on x86 even when cross-compiling.
27850 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27851 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27852 invalid bit patterns that happen to satisfy ==.
27854 Avoid link failures with separate libtests.a.
27855 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27856 last, to satisfy circular dependencies.
27858 2007-12-11 Eric Blake <ebb9@byu.net>
27859 and Bruno Haible <bruno@clisp.org>
27861 Fix OpenBSD 4.0 <float.h> handling of long double.
27862 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27863 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27864 * doc/headers/float.texi (float.h): Document OpenBSD bug.
27866 2007-12-11 Jim Meyering <meyering@redhat.com>
27868 * users.txt: Add libvirt.
27870 Support versions of autoconf prior to 2.59c.
27871 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27872 if it is not already defined.
27874 2007-12-09 Bruno Haible <bruno@clisp.org>
27876 Let 'gnulib-tool --import' collect sources needed for the tests in
27877 tests/ rather than in lib/.
27878 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27879 argument. If true, add rules to generate libtests.a, and put libtests.a
27880 into $(LDADD). Consider source files in subdirectories and set
27882 (func_emit_initmacro_start, func_emit_initmacro_end,
27883 func_emit_initmacro_done): Pass all arguments explicitly.
27884 (func_import): Determine two module lists main_modules,
27885 testsrelated_modules. Determine use_libtests. Determine two variables
27886 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27887 instead of just sed_transform_lib_file. Determine two variables
27888 main_files and testsrelated_files. Compute 'files' as the union of
27889 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27890 func_add_or_update. In the generated gnulib-comp.m4, collect the
27891 object files for tests/ in different variables than those for lib/.
27892 Substitute LIBTESTS_LIBDEPS.
27893 (func_create_testdir): Combine the uses_subdirs results from
27894 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27896 2007-12-09 Bruno Haible <bruno@clisp.org>
27898 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27899 the build-aux directory.
27901 2007-12-09 Bruno Haible <bruno@clisp.org>
27903 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27904 introduced on 2006-09-09.
27906 2007-12-07 Jim Meyering <meyering@redhat.com>
27908 Let these macros work also with autoconf-2.59.
27909 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
27910 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27911 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27913 2007-12-06 Jim Meyering <meyering@redhat.com>
27915 Avoid a configure-time syntax error in gl_FUNC_ACL.
27916 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27917 function in each branch, before testing the cache variable.
27919 2007-12-04 Eric Blake <ebb9@byu.net>
27921 Make scripts executable.
27922 * build-aux/config.guess: Add execute permissions.
27923 * build-aux/config.sub: Likewise.
27924 * build-aux/gendocs.sh: Likewise.
27926 Fix frexp on mingw.
27927 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27929 * doc/functions/frexp.texi (frexp): Document the bug.
27931 Make cygwin fseeko check more reliable.
27932 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27933 version numbers, rather than unrelated feature check.
27934 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27935 * doc/functions/ftello.texi (ftello): Likewise.
27936 Reported by Bruno Haible.
27938 * m4/strerror.m4: Bump version number.
27940 2007-12-03 Bruno Haible <bruno@clisp.org>
27942 * doc/functions/mprotect.texi: Mention the mingw problem.
27944 2007-12-03 Eric Blake <ebb9@byu.net>
27946 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27947 REPLACE_STRERROR is initialized before this macro.
27949 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
27951 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
27952 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27953 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
27954 put -lsec in even for programs other than 'ls'. This fixes a problem
27955 for gettext reported by Bruno Haible in
27956 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27957 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27958 Add support for Solaris 10. This isn't efficient, but should get the
27961 2007-12-03 James Youngman <jay@gnu.org>
27963 * doc/regexprops-generic.texi: change "an close-group" to "a
27964 close-group" and "illegal" to "not allowed".
27966 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27968 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27969 pr_byname.h. Needed for the rare case when the maintainer has done
27970 "make maintainer-clean" in the source directory and then attempts a
27971 build outside the source directory.
27972 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27975 2007-12-02 Martin Lambers <marlam@marlam.de>
27976 Bruno Haible <bruno@clisp.org>
27978 * lib/getpagesize.h: Remove file.
27979 * lib/unistd.in.h: Include declaration of getpagesize here.
27980 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27981 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27983 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27984 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27985 * modules/getpagesize (Files): Remove lib/getpagesize.h.
27986 (Depends-on): Add unistd.
27987 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27988 (Include): Use <unistd.h> instead of getpagesize.h.
27989 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27990 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27991 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27992 gl_GETPAGESIZE invocation, already handled by module dependency.
27993 * lib/pagealign_alloc.c: Don't include getpagesize.h.
27995 2007-12-02 Bruno Haible <bruno@clisp.org>
27997 * modules/strings-tests: New file.
27998 * tests/test-strings.c: New file.
28000 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28001 * lib/strings.in.h: New file.
28002 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28003 * m4/strings_h.m4: New file.
28004 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28005 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28006 * modules/strings: New file.
28007 * modules/string (Makefile.am): Update.
28008 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28009 Reported by Karl Berry.
28011 2007-12-01 Eric Blake <ebb9@byu.net>
28013 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28014 accomodate fix in cygwin 1.5.25.
28016 2007-12-01 Jim Meyering <meyering@redhat.com>
28018 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28019 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28020 that would inhibit utf8-optimization of a regexp containing line-
28021 or buffer-anchors, e.g., `^', `$'.
28023 2007-11-30 Bruno Haible <bruno@clisp.org>
28025 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28026 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28027 glthread_recursive_lock_init.
28028 * lib/lock.c (glthread_recursive_lock_init)
28029 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28030 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28032 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
28034 New function qset_acl, like set_acl but with syscall semantics.
28035 * lib/acl.h (qset_acl): New decl.
28036 * lib/acl.c (qset_acl): New function.
28037 (set_acl): Use new function. Use more-consistent diagnostics.
28039 2007-11-28 Jim Meyering <meyering@redhat.com>
28041 * modules/physmem (License): Change from GPL to LGPLv2+.
28043 2007-11-26 Bruno Haible <bruno@clisp.org>
28045 * lib/vasnprintf.c (decode_long_double): Don't abort if the
28046 'long double' type has excess precision.
28047 Reported by Jim Meyering in
28048 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28050 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28052 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28053 Sync from <http://gnu.org/licenses>.
28054 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28055 with license text from same location.
28056 * doc/maintain.texi, doc/standards.texi: Sync from
28057 <http://savannah.gnu.org/projects/gnustandards>.
28059 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
28060 and Jim Meyering <meyering@redhat.com>
28062 Adjust getdate' grammar to accept a slightly more regular language.
28063 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28064 Before, the former was rejected.
28065 * lib/getdate.y (digits_to_date_time): New function, factored
28067 (number): ...here. Just call digits_to_date_time.
28068 (hybrid): New non-terminal to handle an <unsigned number,
28069 signed relative offset> sequence consistently.
28071 2007-11-18 Jim Meyering <meyering@redhat.com>
28073 Pull my changes from coreutils:
28074 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28075 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28076 use of $gnulib_tool_option_extras, so that it's separated from the
28077 preceding argument.
28079 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28080 * build-aux/bootstrap (cp_mark_as_generated): Create any required
28081 parent destination directories before copying a file into place.
28083 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
28085 bootstrap: work also with 4-argument variant of AC_INIT
28086 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28088 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
28090 Port test-getaddrinfo to Solaris.
28091 Problem reported by Bruno Haible in
28092 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28093 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28094 explanation of setting 'hints'.
28095 Don't reject an implementation merely because it returns EAI_SERVICE.
28096 (EAI_SERVICE): Define to 0 if not defined.
28098 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
28100 The license of gnu-make and posix-shell is now "GPLed build tool".
28101 * modules/gnu-make (License): Likewise.
28102 * modules/posix-shell (License): Likewise.
28104 New module posix-shell, for determining a POSIX shell
28105 or perhaps something that is close enough to a POSIX shell.
28106 * m4/posix-shell.m4: New file.
28107 * modules/posix-shell: New file.
28109 * MODULES.html.sh: Mention new module.
28111 New module gnu-make, for determining whether we're using GNU Make.
28112 * m4/gnu-make.m4: New file.
28113 * modules/gnu-make: New file.
28114 * MODULES.html.sh: Mention new module.
28116 2007-11-14 Jim Meyering <meyering@redhat.com>
28118 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28119 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28120 use this macro to create a function _definition_.
28121 Remove useless "#undef ARGMATCH_DIE".
28123 2007-11-14 Bruno Haible <bruno@clisp.org>
28125 * lib/config.charset: Update for OpenBSD 4.1.
28126 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28128 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
28130 Document 64-bit #if problems in stdint.texi.
28131 * doc/headers/stdint.texi (stdint.h): Mention problems with
28132 64-bit-#if, and how to work around them.
28134 Don't insist on 'long long int' support in the preprocessor. It
28135 breaks too many things. For example, PRIdMAX still uses a 'long
28136 long int' format with the latest Sun compiler, even though
28137 HAVE_LONG_LONG_INT isn't defined due to that compiler's
28138 preprocessor problem. This causes the latest coreutils to dump
28139 core on Solaris 10 sparc with the Sun C compiler.
28140 Instead, fix the 2007-10-16 problem in a different way, by evaluating
28141 the troublesome expressions at configure-time, not at #if-time.
28142 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28144 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28145 compile-time C checks, done at 'configure'-time.
28146 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28147 * modules/inttypes (Makefile): Substitute the new symbols that
28148 gl_INTTYPES_H now generates.
28149 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28151 2007-11-12 Bruno Haible <bruno@clisp.org>
28153 Tests for Unicode character classification functions.
28155 * modules/unictype/bidicategory-byname-tests: New file.
28156 * modules/unictype/bidicategory-name-tests: New file.
28157 * modules/unictype/bidicategory-of-tests: New file.
28158 * modules/unictype/bidicategory-test-tests: New file.
28159 * modules/unictype/block-list-tests: New file.
28160 * modules/unictype/block-of-tests: New file.
28161 * modules/unictype/block-test-tests: New file.
28162 * modules/unictype/category-C-tests: New file.
28163 * modules/unictype/category-Cc-tests: New file.
28164 * modules/unictype/category-Cf-tests: New file.
28165 * modules/unictype/category-Cn-tests: New file.
28166 * modules/unictype/category-Co-tests: New file.
28167 * modules/unictype/category-Cs-tests: New file.
28168 * modules/unictype/category-L-tests: New file.
28169 * modules/unictype/category-Ll-tests: New file.
28170 * modules/unictype/category-Lm-tests: New file.
28171 * modules/unictype/category-Lo-tests: New file.
28172 * modules/unictype/category-Lt-tests: New file.
28173 * modules/unictype/category-Lu-tests: New file.
28174 * modules/unictype/category-M-tests: New file.
28175 * modules/unictype/category-Mc-tests: New file.
28176 * modules/unictype/category-Me-tests: New file.
28177 * modules/unictype/category-Mn-tests: New file.
28178 * modules/unictype/category-N-tests: New file.
28179 * modules/unictype/category-Nd-tests: New file.
28180 * modules/unictype/category-Nl-tests: New file.
28181 * modules/unictype/category-No-tests: New file.
28182 * modules/unictype/category-P-tests: New file.
28183 * modules/unictype/category-Pc-tests: New file.
28184 * modules/unictype/category-Pd-tests: New file.
28185 * modules/unictype/category-Pe-tests: New file.
28186 * modules/unictype/category-Pf-tests: New file.
28187 * modules/unictype/category-Pi-tests: New file.
28188 * modules/unictype/category-Po-tests: New file.
28189 * modules/unictype/category-Ps-tests: New file.
28190 * modules/unictype/category-S-tests: New file.
28191 * modules/unictype/category-Sc-tests: New file.
28192 * modules/unictype/category-Sk-tests: New file.
28193 * modules/unictype/category-Sm-tests: New file.
28194 * modules/unictype/category-So-tests: New file.
28195 * modules/unictype/category-Z-tests: New file.
28196 * modules/unictype/category-Zl-tests: New file.
28197 * modules/unictype/category-Zp-tests: New file.
28198 * modules/unictype/category-Zs-tests: New file.
28199 * modules/unictype/category-and-not-tests: New file.
28200 * modules/unictype/category-and-tests: New file.
28201 * modules/unictype/category-byname-tests: New file.
28202 * modules/unictype/category-name-tests: New file.
28203 * modules/unictype/category-none-tests: New file.
28204 * modules/unictype/category-of-tests: New file.
28205 * modules/unictype/category-or-tests: New file.
28206 * modules/unictype/category-test-withtable-tests: New file.
28207 * modules/unictype/combining-class-tests: New file.
28208 * modules/unictype/ctype-alnum-tests: New file.
28209 * modules/unictype/ctype-alpha-tests: New file.
28210 * modules/unictype/ctype-blank-tests: New file.
28211 * modules/unictype/ctype-cntrl-tests: New file.
28212 * modules/unictype/ctype-digit-tests: New file.
28213 * modules/unictype/ctype-graph-tests: New file.
28214 * modules/unictype/ctype-lower-tests: New file.
28215 * modules/unictype/ctype-print-tests: New file.
28216 * modules/unictype/ctype-punct-tests: New file.
28217 * modules/unictype/ctype-space-tests: New file.
28218 * modules/unictype/ctype-upper-tests: New file.
28219 * modules/unictype/ctype-xdigit-tests: New file.
28220 * modules/unictype/decimal-digit-tests: New file.
28221 * modules/unictype/digit-tests: New file.
28222 * modules/unictype/mirror-tests: New file.
28223 * modules/unictype/numeric-tests: New file.
28224 * modules/unictype/property-alphabetic-tests: New file.
28225 * modules/unictype/property-ascii-hex-digit-tests: New file.
28226 * modules/unictype/property-bidi-arabic-digit-tests: New file.
28227 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28228 * modules/unictype/property-bidi-block-separator-tests: New file.
28229 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28230 * modules/unictype/property-bidi-common-separator-tests: New file.
28231 * modules/unictype/property-bidi-control-tests: New file.
28232 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28233 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28234 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28235 * modules/unictype/property-bidi-european-digit-tests: New file.
28236 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28237 * modules/unictype/property-bidi-left-to-right-tests: New file.
28238 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28239 * modules/unictype/property-bidi-other-neutral-tests: New file.
28240 * modules/unictype/property-bidi-pdf-tests: New file.
28241 * modules/unictype/property-bidi-segment-separator-tests: New file.
28242 * modules/unictype/property-bidi-whitespace-tests: New file.
28243 * modules/unictype/property-byname-tests: New file.
28244 * modules/unictype/property-combining-tests: New file.
28245 * modules/unictype/property-composite-tests: New file.
28246 * modules/unictype/property-currency-symbol-tests: New file.
28247 * modules/unictype/property-dash-tests: New file.
28248 * modules/unictype/property-decimal-digit-tests: New file.
28249 * modules/unictype/property-default-ignorable-code-point-tests: New file.
28250 * modules/unictype/property-deprecated-tests: New file.
28251 * modules/unictype/property-diacritic-tests: New file.
28252 * modules/unictype/property-extender-tests: New file.
28253 * modules/unictype/property-format-control-tests: New file.
28254 * modules/unictype/property-grapheme-base-tests: New file.
28255 * modules/unictype/property-grapheme-extend-tests: New file.
28256 * modules/unictype/property-grapheme-link-tests: New file.
28257 * modules/unictype/property-hex-digit-tests: New file.
28258 * modules/unictype/property-hyphen-tests: New file.
28259 * modules/unictype/property-id-continue-tests: New file.
28260 * modules/unictype/property-id-start-tests: New file.
28261 * modules/unictype/property-ideographic-tests: New file.
28262 * modules/unictype/property-ids-binary-operator-tests: New file.
28263 * modules/unictype/property-ids-trinary-operator-tests: New file.
28264 * modules/unictype/property-ignorable-control-tests: New file.
28265 * modules/unictype/property-iso-control-tests: New file.
28266 * modules/unictype/property-join-control-tests: New file.
28267 * modules/unictype/property-left-of-pair-tests: New file.
28268 * modules/unictype/property-line-separator-tests: New file.
28269 * modules/unictype/property-logical-order-exception-tests: New file.
28270 * modules/unictype/property-lowercase-tests: New file.
28271 * modules/unictype/property-math-tests: New file.
28272 * modules/unictype/property-non-break-tests: New file.
28273 * modules/unictype/property-not-a-character-tests: New file.
28274 * modules/unictype/property-numeric-tests: New file.
28275 * modules/unictype/property-other-alphabetic-tests: New file.
28276 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28277 * modules/unictype/property-other-grapheme-extend-tests: New file.
28278 * modules/unictype/property-other-id-continue-tests: New file.
28279 * modules/unictype/property-other-id-start-tests: New file.
28280 * modules/unictype/property-other-lowercase-tests: New file.
28281 * modules/unictype/property-other-math-tests: New file.
28282 * modules/unictype/property-other-uppercase-tests: New file.
28283 * modules/unictype/property-paired-punctuation-tests: New file.
28284 * modules/unictype/property-paragraph-separator-tests: New file.
28285 * modules/unictype/property-pattern-syntax-tests: New file.
28286 * modules/unictype/property-pattern-white-space-tests: New file.
28287 * modules/unictype/property-private-use-tests: New file.
28288 * modules/unictype/property-punctuation-tests: New file.
28289 * modules/unictype/property-quotation-mark-tests: New file.
28290 * modules/unictype/property-radical-tests: New file.
28291 * modules/unictype/property-sentence-terminal-tests: New file.
28292 * modules/unictype/property-soft-dotted-tests: New file.
28293 * modules/unictype/property-space-tests: New file.
28294 * modules/unictype/property-terminal-punctuation-tests: New file.
28295 * modules/unictype/property-test-tests: New file.
28296 * modules/unictype/property-titlecase-tests: New file.
28297 * modules/unictype/property-unassigned-code-value-tests: New file.
28298 * modules/unictype/property-unified-ideograph-tests: New file.
28299 * modules/unictype/property-uppercase-tests: New file.
28300 * modules/unictype/property-variation-selector-tests: New file.
28301 * modules/unictype/property-white-space-tests: New file.
28302 * modules/unictype/property-xid-continue-tests: New file.
28303 * modules/unictype/property-xid-start-tests: New file.
28304 * modules/unictype/property-zero-width-tests: New file.
28305 * modules/unictype/scripts-tests: New file.
28306 * modules/unictype/syntax-c-ident-tests: New file.
28307 * modules/unictype/syntax-c-whitespace-tests: New file.
28308 * modules/unictype/syntax-java-ident-tests: New file.
28309 * modules/unictype/syntax-java-whitespace-tests: New file.
28310 * tests/unictype/test-bidi_byname.c: New file.
28311 * tests/unictype/test-bidi_name.c: New file.
28312 * tests/unictype/test-bidi_of.c: New file.
28313 * tests/unictype/test-bidi_test.c: New file.
28314 * tests/unictype/test-block_list.c: New file.
28315 * tests/unictype/test-block_of.c: New file.
28316 * tests/unictype/test-block_test.c: New file.
28317 * tests/unictype/test-categ_and.c: New file.
28318 * tests/unictype/test-categ_and_not.c: New file.
28319 * tests/unictype/test-categ_byname.c: New file.
28320 * tests/unictype/test-categ_name.c: New file.
28321 * tests/unictype/test-categ_none.c: New file.
28322 * tests/unictype/test-categ_of.c: New file.
28323 * tests/unictype/test-categ_or.c: New file.
28324 * tests/unictype/test-categ_test_withtable.c: New file.
28325 * tests/unictype/test-combining.c: New file.
28326 * tests/unictype/test-decdigit.c: New file.
28327 * tests/unictype/test-digit.c: New file.
28328 * tests/unictype/test-mirror.c: New file.
28329 * tests/unictype/test-numeric.c: New file.
28330 * tests/unictype/test-pr_byname.c: New file.
28331 * tests/unictype/test-pr_test.c: New file.
28332 * tests/unictype/test-predicate-part1.h: New file.
28333 * tests/unictype/test-predicate-part2.h: New file.
28334 * tests/unictype/test-scripts.c: New file.
28335 * tests/unictype/test-sy_c_ident.c: New file.
28336 * tests/unictype/test-sy_java_ident.c: New file.
28338 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28340 * tests/unictype/test-categ_Cc.c: Likewise.
28341 * tests/unictype/test-categ_Cf.c: Likewise.
28342 * tests/unictype/test-categ_Cn.c: Likewise.
28343 * tests/unictype/test-categ_Co.c: Likewise.
28344 * tests/unictype/test-categ_Cs.c: Likewise.
28345 * tests/unictype/test-categ_L.c: Likewise.
28346 * tests/unictype/test-categ_Ll.c: Likewise.
28347 * tests/unictype/test-categ_Lm.c: Likewise.
28348 * tests/unictype/test-categ_Lo.c: Likewise.
28349 * tests/unictype/test-categ_Lt.c: Likewise.
28350 * tests/unictype/test-categ_Lu.c: Likewise.
28351 * tests/unictype/test-categ_M.c: Likewise.
28352 * tests/unictype/test-categ_Mc.c: Likewise.
28353 * tests/unictype/test-categ_Me.c: Likewise.
28354 * tests/unictype/test-categ_Mn.c: Likewise.
28355 * tests/unictype/test-categ_N.c: Likewise.
28356 * tests/unictype/test-categ_Nd.c: Likewise.
28357 * tests/unictype/test-categ_Nl.c: Likewise.
28358 * tests/unictype/test-categ_No.c: Likewise.
28359 * tests/unictype/test-categ_P.c: Likewise.
28360 * tests/unictype/test-categ_Pc.c: Likewise.
28361 * tests/unictype/test-categ_Pd.c: Likewise.
28362 * tests/unictype/test-categ_Pe.c: Likewise.
28363 * tests/unictype/test-categ_Pf.c: Likewise.
28364 * tests/unictype/test-categ_Pi.c: Likewise.
28365 * tests/unictype/test-categ_Po.c: Likewise.
28366 * tests/unictype/test-categ_Ps.c: Likewise.
28367 * tests/unictype/test-categ_S.c: Likewise.
28368 * tests/unictype/test-categ_Sc.c: Likewise.
28369 * tests/unictype/test-categ_Sk.c: Likewise.
28370 * tests/unictype/test-categ_Sm.c: Likewise.
28371 * tests/unictype/test-categ_So.c: Likewise.
28372 * tests/unictype/test-categ_Z.c: Likewise.
28373 * tests/unictype/test-categ_Zl.c: Likewise.
28374 * tests/unictype/test-categ_Zp.c: Likewise.
28375 * tests/unictype/test-categ_Zs.c: Likewise.
28376 * tests/unictype/test-ctype_alnum.c: Likewise.
28377 * tests/unictype/test-ctype_alpha.c: Likewise.
28378 * tests/unictype/test-ctype_blank.c: Likewise.
28379 * tests/unictype/test-ctype_cntrl.c: Likewise.
28380 * tests/unictype/test-ctype_digit.c: Likewise.
28381 * tests/unictype/test-ctype_graph.c: Likewise.
28382 * tests/unictype/test-ctype_lower.c: Likewise.
28383 * tests/unictype/test-ctype_print.c: Likewise.
28384 * tests/unictype/test-ctype_punct.c: Likewise.
28385 * tests/unictype/test-ctype_space.c: Likewise.
28386 * tests/unictype/test-ctype_upper.c: Likewise.
28387 * tests/unictype/test-ctype_xdigit.c: Likewise.
28388 * tests/unictype/test-decdigit.h: Likewise.
28389 * tests/unictype/test-digit.h: Likewise.
28390 * tests/unictype/test-numeric.h: Likewise.
28391 * tests/unictype/test-pr_alphabetic.c: Likewise.
28392 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28393 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28394 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28395 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28396 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28397 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28398 * tests/unictype/test-pr_bidi_control.c: Likewise.
28399 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28400 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28401 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28402 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28403 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28404 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28405 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28406 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28407 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28408 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28409 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28410 * tests/unictype/test-pr_combining.c: Likewise.
28411 * tests/unictype/test-pr_composite.c: Likewise.
28412 * tests/unictype/test-pr_currency_symbol.c: Likewise.
28413 * tests/unictype/test-pr_dash.c: Likewise.
28414 * tests/unictype/test-pr_decimal_digit.c: Likewise.
28415 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28416 * tests/unictype/test-pr_deprecated.c: Likewise.
28417 * tests/unictype/test-pr_diacritic.c: Likewise.
28418 * tests/unictype/test-pr_extender.c: Likewise.
28419 * tests/unictype/test-pr_format_control.c: Likewise.
28420 * tests/unictype/test-pr_grapheme_base.c: Likewise.
28421 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28422 * tests/unictype/test-pr_grapheme_link.c: Likewise.
28423 * tests/unictype/test-pr_hex_digit.c: Likewise.
28424 * tests/unictype/test-pr_hyphen.c: Likewise.
28425 * tests/unictype/test-pr_id_continue.c: Likewise.
28426 * tests/unictype/test-pr_id_start.c: Likewise.
28427 * tests/unictype/test-pr_ideographic.c: Likewise.
28428 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28429 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28430 * tests/unictype/test-pr_ignorable_control.c: Likewise.
28431 * tests/unictype/test-pr_iso_control.c: Likewise.
28432 * tests/unictype/test-pr_join_control.c: Likewise.
28433 * tests/unictype/test-pr_left_of_pair.c: Likewise.
28434 * tests/unictype/test-pr_line_separator.c: Likewise.
28435 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28436 * tests/unictype/test-pr_lowercase.c: Likewise.
28437 * tests/unictype/test-pr_math.c: Likewise.
28438 * tests/unictype/test-pr_non_break.c: Likewise.
28439 * tests/unictype/test-pr_not_a_character.c: Likewise.
28440 * tests/unictype/test-pr_numeric.c: Likewise.
28441 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28442 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28443 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28444 * tests/unictype/test-pr_other_id_continue.c: Likewise.
28445 * tests/unictype/test-pr_other_id_start.c: Likewise.
28446 * tests/unictype/test-pr_other_lowercase.c: Likewise.
28447 * tests/unictype/test-pr_other_math.c: Likewise.
28448 * tests/unictype/test-pr_other_uppercase.c: Likewise.
28449 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28450 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28451 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28452 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28453 * tests/unictype/test-pr_private_use.c: Likewise.
28454 * tests/unictype/test-pr_punctuation.c: Likewise.
28455 * tests/unictype/test-pr_quotation_mark.c: Likewise.
28456 * tests/unictype/test-pr_radical.c: Likewise.
28457 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28458 * tests/unictype/test-pr_soft_dotted.c: Likewise.
28459 * tests/unictype/test-pr_space.c: Likewise.
28460 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28461 * tests/unictype/test-pr_titlecase.c: Likewise.
28462 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28463 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28464 * tests/unictype/test-pr_uppercase.c: Likewise.
28465 * tests/unictype/test-pr_variation_selector.c: Likewise.
28466 * tests/unictype/test-pr_white_space.c: Likewise.
28467 * tests/unictype/test-pr_xid_continue.c: Likewise.
28468 * tests/unictype/test-pr_xid_start.c: Likewise.
28469 * tests/unictype/test-pr_zero_width.c: Likewise.
28470 * tests/unictype/test-sy_c_whitespace.c: Likewise.
28471 * tests/unictype/test-sy_java_whitespace.c: Likewise.
28473 2007-11-12 Bruno Haible <bruno@clisp.org>
28475 Unicode character classification functions.
28476 * lib/unictype.h: New file.
28477 * modules/unictype/base: New file.
28478 * modules/unictype/category-L: New file.
28479 * modules/unictype/category-Lu: New file.
28480 * modules/unictype/category-Ll: New file.
28481 * modules/unictype/category-Lt: New file.
28482 * modules/unictype/category-Lm: New file.
28483 * modules/unictype/category-Lo: New file.
28484 * modules/unictype/category-M: New file.
28485 * modules/unictype/category-Mn: New file.
28486 * modules/unictype/category-Mc: New file.
28487 * modules/unictype/category-Me: New file.
28488 * modules/unictype/category-N: New file.
28489 * modules/unictype/category-Nd: New file.
28490 * modules/unictype/category-Nl: New file.
28491 * modules/unictype/category-No: New file.
28492 * modules/unictype/category-P: New file.
28493 * modules/unictype/category-Pc: New file.
28494 * modules/unictype/category-Pd: New file.
28495 * modules/unictype/category-Ps: New file.
28496 * modules/unictype/category-Pe: New file.
28497 * modules/unictype/category-Pi: New file.
28498 * modules/unictype/category-Pf: New file.
28499 * modules/unictype/category-Po: New file.
28500 * modules/unictype/category-S: New file.
28501 * modules/unictype/category-Sm: New file.
28502 * modules/unictype/category-Sc: New file.
28503 * modules/unictype/category-Sk: New file.
28504 * modules/unictype/category-So: New file.
28505 * modules/unictype/category-Z: New file.
28506 * modules/unictype/category-Zs: New file.
28507 * modules/unictype/category-Zl: New file.
28508 * modules/unictype/category-Zp: New file.
28509 * modules/unictype/category-C: New file.
28510 * modules/unictype/category-Cc: New file.
28511 * modules/unictype/category-Cf: New file.
28512 * modules/unictype/category-Cs: New file.
28513 * modules/unictype/category-Co: New file.
28514 * modules/unictype/category-Cn: New file.
28515 * modules/unictype/category-or: New file.
28516 * modules/unictype/category-of: New file.
28517 * modules/unictype/category-test: New file.
28518 * modules/unictype/category-test-withtable: New file.
28519 * modules/unictype/category-byname: New file.
28520 * modules/unictype/category-none: New file.
28521 * modules/unictype/category-and: New file.
28522 * modules/unictype/category-and-not: New file.
28523 * modules/unictype/category-name: New file.
28524 * modules/unictype/combining-class: New file.
28525 * modules/unictype/category-all: New file.
28526 * modules/unictype/bidicategory-all: New file.
28527 * modules/unictype/bidicategory-byname: New file.
28528 * modules/unictype/bidicategory-name: New file.
28529 * modules/unictype/bidicategory-of: New file.
28530 * modules/unictype/bidicategory-test: New file.
28531 * modules/unictype/decimal-digit: New file.
28532 * modules/unictype/digit: New file.
28533 * modules/unictype/numeric: New file.
28534 * modules/unictype/mirror: New file.
28535 * modules/unictype/property-white-space: New file.
28536 * modules/unictype/property-alphabetic: New file.
28537 * modules/unictype/property-other-alphabetic: New file.
28538 * modules/unictype/property-not-a-character: New file.
28539 * modules/unictype/property-default-ignorable-code-point: New file.
28540 * modules/unictype/property-other-default-ignorable-code-point: New
28542 * modules/unictype/property-deprecated: New file.
28543 * modules/unictype/property-logical-order-exception: New file.
28544 * modules/unictype/property-variation-selector: New file.
28545 * modules/unictype/property-private-use: New file.
28546 * modules/unictype/property-unassigned-code-value: New file.
28547 * modules/unictype/property-uppercase: New file.
28548 * modules/unictype/property-other-uppercase: New file.
28549 * modules/unictype/property-lowercase: New file.
28550 * modules/unictype/property-other-lowercase: New file.
28551 * modules/unictype/property-titlecase: New file.
28552 * modules/unictype/property-soft-dotted: New file.
28553 * modules/unictype/property-id-start: New file.
28554 * modules/unictype/property-other-id-start: New file.
28555 * modules/unictype/property-id-continue: New file.
28556 * modules/unictype/property-other-id-continue: New file.
28557 * modules/unictype/property-xid-start: New file.
28558 * modules/unictype/property-xid-continue: New file.
28559 * modules/unictype/property-pattern-white-space: New file.
28560 * modules/unictype/property-pattern-syntax: New file.
28561 * modules/unictype/property-join-control: New file.
28562 * modules/unictype/property-grapheme-base: New file.
28563 * modules/unictype/property-grapheme-extend: New file.
28564 * modules/unictype/property-other-grapheme-extend: New file.
28565 * modules/unictype/property-grapheme-link: New file.
28566 * modules/unictype/property-bidi-control: New file.
28567 * modules/unictype/property-bidi-left-to-right: New file.
28568 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28569 * modules/unictype/property-bidi-arabic-right-to-left: New file.
28570 * modules/unictype/property-bidi-european-digit: New file.
28571 * modules/unictype/property-bidi-eur-num-separator: New file.
28572 * modules/unictype/property-bidi-eur-num-terminator: New file.
28573 * modules/unictype/property-bidi-arabic-digit: New file.
28574 * modules/unictype/property-bidi-common-separator: New file.
28575 * modules/unictype/property-bidi-block-separator: New file.
28576 * modules/unictype/property-bidi-segment-separator: New file.
28577 * modules/unictype/property-bidi-whitespace: New file.
28578 * modules/unictype/property-bidi-non-spacing-mark: New file.
28579 * modules/unictype/property-bidi-boundary-neutral: New file.
28580 * modules/unictype/property-bidi-pdf: New file.
28581 * modules/unictype/property-bidi-embedding-or-override: New file.
28582 * modules/unictype/property-bidi-other-neutral: New file.
28583 * modules/unictype/property-hex-digit: New file.
28584 * modules/unictype/property-ascii-hex-digit: New file.
28585 * modules/unictype/property-ideographic: New file.
28586 * modules/unictype/property-unified-ideograph: New file.
28587 * modules/unictype/property-radical: New file.
28588 * modules/unictype/property-ids-binary-operator: New file.
28589 * modules/unictype/property-ids-trinary-operator: New file.
28590 * modules/unictype/property-zero-width: New file.
28591 * modules/unictype/property-space: New file.
28592 * modules/unictype/property-non-break: New file.
28593 * modules/unictype/property-iso-control: New file.
28594 * modules/unictype/property-format-control: New file.
28595 * modules/unictype/property-dash: New file.
28596 * modules/unictype/property-hyphen: New file.
28597 * modules/unictype/property-punctuation: New file.
28598 * modules/unictype/property-line-separator: New file.
28599 * modules/unictype/property-paragraph-separator: New file.
28600 * modules/unictype/property-quotation-mark: New file.
28601 * modules/unictype/property-sentence-terminal: New file.
28602 * modules/unictype/property-terminal-punctuation: New file.
28603 * modules/unictype/property-currency-symbol: New file.
28604 * modules/unictype/property-math: New file.
28605 * modules/unictype/property-other-math: New file.
28606 * modules/unictype/property-paired-punctuation: New file.
28607 * modules/unictype/property-left-of-pair: New file.
28608 * modules/unictype/property-combining: New file.
28609 * modules/unictype/property-composite: New file.
28610 * modules/unictype/property-decimal-digit: New file.
28611 * modules/unictype/property-numeric: New file.
28612 * modules/unictype/property-diacritic: New file.
28613 * modules/unictype/property-extender: New file.
28614 * modules/unictype/property-ignorable-control: New file.
28615 * modules/unictype/property-test: New file.
28616 * modules/unictype/property-byname: New file.
28617 * modules/unictype/property-all: New file.
28618 * modules/unictype/scripts: New file.
28619 * modules/unictype/scripts-all: New file.
28620 * modules/unictype/block-of: New file.
28621 * modules/unictype/block-test: New file.
28622 * modules/unictype/block-list: New file.
28623 * modules/unictype/block-all: New file.
28624 * modules/unictype/syntax-c-whitespace: New file.
28625 * modules/unictype/syntax-java-whitespace: New file.
28626 * modules/unictype/syntax-c-ident: New file.
28627 * modules/unictype/syntax-java-ident: New file.
28628 * modules/unictype/ctype-alnum: New file.
28629 * modules/unictype/ctype-alpha: New file.
28630 * modules/unictype/ctype-cntrl: New file.
28631 * modules/unictype/ctype-digit: New file.
28632 * modules/unictype/ctype-graph: New file.
28633 * modules/unictype/ctype-lower: New file.
28634 * modules/unictype/ctype-print: New file.
28635 * modules/unictype/ctype-punct: New file.
28636 * modules/unictype/ctype-space: New file.
28637 * modules/unictype/ctype-upper: New file.
28638 * modules/unictype/ctype-xdigit: New file.
28639 * modules/unictype/ctype-blank: New file.
28640 * lib/unictype/bidi_byname.c: New file.
28641 * lib/unictype/bidi_name.c: New file.
28642 * lib/unictype/bidi_of.c: New file.
28643 * lib/unictype/bidi_test.c: New file.
28644 * lib/unictype/bitmap.h: New file.
28645 * lib/unictype/block_test.c: New file.
28646 * lib/unictype/blocks.c: New file.
28647 * lib/unictype/categ_C.c: New file.
28648 * lib/unictype/categ_Cc.c: New file.
28649 * lib/unictype/categ_Cf.c: New file.
28650 * lib/unictype/categ_Cn.c: New file.
28651 * lib/unictype/categ_Co.c: New file.
28652 * lib/unictype/categ_Cs.c: New file.
28653 * lib/unictype/categ_L.c: New file.
28654 * lib/unictype/categ_Ll.c: New file.
28655 * lib/unictype/categ_Lm.c: New file.
28656 * lib/unictype/categ_Lo.c: New file.
28657 * lib/unictype/categ_Lt.c: New file.
28658 * lib/unictype/categ_Lu.c: New file.
28659 * lib/unictype/categ_M.c: New file.
28660 * lib/unictype/categ_Mc.c: New file.
28661 * lib/unictype/categ_Me.c: New file.
28662 * lib/unictype/categ_Mn.c: New file.
28663 * lib/unictype/categ_N.c: New file.
28664 * lib/unictype/categ_Nd.c: New file.
28665 * lib/unictype/categ_Nl.c: New file.
28666 * lib/unictype/categ_No.c: New file.
28667 * lib/unictype/categ_P.c: New file.
28668 * lib/unictype/categ_Pc.c: New file.
28669 * lib/unictype/categ_Pd.c: New file.
28670 * lib/unictype/categ_Pe.c: New file.
28671 * lib/unictype/categ_Pf.c: New file.
28672 * lib/unictype/categ_Pi.c: New file.
28673 * lib/unictype/categ_Po.c: New file.
28674 * lib/unictype/categ_Ps.c: New file.
28675 * lib/unictype/categ_S.c: New file.
28676 * lib/unictype/categ_Sc.c: New file.
28677 * lib/unictype/categ_Sk.c: New file.
28678 * lib/unictype/categ_Sm.c: New file.
28679 * lib/unictype/categ_So.c: New file.
28680 * lib/unictype/categ_Z.c: New file.
28681 * lib/unictype/categ_Zl.c: New file.
28682 * lib/unictype/categ_Zp.c: New file.
28683 * lib/unictype/categ_Zs.c: New file.
28684 * lib/unictype/categ_and.c: New file.
28685 * lib/unictype/categ_and_not.c: New file.
28686 * lib/unictype/categ_byname.c: New file.
28687 * lib/unictype/categ_name.c: New file.
28688 * lib/unictype/categ_none.c: New file.
28689 * lib/unictype/categ_of.c: New file.
28690 * lib/unictype/categ_or.c: New file.
28691 * lib/unictype/categ_test.c: New file.
28692 * lib/unictype/combining.c: New file.
28693 * lib/unictype/ctype_alnum.c: New file.
28694 * lib/unictype/ctype_alpha.c: New file.
28695 * lib/unictype/ctype_blank.c: New file.
28696 * lib/unictype/ctype_cntrl.c: New file.
28697 * lib/unictype/ctype_digit.c: New file.
28698 * lib/unictype/ctype_graph.c: New file.
28699 * lib/unictype/ctype_lower.c: New file.
28700 * lib/unictype/ctype_print.c: New file.
28701 * lib/unictype/ctype_punct.c: New file.
28702 * lib/unictype/ctype_space.c: New file.
28703 * lib/unictype/ctype_upper.c: New file.
28704 * lib/unictype/ctype_xdigit.c: New file.
28705 * lib/unictype/decdigit.c: New file.
28706 * lib/unictype/digit.c: New file.
28707 * lib/unictype/identsyntaxmap.h: New file.
28708 * lib/unictype/mirror.c: New file.
28709 * lib/unictype/numeric.c: New file.
28710 * lib/unictype/pr_alphabetic.c: New file.
28711 * lib/unictype/pr_ascii_hex_digit.c: New file.
28712 * lib/unictype/pr_bidi_arabic_digit.c: New file.
28713 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28714 * lib/unictype/pr_bidi_block_separator.c: New file.
28715 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28716 * lib/unictype/pr_bidi_common_separator.c: New file.
28717 * lib/unictype/pr_bidi_control.c: New file.
28718 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28719 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28720 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28721 * lib/unictype/pr_bidi_european_digit.c: New file.
28722 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28723 * lib/unictype/pr_bidi_left_to_right.c: New file.
28724 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28725 * lib/unictype/pr_bidi_other_neutral.c: New file.
28726 * lib/unictype/pr_bidi_pdf.c: New file.
28727 * lib/unictype/pr_bidi_segment_separator.c: New file.
28728 * lib/unictype/pr_bidi_whitespace.c: New file.
28729 * lib/unictype/pr_byname.c: New file.
28730 * lib/unictype/pr_byname.gperf: New file.
28731 * lib/unictype/pr_combining.c: New file.
28732 * lib/unictype/pr_composite.c: New file.
28733 * lib/unictype/pr_currency_symbol.c: New file.
28734 * lib/unictype/pr_dash.c: New file.
28735 * lib/unictype/pr_decimal_digit.c: New file.
28736 * lib/unictype/pr_default_ignorable_code_point.c: New file.
28737 * lib/unictype/pr_deprecated.c: New file.
28738 * lib/unictype/pr_diacritic.c: New file.
28739 * lib/unictype/pr_extender.c: New file.
28740 * lib/unictype/pr_format_control.c: New file.
28741 * lib/unictype/pr_grapheme_base.c: New file.
28742 * lib/unictype/pr_grapheme_extend.c: New file.
28743 * lib/unictype/pr_grapheme_link.c: New file.
28744 * lib/unictype/pr_hex_digit.c: New file.
28745 * lib/unictype/pr_hyphen.c: New file.
28746 * lib/unictype/pr_id_continue.c: New file.
28747 * lib/unictype/pr_id_start.c: New file.
28748 * lib/unictype/pr_ideographic.c: New file.
28749 * lib/unictype/pr_ids_binary_operator.c: New file.
28750 * lib/unictype/pr_ids_trinary_operator.c: New file.
28751 * lib/unictype/pr_ignorable_control.c: New file.
28752 * lib/unictype/pr_iso_control.c: New file.
28753 * lib/unictype/pr_join_control.c: New file.
28754 * lib/unictype/pr_left_of_pair.c: New file.
28755 * lib/unictype/pr_line_separator.c: New file.
28756 * lib/unictype/pr_logical_order_exception.c: New file.
28757 * lib/unictype/pr_lowercase.c: New file.
28758 * lib/unictype/pr_math.c: New file.
28759 * lib/unictype/pr_non_break.c: New file.
28760 * lib/unictype/pr_not_a_character.c: New file.
28761 * lib/unictype/pr_numeric.c: New file.
28762 * lib/unictype/pr_other_alphabetic.c: New file.
28763 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28764 * lib/unictype/pr_other_grapheme_extend.c: New file.
28765 * lib/unictype/pr_other_id_continue.c: New file.
28766 * lib/unictype/pr_other_id_start.c: New file.
28767 * lib/unictype/pr_other_lowercase.c: New file.
28768 * lib/unictype/pr_other_math.c: New file.
28769 * lib/unictype/pr_other_uppercase.c: New file.
28770 * lib/unictype/pr_paired_punctuation.c: New file.
28771 * lib/unictype/pr_paragraph_separator.c: New file.
28772 * lib/unictype/pr_pattern_syntax.c: New file.
28773 * lib/unictype/pr_pattern_white_space.c: New file.
28774 * lib/unictype/pr_private_use.c: New file.
28775 * lib/unictype/pr_punctuation.c: New file.
28776 * lib/unictype/pr_quotation_mark.c: New file.
28777 * lib/unictype/pr_radical.c: New file.
28778 * lib/unictype/pr_sentence_terminal.c: New file.
28779 * lib/unictype/pr_soft_dotted.c: New file.
28780 * lib/unictype/pr_space.c: New file.
28781 * lib/unictype/pr_terminal_punctuation.c: New file.
28782 * lib/unictype/pr_test.c: New file.
28783 * lib/unictype/pr_titlecase.c: New file.
28784 * lib/unictype/pr_unassigned_code_value.c: New file.
28785 * lib/unictype/pr_unified_ideograph.c: New file.
28786 * lib/unictype/pr_uppercase.c: New file.
28787 * lib/unictype/pr_variation_selector.c: New file.
28788 * lib/unictype/pr_white_space.c: New file.
28789 * lib/unictype/pr_xid_continue.c: New file.
28790 * lib/unictype/pr_xid_start.c: New file.
28791 * lib/unictype/pr_zero_width.c: New file.
28792 * lib/unictype/scripts.c: New file.
28793 * lib/unictype/sy_c_ident.c: New file.
28794 * lib/unictype/sy_c_whitespace.c: New file.
28795 * lib/unictype/sy_java_ident.c: New file.
28796 * lib/unictype/sy_java_whitespace.c: New file.
28798 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28800 * lib/unictype/blocks.h: Likewise.
28801 * lib/unictype/categ_C.h: Likewise.
28802 * lib/unictype/categ_Cc.h: Likewise.
28803 * lib/unictype/categ_Cf.h: Likewise.
28804 * lib/unictype/categ_Cn.h: Likewise.
28805 * lib/unictype/categ_Co.h: Likewise.
28806 * lib/unictype/categ_Cs.h: Likewise.
28807 * lib/unictype/categ_L.h: Likewise.
28808 * lib/unictype/categ_Ll.h: Likewise.
28809 * lib/unictype/categ_Lm.h: Likewise.
28810 * lib/unictype/categ_Lo.h: Likewise.
28811 * lib/unictype/categ_Lt.h: Likewise.
28812 * lib/unictype/categ_Lu.h: Likewise.
28813 * lib/unictype/categ_M.h: Likewise.
28814 * lib/unictype/categ_Mc.h: Likewise.
28815 * lib/unictype/categ_Me.h: Likewise.
28816 * lib/unictype/categ_Mn.h: Likewise.
28817 * lib/unictype/categ_N.h: Likewise.
28818 * lib/unictype/categ_Nd.h: Likewise.
28819 * lib/unictype/categ_Nl.h: Likewise.
28820 * lib/unictype/categ_No.h: Likewise.
28821 * lib/unictype/categ_P.h: Likewise.
28822 * lib/unictype/categ_Pc.h: Likewise.
28823 * lib/unictype/categ_Pd.h: Likewise.
28824 * lib/unictype/categ_Pe.h: Likewise.
28825 * lib/unictype/categ_Pf.h: Likewise.
28826 * lib/unictype/categ_Pi.h: Likewise.
28827 * lib/unictype/categ_Po.h: Likewise.
28828 * lib/unictype/categ_Ps.h: Likewise.
28829 * lib/unictype/categ_S.h: Likewise.
28830 * lib/unictype/categ_Sc.h: Likewise.
28831 * lib/unictype/categ_Sk.h: Likewise.
28832 * lib/unictype/categ_Sm.h: Likewise.
28833 * lib/unictype/categ_So.h: Likewise.
28834 * lib/unictype/categ_Z.h: Likewise.
28835 * lib/unictype/categ_Zl.h: Likewise.
28836 * lib/unictype/categ_Zp.h: Likewise.
28837 * lib/unictype/categ_Zs.h: Likewise.
28838 * lib/unictype/categ_of.h: Likewise.
28839 * lib/unictype/combining.h: Likewise.
28840 * lib/unictype/ctype_alnum.h: Likewise.
28841 * lib/unictype/ctype_alpha.h: Likewise.
28842 * lib/unictype/ctype_blank.h: Likewise.
28843 * lib/unictype/ctype_cntrl.h: Likewise.
28844 * lib/unictype/ctype_digit.h: Likewise.
28845 * lib/unictype/ctype_graph.h: Likewise.
28846 * lib/unictype/ctype_lower.h: Likewise.
28847 * lib/unictype/ctype_print.h: Likewise.
28848 * lib/unictype/ctype_punct.h: Likewise.
28849 * lib/unictype/ctype_space.h: Likewise.
28850 * lib/unictype/ctype_upper.h: Likewise.
28851 * lib/unictype/ctype_xdigit.h: Likewise.
28852 * lib/unictype/decdigit.h: Likewise.
28853 * lib/unictype/digit.h: Likewise.
28854 * lib/unictype/mirror.h: Likewise.
28855 * lib/unictype/numeric.h: Likewise.
28856 * lib/unictype/pr_alphabetic.h: Likewise.
28857 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28858 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28859 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28860 * lib/unictype/pr_bidi_block_separator.h: Likewise.
28861 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28862 * lib/unictype/pr_bidi_common_separator.h: Likewise.
28863 * lib/unictype/pr_bidi_control.h: Likewise.
28864 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28865 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28866 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28867 * lib/unictype/pr_bidi_european_digit.h: Likewise.
28868 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28869 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28870 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28871 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28872 * lib/unictype/pr_bidi_pdf.h: Likewise.
28873 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28874 * lib/unictype/pr_bidi_whitespace.h: Likewise.
28875 * lib/unictype/pr_combining.h: Likewise.
28876 * lib/unictype/pr_composite.h: Likewise.
28877 * lib/unictype/pr_currency_symbol.h: Likewise.
28878 * lib/unictype/pr_dash.h: Likewise.
28879 * lib/unictype/pr_decimal_digit.h: Likewise.
28880 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28881 * lib/unictype/pr_deprecated.h: Likewise.
28882 * lib/unictype/pr_diacritic.h: Likewise.
28883 * lib/unictype/pr_extender.h: Likewise.
28884 * lib/unictype/pr_format_control.h: Likewise.
28885 * lib/unictype/pr_grapheme_base.h: Likewise.
28886 * lib/unictype/pr_grapheme_extend.h: Likewise.
28887 * lib/unictype/pr_grapheme_link.h: Likewise.
28888 * lib/unictype/pr_hex_digit.h: Likewise.
28889 * lib/unictype/pr_hyphen.h: Likewise.
28890 * lib/unictype/pr_id_continue.h: Likewise.
28891 * lib/unictype/pr_id_start.h: Likewise.
28892 * lib/unictype/pr_ideographic.h: Likewise.
28893 * lib/unictype/pr_ids_binary_operator.h: Likewise.
28894 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28895 * lib/unictype/pr_ignorable_control.h: Likewise.
28896 * lib/unictype/pr_iso_control.h: Likewise.
28897 * lib/unictype/pr_join_control.h: Likewise.
28898 * lib/unictype/pr_left_of_pair.h: Likewise.
28899 * lib/unictype/pr_line_separator.h: Likewise.
28900 * lib/unictype/pr_logical_order_exception.h: Likewise.
28901 * lib/unictype/pr_lowercase.h: Likewise.
28902 * lib/unictype/pr_math.h: Likewise.
28903 * lib/unictype/pr_non_break.h: Likewise.
28904 * lib/unictype/pr_not_a_character.h: Likewise.
28905 * lib/unictype/pr_numeric.h: Likewise.
28906 * lib/unictype/pr_other_alphabetic.h: Likewise.
28907 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28908 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28909 * lib/unictype/pr_other_id_continue.h: Likewise.
28910 * lib/unictype/pr_other_id_start.h: Likewise.
28911 * lib/unictype/pr_other_lowercase.h: Likewise.
28912 * lib/unictype/pr_other_math.h: Likewise.
28913 * lib/unictype/pr_other_uppercase.h: Likewise.
28914 * lib/unictype/pr_paired_punctuation.h: Likewise.
28915 * lib/unictype/pr_paragraph_separator.h: Likewise.
28916 * lib/unictype/pr_pattern_syntax.h: Likewise.
28917 * lib/unictype/pr_pattern_white_space.h: Likewise.
28918 * lib/unictype/pr_private_use.h: Likewise.
28919 * lib/unictype/pr_punctuation.h: Likewise.
28920 * lib/unictype/pr_quotation_mark.h: Likewise.
28921 * lib/unictype/pr_radical.h: Likewise.
28922 * lib/unictype/pr_sentence_terminal.h: Likewise.
28923 * lib/unictype/pr_soft_dotted.h: Likewise.
28924 * lib/unictype/pr_space.h: Likewise.
28925 * lib/unictype/pr_terminal_punctuation.h: Likewise.
28926 * lib/unictype/pr_titlecase.h: Likewise.
28927 * lib/unictype/pr_unassigned_code_value.h: Likewise.
28928 * lib/unictype/pr_unified_ideograph.h: Likewise.
28929 * lib/unictype/pr_uppercase.h: Likewise.
28930 * lib/unictype/pr_variation_selector.h: Likewise.
28931 * lib/unictype/pr_white_space.h: Likewise.
28932 * lib/unictype/pr_xid_continue.h: Likewise.
28933 * lib/unictype/pr_xid_start.h: Likewise.
28934 * lib/unictype/pr_zero_width.h: Likewise.
28935 * lib/unictype/scripts.h: Likewise.
28936 * lib/unictype/scripts_byname.gperf: Likewise.
28937 * lib/unictype/sy_c_ident.h: Likewise.
28938 * lib/unictype/sy_c_whitespace.h: Likewise.
28939 * lib/unictype/sy_java_ident.h: Likewise.
28940 * lib/unictype/sy_java_whitespace.h: Likewise.
28942 * lib/unictype/Makefile: New file.
28943 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28945 * lib/unictype/3level.h: New file, copied from glibc.
28946 * lib/unictype/3levelbit.h: New file.
28948 2007-11-11 Bruno Haible <bruno@clisp.org>
28950 * modules/gperf: New file.
28951 * modules/iconv_open (Depends-on): Add it.
28952 (Makefile.am): Remove the GPERF definition.
28954 2007-11-11 Bruno Haible <bruno@clisp.org>
28956 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28957 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28959 2007-11-11 Bruno Haible <bruno@clisp.org>
28961 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28962 (usage): Remove function.
28964 2007-11-11 Bruno Haible <bruno@clisp.org>
28966 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28967 gl_FUNC_CEILF_LIBS.
28968 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28970 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28971 gl_FUNC_CEILL_LIBS.
28972 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28973 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28974 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28976 2007-11-11 Bruno Haible <bruno@clisp.org>
28978 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28979 roundf were declared but do not exist on functions.
28980 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28981 roundl were declared but do not exist on functions.
28982 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28983 HAVE_FLOORL_AND_CEILL, respectively.
28984 Needed for Sun C on Solaris 10.
28986 2007-11-11 Bruno Haible <bruno@clisp.org>
28988 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28989 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28990 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28991 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28992 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28993 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28994 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28996 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28997 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28998 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28999 of HAVE_DECL_ROUND*.
29000 * modules/math (Makefile.am): Update.
29002 2007-11-10 Bruno Haible <bruno@clisp.org>
29004 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29005 ptrdiff_t as m4/intl.m4.
29007 2007-11-10 Jim Meyering <meyering@redhat.com>
29009 Avoid link failure for the argmatch test.
29010 * tests/test-argmatch.c (usage): Define function to avoid a link
29011 failure: argmatch_die requires a usage function.
29013 2007-11-09 Bruno Haible <bruno@clisp.org>
29015 * doc/functions/snprintf.texi: Mention BeOS deficiency.
29016 * doc/functions/vsnprintf.texi: Likewise.
29017 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29018 with a size argument < 2.
29020 2007-11-09 Bruno Haible <bruno@clisp.org>
29022 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29023 buffer. Fixes an inefficiency introduced on 2007-11-03.
29025 2007-11-09 Bruno Haible <bruno@clisp.org>
29027 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29028 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29030 2007-11-08 Jim Meyering <meyering@redhat.com>
29032 Change cache variable name prefix "jm_" to "gl_" everywhere.
29033 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29034 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29035 * m4/uptime.m4: s/gl_/jm_/
29037 2007-11-07 Bruno Haible <bruno@clisp.org>
29039 Update to GNU gettext 0.17.
29040 * m4/intl.m4: Update to GNU gettext 0.17.
29041 * m4/po.m4: Likewise.
29042 * modules/gettext (Files): Remove m4/ulonglong.m4.
29043 (configure.ac): Require gettext infrastructure from version 0.17.
29045 2007-11-06 Bruno Haible <bruno@clisp.org>
29047 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29048 symbolic values are not defined in a public header.
29049 * lib/freadable.c (freadable) [QNX]: Likewise.
29050 * lib/freadahead.c (freadahead) [QNX]: Likewise.
29051 * lib/freading.c (freading) [QNX]: Likewise.
29052 * lib/fseterr.c (fseterr) [QNX]: Likewise.
29053 * lib/fwritable.c (fwritable) [QNX]: Likewise.
29054 * lib/fwriting.c (fwriting) [QNX]: Likewise.
29055 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29056 Reported by Alain Magloire.
29058 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29060 2007-11-05 Bruno Haible <bruno@clisp.org>
29062 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29063 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29064 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29065 Reported by Eric Blake.
29067 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29068 Bruno Haible <bruno@clisp.org>
29070 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29071 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29072 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29073 (malloc): Undefine also before including <stdlib.h>.
29074 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29075 Needed on OSF/1 4.0.
29077 2007-11-05 Jim Meyering <meyering@redhat.com>
29079 git-version-gen: sync from coreutils.
29080 * build-aux/git-version-gen: Add comments.
29081 Change the first '-' to '.' in the snapshot version string,
29082 e.g., 6.9-377-08144 -> 6.9.377-08144
29083 Remove first parameter.
29084 Don't declare a version "-dirty" merely because a time
29087 2007-11-04 Bruno Haible <bruno@clisp.org>
29089 * lib/lock.h: Protect all macro definitions containing an 'if'
29090 statement through a "do { ... } while (0)".
29091 * lib/tls.h: Likewise.
29093 2007-11-04 Bruno Haible <bruno@clisp.org>
29095 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29097 2007-11-04 Bruno Haible <bruno@clisp.org>
29099 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29100 * modules/fprintf-posix (Depends-on): Add nocrash.
29101 * modules/snprintf-posix (Depends-on): Likewise.
29102 * modules/sprintf-posix (Depends-on): Likewise.
29103 * modules/vasnprintf-posix (Depends-on): Likewise.
29104 * modules/vasprintf-posix (Depends-on): Likewise.
29105 * modules/vfprintf-posix (Depends-on): Likewise.
29106 * modules/vsnprintf-posix (Depends-on): Likewise.
29107 * modules/vsprintf-posix (Depends-on): Likewise.
29108 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29109 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29110 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29111 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29112 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29113 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29114 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29116 2007-11-04 Bruno Haible <bruno@clisp.org>
29118 * modules/nocrash: New file.
29119 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29120 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29122 2007-11-04 Bruno Haible <bruno@clisp.org>
29124 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29125 precision handling.
29126 * tests/test-vasprintf-posix.c (test_function): Likewise.
29127 * tests/test-snprintf-posix.h (test_function): Likewise.
29128 * tests/test-sprintf-posix.h (test_function): Likewise.
29130 Fix *printf behaviour for large precisions on mingw and BeOS.
29131 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29132 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29133 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29134 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29135 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29136 gl_PRINTF_PRECISION and test its result. Invoke
29137 gl_PREREQ_VASNPRINTF_PRECISION.
29138 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29139 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29140 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29141 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29142 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29143 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29144 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29145 * doc/functions/fprintf.texi: Update.
29146 * doc/functions/printf.texi: Update.
29147 * doc/functions/snprintf.texi: Update.
29148 * doc/functions/sprintf.texi: Update.
29149 * doc/functions/vfprintf.texi: Update.
29150 * doc/functions/vprintf.texi: Update.
29151 * doc/functions/vsnprintf.texi: Update.
29152 * doc/functions/vsprintf.texi: Update.
29154 2007-11-04 Bruno Haible <bruno@clisp.org>
29156 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29158 2007-11-04 Bruno Haible <bruno@clisp.org>
29160 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29161 Reported by Sylvain Beucler <beuc@gnu.org>.
29163 2007-11-03 Bruno Haible <bruno@clisp.org>
29165 * tests/test-fprintf-posix2.sh: New file.
29166 * tests/test-fprintf-posix2.c: New file.
29167 * modules/fprintf-posix-tests (Files): Add them.
29168 (TESTS): Add test-fprintf-posix2.sh.
29169 (configure.ac): Check for getrlimit and setrlimit.
29170 (check_PROGRAMS): Add test-fprintf-posix2.
29172 * tests/test-printf-posix2.sh: New file.
29173 * tests/test-printf-posix2.c: New file.
29174 * modules/printf-posix-tests (Files): Add them.
29175 (TESTS): Add test-printf-posix2.sh.
29176 (configure.ac): Check for getrlimit and setrlimit.
29177 (check_PROGRAMS): Add test-printf-posix2.
29179 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29180 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29181 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29182 (decode_double): New function, copied from decode_long_double.
29183 (scale10_round_decimal_decoded): New function, extracted from
29184 scale10_round_decimal_long_double.
29185 (scale10_round_decimal_long_double): Use it.
29186 (scale10_round_decimal_double): New function.
29187 (floorlog10): New function.
29188 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29189 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29190 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29191 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29192 gl_PRINTF_ENOMEM and test its result. Invoke
29193 gl_PREREQ_VASNPRINTF_ENOMEM.
29194 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29195 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29196 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29197 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29198 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29199 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29200 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29201 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29202 * modules/snprintf-posix (Depends-on): Likewise.
29203 * modules/sprintf-posix (Depends-on): Likewise.
29204 * modules/vasnprintf-posix (Depends-on): Likewise.
29205 * modules/vasprintf-posix (Depends-on): Likewise.
29206 * modules/vfprintf-posix (Depends-on): Likewise.
29207 * modules/vsnprintf-posix (Depends-on): Likewise.
29208 * modules/vsprintf-posix (Depends-on): Likewise.
29209 * doc/functions/fprintf.texi: Update.
29210 * doc/functions/printf.texi: Update.
29211 * doc/functions/snprintf.texi: Update.
29212 * doc/functions/sprintf.texi: Update.
29213 * doc/functions/vfprintf.texi: Update.
29214 * doc/functions/vprintf.texi: Update.
29215 * doc/functions/vsnprintf.texi: Update.
29216 * doc/functions/vsprintf.texi: Update.
29218 2007-11-03 Bruno Haible <bruno@clisp.org>
29220 * modules/frexp-nolibm-tests: New file.
29222 * modules/frexp-nolibm: New file.
29223 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29225 2007-11-03 Bruno Haible <bruno@clisp.org>
29227 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29228 value is C99 compliant.
29229 Needed for OSF/1 5.1.
29231 2007-11-03 Bruno Haible <bruno@clisp.org>
29233 Fix out-of-memory handling of vasnprintf.
29234 * lib/printf-parse.c: Include <errno.h>.
29235 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29236 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29239 2007-11-02 Eric Blake <ebb9@byu.net>
29241 Fix tests on cygwin.
29242 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29244 2007-11-01 Bruno Haible <bruno@clisp.org>
29246 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29248 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29249 needed for POSIX compatibility.
29251 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
29253 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29254 for compatibility with GNU.
29256 2007-11-01 Bruno Haible <bruno@clisp.org>
29258 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29259 (putenv): Renamed from rpl_putenv. Change argument type from
29260 'const char *' to 'char *'.
29261 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29262 of defining putenv in config.h, just set REPLACE_PUTENV.
29263 * modules/putenv (Depends-on): Add stdlib.
29264 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29265 (Include): Use <stdlib.h>.
29266 * lib/stdlib.in.h (putenv): New declaration.
29267 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29269 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29271 Needed for MacOS X 10.5.0.
29272 Reported by Peter O'Gorman <peter@pogma.com>.
29274 2007-11-01 Jim Meyering <meyering@redhat.com>
29276 Treat an empty date string exactly like "0".
29277 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29278 if the remaining date string (to be parsed) is empty, use "0".
29279 Reported by Mischa Molhoek and discussed in this thread:
29280 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29282 2007-10-31 Bruno Haible <bruno@clisp.org>
29284 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29285 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29286 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29287 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29288 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29289 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29291 2007-10-31 Bruno Haible <bruno@clisp.org>
29293 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29294 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29295 (AC_TYPE_LONG_LONG_INT): Use it.
29296 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29298 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29300 * modules/stdint (Files): Remove m4/ulonglong.m4.
29301 * modules/strtoull (Files): Use m4/longlong.m4 instead of
29303 * modules/strtoumax (Files): Likewise.
29305 2007-10-30 Bruno Haible <bruno@clisp.org>
29307 * modules/xvasprintf-posix: New file.
29308 Suggested by Eric Blake.
29310 2007-10-30 Bruno Haible <bruno@clisp.org>
29312 * modules/xprintf-posix-tests: New file.
29313 * tests/test-xprintf-posix.sh: New file.
29314 * tests/test-xprintf-posix.c: New file.
29315 * tests/test-xfprintf-posix.c: New file.
29317 * modules/xprintf-posix: New file.
29319 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29321 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29322 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29323 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29325 2007-10-29 Bruno Haible <bruno@clisp.org>
29327 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29328 contain the special marker '_cv_'.
29329 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29330 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29331 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29332 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29333 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29334 Reported by Ralf Wildenhues.
29336 2007-10-29 Bruno Haible <bruno@clisp.org>
29338 * gnulib-tool (func_import): When --lgpl is not specified, set
29339 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29341 Reported by Simon Josefsson.
29343 2007-10-28 Bruno Haible <bruno@clisp.org>
29345 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29346 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29347 HAVE_DECL_ISFINITE.
29348 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29349 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29350 HAVE_DECL_ISFINITE.
29352 2007-10-28 Bruno Haible <bruno@clisp.org>
29354 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29355 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29357 2007-10-28 Bruno Haible <bruno@clisp.org>
29359 Fix link errors with Sun C 5.0 on Solaris 10.
29360 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29361 function is declared but not present in the compiler's libm.
29362 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29363 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29364 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29365 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29366 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29367 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29368 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29369 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29370 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29371 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29372 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29375 2007-10-28 Bruno Haible <bruno@clisp.org>
29377 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29378 gl_FUNC_FLOORL. Cache the result.
29379 (gl_FUNC_FLOORL): Use it.
29380 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29381 gl_FUNC_CEILL. Cache the result.
29382 (gl_FUNC_CEILL): Use it.
29384 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29385 gl_FUNC_FLOOR. Cache the result.
29386 (gl_FUNC_FLOOR): Use it.
29387 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29388 gl_FUNC_CEIL. Cache the result.
29389 (gl_FUNC_CEIL): Use it.
29391 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29392 gl_FUNC_FLOORF. Cache the result.
29393 (gl_FUNC_FLOORF): Use it.
29394 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29395 gl_FUNC_CEILF. Cache the result.
29396 (gl_FUNC_CEILF): Use it.
29398 2007-10-28 Bruno Haible <bruno@clisp.org>
29400 * gnulib-tool: Allow specifying the LGPL version number through
29401 --lgpl=2 or --lgpl=3.
29402 (func_usage): Document --lgpl with argument.
29403 Handle --lgpl=... arguments.
29404 (func_import): Recognize also gl_LGPL calls with an argument. When
29405 --lgpl=2 is used and the module's license is just LGPL, report an
29406 error. Set sed_transform_lib_file according to the lgpl variable. In
29407 the generated files, use --lgpl or gl_LGPL invocations with argument,
29409 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29411 * doc/gnulib-tool.texi (Modified imports): Update explanation of
29414 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29415 Bruno Haible <bruno@clisp.org>
29417 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29418 (u16_uctomb_aux): Likewise.
29419 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29421 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29423 2007-10-28 Bruno Haible <bruno@clisp.org>
29425 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29426 Invoke AM_GETTEXT_OPTION if it exists.
29427 * modules/vasprintf: Likewise.
29428 * modules/verror: Likewise.
29429 * modules/xprintf: Likewise.
29430 * modules/xvasprintf: Likewise.
29432 2007-10-27 Ben Pfaff <blp@gnu.org>
29434 * lib/math.in.h: Define isfinite macro and prototypes for
29435 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29437 * m4/math_h.m4: New substitutions for isfinite module.
29438 * lib/isfinite.c: New file.
29439 * m4/isfinite.m4: New file.
29440 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29441 * modules/isfinite: New file.
29442 * modules/isfinite-tests: New file.
29443 * tests/tests-isfinite.c: New file.
29444 * doc/functions/isfinite.texi: Mention isfinite module.
29445 * MODULES.html.sh: Mention new module.
29447 2007-10-27 Ben Pfaff <blp@gnu.org>
29449 Ralf Wildenhues reported that Tru64 4.0D declares the round
29450 functions but does not have definitions.
29451 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29452 cannot be found in any library, set the output variable to
29453 "missing" instead of "".
29454 * m4/round.m4: Also use our substitute if we cannot find round in
29455 any library, even if it is declared.
29456 * m4/roundf.m4: Likewise for roundf.
29457 * m4/roundl.m4: Likewise for roundl.
29458 * lib/math.in.h: Undefine roundf, round, roundl before defining
29459 their replacements, to allow for hypothetical systems where these
29460 may be defined as macros but not available in libraries.
29462 2007-10-27 Bruno Haible <bruno@clisp.org>
29464 * doc/gnulib.texi: Invoke @firstparagraphindent.
29465 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29467 (Source changes): New section.
29469 2007-10-26 Bruno Haible <bruno@clisp.org>
29471 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29472 borrowed from autoconf.
29474 2007-10-26 Bruno Haible <bruno@clisp.org>
29476 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29477 strerror returned the empty string. Needed on HP-UX 11.00.
29479 2007-10-24 Micah Cowan <micah@cowan.name>
29481 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
29482 * build-aux/bootstrap: Remove support for now-unnecessary option,
29483 --cvs-user, and envvars CVS_USER, CVS_RSH.
29485 2007-10-24 Jim Meyering <meyering@redhat.com>
29487 Avoid diagnostics from sha1sum when there is no cached checksum.
29488 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29489 if the po.s1 file hasn't been created yet.
29491 * build-aux/bootstrap: Sync from coreutils:
29492 2007-10-24 Jim Meyering <meyering@redhat.com>
29493 Get gnulib from the git repository, not from an obsolete cvs one.
29494 * build-aux/bootstrap: Suggestion from Micah Cowan.
29495 2007-10-04 Jim Meyering <jim@meyering.net>
29496 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29497 (update_po_files): Work also when there are no .po files in po/.
29499 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
29501 * README: Append ".git" to git and cg examples.
29502 Problem reported by Benoit Sigoure.
29504 2007-10-23 Micah Cowan <micah@cowan.name>
29506 * users.txt: Add wget.
29508 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29510 Fix linking of some unistdio tests on FreeBSD.
29511 * modules/unistdio/u16-vsnprintf-tests
29512 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29513 * modules/unistdio/u16-vsprintf-tests
29514 (test_u16_vsnprintf1_LDADD): Likewise.
29515 * modules/unistdio/u32-vsnprintf-tests
29516 (test_u32_vsnprintf1_LDADD): Likewise.
29517 * modules/unistdio/u32-vsprintf-tests
29518 (test_u32_vsprintf1_LDADD): Likewise.
29519 * modules/unistdio/u8-vsnprintf-tests
29520 (test_u8_vsnprintf1_LDADD): Likewise.
29521 * modules/unistdio/u8-vsprintf-tests
29522 (test_u8_vsprintf1_LDADD): Likewise.
29523 * modules/unistdio/ulc-vsnprintf-tests
29524 (test_ulc_vsnprintf1_LDADD): Likewise.
29525 * modules/unistdio/ulc-vsprintf-tests
29526 (test_ulc_vsprintf1_LDADD): Likewise.
29528 Fix linking of some uniconv tests on FreeBSD.
29529 * modules/uniconv/u16-conv-from-enc-tests
29530 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29531 * modules/uniconv/u16-conv-to-enc-tests
29532 (test_u16_conv_to_enc_LDADD): Likewise.
29533 * modules/uniconv/u16-strconv-from-enc-tests
29534 (test_u16_strconv_from_enc_LDADD): Likewise.
29535 * modules/uniconv/u16-strconv-to-enc-tests
29536 (test_u16_strconv_to_enc_LDADD): Likewise.
29537 * modules/uniconv/u32-conv-from-enc-tests
29538 (test_u32_conv_from_enc_LDADD): Likewise.
29539 * modules/uniconv/u32-conv-to-enc-tests
29540 (test_u32_conv_to_enc_LDADD): Likewise.
29541 * modules/uniconv/u32-strconv-from-enc-tests
29542 (test_u32_strconv_from_enc_LDADD): Likewise.
29543 * modules/uniconv/u32-strconv-to-enc-tests
29544 (test_u32_strconv_to_enc_LDADD): Likewise.
29545 * modules/uniconv/u8-conv-from-enc-tests
29546 (test_u8_conv_from_enc_LDADD): Likewise.
29547 * modules/uniconv/u8-conv-to-enc-tests
29548 (test_u8_conv_to_enc_LDADD): Likewise.
29549 * modules/uniconv/u8-strconv-from-enc-tests
29550 (test_u8_strconv_from_enc_LDADD): Likewise.
29551 * modules/uniconv/u8-strconv-to-enc-tests
29552 (test_u8_strconv_to_enc_LDADD): Likewise.
29554 2007-10-22 Bruno Haible <bruno@clisp.org>
29556 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29559 2007-10-22 Eric Blake <ebb9@byu.net>
29561 Tweak x*printf documentation.
29562 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29563 variable name and comments.
29564 Suggested by Bruno Haible.
29566 2007-10-22 Bruno Haible <bruno@clisp.org>
29568 * lib/acl.c (copy_acl): Fix file name in comment.
29570 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29572 Fix Tru64 problem with stdbool.h.
29573 * lib/stdbool.in.h (false, true):
29574 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29575 Don't declare as an enum in this situation; it runs afoul of Tru64.
29576 Problem reported by Steven M. Schweda in
29577 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29579 2007-10-22 Eric Blake <ebb9@byu.net>
29581 Also wrap vf?printf.
29582 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29583 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29584 (xvprintf, xvfprintf): New functions.
29586 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29588 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29589 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29591 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29592 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29594 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29596 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
29599 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29602 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29603 Undef `sys' after including sys/table.h, for Tru64 4.0D.
29605 * tests/test-i-ring.c: Work for C89.
29607 2007-10-22 Bruno Haible <bruno@clisp.org>
29609 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29610 -1u, in preprocessor expression, so that we don't test for the bug
29611 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
29612 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29614 2007-10-22 Eric Blake <ebb9@byu.net>
29616 * tests/test-yesno.sh: Silence stderr during test.
29618 2007-10-22 Simon Josefsson <simon@josefsson.org>
29620 * modules/crypto/gc-camellia: New file.
29622 * m4/gc-camellia.m4: New file.
29624 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29626 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29628 2007-10-22 Simon Josefsson <simon@josefsson.org>
29630 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29631 --help to stdout. Reported by sms@antinode.org (Steven
29634 2007-10-22 Simon Josefsson <simon@josefsson.org>
29636 * users.txt: Fix link to libksba.
29638 2007-10-21 Ben Pfaff <blp@gnu.org>
29640 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29641 round.c roundf implementation that depends on floorf and ceilf to
29642 be tested unconditionally.
29644 2007-10-21 Ben Pfaff <blp@gnu.org>
29646 * m4/check-libm-func.m4: Removed.
29647 * m4/check-math-lib.m4: New file.
29648 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29649 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29650 definition and lack of AC_LIBOBJ([roundf]).
29651 * m4/roundl.m4: Ditto, and similarly for roundl.
29652 * modules/round: Reference new m4 file.
29653 * modules/roundf: Ditto.
29654 * modules/roundl: Ditto.
29655 * tests/test-round2.c (main): Use ROUND instead of round.
29656 Bug report from Bruno Haible.
29658 2007-10-21 Bruno Haible <bruno@clisp.org>
29660 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29663 2007-10-21 Bruno Haible <bruno@clisp.org>
29665 * tests/test-wcwidth.c (main): Allow negative result for some control
29668 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29669 Needed on OSF/1 5.1.
29671 2007-10-21 Bruno Haible <bruno@clisp.org>
29673 * tests/test-floorf1.c: Include isnanf.h.
29674 (main): Use isnanf() instead of isnan().
29675 * tests/test-ceilf1.c: Include isnanf.h.
29676 (main): Use isnanf() instead of isnan().
29677 * tests/test-truncf1.c: Include isnanf.h.
29678 (main): Use isnanf() instead of isnan().
29679 * tests/test-roundf1.c: Include isnanf.h.
29680 (main): Use isnanf() instead of isnan().
29682 2007-10-21 Eric Blake <ebb9@byu.net>
29684 * users.txt: Update URL for m4.
29686 2007-10-21 Bruno Haible <bruno@clisp.org>
29688 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29690 2007-10-21 Bruno Haible <bruno@clisp.org>
29692 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29693 Git's management files if the CVS files are not present.
29695 2007-10-20 Bruno Haible <bruno@clisp.org>
29697 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29700 2007-10-20 Ben Pfaff <blp@gnu.org>
29702 * lib/math.in.h: Declare round, roundf, roundl if we are providing
29704 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29705 * lib/round.c: New file.
29706 * lib/roundf.c: New file.
29707 * lib/roundl.c: New file.
29708 * m4/round.m4: New file.
29709 * m4/roundf.m4: New file.
29710 * m4/roundl.m4: New file.
29711 * m4/check-libm-func-m4: New file.
29712 * modules/math: Replace round, roundf, roundl related @VARS@ in
29714 * modules/round: New file.
29715 * modules/round-tests: New file.
29716 * modules/roundf: New file.
29717 * modules/roundf-tests: New file.
29718 * modules/roundl: New file.
29719 * modules/roundl-tests: New file.
29720 * tests/test-round1.c: New file.
29721 * tests/test-round2.c: New file.
29722 * tests/test-roundf1.c: New file.
29723 * tests/test-roundf2.c: New file.
29724 * tests/test-roundl.c: New file.
29725 * doc/functions/round.texi: Mention round module.
29726 * doc/functions/roundf.texi: Mention roundf module.
29727 * doc/functions/roundl.texi: Mention roundl module.
29728 * MODULES.html.sh: Mention new modules.
29729 Thanks to Bruno Haible for suggestions.
29731 2007-10-20 Jim Meyering <meyering@redhat.com>
29733 * lib/xprintf.c: Include <config.h> unconditionally.
29735 Change xprintf's license to GPL.
29736 * modules/xprintf (License): s/LGPL/GPL/, since this module
29737 depends on modules (exit and exitfail) which are GPL.
29738 Suggestion from Bruno Haible.
29741 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29742 Use a clearer diagnostic.
29743 Patch from Bruno Haible.
29745 2007-10-20 Bruno Haible <bruno@clisp.org>
29747 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29748 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29749 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29751 2007-10-20 Bruno Haible <bruno@clisp.org>
29753 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29754 precision in the comparison result > x - 1 or similar.
29755 * tests/test-ceilf2.c (correct_result_p): Likewise.
29756 * tests/test-truncf2.c (correct_result_p): Likewise.
29757 * tests/test-trunc2.c (correct_result_p): Likewise.
29758 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29760 2007-10-20 Bruno Haible <bruno@clisp.org>
29762 * modules/ceil: New file.
29763 * m4/ceil.m4: New file.
29764 * doc/functions/ceil.texi: Mention the 'ceil' module.
29766 2007-10-20 Bruno Haible <bruno@clisp.org>
29768 * modules/floor: New file.
29769 * m4/floor.m4: New file.
29770 * doc/functions/floor.texi: Mention the 'floor' module.
29772 2007-10-20 Bruno Haible <bruno@clisp.org>
29774 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29776 * modules/floorf-tests (Depends-on): Likewise.
29777 * modules/truncf-tests (Depends-on): Likewise.
29778 * modules/trunc-tests (Depends-on): Likewise.
29779 Reported by Ben Pfaff.
29781 2007-10-19 Jim Meyering <meyering@redhat.com>
29783 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29784 Don't bother testing specific errno values. Just test ferror.
29786 New module: xprintf
29787 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29789 2007-10-19 Bruno Haible <bruno@clisp.org>
29791 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29793 * modules/javaexec (Makefile.am): Likewise.
29794 * modules/relocatable-prog (Makefile.am): Likewise.
29795 Suggested by Jim Meyering.
29797 2007-10-18 Bruno Haible <bruno@clisp.org>
29799 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29800 Reported by Jim Meyering.
29802 2007-10-18 Eric Blake <ebb9@byu.net>
29804 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29806 2007-10-18 Bruno Haible <bruno@clisp.org>
29808 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29809 the format string into writable memory. Needed in Fortify conditions.
29811 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
29812 Bruno Haible <bruno@clisp.org>
29814 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29815 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29816 * modules/trim (Depends-on): Add mbchar.
29817 (configure.ac): Add gl_FUNC_MBRTOWC.
29818 (Makefile.am): Augment lib_SOURCES.
29820 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
29822 Modify glob.c to use fstatat and dirfd, to simplify it.
29823 Suggested by Eric Blake.
29824 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29825 Don't include <stdbool.h>; not used.
29826 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29827 (link_exists_p): Simplify implementation, since we can now assume
29829 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
29831 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29833 * gnulib-tool (func_get_dependencies): Fix sed script to
29836 2007-10-17 Bruno Haible <bruno@clisp.org>
29838 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29839 allow locale names without encoding suffix.
29840 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29841 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29843 2007-10-16 Bruno Haible <bruno@clisp.org>
29845 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29846 * lib/getgroups.c (getgroups): Likewise.
29847 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29849 2007-10-16 Bruno Haible <bruno@clisp.org>
29851 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29852 * modules/malloc-posix (License): Likewise.
29853 * modules/realloc-posix (License): Likewise.
29854 * modules/calloc-posix (License): Likewise.
29855 * modules/intprops (License): Change from GPL to LGPL, with
29856 Paul Eggert's approval.
29858 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29860 Merge glibc changes into lib/glob.c.
29862 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29863 2007-10-15 04:59:03 UTC. Here are the changes:
29865 2007-10-14 Ulrich Drepper <drepper@redhat.com>
29867 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29869 * lib/glob.c: Add some branch prediction throughout.
29871 2007-10-07 Ulrich Drepper <drepper@redhat.com>
29874 * lib/glob.c (glob): Recognize patterns starting \/.
29876 2007-02-14 Jakub Jelinek <jakub@redhat.com>
29879 * lib/glob.c (attribute_hidden): Define if not defined.
29880 (glob): Unescape dirname, filename or username when needed and not
29881 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
29882 is NULL. Handle unescaped [ in pattern without closing ].
29883 Don't pass GLOB_CHECK down to recursive glob for directories.
29884 (__glob_pattern_type): New function.
29885 (__glob_pattern_p): Implement using __glob_pattern_type.
29886 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29887 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29888 Remove unreachable code.
29890 2006-09-30 Ulrich Drepper <drepper@redhat.com>
29892 * lib/glob.c (glob_in_dir): Add some comments and asserts to
29893 explain why there are no leaks.
29895 2006-09-25 Jakub Jelinek <jakub@redhat.com>
29898 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29899 time, rather allocate increasingly bigger arrays of pointers, if
29900 possible with alloca, if too large with malloc.
29902 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29904 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29905 Problem reported by H.Merijn Brand in
29906 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29907 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29908 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29910 2007-10-15 Bruno Haible <bruno@clisp.org>
29912 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29913 with explicit rpl_ prefix.
29914 * lib/fopen.c (fopen): Likewise.
29915 * lib/freopen.c (freopen): Likewise.
29916 * lib/iconv.c (iconv): Likewise.
29917 * lib/iconv_close.c (iconv_close): Likewise.
29919 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29921 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29923 2007-10-15 Bruno Haible <bruno@clisp.org>
29925 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29926 <stddef.h> instead of <stdlib.h> since we only need NULL.
29927 Reported by Ben Pfaff <blp@cs.stanford.edu>.
29929 2007-10-15 Bruno Haible <bruno@clisp.org>
29931 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29932 Replace paragraph talking about LIBOBJS.
29933 Reported by Colin Watson <cjwatson@debian.org>.
29935 2007-10-15 Bruno Haible <bruno@clisp.org>
29937 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29938 <stdlib.h> before using NULL.
29940 2007-10-15 Simon Josefsson <simon@josefsson.org>
29942 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29943 Reported by Albert Chin <china@thewrittenword.com>.
29945 2007-10-14 Bruno Haible <bruno@clisp.org>
29947 * modules/iconv_open-utf-tests: New file.
29948 * tests/test-iconv-utf.c: New file.
29950 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29951 * modules/iconv_open-utf: New file.
29952 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29953 (iconv, iconv_close): New declarations.
29954 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29956 (iconv_open): Add special handling of conversion between UTF-8 and
29957 UTF-{16,32}{BE,LE}.
29958 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29959 * lib/iconv_close.c: New file.
29960 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29961 gl_FUNC_ICONV_OPEN.
29962 (gl_FUNC_ICONV_OPEN): Use it.
29963 (gl_FUNC_ICONV_OPEN_UTF): New macro.
29964 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29965 and REPLACE_ICONV_UTF.
29966 * modules/iconv_open (Depends-on): Add c-strcase.
29967 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29969 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29971 2007-10-13 Albert Chin <china@thewrittenword.com>
29972 Bruno Haible <bruno@clisp.org>
29974 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29975 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29977 2007-10-13 Bruno Haible <bruno@clisp.org>
29979 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29980 defined, use the ISO C99 inline semantics.
29981 * lib/argp.h (ARGP_EI): Likewise.
29983 2007-10-13 Bruno Haible <bruno@clisp.org>
29985 Handle 'inline' change in gcc 4.3.0.
29986 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29987 argp_fmtstream_write, argp_fmtstream_set_lmargin,
29988 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29989 argp_fmtstream_point): Disable 'extern' declaration if the function
29990 definition is going to be provided inline.
29991 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29992 semantics, not the ISO C99 inline semantics.
29993 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29994 'extern' declaration if the function definition is going to be provided
29996 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29997 the GNU C inline semantics, not the ISO C99 inline semantics. With
29998 GCC 4.2, avoid a warning.
30000 2007-10-13 Bruno Haible <bruno@clisp.org>
30002 * lib/freading.h (freading): Enable the use of __freading for
30004 * lib/freading.c (freading): Likewise.
30006 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
30008 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30009 "warning: C99 inline functions are not supported; using GNU89".
30011 2007-10-12 Bruno Haible <bruno@clisp.org>
30013 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30015 * tests/test-ceilf2.c: New file.
30016 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30018 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30019 * modules/ceilf-tests: Update.
30021 2007-10-12 Bruno Haible <bruno@clisp.org>
30023 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30025 * tests/test-floorf2.c: New file.
30026 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30028 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30029 * modules/floorf-tests: Update.
30031 2007-10-12 Bruno Haible <bruno@clisp.org>
30033 * tests/test-trunc2.c: New file.
30034 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30036 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30037 * modules/trunc-tests: Update.
30039 2007-10-12 Bruno Haible <bruno@clisp.org>
30041 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30043 * tests/test-truncf2.c: New file.
30044 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30046 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30047 * modules/truncf-tests: Update.
30049 2007-10-11 Eric Blake <ebb9@byu.net>
30051 Don't claim strerror is broken on Interix.
30052 * doc/functions/strerror.texi (strerror): Known broken systems are
30053 now Solaris 8, and not Interix.
30054 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30055 Interix on cross-compile.
30056 Reported by Martin Koeppe in
30057 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30059 2007-10-11 Bruno Haible <bruno@clisp.org>
30061 * modules/i-ring-tests: New file.
30062 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30065 2007-10-11 Bruno Haible <bruno@clisp.org>
30067 * modules/filenamecat-tests: New file.
30068 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30069 * lib/filenamecat.c: Remove test code.
30071 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
30073 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30075 * lib/strerror.c: Include <string.h> always, to test interface,
30076 and to remove the need for the dummy.
30077 Include intprops.h to compute width instead of doing it ourselves
30078 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30079 (strerror): Define it to return NULL if there's no system strerror.
30080 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30081 Omit !HAVE_STRERROR code. We don't need to worry about supporting
30082 ancient pre-strerror Unix systems well any more. Saying "unknown
30083 system error" is enough.
30084 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30085 simpler strerror.c implementation.
30086 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30087 Simplify the tests to reflect the simpler strerror implementation.
30088 * modules/strerror (Depends-on): Add intprops.
30090 2007-10-09 Eric Blake <ebb9@byu.net>
30092 Silence test-fpending.
30093 * modules/fpending-tests (Files): Add wrapper script.
30094 * tests/test-fpending.sh: New file.
30096 2007-10-09 Bruno Haible <bruno@clisp.org>
30098 * MODULES.html.sh (func_module): Don't create a hyperlink for
30099 function names like 'printf_frexp'.
30100 (Misc): Add crc, memxor.
30101 (Characteristics of floating types): New section.
30102 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30103 isnanf-nolibm, signbit, trunc, truncf, truncl.
30104 (Enhancements for ISO C 99 functions): New subsection Input/output.
30105 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30106 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30107 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30108 (Compatibility checks for POSIX:2001 functions): Add clock-time.
30109 (Enhancements for POSIX:2001 functions): Add chdir-long.
30110 (File system functions): Add areadlink, chdir-safer, read-file.
30111 Remove cycle-check.
30112 (File system as inode set): New section.
30113 (Date and time): Add gethrxtime.
30114 (Multithreading): Add openmp.
30115 (Internationalization functions): Add localename.
30116 (Unicode string functions): Add unistr/u*-mbsnlen.
30117 (Support for maintaining and releasing projects): Add git-version-gen.
30118 (Lone files): Remove directories.
30120 2007-10-08 Ben Pfaff <blp@gnu.org>
30122 * lib/xmalloca.h: Fix typo in comment.
30124 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
30126 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30127 when avoiding problems with integer overflow. Use a portable test
30130 2007-10-08 Simon Josefsson <simon@josefsson.org>
30132 * modules/dummy (License): Change to LGPLv2+.
30133 * modules/float (License): Likewise
30134 * modules/realloc (License): Likewise
30135 * modules/stdlib (License): Likewise
30137 2007-10-07 Bruno Haible <bruno@clisp.org>
30139 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30140 * floor.c (TWO_MANT_DIG): Likewise.
30141 * ceil.c (TWO_MANT_DIG): Likewise.
30142 Reported by Ben Pfaff.
30144 2007-10-07 Bruno Haible <bruno@clisp.org>
30146 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30147 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30148 * lib/frexp.c (FUNC): Likewise.
30149 * lib/printf-frexp.h (printf_frexp): Likewise.
30150 * lib/printf-frexpl.h (printf_frexpl): Likewise.
30151 * lib/printf-frexp.c (FUNC): Likewise.
30152 Suggested by Jim Meyering.
30154 2007-10-07 Jim Meyering <meyering@redhat.com>
30156 Make xnanosleep's integer overflow test more robust.
30157 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30158 so that gcc-4.3.0 doesn't optimize away this test for overflow.
30160 2007-10-07 Bruno Haible <bruno@clisp.org>
30162 * NEWS: Mention the license change.
30164 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30165 abbreviations in the modules files.
30167 Change copyright notice from GPLv2+ to GPLv3+.
30168 * README: Change copyright notice.
30169 * MODULES.html.sh: Likewise.
30170 * build-aux/bootstrap.conf: Likewise.
30171 * build-aux/config.libpath: Likewise.
30172 * build-aux/csharpcomp.sh.in: Likewise.
30173 * build-aux/csharpexec.sh.in: Likewise.
30174 * build-aux/install-reloc: Likewise.
30175 * build-aux/javacomp.sh.in: Likewise.
30176 * build-aux/javaexec.sh.in: Likewise.
30177 * build-aux/ldd.sh.in: Likewise.
30178 * build-aux/reloc-ldflags: Likewise.
30179 * build-aux/relocatable.sh.in: Likewise.
30180 * build-aux/x-to-1.in: Likewise.
30181 * check-module: Likewise.
30182 * config/srclistvars.sh: Likewise.
30183 * gnulib-tool: Likewise.
30184 * lib/acl-internal.h: Likewise.
30185 * lib/acl.c: Likewise.
30186 * lib/acl.h: Likewise.
30187 * lib/acl_entries.c: Likewise.
30188 * lib/areadlink-with-size.c: Likewise.
30189 * lib/areadlink.c: Likewise.
30190 * lib/areadlink.h: Likewise.
30191 * lib/argmatch.c: Likewise.
30192 * lib/argmatch.h: Likewise.
30193 * lib/argp-ba.c: Likewise.
30194 * lib/argp-eexst.c: Likewise.
30195 * lib/argp-fmtstream.c: Likewise.
30196 * lib/argp-fmtstream.h: Likewise.
30197 * lib/argp-fs-xinl.c: Likewise.
30198 * lib/argp-help.c: Likewise.
30199 * lib/argp-namefrob.h: Likewise.
30200 * lib/argp-parse.c: Likewise.
30201 * lib/argp-pin.c: Likewise.
30202 * lib/argp-pv.c: Likewise.
30203 * lib/argp-pvh.c: Likewise.
30204 * lib/argp-xinl.c: Likewise.
30205 * lib/argp.h: Likewise.
30206 * lib/at-func.c: Likewise.
30207 * lib/atanl.c: Likewise.
30208 * lib/backupfile.c: Likewise.
30209 * lib/backupfile.h: Likewise.
30210 * lib/basename.c: Likewise.
30211 * lib/binary-io.h: Likewise.
30212 * lib/byteswap.in.h: Likewise.
30213 * lib/c-stack.c: Likewise.
30214 * lib/c-stack.h: Likewise.
30215 * lib/c-strcasestr.c: Likewise.
30216 * lib/c-strcasestr.h: Likewise.
30217 * lib/c-strstr.c: Likewise.
30218 * lib/c-strstr.h: Likewise.
30219 * lib/c-strtod.c: Likewise.
30220 * lib/calloc.c: Likewise.
30221 * lib/canon-host.c: Likewise.
30222 * lib/canon-host.h: Likewise.
30223 * lib/canonicalize-lgpl.c: Likewise.
30224 * lib/canonicalize.c: Likewise.
30225 * lib/canonicalize.h: Likewise.
30226 * lib/ceil.c: Likewise.
30227 * lib/ceilf.c: Likewise.
30228 * lib/ceill.c: Likewise.
30229 * lib/chdir-long.c: Likewise.
30230 * lib/chdir-long.h: Likewise.
30231 * lib/chdir-safer.c: Likewise.
30232 * lib/chdir-safer.h: Likewise.
30233 * lib/chown.c: Likewise.
30234 * lib/classpath.c: Likewise.
30235 * lib/classpath.h: Likewise.
30236 * lib/clean-temp.c: Likewise.
30237 * lib/clean-temp.h: Likewise.
30238 * lib/cloexec.c: Likewise.
30239 * lib/close-stream.c: Likewise.
30240 * lib/closein.c: Likewise.
30241 * lib/closein.h: Likewise.
30242 * lib/closeout.c: Likewise.
30243 * lib/closeout.h: Likewise.
30244 * lib/concat-filename.c: Likewise.
30245 * lib/copy-file.c: Likewise.
30246 * lib/copy-file.h: Likewise.
30247 * lib/count-one-bits.h: Likewise.
30248 * lib/crc.c: Likewise.
30249 * lib/crc.h: Likewise.
30250 * lib/creat-safer.c: Likewise.
30251 * lib/csharpcomp.c: Likewise.
30252 * lib/csharpcomp.h: Likewise.
30253 * lib/csharpexec.c: Likewise.
30254 * lib/csharpexec.h: Likewise.
30255 * lib/cycle-check.c: Likewise.
30256 * lib/cycle-check.h: Likewise.
30257 * lib/diacrit.c: Likewise.
30258 * lib/diacrit.h: Likewise.
30259 * lib/diffseq.h: Likewise.
30260 * lib/dirchownmod.c: Likewise.
30261 * lib/dirent.in.h: Likewise.
30262 * lib/dirfd.c: Likewise.
30263 * lib/dirfd.h: Likewise.
30264 * lib/dirname.c: Likewise.
30265 * lib/dirname.h: Likewise.
30266 * lib/dummy.c: Likewise.
30267 * lib/dup-safer.c: Likewise.
30268 * lib/dup2.c: Likewise.
30269 * lib/eealloc.h: Likewise.
30270 * lib/error.c: Likewise.
30271 * lib/error.h: Likewise.
30272 * lib/euidaccess.c: Likewise.
30273 * lib/exclude.c: Likewise.
30274 * lib/exclude.h: Likewise.
30275 * lib/execute.c: Likewise.
30276 * lib/execute.h: Likewise.
30277 * lib/exitfail.c: Likewise.
30278 * lib/exitfail.h: Likewise.
30279 * lib/expl.c: Likewise.
30280 * lib/fatal-signal.c: Likewise.
30281 * lib/fatal-signal.h: Likewise.
30282 * lib/fbufmode.c: Likewise.
30283 * lib/fbufmode.h: Likewise.
30284 * lib/fchdir.c: Likewise.
30285 * lib/fchmodat.c: Likewise.
30286 * lib/fchownat.c: Likewise.
30287 * lib/fcntl--.h: Likewise.
30288 * lib/fcntl-safer.h: Likewise.
30289 * lib/fcntl.in.h: Likewise.
30290 * lib/fd-safer.c: Likewise.
30291 * lib/fflush.c: Likewise.
30292 * lib/file-has-acl.c: Likewise.
30293 * lib/file-set.c: Likewise.
30294 * lib/file-type.c: Likewise.
30295 * lib/file-type.h: Likewise.
30296 * lib/fileblocks.c: Likewise.
30297 * lib/filemode.c: Likewise.
30298 * lib/filemode.h: Likewise.
30299 * lib/filename.h: Likewise.
30300 * lib/filenamecat.c: Likewise.
30301 * lib/filenamecat.h: Likewise.
30302 * lib/findprog.c: Likewise.
30303 * lib/findprog.h: Likewise.
30304 * lib/float.in.h: Likewise.
30305 * lib/floor.c: Likewise.
30306 * lib/floorf.c: Likewise.
30307 * lib/floorl.c: Likewise.
30308 * lib/fopen-safer.c: Likewise.
30309 * lib/fopen.c: Likewise.
30310 * lib/fpending.c: Likewise.
30311 * lib/fpending.h: Likewise.
30312 * lib/fprintf.c: Likewise.
30313 * lib/fprintftime.h: Likewise.
30314 * lib/fpucw.h: Likewise.
30315 * lib/fpurge.c: Likewise.
30316 * lib/fpurge.h: Likewise.
30317 * lib/freadable.c: Likewise.
30318 * lib/freadable.h: Likewise.
30319 * lib/freadahead.c: Likewise.
30320 * lib/freadahead.h: Likewise.
30321 * lib/freading.c: Likewise.
30322 * lib/freading.h: Likewise.
30323 * lib/free.c: Likewise.
30324 * lib/freopen.c: Likewise.
30325 * lib/frexp.c: Likewise.
30326 * lib/frexpl.c: Likewise.
30327 * lib/fseek.c: Likewise.
30328 * lib/fseterr.c: Likewise.
30329 * lib/fseterr.h: Likewise.
30330 * lib/fstatat.c: Likewise.
30331 * lib/fstrcmp.c: Likewise.
30332 * lib/fstrcmp.h: Likewise.
30333 * lib/fsusage.c: Likewise.
30334 * lib/fsusage.h: Likewise.
30335 * lib/ftell.c: Likewise.
30336 * lib/ftello.c: Likewise.
30337 * lib/fts-cycle.c: Likewise.
30338 * lib/fts.c: Likewise.
30339 * lib/fts_.h: Likewise.
30340 * lib/full-read.c: Likewise.
30341 * lib/full-read.h: Likewise.
30342 * lib/full-write.c: Likewise.
30343 * lib/full-write.h: Likewise.
30344 * lib/fwritable.c: Likewise.
30345 * lib/fwritable.h: Likewise.
30346 * lib/fwriteerror.c: Likewise.
30347 * lib/fwriteerror.h: Likewise.
30348 * lib/fwriting.c: Likewise.
30349 * lib/fwriting.h: Likewise.
30350 * lib/gcd.c: Likewise.
30351 * lib/gcd.h: Likewise.
30352 * lib/getcwd.c: Likewise.
30353 * lib/getdate.h: Likewise.
30354 * lib/getdate.y: Likewise.
30355 * lib/getdomainname.c: Likewise.
30356 * lib/getdomainname.h: Likewise.
30357 * lib/getgroups.c: Likewise.
30358 * lib/gethostname.c: Likewise.
30359 * lib/gethrxtime.c: Likewise.
30360 * lib/gethrxtime.h: Likewise.
30361 * lib/getloadavg.c: Likewise.
30362 * lib/getndelim2.c: Likewise.
30363 * lib/getndelim2.h: Likewise.
30364 * lib/getnline.c: Likewise.
30365 * lib/getnline.h: Likewise.
30366 * lib/getopt.c: Likewise.
30367 * lib/getopt.in.h: Likewise.
30368 * lib/getopt1.c: Likewise.
30369 * lib/getopt_int.h: Likewise.
30370 * lib/getpagesize.h: Likewise.
30371 * lib/getsubopt.c: Likewise.
30372 * lib/gettime.c: Likewise.
30373 * lib/getugroups.c: Likewise.
30374 * lib/getugroups.h: Likewise.
30375 * lib/getusershell.c: Likewise.
30376 * lib/gl_anyavltree_list1.h: Likewise.
30377 * lib/gl_anyavltree_list2.h: Likewise.
30378 * lib/gl_anyhash_list1.h: Likewise.
30379 * lib/gl_anyhash_list2.h: Likewise.
30380 * lib/gl_anylinked_list1.h: Likewise.
30381 * lib/gl_anylinked_list2.h: Likewise.
30382 * lib/gl_anyrbtree_list1.h: Likewise.
30383 * lib/gl_anyrbtree_list2.h: Likewise.
30384 * lib/gl_anytree_list1.h: Likewise.
30385 * lib/gl_anytree_list2.h: Likewise.
30386 * lib/gl_anytree_oset.h: Likewise.
30387 * lib/gl_anytreehash_list1.h: Likewise.
30388 * lib/gl_anytreehash_list2.h: Likewise.
30389 * lib/gl_array_list.c: Likewise.
30390 * lib/gl_array_list.h: Likewise.
30391 * lib/gl_array_oset.c: Likewise.
30392 * lib/gl_array_oset.h: Likewise.
30393 * lib/gl_avltree_list.c: Likewise.
30394 * lib/gl_avltree_list.h: Likewise.
30395 * lib/gl_avltree_oset.c: Likewise.
30396 * lib/gl_avltree_oset.h: Likewise.
30397 * lib/gl_avltreehash_list.c: Likewise.
30398 * lib/gl_avltreehash_list.h: Likewise.
30399 * lib/gl_carray_list.c: Likewise.
30400 * lib/gl_carray_list.h: Likewise.
30401 * lib/gl_linked_list.c: Likewise.
30402 * lib/gl_linked_list.h: Likewise.
30403 * lib/gl_linkedhash_list.c: Likewise.
30404 * lib/gl_linkedhash_list.h: Likewise.
30405 * lib/gl_list.c: Likewise.
30406 * lib/gl_list.h: Likewise.
30407 * lib/gl_oset.c: Likewise.
30408 * lib/gl_oset.h: Likewise.
30409 * lib/gl_rbtree_list.c: Likewise.
30410 * lib/gl_rbtree_list.h: Likewise.
30411 * lib/gl_rbtree_oset.c: Likewise.
30412 * lib/gl_rbtree_oset.h: Likewise.
30413 * lib/gl_rbtreehash_list.c: Likewise.
30414 * lib/gl_rbtreehash_list.h: Likewise.
30415 * lib/gl_sublist.c: Likewise.
30416 * lib/gl_sublist.h: Likewise.
30417 * lib/group-member.c: Likewise.
30418 * lib/group-member.h: Likewise.
30419 * lib/hard-locale.c: Likewise.
30420 * lib/hard-locale.h: Likewise.
30421 * lib/hash-pjw.c: Likewise.
30422 * lib/hash-pjw.h: Likewise.
30423 * lib/hash-triple.c: Likewise.
30424 * lib/hash.c: Likewise.
30425 * lib/hash.h: Likewise.
30426 * lib/human.c: Likewise.
30427 * lib/human.h: Likewise.
30428 * lib/i-ring.c: Likewise.
30429 * lib/i-ring.h: Likewise.
30430 * lib/idcache.c: Likewise.
30431 * lib/imaxabs.c: Likewise.
30432 * lib/imaxdiv.c: Likewise.
30433 * lib/inet_pton.c: Likewise.
30434 * lib/inet_pton.h: Likewise.
30435 * lib/intprops.h: Likewise.
30436 * lib/inttostr.c: Likewise.
30437 * lib/inttostr.h: Likewise.
30438 * lib/inttypes.in.h: Likewise.
30439 * lib/isapipe.c: Likewise.
30440 * lib/isdir.c: Likewise.
30441 * lib/isnan.c: Likewise.
30442 * lib/isnan.h: Likewise.
30443 * lib/isnanf.c: Likewise.
30444 * lib/isnanf.h: Likewise.
30445 * lib/isnanl-nolibm.h: Likewise.
30446 * lib/isnanl.c: Likewise.
30447 * lib/isnanl.h: Likewise.
30448 * lib/javacomp.c: Likewise.
30449 * lib/javacomp.h: Likewise.
30450 * lib/javaexec.c: Likewise.
30451 * lib/javaexec.h: Likewise.
30452 * lib/javaversion.c: Likewise.
30453 * lib/javaversion.h: Likewise.
30454 * lib/javaversion.java: Likewise.
30455 * lib/lbrkprop.h: Likewise.
30456 * lib/lchmod.h: Likewise.
30457 * lib/lchown.c: Likewise.
30458 * lib/ldexpl.c: Likewise.
30459 * lib/linebreak.c: Likewise.
30460 * lib/linebreak.h: Likewise.
30461 * lib/linebuffer.c: Likewise.
30462 * lib/linebuffer.h: Likewise.
30463 * lib/locale.in.h: Likewise.
30464 * lib/logl.c: Likewise.
30465 * lib/long-options.c: Likewise.
30466 * lib/long-options.h: Likewise.
30467 * lib/lstat.c: Likewise.
30468 * lib/lstat.h: Likewise.
30469 * lib/math.in.h: Likewise.
30470 * lib/mbchar.c: Likewise.
30471 * lib/mbchar.h: Likewise.
30472 * lib/mbfile.h: Likewise.
30473 * lib/mbiter.h: Likewise.
30474 * lib/mbscasecmp.c: Likewise.
30475 * lib/mbscasestr.c: Likewise.
30476 * lib/mbschr.c: Likewise.
30477 * lib/mbscspn.c: Likewise.
30478 * lib/mbslen.c: Likewise.
30479 * lib/mbsncasecmp.c: Likewise.
30480 * lib/mbsnlen.c: Likewise.
30481 * lib/mbspbrk.c: Likewise.
30482 * lib/mbspcasecmp.c: Likewise.
30483 * lib/mbsrchr.c: Likewise.
30484 * lib/mbssep.c: Likewise.
30485 * lib/mbsspn.c: Likewise.
30486 * lib/mbsstr.c: Likewise.
30487 * lib/mbstok_r.c: Likewise.
30488 * lib/mbswidth.c: Likewise.
30489 * lib/mbswidth.h: Likewise.
30490 * lib/mbuiter.h: Likewise.
30491 * lib/memcasecmp.c: Likewise.
30492 * lib/memcasecmp.h: Likewise.
30493 * lib/memchr.c: Likewise.
30494 * lib/memcmp.c: Likewise.
30495 * lib/memcoll.c: Likewise.
30496 * lib/memcoll.h: Likewise.
30497 * lib/memcpy.c: Likewise.
30498 * lib/memrchr.c: Likewise.
30499 * lib/mkancesdirs.c: Likewise.
30500 * lib/mkdir-p.c: Likewise.
30501 * lib/mkdir-p.h: Likewise.
30502 * lib/mkdir.c: Likewise.
30503 * lib/mkdirat.c: Likewise.
30504 * lib/mkdtemp.c: Likewise.
30505 * lib/mkstemp-safer.c: Likewise.
30506 * lib/mkstemp.c: Likewise.
30507 * lib/modechange.c: Likewise.
30508 * lib/modechange.h: Likewise.
30509 * lib/mountlist.c: Likewise.
30510 * lib/mountlist.h: Likewise.
30511 * lib/mpsort.c: Likewise.
30512 * lib/nanosleep.c: Likewise.
30513 * lib/obstack.c: Likewise.
30514 * lib/obstack.h: Likewise.
30515 * lib/open-safer.c: Likewise.
30516 * lib/open.c: Likewise.
30517 * lib/openat-die.c: Likewise.
30518 * lib/openat-priv.h: Likewise.
30519 * lib/openat-proc.c: Likewise.
30520 * lib/openat.c: Likewise.
30521 * lib/openat.h: Likewise.
30522 * lib/pagealign_alloc.c: Likewise.
30523 * lib/pagealign_alloc.h: Likewise.
30524 * lib/physmem.c: Likewise.
30525 * lib/physmem.h: Likewise.
30526 * lib/pipe-safer.c: Likewise.
30527 * lib/pipe.c: Likewise.
30528 * lib/pipe.h: Likewise.
30529 * lib/posixtm.c: Likewise.
30530 * lib/posixtm.h: Likewise.
30531 * lib/posixver.c: Likewise.
30532 * lib/printf-frexp.c: Likewise.
30533 * lib/printf-frexp.h: Likewise.
30534 * lib/printf-frexpl.c: Likewise.
30535 * lib/printf-frexpl.h: Likewise.
30536 * lib/printf.c: Likewise.
30537 * lib/progname.c: Likewise.
30538 * lib/progname.h: Likewise.
30539 * lib/progreloc.c: Likewise.
30540 * lib/putenv.c: Likewise.
30541 * lib/quote.c: Likewise.
30542 * lib/quote.h: Likewise.
30543 * lib/quotearg.c: Likewise.
30544 * lib/quotearg.h: Likewise.
30545 * lib/raise.c: Likewise.
30546 * lib/readline.c: Likewise.
30547 * lib/readline.h: Likewise.
30548 * lib/readlink.c: Likewise.
30549 * lib/readtokens.c: Likewise.
30550 * lib/readtokens.h: Likewise.
30551 * lib/readtokens0.c: Likewise.
30552 * lib/readtokens0.h: Likewise.
30553 * lib/readutmp.c: Likewise.
30554 * lib/readutmp.h: Likewise.
30555 * lib/realloc.c: Likewise.
30556 * lib/relocwrapper.c: Likewise.
30557 * lib/rename-dest-slash.c: Likewise.
30558 * lib/rename.c: Likewise.
30559 * lib/rmdir.c: Likewise.
30560 * lib/rpmatch.c: Likewise.
30561 * lib/safe-read.c: Likewise.
30562 * lib/safe-read.h: Likewise.
30563 * lib/safe-write.c: Likewise.
30564 * lib/safe-write.h: Likewise.
30565 * lib/same-inode.h: Likewise.
30566 * lib/same.c: Likewise.
30567 * lib/same.h: Likewise.
30568 * lib/save-cwd.c: Likewise.
30569 * lib/save-cwd.h: Likewise.
30570 * lib/savedir.c: Likewise.
30571 * lib/savedir.h: Likewise.
30572 * lib/savewd.c: Likewise.
30573 * lib/savewd.h: Likewise.
30574 * lib/search.in.h: Likewise.
30575 * lib/setenv.c: Likewise.
30576 * lib/setenv.h: Likewise.
30577 * lib/settime.c: Likewise.
30578 * lib/sh-quote.c: Likewise.
30579 * lib/sh-quote.h: Likewise.
30580 * lib/sig2str.c: Likewise.
30581 * lib/sig2str.h: Likewise.
30582 * lib/signal.in.h: Likewise.
30583 * lib/signbitd.c: Likewise.
30584 * lib/signbitf.c: Likewise.
30585 * lib/signbitl.c: Likewise.
30586 * lib/sigprocmask.c: Likewise.
30587 * lib/sincosl.c: Likewise.
30588 * lib/sleep.c: Likewise.
30589 * lib/sprintf.c: Likewise.
30590 * lib/sqrtl.c: Likewise.
30591 * lib/stat-time.h: Likewise.
30592 * lib/stdio--.h: Likewise.
30593 * lib/stdio-safer.h: Likewise.
30594 * lib/stdlib--.h: Likewise.
30595 * lib/stdlib-safer.h: Likewise.
30596 * lib/stdlib.in.h: Likewise.
30597 * lib/stpcpy.c: Likewise.
30598 * lib/stpncpy.c: Likewise.
30599 * lib/strchrnul.c: Likewise.
30600 * lib/strcspn.c: Likewise.
30601 * lib/strerror.c: Likewise.
30602 * lib/strftime.c: Likewise.
30603 * lib/strftime.h: Likewise.
30604 * lib/striconveh.c: Likewise.
30605 * lib/striconveh.h: Likewise.
30606 * lib/striconveha.c: Likewise.
30607 * lib/striconveha.h: Likewise.
30608 * lib/stripslash.c: Likewise.
30609 * lib/strnlen1.c: Likewise.
30610 * lib/strnlen1.h: Likewise.
30611 * lib/strtod.c: Likewise.
30612 * lib/strtoimax.c: Likewise.
30613 * lib/strtok_r.c: Likewise.
30614 * lib/strtol.c: Likewise.
30615 * lib/strtoll.c: Likewise.
30616 * lib/strtoul.c: Likewise.
30617 * lib/strtoull.c: Likewise.
30618 * lib/sysexits.in.h: Likewise.
30619 * lib/tempname.c: Likewise.
30620 * lib/tempname.h: Likewise.
30621 * lib/timespec.h: Likewise.
30622 * lib/tls.c: Likewise.
30623 * lib/tls.h: Likewise.
30624 * lib/tmpdir.c: Likewise.
30625 * lib/tmpdir.h: Likewise.
30626 * lib/tmpfile-safer.c: Likewise.
30627 * lib/tmpfile.c: Likewise.
30628 * lib/trigl.c: Likewise.
30629 * lib/trigl.h: Likewise.
30630 * lib/trim.c: Likewise.
30631 * lib/trim.h: Likewise.
30632 * lib/trunc.c: Likewise.
30633 * lib/truncf.c: Likewise.
30634 * lib/truncl.c: Likewise.
30635 * lib/tsearch.c: Likewise.
30636 * lib/unicodeio.c: Likewise.
30637 * lib/unicodeio.h: Likewise.
30638 * lib/unistd--.h: Likewise.
30639 * lib/unistd-safer.h: Likewise.
30640 * lib/unistdio/ulc-fprintf.c: Likewise.
30641 * lib/unistdio/ulc-vfprintf.c: Likewise.
30642 * lib/unlinkdir.c: Likewise.
30643 * lib/unlinkdir.h: Likewise.
30644 * lib/unlocked-io.h: Likewise.
30645 * lib/unsetenv.c: Likewise.
30646 * lib/userspec.c: Likewise.
30647 * lib/utime.c: Likewise.
30648 * lib/utimecmp.c: Likewise.
30649 * lib/utimecmp.h: Likewise.
30650 * lib/utimens.c: Likewise.
30651 * lib/verify.h: Likewise.
30652 * lib/verror.c: Likewise.
30653 * lib/verror.h: Likewise.
30654 * lib/version-etc-fsf.c: Likewise.
30655 * lib/version-etc.c: Likewise.
30656 * lib/version-etc.h: Likewise.
30657 * lib/vfprintf.c: Likewise.
30658 * lib/vprintf.c: Likewise.
30659 * lib/vsprintf.c: Likewise.
30660 * lib/w32spawn.h: Likewise.
30661 * lib/wait-process.c: Likewise.
30662 * lib/wait-process.h: Likewise.
30663 * lib/wcwidth.c: Likewise.
30664 * lib/write-any-file.c: Likewise.
30665 * lib/xalloc-die.c: Likewise.
30666 * lib/xalloc.h: Likewise.
30667 * lib/xasprintf.c: Likewise.
30668 * lib/xgetcwd.c: Likewise.
30669 * lib/xgetcwd.h: Likewise.
30670 * lib/xgetdomainname.c: Likewise.
30671 * lib/xgetdomainname.h: Likewise.
30672 * lib/xgethostname.c: Likewise.
30673 * lib/xmalloc.c: Likewise.
30674 * lib/xmalloca.c: Likewise.
30675 * lib/xmalloca.h: Likewise.
30676 * lib/xmemcoll.c: Likewise.
30677 * lib/xnanosleep.c: Likewise.
30678 * lib/xreadlink.c: Likewise.
30679 * lib/xreadlink.h: Likewise.
30680 * lib/xsetenv.c: Likewise.
30681 * lib/xsetenv.h: Likewise.
30682 * lib/xstriconv.c: Likewise.
30683 * lib/xstriconv.h: Likewise.
30684 * lib/xstrndup.c: Likewise.
30685 * lib/xstrndup.h: Likewise.
30686 * lib/xstrtod.c: Likewise.
30687 * lib/xstrtod.h: Likewise.
30688 * lib/xstrtol-error.c: Likewise.
30689 * lib/xstrtol.c: Likewise.
30690 * lib/xstrtol.h: Likewise.
30691 * lib/xtime.h: Likewise.
30692 * lib/xvasprintf.c: Likewise.
30693 * lib/xvasprintf.h: Likewise.
30694 * lib/yesno.c: Likewise.
30695 * lib/yesno.h: Likewise.
30696 * posix-modules: Likewise.
30697 * tests/test-alloca-opt.c: Likewise.
30698 * tests/test-arcfour.c: Likewise.
30699 * tests/test-arctwo.c: Likewise.
30700 * tests/test-argmatch.c: Likewise.
30701 * tests/test-argp-2.sh: Likewise.
30702 * tests/test-argp.c: Likewise.
30703 * tests/test-arpa_inet.c: Likewise.
30704 * tests/test-array_list.c: Likewise.
30705 * tests/test-array_oset.c: Likewise.
30706 * tests/test-atexit.c: Likewise.
30707 * tests/test-avltree_list.c: Likewise.
30708 * tests/test-avltree_oset.c: Likewise.
30709 * tests/test-avltreehash_list.c: Likewise.
30710 * tests/test-base64.c: Likewise.
30711 * tests/test-binary-io.c: Likewise.
30712 * tests/test-byteswap.c: Likewise.
30713 * tests/test-c-ctype.c: Likewise.
30714 * tests/test-c-strcasecmp.c: Likewise.
30715 * tests/test-c-strcasestr.c: Likewise.
30716 * tests/test-c-strncasecmp.c: Likewise.
30717 * tests/test-c-strstr.c: Likewise.
30718 * tests/test-canonicalize-lgpl.c: Likewise.
30719 * tests/test-canonicalize.c: Likewise.
30720 * tests/test-carray_list.c: Likewise.
30721 * tests/test-ceilf.c: Likewise.
30722 * tests/test-ceill.c: Likewise.
30723 * tests/test-count-one-bits.c: Likewise.
30724 * tests/test-crc.c: Likewise.
30725 * tests/test-dirname.c: Likewise.
30726 * tests/test-fbufmode.c: Likewise.
30727 * tests/test-fcntl.c: Likewise.
30728 * tests/test-fflush.c: Likewise.
30729 * tests/test-floorf.c: Likewise.
30730 * tests/test-floorl.c: Likewise.
30731 * tests/test-fopen.c: Likewise.
30732 * tests/test-fprintf-posix.c: Likewise.
30733 * tests/test-fprintf-posix.h: Likewise.
30734 * tests/test-fpurge.c: Likewise.
30735 * tests/test-freadable.c: Likewise.
30736 * tests/test-freadahead.c: Likewise.
30737 * tests/test-freading.c: Likewise.
30738 * tests/test-freopen.c: Likewise.
30739 * tests/test-frexp.c: Likewise.
30740 * tests/test-frexpl.c: Likewise.
30741 * tests/test-fseek.c: Likewise.
30742 * tests/test-fseeko.c: Likewise.
30743 * tests/test-fseterr.c: Likewise.
30744 * tests/test-fstrcmp.c: Likewise.
30745 * tests/test-ftell.c: Likewise.
30746 * tests/test-ftello.c: Likewise.
30747 * tests/test-fwritable.c: Likewise.
30748 * tests/test-fwriting.c: Likewise.
30749 * tests/test-getaddrinfo.c: Likewise.
30750 * tests/test-getpass.c: Likewise.
30751 * tests/test-gettimeofday.c: Likewise.
30752 * tests/test-hmac-md5.c: Likewise.
30753 * tests/test-hmac-sha1.c: Likewise.
30754 * tests/test-iconv.c: Likewise.
30755 * tests/test-iconvme.c: Likewise.
30756 * tests/test-inttypes.c: Likewise.
30757 * tests/test-isnan.c: Likewise.
30758 * tests/test-isnanf.c: Likewise.
30759 * tests/test-isnanl-nolibm.c: Likewise.
30760 * tests/test-isnanl.c: Likewise.
30761 * tests/test-isnanl.h: Likewise.
30762 * tests/test-ldexpl.c: Likewise.
30763 * tests/test-linked_list.c: Likewise.
30764 * tests/test-linkedhash_list.c: Likewise.
30765 * tests/test-locale.c: Likewise.
30766 * tests/test-localename.c: Likewise.
30767 * tests/test-lock.c: Likewise.
30768 * tests/test-lseek.c: Likewise.
30769 * tests/test-malloca.c: Likewise.
30770 * tests/test-math.c: Likewise.
30771 * tests/test-mbscasecmp.c: Likewise.
30772 * tests/test-mbscasestr1.c: Likewise.
30773 * tests/test-mbscasestr2.c: Likewise.
30774 * tests/test-mbscasestr3.c: Likewise.
30775 * tests/test-mbscasestr4.c: Likewise.
30776 * tests/test-mbschr.c: Likewise.
30777 * tests/test-mbscspn.c: Likewise.
30778 * tests/test-mbsncasecmp.c: Likewise.
30779 * tests/test-mbspbrk.c: Likewise.
30780 * tests/test-mbspcasecmp.c: Likewise.
30781 * tests/test-mbsrchr.c: Likewise.
30782 * tests/test-mbsspn.c: Likewise.
30783 * tests/test-mbsstr1.c: Likewise.
30784 * tests/test-mbsstr2.c: Likewise.
30785 * tests/test-mbsstr3.c: Likewise.
30786 * tests/test-md5.c: Likewise.
30787 * tests/test-memmem.c: Likewise.
30788 * tests/test-netinet_in.c: Likewise.
30789 * tests/test-open.c: Likewise.
30790 * tests/test-printf-frexp.c: Likewise.
30791 * tests/test-printf-frexpl.c: Likewise.
30792 * tests/test-printf-posix.c: Likewise.
30793 * tests/test-printf-posix.h: Likewise.
30794 * tests/test-rbtree_list.c: Likewise.
30795 * tests/test-rbtree_oset.c: Likewise.
30796 * tests/test-rbtreehash_list.c: Likewise.
30797 * tests/test-read-file.c: Likewise.
30798 * tests/test-rijndael.c: Likewise.
30799 * tests/test-search.c: Likewise.
30800 * tests/test-signbit.c: Likewise.
30801 * tests/test-sleep.c: Likewise.
30802 * tests/test-snprintf-posix.c: Likewise.
30803 * tests/test-snprintf-posix.h: Likewise.
30804 * tests/test-snprintf.c: Likewise.
30805 * tests/test-sprintf-posix.c: Likewise.
30806 * tests/test-sprintf-posix.h: Likewise.
30807 * tests/test-stat-time.c: Likewise.
30808 * tests/test-stdbool.c: Likewise.
30809 * tests/test-stdint.c: Likewise.
30810 * tests/test-stdio.c: Likewise.
30811 * tests/test-stdlib.c: Likewise.
30812 * tests/test-stpncpy.c: Likewise.
30813 * tests/test-strcasestr.c: Likewise.
30814 * tests/test-striconv.c: Likewise.
30815 * tests/test-striconveh.c: Likewise.
30816 * tests/test-striconveha.c: Likewise.
30817 * tests/test-string.c: Likewise.
30818 * tests/test-sys_select.c: Likewise.
30819 * tests/test-sys_socket.c: Likewise.
30820 * tests/test-sys_stat.c: Likewise.
30821 * tests/test-sys_time.c: Likewise.
30822 * tests/test-sysexits.c: Likewise.
30823 * tests/test-time.c: Likewise.
30824 * tests/test-tls.c: Likewise.
30825 * tests/test-trunc.c: Likewise.
30826 * tests/test-truncf.c: Likewise.
30827 * tests/test-truncl.c: Likewise.
30828 * tests/test-unistd.c: Likewise.
30829 * tests/test-vasnprintf-posix.c: Likewise.
30830 * tests/test-vasnprintf-posix2.c: Likewise.
30831 * tests/test-vasnprintf.c: Likewise.
30832 * tests/test-vasprintf-posix.c: Likewise.
30833 * tests/test-vasprintf.c: Likewise.
30834 * tests/test-verify.c: Likewise.
30835 * tests/test-vfprintf-posix.c: Likewise.
30836 * tests/test-vprintf-posix.c: Likewise.
30837 * tests/test-vsnprintf-posix.c: Likewise.
30838 * tests/test-vsnprintf.c: Likewise.
30839 * tests/test-vsprintf-posix.c: Likewise.
30840 * tests/test-wchar.c: Likewise.
30841 * tests/test-wctype.c: Likewise.
30842 * tests/test-wcwidth.c: Likewise.
30843 * tests/test-xstrtol.c: Likewise.
30844 * tests/test-xvasprintf.c: Likewise.
30845 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30846 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30847 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30848 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30849 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30850 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30851 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30852 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30853 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30854 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30855 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30856 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30857 * tests/uniname/test-uninames.c: Likewise.
30858 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30859 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30860 * tests/unistdio/test-u16-printf1.h: Likewise.
30861 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30862 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30863 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30864 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30865 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30866 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30867 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30868 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30869 * tests/unistdio/test-u32-printf1.h: Likewise.
30870 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30871 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30872 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30873 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30874 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30875 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30876 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30877 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30878 * tests/unistdio/test-u8-printf1.h: Likewise.
30879 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30880 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30881 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30882 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30883 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30884 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30885 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30886 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30887 * tests/unistdio/test-ulc-printf1.h: Likewise.
30888 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30889 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30890 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30891 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30892 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30893 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30894 * tests/uniwidth/test-u16-strwidth.c: Likewise.
30895 * tests/uniwidth/test-u16-width.c: Likewise.
30896 * tests/uniwidth/test-u32-strwidth.c: Likewise.
30897 * tests/uniwidth/test-u32-width.c: Likewise.
30898 * tests/uniwidth/test-u8-strwidth.c: Likewise.
30899 * tests/uniwidth/test-u8-width.c: Likewise.
30900 * tests/uniwidth/test-uc_width.c: Likewise.
30901 * config/srclist-update: Likewise.
30902 (fixlicense): Update to GPLv3+.
30904 Change copyright notice from LGPLv2.1+ to LGPLv3+.
30905 * tests/test-tsearch.c: Change copyright notice.
30907 Change copyright notice from LGPLv2.0+ to LGPLv3+.
30908 * lib/c-strcaseeq.h: Change copyright notice.
30909 * lib/streq.h: Likewise.
30910 * lib/uniconv.h: Likewise.
30911 * lib/uniconv/u-conv-from-enc.h: Likewise.
30912 * lib/uniconv/u-conv-to-enc.h: Likewise.
30913 * lib/uniconv/u-strconv-from-enc.h: Likewise.
30914 * lib/uniconv/u-strconv-to-enc.h: Likewise.
30915 * lib/uniconv/u16-conv-from-enc.c: Likewise.
30916 * lib/uniconv/u16-conv-to-enc.c: Likewise.
30917 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30918 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30919 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30920 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30921 * lib/uniconv/u32-conv-from-enc.c: Likewise.
30922 * lib/uniconv/u32-conv-to-enc.c: Likewise.
30923 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30924 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30925 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30926 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30927 * lib/uniconv/u8-conv-from-enc.c: Likewise.
30928 * lib/uniconv/u8-conv-to-enc.c: Likewise.
30929 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30930 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30931 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30932 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30933 * lib/uniname.h: Likewise.
30934 * lib/uniname/uniname.c: Likewise.
30935 * lib/unistdio.h: Likewise.
30936 * lib/unistdio/u-asnprintf.h: Likewise.
30937 * lib/unistdio/u-asprintf.h: Likewise.
30938 * lib/unistdio/u-printf-args.c: Likewise.
30939 * lib/unistdio/u-printf-args.h: Likewise.
30940 * lib/unistdio/u-printf-parse.h: Likewise.
30941 * lib/unistdio/u-snprintf.h: Likewise.
30942 * lib/unistdio/u-sprintf.h: Likewise.
30943 * lib/unistdio/u-vasprintf.h: Likewise.
30944 * lib/unistdio/u-vsnprintf.h: Likewise.
30945 * lib/unistdio/u-vsprintf.h: Likewise.
30946 * lib/unistdio/u16-asnprintf.c: Likewise.
30947 * lib/unistdio/u16-asprintf.c: Likewise.
30948 * lib/unistdio/u16-printf-parse.c: Likewise.
30949 * lib/unistdio/u16-snprintf.c: Likewise.
30950 * lib/unistdio/u16-sprintf.c: Likewise.
30951 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30952 * lib/unistdio/u16-u16-asprintf.c: Likewise.
30953 * lib/unistdio/u16-u16-snprintf.c: Likewise.
30954 * lib/unistdio/u16-u16-sprintf.c: Likewise.
30955 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30956 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30957 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30958 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30959 * lib/unistdio/u16-vasnprintf.c: Likewise.
30960 * lib/unistdio/u16-vasprintf.c: Likewise.
30961 * lib/unistdio/u16-vsnprintf.c: Likewise.
30962 * lib/unistdio/u16-vsprintf.c: Likewise.
30963 * lib/unistdio/u32-asnprintf.c: Likewise.
30964 * lib/unistdio/u32-asprintf.c: Likewise.
30965 * lib/unistdio/u32-printf-parse.c: Likewise.
30966 * lib/unistdio/u32-snprintf.c: Likewise.
30967 * lib/unistdio/u32-sprintf.c: Likewise.
30968 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30969 * lib/unistdio/u32-u32-asprintf.c: Likewise.
30970 * lib/unistdio/u32-u32-snprintf.c: Likewise.
30971 * lib/unistdio/u32-u32-sprintf.c: Likewise.
30972 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30973 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30974 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30975 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30976 * lib/unistdio/u32-vasnprintf.c: Likewise.
30977 * lib/unistdio/u32-vasprintf.c: Likewise.
30978 * lib/unistdio/u32-vsnprintf.c: Likewise.
30979 * lib/unistdio/u32-vsprintf.c: Likewise.
30980 * lib/unistdio/u8-asnprintf.c: Likewise.
30981 * lib/unistdio/u8-asprintf.c: Likewise.
30982 * lib/unistdio/u8-printf-parse.c: Likewise.
30983 * lib/unistdio/u8-snprintf.c: Likewise.
30984 * lib/unistdio/u8-sprintf.c: Likewise.
30985 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30986 * lib/unistdio/u8-u8-asprintf.c: Likewise.
30987 * lib/unistdio/u8-u8-snprintf.c: Likewise.
30988 * lib/unistdio/u8-u8-sprintf.c: Likewise.
30989 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30990 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30991 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30992 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30993 * lib/unistdio/u8-vasnprintf.c: Likewise.
30994 * lib/unistdio/u8-vasprintf.c: Likewise.
30995 * lib/unistdio/u8-vsnprintf.c: Likewise.
30996 * lib/unistdio/u8-vsprintf.c: Likewise.
30997 * lib/unistdio/ulc-asnprintf.c: Likewise.
30998 * lib/unistdio/ulc-asprintf.c: Likewise.
30999 * lib/unistdio/ulc-printf-parse.c: Likewise.
31000 * lib/unistdio/ulc-snprintf.c: Likewise.
31001 * lib/unistdio/ulc-sprintf.c: Likewise.
31002 * lib/unistdio/ulc-vasnprintf.c: Likewise.
31003 * lib/unistdio/ulc-vasprintf.c: Likewise.
31004 * lib/unistdio/ulc-vsnprintf.c: Likewise.
31005 * lib/unistdio/ulc-vsprintf.c: Likewise.
31006 * lib/unistr.h: Likewise.
31007 * lib/unistr/u-cpy-alloc.h: Likewise.
31008 * lib/unistr/u-cpy.h: Likewise.
31009 * lib/unistr/u-endswith.h: Likewise.
31010 * lib/unistr/u-move.h: Likewise.
31011 * lib/unistr/u-set.h: Likewise.
31012 * lib/unistr/u-startswith.h: Likewise.
31013 * lib/unistr/u-stpcpy.h: Likewise.
31014 * lib/unistr/u-stpncpy.h: Likewise.
31015 * lib/unistr/u-strcat.h: Likewise.
31016 * lib/unistr/u-strcpy.h: Likewise.
31017 * lib/unistr/u-strcspn.h: Likewise.
31018 * lib/unistr/u-strdup.h: Likewise.
31019 * lib/unistr/u-strlen.h: Likewise.
31020 * lib/unistr/u-strncat.h: Likewise.
31021 * lib/unistr/u-strncpy.h: Likewise.
31022 * lib/unistr/u-strnlen.h: Likewise.
31023 * lib/unistr/u-strpbrk.h: Likewise.
31024 * lib/unistr/u-strspn.h: Likewise.
31025 * lib/unistr/u-strstr.h: Likewise.
31026 * lib/unistr/u-strtok.h: Likewise.
31027 * lib/unistr/u16-check.c: Likewise.
31028 * lib/unistr/u16-chr.c: Likewise.
31029 * lib/unistr/u16-cmp.c: Likewise.
31030 * lib/unistr/u16-cpy-alloc.c: Likewise.
31031 * lib/unistr/u16-cpy.c: Likewise.
31032 * lib/unistr/u16-endswith.c: Likewise.
31033 * lib/unistr/u16-mblen.c: Likewise.
31034 * lib/unistr/u16-mbsnlen.c: Likewise.
31035 * lib/unistr/u16-mbtouc-aux.c: Likewise.
31036 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31037 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31038 * lib/unistr/u16-mbtouc.c: Likewise.
31039 * lib/unistr/u16-mbtoucr.c: Likewise.
31040 * lib/unistr/u16-move.c: Likewise.
31041 * lib/unistr/u16-next.c: Likewise.
31042 * lib/unistr/u16-prev.c: Likewise.
31043 * lib/unistr/u16-set.c: Likewise.
31044 * lib/unistr/u16-startswith.c: Likewise.
31045 * lib/unistr/u16-stpcpy.c: Likewise.
31046 * lib/unistr/u16-stpncpy.c: Likewise.
31047 * lib/unistr/u16-strcat.c: Likewise.
31048 * lib/unistr/u16-strchr.c: Likewise.
31049 * lib/unistr/u16-strcmp.c: Likewise.
31050 * lib/unistr/u16-strcpy.c: Likewise.
31051 * lib/unistr/u16-strcspn.c: Likewise.
31052 * lib/unistr/u16-strdup.c: Likewise.
31053 * lib/unistr/u16-strlen.c: Likewise.
31054 * lib/unistr/u16-strmblen.c: Likewise.
31055 * lib/unistr/u16-strmbtouc.c: Likewise.
31056 * lib/unistr/u16-strncat.c: Likewise.
31057 * lib/unistr/u16-strncmp.c: Likewise.
31058 * lib/unistr/u16-strncpy.c: Likewise.
31059 * lib/unistr/u16-strnlen.c: Likewise.
31060 * lib/unistr/u16-strpbrk.c: Likewise.
31061 * lib/unistr/u16-strrchr.c: Likewise.
31062 * lib/unistr/u16-strspn.c: Likewise.
31063 * lib/unistr/u16-strstr.c: Likewise.
31064 * lib/unistr/u16-strtok.c: Likewise.
31065 * lib/unistr/u16-to-u32.c: Likewise.
31066 * lib/unistr/u16-to-u8.c: Likewise.
31067 * lib/unistr/u16-uctomb-aux.c: Likewise.
31068 * lib/unistr/u16-uctomb.c: Likewise.
31069 * lib/unistr/u32-check.c: Likewise.
31070 * lib/unistr/u32-chr.c: Likewise.
31071 * lib/unistr/u32-cmp.c: Likewise.
31072 * lib/unistr/u32-cpy-alloc.c: Likewise.
31073 * lib/unistr/u32-cpy.c: Likewise.
31074 * lib/unistr/u32-endswith.c: Likewise.
31075 * lib/unistr/u32-mblen.c: Likewise.
31076 * lib/unistr/u32-mbsnlen.c: Likewise.
31077 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31078 * lib/unistr/u32-mbtouc.c: Likewise.
31079 * lib/unistr/u32-mbtoucr.c: Likewise.
31080 * lib/unistr/u32-move.c: Likewise.
31081 * lib/unistr/u32-next.c: Likewise.
31082 * lib/unistr/u32-prev.c: Likewise.
31083 * lib/unistr/u32-set.c: Likewise.
31084 * lib/unistr/u32-startswith.c: Likewise.
31085 * lib/unistr/u32-stpcpy.c: Likewise.
31086 * lib/unistr/u32-stpncpy.c: Likewise.
31087 * lib/unistr/u32-strcat.c: Likewise.
31088 * lib/unistr/u32-strchr.c: Likewise.
31089 * lib/unistr/u32-strcmp.c: Likewise.
31090 * lib/unistr/u32-strcpy.c: Likewise.
31091 * lib/unistr/u32-strcspn.c: Likewise.
31092 * lib/unistr/u32-strdup.c: Likewise.
31093 * lib/unistr/u32-strlen.c: Likewise.
31094 * lib/unistr/u32-strmblen.c: Likewise.
31095 * lib/unistr/u32-strmbtouc.c: Likewise.
31096 * lib/unistr/u32-strncat.c: Likewise.
31097 * lib/unistr/u32-strncmp.c: Likewise.
31098 * lib/unistr/u32-strncpy.c: Likewise.
31099 * lib/unistr/u32-strnlen.c: Likewise.
31100 * lib/unistr/u32-strpbrk.c: Likewise.
31101 * lib/unistr/u32-strrchr.c: Likewise.
31102 * lib/unistr/u32-strspn.c: Likewise.
31103 * lib/unistr/u32-strstr.c: Likewise.
31104 * lib/unistr/u32-strtok.c: Likewise.
31105 * lib/unistr/u32-to-u16.c: Likewise.
31106 * lib/unistr/u32-to-u8.c: Likewise.
31107 * lib/unistr/u32-uctomb.c: Likewise.
31108 * lib/unistr/u8-check.c: Likewise.
31109 * lib/unistr/u8-chr.c: Likewise.
31110 * lib/unistr/u8-cmp.c: Likewise.
31111 * lib/unistr/u8-cpy-alloc.c: Likewise.
31112 * lib/unistr/u8-cpy.c: Likewise.
31113 * lib/unistr/u8-endswith.c: Likewise.
31114 * lib/unistr/u8-mblen.c: Likewise.
31115 * lib/unistr/u8-mbsnlen.c: Likewise.
31116 * lib/unistr/u8-mbtouc-aux.c: Likewise.
31117 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31118 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31119 * lib/unistr/u8-mbtouc.c: Likewise.
31120 * lib/unistr/u8-mbtoucr.c: Likewise.
31121 * lib/unistr/u8-move.c: Likewise.
31122 * lib/unistr/u8-next.c: Likewise.
31123 * lib/unistr/u8-prev.c: Likewise.
31124 * lib/unistr/u8-set.c: Likewise.
31125 * lib/unistr/u8-startswith.c: Likewise.
31126 * lib/unistr/u8-stpcpy.c: Likewise.
31127 * lib/unistr/u8-stpncpy.c: Likewise.
31128 * lib/unistr/u8-strcat.c: Likewise.
31129 * lib/unistr/u8-strchr.c: Likewise.
31130 * lib/unistr/u8-strcmp.c: Likewise.
31131 * lib/unistr/u8-strcpy.c: Likewise.
31132 * lib/unistr/u8-strcspn.c: Likewise.
31133 * lib/unistr/u8-strdup.c: Likewise.
31134 * lib/unistr/u8-strlen.c: Likewise.
31135 * lib/unistr/u8-strmblen.c: Likewise.
31136 * lib/unistr/u8-strmbtouc.c: Likewise.
31137 * lib/unistr/u8-strncat.c: Likewise.
31138 * lib/unistr/u8-strncmp.c: Likewise.
31139 * lib/unistr/u8-strncpy.c: Likewise.
31140 * lib/unistr/u8-strnlen.c: Likewise.
31141 * lib/unistr/u8-strpbrk.c: Likewise.
31142 * lib/unistr/u8-strrchr.c: Likewise.
31143 * lib/unistr/u8-strspn.c: Likewise.
31144 * lib/unistr/u8-strstr.c: Likewise.
31145 * lib/unistr/u8-strtok.c: Likewise.
31146 * lib/unistr/u8-to-u16.c: Likewise.
31147 * lib/unistr/u8-to-u32.c: Likewise.
31148 * lib/unistr/u8-uctomb-aux.c: Likewise.
31149 * lib/unistr/u8-uctomb.c: Likewise.
31150 * lib/unitypes.h: Likewise.
31151 * lib/uniwidth.h: Likewise.
31152 * lib/uniwidth/cjk.h: Likewise.
31153 * lib/uniwidth/u16-strwidth.c: Likewise.
31154 * lib/uniwidth/u16-width.c: Likewise.
31155 * lib/uniwidth/u32-strwidth.c: Likewise.
31156 * lib/uniwidth/u32-width.c: Likewise.
31157 * lib/uniwidth/u8-strwidth.c: Likewise.
31158 * lib/uniwidth/u8-width.c: Likewise.
31159 * lib/uniwidth/width.c: Likewise.
31161 2007-10-07 Bruno Haible <bruno@clisp.org>
31163 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31164 The file is still under LGPL (see modules/inttypes).
31166 2007-10-06 Bruno Haible <bruno@clisp.org>
31168 * modules/trunc (Dependencies): Add 'extensions'.
31169 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31170 Reported by Ben Pfaff <blp@gnu.org>.
31172 2007-10-06 Bruno Haible <bruno@clisp.org>
31174 * modules/freopen-tests: New file.
31175 * tests/test-freopen.c: New file.
31177 * modules/fopen-tests: New file.
31178 * tests/test-fopen.c: New file.
31180 * modules/fopen: New file.
31181 * lib/fopen.c: New file.
31182 * m4/fopen.m4: New file.
31183 * modules/freopen: New file.
31184 * lib/freopen.c: New file.
31185 * m4/freopen.m4: New file.
31186 * lib/stdio.in.h (fopen, freopen): New declarations.
31187 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31188 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31189 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31190 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31191 * doc/functions/fopen.texi: Mention the 'fopen' module.
31192 * doc/functions/freopen.texi: Mention the 'freopen' module.
31194 2007-10-06 Bruno Haible <bruno@clisp.org>
31196 * modules/open-tests: New file.
31197 * tests/test-open.c: New file.
31199 * modules/open: New file.
31200 * lib/open.c: New file.
31201 * m4/open.m4: New file.
31202 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31204 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31205 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31207 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31208 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31210 * doc/functions/open.texi: Mention the 'open' module.
31212 2007-10-04 Bruno Haible <bruno@clisp.org>
31214 * modules/ceill-tests: New file.
31215 * tests/test-ceill.c: New file.
31217 * modules/ceill: New file.
31218 * lib/ceill.c: Replace entire file.
31219 * m4/ceill.m4: New file.
31220 * lib/math.in.h (ceill): Replace declaration.
31221 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31222 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31223 * doc/functions/ceill.texi: Mention the 'ceill' module.
31224 * modules/mathl (Files): Remove lib/ceill.c.
31225 (Depends-on): Add ceill.
31227 2007-10-04 Bruno Haible <bruno@clisp.org>
31229 * modules/ceilf-tests: New file.
31230 * tests/test-ceilf.c: New file.
31232 * modules/ceilf: New file.
31233 * lib/ceil.c: New file.
31234 * lib/ceilf.c: New file.
31235 * m4/ceilf.m4: New file.
31236 * lib/math.in.h (ceilf): New declaration.
31237 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31239 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31241 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31243 2007-10-04 Bruno Haible <bruno@clisp.org>
31245 * modules/floorl-tests: New file.
31246 * tests/test-floorl.c: New file.
31248 * modules/floorl: New file.
31249 * lib/floorl.c: Replace entire file.
31250 * m4/floorl.m4: New file.
31251 * lib/math.in.h (floorl): Replace declaration.
31252 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31253 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31254 * doc/functions/floorl.texi: Mention the 'floorl' module.
31255 * modules/mathl (Files): Remove lib/floorl.c.
31256 (Depends-on): Add floorl.
31258 2007-10-04 Bruno Haible <bruno@clisp.org>
31260 * modules/floorf-tests: New file.
31261 * tests/test-floorf.c: New file.
31263 * modules/floorf: New file.
31264 * lib/floor.c: New file.
31265 * lib/floorf.c: New file.
31266 * m4/floorf.m4: New file.
31267 * lib/math.in.h (floorf): New declaration.
31268 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31270 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31272 * doc/functions/floorf.texi: Mention the 'floorf' module.
31274 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
31275 Bruno Haible <bruno@clisp.org>
31277 Advertise for the Git server instead of the CVS server.
31278 * doc/gnulib-intro.texi (Steady Development): Mention the Git
31279 repository instead of the CVS one.
31280 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31281 about all VCS systems generically.
31282 * doc/gnulib.texi (Introduction): Capitalize `Git'.
31284 2007-10-04 Bruno Haible <bruno@clisp.org>
31286 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31288 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31290 2007-10-04 Bruno Haible <bruno@clisp.org>
31292 * modules/truncl-tests: New file.
31293 * tests/test-truncl.c: New file.
31295 * modules/truncl: New file.
31296 * lib/truncl.c: New file.
31297 * m4/truncl.m4: New file.
31298 * lib/math.in.h (truncl): New declaration.
31299 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31301 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31303 * doc/functions/truncl.texi: Mention the 'truncl' module.
31305 2007-10-04 Bruno Haible <bruno@clisp.org>
31307 * modules/truncf-tests: New file.
31308 * tests/test-truncf.c: New file.
31310 * modules/truncf: New file.
31311 * lib/trunc.c: Make paramerizable through USE_* macros.
31312 * lib/truncf.c: New file.
31313 * m4/truncf.m4: New file.
31314 * lib/math.in.h (truncf): New declaration.
31315 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31317 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31319 * doc/functions/truncf.texi: Mention the 'truncf' module.
31321 2007-10-03 Bruno Haible <bruno@clisp.org>
31323 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31324 augmentation also for tests modules.
31325 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31326 * modules/atexit-tests (Makefile.am): Likewise.
31327 * modules/binary-io-tests (Makefile.am): Likewise.
31328 * modules/c-strcase-tests (Makefile.am): Likewise.
31329 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31330 * modules/canonicalize-tests (Makefile.am): Likewise.
31331 * modules/closein-tests (Makefile.am): Likewise.
31332 * modules/fprintf-posix-tests (Makefile.am): Likewise.
31333 * modules/freadahead-tests (Makefile.am): Likewise.
31334 * modules/fseek-tests (Makefile.am): Likewise.
31335 * modules/fseeko-tests (Makefile.am): Likewise.
31336 * modules/ftell-tests (Makefile.am): Likewise.
31337 * modules/ftello-tests (Makefile.am): Likewise.
31338 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31339 * modules/isnanl-tests (Makefile.am): Likewise.
31340 * modules/lseek-tests (Makefile.am): Likewise.
31341 * modules/mbscasecmp-tests (Makefile.am): Likewise.
31342 * modules/mbscasestr-tests (Makefile.am): Likewise.
31343 * modules/mbschr-tests (Makefile.am): Likewise.
31344 * modules/mbscspn-tests (Makefile.am): Likewise.
31345 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31346 * modules/mbspbrk-tests (Makefile.am): Likewise.
31347 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31348 * modules/mbsrchr-tests (Makefile.am): Likewise.
31349 * modules/mbsspn-tests (Makefile.am): Likewise.
31350 * modules/mbsstr-tests (Makefile.am): Likewise.
31351 * modules/printf-posix-tests (Makefile.am): Likewise.
31352 * modules/snprintf-posix-tests (Makefile.am): Likewise.
31353 * modules/sprintf-posix-tests (Makefile.am): Likewise.
31354 * modules/tsearch-tests (Makefile.am): Likewise.
31355 * modules/uniname/uniname-tests (Makefile.am): Likewise.
31356 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31357 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31358 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31359 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31360 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31361 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31362 * modules/vprintf-posix-tests (Makefile.am): Likewise.
31363 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31364 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31365 * modules/xstrtoimax-tests (Makefile.am): Likewise.
31366 * modules/xstrtol-tests (Makefile.am): Likewise.
31367 * modules/xstrtoumax-tests (Makefile.am): Likewise.
31368 * modules/yesno-tests (Makefile.am): Likewise.
31370 2007-10-03 Bruno Haible <bruno@clisp.org>
31372 * modules/trunc-tests: New file.
31373 * tests/test-trunc.c: New file.
31375 * modules/trunc: New file.
31376 * lib/trunc.c: New file.
31377 * m4/trunc.m4: New file.
31378 * lib/math.in.h (trunc): New declaration.
31379 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31381 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31383 * doc/functions/trunc.texi: Mention the 'trunc' module.
31385 2007-10-03 Bruno Haible <bruno@clisp.org>
31387 * tests/test-fpending.c: New file, mostly copied
31388 from coreutils/lib/t-fpending.c.
31389 * modules/fpending-tests: New file.
31391 2007-10-03 Bruno Haible <bruno@clisp.org>
31393 Port the stdio extensions to QNX (untested).
31394 * lib/fseterr.c (fseterr): Add support for QNX.
31395 * lib/fbufmode.c (fbufmode): Likewise.
31396 * lib/freadable.c (freadable): Likewise.
31397 * lib/fwritable.c (fwritable): Likewise.
31398 * lib/freading.c (freading): Likewise.
31399 * lib/fwriting.c (fwriting): Likewise.
31400 * lib/freadahead.c (freadahed): Likewise.
31401 * lib/fpurge.c (fpurge): Likewise.
31402 * lib/fseeko.c (rpl_fseeko): Likewise.
31404 2007-10-03 Bruno Haible <bruno@clisp.org>
31405 Jim Meyering <jim@meyering.net>
31406 Eric Blake <ebb9@byu.net>
31408 * doc/relocatable.texi: Use @command instead of @program.
31410 2007-10-02 Jim Meyering <jim@meyering.net>
31412 Perform one more "_.h" -> ".in.h" substitution.
31413 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31414 instead of unistd_.h here, too.
31416 2007-10-01 Bruno Haible <bruno@clisp.org>
31418 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31419 Needed for the alloca-opt module.
31421 2007-09-30 Bruno Haible <bruno@clisp.org>
31423 * lib/alloca.in.h: Renamed from lib/alloca_.h.
31424 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31426 * lib/argz.in.h: Renamed from lib/argz_.h.
31427 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31428 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31429 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31431 * lib/dirent.in.h: Renamed from lib/dirent_.h.
31432 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31434 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31435 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31437 * lib/float.in.h: Renamed from lib/float_.h.
31438 * modules/float (Files, Makefile.am): Use float.in.h instead of
31440 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31441 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31443 * lib/getopt.in.h: Renamed from lib/getopt_.h.
31444 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31446 * lib/glob.in.h: Renamed from lib/glob_.h.
31447 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31448 * lib/iconv.in.h: Renamed from lib/iconv_.h.
31449 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31451 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31452 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31454 * lib/locale.in.h: Renamed from lib/locale_.h.
31455 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31457 * lib/math.in.h: Renamed from lib/math_.h.
31458 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31459 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31460 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31461 of netinet_in_.h. Add dependency.
31462 * lib/poll.in.h: Renamed from lib/poll_.h.
31463 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31464 * lib/search.in.h: Renamed from lib/search_.h.
31465 * modules/search (Files, Makefile.am): Use search.in.h instead of
31467 * lib/signal.in.h: Renamed from lib/signal_.h.
31468 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31470 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31471 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31473 * lib/stdint.in.h: Renamed from lib/stdint_.h.
31474 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31476 * lib/stdio.in.h: Renamed from lib/stdio_.h.
31477 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31479 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31480 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31482 * lib/string.in.h: Renamed from lib/string_.h.
31483 * modules/string (Files, Makefile.am): Use string.in.h instead of
31485 * doc/gnulib-tool.texi (Initial import): Update.
31486 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31487 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31488 of sys_select_.h. Add dependency.
31489 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31490 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31492 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31493 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31495 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31496 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31498 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31499 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31501 * lib/time.in.h: Renamed from lib/time_.h.
31502 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31503 * lib/unistd.in.h: Renamed from lib/unistd_.h.
31504 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31506 * lib/wchar.in.h: Renamed from lib/wchar_.h.
31507 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31509 * lib/wctype.in.h: Renamed from lib/wctype_.h.
31510 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31512 * build-aux/bootstrap (slurp): Update.
31513 * lib/.cppi-disable: Update.
31515 2007-09-30 Bruno Haible <bruno@clisp.org>
31517 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31520 2007-09-30 Bruno Haible <bruno@clisp.org>
31522 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31524 2007-09-29 Bruno Haible <bruno@clisp.org>
31526 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31528 2007-09-29 Bruno Haible <bruno@clisp.org>
31530 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31531 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31532 * build-aux/install-reloc: Compile also areadlink.c.
31533 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31535 2007-09-29 Bruno Haible <bruno@clisp.org>
31537 * gnulib-tool (func_emit_initmacro_done): Indentation.
31539 2007-09-29 Bruno Haible <bruno@clisp.org>
31541 * README: Add CVS checkout update instructions.
31542 Info from Bob Proulx <bob@proulx.com>.
31544 2007-09-28 Eric Blake <ebb9@byu.net>
31546 Provide move-if-change.
31547 * build-aux/move-if-change: New file, based on best practice
31548 rather than any canonical upstream location.
31550 2007-09-28 Jim Meyering <jim@meyering.net>
31552 Fix canonicalize loop-detection corner case.
31553 Do not attempt to stat the symlink values stored via seen_triple.
31554 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31555 on linux-2.6.18, (but not 2.6.22).
31556 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31557 triple_compare. The former compares dev,ino,filename, while the latter
31558 would actually stat dirname(filename) when dev and ino were equal.
31559 * lib/hash-triple.c: Install <string.h>.
31561 (triple_compare_ino_str): New function.
31562 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31564 2007-09-28 Eric Blake <ebb9@byu.net>
31566 Enforce that AC_REPLACE_FUNCS files exist.
31567 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31568 override check for typos.
31570 Fix test-closein on Solaris 10.
31571 * tests/test-closein.c (main): Don't assume stdin can be inherited
31572 closed on all systems.
31573 * tests/test-closein.sh: Likewise.
31574 Reported by Piotr Tarnowski.
31576 2007-09-28 Jim Meyering <jim@meyering.net>
31578 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31580 2007-09-27 Jim Meyering <jim@meyering.net>
31582 canonicalize: Avoid a false-positive cycle failure.
31583 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31584 Sort. Remove cycle-check.
31585 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31587 (seen_triple): New function.
31588 (canonicalize_filename_mode): Use it instead of cycle-check.
31589 * tests/test-canonicalize.c: Add a test for this bug.
31590 * tests/test-canonicalize.sh: Set up and run the test.
31592 New module, file-set, from coreutils.
31593 * modules/file-set: Define it.
31594 * lib/file-set.c, lib/file-set.h: Implement.
31596 New module, hash-triple, from coreutils.
31597 * modules/hash-triple: Define it.
31598 * lib/hash-triple.c, lib/hash-triple.h: Implement.
31600 2007-09-25 Eric Blake <ebb9@byu.net>
31602 Fix strerror on Interix.
31603 * lib/string_.h (strerror): Declare replacement.
31604 * doc/functions/strerror.texi (strerror): Document the Interix
31606 * modules/string (Makefile.am): Support new hooks.
31607 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31608 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31609 gl_FUNC_STRERROR_SEPARATE.
31610 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31611 * lib/strerror.c (rpl_strerror): Provide replacement.
31612 * modules/strerror (Depends-on): Add string.
31613 (configure.ac): Detect use of module.
31614 * tests/test-strerror.c: New file.
31615 * modules/strerror-tests: New test module.
31616 * modules/argp (Depends-on): Add strerror.
31617 * modules/error (Depends-on): Likewise.
31618 Reported by Martin Koeppe.
31620 2007-09-24 Bruno Haible <bruno@clisp.org>
31622 * README: Update git instructions.
31624 2007-09-24 Eric Blake <ebb9@byu.net>
31626 Revert fpending breakage from 2007-09-08.
31627 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31630 2007-09-24 Jim Meyering <jim@meyering.net>
31632 filenamecat.c: Add a test.
31633 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31634 showing how the function works when DIR is the empty string.
31636 2007-09-21 Simon Josefsson <simon@josefsson.org>
31638 * tests/test-canonicalize.sh: Turn on executable bit.
31640 2007-09-19 Eric Blake <ebb9@byu.net>
31642 * README: Update CVS instructions.
31644 2007-09-18 Bruno Haible <bruno@clisp.org>
31646 * modules/areadlink: New file.
31647 * lib/areadlink.h (areadlink): New declaration.
31648 * lib/areadlink.c: New file, based on lib/xreadlink.c.
31650 2007-09-17 Jim Meyering <jim@meyering.net>
31652 * lib/savewd.c (ESTALE) [!defined]: Define.
31653 Reported to be required on Interix by Martin Koeppe.
31655 2007-09-17 Bruno Haible <bruno@clisp.org>
31657 * gnulib-tool (func_version): Use $version.
31659 2007-09-16 Bruno Haible <bruno@clisp.org>
31661 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31662 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31663 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31664 Reported by Greg Schafer <gschafer@zip.com.au>.
31666 2007-09-15 Bruno Haible <bruno@clisp.org>
31668 * gnulib-tool (sed): Try a little harder to make bash understand the
31670 Reported by Bruce Korb <bruce.korb@gmail.com>.
31672 2007-09-13 Eric Blake <ebb9@byu.net>
31674 * ChangeLog: Remove conflict markers.
31676 2007-09-13 Simon Josefsson <simon@josefsson.org>
31678 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31679 Reported by Bruno Haible <bruno@clisp.org>.
31681 2007-09-12 Bruno Haible <bruno@clisp.org>
31683 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31684 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31687 2007-09-12 Eric Blake <ebb9@byu.net>
31689 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31690 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31691 Autoconf definition.
31692 * modules/euidaccess (Depends-on): Add extensions, for
31693 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31694 * modules/fnmatch (Depends-on): Likewise.
31695 * modules/getaddrinfo (Depends-on): Likewise.
31696 * modules/getdelim (Depends-on): Likewise.
31697 * modules/getline (Depends-on): Likewise.
31698 * modules/getsubopt (Depends-on): Likewise.
31699 * modules/gettext (Depends-on): Likewise.
31700 * modules/group-member (Depends-on): Likewise.
31701 * modules/mbchar (Depends-on): Likewise.
31702 * modules/memmem (Depends-on): Likewise.
31703 * modules/mempcpy (Depends-on): Likewise.
31704 * modules/memrchr (Depends-on): Likewise.
31705 * modules/pagealign_alloc (Depends-on): Likewise.
31706 * modules/readutmp (Depends-on): Likewise.
31707 * modules/stpcpy (Depends-on): Likewise.
31708 * modules/stpncpy (Depends-on): Likewise.
31709 * modules/strchrnul (Depends-on): Likewise.
31710 * modules/strndup (Depends-on): Likewise.
31711 * modules/strsep (Depends-on): Likewise.
31712 * modules/strverscmp (Depends-on): Likewise.
31713 * modules/vasprintf (Depends-on): Likewise.
31714 * modules/wcwidth (Depends-on): Likewise.
31715 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31716 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31717 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31718 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31719 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31720 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31721 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31722 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31723 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31724 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31725 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31726 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31727 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31728 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31729 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31730 * m4/readutmp.m4 (gl_READUTMP): Likewise.
31731 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31732 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31733 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31734 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31735 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31736 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31737 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31738 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31739 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31740 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31741 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31742 so that lock.m4 can be used in gettext without extensions module.
31744 2007-09-11 Bruno Haible <bruno@clisp.org>
31746 * m4/isc-posix.m4: Remove file.
31747 Suggested by Eric Blake.
31749 2007-09-11 Eric Blake <ebb9@byu.net>
31751 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31753 2007-09-10 Bruno Haible <bruno@clisp.org>
31755 * posix-modules: Fix typo in error message.
31756 Reported by Matt <mkraai@beckman.com>.
31758 2007-09-09 Bruno Haible <bruno@clisp.org>
31760 * doc/functions/getdelim.texi: Update list of platforms lacking the
31762 * doc/functions/getline.texi: Likewise.
31764 2007-09-09 Jim Meyering <jim@meyering.net>
31766 * lib/hash.c (hash_initialize): Detect calloc failure.
31767 Reported by Bruno Haible.
31769 2007-09-09 Bruno Haible <bruno@clisp.org>
31771 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31772 malloc or realloc fails.
31774 2007-09-09 Bruno Haible <bruno@clisp.org>
31776 * modules/getcwd (Depends-on): Add malloc-posix.
31777 * modules/glob (Depends-on): Likewise.
31778 * modules/putenv (Depends-on): Likewise.
31779 * modules/strdup (Depends-on): Likewise.
31780 * modules/getdelim (Depends-on): Add realloc-posix.
31781 * modules/read-file (Depends-on): Likewise.
31783 2007-09-09 Bruno Haible <bruno@clisp.org>
31785 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31786 (gl_FUNC_MALLOC_POSIX): Require it.
31787 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31788 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31789 * modules/realloc (Files): Add m4/malloc.m4.
31790 * modules/calloc (Files): Likewise.
31792 2007-09-09 Bruno Haible <bruno@clisp.org>
31794 * modules/malloc-posix: New file.
31795 * modules/malloc (Depends-on): Add malloc-posix.
31796 * lib/malloc.c: Include errno.h.
31797 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31798 and a POSIX-compatible malloc into a single function. Set ENOMEM
31799 when returning NULL.
31800 * m4/malloc.m4: New file.
31801 * doc/functions/malloc.texi: Mention the malloc-posix module.
31802 * lib/stdlib_.h (malloc): New declaration.
31803 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31804 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31805 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31806 and HAVE_MALLOC_POSIX.
31808 2007-09-09 Bruno Haible <bruno@clisp.org>
31810 * modules/realloc-posix: New file.
31811 * modules/realloc (Depends-on): Add realloc-posix.
31812 * lib/realloc.c: Include errno.h.
31813 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31814 and a POSIX-compatible realloc into a single function. Set ENOMEM
31815 when returning NULL.
31816 * m4/realloc.m4: New file.
31817 * doc/functions/realloc.texi: Mention the realloc-posix module.
31818 * lib/stdlib_.h (realloc): New declaration.
31819 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31820 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31821 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31822 and HAVE_REALLOC_POSIX.
31824 2007-09-09 Bruno Haible <bruno@clisp.org>
31826 * modules/calloc-posix: New file.
31827 * modules/calloc (Depends-on): Add calloc-posix.
31828 * lib/calloc.c: Include errno.h.
31829 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31830 and a POSIX-compatible calloc into a single function. Set ENOMEM
31831 when returning NULL.
31832 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31833 * doc/functions/calloc.texi: Mention the calloc-posix module.
31834 * lib/stdlib_.h (calloc): New declaration.
31835 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31836 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31837 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31838 and HAVE_CALLOC_POSIX.
31840 2007-09-09 Bruno Haible <bruno@clisp.org>
31842 Allow for modules to show an arbitrary notice.
31843 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31844 * gnulib-tool: New option --extract-notice.
31845 (func_usage): Document it.
31846 (sed_extract_prog): Update.
31847 (func_get_notice): New function.
31848 (func_modules_notice): New function.
31849 (func_import, func_create_testdir): Invoke it.
31850 Suggested by Jim Meyering.
31852 2007-09-09 Bruno Haible <bruno@clisp.org>
31854 * gnulib-tool: New options --verbose, --quiet.
31855 (func_usage): Document them.
31856 (verbose): New variable.
31857 (func_execute_command): New function.
31858 (func_import): Don't show the module list and the file list if
31860 (func_create_testdir): Likewise. Use func_execute_command.
31861 (func_create_megatestdir): Use func_execute_command.
31863 2007-09-08 Bruno Haible <bruno@clisp.org>
31865 * gnulib-tool (func_import): Prefer rsync over wget when available,
31866 for fetching the PO files.
31868 2007-09-08 Bruno Haible <bruno@clisp.org>
31870 * posix-modules: New file. Portions copied from gnulib-tool.
31871 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31873 2007-09-08 Jim Meyering <jim@meyering.net>
31875 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31876 * lib/fpending.h: Rename from __fpending.h.
31877 * lib/fpending.c: Rename from __fpending.c.
31878 Include "fpending.h", not "__fpending.h".
31879 * lib/__fpending.h, lib/__fpending.c: Remove files.
31880 * modules/fpending (Files): Reflect new file names.
31881 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31883 2007-09-08 Bruno Haible <bruno@clisp.org>
31885 * m4/inttypes-h.m4: Remove stub file.
31887 2007-09-07 Simon Josefsson <simon@josefsson.org>
31889 * doc/headers/stdint.texi: Discuss #include_next issue.
31891 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
31893 * build-aux/bootstrap: Remove obsolete comment about wget --help.
31895 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31897 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31900 2007-09-03 Jim Meyering <jim@meyering.net>
31902 New module: git-version-gen.
31903 * modules/git-version-gen: New file.
31905 Import changes from coreutils for bootstrap script.
31907 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31909 bootstrap: uses rsync to download the .po files
31910 * build-aux/bootstrap (po_download_command_format): New global.
31911 (download_po_files): Use rsync.
31912 (update_po_files): Don't remove .po files after download,
31913 so future rsync runs can take advantage of the copies.
31915 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31917 Solve the unnecessary-.po-file-regeneration problem once and for all.
31918 * build-aux/bootstrap (download_po_files): New function, renamed from
31919 get_translations. Now, downloads, but doesn't update LINGUAS.
31920 (update_po_files): New function.
31922 bootstrap: Ignore more.
31923 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31924 uniwidth to e.g., lib/.gitignore.
31925 (slurp): Handle the sys_stat_.h -> sys mapping, too.
31927 * build-aux/bootstrap: New setting: vc_ignore.
31928 (insert_sorted_if_absent): Create $file if absent.
31929 Adapt to new, possibly empty, list: $vc_ignore.
31931 bootstrap: generate more ignorable names
31932 * build-aux/bootstrap (slurp): When generating ignorable names,
31933 also map .sin to .sed, .gperf to .c, and .y to .c.
31935 2007-09-03 Jim Meyering <jim@meyering.net>
31937 * build-aux/git-version-gen: New file, from coreutils. For details, see
31938 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31940 2007-09-02 Bruno Haible <bruno@clisp.org>
31942 Fix mis-recognition of 'mcs' on QNX 6.
31943 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31944 output contains the string "Mono".
31945 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31946 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31948 2007-09-01 Bruno Haible <bruno@clisp.org>
31950 Fix collision between uniwidth/* and linebreak modules.
31951 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31952 u32_width): Remove declarations.
31953 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31954 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31955 streq3, streq2, streq1, streq0): Remove functions.
31956 (STREQ): Remove macro.
31957 (is_cjk_encoding): Remove function.
31958 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31959 (uc_width, u8_width, u16_width, u32_width): Remove functions.
31960 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31961 * NEWS: Document the change.
31963 2007-09-01 Bruno Haible <bruno@clisp.org>
31965 * lib/streq.h: Add double-inclusion guard.
31967 2007-09-01 Karl Berry <karl@gnu.org>
31969 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31971 2007-08-28 Jim Meyering <jim@meyering.net>
31973 Rename mreadlink_with_size to areadlink_with_size.
31974 * NEWS: Document the change.
31975 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31976 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31977 * lib/mreadlink.h: Rename this to...
31978 * lib/areadlink.h: ...this.
31979 * modules/mreadlink-with-size: Rename this to...
31980 * modules/areadlink-with-size: ...this.
31981 * lib/canonicalize.c: Reflect the renaming.
31982 * modules/canonicalize: Likewise.
31984 2007-08-26 Bruno Haible <bruno@clisp.org>
31986 * gnulib-tool (func_import): When deciding which files to remove,
31987 consider also dangling symbolic links.
31988 Reported by Eric Blake.
31990 2007-08-26 Bruno Haible <bruno@clisp.org>
31992 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31994 2007-08-23 Simon Josefsson <simon@josefsson.org>
31996 * lib/readline.c: Don't include getline.h, the prototype is now
31999 2007-08-23 Jim Meyering <jim@meyering.net>
32002 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32003 around the funlockfile call, since funlockfile never sets errno.
32004 Don't set errno upon failed realloc.
32006 2007-08-22 Eric Blake <ebb9@byu.net>
32009 * lib/getdelim.c (getdelim): Revert regression that required *n to
32010 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
32011 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32012 getdelim, rather than whether implementation is missing.
32013 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32014 * lib/stdio_.h (getline): Also declare if replacement is
32016 * doc/functions/getdelim.texi: New file.
32017 * doc/functions/getline.texi: Likewise.
32018 * doc/gnulib.texi (Function Substitutes): Add new files.
32019 Reported by Bruno Haible.
32021 2007-08-22 Ludovic Courtès <ludo@gnu.org>
32023 * users.txt: Add Guile.
32025 2007-08-22 Eric Blake <ebb9@byu.net>
32027 * tests/test-getdelim.c (main): Use remove, not unlink.
32028 * tests/test-getline.c (main): Likewise.
32030 Move getline and getdelim into stdio.h, per POSIX 200x.
32031 * modules/getline (Files): Remove getline.h.
32032 (Depends-on): Add stdio.
32033 (configure.ac): Add module indicator.
32034 * modules/getdelim (Files): Remove getdelim.h.
32035 (Depends-on): Add stdio.
32036 (configure.ac): Add module indicator.
32037 * modules/stdio (Makefile.am): Work with new indicators.
32038 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32039 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32040 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32041 * lib/getdelim.h: Delete.
32042 * lib/getline.h: Delete.
32043 * lib/stdio_.h (getdelim, getline): Declare.
32044 * modules/getdelim-tests: New module.
32045 * modules/getline-tests: Likewise.
32046 * tests/test-getdelim.c: New file.
32047 * tests/test-getline.c: Likewise.
32048 * NEWS: Document the change.
32049 * lib/getline.c: Update choice of header.
32050 * lib/csharpcomp.c: Likewise.
32051 * lib/getpass.c: Likewise.
32052 * lib/javacomp.c: Likewise.
32053 * lib/javaversion.c: Likewise.
32054 * lib/yesno.c: Likewise.
32055 * lib/getdelim.c: Likewise.
32056 (getdelim): Set errno on failure, and avoid memory leak.
32058 2007-08-19 Bruno Haible <bruno@clisp.org>
32060 * modules/closein (Depends-on): Add freadahead.
32061 * lib/closein.c: Include freadahead.h.
32062 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32065 2007-08-19 Bruno Haible <bruno@clisp.org>
32067 * modules/freadahead-tests: New file.
32068 * tests/test-freadahead.sh: New file.
32069 * tests/test-freadahead.c: New file.
32071 * modules/freadahead: New file.
32072 * lib/freadahead.h: New file.
32073 * lib/freadahead.c: New file.
32074 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32075 fbufmode, fpurge, freadable, fwritable.
32077 2007-08-19 Eric Blake <ebb9@byu.net>
32079 Test yesno in combination with closein.
32080 * lib/yesno.c (yesno): Document use of stdin.
32081 * modules/yesno-tests (Files): New module.
32082 * tests/test-yesno.c (main): New file.
32083 * tests/test-yesno.sh: Likewise.
32085 2007-08-19 Bruno Haible <bruno@clisp.org>
32087 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32088 * lib/fseeko.c (rpl_fseeko): Likewise.
32089 * lib/fseterr.c (fseterr): Likewise.
32091 2007-08-19 Bruno Haible <bruno@clisp.org>
32093 * tests/test-lseek.c (main): Disable a test for BeOS.
32094 * doc/functions/lseek.texi: Document the BeOS bug.
32096 2007-08-19 Bruno Haible <bruno@clisp.org>
32097 Eric Blake <ebb9@byu.net>
32099 * lib/lseek.c: Include <sys/stat.h>.
32100 (rpl_lseek): Add workaround code also for Unix platforms.
32102 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32103 * doc/functions/lseek.texi: Document BeOS definiency.
32105 2007-08-18 Bruno Haible <bruno@clisp.org>
32107 * modules/fstrcmp-tests: New file.
32108 * tests/test-fstrcmp.c: New file.
32110 2007-08-18 Bruno Haible <bruno@clisp.org>
32112 * modules/fstrcmp: New file, from GNU gettext with modifications.
32113 * lib/fstrcmp.h: New file, from GNU gettext.
32114 * lib/fstrcmp.c: New file, from GNU gettext.
32115 * MODULES.html.sh (String handling): Add fstrcmp.
32117 2007-08-18 Bruno Haible <bruno@clisp.org>
32119 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32121 (diag, compareseq): Remove const from the ctxt argument.
32122 (USE_HEURISTIC): Undefine at the end.
32124 2007-08-18 Jim Meyering <jim@meyering.net>
32126 New file: lib/idcache.h
32127 * NEWS: Mention the addition.
32128 * modules/idcache (Files): Add lib/idcache.h
32129 * lib/idcache.c: Include "idcache.h".
32130 Don't include <sys/types.h>.
32131 Add a FIXME comment.
32132 Move file-scoped "static" declarations to the top.
32133 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
32135 2007-08-17 Bruno Haible <bruno@clisp.org>
32136 and Paul Eggert <eggert@cs.ucla.edu>
32138 * MODULES.html.sh: Add diffseq.
32139 * modules/diffseq: New file.
32140 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32141 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32143 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
32145 Import changes from coreutils for bootstrap script.
32147 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
32149 * build-aux/bootstrap (slurp): Work even in environments where
32150 "ls" defaults to "ls -A". Put in a FIXME, though, since the
32151 current code does not slurp files whose names start with ".", and
32152 this looks like it might be a troublesome area.
32154 2007-07-11 Jim Meyering <jim@meyering.net>
32156 If there's a GPL vN copyright comment, require that N == 3.
32158 2007-07-08 Jim Meyering <jim@meyering.net>
32160 Run the coreutils-specific code only if tests/Makefile.am.in exists.
32161 * build-aux/bootstrap (mam_template): Move definition out of loop.
32163 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32165 * build-aux/bootstrap (symlink_to_dir): Rename function from
32166 symlink_to_gnulib. Add a directory parameter. Update all
32168 (cp_mark_as_generated): Also check for -- and link to -- files in
32171 2007-07-08 Jim Meyering <jim@meyering.net>
32173 Adapt to deeper hierarchy in gnulib.
32174 * build-aux/bootstrap (symlink_to_dir): If the destination
32175 directory doesn't exist, create it. This is required at least for
32176 "lib/uniwidth/cjk.h".
32178 2007-05-15 Jim Meyering <jim@meyering.net>
32180 * build-aux/bootstrap: Now that generated Makefile.am files
32181 are no longer under version control, they must be created at
32184 2007-08-14 Ben Pfaff <blp@gnu.org>
32186 * lib/count-one-bits.h: Add comments. From Bruno Haible.
32188 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
32190 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32191 given the changes below.
32192 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
32193 even on hosts that have padding bits beyond the supported 64.
32195 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
32197 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32198 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32199 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
32201 (xstrtol_error): Remove.
32202 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32203 but with a different signature.
32204 (ATTRIBUTE_NORETURN, __attribute__): New macros.
32205 * lib/xstrtol-error.c: Include exitfail.h.
32206 (xstrtol_fatal): New function, with a different signature from the
32207 old xstrtol_error, so that the caller need not worry about passing
32208 in an exit status, or about storage management of the option argument.
32209 (xstrtol_error): Now a static function. Redo signature to
32210 implement xstrtol_fatal. Output the correct number of hyphens in
32211 front of the option so that the caller need not worry about
32212 storage management.
32214 (_): Remove; not used now.
32215 * modules/xstrtol: Depend on getopt.
32216 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32217 of old STRTOL_FATAL_ERROR macro.
32218 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32220 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32221 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32223 2007-08-08 Eric Blake <ebb9@byu.net>
32225 * lib/xstrtol-error.c: Add missing include.
32227 Move xstrtol messages into gnulib domain, when --pobase is used.
32228 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32229 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32230 * modules/xstrtol (Files): Distribute new file.
32231 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32232 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32233 * tests/test-xstrtol.c: ...into new file.
32234 * tests/test-xstrtoul.c: Also test xstrtoul.
32235 * tests/test-xstrtoimax.c: Also test xstrtoimax.
32236 * tests/test-xstrtoumax.c: Also test xstrtoumax.
32237 * tests/test-xstrtol.sh: Drive the tests.
32238 * tests/test-xstrtoimax.sh: Likewise.
32239 * tests/test-xstrtoumax.sh: Likewise.
32240 * modules/xstrtol-tests: New module.
32241 * modules/xstrtoimax-tests: Likewise.
32242 * modules/xstrtoumax-tests: Likewise.
32244 2007-08-08 Jim Meyering <jim@meyering.net>
32246 New function: mfile_name_concat.
32247 * lib/filenamecat.c (mfile_name_concat): New function, just like
32248 file_name_concat, but return NULL upon failure rather than exiting
32250 * lib/filenamecat.h: Declare it.
32252 2007-08-07 Bruno Haible <bruno@clisp.org>
32254 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32255 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32257 Reported by Eric Blake.
32259 2007-08-07 Simon Josefsson <simon@josefsson.org>
32261 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32262 * modules/crypto/arcfour (License): Likewise.
32263 * modules/crypto/des-tests (License): Likewise.
32264 * modules/crypto/gc-arctwo-tests (License): Likewise.
32265 * modules/crypto/gc-des-tests (License): Likewise.
32266 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32267 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32268 * modules/crypto/gc-md2-tests (License): Likewise.
32269 * modules/crypto/gc-md4-tests (License): Likewise.
32270 * modules/crypto/gc-md5-tests (License): Likewise.
32271 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32272 * modules/crypto/gc-rijndael-tests (License): Likewise.
32273 * modules/crypto/gc-sha1-tests (License): Likewise.
32274 * modules/crypto/gc-tests (License): Likewise.
32275 * modules/crypto/hmac-md5 (License): Likewise.
32276 * modules/crypto/hmac-sha1 (License): Likewise.
32277 * modules/crypto/md2-tests (License): Likewise.
32278 * modules/crypto/md4-tests (License): Likewise.
32279 * modules/crypto/md5 (License): Likewise.
32280 * modules/crypto/rijndael (License): Likewise.
32281 * modules/crypto/sha1 (License): Likewise.
32282 * modules/memxor (License): Likewise.
32284 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
32285 and Bruno Haible <bruno@clisp.org>
32287 * NEWS: Describe interface changes to human, xstrtol.
32288 * lib/human.h: Include <xstrtol.h>.
32289 (human_options): Return enum strtol_error, not int. Remove
32290 bool arg; take int * instead.
32291 * lib/human.c: Don't include "gettext.h".
32292 (_): Remove; no longer used.
32293 Don't include <xstrtol.h>, since human.h does it.
32294 (human_options): Adjust to abovementioned interface changes.
32295 Do not report error to stderr; that's now the caller's
32297 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32299 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32300 Str, Argument_type_string. All uses changed. Put " argument"
32301 in diagnostics to make them clearer. Change wording of suffix
32302 message for clarity.
32303 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32304 Argument_type_string.
32305 (STRTOL_FATAL_WARN): Remove; no longer used.
32306 * modules/human (Depends-on): Remove gettext-h.
32308 2007-08-06 Simon Josefsson <simon@josefsson.org>
32310 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32312 2007-07-31 Bruno Haible <bruno@clisp.org>
32314 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32315 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32316 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32318 2007-07-31 Bruno Haible <bruno@clisp.org>
32320 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32321 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32323 2007-07-30 Bruno Haible <bruno@clisp.org>
32325 * modules/base64 (License): Use the synonymous term "LGPLv2+".
32326 * modules/c-ctype (License): Likewise.
32327 * modules/c-strcase (License): Likewise.
32328 * modules/check-version (License): Likewise.
32329 * modules/iconv (License): Likewise.
32330 * modules/iconv_open (License): Likewise.
32331 * modules/read-file (License): Likewise.
32332 * modules/striconv (License): Likewise.
32333 * modules/strverscmp (License): Likewise.
32334 * modules/vasprintf (License): Likewise.
32335 * modules/crypto/des (License): Likewise.
32336 * modules/crypto/gc (License): Likewise.
32337 * modules/crypto/gc-arcfour (License): Likewise.
32338 * modules/crypto/gc-arctwo (License): Likewise.
32339 * modules/crypto/gc-des (License): Likewise.
32340 * modules/crypto/gc-hmac-md5 (License): Likewise.
32341 * modules/crypto/gc-hmac-sha1 (License): Likewise.
32342 * modules/crypto/gc-md2 (License): Likewise.
32343 * modules/crypto/gc-md4 (License): Likewise.
32344 * modules/crypto/gc-md5 (License): Likewise.
32345 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32346 * modules/crypto/gc-random (License): Likewise.
32347 * modules/crypto/gc-rijndael (License): Likewise.
32348 * modules/crypto/gc-sha1 (License): Likewise.
32349 * modules/crypto/md2 (License): Likewise.
32350 * modules/crypto/md4 (License): Likewise.
32352 2007-07-30 Jim Meyering <jim@meyering.net>
32354 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32355 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32356 it has valid stat data. This bug would cause du not to count the
32357 sizes of inaccessible directories.
32358 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32359 in <http://bugzilla.redhat.com/250077>.
32361 2007-07-25 Peter O'Gorman <peter@pogma.com>
32362 Bruno Haible <bruno@clisp.org>
32364 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32365 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32366 #include_next, gives a diagnostic about it, but reports no error in
32368 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32370 2007-07-24 Ben Pfaff <blp@gnu.org>
32372 Improve name: "count-one-bits" is better than "popcount".
32373 * MODULES.html.sh: Update name.
32374 * lib/popcount.h: Renamed lib/count-one-bits.h.
32375 (popcount): Renamed count_one_bits.
32376 (popcountl): Renamed count_one_bits_l.
32377 (popcountll): Renamed count_one_bits_ll.
32378 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32379 * modules/popcount: Renamed module/count-one-bits.
32380 * modules/popcount-tests: Renamed module/count-one-bits-tests.
32381 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32383 2007-07-23 Ben Pfaff <blp@gnu.org>
32385 * lib/popcount.h (popcount32): Reduce size of constants, to allow
32386 better code generation, and add U to large constants to avoid
32387 warnings, in non-GCC case.
32388 Suggested by Bruno Haible.
32390 2007-07-23 Ben Pfaff <blp@gnu.org>
32392 * lib/popcount.h: Use verify_true instead of if...abort.
32393 * modules/popcount: Depend on verify module.
32394 Suggested by Jim Meyering.
32396 2007-07-23 Bruno Haible <bruno@clisp.org>
32398 * gnulib-tool (func_import): Create a .cvsignore file also when the
32399 directory is not yet in CVS but the toplevel directory is. When
32400 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32401 Reported by Karl Berry.
32403 2007-07-22 Ben Pfaff <blp@gnu.org>
32405 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32407 Suggested by Eric Blake.
32409 2007-07-22 Ben Pfaff <blp@gnu.org>
32411 New module: popcount.
32412 * MODULES.html.sh: Add popcount.
32413 * modules/popcount: New file.
32414 * modules/popcount-tests: New file.
32415 * tests/test-popcount.c: New file.
32416 * lib/popcount.h: New file.
32417 * m4/popcount.m4: New file.
32419 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
32421 * build-aux/announce-gen: Update to GPLv3.
32423 * build-aux/config.guess: Update from config.
32425 2007-07-21 Bruno Haible <bruno@clisp.org>
32427 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32428 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32430 2007-07-20 Jim Meyering <jim@meyering.net>
32432 * check-module: Diagnose a self-dependency.
32434 2007-07-19 Bruno Haible <bruno@clisp.org>
32436 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32438 Reported by Eric Blake.
32440 2007-07-18 Bruno Haible <bruno@clisp.org>
32442 * gnulib-tool: New options --po-base, --po-domain.
32443 (func_usage): Document them.
32444 (pobase, po_domain): New variables.
32445 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32446 DEFAULT_TEXT_DOMAIN.
32447 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32448 (func_import): Consider pobase and po_domain. Create a po/ directory.
32449 (func_create_testdir): Set pobase and po_domain to empty.
32450 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32451 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32453 2007-07-18 Bruno Haible <bruno@clisp.org>
32455 * gnulib-tool (func_get_automake_snippet): Synthesize also an
32456 EXTRA_DIST augmentation for files in build-aux/.
32458 2007-07-16 Bruno Haible <bruno@clisp.org>
32460 * modules/lseek (License): Use the synonymous term "LGPLv2+".
32461 * modules/getdelim (License): Likewise.
32463 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32465 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32466 * modules/d-type (License): Likewise.
32467 * modules/extensions (License): Likewise.
32468 * modules/fnmatch (License): Likewise.
32469 * modules/fseeko (License): Likewise.
32470 * modules/getaddrinfo (License): Likewise.
32471 * modules/getline (License): Likewise.
32472 * modules/getlogin_r (License): Likewise.
32473 * modules/getpass (License): Likewise.
32474 * modules/gettimeofday (License): Likewise.
32475 * modules/glob (License): Likewise.
32476 * modules/inet_ntop (License): Likewise.
32477 * modules/malloc (License): Likewise.
32478 * modules/malloca (License): Likewise.
32479 * modules/memmem (License): Likewise.
32480 * modules/mempcpy (License): Likewise.
32481 * modules/memset (License): Likewise.
32482 * modules/minmax (License): Likewise.
32483 * modules/mktime (License): Likewise.
32484 * modules/netinet_in (License): Likewise.
32485 * modules/pathmax (License): Likewise.
32486 * modules/poll (License): Likewise.
32487 * modules/regex (License): Likewise.
32488 * modules/snprintf (License): Likewise.
32489 * modules/stdbool (License): Likewise.
32490 * modules/stdint (License): Likewise.
32491 * modules/stdio (License): Likewise.
32492 * modules/strcase (License): Likewise.
32493 * modules/strcasestr (License): Likewise.
32494 * modules/strdup (License): Likewise.
32495 * modules/string (License): Likewise.
32496 * modules/strndup (License): Likewise.
32497 * modules/strnlen (License): Likewise.
32498 * modules/strpbrk (License): Likewise.
32499 * modules/strptime (License): Likewise.
32500 * modules/strsep (License): Likewise.
32501 * modules/sys_select (License): Likewise.
32502 * modules/sys_socket (License): Likewise.
32503 * modules/sys_stat (License): Likewise.
32504 * modules/sys_time (License): Likewise.
32505 * modules/time (License): Likewise.
32506 * modules/time_r (License): Likewise.
32507 * modules/timegm (License): Likewise.
32508 * modules/unistd (License): Likewise.
32509 * modules/vsnprintf (License): Likewise.
32510 * modules/wctype (License): Likewise.
32512 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32514 * modules/argz (License): LGPLv2+.
32516 2007-07-15 Karl Berry <karl@gnu.org>
32518 * doc/gnulib.texi: revise node structure per new fdl.texi.
32520 2007-07-14 Bruno Haible <bruno@clisp.org>
32522 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32524 * lib/uniname/uninames.h: Regenerated.
32526 2007-07-14 Karl Berry <karl@gnu.org>
32528 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32529 omitting sectioning and index commands.
32531 2007-07-13 Bruno Haible <bruno@clisp.org>
32533 New gnulib-tool option --more-symlinks.
32534 * gnulib-tool (func_usage): Document --more-symlinks.
32535 (do_copyrights): New variable.
32536 Recognize option --more-symlinks.
32537 (func_import): Don't add a copyright notice transform to
32538 sed_transform_lib_file if do_copyrights is empty.
32540 2007-07-13 Bruno Haible <bruno@clisp.org>
32542 * lib/vasnprintf.c (decimal_point_char): Define also if
32543 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32544 && !NEED_PRINTF_DIRECTIVE_A.
32545 Reported by Clemens Koller <clemens.koller@anagramm.de> via
32546 Gary V. Vaughan <gary@gnu.org>.
32548 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
32550 * lib/inttypes_.h: Undo previous change, since it was fixed
32551 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32553 2007-07-13 Bruno Haible <bruno@clisp.org>
32555 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32556 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32558 2007-07-13 Jim Meyering <jim@meyering.net>
32560 df: Don't fail for Tru64's "file-on-file mount".
32561 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32562 so we fall through and use statfs instead. Details here:
32563 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32564 Reported by Albert Chin.
32566 2007-07-13 Bruno Haible <bruno@clisp.org>
32568 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32569 * modules/configmake (License): Likewise.
32570 * modules/gettext (License): Likewise.
32571 * modules/gettext-h (License): Likewise.
32572 * modules/include_next (License): Likewise.
32573 * modules/link-warning (License): Likewise.
32574 * modules/localcharset (License): Likewise.
32575 * modules/localename (License): Likewise.
32576 * modules/lock (License): Likewise.
32577 * modules/relocatable-lib-lgpl (License): Likewise.
32578 * modules/size_max (License): Likewise.
32579 * modules/vasnprintf (License): Likewise.
32580 * modules/wchar (License): Likewise.
32581 * modules/xsize (License): Likewise.
32583 2007-07-13 Bruno Haible <bruno@clisp.org>
32585 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32586 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32588 2007-07-12 Bruno Haible <bruno@clisp.org>
32590 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32591 in the modules files.
32593 2007-07-11 Karl Berry <karl@gnu.org>
32595 * MODULES.html.sh (func_module): use
32596 sed -e '\|^'"${includefile}"'$|d'
32597 instead of /.../d, to avoid errors on $includefile's containing /.
32599 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
32601 * gnulib-tool (func_import): Avoid duplication of --avoid
32603 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32604 names to `_' in variable names.
32606 2007-07-10 Eric Blake <ebb9@byu.net>
32608 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32609 * NEWS: Document this change.
32611 2007-07-08 Bruno Haible <bruno@clisp.org>
32613 Update to Unicode 5.0.
32614 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32615 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32616 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32617 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32618 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32619 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32620 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32621 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32622 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32623 U+10A3F, U+1D242..U+1D244.
32624 (nonspacing_table_ind): Update.
32625 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32626 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32628 2007-07-08 Bruno Haible <bruno@clisp.org>
32630 Update to Unicode 5.0.
32631 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32632 code transform. Extend the name index field of unicode_name_to_code and
32633 unicode_code_to_name from 16 to 24 bits.
32634 * lib/uniname/uniname.c (unicode_character_name,
32635 unicode_name_character): Add the range 0x12xxx to the code transform.
32636 * lib/uniname/uninames.h: Regenerated.
32637 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32639 2007-07-07 Bruno Haible <bruno@clisp.org>
32641 * modules/wcwidth-tests: New file.
32642 * tests/test-wcwidth.c: New file.
32644 Work around MacOS X wcwidth() bug.
32645 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32646 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32647 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32648 original wcwidth in non-UTF-8 locales.
32649 * modules/wcwidth (Depends-on): Add localcharset, streq,
32651 * doc/functions/wcwidth.texi: Update.
32653 2007-07-07 Bruno Haible <bruno@clisp.org>
32655 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32656 (wcwidth): New declaration.
32657 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32659 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32660 here. Prepare for creating <wchar.h> unconditionally.
32661 * modules/wchar (Depends-on): Add link-warning.
32662 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32663 REPLACE_WCWIDTH, and GL_LINK_WARNING.
32664 * lib/wcwidth.h: Remove file.
32665 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32666 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32667 * modules/wcwidth (Files): Remove lib/wcwidth.h.
32668 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32669 (Include): Replace wcwidth.h with <wchar.h>.
32670 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32671 * lib/mbchar.h: Don't include wcwidth.h.
32672 * lib/mbswidth.c: Likewise.
32673 * NEWS: Mention the change.
32675 2007-07-07 Bruno Haible <bruno@clisp.org>
32677 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32678 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32679 definition with an external declaration.
32680 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32681 defined as a function. Remove AC_C_INLINE requirement.
32682 * modules/wcwidth (Files): Add lib/wcwidth.c.
32683 (Makefile.am): Remove redundant statement.
32685 2007-07-07 Bruno Haible <bruno@clisp.org>
32687 * MODULES.html.sh (Unicode string functions): Add the new modules.
32689 * tests/uniwidth/test-u32-strwidth.c: New file.
32690 * modules/uniwidth/u32-strwidth-tests: New file.
32692 * lib/uniwidth/u32-strwidth.c: New file.
32693 * modules/uniwidth/u32-strwidth: New file.
32695 * tests/uniwidth/test-u16-strwidth.c: New file.
32696 * modules/uniwidth/u16-strwidth-tests: New file.
32698 * lib/uniwidth/u16-strwidth.c: New file.
32699 * modules/uniwidth/u16-strwidth: New file.
32701 * tests/uniwidth/test-u8-strwidth.c: New file.
32702 * modules/uniwidth/u8-strwidth-tests: New file.
32704 * lib/uniwidth/u8-strwidth.c: New file.
32705 * modules/uniwidth/u8-strwidth: New file.
32707 * tests/uniwidth/test-u32-width.c: New file.
32708 * modules/uniwidth/u32-width-tests: New file.
32710 * lib/uniwidth/u32-width.c: New file.
32711 * modules/uniwidth/u32-width: New file.
32713 * tests/uniwidth/test-u16-width.c: New file.
32714 * modules/uniwidth/u16-width-tests: New file.
32716 * lib/uniwidth/u16-width.c: New file.
32717 * modules/uniwidth/u16-width: New file.
32719 * tests/uniwidth/test-u8-width.c: New file.
32720 * modules/uniwidth/u8-width-tests: New file.
32722 * lib/uniwidth/u8-width.c: New file.
32723 * modules/uniwidth/u8-width: New file.
32725 * tests/uniwidth/test-uc_width.c: New file.
32726 * modules/uniwidth/width-tests: New file.
32728 * lib/uniwidth/width.c: New file, from GNU libiconv.
32729 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32730 * modules/uniwidth/width: New file.
32732 * lib/uniwidth.h: New file, from GNU libiconv.
32733 * modules/uniwidth/base: New file.
32735 2007-07-07 Bruno Haible <bruno@clisp.org>
32737 * lib/uniname.h: New file, from GNU gettext.
32738 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32739 * lib/uniname/uninames.h: New file, from GNU gettext.
32740 * lib/uniname/uniname.c: New file, from GNU gettext.
32741 * tests/uniname/test-uninames.sh: New file.
32742 * tests/uniname/test-uninames.c: New file, from GNU gettext.
32743 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32744 * modules/uniname/base: New file.
32745 * modules/uniname/uniname: New file.
32746 * modules/uniname/uniname-tests: New file.
32747 * MODULES.html.sh (Unicode string functions): Add the new modules.
32749 2007-07-06 Bruno Haible <bruno@clisp.org>
32751 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32753 2007-07-06 Bruno Haible <bruno@clisp.org>
32755 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32756 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32757 includes <cygwin/sys_time.h> which includes <sys/select.h> which
32758 include <sys/time.h>.
32759 Reported by Eric Blake.
32761 2007-07-06 Eric Blake <ebb9@byu.net>
32763 Fix testing canonicalize on cygwin.
32764 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32765 Revert patch from 2007-06-19.
32766 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32767 canonicalize module is also in use.
32768 * tests/test-canonicalize.c: New file.
32769 * tests/test-canonicalize.sh: Likewise.
32770 * modules/canonicalize-tests: Likewise.
32772 2007-07-06 Jim Meyering <jim@meyering.net>
32774 * lib/getugroups.c (getugroups): Detect getgrent failure.
32775 Adjust comment to reflect reality: this function may return -1.
32777 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
32779 * build-aux/bootstrap (TP_URL,get_translations): Update to use
32780 the new TP address.
32782 (gnulib_mk): New variable.
32784 2007-07-05 Jim Meyering <jim@meyering.net>
32786 Don't let endgrent clobber errno, no matter how improbable.
32787 * lib/getugroups.c (getugroups): Save and restore errno around
32790 Close the group DB even when failing with 2^31 or more members.
32791 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32793 2007-07-04 Jim Meyering <jim@meyering.net>
32795 * lib/getugroups.h: New file.
32796 * lib/getugroups.c: Include "getugroups.h".
32797 Remove uses of "register" keyword.
32798 Move local variable, "cp", down into scope where used.
32799 Give "username" parameter the "const" attribute.
32800 * modules/getugroups (Files): Add lib/getugroups.h
32802 2007-07-04 Karl Berry <karl@gnu.org>
32804 * MODULES.html.sh (func_all_modules): Complete rename of
32805 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32807 2007-07-02 Bruno Haible <bruno@clisp.org>
32809 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32810 mode, when inttypes.h comes from gnulib.
32811 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32813 2007-07-02 Simon Josefsson <simon@josefsson.org>
32815 * NEWS: Mention lgpl module name change.
32817 * modules/lgpl-2.1: Renamed from lgpl.
32819 * NEWS: Mention gpl module name change.
32821 * modules/gpl-3.0: New file, based on gpl-2.0.
32823 * modules/gpl-2.0: Renamed from gpl.
32825 * modules/gpl: Fix filename, doc/gpl.texi is now found at
32828 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
32830 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32831 #define __STDC_LIMIT_MACROS temporarily while including
32832 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32833 Problem reported by Joel E. Denny in
32834 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32836 2007-07-01 Bruno Haible <bruno@clisp.org>
32838 * lib/unistdio.h: New file.
32839 * lib/unistdio/u-asnprintf.h: New file.
32840 * lib/unistdio/u-asprintf.h: New file.
32841 * lib/unistdio/u-printf-args.c: New file.
32842 * lib/unistdio/u-printf-args.h: New file.
32843 * lib/unistdio/u-printf-parse.h: New file.
32844 * lib/unistdio/u-snprintf.h: New file.
32845 * lib/unistdio/u-sprintf.h: New file.
32846 * lib/unistdio/u-vasprintf.h: New file.
32847 * lib/unistdio/u-vsnprintf.h: New file.
32848 * lib/unistdio/u-vsprintf.h: New file.
32849 * lib/unistdio/ulc-asnprintf.c: New file.
32850 * lib/unistdio/ulc-asprintf.c: New file.
32851 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32852 * lib/unistdio/ulc-printf-parse.c: New file.
32853 * lib/unistdio/ulc-snprintf.c: New file.
32854 * lib/unistdio/ulc-sprintf.c: New file.
32855 * lib/unistdio/ulc-vasnprintf.c: New file.
32856 * lib/unistdio/ulc-vasprintf.c: New file.
32857 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32858 * lib/unistdio/ulc-vsnprintf.c: New file.
32859 * lib/unistdio/ulc-vsprintf.c: New file.
32860 * lib/unistdio/u8-asnprintf.c: New file.
32861 * lib/unistdio/u8-asprintf.c: New file.
32862 * lib/unistdio/u8-printf-parse.c: New file.
32863 * lib/unistdio/u8-snprintf.c: New file.
32864 * lib/unistdio/u8-sprintf.c: New file.
32865 * lib/unistdio/u8-vasnprintf.c: New file.
32866 * lib/unistdio/u8-vasprintf.c: New file.
32867 * lib/unistdio/u8-vsnprintf.c: New file.
32868 * lib/unistdio/u8-vsprintf.c: New file.
32869 * lib/unistdio/u8-u8-asnprintf.c: New file.
32870 * lib/unistdio/u8-u8-asprintf.c: New file.
32871 * lib/unistdio/u8-u8-snprintf.c: New file.
32872 * lib/unistdio/u8-u8-sprintf.c: New file.
32873 * lib/unistdio/u8-u8-vasnprintf.c: New file.
32874 * lib/unistdio/u8-u8-vasprintf.c: New file.
32875 * lib/unistdio/u8-u8-vsnprintf.c: New file.
32876 * lib/unistdio/u8-u8-vsprintf.c: New file.
32877 * lib/unistdio/u16-asnprintf.c: New file.
32878 * lib/unistdio/u16-asprintf.c: New file.
32879 * lib/unistdio/u16-printf-parse.c: New file.
32880 * lib/unistdio/u16-snprintf.c: New file.
32881 * lib/unistdio/u16-sprintf.c: New file.
32882 * lib/unistdio/u16-vasnprintf.c: New file.
32883 * lib/unistdio/u16-vasprintf.c: New file.
32884 * lib/unistdio/u16-vsnprintf.c: New file.
32885 * lib/unistdio/u16-vsprintf.c: New file.
32886 * lib/unistdio/u16-u16-asnprintf.c: New file.
32887 * lib/unistdio/u16-u16-asprintf.c: New file.
32888 * lib/unistdio/u16-u16-snprintf.c: New file.
32889 * lib/unistdio/u16-u16-sprintf.c: New file.
32890 * lib/unistdio/u16-u16-vasnprintf.c: New file.
32891 * lib/unistdio/u16-u16-vasprintf.c: New file.
32892 * lib/unistdio/u16-u16-vsnprintf.c: New file.
32893 * lib/unistdio/u16-u16-vsprintf.c: New file.
32894 * lib/unistdio/u32-asnprintf.c: New file.
32895 * lib/unistdio/u32-asprintf.c: New file.
32896 * lib/unistdio/u32-printf-parse.c: New file.
32897 * lib/unistdio/u32-snprintf.c: New file.
32898 * lib/unistdio/u32-sprintf.c: New file.
32899 * lib/unistdio/u32-vasnprintf.c: New file.
32900 * lib/unistdio/u32-vasprintf.c: New file.
32901 * lib/unistdio/u32-vsnprintf.c: New file.
32902 * lib/unistdio/u32-vsprintf.c: New file.
32903 * lib/unistdio/u32-u32-asnprintf.c: New file.
32904 * lib/unistdio/u32-u32-asprintf.c: New file.
32905 * lib/unistdio/u32-u32-snprintf.c: New file.
32906 * lib/unistdio/u32-u32-sprintf.c: New file.
32907 * lib/unistdio/u32-u32-vasnprintf.c: New file.
32908 * lib/unistdio/u32-u32-vasprintf.c: New file.
32909 * lib/unistdio/u32-u32-vsnprintf.c: New file.
32910 * lib/unistdio/u32-u32-vsprintf.c: New file.
32911 * tests/unistdio/test-ulc-asnprintf1.c: New file.
32912 * tests/unistdio/test-ulc-asnprintf1.h: New file.
32913 * tests/unistdio/test-ulc-printf1.h: New file.
32914 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32915 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32916 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32917 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32918 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32919 * tests/unistdio/test-ulc-vasprintf1.c: New file.
32920 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32921 * tests/unistdio/test-ulc-vsprintf1.c: New file.
32922 * tests/unistdio/test-u8-asnprintf1.c: New file.
32923 * tests/unistdio/test-u8-asnprintf1.h: New file.
32924 * tests/unistdio/test-u8-printf1.h: New file.
32925 * tests/unistdio/test-u8-vasnprintf1.c: New file.
32926 * tests/unistdio/test-u8-vasnprintf2.c: New file.
32927 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32928 * tests/unistdio/test-u8-vasnprintf3.c: New file.
32929 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32930 * tests/unistdio/test-u8-vasprintf1.c: New file.
32931 * tests/unistdio/test-u8-vsnprintf1.c: New file.
32932 * tests/unistdio/test-u8-vsprintf1.c: New file.
32933 * tests/unistdio/test-u16-asnprintf1.c: New file.
32934 * tests/unistdio/test-u16-asnprintf1.h: New file.
32935 * tests/unistdio/test-u16-printf1.h: New file.
32936 * tests/unistdio/test-u16-vasnprintf1.c: New file.
32937 * tests/unistdio/test-u16-vasnprintf2.c: New file.
32938 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32939 * tests/unistdio/test-u16-vasnprintf3.c: New file.
32940 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32941 * tests/unistdio/test-u16-vasprintf1.c: New file.
32942 * tests/unistdio/test-u16-vsnprintf1.c: New file.
32943 * tests/unistdio/test-u16-vsprintf1.c: New file.
32944 * tests/unistdio/test-u32-asnprintf1.c: New file.
32945 * tests/unistdio/test-u32-asnprintf1.h: New file.
32946 * tests/unistdio/test-u32-printf1.h: New file.
32947 * tests/unistdio/test-u32-vasnprintf1.c: New file.
32948 * tests/unistdio/test-u32-vasnprintf2.c: New file.
32949 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32950 * tests/unistdio/test-u32-vasnprintf3.c: New file.
32951 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32952 * tests/unistdio/test-u32-vasprintf1.c: New file.
32953 * tests/unistdio/test-u32-vsnprintf1.c: New file.
32954 * tests/unistdio/test-u32-vsprintf1.c: New file.
32955 * modules/unistdio/base: New file.
32956 * modules/unistdio/u-printf-args: New file.
32957 * modules/unistdio/ulc-asnprintf: New file.
32958 * modules/unistdio/ulc-asprintf: New file.
32959 * modules/unistdio/ulc-fprintf: New file.
32960 * modules/unistdio/ulc-printf-parse: New file.
32961 * modules/unistdio/ulc-snprintf: New file.
32962 * modules/unistdio/ulc-sprintf: New file.
32963 * modules/unistdio/ulc-vasnprintf: New file.
32964 * modules/unistdio/ulc-vasprintf: New file.
32965 * modules/unistdio/ulc-vfprintf: New file.
32966 * modules/unistdio/ulc-vsnprintf: New file.
32967 * modules/unistdio/ulc-vsprintf: New file.
32968 * modules/unistdio/u8-asnprintf: New file.
32969 * modules/unistdio/u8-asprintf: New file.
32970 * modules/unistdio/u8-printf-parse: New file.
32971 * modules/unistdio/u8-snprintf: New file.
32972 * modules/unistdio/u8-sprintf: New file.
32973 * modules/unistdio/u8-vasnprintf: New file.
32974 * modules/unistdio/u8-vasprintf: New file.
32975 * modules/unistdio/u8-vsnprintf: New file.
32976 * modules/unistdio/u8-vsprintf: New file.
32977 * modules/unistdio/u8-u8-asnprintf: New file.
32978 * modules/unistdio/u8-u8-asprintf: New file.
32979 * modules/unistdio/u8-u8-snprintf: New file.
32980 * modules/unistdio/u8-u8-sprintf: New file.
32981 * modules/unistdio/u8-u8-vasnprintf: New file.
32982 * modules/unistdio/u8-u8-vasprintf: New file.
32983 * modules/unistdio/u8-u8-vsnprintf: New file.
32984 * modules/unistdio/u8-u8-vsprintf: New file.
32985 * modules/unistdio/u16-asnprintf: New file.
32986 * modules/unistdio/u16-asprintf: New file.
32987 * modules/unistdio/u16-printf-parse: New file.
32988 * modules/unistdio/u16-snprintf: New file.
32989 * modules/unistdio/u16-sprintf: New file.
32990 * modules/unistdio/u16-vasnprintf: New file.
32991 * modules/unistdio/u16-vasprintf: New file.
32992 * modules/unistdio/u16-vsnprintf: New file.
32993 * modules/unistdio/u16-vsprintf: New file.
32994 * modules/unistdio/u16-u16-asnprintf: New file.
32995 * modules/unistdio/u16-u16-asprintf: New file.
32996 * modules/unistdio/u16-u16-snprintf: New file.
32997 * modules/unistdio/u16-u16-sprintf: New file.
32998 * modules/unistdio/u16-u16-vasnprintf: New file.
32999 * modules/unistdio/u16-u16-vasprintf: New file.
33000 * modules/unistdio/u16-u16-vsnprintf: New file.
33001 * modules/unistdio/u16-u16-vsprintf: New file.
33002 * modules/unistdio/u32-asnprintf: New file.
33003 * modules/unistdio/u32-asprintf: New file.
33004 * modules/unistdio/u32-printf-parse: New file.
33005 * modules/unistdio/u32-snprintf: New file.
33006 * modules/unistdio/u32-sprintf: New file.
33007 * modules/unistdio/u32-vasnprintf: New file.
33008 * modules/unistdio/u32-vasprintf: New file.
33009 * modules/unistdio/u32-vsnprintf: New file.
33010 * modules/unistdio/u32-vsprintf: New file.
33011 * modules/unistdio/u32-u32-asnprintf: New file.
33012 * modules/unistdio/u32-u32-asprintf: New file.
33013 * modules/unistdio/u32-u32-snprintf: New file.
33014 * modules/unistdio/u32-u32-sprintf: New file.
33015 * modules/unistdio/u32-u32-vasnprintf: New file.
33016 * modules/unistdio/u32-u32-vasprintf: New file.
33017 * modules/unistdio/u32-u32-vsnprintf: New file.
33018 * modules/unistdio/u32-u32-vsprintf: New file.
33019 * modules/unistdio/ulc-asnprintf-tests: New file.
33020 * modules/unistdio/ulc-vasnprintf-tests: New file.
33021 * modules/unistdio/ulc-vasprintf-tests: New file.
33022 * modules/unistdio/ulc-vsnprintf-tests: New file.
33023 * modules/unistdio/ulc-vsprintf-tests: New file.
33024 * modules/unistdio/u8-asnprintf-tests: New file.
33025 * modules/unistdio/u8-vasnprintf-tests: New file.
33026 * modules/unistdio/u8-vasprintf-tests: New file.
33027 * modules/unistdio/u8-vsnprintf-tests: New file.
33028 * modules/unistdio/u8-vsprintf-tests: New file.
33029 * modules/unistdio/u16-asnprintf-tests: New file.
33030 * modules/unistdio/u16-vasnprintf-tests: New file.
33031 * modules/unistdio/u16-vasprintf-tests: New file.
33032 * modules/unistdio/u16-vsnprintf-tests: New file.
33033 * modules/unistdio/u16-vsprintf-tests: New file.
33034 * modules/unistdio/u32-asnprintf-tests: New file.
33035 * modules/unistdio/u32-vasnprintf-tests: New file.
33036 * modules/unistdio/u32-vasprintf-tests: New file.
33037 * modules/unistdio/u32-vsnprintf-tests: New file.
33038 * modules/unistdio/u32-vsprintf-tests: New file.
33039 * MODULES.html.sh (Unicode string functions): Add the new modules.
33041 2007-07-01 Bruno Haible <bruno@clisp.org>
33043 * lib/sprintf.c (sprintf): Limit the available length estimation,
33044 to avoid address wraparound.
33045 * lib/vsprintf.c (vsprintf): Likewise.
33046 * modules/sprintf-posix (Dependencies): Add stdint.
33047 * modules/vsprintf-posix (Dependencies): Likewise.
33049 2007-07-01 Bruno Haible <bruno@clisp.org>
33051 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33052 Windows PATH as well. Conservative double-quoting. Comments.
33054 2007-07-01 Bruno Haible <bruno@clisp.org>
33055 Eric Blake <ebb9@byu.net>
33056 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33058 * gnulib-tool (self_abspathname): Fix algorithm to cope with
33059 empty components in $PATH, denoting '.'.
33061 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33063 * gnulib-tool: Fix indentation.
33064 (func_create_megatestdir): Likewise.
33065 Report by Bruno Haible.
33067 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33069 Sync from Automake.
33070 * build-aux/gnupload: Fix shell portability issues with for loops.
33071 Report by Karl Berry.
33073 2007-06-29 Simon Josefsson <simon@josefsson.org>
33075 * build-aux/maint.mk (POURL): Use translationproject.org.
33077 2007-06-27 Simon Josefsson <simon@josefsson.org>
33078 Bruno Haible <bruno@clisp.org>
33080 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33081 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33082 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33083 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33084 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33086 2007-06-27 Bruno Haible <bruno@clisp.org>
33088 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33089 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33091 2007-06-26 Karl Berry <karl@gnu.org>
33093 * MODULES.html.sh: remove xreadlink-with-size.
33095 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
33097 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33098 method that I hope also handles the double-include problem noted
33100 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33102 2007-06-23 Bruno Haible <bruno@clisp.org>
33104 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33105 Don't let the 'mostlyclean' target fail if the last subdirectory could
33107 Reported by Karl Berry.
33109 2007-06-23 Bruno Haible <bruno@clisp.org>
33111 * gnulib-tool (echo): Add a speedier workaround for ksh.
33112 * tests/test-echo.sh: Likewise.
33114 2007-06-23 Bruno Haible <bruno@clisp.org>
33116 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33117 * tests/test-echo.sh: Likewise.
33119 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33121 * gnulib-tool (IFS): Initialize early, so we don't set it to
33123 (self_abspathname): Rewrite algorithm to set it, reindent.
33124 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33125 (func_create_megatestdir): Merge some sed scripts.
33127 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
33129 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33130 exposed by Sun Studio 11 cc on Solaris 8.
33132 2007-06-22 Bruno Haible <bruno@clisp.org>
33134 * gnulib-tool (echo): Ensure the echo primitive does not interpret
33136 * tests/test-echo.sh: New file.
33138 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33140 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33141 simplify `sed_replace_build_aux' scripts, they are portable but
33142 echoing them with `echo' is not.
33143 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33145 2007-06-21 Karl Berry <karl@gnu.org>
33147 * config/srclist.txt: guess we can't handle the licenses via
33148 srclist at the moment.
33150 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
33152 * MODULES.html.sh: Add include_next.
33153 * modules/include_next: New file.
33155 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
33157 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33159 (gl_CHECK_NEXT_HEADERS): New macro.
33160 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33161 the obsolescent gl_ABSOLUTE_HEADER.
33162 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33163 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33164 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33165 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33166 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33167 * m4/math_h.m4 (gl_MATH_H): Likewise.
33168 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33169 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33170 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33171 * m4/stdint.m4 (gl_STDINT_H): Likewise.
33172 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33173 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33174 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33175 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33176 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33177 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33178 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33179 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33180 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33181 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33182 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33183 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33184 * m4/inttypes.m4 (gl_INTTYPES_H): Define
33185 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33186 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33187 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33188 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33189 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33190 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33191 * lib/float_.h: Likewise.
33192 * lib/inttypes_.h: Likewise.
33193 * lib/math_.h: Likewise.
33194 * lib/search_.h: Likewise.
33195 * lib/signal_.h: Likewise.
33196 * lib/stdint_.h: Likewise.
33197 * lib/stdio_.h: Likewise.
33198 * lib/stdlib_.h: Likewise.
33199 * lib/string_.h: Likewise.
33200 * lib/sys_stat_.h: Likewise.
33201 * lib/sys_time_.h: Likewise.
33202 * lib/time_.h: Likewise.
33203 * lib/unistd_.h: Likewise.
33204 * lib/wchar_.h: Likewise.
33205 * lib/wctype_.h: Likewise.
33206 * lib/dirent_.h: Likewise.
33207 * lib/iconv_.h: Likewise.
33208 * lib/locale_.h: Likewise.
33209 * lib/netinet_in_.h: Likewise.
33210 * lib/sys_select_.h: Likewise.
33211 * lib/sys_socket_.h: Likewise.
33212 * lib/sysexits_.h: Likewise.
33213 * modules/fcntl (Depends-on): Depend on include_next, not
33215 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33216 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33217 * modules/fchdir: Likewise.
33218 * modules/float: Likewise.
33219 * modules/iconv_open: Likewise.
33220 * modules/inttypes: Likewise.
33221 * modules/locale: Likewise.
33222 * modules/math: Likewise.
33223 * modules/netinet_in: Likewise.
33224 * modules/search: Likewise.
33225 * modules/signal: Likewise.
33226 * modules/stdint: Likewise.
33227 * modules/stdio: Likewise.
33228 * modules/stdlib: Likewise.
33229 * modules/string: Likewise.
33230 * modules/sys_select: Likewise.
33231 * modules/sys_socket: Likewise.
33232 * modules/sys_stat: Likewise.
33233 * modules/sys_time: Likewise.
33234 * modules/sysexits: Likewise.
33235 * modules/time: Likewise.
33236 * modules/unistd: Likewise.
33237 * modules/wchar: Likewise.
33238 * modules/wctype: Likewise.
33239 * modules/sys_stat: Change maintainer to "all".
33240 * modules/unistd: Likewise.
33242 2007-06-20 Karl Berry <karl@gnu.org>
33244 * config/srclist.txt: track www changes in license files.
33246 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
33248 * build-aux/bootstrap: Remove stray dot.
33249 Make sure build_aux settings are honored when linking
33250 gnulib_extra_files.
33252 2007-06-19 Eric Blake <ebb9@byu.net>
33254 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33255 Allow compilation on cygwin.
33257 2007-06-19 Jim Meyering <jim@meyering.net>
33259 xreadlink-with-size: Remove module. No longer used.
33260 Ex-callers now use xreadlink or mreadlink-with-size.
33261 * modules/xreadlink-with-size: Remove module.
33262 * lib/xreadlink-with-size.c: Remove file.
33263 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33264 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
33265 just before the function definition *is* accurate.
33267 Eliminate one way canonicalize_filename_mode could exit.
33268 * lib/canonicalize.c (canonicalize_filename_mode):
33269 Use mreadlink_with_size, not xreadlink_with_size.
33271 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
33273 Detect porting problems to FreeBSD/arm, which has time_t wider than
33274 long int. Original problem reported for GNU diff by Xin Li in
33275 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33276 * modules/getdate (Depends-on): Add intprops, verify.
33277 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
33278 is an integer type no wider than long int.
33280 2007-06-18 Jim Meyering <jim@meyering.net>
33282 New module: mreadlink-with-size.
33283 * MODULES.html.sh: Add mreadlink-with-size.
33284 * modules/mreadlink-with-size: New module
33285 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33286 not xreadlink-with-size.
33287 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33289 2007-06-16 Bruno Haible <bruno@clisp.org>
33291 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33292 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33293 Reported by Gary V. Vaughan <gary@gnu.org>.
33295 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
33297 Revamp lchown so that it lives in unistd.h where it belongs.
33298 * lib/lchown.h: Remove.
33299 * lib/dirchownmod.c: Don't include lib/lchown.h.
33300 * lib/fchownat.c: Likewise.
33301 * lib/openat.c: Likewise.
33302 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33303 does not follow symlinks.
33304 (EOPNOTSUPP): Define if not defined.
33305 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33307 (lchown): New decl.
33308 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33309 Do not check for lchown decl.
33310 Set REPLACE_LCHOWN.
33311 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33313 * modules/chown: Make it clear it follows symlinks.
33314 * modules/lchown: Make it clear it doesn't follow symlinks.
33315 (Files): Remove lib/lchown.h
33316 (Depends-on): Add unistd.
33317 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33318 (Include): Include <unistd.h>, not "lchown.h".
33319 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33322 2007-06-15 Jim Meyering <jim@meyering.net>
33324 Change license (GPL to LGPL) of fsusage and dependents.
33325 * modules/fsusage (License): Change to LGPL.
33326 * modules/full-read (License): Likewise.
33327 * modules/full-write (License): Likewise.
33328 * modules/safe-read (License): Likewise.
33329 * modules/safe-write (License): Likewise.
33331 2007-06-14 Ben Pfaff <blp@gnu.org>
33333 Missing part of allocsa -> malloca transition.
33334 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33337 2007-06-12 Bruno Haible <bruno@clisp.org>
33339 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33340 to ia64, x86_64, i386.
33341 Reported by Eric Blake.
33343 2007-06-12 Bruno Haible <bruno@clisp.org>
33345 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33346 cross-compiling to x86_64.
33348 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
33350 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33351 glitch reported by Ralf Wildenhues in
33352 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33354 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33357 2007-06-11 Bruno Haible <bruno@clisp.org>
33359 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33360 replacement string.
33361 Reported by Eric Blake.
33363 2007-06-10 Bruno Haible <bruno@clisp.org>
33365 Prepare vasnprintf code for use with Unicode strings.
33366 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33367 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33369 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33370 a_u32_string variants.
33371 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33372 * lib/printf-args.c: Don't include config.h and the specification
33373 header if PRINTF_FETCHARGS is already defined.
33374 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33375 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33376 TYPE_U16_STRING, TYPE_U32_STRING.
33377 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33378 u16_directive, u16_directives, u32_directive, u32_directives): New
33380 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33382 * lib/printf-parse.c: Don't include config.h and the specification
33383 header if PRINTF_PARSE is already defined. Eliminate the set of
33384 parameters for WIDE_CHAR_VERSION; the user of this file must provide
33385 them now. Include c-ctype.h.
33386 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33387 directive and CHAR_T_ONLY_ASCII.
33388 * lib/vasnprintf.c: Don't include config.h and the specification header
33389 if VASNPRINTF is already defined.
33390 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33391 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33392 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33393 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33394 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33395 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33397 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33398 pad_ourselves also in this case, with the 'c' and 's' directives, and
33399 with a different notion of "width".
33400 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33402 2007-06-10 Bruno Haible <bruno@clisp.org>
33404 * modules/unistr/u32-mbsnlen: New file.
33405 * lib/unistr/u32-mbsnlen.c: New file.
33407 * modules/unistr/u16-mbsnlen: New file.
33408 * lib/unistr/u16-mbsnlen.c: New file.
33410 * modules/unistr/u8-mbsnlen: New file.
33411 * lib/unistr/u8-mbsnlen.c: New file.
33413 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33416 2007-06-10 Bruno Haible <bruno@clisp.org>
33418 * lib/string_.h (mbsnlen): New declaration.
33419 * lib/mbsnlen.c: New file.
33420 * m4/mbsnlen.m4: New file.
33421 * modules/mbsnlen: New file.
33422 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33423 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33424 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33426 2007-06-10 Bruno Haible <bruno@clisp.org>
33428 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33430 2007-06-10 Bruno Haible <bruno@clisp.org>
33432 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33433 * lib/mbuiter.h: Likewise.
33435 2007-06-10 Bruno Haible <bruno@clisp.org>
33437 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33440 2007-06-10 Karl Berry <karl@gnu.org>
33442 * config/srclist.txt: remove gettext entries, Bruno prefers
33443 to update individually.
33445 2007-06-10 Bruno Haible <bruno@clisp.org>
33447 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33448 'maxlen'. Ensure only length + width bytes are allocated, not
33449 length + 1 + width.
33451 2007-06-09 Bruno Haible <bruno@clisp.org>
33453 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33454 (CHAR_T): Remove macro.
33455 (VASNPRINTF): Update.
33457 2007-06-09 Bruno Haible <bruno@clisp.org>
33459 * MODULES.html.sh (Unicode string functions): Add the new modules.
33461 * modules/uniconv/u32-conv-to-enc: New file.
33462 * lib/uniconv/u32-conv-to-enc.c: New file.
33463 * modules/uniconv/u32-conv-to-enc-tests: New file.
33464 * tests/uniconv/test-u32-conv-to-enc.c: New file.
33466 * modules/uniconv/u16-conv-to-enc: New file.
33467 * lib/uniconv/u16-conv-to-enc.c: New file.
33468 * lib/uniconv/u-conv-to-enc.h: New file.
33469 * modules/uniconv/u16-conv-to-enc-tests: New file.
33470 * tests/uniconv/test-u16-conv-to-enc.c: New file.
33472 * modules/uniconv/u8-conv-to-enc: New file.
33473 * lib/uniconv/u8-conv-to-enc.c: New file.
33474 * modules/uniconv/u8-conv-to-enc-tests: New file.
33475 * tests/uniconv/test-u8-conv-to-enc.c: New file.
33477 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33478 u32_conv_to_encoding): New declarations.
33480 2007-06-09 Bruno Haible <bruno@clisp.org>
33482 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33484 2007-06-09 Bruno Haible <bruno@clisp.org>
33486 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33487 * modules/malloca: Renamed from modules/allocsa, updated.
33488 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33489 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33490 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33491 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33492 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33493 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33494 * modules/xmalloca: Renamed from modules/xallocsa, updated.
33495 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33496 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33497 * modules/c-strcasestr (Depends-on): Update.
33498 * lib/c-strcasestr.c: Update.
33499 * modules/c-strstr (Depends-on): Update.
33500 * lib/c-strstr.c: Update.
33501 * modules/canonicalize-lgpl (Depends-on): Update.
33502 * lib/canonicalize-lgpl.c: Update.
33503 * modules/clean-temp (Depends-on): Update.
33504 * lib/clean-temp.c: Update.
33505 * modules/csharpcomp (Depends-on): Update.
33506 * lib/csharpcomp.c: Update.
33507 * modules/csharpexec (Depends-on): Update.
33508 * lib/csharpexec.c: Update.
33509 * modules/javacomp (Depends-on): Update.
33510 * lib/javacomp.c: Update.
33511 * modules/javaexec (Depends-on): Update.
33512 * lib/javaexec.c: Update.
33513 * modules/mbscasestr (Depends-on): Update.
33514 * lib/mbscasestr.c: Update.
33515 * modules/mbsstr (Depends-on): Update.
33516 * lib/mbsstr.c: Update.
33517 * modules/setenv (Depends-on): Update.
33518 * lib/setenv.c: Update.
33519 * modules/strcasestr (Depends-on): Update.
33520 * lib/strcasestr.c: Update.
33521 * modules/striconveha (Depends-on): Update.
33522 * lib/striconveha.c: Update.
33523 * modules/relocatable-prog-wrapper (Files): Update.
33524 * lib/relocwrapper.c: Update.
33525 * build-aux/install-reloc: Update.
33526 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33528 2007-06-08 Bruno Haible <bruno@clisp.org>
33531 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33532 * lib/fpurge.c (fpurge): Likewise.
33533 * lib/freading.c (freading): Likewise.
33534 * lib/fseeko.c (rpl_fseeko): Likewise.
33535 * lib/fseterr.c (fseterr): Likewise.
33536 * lib/fwriting.c (fwriting): Likewise.
33537 * tests/test-fflush.c (main): Avoid a failure on uClibc.
33539 2007-06-08 Bruno Haible <bruno@clisp.org>
33541 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33542 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33543 * modules/gettext (Files): Add m4/intlmacosx.m4.
33545 2007-06-07 Bruno Haible <bruno@clisp.org>
33547 * modules/localename-tests: New file.
33548 * tests/test-localename.c: New file.
33550 New module 'localename'.
33551 * lib/localename.h: New file.
33552 * lib/localename.c: New file, from GNU gettext.
33553 * m4/localename.m4: New file.
33554 * modules/localename: New file.
33556 2007-06-07 Bruno Haible <bruno@clisp.org>
33558 Work around the lack of <wchar.h> on some builds of uClibc.
33559 * doc/headers/wchar.texi: Update.
33560 * lib/wchar_.h: Include <wchar.h> only if it exists.
33561 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33562 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33563 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33565 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33566 * modules/mbfile (Depends-on): Add wchar.
33567 * modules/mbiter (Depends-on): Likewise.
33568 * modules/mbuiter (Depends-on): Likewise.
33569 Reported by Simon Josefsson.
33571 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
33573 Work around problem reported by Steven M. Schweda in
33574 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33575 Tru64 5.1B with the Compaq compiler environment installed declares
33576 an 'isblank' function but does not define it in the C library.
33577 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33578 * lib/regex_internal.h (isblank): Likewise.
33579 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33580 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33582 2007-06-05 Bruno Haible <bruno@clisp.org>
33584 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33586 * modules/printf-safe: New file.
33587 * modules/fprintf-posix (Depends-on): Add printf-safe.
33588 * modules/printf-posix (Depends-on): Likewise.
33589 * modules/snprintf-posix (Depends-on): Likewise.
33590 * modules/sprintf-posix (Depends-on): Likewise.
33591 * modules/vasnprintf-posix (Depends-on): Likewise.
33592 * modules/vasprintf-posix (Depends-on): Likewise.
33593 * modules/vfprintf-posix (Depends-on): Likewise.
33594 * modules/vprintf-posix (Depends-on): Likewise.
33595 * modules/vsnprintf-posix (Depends-on): Likewise.
33596 * modules/vsprintf-posix (Depends-on): Likewise.
33597 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33598 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33599 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33600 "no" on i386, x86_64, ia64.
33601 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33602 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33603 on i386, x86_64, ia64.
33604 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33605 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33606 on i386, x86_64, ia64.
33607 * tests/test-vasnprintf-posix.c: Include float.h.
33608 (LDBL80_WORDS): New macro.
33609 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33610 on i386, x86_64, ia64.
33611 * tests/test-vasprintf-posix.c: Include float.h.
33612 (LDBL80_WORDS): New macro.
33613 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33614 on i386, x86_64, ia64.
33615 * tests/test-snprintf-posix.c: Include float.h.
33616 * tests/test-sprintf-posix.c: Likewise.
33617 * tests/test-vsnprintf-posix.c: Likewise.
33618 * tests/test-vsprintf-posix.c: Likewise.
33620 2007-06-05 Bruno Haible <bruno@clisp.org>
33622 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33623 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33624 non-IEEE numbers on i386, x86_64, ia64.
33625 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33626 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33627 * tests/test-isnanl.h: Include float.h.
33628 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33630 2007-06-05 Bruno Haible <bruno@clisp.org>
33632 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33633 also the %a / %A. Handle the %a / %A code before this extra handling.
33635 2007-06-05 Bruno Haible <bruno@clisp.org>
33637 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33638 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33640 2007-06-05 Bruno Haible <bruno@clisp.org>
33642 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33643 typo in variable name.
33645 2007-06-05 Eric Blake <ebb9@byu.net>
33647 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33648 Reported by Simon Josefsson.
33650 2007-06-04 Bruno Haible <bruno@clisp.org>
33652 Avoid test failures on some PowerPC platforms.
33653 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33654 Define differently for PowerPC.
33655 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33656 Reported by Gary V. Vaughan <gary@gnu.org>.
33658 2007-06-02 Bruno Haible <bruno@clisp.org>
33660 Fix test-stdint failure on FreeBSD/ia64.
33661 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33662 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33663 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33664 * doc/headers/stdint.texi: Update.
33666 2007-06-01 Bruno Haible <bruno@clisp.org>
33668 * tests/test-binary-io.c (main): Pass a third argument to open().
33669 Reported by Gary V. Vaughan <gary@gnu.org>.
33671 2007-06-01 Bruno Haible <bruno@clisp.org>
33673 * doc/functions/frexpl.texi: Update for mingw.
33675 2007-06-01 Bruno Haible <bruno@clisp.org>
33677 * tests/test-lseek.c (main): Disable test of errno for invalid third
33679 * doc/functions/lseek.texi: Update.
33680 Reported by Gary V. Vaughan <gary@gnu.org>.
33682 2007-05-28 Bruno Haible <bruno@clisp.org>
33684 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33686 2007-05-31 Eric Blake <ebb9@byu.net>
33688 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33691 2007-05-30 Eric Blake <ebb9@byu.net>
33692 and Bruno Haible <bruno@clisp.org>
33694 Work around mingw test failures exposed by m4-1.4.9b.
33695 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33696 * tests/test-unistd.c: Disable uid_t and git_t tests for the
33699 2007-05-30 Bruno Haible <bruno@clisp.org>
33701 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33702 assuming that they are closed. Needed on HP-UX 11.
33704 2007-05-29 Bruno Haible <bruno@clisp.org>
33706 Fix a problem with #include_next.
33707 * lib/dirent_.h: Split the double-inclusion guard.
33708 * lib/fcntl_.h: Likewise.
33709 * lib/float_.h: Likewise.
33710 * lib/iconv_.h: Likewise.
33711 * lib/inttypes_.h: Likewise.
33712 * lib/locale_.h: Likewise.
33713 * lib/math_.h: Likewise.
33714 * lib/netinet_in_.h: Likewise.
33715 * lib/search_.h: Likewise.
33716 * lib/signal_.h: Likewise.
33717 * lib/stdint_.h: Likewise.
33718 * lib/stdio_.h: Likewise.
33719 * lib/stdlib_.h: Likewise.
33720 * lib/string_.h: Likewise.
33721 * lib/sys_select_.h: Likewise.
33722 * lib/sys_socket_.h: Likewise.
33723 * lib/sys_stat_.h: Likewise.
33724 * lib/sys_time_.h: Likewise.
33725 * lib/sysexits_.h: Likewise.
33726 * lib/time_.h: Likewise.
33727 * lib/unistd_.h: Likewise.
33728 * lib/wchar_.h: Likewise.
33729 * lib/wctype_.h: Likewise.
33731 2007-05-29 Bruno Haible <bruno@clisp.org>
33733 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33736 2007-05-29 Bruno Haible <bruno@clisp.org>
33738 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33740 Reported by Eric Blake.
33742 2007-05-29 Bruno Haible <bruno@clisp.org>
33744 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33747 2007-05-29 Eric Blake <ebb9@byu.net>
33748 Bruno Haible <bruno@clisp.org>
33750 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33753 2007-05-28 Eric Blake <ebb9@byu.net>
33755 * modules/closein-tests (test_closein_LDADD): Support test on
33756 cygwin with libtool.
33758 2007-05-28 Bruno Haible <bruno@clisp.org>
33760 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33761 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33762 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33763 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33764 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33765 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33766 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33767 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33768 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33770 2007-05-28 Eric Blake <ebb9@byu.net>
33772 Unconditionally include <config.h> in unit tests.
33773 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33774 * tests/test-allocsa.c, tests/test-arcfour.c,
33775 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33776 tests/test-array_list.c, tests/test-array_oset.c,
33777 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33778 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33779 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33780 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33781 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33782 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33783 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33784 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33785 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33786 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33787 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33788 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33789 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33790 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33791 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33792 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33793 test-md5.c, test-memmem.c, test-printf-posix.c,
33794 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33795 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33796 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33797 test-strcasestr.c, test-striconv.c, test-striconveh.c,
33798 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33799 test-vasnprintf-posix2.c, test-vasnprintf.c,
33800 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33801 test-vfprintf-posix.c, test-vprintf-posix.c,
33802 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33803 test-xvasprintf.c: Likewise.
33805 2007-05-28 Bruno Haible <bruno@clisp.org>
33807 * gnulib-tool (func_import): Remember the --with-tests command-line
33808 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33809 Reported by Eric Blake.
33811 2007-05-28 Bruno Haible <bruno@clisp.org>
33813 * modules/ftell-tests: New file.
33814 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33815 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33817 * lib/ftell.c: New file.
33818 * modules/ftell: New file.
33819 * m4/ftell.m4: New file.
33820 * doc/functions/ftell.texi: Update.
33821 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33823 * lib/stdio_.h (rpl_ftell): New declaration.
33824 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33827 2007-05-28 Eric Blake <ebb9@byu.net>
33829 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33831 2007-05-28 Bruno Haible <bruno@clisp.org>
33833 * modules/fseek-tests: New file.
33834 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33835 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33837 * lib/fseek.c: New file.
33838 * modules/fseek: New file.
33839 * m4/fseek.m4: New file.
33840 * doc/functions/fseek.texi: Update.
33841 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33843 * lib/stdio_.h (rpl_fseek): New declaration.
33844 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33847 2007-05-28 Bruno Haible <bruno@clisp.org>
33849 * lib/stdio_.h (fflush): More comments.
33851 2007-05-28 Bruno Haible <bruno@clisp.org>
33853 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33856 2007-05-28 Eric Blake <ebb9@byu.net>
33858 Improve lseek module.
33859 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33860 * lib/unistd_.h (lseek): Scale back link warning message.
33861 * tests/test-lseek.c: Beef up test.
33862 * tests/test-lseek.sh: Exercise more facets of lseek.
33863 Reported by Bruno Haible.
33865 2007-05-28 Bruno Haible <bruno@clisp.org>
33867 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33870 2007-05-27 Bruno Haible <bruno@clisp.org>
33872 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33874 2007-05-27 Bruno Haible <bruno@clisp.org>
33876 * modules/openmp: New file.
33877 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33880 2007-05-26 Bruno Haible <bruno@clisp.org>
33882 * modules/chdir-long (Depends-on): Add fchdir.
33883 * modules/chdir-safer (Depends-on): Likewise.
33884 * modules/fts (Depends-on): Likewise.
33885 * modules/fts-lgpl (Depends-on): Likewise.
33886 * modules/openat (Depends-on): Likewise.
33887 * modules/savewd (Depends-on): Likewise.
33889 2007-05-24 Eric Blake <ebb9@byu.net>
33891 Fix lseek on mingw.
33892 * modules/lseek: New module.
33893 * m4/lseek.m4: New file.
33894 * lib/lseek.c: New file.
33895 * modules/lseek-tests: New file.
33896 * tests/test-lseek.c: New file.
33897 * tests/test-lseek.sh: New file.
33898 * MODULES.html.sh: Document lseek module.
33899 * modules/fflush (Depends-on): Add lseek, fseeko.
33900 * modules/fseeko (Depends-on): Likewise.
33901 * modules/ftello (Depends-on): Likewise.
33902 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33904 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33906 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33907 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33908 * lib/ftello.c (rpl_ftello): Likewise.
33909 * tests/test-fseeko.c (main): Test this.
33910 * tests/test-fseeko.sh: Likewise.
33911 * tests/test-ftello.c (main): Likewise.
33912 * tests/test-ftello.sh: Likewise.
33913 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33914 implies replacing fseek.
33915 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33917 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33918 * modules/unistd (Makefile.am): Likewise.
33919 * lib/unistd_.h (lseek): Declare a replacement.
33920 * doc/functions/lseek.texi (lseek): Document this fix.
33921 * doc/functions/fseek.texi (fseek): Likewise.
33922 * doc/functions/ftell.texi (ftell): Likewise.
33924 2007-05-24 Bruno Haible <bruno@clisp.org>
33926 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33927 in the printed representation of a NaN.
33928 * tests/test-vasprintf-posix.c (test_function): Likewise.
33929 * tests/test-snprintf-posix.h (test_function): Likewise.
33930 * tests/test-sprintf-posix.h (test_function): Likewise.
33931 Reported by Eric Blake.
33933 2007-05-23 Eric Blake <ebb9@byu.net>
33935 Fix fseeko/ftello on cygwin 1.5.24.
33936 * doc/functions/fseeko.texi (fseeko): Document the fix.
33937 * doc/functions/ftello.texi (ftello): Document the fix.
33938 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33939 * doc/functions/stdout.text (stdout): New file.
33940 * doc/functions/stderr.text (stderr): New file.
33941 * doc/gnulib.texi (Function Substitutes): Use new files.
33942 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33944 * tests/test-ftello.c (main): Likewise for ftello.
33945 * tests/test-fseeko.sh: New file.
33946 * tests/test-ftello.sh: New file.
33947 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33948 with seekable stdin.
33949 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33950 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33951 (gl_REPLACE_FSEEKO): New macro.
33952 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33953 * modules/fseeko (Files): Distribute fseeko.c.
33954 * modules/ftello (Files): Distribute ftello.c.
33955 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33957 * lib/ftello.c (rpl_ftello): New file.
33958 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33960 (gl_STDIN_LARGE_OFFSET): New macro.
33961 * modules/stdio (Makefile.am): Perform the replacement.
33962 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33964 2007-05-23 Bruno Haible <bruno@clisp.org>
33966 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33967 GNULIB_POSIXCHECK is defined.
33969 2007-05-21 Bruno Haible <bruno@clisp.org>
33971 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33972 Check also the output for NaN arguments. When cross-compiling, guess
33974 * lib/vasnprintf.c: Update comments.
33975 * tests/test-vasnprintf-posix.c (strisnan): New function.
33976 (test_function): Use it.
33977 * tests/test-vasprintf-posix.c (strisnan): New function.
33978 (test_function): Use it.
33979 * tests/test-snprintf-posix.h (strisnan): New function.
33980 (test_function): Use it.
33981 * tests/test-sprintf-posix.h (strisnan): New function.
33982 (test_function): Use it.
33983 Reported by Eric Blake.
33985 2007-05-20 Bruno Haible <bruno@clisp.org>
33987 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33988 numbers that fails on BeOS.
33989 * doc/functions/frexpl.texi: Update.
33991 2007-05-20 Jim Meyering <jim@meyering.net>
33993 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33994 forced upon us by glibc-2.6.
33996 2007-05-20 Bruno Haible <bruno@clisp.org>
33998 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33999 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34000 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34001 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34002 NEED_PRINTF_INFINITE.
34003 (is_infinitel): New function.
34004 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34005 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34006 gl_PREREQ_VASNPRINTF_INFINITE.
34007 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34008 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34009 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34010 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34011 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34012 gl_PREREQ_VASNPRINTF_INFINITE.
34013 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34014 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34015 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34016 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34017 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34018 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34019 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34020 * doc/functions/fprintf.texi: Update.
34021 * doc/functions/printf.texi: Update.
34022 * doc/functions/snprintf.texi: Update.
34023 * doc/functions/sprintf.texi: Update.
34024 * doc/functions/vfprintf.texi: Update.
34025 * doc/functions/vprintf.texi: Update.
34026 * doc/functions/vsnprintf.texi: Update.
34027 * doc/functions/vsprintf.texi: Update.
34029 2007-05-20 Bruno Haible <bruno@clisp.org>
34031 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34032 was not found in libc.
34033 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34035 2007-05-20 Bruno Haible <bruno@clisp.org>
34037 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34038 printed as "-nan" instead of "nan".
34039 * tests/test-vasprintf-posix.c (test_function): Likewise.
34040 * tests/test-snprintf-posix.h (test_function): Likewise.
34041 * tests/test-sprintf-posix.h (test_function): Likewise.
34042 Needed for HP-UX 11.
34044 2007-05-20 Jim Meyering <jim@meyering.net>
34046 Fix buggy test for the fchownat-deref bug.
34047 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34048 symlink required for the run-test. Without it, this test would
34049 always declare that fchownat doesn't work, and client code would
34050 unnecessarily use the replacement function with fixed libc.
34051 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34052 Reported by Greg Schafer.
34054 2007-05-19 Bruno Haible <bruno@clisp.org>
34056 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34057 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34058 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34059 Needed for IRIX 6.5 and Solaris 2.5.1.
34061 2007-05-19 Bruno Haible <bruno@clisp.org>
34063 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34064 (test_function): Skip tests involving -0.0 on platforms where
34066 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34067 (test_function): Skip tests involving -0.0 on platforms where
34069 * tests/test-snprintf-posix.h (have_minus_zero): New function.
34070 (test_function): Skip tests involving -0.0 on platforms where
34072 * tests/test-sprintf-posix.h (have_minus_zero): New function.
34073 (test_function): Skip tests involving -0.0 on platforms where
34075 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34077 * tests/test-printf-posix.h (test_function): Likewise.
34078 * tests/test-printf-posix.output: Remove all -0.0 related results.
34079 Needed for IRIX 6.5.
34081 2007-05-19 Bruno Haible <bruno@clisp.org>
34083 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34084 printed as "nan0x7fffffff" instead of "nan".
34085 * tests/test-vasprintf-posix.c (test_function): Likewise.
34086 * tests/test-snprintf-posix.h (test_function): Likewise.
34087 * tests/test-sprintf-posix.h (test_function): Likewise.
34088 * tests/test-fprintf-posix.h (NaN): Remove macro.
34089 (test_function): Remove all NaN related tests.
34090 * tests/test-printf-posix.h (NaN): Remove macro.
34091 (test_function): Remove all NaN related tests.
34092 * tests/test-printf-posix.output: Remove all NaN related results.
34093 Needed for IRIX 6.5.
34095 2007-05-19 Bruno Haible <bruno@clisp.org>
34097 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34098 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34100 2007-05-19 Bruno Haible <bruno@clisp.org>
34102 * lib/float_.h: New file.
34103 * m4/float_h.m4: New file.
34104 * modules/float: New file.
34105 * modules/isnanl (Dependencies): Add float.
34106 * modules/isnanl-nolibm (Dependencies): Likewise.
34107 * modules/mathl (Dependencies): Likewise.
34108 * modules/printf-frexpl (Dependencies): Likewise.
34109 * modules/signbit (Dependencies): Likewise.
34110 * modules/vasnprintf (Dependencies): Likewise.
34111 * doc/headers/float.texi: Update.
34113 2007-05-19 Jim Meyering <jim@meyering.net>
34115 * lib/utimens.c (gl_futimens): Rename from futimens,
34116 now that glibc-2.6 declares futimens.
34117 * lib/utimens.h: Likewise.
34119 2007-05-19 Bruno Haible <bruno@clisp.org>
34121 Avoid test failures on mingw.
34122 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34123 * tests/test-printf-posix.sh: Likewise.
34124 * tests/test-vfprintf-posix.sh: Likewise.
34125 * tests/test-vprintf-posix.sh: Likewise.
34127 2007-05-19 Bruno Haible <bruno@clisp.org>
34129 Fix *printf result for NaN, Inf, -0.0 on mingw.
34130 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34131 * lib/vasnprintf.c: Include math.h and isnan.h.
34132 (is_infinite_or_zero): New function.
34133 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34134 values in the %f, %F, %e, %E, %g, %G directives.
34135 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34136 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34137 gl_PRINTF_INFINITE and test its result. Invoke
34138 gl_PREREQ_VASNPRINTF_INFINITE.
34139 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34140 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34141 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34142 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34143 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34144 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34145 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34146 * doc/functions/fprintf.texi: Update.
34147 * doc/functions/printf.texi: Update.
34148 * doc/functions/snprintf.texi: Update.
34149 * doc/functions/sprintf.texi: Update.
34150 * doc/functions/vfprintf.texi: Update.
34151 * doc/functions/vprintf.texi: Update.
34152 * doc/functions/vsnprintf.texi: Update.
34153 * doc/functions/vsprintf.texi: Update.
34155 2007-05-19 Bruno Haible <bruno@clisp.org>
34157 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34158 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34159 Instead of multiplying with 10^k, set extra_zeroes to k.
34160 (scale10_round_long_double): Remove function.
34162 2007-05-18 Bruno Haible <bruno@clisp.org>
34164 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34165 introduced on 2007-05-06.
34167 2007-05-18 Bruno Haible <bruno@clisp.org>
34169 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34171 * tests/test-vasprintf-posix.c (test_function): Likewise.
34172 * tests/test-snprintf-posix.h (test_function): Likewise.
34173 * tests/test-sprintf-posix.h (test_function): Likewise.
34175 2007-05-18 Bruno Haible <bruno@clisp.org>
34177 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34178 (strmatch): New function.
34179 (test_function): Test the %f directive on numbers of various exponents.
34180 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34181 (strmatch): New function.
34182 (test_function): Test the %f directive on numbers of various exponents.
34183 * tests/test-snprintf-posix.h (strmatch): New function.
34184 (test_function): Test the %f directive on numbers of various exponents.
34185 * tests/test-sprintf-posix.h (strmatch): New function.
34186 (test_function): Test the %f directive on numbers of various exponents.
34187 * tests/test-snprintf-posix.c (SIZEOF): New macro.
34188 * tests/test-sprintf-posix.c (SIZEOF): New macro.
34189 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34190 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34192 2007-05-18 Bruno Haible <bruno@clisp.org>
34194 Add support for 'long double' number output.
34195 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34196 * lib/vasnprintf.c: Include math.h and float+.h.
34197 (mp_limb_t): New type.
34198 (GMP_LIMB_BITS): New macro.
34199 (mp_twolimb_t): New type.
34200 (GMP_TWOLIMB_BITS): New macro.
34202 (multiply, divide, convert_to_decimal, decode_long_double,
34203 scale10_round_long_double, scale10_round_decimal_long_double,
34204 floorlog10l): New functions.
34205 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34206 for the %f, %F, %e, %E, %g, %G directives.
34207 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34208 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34209 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34210 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34211 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34212 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34213 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34214 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34215 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34216 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34217 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34218 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34219 * modules/snprintf-posix (Depends-on): Likewise.
34220 * modules/sprintf-posix (Depends-on): Likewise.
34221 * modules/vasnprintf-posix (Depends-on): Likewise.
34222 * modules/vasprintf-posix (Depends-on): Likewise.
34223 * modules/vfprintf-posix (Depends-on): Likewise.
34224 * modules/vsnprintf-posix (Depends-on): Likewise.
34225 * modules/vsprintf-posix (Depends-on): Likewise.
34226 * modules/vasnprintf (Files): Add lib/float+.h.
34227 * doc/functions/fprintf.texi: Update.
34228 * doc/functions/printf.texi: Update.
34229 * doc/functions/snprintf.texi: Update.
34230 * doc/functions/sprintf.texi: Update.
34231 * doc/functions/vfprintf.texi: Update.
34232 * doc/functions/vprintf.texi: Update.
34233 * doc/functions/vsnprintf.texi: Update.
34234 * doc/functions/vsprintf.texi: Update.
34236 2007-05-18 Bruno Haible <bruno@clisp.org>
34238 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34240 2007-05-18 Bruno Haible <bruno@clisp.org>
34242 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34243 for printing 64-bit integers. Needed for mingw.
34245 2007-05-18 Bruno Haible <bruno@clisp.org>
34247 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34248 gl_FUNC_FREXPL_WORKS.
34249 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34251 2007-05-18 Bruno Haible <bruno@clisp.org>
34253 * modules/frexpl-nolibm-tests: New file.
34255 * modules/frexpl-nolibm: New file.
34256 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34258 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
34260 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34261 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
34262 GCC 4.2, which otherwise issues a lot of warnings.
34263 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34264 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34266 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34267 * modules/iconv_open (iconv.h): Likewise.
34268 * modules/locale (locale.h): Likewise.
34269 * modules/netinet_in (netinet/in.h): Likewise.
34270 * modules/sys_select (sys_select.h): Likewise.
34271 * modules/sys_socket (sys/socket.h): Likewise.
34272 * modules/sys_stat (sys/stat.h): Likewise.
34273 * modules/sysexits (sysexits.h): Likewise.
34274 * modules/unistd (unistd.h): Likewise.
34276 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34278 * modules/closein-tests (Makefile.am): Distribute
34281 2007-05-17 Bruno Haible <bruno@clisp.org>
34283 * tests/test-printf-posix.output: Renamed from
34284 tests/test-fprintf-posix.out.
34285 * modules/fprintf-posix-tests: Update.
34286 * modules/printf-posix-tests: Update.
34287 * modules/vfprintf-posix-tests: Update.
34288 * modules/vprintf-posix-tests: Update.
34289 * tests/test-fprintf-posix.sh: Update.
34290 * tests/test-printf-posix.sh: Update.
34291 * tests/test-vfprintf-posix.sh: Update.
34292 * tests/test-vprintf-posix.sh: Update.
34293 Reported by Ralf Wildenhues.
34295 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
34297 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34298 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
34299 GCC 4.2, which otherwise issues a lot of warnings.
34300 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34301 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34302 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34303 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34304 it should no longer be needed.
34305 * lib/string_.h: Likewise.
34306 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34307 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34308 * modules/inttypes (inttypes.h): Likewise.
34309 * modules/math (math.h): Likewise.
34310 * modules/search (search.h): Likewise.
34311 * modules/signal (signal.h): Likewise.
34312 * modules/stdint (stdint.h): Likewise.
34313 * modules/stdio (stdio.h): Likewise.
34314 * modules/stdlib (stdlib.h): Likewise.
34315 * modules/string (string.h): Likewise.
34316 * modules/sys_time (sys/time.h): Likewise.
34317 * modules/time (time.h): Likewise.
34318 * modules/wchar (wchar.h): Likewise.
34319 * modules/wctype (wtype.h): Likewise.
34321 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
34323 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34325 2007-05-13 Bruno Haible <bruno@clisp.org>
34327 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34328 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34329 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34330 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34331 (gl_PREREQ_STRTOK_R): Don't require it here.
34333 2007-05-13 Bruno Haible <bruno@clisp.org>
34335 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34336 when used in C++ mode.
34338 2007-05-12 Bruno Haible <bruno@clisp.org>
34340 * lib/linebuffer.h: Tweak doc.
34341 * lib/linebuffer.c: Likewise.
34343 2007-05-12 James Youngman <jay@gnu.org>
34345 * lib/linebuffer.c (readlinebuffer_delim): New function,
34346 like readlinebuffer, but use a caller-specified delimiter.
34347 (readlinebuffer): Just call readlinebuffer_delim with '\n'
34349 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34351 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
34353 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34354 * modules/openat (Files): Remove openat-die.c.
34355 (Depends-on): Add openat-die.
34356 * modules/openat-die: New module.
34358 2007-05-06 Bruno Haible <bruno@clisp.org>
34360 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34361 Update with info about Cygwin.
34362 * doc/functions/fprintf.texi: Update.
34363 * doc/functions/printf.texi: Update.
34364 * doc/functions/snprintf.texi: Update.
34365 * doc/functions/sprintf.texi: Update.
34366 * doc/functions/vfprintf.texi: Update.
34367 * doc/functions/vprintf.texi: Update.
34368 * doc/functions/vsnprintf.texi: Update.
34369 * doc/functions/vsprintf.texi: Update.
34370 Reported by Eric Blake.
34372 2007-05-06 Bruno Haible <bruno@clisp.org>
34374 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34375 padding ourselves for the floating-point directives.
34376 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34377 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34378 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34379 gl_PRINTF_FLAG_ZERO and test its result. Invoke
34380 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34381 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34382 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34383 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34384 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34385 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34386 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34387 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34388 * tests/test-snprintf-posix.h (test_function): Also check the width
34389 and some flags in the %f directive.
34390 * tests/test-sprintf-posix.h (test_function): Likewise.
34391 * tests/test-vasnprintf-posix.c (test_function): Likewise.
34392 * tests/test-vasprintf-posix.c (test_function): Likewise.
34393 * doc/functions/fprintf.texi: Update.
34394 * doc/functions/printf.texi: Update.
34395 * doc/functions/snprintf.texi: Update.
34396 * doc/functions/sprintf.texi: Update.
34397 * doc/functions/vfprintf.texi: Update.
34398 * doc/functions/vprintf.texi: Update.
34399 * doc/functions/vsnprintf.texi: Update.
34400 * doc/functions/vsprintf.texi: Update.
34402 2007-05-06 Bruno Haible <bruno@clisp.org>
34404 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34405 pass the ' flag character to sprintf or snprintf.
34406 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34407 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34408 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34409 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34410 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34411 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34412 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34413 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34414 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34415 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34416 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34417 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34418 * tests/test-snprintf-posix.h (test_function): Also check the grouping
34420 * tests/test-sprintf-posix.h (test_function): Likewise.
34421 * tests/test-vasnprintf-posix.c (test_function): Likewise.
34422 * tests/test-vasprintf-posix.c (test_function): Likewise.
34423 * doc/functions/fprintf.texi: Update.
34424 * doc/functions/printf.texi: Update.
34425 * doc/functions/snprintf.texi: Update.
34426 * doc/functions/sprintf.texi: Update.
34427 * doc/functions/vfprintf.texi: Update.
34428 * doc/functions/vprintf.texi: Update.
34429 * doc/functions/vsnprintf.texi: Update.
34430 * doc/functions/vsprintf.texi: Update.
34432 2007-05-01 Bruno Haible <bruno@clisp.org>
34434 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34436 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
34438 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34439 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
34441 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
34443 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34444 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
34445 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34447 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
34449 * lib/argp-help.c (struct hol_entry): New member `ord'.
34450 (HOL_ENTRY_PTRCMP): Use ord for comparison
34451 (hol_sort): Initialize ord.
34453 2007-05-01 Bruno Haible <bruno@clisp.org>
34455 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34456 Reported by Eric Blake.
34457 * doc/gnulib.texi (Function Substitutes): Update.
34459 2007-05-01 Bruno Haible <bruno@clisp.org>
34461 * doc/functions.texi: Remove file, now redundant through
34462 doc/functions/*.texi.
34464 2007-05-01 Bruno Haible <bruno@clisp.org>
34466 * modules/argp (Depends-on): Add sleep.
34468 2007-05-01 Bruno Haible <bruno@clisp.org>
34470 * modules/sleep-tests: New file.
34471 * tests/test-sleep.c: New file.
34473 * modules/sleep: New file.
34474 * lib/sleep.c: New file.
34475 * m4/sleep.m4: New file.
34476 * lib/unistd_.h (sleep): New declaration.
34477 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34479 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34480 * doc/functions/sleep.texi: Document the sleep module.
34482 2007-05-01 Bruno Haible <bruno@clisp.org>
34484 * lib/sigprocmask.h: Remove file.
34485 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34486 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34487 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34488 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34489 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34490 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34491 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34492 HAVE_SIGSET_T as a shell variable.
34493 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34494 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34495 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34496 (Depends-on): Add signal. Remove verify.
34497 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34498 (Include): Mention <signal.h> instead of sigprocmask.h.
34499 * NEWS: Mention the change.
34500 * lib/fatal-signal.c: Don't include sigprocmask.h.
34502 2007-05-01 Bruno Haible <bruno@clisp.org>
34504 * modules/signal: New file.
34505 * lib/signal_.h: New file.
34506 * m4/signal_h.m4: New file.
34508 2007-05-01 Bruno Haible <bruno@clisp.org>
34510 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34511 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34512 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34513 HAVE_WCTYPE_CTMP_BUG into wctype.h.
34515 2007-05-01 Bruno Haible <bruno@clisp.org>
34517 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34519 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34520 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34521 * modules/sys_stat (Makefile.am): Substitute their values into
34524 2007-05-01 Bruno Haible <bruno@clisp.org>
34526 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34527 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34528 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34530 2007-05-01 Bruno Haible <bruno@clisp.org>
34532 * doc/header/assert.texi: Undo last change: don't mention the gnulib
34533 'assert' module here.
34535 2007-05-01 Bruno Haible <bruno@clisp.org>
34537 * doc/functions/*.texi: New files.
34538 * doc/functions/google-ranking.txt: New file.
34539 * doc/gnulib.texi (Function Substitutes): New chapter.
34540 (ctime, inet_ntoa): Remove sections.
34541 * doc/ctime.texi: Remove file.
34542 * doc/inet_ntoa.texi: Remove file.
34543 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34545 (%.info): New rule, specifying a --reference-limit.
34547 2007-05-01 Bruno Haible <bruno@clisp.org>
34549 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34551 2007-05-01 Bruno Haible <bruno@clisp.org>
34553 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34554 the portability of 'mkdir' to mingw systems.
34556 2007-05-01 Bruno Haible <bruno@clisp.org>
34558 * doc/headers/google-ranking.txt: New file.
34560 2007-04-30 Eric Blake <ebb9@byu.net>
34562 Prefer fseeko to fseek.
34563 * modules/getpass (Depends-on): Add fseeko.
34564 * lib/getpass.c (getpass): Use fseeko, not fseek.
34566 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
34568 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34569 assumes the sorting is stable, while most qsort implementations
34570 are not. Use argument addresses to ensure they never compare as
34573 * tests/test-argp-2.sh (usage-indent test): Fix output
34574 (func_compare): Restore diff options
34575 * tests/test-argp.c: Restore #include "progname.h"
34577 2007-04-29 Bruno Haible <bruno@clisp.org>
34579 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34580 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34581 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34582 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34583 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34584 (configure.ac): Define CHECK_SNPRINTF_POSIX.
34585 (TESTS, check_PROGRAMS): Add test-snprintf.
34586 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34587 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34588 (TESTS, check_PROGRAMS): Add test-vsnprintf.
34589 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34590 assertions that fail on HP-UX, OSF/1, or IRIX.
34591 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34593 2007-04-29 Bruno Haible <bruno@clisp.org>
34595 * MODULES.html.sh (posix_functions): Remove 'contents'.
34597 2007-04-29 Karl Berry <karl@gnu.org>
34599 * config/srclist.txt (gendocs_template_min): new entry.
34601 2007-04-29 Bruno Haible <bruno@clisp.org>
34603 Work around fpurge bug on BSD systems.
34604 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34605 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34606 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34607 fpurge to rpl_fpurge if the system already has this function.
34608 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34609 the case where the system already has this function. Correct invariants
34611 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34614 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
34616 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
34617 proposed by Sven Verdoolaege.
34619 * tests/test-argp.c: Fix option ordering. Test deeply clustered
34621 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34622 (usage and help tests): Update
34624 2007-04-29 Bruno Haible <bruno@clisp.org>
34626 * tests/test-fflush.c (main): Use a file of size 17, not 10.
34627 Print more information in case of failure. Disable a test on BeOS.
34629 2007-04-29 Bruno Haible <bruno@clisp.org>
34631 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34632 This helps debugging on systems on which no gdb is available.
34634 2007-04-29 Bruno Haible <bruno@clisp.org>
34636 * lib/freading.h: Improve comments.
34637 * lib/fwriting.h: Likewise.
34638 * tests/test-freading.c (main): Don't check freading immediately after
34639 repositioning. Needed for glibc.
34641 2007-04-29 Bruno Haible <bruno@clisp.org>
34643 * lib/freading.c (freading): Trivial simplification.
34645 2007-04-28 Bruno Haible <bruno@clisp.org>
34647 * tests/test-fwriting.c (main): Also test the interaction between
34648 fflush and fwriting.
34649 * modules/fwriting-tests (Depends-on): Add fflush.
34651 * tests/test-freading.c (main): Also test the interaction between
34652 fflush and freading.
34653 * modules/freading-tests (Depends-on): Add fflush.
34655 2007-04-28 Bruno Haible <bruno@clisp.org>
34657 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34659 Suggested by Eric Blake.
34661 2007-04-28 Jim Meyering <jim@meyering.net>
34663 Avoid false-negative in gl_STDINT_H's C99 conformance test.
34664 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34665 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34667 2007-04-27 Eric Blake <ebb9@byu.net>
34669 * doc/headers/assert.texi (assert.h): Document assert module use.
34671 2007-04-27 Bruno Haible <bruno@clisp.org>
34673 * doc/headers/*.texi: New files.
34674 * doc/gnulib.texi (Header File Substitutes): New chapter.
34675 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34677 (standards.info ,standards.html, standards.dvi): Update dependencies.
34678 (mostlyclean, clean): New targets.
34680 2007-04-27 Bruno Haible <bruno@clisp.org>
34682 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34683 * modules/sysexits (Files, Makefile.am): Update.
34685 * lib/sys_socket_.h: Renamed from lib/socket_.h.
34686 * modules/sys_socket (Files, Makefile.am): Update.
34688 * lib/sys_stat_.h: Renamed from lib/stat_.h.
34689 * modules/sys_stat (Files, Makefile.am): Update.
34691 2007-04-27 Eric Blake <ebb9@byu.net>
34693 * lib/freading.h: Improve comments.
34694 * lib/fwriting.h: Likewise.
34695 * lib/fflush.c: Likewise.
34697 Fix closein for mingw.
34698 * modules/closein-tests: Add tests for closein.
34699 * tests/test-closein.c: New file.
34700 * tests/test-closein.sh: Likewise.
34701 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34702 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34704 2007-04-27 Bruno Haible <bruno@clisp.org>
34706 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34708 * lib/math_.h [__DECC]: Likewise.
34709 * lib/stdio_.h [__DECC]: Likewise.
34710 * lib/stdlib_.h [__DECC]: Likewise.
34711 * lib/string_.h [__DECC]: Likewise.
34712 * lib/time_.h [__DECC]: Likewise.
34713 * lib/wchar_.h [__DECC]: Likewise.
34714 * lib/wctype_.h [__DECC]: Likewise.
34716 2007-04-27 Bruno Haible <bruno@clisp.org>
34718 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34720 2007-04-27 Bruno Haible <bruno@clisp.org>
34722 * lib/fflush.c: Add comments.
34723 * modules/fpurge-tests (Depends-on): Add fflush.
34724 * modules/freadable-tests (Depends-on): Likewise.
34725 * modules/fwritable-tests (Depends-on): Likewise.
34727 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
34729 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34730 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
34731 Report by Bruno Haible <bruno@clisp.org>.
34733 2007-04-26 Eric Blake <ebb9@byu.net>
34735 Fix fflush on mingw.
34736 * modules/fflush (Depends-on): Add freading.
34737 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34740 2007-04-26 Eric Blake <ebb9@byu.net>
34741 and Bruno Haible <bruno@clisp.org>
34743 Implement freading and fwriting.
34744 * lib/freading.c: New file.
34745 * lib/freading.h: Likewise.
34746 * m4/freading.m4: Likewise.
34747 * modules/freading: Likewise.
34748 * modules/freading-tests: Likewise.
34749 * tests/test-freading.c: Likewise.
34750 * lib/fwriting.c: New file.
34751 * lib/fwriting.h: Likewise.
34752 * m4/fwriting.m4: Likewise.
34753 * modules/fwriting: Likewise.
34754 * modules/fwriting-tests: Likewise.
34755 * tests/test-fwriting.c: Likewise.
34756 * MODULES.html.sh (File stream based Input/Output): Mention them.
34758 2007-04-26 Bruno Haible <bruno@clisp.org>
34760 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34761 'long' when we assume it.
34762 Suggested by Eric Blake.
34764 2007-04-26 Bruno Haible <bruno@clisp.org>
34766 Ensure fseeko, ftello are declared on glibc systems.
34767 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34768 * modules/fseeko (configure.ac-early): Likewise.
34769 * modules/ftello (configure.ac-early): Likewise.
34770 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34771 AC_FUNC_FSEEKO for this.
34772 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34773 (gl_CHECK_FSEEKO): Remove macro.
34775 2007-04-26 Bruno Haible <bruno@clisp.org>
34777 * tests/test-fflush.c (main): Also check the ftell result after
34778 fflush and fseek/fseeko.
34779 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34780 file descriptor position cache in the stream.
34781 * lib/fseeko.c (rpl_fseeko): Likewise.
34783 2007-04-26 Bruno Haible <bruno@clisp.org>
34785 * modules/fflush-tests (Depends-on): Add fseeko.
34787 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
34788 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34790 * lib/argz_.h: ensure error_t definition is obtained in same
34791 mechanism system argz.h would have.
34792 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34793 argz facilities are known bad. Err on the side of caution if
34796 2007-04-25 Eric Blake <ebb9@byu.net>
34798 * lib/fpurge.c (includes): Use stdlib.h for free.
34799 * tests/test-fflush.c (main): Also test fflush-fseeko.
34801 2007-04-25 Bruno Haible <bruno@clisp.org>
34803 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34804 * lib/fseeko.c: New file.
34805 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34806 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34807 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34809 (gl_FUNC_FSEEKO): Invoke it.
34810 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34811 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34812 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34814 2007-04-25 Bruno Haible <bruno@clisp.org>
34816 * modules/fflush (Depends-on): Add ftello.
34818 2007-04-25 Bruno Haible <bruno@clisp.org>
34820 * modules/ftello-tests: New file.
34821 * tests/test-ftello.c: New file.
34823 * modules/ftello: New file.
34824 * m4/ftello.m4: New file.
34825 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34827 * lib/stdio_.h (ftello): New declaration.
34828 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34831 2007-04-25 Bruno Haible <bruno@clisp.org>
34833 * modules/fseeko-tests: New file.
34834 * tests/test-fseeko.c: New file.
34836 * modules/fseeko: New file.
34837 * m4/fseeko.m4: New file.
34838 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34840 * lib/stdio_.h (fseeko): New declaration.
34841 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34844 2007-04-25 Bruno Haible <bruno@clisp.org>
34846 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34848 2007-04-25 Bruno Haible <bruno@clisp.org>
34850 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34851 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34852 * tests/test-unistd.c: Likewise.
34853 * tests/test-fcntl.c: Likewise.
34855 2007-04-23 Eric Blake <ebb9@byu.net>
34857 * lib/fflush.c: Fix missing include.
34858 Reported by Bruno Haible.
34860 2007-04-23 Bruno Haible <bruno@clisp.org>
34862 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34863 Reported by Eric Blake.
34865 2007-04-23 Bruno Haible <bruno@clisp.org>
34867 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34869 2007-04-23 Bruno Haible <bruno@clisp.org>
34871 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34873 2007-04-23 Bruno Haible <bruno@clisp.org>
34875 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34876 Needed on HP-UX 11.
34878 2007-04-16 Eric Blake <ebb9@byu.net>
34880 Make fflush rely on fpurge.
34881 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34882 open coding all variants.
34883 * modules/fflush (Depends-on): Add fpurge and unistd.
34884 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34885 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34887 Fix --with-tests compilation on cygwin.
34888 * modules/argmatch-tests (Makefile.am): List gnulib library first
34890 * modules/argp-tests (Makefile.am): Likewise.
34891 * modules/array-list-tests (Makefile.am): Likewise.
34892 * modules/array-oset-tests (Makefile.am): Likewise.
34893 * modules/avltree-list-tests (Makefile.am): Likewise.
34894 * modules/avltree-oset-tests (Makefile.am): Likewise.
34895 * modules/avltreehash-list-tests (Makefile.am): Likewise.
34896 * modules/carray-list-tests (Makefile.am): Likewise.
34897 * modules/dirname-tests (Makefile.am): Likewise.
34898 * modules/frexp-tests (Makefile.am): Likewise.
34899 * modules/isnanl-tests (Makefile.am): Likewise.
34900 * modules/linked-list-tests (Makefile.am): Likewise.
34901 * modules/linkedhash-list-tests (Makefile.am): Likewise.
34902 * modules/lock-tests (Makefile.am): Likewise.
34903 * modules/rbtree-list-tests (Makefile.am): Likewise.
34904 * modules/rbtree-oset-tests (Makefile.am): Likewise.
34905 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34906 * modules/tls-tests (Makefile.am): Likewise.
34907 * modules/tsearch-tests (Makefile.am): Likewise.
34908 * modules/xvasprintf-tests (Makefile.am): Likewise.
34910 Fix fpurge for cygwin.
34911 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34913 * modules/fpurge-tests (Depends-on): Clean up trash.
34915 2007-04-16 Simon Josefsson <simon@josefsson.org>
34917 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34919 * m4/autobuild.m4: Re-indent.
34921 2007-04-13 Bruno Haible <bruno@clisp.org>
34923 * modules/fpurge-tests: New file.
34924 * tests/test-fpurge.c: New file.
34926 * modules/fpurge: New file.
34927 * lib/fpurge.h: New file.
34928 * lib/fpurge.c: New file.
34929 * m4/fpurge.m4: New file.
34931 2007-04-13 Bruno Haible <bruno@clisp.org>
34933 * modules/fbufmode-tests: New file.
34934 * tests/test-fbufmode.c: New file.
34936 * modules/fbufmode: New file.
34937 * lib/fbufmode.h: New file.
34938 * lib/fbufmode.c: New file.
34939 * m4/fbufmode.m4: New file.
34941 2007-04-13 Bruno Haible <bruno@clisp.org>
34943 * modules/fwritable-tests: New file.
34944 * tests/test-fwritable.c: New file.
34946 * modules/fwritable: New file.
34947 * lib/fwritable.h: New file.
34948 * lib/fwritable.c: New file.
34949 * m4/fwritable.m4: New file.
34951 2007-04-13 Bruno Haible <bruno@clisp.org>
34953 * modules/freadable-tests: New file.
34954 * tests/test-freadable.c: New file.
34956 * modules/freadable: New file.
34957 * lib/freadable.h: New file.
34958 * lib/freadable.c: New file.
34959 * m4/freadable.m4: New file.
34961 2007-04-13 Bruno Haible <bruno@clisp.org>
34963 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34966 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
34968 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34969 gzip bootstrap.conf to avoid dragging in i18n machinery.
34970 (gnulib_tool_option): Use it.
34972 2007-04-13 Bruno Haible <bruno@clisp.org>
34974 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34976 * tests/test-vasprintf-posix.c (test_function): Likewise.
34977 * tests/test-snprintf-posix.h (test_function): Likewise.
34978 * tests/test-sprintf-posix.h (test_function): Likewise.
34979 * tests/test-fprintf-posix.h (test_function): Likewise.
34980 * tests/test-printf-posix.h (test_function): Likewise.
34981 * tests/test-fprintf-posix.out: Likewise.
34983 2007-04-13 Bruno Haible <bruno@clisp.org>
34985 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34986 * modules/tls-tests (configure.ac): Likewise.
34987 Reported by Arto C. Nirkko <anirkko@insel.ch>.
34989 2007-04-13 Bruno Haible <bruno@clisp.org>
34991 * lib/tls.c (glthread_tls_get): Fix return type.
34992 Patch by Arto C. Nirkko <anirkko@insel.ch>.
34994 2007-04-12 Eric Blake <ebb9@byu.net>
34996 * modules/gettime (Depends-on): Remove gettime.
34997 Reported by Dmitry V. Levin.
34999 2007-04-12 Bruno Haible <bruno@clisp.org>
35001 * modules/fflush (Include): Mention <stdio.h>.
35002 * modules/strtoimax (Include): Mention <inttypes.h>.
35003 * modules/strtoumax (Include): Likewise.
35005 2007-04-12 Eric Blake <ebb9@byu.net>
35007 * .cvsignore: New file.
35008 * .gitignore: Likewise.
35010 2007-04-12 Bruno Haible <bruno@clisp.org>
35012 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35013 not before, since $(LDADD) often contains libgnu.a.
35014 * modules/striconv-tests (test_striconv_LDADD): Likewise.
35015 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35016 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35019 2007-04-12 Eric Blake <ebb9@byu.net>
35021 Work around glibc's failure to flush stdin on fclose.
35022 * lib/closein.c (close_stdin): Flush stdin before closing.
35024 Work around glibc's failure to reset seekable stdin on exit.
35025 * modules/closein: New module.
35026 * lib/closein.c: New file.
35027 * lib/closein.h: Likewise.
35028 * m4/closein.m4: Likewise.
35029 * MODULES.html.sh (File stream based Input/Output): Document it.
35031 2007-04-12 Simon Josefsson <simon@josefsson.org>
35033 * gnulib-tool: Rename generated 'autobuild' script to
35034 'do-autobuild' in --create-megatestdir output.
35036 * doc/gnulib.texi (Build robot for gnulib): Fix.
35038 2007-04-12 Simon Josefsson <simon@josefsson.org>
35040 * modules/sysexits (Depends-on): Add absolute-header.
35042 2007-04-12 Eric Blake <ebb9@byu.net>
35044 No need to preserve errno on success.
35045 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35046 Reported by Bruno Haible.
35048 2007-04-12 Simon Josefsson <simon@josefsson.org>
35050 * MODULES.html.sh (Support for maintaining and releasing
35051 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
35053 2007-04-12 Simon Josefsson <simon@josefsson.org>
35055 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35057 2007-04-12 Simon Josefsson <simon@josefsson.org>
35059 * modules/autobuild: New module.
35061 * m4/autobuild.m4: New file.
35063 2007-04-11 Bruno Haible <bruno@clisp.org>
35065 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35066 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35067 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35068 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35069 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35070 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35071 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35072 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35073 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35074 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35075 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35076 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35077 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35078 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35079 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35080 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35081 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35082 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35083 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35084 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35085 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35086 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35087 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35088 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35089 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35090 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35091 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35092 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35093 Reported by Eric Blake.
35095 2007-04-11 Bruno Haible <bruno@clisp.org>
35097 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35099 2007-04-10 Bruno Haible <bruno@clisp.org>
35101 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35102 for NaN and Infinity. Needed on FreeBSD 6.1.
35103 * tests/test-vasnprintf-posix.c (test_function): Undo last change
35104 regarding results for "%010a" of Infinity and NaN.
35105 * tests/test-vasprintf-posix.c (test_function): Likewise.
35106 * tests/test-snprintf-posix.h (test_function): Likewise.
35107 * tests/test-sprintf-posix.h (test_function): Likewise.
35108 * tests/test-fprintf-posix.h (test_function): Likewise.
35109 * tests/test-printf-posix.h (test_function): Likewise.
35110 * tests/test-fprintf-posix.out: Likewise.
35112 2007-04-10 Bruno Haible <bruno@clisp.org>
35114 * modules/locale-tests: New file.
35115 * tests/test-locale.c: New file.
35117 * modules/locale: New file.
35118 * lib/locale_.h: New file.
35119 * m4/locale_h.m4: New file.
35121 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
35122 Bruno Haible <bruno@clisp.org>
35124 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35125 be determined, test for availability of the copysignf, copysign,
35126 copysignl functions.
35127 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35128 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35129 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35131 2007-04-09 Eric Blake <ebb9@byu.net>
35133 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35134 * modules/stdio (Makefile.am): Support fflush.
35135 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35136 * modules/fflush: New file.
35137 * lib/fflush.c: Likewise.
35138 * m4/fflush.m4: Likewise.
35139 * modules/fflush-tests: New test.
35140 * tests/test-fflush.c: Likewise.
35141 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35143 2007-04-06 Bruno Haible <bruno@clisp.org>
35145 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35146 (VASNPRINTF): Use signbit for faster determination whether to print a
35148 * modules/vasnprintf (Files): Remove lib/float+.h.
35149 * modules/fprintf-posix (Depends-on): Add signbit.
35150 * modules/snprintf-posix (Depends-on): Likewise.
35151 * modules/sprintf-posix (Depends-on): Likewise.
35152 * modules/vasnprintf-posix (Depends-on): Likewise.
35153 * modules/vasprintf-posix (Depends-on): Likewise.
35154 * modules/vfprintf-posix (Depends-on): Likewise.
35155 * modules/vsnprintf-posix (Depends-on): Likewise.
35156 * modules/vsprintf-posix (Depends-on): Likewise.
35158 2007-04-06 Bruno Haible <bruno@clisp.org>
35160 * tests/test-frexp.c (main): Test also the sign bit of zero results.
35161 * tests/test-frexpl.c (main): Likewise.
35162 * tests/test-ldexpl.c (main): Likewise.
35163 * modules/frexp-tests (Depends-on): Add signbit.
35164 * modules/frexpl-tests (Depdends-on): Likewise.
35165 * modules/ldexpl-tests (Depdends-on): Likewise.
35167 2007-04-06 Bruno Haible <bruno@clisp.org>
35169 * modules/signbit-tests: New file.
35170 * tests/test-signbit.c: New file.
35172 * modules/signbit: New file.
35173 * lib/signbitf.c: New file.
35174 * lib/signbitd.c: New file.
35175 * lib/signbitl.c: New file.
35176 * m4/signbit.m4: New file.
35177 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35178 (signbit): New macro.
35179 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35181 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35182 REPLACE_FREXPL into math.h.
35184 2007-04-06 Bruno Haible <bruno@clisp.org>
35186 * modules/isnanf-nolibm-tests: New file.
35187 * tests/test-isnanf.c: New file.
35189 * modules/isnanf-nolibm: New file.
35190 * lib/isnanf.h: New file.
35191 * lib/isnanf.c: New file.
35192 * lib/isnan.c: Consider the USE_FLOAT macro.
35193 * m4/isnanf.m4: New file.
35195 2007-04-06 Bruno Haible <bruno@clisp.org>
35197 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35198 (Link): New section.
35200 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35202 2007-04-06 Bruno Haible <bruno@clisp.org>
35204 Assume the 'long double' type.
35205 * m4/longdouble.m4: Remove file.
35206 * config/srclist.txt: Don't mention longdouble.m4.
35207 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35208 * lib/float+.h: Likewise.
35209 * lib/frexp.c: Likewise.
35210 * lib/printf-args.h: Likewise.
35211 * lib/printf-args.c: Likewise.
35212 * lib/printf-frexp.c: Likewise.
35213 * lib/printf-parse.c: Likewise.
35214 * lib/vasnprintf.c: Likewise.
35215 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35216 * m4/intl.m4: Likewise.
35217 * m4/isnanl.m4: Likewise.
35218 * m4/printf.m4: Likewise.
35219 * m4/printf-frexpl.m4: Likewise.
35220 * m4/vasnprintf.m4: Likewise.
35221 * modules/allocsa (Files): Remove m4/longdouble.m4.
35222 * modules/gettext (Files): Likewise.
35223 * modules/relocatable-prog-wrapper (Files): Likewise.
35224 * modules/vasnprintf (Files): Likewise.
35225 * modules/isnanl (Files): Likewise.
35226 (Include): Simplify.
35227 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35228 (Include): Simplify.
35229 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35230 (Include): Simplify.
35231 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35232 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35233 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35234 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35235 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35236 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35237 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35238 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35239 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35240 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35241 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35242 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35243 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35244 * tests/test-isnanl.c: Likewise.
35245 * tests/test-snprintf-posix.h: Likewise.
35246 * tests/test-sprintf-posix.h: Likewise.
35247 * tests/test-vasnprintf-posix.c: Likewise.
35248 * tests/test-vasnprintf-posix2.c: Likewise.
35249 * tests/test-vasprintf-posix.c: Likewise.
35251 2007-04-06 Bruno Haible <bruno@clisp.org>
35253 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35254 * lib/math_.h [__DECC]: Include the overridden include file through
35255 #include_next, outside the double-inclusion guard.
35256 * lib/stdio_.h [__DECC]: Likewise.
35257 * lib/stdlib_.h [__DECC]: Likewise.
35258 * lib/string_.h [__DECC]: Likewise.
35259 * lib/time_.h [__DECC]: Likewise.
35260 * lib/wchar_.h [__DECC]: Likewise.
35261 * lib/wctype_.h [__DECC]: Likewise.
35262 * lib/inttypes_.h [__DECC]: Likewise.
35263 Reported by Albert Chin <china@thewrittenword.com> in
35264 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35266 2007-04-04 Eric Blake <ebb9@byu.net>
35268 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35271 2007-04-04 Bruno Haible <bruno@clisp.org>
35273 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35274 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35276 2007-04-04 Bruno Haible <bruno@clisp.org>
35278 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35279 results for "%010a" of Infinity and NaN.
35280 * tests/test-vasprintf-posix.c (test_function): Likewise.
35281 * tests/test-snprintf-posix.h (test_function): Likewise.
35282 * tests/test-sprintf-posix.h (test_function): Likewise.
35283 * tests/test-fprintf-posix.h (test_function): Remove these tests.
35284 * tests/test-printf-posix.h (test_function): Likewise.
35285 * tests/test-fprintf-posix.out: Update.
35286 Needed for FreeBSD 6.1.
35288 2007-04-04 Bruno Haible <bruno@clisp.org>
35290 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35291 directly used by the gnulib modules nor by gnulib-tool.
35293 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
35295 * DEPENDENCIES: Give overall description of version dependency
35296 desirability. Use more-typical names for apps.
35297 Add shell, coreutils, diffutils, grep, tar, gzip.
35299 2007-04-04 Simon Josefsson <simon@josefsson.org>
35301 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
35303 2007-04-04 Karl Berry <karl@gnu.org>
35305 * MODULES.html.sh (func_module): missing '.
35307 2007-04-03 Bruno Haible <bruno@clisp.org>
35309 * modules/argmatch-tests (Makefile.am): New variable
35310 test_argmatch_LDADD.
35311 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35312 * modules/array-list-tests (Makefile.am): New variable
35313 test_array_list_LDADD.
35314 * modules/array-oset-tests (Makefile.am): New variable
35315 test_array_oset_LDADD.
35316 * modules/avltree-list-tests (Makefile.am): New variable
35317 test_avltree_list_LDADD.
35318 * modules/avltree-oset-tests (Makefile.am): New variable
35319 test_avltree_oset_LDADD.
35320 * modules/avltreehash-list-tests (Makefile.am): New variable
35321 test_avltreehash_list_LDADD.
35322 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35323 test_canonicalize_lgpl_LDADD.
35324 * modules/carray-list-tests (Makefile.am): New variable
35325 test_carray_list_LDADD.
35326 * modules/dirname-tests (Makefile.am): New variable
35327 test_dirname_LDADD.
35328 * modules/linked-list-tests (Makefile.am): New variable
35329 test_linked_list_LDADD.
35330 * modules/linkedhash-list-tests (Makefile.am): New variable
35331 test_linkedhash_list_LDADD.
35332 * modules/rbtree-list-tests (Makefile.am): New variable
35333 test_rbtree_list_LDADD.
35334 * modules/rbtree-oset-tests (Makefile.am): New variable
35335 test_rbtree_oset_LDADD.
35336 * modules/rbtreehash-list-tests (Makefile.am): New variable
35337 test_rbtreehash_list_LDADD.
35338 * modules/xvasprintf-tests (Makefile.am): New variable
35339 test_xvasprintf_LDADD.
35340 Reported by Eric Blake.
35342 2007-04-03 Eric Blake <ebb9@byu.net>
35344 * DEPENDENCIES: Weaken m4 requirements.
35346 2007-04-03 Bruno Haible <bruno@clisp.org>
35348 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35349 * modules/isnanl-tests (configure.ac): Likewise.
35351 2007-04-03 Ben Pfaff <blp@gnu.org>
35353 * modules/iconv_open: Add $(srcdir)/ to source directory
35354 references in Makefile fragments that call gperf, to fix VPATH
35357 2007-04-03 Bruno Haible <bruno@clisp.org>
35359 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35360 * lib/ldexpl.c: Undo last change.
35362 2007-04-03 Bruno Haible <bruno@clisp.org>
35364 * modules/printf-frexpl (Depends-on): Undo last change.
35365 (Files): Add m4/ldexpl.m4.
35367 2007-04-03 Bruno Haible <bruno@clisp.org>
35369 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35370 * modules/isnanl (Link): New section.
35372 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35373 * modules/frexp (Link): New section.
35375 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35376 * modules/frexpl (Link): New section.
35378 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35379 * modules/ldexpl (Link): New section.
35381 2007-04-03 Bruno Haible <bruno@clisp.org>
35383 * modules/TEMPLATE-EXTENDED: New file.
35384 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35386 2007-04-03 Bruno Haible <bruno@clisp.org>
35388 * DEPENDENCIES: New file.
35389 Suggested by Simon Josefsson.
35391 2007-04-03 Bruno Haible <bruno@clisp.org>
35393 * doc/gnulib.texi: Escape @.
35395 2007-04-03 James Youngman <jay@gnu.org>
35396 and Paul Eggert <eggert@cs.ucla.edu>
35398 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35399 birthtime on all systems that have birthtime, not just those which
35400 use st_birthtimensec rather than st_birthtim. Putting zero in
35401 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35402 that the birth time is not available for files on an NFS mount.
35404 2007-04-03 Simon Josefsson <simon@josefsson.org>
35406 * modules/memxor: Move back from crypto/, suggested by Bruno.
35407 * modules/crypto/hmac-sha1: Fix memxor dependency.
35409 * modules/crypto/gc: Moved from ../.
35411 2007-04-02 Eric Blake <ebb9@byu.net>
35413 * lib/ldexpl.c (includes): Avoid libm.
35415 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35417 2007-04-02 Bruno Haible <bruno@clisp.org>
35419 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35422 2007-04-02 Bruno Haible <bruno@clisp.org>
35424 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35425 x86 or x86_64 platforms running MacOS X.
35426 Reported by Ryan Schmidt <@ryandesign.com>.
35428 2007-04-02 Bruno Haible <bruno@clisp.org>
35430 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35433 2007-04-01 Simon Josefsson <simon@josefsson.org>
35435 * modules/crypto/arcfour: Moved from ../.
35436 * modules/crypto/arcfour-tests: Moved from ../.
35437 * modules/crypto/arctwo: Moved from ../.
35438 * modules/crypto/arctwo-tests: Moved from ../.
35439 * modules/crypto/des: Moved from ../.
35440 * modules/crypto/des-tests: Moved from ../.
35441 * modules/crypto/gc-arcfour: Moved from ../.
35442 * modules/crypto/gc-arcfour-tests: Moved from ../.
35443 * modules/crypto/gc-arctwo: Moved from ../.
35444 * modules/crypto/gc-arctwo-tests: Moved from ../.
35445 * modules/crypto/gc-des: Moved from ../.
35446 * modules/crypto/gc-des-tests: Moved from ../.
35447 * modules/crypto/gc-hmac-md5: Moved from ../.
35448 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35449 * modules/crypto/gc-hmac-sha1: Moved from ../.
35450 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35451 * modules/crypto/gc-md2: Moved from ../.
35452 * modules/crypto/gc-md2-tests: Moved from ../.
35453 * modules/crypto/gc-md4: Moved from ../.
35454 * modules/crypto/gc-md4-tests: Moved from ../.
35455 * modules/crypto/gc-md5: Moved from ../.
35456 * modules/crypto/gc-md5-tests: Moved from ../.
35457 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35458 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35459 * modules/crypto/gc-random: Moved from ../.
35460 * modules/crypto/gc-rijndael: Moved from ../.
35461 * modules/crypto/gc-rijndael-tests: Moved from ../.
35462 * modules/crypto/gc-sha1: Moved from ../.
35463 * modules/crypto/gc-sha1-tests: Moved from ../.
35464 * modules/crypto/gc-tests: Moved from ../.
35465 * modules/crypto/hmac-md5: Moved from ../.
35466 * modules/crypto/hmac-md5-tests: Moved from ../.
35467 * modules/crypto/hmac-sha1: Moved from ../.
35468 * modules/crypto/hmac-sha1-tests: Moved from ../.
35469 * modules/crypto/md2: Moved from ../.
35470 * modules/crypto/md2-tests: Moved from ../.
35471 * modules/crypto/md4: Moved from ../.
35472 * modules/crypto/md4-tests: Moved from ../.
35473 * modules/crypto/md5: Moved from ../.
35474 * modules/crypto/md5-tests: Moved from ../.
35475 * modules/crypto/memxor: Moved from ../.
35476 * modules/crypto/rijndael: Moved from ../.
35477 * modules/crypto/rijndael-tests: Moved from ../.
35478 * modules/crypto/sha1: Moved from ../.
35480 2007-03-30 James Youngman <jay@gnu.org>
35482 * tests/test-stat-time.c (prepare_test): use chmod() rather than
35483 rename() to change the ctime of a file (because ctime is unaffected
35484 by rename on jfs2 on AIX 5.1).
35485 (main): Start by doing cleanup, in case a previous run failed leaving
35488 2007-03-31 Bruno Haible <bruno@clisp.org>
35490 Support old proprietary implementations of iconv.
35491 * modules/iconv_open: New file.
35492 * lib/iconv_.h: New file.
35493 * m4/iconv_h.m4: New file.
35494 * lib/iconv_open.c: New file.
35495 * lib/iconv_open-aix.gperf: New file.
35496 * lib/iconv_open-hpux.gperf: New file.
35497 * lib/iconv_open-irix.gperf: New file.
35498 * lib/iconv_open-osf.gperf: New file.
35499 * m4/iconv_open.m4: New file.
35500 * modules/linebreak (Depends-on): Add iconv_open.
35501 * modules/striconv (Depends-on): Likewise.
35502 * modules/striconveh (Depends-on): Likewise.
35503 * modules/unicodeio (Depends-on): Likewise.
35504 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35506 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35507 conversion if cd is (iconv_t)(-1).
35508 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35511 2007-03-31 Bruno Haible <bruno@clisp.org>
35513 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35514 work on Solaris either. Protect also second use of "autodetect_jp".
35516 2007-03-31 Bruno Haible <bruno@clisp.org>
35518 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35519 the function is not present.
35521 2007-03-31 Bruno Haible <bruno@clisp.org>
35523 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35524 the function is not present.
35526 2007-03-31 Bruno Haible <bruno@clisp.org>
35528 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35529 a bug in HP-UX iconv_open().
35531 2007-03-31 Bruno Haible <bruno@clisp.org>
35533 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35534 (Mathematics <math.h>): New section, add fpieee.
35535 (Input/output <stdio.h>): Add fseterr.
35536 (Mathematics <math.h>): New section, add printf-frexp.
35537 (Container data structures): Add sublist.
35538 (Core language properties): Add fpucw, inline.
35539 (Functions for greatest-width integer types <inttypes.h>): Add
35540 imaxabs, imaxdiv, inttypes.
35541 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35542 isnanl-nolibm, ldexp.
35543 (Mathematics <math.h>): New section, add printf-frexpl.
35544 (Support for systems lacking POSIX:2001): Add fprintf-posix,
35545 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35546 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35547 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35548 (Unicode string functions): Add unistr/u*-mbtoucr.
35549 (Java): Add javacomp-script, javaexec-script.
35550 (C#): Add csharpcomp-script, csharpexec-script.
35551 (Support for building libraries and executables): Add havelib,
35553 (Support for maintaining and releasing projects): Renamed from
35554 'Support for maintaining and release projects'. Add announce-gen.
35556 2007-03-31 Bruno Haible <bruno@clisp.org>
35558 * README: Talk primarily about git.
35559 (git and CVS): Renamed from CVS.
35560 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35561 gnulib is available through git.
35562 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35564 2007-03-30 Bruno Haible <bruno@clisp.org>
35566 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35567 * lib/poll_.h: Likewise.
35568 * lib/stat_.h: Likewise.
35569 * lib/sys_time_.h: Likewise.
35570 * lib/sysexit_.h: Likewise.
35571 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35572 * lib/stdbool_.h: Likewise.
35573 * lib/byteswap_.h: Add double-inclusion guard.
35575 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
35577 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35579 2007-03-30 Karl Berry <karl@gnu.org>
35581 * config/srclist-update: double space after USA in the license
35582 substitution, since that's how it's usually (?) written.
35584 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
35586 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35587 reported by Bruno Haible.
35589 2007-03-29 Bruno Haible <bruno@clisp.org>
35591 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35592 a bug in AIX iconv().
35594 2007-03-29 Bruno Haible <bruno@clisp.org>
35596 * modules/ldexpl-tests: New file.
35597 * tests/test-ldexpl.c: New file.
35599 2007-03-29 Bruno Haible <bruno@clisp.org>
35601 * lib/ldexpl.c: Include fpucw.h.
35602 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35604 * modules/ldexpl (Depends-on): Add fpucw.
35606 2007-03-29 Bruno Haible <bruno@clisp.org>
35608 * modules/ldexpl: New file.
35609 * m4/ldexpl.m4: New file.
35610 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35612 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35614 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35616 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35617 gl_FUNC_LDEXPL_WORKS.
35618 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35619 * modules/mathl (Files): Remove lib/ldexpl.c.
35620 (Depends-on): Add ldexpl.
35622 2007-03-29 Bruno Haible <bruno@clisp.org>
35624 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35626 2007-03-29 Bruno Haible <bruno@clisp.org>
35628 * tests/test-striconveh.c (main): Don't assume that a direct conversion
35629 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35630 and possibly also HP-UX.
35631 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35632 work on AIX, IRIX, HP-UX, OSF/1.
35633 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35634 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35635 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35636 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35637 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35638 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35640 2007-03-29 Bruno Haible <bruno@clisp.org>
35642 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35644 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35646 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35647 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35649 2007-03-29 Eric Blake <ebb9@byu.net>
35651 * lib/acl-internal.h: Remove redundant include.
35652 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35653 Cygwin when a file is locked.
35655 2007-03-29 Bruno Haible <bruno@clisp.org>
35657 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35659 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35661 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35663 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35664 try to remove a parent directory if the child couldn't be removed
35665 (except for the first rmdir, which could fail because the child
35666 doesn't exist). Problem reported by Jeff Blaine in
35667 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35669 2007-03-28 Bruno Haible <bruno@clisp.org>
35671 * lib/striconveh.c (utf8conv_carefully): New function.
35672 (mem_cd_iconveh_internal): Invoke it.
35674 2007-03-28 Bruno Haible <bruno@clisp.org>
35676 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35677 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35679 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35680 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35683 2007-03-28 Bruno Haible <bruno@clisp.org>
35685 * modules/unistr/u8-mbtoucr: New file.
35686 * lib/unistr/u8-mbtoucr.c: New file.
35687 * modules/unistr/u16-mbtoucr: New file.
35688 * lib/unistr/u16-mbtoucr.c: New file.
35689 * modules/unistr/u16-mbtoucr: New file.
35690 * lib/unistr/u16-mbtoucr.c: New file.
35691 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35693 2007-03-27 Simon Josefsson <simon@josefsson.org>
35694 Bruno Haible <bruno@clisp.org>
35696 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35697 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
35698 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35700 * m4/stdio_h.m4: Add stubs for vasprintf too.
35702 * modules/stdio: Support vasprintf in sed command.
35704 * modules/vasprintf: Depend on stdio for prototypes. Remove
35705 vasprintf.h. Add stdio module indicator.
35707 * lib/stdio_.h: Declare asprintf and vasprintf, based on
35710 * lib/vasprintf.h: File removed.
35712 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35713 * lib/vasprintf.c: Ditto.
35714 * lib/xvasprintf.c: Ditto.
35715 * tests/test-vasprintf-posix.c: Ditto.
35716 * tests/test-vasprintf.c: Ditto.
35718 2007-03-27 Bruno Haible <bruno@clisp.org>
35720 Make vasnprintf multithread-safe.
35721 * lib/vasnprintf.c (decimal_point_char): New function.
35722 (VASNPRINTF): Use it.
35723 Suggested by Simon Josefsson.
35725 2007-03-27 Eric Blake <ebb9@byu.net>
35727 Support sub-second birthtime on cygwin.
35728 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35729 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35730 (get_stat_birthtime): Also work with st_birthtim.
35732 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
35734 * lib/stat-time.h (USE_BIRTHTIME): Remove.
35735 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35736 (get_stat_birthtime_ns): Do not try to use "spare" fields.
35737 (get_stat_birthtime_ns): Simplify compile-time tests.
35738 (get_stat_birthtime): Change the API to look like
35739 get_stat_mtime etc., except return a negative tv_nsec on error.
35740 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35741 Don't check for "spare" fields.
35742 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35743 or for struct stat.st_birthtime, as these tests aren't used.
35744 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35746 2007-03-27 Bruno Haible <bruno@clisp.org>
35748 * lib/stat-time.h: Include <sys/stat.h>.
35750 2007-03-27 James Youngman <jay@gnu.org>
35752 * lib/stat-time.h (get_stat_birthtime): New function for
35753 retrieving st_birthtime as provided by UFS2 (hence *BSD).
35754 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35756 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35757 * modules/stat-time-test: New file.
35758 * tests/test-stat-time.c: New test, devised by Bruno Haible.
35760 2007-03-26 Bruno Haible <bruno@clisp.org>
35762 Better support of signalling NaNs.
35763 * lib/atanl.c: Include isnanl.h.
35764 (atanl): Perform test for NaN at the beginning of the function and
35765 through a call to isnanl.
35766 * lib/cosl.c: Include isnanl.h.
35767 (cosl): Perform test for NaN at the beginning of the function and
35768 through a call to isnanl.
35769 * lib/ldexpl.c: Include isnanl.h.
35770 (ldexpl): Perform test for NaN through a call to isnanl.
35771 * lib/logl.c: Include isnanl.h.
35772 (logl): Perform test for NaN at the beginning of the function and
35773 through a call to isnanl.
35774 * lib/sinl.c: Include isnanl.h.
35775 (sinl): Perform test for NaN at the beginning of the function and
35776 through a call to isnanl.
35777 * lib/sqrtl.c: Include isnanl.h.
35778 (sqrtl): Perform test for NaN at the beginning of the function and
35779 through a call to isnanl.
35780 * lib/tanl.c: Include isnanl.h.
35781 (tanl): Perform test for NaN at the beginning of the function and
35782 through a call to isnanl.
35783 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35784 * modules/mathl (Depends-on): Add isnanl.
35786 2007-03-26 Eric Blake <ebb9@byu.net>
35788 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35789 regression in logic sense of previous patch.
35791 2007-03-26 Bruno Haible <bruno@clisp.org>
35793 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35794 unportable shell command "if ! ...".
35795 Reported by Ralf Wildenhues.
35797 2007-03-25 Bruno Haible <bruno@clisp.org>
35799 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35800 <sysexits.h> file, and only add EX_CONFIG.
35801 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35802 absolute file name and whether it is sufficient. Substitute also
35803 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35804 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35805 ABSOLUTE_SYSEXITS_H into sysexits.h.
35807 2007-03-25 Bruno Haible <bruno@clisp.org>
35809 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35812 2007-03-25 Bruno Haible <bruno@clisp.org>
35814 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35815 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35817 2007-03-25 Bruno Haible <bruno@clisp.org>
35819 * lib/vasnprintf.c: Include langinfo.h.
35820 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35822 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35823 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35824 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35825 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35826 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35827 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35828 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35829 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35830 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35831 Reported by Simon Josefsson.
35833 2007-03-25 Bruno Haible <bruno@clisp.org>
35835 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35836 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35837 * modules/vasnprintf (Depends-on): Add stdint.
35839 2007-03-25 Bruno Haible <bruno@clisp.org>
35841 * modules/fpieee: New file.
35842 * m4/fpieee.m4: New file.
35843 * modules/isnan-nolibm (Depends-on): Add fpieee.
35844 * modules/isnanl-nolibm (Depends-on): Add fpieee.
35845 * modules/isnanl (Depends-on): Add fpieee.
35847 2007-03-25 Bruno Haible <bruno@clisp.org>
35849 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35851 2007-03-25 Bruno Haible <bruno@clisp.org>
35853 Avoid test failures on IRIX 6.5.
35854 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35856 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35860 2007-03-25 Bruno Haible <bruno@clisp.org>
35862 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35863 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35864 exists but doesn't work.
35865 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35866 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35867 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35868 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35870 2007-03-25 Bruno Haible <bruno@clisp.org>
35872 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35873 returns inf. Needed on IRIX 6.5.
35875 2007-03-25 Bruno Haible <bruno@clisp.org>
35877 * tests/test-frexpl.c: Include isnanl-nolibm.h.
35878 (main): Use isnanl instead of x != x idiom.
35879 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35881 * tests/test-frexp.c: Include isnan.h.
35882 (main): Use isnan instead of x != x idiom.
35883 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35885 2007-03-25 Bruno Haible <bruno@clisp.org>
35887 * tests/test-frexp.c (NaN): New function/macro.
35888 (main): Use it instead of 0.0 / 0.0.
35889 * tests/test-isnan.c (NaN): New function/macro.
35890 (main): Use it instead of 0.0 / 0.0.
35891 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35892 (test_function): Use it instead of 0.0 / 0.0.
35893 * tests/test-vasprintf-posix.c (NaN): New function/macro.
35894 (test_function): Use it instead of 0.0 / 0.0.
35895 * tests/test-snprintf-posix.h (NaN): New function/macro.
35896 (test_function): Use it instead of 0.0 / 0.0.
35897 * tests/test-sprintf-posix.h (NaN): New function/macro.
35898 (test_function): Use it instead of 0.0 / 0.0.
35899 * tests/test-fprintf-posix.h (NaN): New function/macro.
35900 (test_function): Use it instead of 0.0 / 0.0.
35901 * tests/test-printf-posix.h (NaN): New function/macro.
35902 (test_function): Use it instead of 0.0 / 0.0.
35904 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35906 2007-03-25 Bruno Haible <bruno@clisp.org>
35908 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35910 2007-03-25 Bruno Haible <bruno@clisp.org>
35912 * lib/regexec.c (merge_state_with_log): Make static.
35914 2007-03-25 Bruno Haible <bruno@clisp.org>
35916 * lib/trigl.c (kernel_rem_pio2): Make static.
35918 2007-03-25 Bruno Haible <bruno@clisp.org>
35920 * lib/sincosl.c (sincosl_table): Make static.
35922 2007-03-25 Bruno Haible <bruno@clisp.org>
35924 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35925 if the compiler does not support C99.
35927 2007-03-25 Bruno Haible <bruno@clisp.org>
35929 * modules/time (Makefile.am): Ensure all rule action lines start with a
35932 2007-03-24 Bruno Haible <bruno@clisp.org>
35934 * modules/tsearch-tests: New file.
35935 * tests/test-tsearch.sh: New file.
35936 * tests/test-tsearch.c: New file, mostly copied from glibc.
35938 * modules/search-tests: New file.
35939 * tests/test-search.c: New file.
35941 * modules/search: New file.
35942 * lib/search_.h: New file, incorporating lib/tsearch.h.
35943 * m4/search_h.m4: New file.
35944 * lib/tsearch.h: Remove file.
35945 * lib/tsearch.c: Include search.h instead of tsearch.h.
35946 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35948 * modules/tsearch (Files): Remove lib/tsearch.h.
35949 (Depends-on): Add search.
35950 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35951 (Include): Change tsearch.h into search.h.
35953 2007-03-24 Bruno Haible <bruno@clisp.org>
35955 * modules/fpucw: New file.
35956 * lib/fpucw.h: New file.
35957 * lib/frexp.c: Include fpucw.h.
35958 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35960 * lib/printf-frexp.c: Include fpucw.h.
35961 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35963 * lib/vasnprintf.c: Include fpucw.h.
35964 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35965 'long double' calculations.
35966 * tests/test-frexpl.c: Include fpucw.h.
35967 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35968 * tests/test-printf-frexpl.c: Include fpucw.h.
35969 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35970 * modules/frexpl (Depends-on): Add fpucw.
35971 * modules/printf-frexpl (Depends-on): Likewise.
35972 * modules/fprintf-posix (Depends-on): Likewise.
35973 * modules/snprintf-posix (Depends-on): Likewise.
35974 * modules/sprintf-posix (Depends-on): Likewise.
35975 * modules/vasnprintf-posix (Depends-on): Likewise.
35976 * modules/vasprintf-posix (Depends-on): Likewise.
35977 * modules/vfprintf-posix (Depends-on): Likewise.
35978 * modules/vsnprintf-posix (Depends-on): Likewise.
35979 * modules/vsprintf-posix (Depends-on): Likewise.
35980 * modules/frexpl-tests (Depends-on): Likewise.
35981 * modules/printf-frexpl-tests (Depends-on): Likewise.
35983 2007-03-24 Bruno Haible <bruno@clisp.org>
35985 * lib/float+.h: New file.
35986 * lib/isnan.c: Include float+.h.
35988 (FUNC): Compare only SIZE bytes of the value.
35989 * lib/vasnprintf.c: Include float+.h.
35990 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35991 SIZEOF_LDBL or SIZEOF_DBL bytes.
35992 * modules/isnan-nolibm (Files): Add lib/float+.h.
35993 * modules/isnanl-nolibm (Files): Add lib/float+.h.
35994 * modules/isnanl (Files): Add lib/float+.h.
35995 * modules/vasnprintf (Files): Add lib/float+.h.
35997 2007-03-24 Bruno Haible <bruno@clisp.org>
35999 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36000 include isnanl-nolibm.h.
36002 2007-03-24 Bruno Haible <bruno@clisp.org>
36004 * tests/test-read-file.c (main): Don't produce spurious output for
36005 expected situations. Make the test fail if it encountered unexpected
36008 2007-03-24 Bruno Haible <bruno@clisp.org>
36010 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36011 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36013 2007-03-24 Bruno Haible <bruno@clisp.org>
36015 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36017 2007-03-24 Bruno Haible <bruno@clisp.org>
36019 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36020 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36022 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36023 * modules/utf8-ucs4: Turn into a symbolic link to module
36026 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36028 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36029 unistr/u8-mbtouc-unsafe.
36031 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36032 * modules/utf16-ucs4: Turn into a symbolic link to module
36035 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36037 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36038 unistr/u16-mbtouc-unsafe.
36040 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36041 * modules/ucs4-utf8: Turn into a symbolic link to module
36044 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36045 * modules/ucs4-utf16: Turn into a symbolic link to module
36048 2007-03-24 Bruno Haible <bruno@clisp.org>
36050 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36051 Enable the function only if HAVE_INLINE.
36052 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36053 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36054 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36055 Enable the function only if HAVE_INLINE.
36056 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36057 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36058 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36059 Enable the function only if HAVE_INLINE.
36060 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36061 Enable the function only if HAVE_INLINE.
36062 * modules/utf8-ucs4: Update.
36063 * modules/utf8-ucs4-unsafe: Update.
36064 * modules/utf16-ucs4: Update.
36065 * modules/utf16-ucs4-unsafe: Update.
36066 * modules/ucs4-utf8: Update.
36067 * modules/ucs4-utf16: Update.
36069 2007-03-24 Bruno Haible <bruno@clisp.org>
36071 * lib/utf8-ucs4.h: Remove file.
36072 * lib/utf8-ucs4-unsafe.h: Remove file.
36073 * lib/utf16-ucs4.h: Remove file.
36074 * lib/utf16-ucs4-unsafe.h: Remove file.
36075 * lib/ucs4-utf8.h: Remove file.
36076 * lib/ucs4-utf16.h: Remove file.
36077 * lib/unistr.h: Include their previous contents.
36078 * m4/utf-ucs4.m4: Remove file.
36079 * m4/ucs4-utf.m4: Remove file.
36080 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36081 (Depends-on): Add unistr/base.
36082 (configure.ac): Remove gl_UTF_UCS4.
36083 (Makefile.am): Update.
36084 (Include): Change to unistr.h.
36085 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36086 (Depends-on): Add unistr/base.
36087 (configure.ac): Remove gl_UTF_UCS4.
36088 (Makefile.am): Update.
36089 (Include): Change to unistr.h.
36090 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36091 (Depends-on): Add unistr/base.
36092 (configure.ac): Remove gl_UTF_UCS4.
36093 (Makefile.am): Update.
36094 (Include): Change to unistr.h.
36095 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36096 (Depends-on): Add unistr/base.
36097 (configure.ac): Remove gl_UTF_UCS4.
36098 (Makefile.am): Update.
36099 (Include): Change to unistr.h.
36100 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36101 (Depends-on): Add unistr/base.
36102 (configure.ac): Remove gl_UCS4_UTF.
36103 (Makefile.am): Update.
36104 (Include): Change to unistr.h.
36105 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36106 (Depends-on): Add unistr/base.
36107 (configure.ac): Remove gl_UCS4_UTF.
36108 (Makefile.am): Update.
36109 (Include): Change to unistr.h.
36110 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36111 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36112 utf8-ucs4-unsafe.h.
36113 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36114 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36115 utf16-ucs4-unsafe.h.
36116 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36117 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36118 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36119 * lib/unistr/u8-strchr.c: Likewise.
36120 * lib/unistr/u8-strrchr.c: Likewise.
36121 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36122 * lib/unistr/u16-strchr.c: Likewise.
36123 * lib/unistr/u16-strrchr.c: Likewise.
36124 * lib/striconveh.c: Update.
36125 * lib/linebreak.c: Update.
36127 2007-03-24 Bruno Haible <bruno@clisp.org>
36129 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36130 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36132 2007-03-22 Bruno Haible <bruno@clisp.org>
36134 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36136 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
36138 * MODULES.html.sh (File system functions): New module write-any-file.
36139 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36140 * m4/write-any-file.m4: New files.
36142 2007-03-23 Eric Blake <ebb9@byu.net>
36144 * gnulib-tool: Rearrange space-tab sequences, since some editors
36147 2007-03-23 Eric Blake <ebb9@byu.net>
36149 * lib/version-etc.c (version_etc_va): Update license wording to
36150 be more concise. Recommended by Richard Stallman.
36152 2007-03-22 Bruno Haible <bruno@clisp.org>
36154 * lib/poll.c (MSG_PEEK): New fallback definition.
36156 2007-03-22 Bruno Haible <bruno@clisp.org>
36158 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36159 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36161 Fixes a compilation error on BeOS.
36163 2007-03-22 Bruno Haible <bruno@clisp.org>
36165 * modules/frexpl-tests: New file.
36166 * tests/test-frexpl.c: New file.
36168 * modules/frexpl: New file.
36169 * m4/frexpl.m4: New file.
36170 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36171 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36172 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36173 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36174 (Depends-on): Add frexpl. Remove isnanl-nolibm.
36175 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36177 2007-03-22 Bruno Haible <bruno@clisp.org>
36179 * lib/frexpl.c: Share code with lib/frexp.c.
36180 * modules/mathl (Files): Add lib/frexp.c.
36181 (Depends-on): Add isnanl-nolibm.
36183 2007-03-22 Bruno Haible <bruno@clisp.org>
36185 * modules/printf-frexp (Files): Add m4/frexp.m4.
36186 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36187 only if the found frexp function actually works.
36189 2007-03-22 Bruno Haible <bruno@clisp.org>
36191 * lib/frexp.c: Remove older implementation that uses divisions.
36193 2007-03-21 Bruno Haible <bruno@clisp.org>
36195 * modules/frexp-tests: New file.
36196 * tests/test-frexp.c: New file.
36198 * modules/frexp: New file.
36199 * lib/frexp.c: New file.
36200 * m4/frexp.m4: New file.
36201 * lib/math_.h (frexp): New declaration.
36202 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36204 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36206 2007-03-21 Bruno Haible <bruno@clisp.org>
36208 * modules/isnanl-tests: New file.
36209 * tests/test-isnanl.c: New file.
36211 * modules/isnanl: New file.
36212 * lib/isnanl.h: New file.
36213 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36214 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36215 gl_FUNC_ISNANL_WORKS.
36216 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36219 2007-03-21 Bruno Haible <bruno@clisp.org>
36221 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36224 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36225 * lib/vasnprintf.c: Update.
36226 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36227 tests/test-isnanl.h, remove tests/test-isnanl.c.
36228 (Makefile.am): Update.
36229 * tests/test-isnanl-nolibm.c: New file.
36230 * tests/test-isnanl.h: New file.
36231 * tests/test-isnanl.c: Remove file.
36233 2007-03-21 Jim Meyering <jim@meyering.net>
36235 When trying to open ".", treat ESTALE like EACCES.
36236 * lib/savewd.c (savewd_save): Resort to forking not just upon
36237 failure with EACCES, but also when errno is ESTALE.
36239 2007-03-20 Bruno Haible <bruno@clisp.org>
36241 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36242 Needed on AIX 5.1. Reported by Matthew Woehlke.
36244 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36246 Suggestions by Bruno Haible:
36247 * lib/acl-internal.h: Include "gettext.h" rather than rolling
36249 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36250 * modules/acl (Depends-on): Add gettext.
36252 2007-03-19 Bruno Haible <bruno@clisp.org>
36254 * modules/iconvme: Remove file.
36255 * lib/iconvme.h: Remove file.
36256 * lib/iconvme.c: Remove file.
36257 * m4/iconvme.m4: Remove file.
36259 2007-03-19 Bruno Haible <bruno@clisp.org>
36261 * doc/relocatable-maint.texi: Break long shell script line.
36262 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36264 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36266 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36267 handle file_has_acl.
36268 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36269 * lib/acl.c: Move header inclusions and related macro defns into
36270 lib/acl-internal.h.
36271 (S_ISLNK): Remove defn, since that's now done for us.
36272 (file_has_acl): Move to lib/file-has-acl.c.
36273 Call acl_trivial if available. This is the crucial part of the fix.
36274 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
36275 shared within the library. Rewrite a bit, partly to make it compatible
36276 with the GNU coding style.
36277 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36278 Remove unnecessary double-quotes.
36279 Don't test for acl_to_text; the build will catch that.
36280 Replace acl_entries if it doesn't exist and it is needed.
36281 Check for -lsec and acl_trivial (as used on Solaris 10).
36282 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36283 lib/file-has-acl.c.
36284 (Depends-on): Add sys_stat, for S_ISLNK.
36286 2007-03-19 Ben Pfaff <blp@gnu.org>
36288 * doc/gnulib.texi: Fix typos.
36289 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36291 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36293 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36294 If size is zero here, buf must be zero.
36296 2007-03-19 Simon Josefsson <simon@josefsson.org>
36298 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
36301 2007-03-18 Bruno Haible <bruno@clisp.org>
36303 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36304 Suggested by Eric Blake.
36306 2007-03-18 Ben Pfaff <blp@gnu.org>
36308 * doc/relocatable.texi: Recommend using as prefix a directory
36309 that does not exist and will never be created. Based on
36310 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36313 2007-03-17 Bruno Haible <bruno@clisp.org>
36315 * lib/fchownat.c: Include lchown.h.
36317 2007-03-17 Bruno Haible <bruno@clisp.org>
36319 Fix endless loop when the given allocated size was > INT_MAX.
36320 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36321 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36322 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36323 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36324 * lib/sprintf.c (sprintf): Likewise.
36326 2007-03-17 Bruno Haible <bruno@clisp.org>
36328 * tests/test-argp-2.sh (func_compare): Output a context diff.
36330 2007-03-17 Bruno Haible <bruno@clisp.org>
36332 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36333 locale's decimal-point character.
36335 2007-03-17 Bruno Haible <bruno@clisp.org>
36337 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36338 before comparing it. Needed because on some platforms (e.g. x86) a
36339 'long double' occupies less bytes than sizeof (long double).
36341 2007-03-17 Bruno Haible <bruno@clisp.org>
36343 * tests/test-crc.c (main): Make printf statements 64-bit clean.
36344 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36345 * tests/test-getaddrinfo.c (simple): Likewise.
36346 * tests/test-read-file.c (main): Likewise.
36348 2007-03-17 Bruno Haible <bruno@clisp.org>
36350 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36352 2007-03-17 Bruno Haible <bruno@clisp.org>
36354 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36357 2007-03-17 Bruno Haible <bruno@clisp.org>
36359 * tests/test-c-strcasecmp.c: Include c-strcase.h.
36360 * tests/test-c-strncasecmp.c: Likewise.
36362 2007-03-17 Bruno Haible <bruno@clisp.org>
36364 * modules/stdlib (Depends-on): Add unistd.
36365 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36366 Needed for MacOS X 10.3.
36368 2007-03-17 Bruno Haible <bruno@clisp.org>
36370 * lib/unistr/u-strdup.h: Include <stdlib.h>.
36372 2007-03-17 Bruno Haible <bruno@clisp.org>
36374 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36376 2007-03-17 Bruno Haible <bruno@clisp.org>
36378 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36379 to reflect files copied from gnulib (with or without modifications).
36380 Suggested by Jim Meyering.
36382 2007-03-17 Eric Blake <ebb9@byu.net>
36384 * NEWS: Document stdlib change from 2007-02-18.
36386 2007-03-17 Jim Meyering <jim@meyering.net>
36388 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36389 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36390 someone uses a name containing shell meta-characters.
36391 Reported by Alfred M. Szmidt.
36393 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
36395 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
36397 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
36398 and copy gettext configuration files only if configure.ac contains
36399 a use of AM_GNU_GETTEXT_VERSION.
36401 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
36403 * build-aux/bootstrap (gnulib_name): New variable.
36404 (gnulib_tool_options): Use it.
36406 2007-03-13 Simon Josefsson <simon@josefsson.org>
36408 * tests/test-des.c: Use new namespace.
36410 2007-03-15 Bruno Haible <bruno@clisp.org>
36412 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36413 Reported by James Youngman <jay@gnu.org>.
36415 2007-03-15 Bruno Haible <bruno@clisp.org>
36417 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36418 declared prototype. Needed with cc on OSF/1 5.1.
36420 2007-03-15 Bruno Haible <bruno@clisp.org>
36422 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36423 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36424 (struct gl_list_implementation): Add dispose_fn argument to the
36425 'create_empty', 'create' methods.
36426 (struct gl_list_impl_base): Add field 'dispose_fn'.
36427 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36429 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36430 dispose_fn argument.
36431 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36432 dispose_fn on the dropped values.
36433 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36434 dispose_fn argument.
36435 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36437 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36438 (gl_tree_remove_node): Call dispose_fn on the dropped value.
36439 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36440 (gl_tree_remove_node): Call dispose_fn on the dropped value.
36441 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36443 (gl_tree_list_free): Call dispose_fn on the dropped values.
36444 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36445 the dropped values.
36446 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36447 Add dispose_fn argument.
36448 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36449 Call dispose_fn on the dropped values.
36450 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36451 Add dispose_fn argument.
36452 (gl_sublist_create): Initialize the 'dispose_fn' field.
36453 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36454 * tests/test-array_list.c (main): Update.
36455 * tests/test-carray_list.c (main): Update.
36456 * tests/test-avltree_list.c (main): Update.
36457 * tests/test-rbtree_list.c (main): Update.
36458 * tests/test-avltreehash_list.c (main): Update.
36459 * tests/test-rbtreehash_list.c (main): Update.
36460 * tests/test-linked_list.c (main): Update.
36461 * tests/test-linkedhash_list.c (main): Update.
36462 * tests/test-array_oset.c (main): Update.
36464 2007-03-15 Bruno Haible <bruno@clisp.org>
36466 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36467 (gl_oset_create_empty): Add dispose_fn argument.
36468 (struct gl_oset_implementation): Add dispose_fn argument to
36469 'create_empty' method.
36470 (struct gl_oset_impl_base): Add dispose_fn field.
36471 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36472 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36473 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36475 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36476 (gl_tree_oset_free): Call dispose_fn on the dropped values.
36477 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36479 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36481 * tests/test-array_oset.c (main): Update.
36482 * tests/test-avltree_oset.c (main): Update.
36483 * tests/test-rbtree_oset.c (main): Update.
36484 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36486 2007-03-13 Bruno Haible <bruno@clisp.org>
36488 * tests/test-stdbool.c (i): Update after last patch.
36490 2007-03-12 Bruno Haible <bruno@clisp.org>
36492 * lib/quotearg.c: Include <wctype.h> early, before the definition of
36493 the iswprint macro. Needed on Solaris 2.5.1.
36495 2007-03-12 Bruno Haible <bruno@clisp.org>
36497 * tests/test-printf-frexp.c (main): Declare x as volatile.
36499 2007-03-12 Simon Josefsson <simon@josefsson.org>
36501 * doc/gnulib.texi (Build robot for gnulib): New section.
36503 2007-03-12 Jim Meyering <jim@meyering.net>
36505 * build-aux/bootstrap: New file.
36506 * build-aux/bootstrap.conf: New file, from coreutils.
36508 2007-03-11 Bruno Haible <bruno@clisp.org>
36510 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36512 2007-03-12 Simon Josefsson <simon@josefsson.org>
36514 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36515 avoid collisions with 'des_setkey'. Reported by Bruno Haible
36516 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
36518 2007-03-11 Bruno Haible <bruno@clisp.org>
36520 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36521 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36523 2007-03-11 Bruno Haible <bruno@clisp.org>
36525 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36526 formula. Needed for SunPRO C 5.0.
36528 2007-03-11 Bruno Haible <bruno@clisp.org>
36530 * modules/long-options (Depends-on): Add getopt.
36532 2007-03-11 Bruno Haible <bruno@clisp.org>
36534 * modules/modechange (Depends-on): Add stdbool.
36536 2007-03-11 Bruno Haible <bruno@clisp.org>
36538 * modules/i-ring (Depends-on): Add stdbool.
36540 2007-03-11 Bruno Haible <bruno@clisp.org>
36542 * modules/gc-des (Depends-on): Add stdbool.
36544 2007-03-11 Bruno Haible <bruno@clisp.org>
36546 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36548 2007-03-11 Bruno Haible <bruno@clisp.org>
36550 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36552 2007-03-11 Bruno Haible <bruno@clisp.org>
36554 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36556 2007-03-11 Bruno Haible <bruno@clisp.org>
36558 * lib/vasnprintf.c (sprintf): Undefine.
36560 2007-03-11 Bruno Haible <bruno@clisp.org>
36562 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36563 initializers in SunPRO C and Compaq C compilers.
36565 2007-03-11 Bruno Haible <bruno@clisp.org>
36567 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36568 decrementing code ANSI C compliant.
36570 2007-03-11 Bruno Haible <bruno@clisp.org>
36572 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36573 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36575 2007-03-11 Bruno Haible <bruno@clisp.org>
36577 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36578 <stdbool.h> substitute doesn't pass.
36580 2007-03-11 Bruno Haible <bruno@clisp.org>
36582 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36584 2007-03-11 Bruno Haible <bruno@clisp.org>
36586 * gnulib-tool (func_create_megatestdir): Create also an autobuild
36587 script, for submission to autobuild.josefsson.org.
36589 2007-03-10 Bruno Haible <bruno@clisp.org>
36591 * modules/canonicalize-lgpl-tests: New file.
36592 * tests/test-canonicalize-lgpl.sh: New file.
36593 * tests/test-canonicalize-lgpl.c: New file.
36595 * modules/c-strcase-tests: New file.
36596 * tests/test-c-strcase.sh: New file.
36597 * tests/test-c-strcasecmp.c: New file.
36598 * tests/test-c-strncasecmp.c: New file.
36600 * modules/atexit-tests: New file.
36601 * tests/test-atexit.sh: New file.
36602 * tests/test-atexit.c: New file.
36604 2007-03-10 Bruno Haible <bruno@clisp.org>
36606 * tests/test-binary-io.sh: Use temporary filenames that are not so
36607 likely to clash with those of other tests (in a parallel make).
36608 * tests/test-binary-io.c: Likewise.
36610 2007-03-10 Bruno Haible <bruno@clisp.org>
36612 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36613 fallback; use #error instead.
36614 Suggested by Simon Josefsson.
36616 2007-03-10 Bruno Haible <bruno@clisp.org>
36618 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36619 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36620 first and the last.
36622 2007-03-10 Bruno Haible <bruno@clisp.org>
36624 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36626 2007-03-10 Bruno Haible <bruno@clisp.org>
36628 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36630 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36631 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36632 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36634 2007-03-10 Bruno Haible <bruno@clisp.org>
36636 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36638 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36641 2007-03-09 Eric Blake <ebb9@byu.net>
36642 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
36644 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36645 types are not being provided by gnulib.
36646 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36647 types are supported.
36649 2007-03-10 Bruno Haible <bruno@clisp.org>
36651 * lib/stdio_.h (__attribute__): New macro.
36652 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36653 vsprintf): Specify __attribute__ __format__ for GCC.
36654 Suggested by Eric Blake.
36656 2007-03-09 Bruno Haible <bruno@clisp.org>
36658 * modules/printf-posix-tests: New file.
36659 * tests/test-printf-posix.sh: New file.
36660 * tests/test-printf-posix.c: New file.
36662 * modules/printf-posix: New file.
36663 * lib/printf.c: New file.
36664 * m4/printf-posix-rpl.m4: New file.
36665 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36667 * lib/stdio_.h (printf): New declaration.
36668 (format, __format__, ____printf____, ____scanf____, ____strftime____,
36669 ____strfmon____): New macros.
36670 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36673 2007-03-09 Bruno Haible <bruno@clisp.org>
36675 * tests/test-vasnprintf-posix2.sh: New file.
36676 * tests/test-vasnprintf-posix2.c: New file.
36677 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36678 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36679 (Makefile.am): Activate test-vasnprintf-posix2.sh.
36681 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36682 a locale dependent decimal point, rather than always '.'.
36684 2007-03-09 Eric Blake <ebb9@byu.net>
36686 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36687 spite of platforms like Tandem/NSK that define it to -1.
36689 2007-03-08 Bruno Haible <bruno@clisp.org>
36691 * modules/vprintf-posix-tests: New file.
36692 * tests/test-vprintf-posix.sh: New file.
36693 * tests/test-vprintf-posix.c: New file.
36694 * tests/test-printf-posix.h: New file.
36696 * modules/vprintf-posix: New file.
36697 * lib/vprintf.c: New file.
36698 * m4/vprintf-posix.m4: New file.
36699 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36701 * lib/stdio_.h (vprintf): New declaration.
36702 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36705 2007-03-08 Bruno Haible <bruno@clisp.org>
36707 * modules/fprintf-posix-tests: New file.
36708 * tests/test-fprintf-posix.sh: New file.
36709 * tests/test-fprintf-posix.c: New file.
36711 * modules/fprintf-posix: New file.
36712 * lib/fprintf.c: New file.
36713 * m4/fprintf-posix.m4: New file.
36714 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36716 * lib/stdio_.h (fprintf): New declaration.
36717 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36720 2007-03-08 Bruno Haible <bruno@clisp.org>
36722 * modules/vfprintf-posix-tests: New file.
36723 * tests/test-vfprintf-posix.sh: New file.
36724 * tests/test-vfprintf-posix.c: New file.
36725 * tests/test-fprintf-posix.h: New file.
36726 * tests/test-fprintf-posix.out: New file.
36728 * modules/vfprintf-posix: New file.
36729 * lib/vfprintf.c: New file.
36730 * m4/vfprintf-posix.m4: New file.
36731 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36733 * lib/stdio_.h (vfprintf): New declaration.
36734 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36737 2007-03-08 Bruno Haible <bruno@clisp.org>
36739 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36741 2007-03-08 Bruno Haible <bruno@clisp.org>
36743 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36744 instead of 'expr' invocations.
36745 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36746 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36747 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36748 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36749 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36750 Suggested by Paul Eggert.
36752 2007-03-08 Bruno Haible <bruno@clisp.org>
36754 * modules/fseterr-tests: New file.
36755 * tests/test-fseterr.c: New file.
36757 * modules/fseterr: New file.
36758 * lib/fseterr.h: New file.
36759 * lib/fseterr.c: New file.
36761 2007-03-08 Bruno Haible <bruno@clisp.org>
36763 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36764 * lib/getopt_.h: Likewise.
36765 * lib/mbswidth.h: Likewise.
36766 * lib/setenv.h: Likewise.
36767 * lib/vasnprintf.h: Likewise.
36768 * lib/vasprintf.h: Likewise.
36769 * lib/verror.h: Likewise.
36770 * lib/xsetenv.h: Likewise.
36771 * lib/xvasprintf.h: Likewise.
36773 2007-03-08 Jim Meyering <jim@meyering.net>
36775 * users.txt: Add parted.
36777 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36779 2007-03-07 Bruno Haible <bruno@clisp.org>
36781 * m4/printf.m4: Make the shell script snippets copy&pastable.
36783 2007-03-02 Bruno Haible <bruno@clisp.org>
36785 * lib/netinet_in_.h: New file.
36786 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36787 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36788 * modules/netinet_in (Files): Add lib/netinet_in_.h.
36789 (Depends-on): Add absolute-header.
36790 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36793 2007-03-03 Bruno Haible <bruno@clisp.org>
36795 * lib/sys_select_.h: New file.
36796 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36797 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36798 * modules/sys_select (Files): Add lib/sys_select_.h.
36799 (Depends-on): Add absolute-header.
36800 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36803 2007-03-02 Bruno Haible <bruno@clisp.org>
36805 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36806 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36808 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36809 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36810 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36811 * modules/sys_socket (Depends-on): Add absolute-header.
36812 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36813 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36814 (Include): Remove requirement of inclusion of <sys/types.h>.
36816 2007-03-02 Bruno Haible <bruno@clisp.org>
36818 * lib/byteswap_.h (bswap_32): Fix formula.
36820 2007-03-06 Bruno Haible <bruno@clisp.org>
36822 * modules/sprintf-posix-tests: New file.
36823 * tests/test-sprintf-posix.c: New file.
36825 * modules/sprintf-posix: New file.
36826 * lib/sprintf.c: New file.
36827 * m4/sprintf-posix.m4: New file.
36828 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36830 * lib/stdio_.h (sprintf): New declaration.
36831 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36834 2007-03-06 Bruno Haible <bruno@clisp.org>
36836 * modules/vsprintf-posix-tests: New file.
36837 * tests/test-vsprintf-posix.c: New file.
36838 * tests/test-sprintf-posix.h: New file.
36840 * modules/vsprintf-posix: New file.
36841 * lib/vsprintf.c: New file.
36842 * m4/vsprintf-posix.m4: New file.
36843 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36845 * lib/stdio_.h (vsprintf): New declaration.
36846 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36849 2007-03-06 Bruno Haible <bruno@clisp.org>
36851 * modules/vsnprintf (Depend-on): Remove minmax.
36853 2007-03-06 Bruno Haible <bruno@clisp.org>
36855 * modules/snprintf-posix-tests: New file.
36856 * tests/test-snprintf-posix.c: New file.
36858 * modules/snprintf-posix: New file.
36859 * m4/snprintf-posix.m4: New file.
36860 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36862 (gl_FUNC_SNPRINTF): Invoke it.
36863 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36864 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36866 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36868 2007-03-06 Bruno Haible <bruno@clisp.org>
36870 * modules/vsnprintf-posix-tests: New file.
36871 * tests/test-vsnprintf-posix.c: New file.
36872 * tests/test-snprintf-posix.h: New file.
36874 * modules/vsnprintf-posix: New file.
36875 * m4/vsnprintf-posix.m4: New file.
36876 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36878 (gl_FUNC_VSNPRINTF): Invoke it.
36879 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36880 * lib/stdio_.h (vsnprintf): Define as a replacement if
36881 REPLACE_VSNPRINTF is set.
36882 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36884 2007-03-06 Bruno Haible <bruno@clisp.org>
36886 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36887 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36889 2007-03-06 Bruno Haible <bruno@clisp.org>
36891 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36892 (asinl): Declare also if HAVE_DECL_ASINL is set.
36893 (atanl): Declare also if HAVE_DECL_ATANL is set.
36894 (ceill): Declare also if HAVE_DECL_CEILL is set.
36895 (cosl): Declare also if HAVE_DECL_COSL is set.
36896 (expl): Declare also if HAVE_DECL_EXPL is set.
36897 (floorl): Declare also if HAVE_DECL_FLOORL is set.
36898 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36899 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36900 (logl): Declare also if HAVE_DECL_LOGL is set.
36901 (sinl): Declare also if HAVE_DECL_SINL is set.
36902 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36903 (tanl): Declare also if HAVE_DECL_TANL is set.
36904 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36905 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36906 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36907 declaration of frexpl, ldexpl.
36908 * modules/printf-frexpl (Depends-on): Add math.
36909 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36911 2007-03-05 Bruno Haible <bruno@clisp.org>
36913 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36914 frexpl and ldexpl are declared.
36915 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36917 2007-03-05 Bruno Haible <bruno@clisp.org>
36919 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36920 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36922 2007-03-05 Bruno Haible <bruno@clisp.org>
36924 * lib/stdio_.h: Include <stddef.h>.
36926 2007-03-05 Bruno Haible <bruno@clisp.org>
36928 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36930 2007-03-05 Bruno Haible <bruno@clisp.org>
36932 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36933 NetBSD 4, from Ralf Wildenhues.
36935 2007-03-04 Bruno Haible <bruno@clisp.org>
36937 * lib/vasprintf.h: Update #if logic for the case when the functions
36938 exist but are overridden.
36940 2007-03-04 Bruno Haible <bruno@clisp.org>
36942 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36943 implementations: glibc-2.4 and MacOS X 10.3.
36944 * tests/test-vasnprintf-posix.c (test_function): Test also the case
36945 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36946 * tests/test-vasprintf-posix.c (test_function): Likewise.
36948 2007-03-04 Bruno Haible <bruno@clisp.org>
36950 * modules/vasprintf-posix-tests: New file.
36951 * tests/test-vasprintf-posix.c: New file.
36953 * modules/vasprintf-posix: New file.
36954 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36956 * m4/vasprintf-posix.m4: New file.
36957 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36959 (gl_FUNC_VASPRINTF): Invoke it.
36960 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36962 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36964 2007-03-04 Bruno Haible <bruno@clisp.org>
36966 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36967 REPLACE_GETTIMEOFDAY.
36968 * modules/sys_time (Makefile.am): Likewise.
36969 * m4/sys_time_h.m4: Likewise.
36970 * m4/gettimeofday.m4: Likewise.
36972 2007-03-04 Bruno Haible <bruno@clisp.org>
36974 * modules/vasnprintf-posix-tests: New file.
36975 * tests/test-vasnprintf-posix.c: New file.
36977 * modules/vasnprintf-posix: New file.
36978 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36980 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36981 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36982 REPLACE_VASNPRINTF is defined.
36983 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36984 gl_FUNC_VASNPRINTF.
36985 (gl_FUNC_VASNPRINTF): Invoke it.
36986 * m4/vasnprintf-posix.m4: New file.
36987 * m4/printf.m4: New file.
36989 2007-03-04 Bruno Haible <bruno@clisp.org>
36991 Compile progreloc.c only if --enable-relocatable is specified.
36992 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36993 if --enable-relocatable was specified.
36994 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36997 2007-03-04 Jim Meyering <jim@meyering.net>
36999 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37000 Use it consistently, rather than enumerating errno constants.
37002 2007-03-04 Bruno Haible <bruno@clisp.org>
37004 * modules/xvasprintf-tests: New file.
37005 * tests/test-xvasprintf.c: New file.
37007 * modules/vasprintf-tests: New file.
37008 * tests/test-vasprintf.c: New file.
37010 * modules/vasnprintf-tests: New file.
37011 * tests/test-vasnprintf.c: New file.
37013 * modules/vsnprintf-tests: New file.
37014 * tests/test-vsnprintf.c: New file.
37016 * modules/snprintf-tests: New file.
37017 * tests/test-snprintf.c: New file.
37019 2007-03-04 Bruno Haible <bruno@clisp.org>
37021 Compile relocatable.c only if --enable-relocatable is specified.
37022 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37023 gl_RELOCATABLE_LIBRARY.
37024 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37025 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37026 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37027 gl_RELOCATABLE_LIBRARY.
37028 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37029 (Makefile.am): Remove lib_SOURCES.
37030 * modules/relocatable-lib-lgpl (configure.ac): Invoke
37031 gl_RELOCATABLE_LIBRARY.
37032 (Makefile.am): Remove lib_SOURCES.
37033 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37035 * modules/relocatable-prog-wrapper (configure.ac): Invoke
37036 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37038 2007-03-04 Bruno Haible <bruno@clisp.org>
37040 * modules/argmatch-tests: New file.
37041 * tests/test-argmatch.c: New file.
37043 * tests/test-allocsa.c (main): Halve the number of loop runs.
37045 * modules/alloca-opt-tests: New file.
37046 * tests/test-alloca-opt.c: New file.
37048 2007-03-04 Jim Meyering <jim@meyering.net>
37050 Work around difference between Linux ACLs and Solaris 10 ZFS.
37051 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37054 2007-03-03 Bruno Haible <bruno@clisp.org>
37056 * modules/relocatable-prog (Depends-on): Add back progreloc's
37057 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37059 2007-03-03 Bruno Haible <bruno@clisp.org>
37061 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37062 * modules/relocatable-lib: New file.
37064 2007-03-03 Bruno Haible <bruno@clisp.org>
37066 * modules/relocatable-prog: Renamed from modules/relocatable.
37067 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37069 2007-03-03 Bruno Haible <bruno@clisp.org>
37071 * modules/relocatable-script (Files): Add doc/relocatable.texi,
37072 m4/relocatable-lib.m4.
37073 (Depends-on): Remove 'relocatable'.
37074 (configure.ac): Add gl_RELOCATABLE_NOP.
37076 2007-03-03 Bruno Haible <bruno@clisp.org>
37078 * modules/relocatable-prog-wrapper: New file.
37079 * modules/relocatable (Depends-on): Add it. Remove all other
37080 dependencies except progname.
37081 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37083 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37084 (gl_FUNC_STRERROR): Nop.
37085 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37087 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37088 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37090 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37091 (gl_FUNC_READLINK): Update.
37093 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37095 2007-03-03 Bruno Haible <bruno@clisp.org>
37097 * lib/xreadlink.c: Include <unistd.h> unconditionally.
37098 * modules/xreadlink (Depends-on): Add unistd.
37099 * modules/xreadlink-with-size (Depends-on): Likewise.
37101 2007-03-03 Bruno Haible <bruno@clisp.org>
37103 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37104 extracted from gt_FUNC_SETENV.
37105 (gt_FUNC_SETENV): Remove macro.
37106 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37107 remove gt_FUNC_SETENV.
37109 2007-03-03 Bruno Haible <bruno@clisp.org>
37111 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37112 ENABLE_RELOCATABLE here.
37113 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37115 2007-03-03 Bruno Haible <bruno@clisp.org>
37117 * modules/rbtreehash-list-tests (Depends-on): Add progname.
37118 * tests/test-rbtreehash_list.c: Include progname.h.
37119 (main): Call set_program_name.
37121 * modules/rbtree-oset-tests (Depends-on): Add progname.
37122 * tests/test-rbtree_oset.c: Include progname.h.
37123 (main): Call set_program_name.
37125 * modules/rbtree-list-tests (Depends-on): Add progname.
37126 * tests/test-rbtree_list.c: Include progname.h.
37127 (main): Call set_program_name.
37129 * modules/linked-list-tests (Depends-on): Add progname.
37130 * tests/test-linked_list.c: Include progname.h.
37131 (main): Call set_program_name.
37133 2007-03-03 Bruno Haible <bruno@clisp.org>
37135 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37136 All uses of __restrict changed to _Restrict_.
37137 * lib/glob_.h (__restrict): Remove macro.
37139 2007-03-02 Bruno Haible <bruno@clisp.org>
37141 * modules/gettext (configure.ac): Require gettext infrastructure
37142 from version 0.16.1.
37144 2007-03-02 Bruno Haible <bruno@clisp.org>
37146 * modules/linkedhash-list-tests (Depends-on): Add progname.
37147 * tests/test-linkedhash_list.c: Include progname.h.
37148 (main): Call set_program_name.
37150 * modules/carray-list-tests (Depends-on): Add progname.
37151 * tests/test-carray_list.c: Include progname.h.
37152 (main): Call set_program_name.
37154 * modules/avltreehash-list-tests (Depends-on): Add progname.
37155 * tests/test-avltreehash_list.c: Include progname.h.
37156 (main): Call set_program_name.
37158 * modules/avltree-oset-tests (Depends-on): Add progname.
37159 * tests/test-avltree_oset.c: Include progname.h.
37160 (main): Call set_program_name.
37162 * modules/avltree-list-tests (Depends-on): Add progname.
37163 * tests/test-avltree_list.c: Include progname.h.
37164 (main): Call set_program_name.
37166 * modules/array-oset-tests (Depends-on): Add progname.
37167 * tests/test-array_oset.c: Include progname.h.
37168 (main): Call set_program_name.
37170 * modules/array-list-tests (Depends-on): Add progname.
37171 * tests/test-array_list.c: Include progname.h.
37172 (main): Call set_program_name.
37174 * modules/argp-tests (Depends-on): Add progname.
37175 * tests/test-argp.c: Include argp.h first. Include progname.h.
37176 (main): Call set_program_name.
37178 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
37180 * doc/gnulib-tool.texi (Initial import): Reword description of
37181 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37182 limited effect even if defined after the first system include.
37184 2007-03-01 Bruno Haible <bruno@clisp.org>
37186 * build-aux/config.libpath: Update to libtool-1.5.22.
37187 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37189 2007-03-01 Bruno Haible <bruno@clisp.org>
37191 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37193 Reported by Ralf Wildenhues.
37195 2007-03-01 Bruno Haible <bruno@clisp.org>
37197 * build-aux/install-reloc: Remove object files left over by some
37199 Reported by Ralf Wildenhues.
37201 2007-03-01 Bruno Haible <bruno@clisp.org>
37203 * build-aux/install-reloc: Break long lines.
37205 2007-03-01 Bruno Haible <bruno@clisp.org>
37207 * doc/relocatable.texi: Document that it may not work on OpenBSD.
37208 Reported by Ralf Wildenhues.
37210 2007-03-01 Bruno Haible <bruno@clisp.org>
37212 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37213 include ordering constraints.
37215 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
37217 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37218 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37219 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37220 as another example.
37221 * lib/time_.h: Fix misspelling.
37222 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37223 Require gl_HEADER_TIME_H_DEFAULTS.
37224 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37225 * m4/time_r.m4 (gl_TIME_R): Likewise.
37226 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37228 2007-03-01 Bruno Haible <bruno@clisp.org>
37230 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37231 * m4/utimens.m4 (gl_UTIMENS): Likewise.
37233 2007-03-01 Jim Meyering <jim@meyering.net>
37235 * modules/xreadlink (Maintainer): Add my name.
37236 * modules/xreadlink-with-size (Depends-on): Alphabetize.
37238 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
37239 Bruno Haible <bruno@clisp.org>
37241 * build-aux/install-reloc: Compile also c-ctype.c.
37242 * build-aux/relocatable.sh.in: New file.
37243 * doc/relocatable.texi: New file.
37244 * doc/relocatable-maint.texi: New file.
37245 * doc/gnulib.texi: Include relocatable-maint.texi.
37246 * lib/progreloc.c: Include unistd.h unconditionally.
37247 * lib/relocwrapper.c: Include unistd.h unconditionally.
37249 (add_dotbin): Use c_tolower.
37250 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37251 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37252 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37253 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37254 to m4/relocatable-lib.m4.
37255 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37256 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37257 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37258 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37259 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37260 * modules/relocatable: New file.
37261 * modules/relocatable-lib: New file.
37262 * modules/relocatable-script: New file.
37264 2007-02-28 Bruno Haible <bruno@clisp.org>
37266 Import --enable-relocatable infrastructure.
37267 * build-aux/config.libpath: New file, from GNU gettext.
37268 * build-aux/install-reloc: New file, from GNU gettext.
37269 * build-aux/reloc-ldflags: New file, from GNU gettext.
37270 * lib/relocatable.h: New file, from GNU gettext.
37271 * lib/relocatable.c: New file, from GNU gettext.
37272 * lib/relocwrapper.c: New file, from GNU gettext.
37273 * m4/relocatable.m4: New file, from GNU gettext.
37275 2007-02-28 Bruno Haible <bruno@clisp.org>
37277 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37279 * modules/xreadlink: New file, from GNU gettext with modifications.
37280 * lib/xreadlink.c: New file, from GNU gettext.
37281 * lib/xreadlink.h: Add comments.
37282 (xreadlink): New declaration.
37284 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37285 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37286 lib/xreadlink-with-size.c.
37287 (configure.ac): Remove gl_XREADLINK invocation.
37288 (Makefile.am): Augment lib_SOURCES.
37289 * m4/xreadlink.m4: Remove file.
37290 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37291 (xreadlink_with_size): Renamed from xreadink.
37292 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37293 * modules/canonicalize (Depends-on): Replace xreadlink with
37294 xreadlink-with-size.
37295 * lib/canonicalize.c (canonicalize_filename_mode): Update.
37297 2007-02-25 Jim Meyering <jim@meyering.net>
37299 * build-aux/announce-gen: When complaining about excess arguments,
37302 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
37304 * README: Document signed integer overflow situation more
37307 2007-02-25 Bruno Haible <bruno@clisp.org>
37309 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37310 'a' or 'A' conversion.
37312 2007-02-25 Bruno Haible <bruno@clisp.org>
37314 * modules/filename: Renamed from modules/pathname.
37315 (Files): Replace lib/pathname.h with lib/filename.h. Replace
37316 lib/concatpath.c with lib/concat-filename.c.
37317 (Makefile.am): Update.
37318 (Include): Replace pathname.h with filename.h.
37319 * lib/filename.h: Renamed from lib/pathname.h.
37320 (concatenated_filename): Renamed from concatenated_pathname.
37321 * lib/concat-filename.c: Renamed from lib/concatpath.c.
37322 (concatenated_filename): Renamed from concatenated_pathname.
37323 * lib/findprog.c: Include filename.h instead of pathname.h.
37324 (find_in_path): Update.
37325 * lib/javacomp.c: Include filename.h instead of pathname.h.
37326 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37327 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37328 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37329 is_oldgcj_14_13_usable, is_javac_usable): Update.
37330 * lib/javaexec.c: Include filename.h instead of pathname.h.
37331 (execute_java_class): Update.
37332 * modules/findprog: Update.
37333 * modules/javacomp: Update.
37334 * modules/javaexec: Update.
37335 * MODULES.html.sh (File system functions): Add 'filename', remove
37338 2007-02-25 Bruno Haible <bruno@clisp.org>
37340 * modules/printf-frexpl-tests: New file.
37341 * tests/test-printf-frexpl.c: New file.
37343 * modules/printf-frexpl: New file.
37344 * lib/printf-frexpl.h: New file.
37345 * lib/printf-frexpl.c: New file.
37346 * m4/printf-frexpl.m4: New file.
37348 2007-02-25 Bruno Haible <bruno@clisp.org>
37350 * modules/printf-frexp-tests: New file.
37351 * tests/test-printf-frexp.c: New file.
37353 * modules/printf-frexp: New file.
37354 * lib/printf-frexp.h: New file.
37355 * lib/printf-frexp.c: New file.
37356 * m4/printf-frexp.m4: New file.
37358 2007-02-25 Bruno Haible <bruno@clisp.org>
37360 Assume automake >= 1.10 for the tests.
37361 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37362 * modules/arctwo-tests: Likewise.
37363 * modules/argp-tests: Likewise.
37364 * modules/avltree-list-tests: Likewise.
37365 * modules/avltree-oset-tests: Likewise.
37366 * modules/avltreehash-list-tests: Likewise.
37367 * modules/carray-list-tests: Likewise.
37368 * modules/crc-tests: Likewise.
37369 * modules/des-tests: Likewise.
37370 * modules/gc-arcfour-tests: Likewise.
37371 * modules/gc-arctwo-tests: Likewise.
37372 * modules/gc-des-tests: Likewise.
37373 * modules/gc-hmac-md5-tests: Likewise.
37374 * modules/gc-hmac-sha1-tests: Likewise.
37375 * modules/gc-md2-tests: Likewise.
37376 * modules/gc-md4-tests: Likewise.
37377 * modules/gc-md5-tests: Likewise.
37378 * modules/gc-pbkdf2-sha1-tests: Likewise.
37379 * modules/gc-rijndael-tests: Likewise.
37380 * modules/gc-sha1-tests: Likewise.
37381 * modules/gc-tests: Likewise.
37382 * modules/getaddrinfo-tests: Likewise.
37383 * modules/hmac-md5-tests: Likewise.
37384 * modules/hmac-sha1-tests: Likewise.
37385 * modules/linked-list-tests: Likewise.
37386 * modules/linkedhash-list-tests: Likewise.
37387 * modules/lock-tests: Likewise.
37388 * modules/md2-tests: Likewise.
37389 * modules/md4-tests: Likewise.
37390 * modules/md5-tests: Likewise.
37391 * modules/rbtree-list-tests: Likewise.
37392 * modules/rbtree-oset-tests: Likewise.
37393 * modules/rbtreehash-list-tests: Likewise.
37394 * modules/read-file-tests: Likewise.
37395 * modules/rijndael-tests: Likewise.
37396 * modules/stdint-tests: Likewise.
37397 * modules/tls-tests: Likewise.
37399 2007-02-24 Bruno Haible <bruno@clisp.org>
37401 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37402 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37403 function; instead check whether isnan with a double argument links.
37404 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37405 function; instead check whether isnan with a 'long double' argument
37407 Reported by Eric Blake <ebb9@byu.net>.
37409 2007-02-24 Bruno Haible <bruno@clisp.org>
37411 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37413 * lib/isnanl.c: Remove all code. Just include isnan.c.
37414 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37416 2007-02-25 Jim Meyering <jim@meyering.net>
37418 Avoid conflicting types for 'unsetenv' on FreeBSD.
37419 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37420 conflicting with FreeBSD's (5.0 and 6.1) function declaration
37423 2007-02-24 Bruno Haible <bruno@clisp.org>
37425 * modules/isnanl-nolibm-tests: New file.
37426 * tests/test-isnanl.c: New file.
37428 * modules/isnanl-nolibm: New file.
37429 * lib/isnanl.h: New file.
37430 * lib/isnanl.c: New file.
37431 * m4/isnanl.m4: New file.
37433 2007-02-24 Bruno Haible <bruno@clisp.org>
37435 * modules/isnan-nolibm-tests: New file.
37436 * tests/test-isnan.c: New file.
37438 * modules/isnan-nolibm: New file.
37439 * lib/isnan.h: New file.
37440 * lib/isnan.c: New file.
37441 * m4/isnan.m4: New file.
37443 2007-02-24 Bruno Haible <bruno@clisp.org>
37445 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37446 assume that an exponent fits in 20 bits.
37448 2007-02-24 Jim Meyering <jim@meyering.net>
37450 * m4/regex.m4: Update the description of the configure-time option,
37451 --without-included-regex, to state accurately what the defaults are,
37452 and perhaps to give people an idea why using this option is risky.
37454 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
37456 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37457 loops on small arguments. This attempts to avoid the problem
37458 Bruno Haible reported for AIX 4.3.2 in
37459 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37461 2007-02-23 Bruno Haible <bruno@clisp.org>
37463 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37464 Needed for help2man.
37466 2007-02-23 Karl Berry <karl@gnu.org>
37468 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37469 exists, foo.h should be cvs-ignored, not committed.
37471 2007-02-23 Eric Blake <ebb9@byu.net>
37473 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
37474 * lib/stat-time.h (includes): Likewise.
37475 * lib/utimecmp.c (includes): Likewise.
37476 * lib/utimens.h (includes): Likewise.
37477 * lib/getdate.y (includes): Also include "timespec.h" for use
37478 internal to the module.
37479 * modules/utimens (Depends-on): Revert yesterday's patch.
37480 * modules/nanosleep (Depends-on): Add missing dependency.
37482 2007-02-22 Bruno Haible <bruno@clisp.org>
37484 * lib/glob.c: Don't include getlogin_r.h.
37486 2007-02-22 Jim Meyering <jim@meyering.net>
37488 * modules/utimens (Depends-on): Add timespec, required for
37489 utimens.h's inclusion of timespec.h.
37491 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
37493 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37494 long unreadable paths in GNU/Linux. Problem reported by Andreas
37496 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37497 I'll try to think of a better way to fix the Solaris problem.
37499 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37500 like glibc; on Solaris 10, it fails with errno == EINVAL.
37501 POSIX says the behavior is unspecified if the first argument is NULL,
37502 so play it safe and never pass NULL to the system getcwd.
37504 2007-02-21 Jim Meyering <jim@meyering.net>
37506 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37507 of gettimeofday. It would conflict with the one now always
37508 provided via sys_time_.h. Reported by Matthew Woehlke, as
37509 an IRIX 6.5 build failure.
37511 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
37513 Minor fixups to port to Solaris 10 with Sun C 5.8.
37514 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37515 * modules/getcwd (Depends-on): Add dirfd.
37516 * lib/putenv.c (putenv): #undef it.
37517 (rpl_putenv): New decl.
37518 (malloc, free): Include <stdlib.h> rather than prototyping separately.
37520 2007-02-20 Bruno Haible <bruno@clisp.org>
37522 * modules/stdio-tests: New file.
37523 * tests/test-stdio.c: New file.
37525 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37526 (Depends-on): Add stdio.
37527 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37528 (Include): Use <stdio.h> instead of vsnprintf.h.
37529 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37530 HAVE_DECL_VSNPRINTF.
37531 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37533 * modules/snprintf (Files): Remove lib/snprintf.h.
37534 (Depends-on): Add stdio.
37535 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37536 (Include): Use <stdio.h> instead of snprintf.h.
37537 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37538 HAVE_DECL_SNPRINTF.
37539 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37540 * lib/getaddrinfo.c: Likewise.
37542 * modules/stdio: New file.
37543 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37544 * lib/snprintf.h: Remove file.
37545 * lib/vsnprintf.h: Remove file.
37546 * lib/.cppi-disable: Remove snprintf.h.
37547 * m4/stdio_h.m4: New file.
37548 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37550 2007-02-20 Jim Meyering <jim@meyering.net>
37552 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37553 used by e.g., mingw. From Bruno Haible.
37555 2007-02-19 Bruno Haible <bruno@clisp.org>
37557 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37559 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37561 2007-02-19 Bruno Haible <bruno@clisp.org>
37563 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37566 2007-02-19 Bruno Haible <bruno@clisp.org>
37568 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37570 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37572 2007-02-19 Jim Meyering <jim@meyering.net>
37574 Don't use FD after a successful "fdopendir (fd)".
37575 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37576 Reset it by calling dirfd on the just-obtained DIR*.
37578 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37579 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37581 2007-02-18 Bruno Haible <bruno@clisp.org>
37583 * lib/readlink.c: Include <unistd.h>.
37584 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37586 * modules/readlink (Depends-on): Add unistd.
37587 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37588 (Include): Add <unistd.h>.
37590 * lib/getlogin_r.h: Remove file.
37591 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37592 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37593 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37594 HAVE_DECL_GETLOGIN_R.
37595 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37596 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37597 (Include): Use <unistd.h> instead of getlogin_r.h.
37599 * lib/getcwd.h: Remove file.
37600 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37601 * lib/xgetcwd.c: Likewise.
37602 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37603 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37604 * modules/getcwd (Files): Remove lib/getcwd.h.
37605 (Depends-on): Add unistd.
37606 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37607 (Include): Use <unistd.h> instad of getcwd.h.
37609 * lib/ftruncate.c: Include <unistd.h> first.
37610 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37611 Set HAVE_FTRUNCATE.
37612 * modules/ftruncate (Depends-on): Add unistd.
37613 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37615 * lib/fchdir.c: Include <unistd.h> first.
37616 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37617 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37618 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37619 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37620 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37622 * lib/dup2.c: Include <unistd.h> first.
37623 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37625 * modules/dup2 (Depends-on): Add unistd.
37626 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37628 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37629 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37630 REPLACE_CHOWN. Don't define chown as a macro here.
37631 * modules/chown (Depends-on): Add unistd.
37632 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37634 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37635 Add definition for GL_LINK_WARNING.
37636 (chown, dup2): New declarations.
37637 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37639 (ftruncate): New declaration.
37640 (getcwd): New declaration, taken from old getcwd.h.
37641 (getlogin_r): New declaration, taken from old getlogin_r.h.
37642 (readlink): New declaration.
37643 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37644 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37645 (gl_PREREQ_UNISTD): Remove macro.
37646 (gl_UNISTD_MODULE_INDICATOR): New macro.
37647 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37648 many new variables. Don't set UNISTD_H.
37649 * modules/unistd (Description): Change.
37650 (Depends-on): Add link-warning.
37651 (configure.ac): Update.
37652 (Makefile.am): Create unistd.h always. Substitute many new variables
37655 2007-02-18 Bruno Haible <bruno@clisp.org>
37657 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37658 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37660 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37661 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37662 * lib/getsubopt.h: Remove file.
37663 * modules/getsubopt (Files): Remove lib/getsubopt.h.
37664 (Depends-on): Add stdlib.
37665 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37666 (Includes): Use <stdlib.h> instead of getsubopt.h.
37667 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37668 Set HAVE_GETSUBOPT.
37669 * lib/getsubopt.c: Don't include getsubopt.h.
37671 2007-02-18 Bruno Haible <bruno@clisp.org>
37673 * modules/fchdir (Depends-on): Add dup2.
37675 2007-02-18 Bruno Haible <bruno@clisp.org>
37677 * lib/stdlib_.h: Handle glibc's special invocation convention
37680 2007-02-18 Bruno Haible <bruno@clisp.org>
37682 * modules/stdlib-tests: New file.
37683 * tests/test-stdlib.c: New file.
37685 * modules/mkstemp (Files): Remove lib/mkstemp.h.
37686 (Depends-on): Add stdlib.
37687 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37688 (Includes): Use <stdlib.h> instead of mkstemp.h.
37689 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37690 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37691 * lib/mkstemp.c: Don't include mkstemp.h.
37692 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37693 * lib/stdlib--.h: Don't include mkstemp.h.
37695 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37696 (Depends-on): Add stdlib.
37697 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37698 (Includes): Use <stdlib.h> instead of mkdtemp.h.
37699 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37701 * lib/mkdtemp.c: Don't include mkdtemp.h.
37702 * lib/clean-temp.c: Don't include mkdtemp.h.
37704 * modules/exit (Files): Remove lib/exit.h.
37705 (Depends-on): Add stdlib.
37706 (Makefile.am): Remove lib_SOURCES.
37707 (Include): Use <stdlib.h> instead of exit.h.
37708 * lib/argmatch.c: Don't include exit.h.
37709 * lib/execute.c: Likewise.
37710 * lib/pagealign_alloc.c: Likewise.
37711 * lib/pipe.c: Likewise.
37712 * lib/wait-process.c: Likewise.
37713 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37714 * lib/exitfail.c: Likewise.
37715 * lib/savewd.c: Likewise.
37716 * lib/xsetenv.c: Likewise.
37718 * modules/stdlib: New file.
37719 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37720 and extra comments about mkstemp().
37721 * lib/exit.h: Remove file.
37722 * lib/mkdtemp.h: Remove file.
37723 * lib/mkstemp.h: Remove file.
37724 * m4/stdlib_h.m4: New file.
37725 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37727 2007-02-18 Bruno Haible <bruno@clisp.org>
37729 * modules/math-tests: New file.
37730 * tests/test-math.c: New file.
37732 * modules/math: New file.
37733 * modules/mathl (Files): Remove lib/mathl.h.
37734 (Depends-on): Add math.
37735 (Makefile.am): Don't mention mathl.h.
37736 (Include): Use <math.h> instead of mathl.h.
37737 * lib/math_.h: New file.
37738 * lib/mathl.h: Remove file.
37739 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37741 * lib/asinl.c: Likewise.
37742 * lib/atanl.c: Likewise.
37743 * lib/ceill.c: Likewise.
37744 * lib/cosl.c: Likewise.
37745 * lib/expl.c: Likewise.
37746 * lib/floorl.c: Likewise.
37747 * lib/frexpl.c: Likewise.
37748 * lib/ldexpl.c: Likewise.
37749 * lib/logl.c: Likewise.
37750 * lib/sincosl.c: Likewise.
37751 * lib/sinl.c: Likewise.
37752 * lib/sqrtl.c: Likewise.
37753 * lib/tanl.c: Likewise.
37754 * lib/trigl.c: Likewise.
37755 * m4/math_h.m4: New file.
37756 * MODULES.html.sh (Mathematics): Add math.
37758 2007-02-17 Bruno Haible <bruno@clisp.org>
37760 * modules/wctype-tests: New file.
37761 * tests/test-wctype.c: New file.
37763 * modules/wchar-tests: New file.
37764 * tests/test-wchar.c: New file.
37766 * modules/unistd-tests: New file.
37767 * tests/test-unistd.c: New file.
37769 * modules/time-tests: New file.
37770 * tests/test-time.c: New file.
37772 * modules/sysexits-tests: New file.
37773 * tests/test-sysexits.c: New file.
37775 * modules/sys_time-tests: New file.
37776 * tests/test-sys_time.c: New file.
37778 * modules/sys_stat-tests: New file.
37779 * tests/test-sys_stat.c: New file.
37781 * modules/sys_socket-tests: New file.
37782 * tests/test-sys_socket.c: New file.
37784 * modules/sys_select-tests: New file.
37785 * tests/test-sys_select.c: New file.
37787 * modules/string-tests: New file.
37788 * tests/test-string.c: New file.
37790 * modules/stdbool-tests: New file.
37791 * tests/test-stdbool.c: New file.
37793 * modules/netinet_in-tests: New file.
37794 * tests/test-netinet_in.c: New file.
37796 * modules/inttypes-tests: New file.
37797 * tests/test-inttypes.c: New file.
37799 * modules/fcntl-tests: New file.
37800 * tests/test-fcntl.c: New file.
37802 * modules/byteswap-tests: New file.
37803 * tests/test-byteswap.c: New file.
37805 * modules/arpa_inet-tests: New file.
37806 * tests/test-arpa_inet.c: New file.
37808 2007-02-17 Bruno Haible <bruno@clisp.org>
37810 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37811 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37812 if the corresponding module is not enabled. Emit link warnings if
37813 the function is used nevertheless.
37814 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37815 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37816 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37817 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37818 * modules/inttypes (Depends-on): Add link-warning.
37819 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37820 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37821 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37822 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37823 * modules/imaxdiv (configure.ac): Likewise.
37824 * modules/strtoimax (configure.ac): Likewise.
37825 * modules/strtoumax (configure.ac): Likewise.
37827 2007-02-17 Bruno Haible <bruno@clisp.org>
37829 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37830 gl_STRING_MODULE_INDICATOR_DEFAULTS.
37831 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37832 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37834 2007-02-17 Bruno Haible <bruno@clisp.org>
37836 * modules/link-warning: New file.
37837 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37838 * lib/string_.h (GL_LINK_WARNING): Remove definition.
37839 * modules/string (Depends-on): Add link-warning.
37840 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37842 * MODULES.html.sh (Support for building libraries and executables): Add
37845 2007-02-17 Bruno Haible <bruno@clisp.org>
37847 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37848 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37849 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37852 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
37853 Bruno Haible <bruno@clisp.org>
37855 * modules/tmpfile: New file.
37856 * lib/tmpfile.c: New file.
37857 * m4/tmpfile.m4: New file.
37858 * MODULES.html.sh (func_all_modules): New section "Input/output".
37860 2007-02-15 Bruno Haible <bruno@clisp.org>
37862 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37863 (supports_delete_on_close): New function.
37864 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37866 2007-02-14 Bruno Haible <bruno@clisp.org>
37868 * modules/mbspcasecmp-tests: New file.
37869 * tests/test-mbspcasecmp.sh: New file.
37870 * tests/test-mbspcasecmp.c: New file.
37872 New module mbspcasecmp.
37873 * modules/mbspcasecmp: New file.
37874 * lib/mbspcasecmp.c: New file.
37875 * lib/string_.h (strncasecmp): Change warning message.
37876 (mbspcasecmp): New declaration.
37877 * m4/mbspcasecmp.m4: New file.
37878 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37879 GNULIB_MBSPCASECMP.
37880 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37881 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37883 2007-02-14 Bruno Haible <bruno@clisp.org>
37885 * modules/mbsncasecmp-tests: New file.
37886 * tests/test-mbsncasecmp.sh: New file.
37887 * tests/test-mbsncasecmp.c: New file.
37889 New module mbsncasecmp.
37890 * modules/mbsncasecmp: New file.
37891 * lib/mbsncasecmp.c: New file.
37892 * lib/string_.h (mbsncasecmp): New declaration.
37893 * m4/mbsncasecmp.m4: New file.
37894 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37895 GNULIB_MBSNCASECMP.
37896 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37897 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37899 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
37901 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37902 Verify that it doesn't overlap with our flags.
37903 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37904 do not have the desired effect in multibyte locales; instead, use
37906 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37907 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
37908 we don't require GNU fnmatch ourselves (if our users require it, they
37909 should do so explicitly).
37911 Fix regex code so it doesn't rely on strcasecmp.
37912 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37913 Otherwise, include gnulib's langinfo.h.
37914 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37915 undesirable behavior in non-C locales. Instead, rely on localecharset.
37916 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37917 * modules/regex (FILES): Remove m4/codeset.m4.
37918 (Depends-on): Add localcharset. Remove strcase.
37920 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37922 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37923 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37925 2007-02-13 Bruno Haible <bruno@clisp.org>
37927 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37928 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37930 2007-02-12 Bruno Haible <bruno@clisp.org>
37932 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37933 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37934 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37935 time warning rather than a link error.
37937 2007-02-12 Bruno Haible <bruno@clisp.org>
37939 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37940 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37941 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37943 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37945 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37948 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37950 New module 'time', so that apps can include <time.h> as per
37951 POSIX and GNU instead of separate include files like time_r.h
37952 and timegm.h. This implementation tries out a simpler approach
37953 for replacing decls in standard include files (as compared to
37954 the string module), somewhat as an experiment.
37956 * config/srclist.txt: Comment out mktime.c for now.
37957 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37958 since it doesn't apply any more. Use generic wording instead.
37959 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37961 * lib/time_.h, m4/time_h.m4, modules/time: New files.
37962 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37963 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37964 Don't include <sys/types.h>; no longer needed since we assume C89.
37965 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37966 * lib/strftime.c: Likewise.
37967 * lib/time_r.c: Likewise.
37968 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37969 * lib/nanosleep.c: Include <time.h> first, to check interface.
37970 * lib/strptime.c: Likewise.
37971 * lib/time_r.c: Likewise.
37972 * lib/timegm.c: Likewise.
37973 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37975 * lib/timegm.c: Don't include timegm.h; no longer needed.
37976 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37977 time.h now handles any problems in that area.
37978 (struct timespec, nanosleep): Remove; time.h now arranges for these.
37979 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37980 that time.h defines struct timespec.
37981 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37982 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
37984 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37985 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37986 needed. Set REPLACE_LOCALTIME.
37987 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37988 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37989 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37990 nanosleep; time_h.m4 now does that. Don't require
37991 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37992 module handles this now.
37993 * modules/getdate (Depends-on): Remove timespec. Add time.
37994 * modules/nanosleep (Depends-on): Likewise.
37995 * modules/stat-time (Depends-on): Likewise.
37996 * modules/nanosleep (Include): Include time.h, not timespec.h.
37997 * modules/strptime (Files): Remove lib/strptime.h.
37998 (Depends-on): Add extensions, time.
37999 (Include): Include time.h, not strptime.h.
38000 * modules/time_r (Files): Remove lib/time_r.h.
38001 (Depends-on): Add time.
38002 (Include): Include time.h, not time_r.h.
38003 * modules/timegm: Likewise.
38004 * modules/timespec (Description): Now does timespec-related decls
38005 of our own, instead of struct timespec itself.
38006 (Depends-on): Add time; remove extensions.
38007 (Maintainer): Add self.
38008 * modules/utimecmp (Depends-on): Add time; remove timespec.
38009 * modules/utimens (Depends-on): Likewise.
38010 * modules/xnanosleep (Depends-on): Likewise.
38012 2007-02-11 Bruno Haible <bruno@clisp.org>
38014 * lib/c-strstr.c: Include allocsa.h.
38015 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38016 * lib/c-strcasestr.c: Include allocsa.h.
38017 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38018 * lib/strcasestr.c: Include allocsa.h.
38019 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38020 * lib/mbsstr.c: Include allocsa.h.
38021 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38022 allocsa/freesa instead of malloc/free.
38023 * lib/mbscasestr.c: Include allocsa.h.
38024 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38025 allocsa/freesa instead of malloc/free.
38026 * modules/c-strstr (Depends-on): Add allocsa.
38027 * modules/c-strcasestr (Depends-on): Likewise.
38028 * modules/strcasestr (Depends-on): Likewise.
38029 * modules/mbsstr (Depends-on): Likewise.
38030 * modules/mbscasestr (Depends-on): Likewise.
38032 2007-02-11 Bruno Haible <bruno@clisp.org>
38034 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38036 * modules/mbsspn-tests: New file.
38037 * tests/test-mbsspn.sh: New file.
38038 * tests/test-mbsspn.c: New file.
38040 2007-02-11 Bruno Haible <bruno@clisp.org>
38042 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38044 * modules/mbspbrk-tests: New file.
38045 * tests/test-mbspbrk.sh: New file.
38046 * tests/test-mbspbrk.c: New file.
38048 2007-02-11 Bruno Haible <bruno@clisp.org>
38050 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38053 * modules/mbscspn-tests: New file.
38054 * tests/test-mbscspn.sh: New file.
38055 * tests/test-mbscspn.c: New file.
38057 2007-02-11 Bruno Haible <bruno@clisp.org>
38059 * modules/mbscasecmp-tests: New file.
38060 * tests/test-mbscasecmp.sh: New file.
38061 * tests/test-mbscasecmp.c: New file.
38063 2007-02-11 Bruno Haible <bruno@clisp.org>
38065 Ensure O(n) worst-case complexity of mbscasestr.
38066 * lib/mbscasestr.c: Include stdbool.h.
38067 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38069 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38070 the bookkeeping indicates that it's worth it.
38071 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38073 * modules/mbscasestr-tests: New file.
38074 * tests/test-mbscasestr1.c: New file.
38075 * tests/test-mbscasestr2.sh: New file.
38076 * tests/test-mbscasestr2.c: New file.
38077 * tests/test-mbscasestr3.sh: New file.
38078 * tests/test-mbscasestr3.c: New file.
38079 * tests/test-mbscasestr4.sh: New file.
38080 * tests/test-mbscasestr4.c: New file.
38081 * m4/locale-tr.m4: New file.
38083 2007-02-11 Bruno Haible <bruno@clisp.org>
38085 Ensure O(n) worst-case complexity of mbsstr.
38086 * lib/mbsstr.c: Include stdbool.h.
38087 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38089 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38090 bookkeeping indicates that it's worth it.
38091 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38093 * modules/mbsstr-tests: New file.
38094 * tests/test-mbsstr1.c: New file.
38095 * tests/test-mbsstr2.sh: New file.
38096 * tests/test-mbsstr2.c: New file.
38097 * tests/test-mbsstr3.sh: New file.
38098 * tests/test-mbsstr3.c: New file.
38099 * m4/locale-fr.m4: New file.
38101 2007-02-11 Bruno Haible <bruno@clisp.org>
38103 * lib/mbsrchr.c (mbsrchr): Fix bug.
38105 * modules/mbsrchr-tests: New file.
38106 * tests/test-mbsrchr.sh: New file.
38107 * tests/test-mbsrchr.c: New file.
38109 2007-02-11 Bruno Haible <bruno@clisp.org>
38111 * lib/mbschr.c (mbschr): Fix bug.
38113 * modules/mbschr-tests: New file.
38114 * tests/test-mbschr.sh: New file.
38115 * tests/test-mbschr.c: New file.
38116 * m4/locale-zh.m4: New file.
38118 2007-02-11 Bruno Haible <bruno@clisp.org>
38120 Support for copying multibyte string iterators.
38121 * lib/mbiter.h: Include <string.h>.
38122 (mbiter_multi_copy): New function.
38123 (mbi_copy): New macro.
38124 * lib/mbuiter.h: Include <string.h>.
38125 (mbuiter_multi_copy): New function.
38126 (mbui_copy): New macro.
38128 2007-02-11 Bruno Haible <bruno@clisp.org>
38131 * modules/mbslen: New file.
38132 * lib/mbslen.c: New file.
38133 * lib/string_.h (mbslen): New declaration.
38134 * m4/mbslen.m4: New file.
38135 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38137 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38138 * MODULES.html.sh (Internationalization functions): Add mbslen.
38140 2007-02-11 Bruno Haible <bruno@clisp.org>
38142 Ensure O(n) worst-case complexity of strcasestr substitute.
38143 * lib/strcasestr.c: Include stdbool.h.
38144 (knuth_morris_pratt): New function.
38145 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38146 bookkeeping indicates that it's worth it.
38147 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38149 * modules/strcasestr-tests: New file.
38150 * tests/test-strcasestr.c: New file.
38152 2007-02-11 Bruno Haible <bruno@clisp.org>
38154 Ensure O(n) worst-case complexity of c_strcasestr.
38155 * lib/c-strcasestr.c: Include stdbool.h, string.h.
38156 (knuth_morris_pratt): New function.
38157 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38158 the bookkeeping indicates that it's worth it.
38159 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38161 * modules/c-strcasestr-tests: New file.
38162 * tests/test-c-strcasestr.c: New file.
38164 2007-02-11 Bruno Haible <bruno@clisp.org>
38166 Ensure O(n) worst-case complexity of c_strstr.
38167 * lib/c-strstr.c: Include stdbool.h, string.h.
38168 (knuth_morris_pratt): New function.
38169 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38170 bookkeeping indicates that it's worth it.
38171 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38173 * lib/c-strstr.c: Complete rewrite for maintainability.
38175 * modules/c-strstr-tests: New file.
38176 * tests/test-c-strstr.c: New file.
38178 2007-02-11 Bruno Haible <bruno@clisp.org>
38180 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38181 5.2.1 and earlier, whereby \055 was treated just like the range
38183 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38185 2007-02-08 Bruno Haible <bruno@clisp.org>
38187 * modules/regex (Depends-on): Add stdbool.
38188 Reported by Dalibor Topic <robilad@kaffe.org>.
38190 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
38192 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38193 Prefer returning from main to exiting from it.
38194 Remove unnecessary parens after sizeof.
38196 2007-02-05 Bruno Haible <bruno@clisp.org>
38199 * modules/mbssep: New file.
38200 * lib/mbssep.c: New file.
38201 * lib/string_.h (strsep): Add a conditional link warning.
38202 (mbssep): New declaration.
38203 * m4/mbssep.m4: New file.
38204 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38206 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38207 * MODULES.html.sh (Internationalization functions): Add mbssep.
38209 2007-02-05 Bruno Haible <bruno@clisp.org>
38211 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38212 Optimize search in case of 1 delimiter.
38214 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
38216 * lib/acl.h: Include sys/types.h before sys/acl.h.
38218 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
38220 Merge upstream fix for glibc bugzilla #3957:
38222 2007-02-05 Jakub Jelinek <jakub@redhat.com>
38224 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38225 bit for RE_HAT_LISTS_NOT_NEWLINE.
38226 (build_charclass_op): Remove bogus comment.
38228 2007-02-05 Simon Josefsson <simon@josefsson.org>
38230 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38232 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
38234 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38235 * lib/memmem.c [!defined _LIBC]: Include config.h.
38237 2007-02-04 Bruno Haible <bruno@clisp.org>
38239 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38242 2007-02-04 Bruno Haible <bruno@clisp.org>
38244 New module mbstok_r.
38245 * modules/mbstok_r: New file.
38246 * lib/mbstok_r.c: New file.
38247 * lib/string_.h (strtok_r): Change argument names to match the
38248 comments. Add a conditional link warning.
38249 (mbstok_r): New declaration.
38250 * m4/mbstok_r.m4: New file.
38251 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38253 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38254 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38256 2007-02-04 Bruno Haible <bruno@clisp.org>
38259 * modules/mbsspn: New file.
38260 * lib/mbsspn.c: New file.
38261 * lib/string_.h (strspn): Add a conditional link warning.
38262 (mbsspn): New declaration.
38263 * m4/mbsspn.m4: New file.
38264 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38266 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38267 * MODULES.html.sh (Internationalization functions): Add mbsspn.
38269 2007-02-04 Bruno Haible <bruno@clisp.org>
38271 New module mbspbrk.
38272 * modules/mbspbrk: New file.
38273 * lib/mbspbrk.c: New file.
38274 * lib/string_.h (strpbrk): Add a conditional link warning.
38275 (mbspbrk): New declaration.
38276 * m4/mbspbrk.m4: New file.
38277 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38279 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38280 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38282 2007-02-04 Bruno Haible <bruno@clisp.org>
38284 New module mbscspn.
38285 * modules/mbscspn: New file.
38286 * lib/mbscspn.c: New file.
38287 * lib/string_.h (strcspn): Add a conditional link warning.
38288 (mbscspn): New declaration.
38289 * m4/mbscspn.m4: New file.
38290 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38292 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38293 * MODULES.html.sh (Internationalization functions): Add mbscspn.
38295 2007-02-04 Bruno Haible <bruno@clisp.org>
38297 New module mbscasestr, reduced goal of strcasestr.
38298 * modules/mbscasestr: New file.
38299 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38300 (mbscasestr): Renamed from strcasestr.
38301 * lib/strcasestr.c: Don't include mbuiter.h.
38302 (strcasestr): Remove support for multibyte locales.
38303 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38304 Change the conditional link warning.
38305 (mbscasestr): New declaration.
38306 * m4/mbscasestr.m4: New file.
38307 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38308 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38309 REPLACE_STRCASESTR.
38310 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38311 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38312 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38313 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38314 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38315 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38316 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38317 (Depends-on): Remove mbuiter.
38318 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38320 2007-02-04 Bruno Haible <bruno@clisp.org>
38322 Simplify handling of strncasecmp.
38323 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38324 the conditional link warning.
38325 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38326 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38327 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38328 * modules/strcase (configure.ac): Don't invoke
38329 gl_STRING_MODULE_INDICATOR.
38330 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38332 2007-02-04 Bruno Haible <bruno@clisp.org>
38334 New module mbscasecmp, reduced goal of strcasecmp.
38335 * modules/mbscasecmp: New file.
38336 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38337 (mbscasecmp): Renamed from strcasecmp.
38338 * lib/strcasecmp.c: Don't include mbuiter.h.
38339 (strcasecmp): Remove support for multibyte locales.
38340 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38341 Change the conditional link warning.
38342 (mbscasecmp): New declaration.
38343 * m4/mbscasecmp.m4: New file.
38344 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38345 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38346 REPLACE_STRCASECMP.
38347 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38348 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38350 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38351 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38352 * modules/strcase (Files): Remove m4/mbrtowc.m4.
38353 (Depends-on): Remove mbuiter.
38354 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38356 2007-02-04 Bruno Haible <bruno@clisp.org>
38358 New module mbsstr. Remove module strstr.
38359 * modules/mbsstr: New file.
38360 * modules/strstr: Remove file.
38361 * lib/mbsstr.c: Renamed from lib/strstr.c.
38362 (mbsstr): Renamed from strstr.
38363 * lib/string_.h (strstr): Remove declaration. Change the conditional
38365 (mbsstr): New declaration.
38366 * m4/mbsstr.m4: New file.
38367 * m4/strstr.m4: Remove file.
38368 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38370 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38371 Don't initialize GNULIB_STRSTR.
38372 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38373 substitute GNULIB_STRSTR and REPLACE_STRSTR.
38374 * MODULES.html.sh (Internationalization functions): Add mbsstr.
38375 (Support for systems lacking ANSI C 89): Remove strstr.
38377 2007-02-04 Bruno Haible <bruno@clisp.org>
38379 New module mbsrchr.
38380 * modules/mbsrchr: New file.
38381 * lib/mbsrchr.c: New file.
38382 * lib/string_.h (strrchr): Add a conditional link warning.
38383 (mbsrchr): New declaration.
38384 * m4/mbsrchr.m4: New file.
38385 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38387 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38388 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38390 2007-02-04 Bruno Haible <bruno@clisp.org>
38393 * modules/mbschr: New file.
38394 * lib/mbschr.c: New file.
38395 * lib/string_.h (strchr): Add a conditional link warning.
38396 (mbschr): New declaration.
38397 * m4/mbschr.m4: New file.
38398 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38400 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38401 * MODULES.html.sh (Internationalization functions): Add mbschr.
38403 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
38405 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38407 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38409 2007-02-04 Bruno Haible <bruno@clisp.org>
38411 New module description section 'configure.ac-early'.
38412 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38413 (func_get_autoconf_early_snippet): New function.
38414 (func_import, func_create_testdir): Use it. Remove special cases for
38415 modules 'extensions' and 'lock'.
38416 * modules/extensions (configure.ac-early): Require
38417 gl_USE_SYSTEM_EXTENSIONS.
38418 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38420 2007-02-04 Bruno Haible <bruno@clisp.org>
38422 Make use of gcj-4.3's -fsource and -ftarget option.
38423 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38424 and if so try the options -fsource and -ftarget.
38425 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38426 source_version, ftarget_option, target_version arguments.
38427 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38428 (is_envjavac_oldgcj_14_14_usable): Renamed from
38429 is_envjavac_gcj_14_14_usable.
38430 (is_envjavac_oldgcj_14_13_usable): Renamed from
38431 is_envjavac_gcj_14_13_usable.
38432 (is_gcj_present): Update.
38433 (is_gcj_43, is_gcj43_usable): New functions.
38434 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38435 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38436 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38437 try the options -fsource and -ftarget.
38439 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
38441 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38442 checking code. Set N = ceil (1.5 * N) rather than to a slightly
38445 2007-02-03 Jim Meyering <jim@meyering.net>
38447 Give tools a better chance to allocate space for very large buffers.
38448 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38450 Make pwd and readlink work also when run with an unreadable parent dir
38451 on systems with openat support.
38452 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38453 provided getcwd function, even when we have openat support.
38454 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38456 2007-02-02 Bruno Haible <bruno@clisp.org>
38458 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38459 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38460 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38461 portability problems if one of these functions is only used on specific
38463 Reported by Paul Eggert.
38465 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
38467 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38468 is causing more trouble than it's curing.
38469 * lib/regex_internal.h (__mempcpy): Remove.
38470 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38471 (and make the code a tad smaller to boot).
38472 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38474 2007-02-02 Jim Meyering <jim@meyering.net>
38476 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38477 section, not in the Makefile.am: one.
38479 2007-02-02 Eric Blake <ebb9@byu.net>
38481 * lib/strchrnul.c: Always include config.h first.
38483 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38484 gnulib strstr is not necessary here.
38486 2007-02-02 Simon Josefsson <simon@josefsson.org>
38488 * m4/socklen.m4: Fix typo.
38490 2007-02-02 Eric Blake <ebb9@byu.net>
38492 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38493 * modules/netinet_in (Makefile.am): Likewise.
38495 2007-02-01 Bruno Haible <bruno@clisp.org>
38497 * lib/string_.h (GL_LINK_WARNING): New macro.
38498 (strcasecmp, strstr, strcasestr): If provided by the system,
38499 conditionally define as a macro that leads to a warning instead of to
38501 (strncasecmp): Conditionally define as a macro that leads to a warning.
38503 2007-02-01 Karl Berry <karl@gnu.org>
38505 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38507 2007-02-01 Bruno Haible <bruno@clisp.org>
38509 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38512 2007-02-01 Eric Blake <ebb9@byu.net>
38514 * modules/regex (Depends-on): Revert dependence on mempcpy.
38515 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38516 module's definition of mempcpy.
38517 Reported by Paul Eggert.
38519 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
38521 * lib/string_.h: If the gnulib module XYZ is not present, undefine
38522 the symbol XYZ before redefining it. This fixes a problem with
38523 programs that don't use XYZ, when compiled on systems that define
38524 XYZ to something else.
38526 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
38528 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38529 occurs when "mkdir -m foo" creates a setgid directory that is (1)
38530 writeable to group or other and (2) is intended to have a special
38531 mode bit that is set or cleared. In such a case, the directory
38532 should be neither group- nor other-writeable until the special
38533 mode bits are right.
38535 2007-01-31 Eric Blake <ebb9@byu.net>
38537 * modules/mountlist (Depends-on): Add strstr.
38539 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38541 * modules/string (Makefile.am): Remove redundant replacement.
38542 * modules/regex (Depends-on): Add mempcpy.
38544 2007-01-31 Bruno Haible <bruno@clisp.org>
38546 New module description field 'Link'.
38547 * gnulib-tool (func_usage): Document --extract-link-directive.
38548 (sed_extract_prog): Recognize 'Link' directive.
38549 (func_get_link_directive): New function.
38550 (func_import): Show summary of link directives.
38551 Handle --extract-link-directive option.
38552 * modules/acl (Link): New section.
38553 * modules/clock-time (Link): New section.
38554 * modules/euidaccess (Link): New section.
38555 * modules/gettext (Link): New section.
38556 * modules/iconv (Link): New section.
38557 * modules/lock (Link): New section.
38558 * modules/nanosleep (Link): New section.
38559 * modules/readline (Link): New section.
38561 2007-01-27 Bruno Haible <bruno@clisp.org>
38563 Enforce the use of gnulib modules for unportable <string.h> functions.
38564 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38565 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38566 (gl_HEADER_STRING_H_BODY): Require it.
38567 * lib/string_.h: If the gnulib module XYZ is not present, redefine
38568 the symbol XYZ to one that gives a link error.
38569 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38570 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38571 * modules/mempcpy (configure.ac): Likewise.
38572 * modules/memrchr (configure.ac): Likewise.
38573 * modules/stpcpy (configure.ac): Likewise.
38574 * modules/stpncpy (configure.ac): Likewise.
38575 * modules/strcase (configure.ac): Likewise.
38576 * modules/strcasestr (configure.ac): Likewise.
38577 * modules/strchrnul (configure.ac): Likewise.
38578 * modules/strdup (configure.ac): Likewise.
38579 * modules/strndup (configure.ac): Likewise.
38580 * modules/strnlen (configure.ac): Likewise.
38581 * modules/strpbrk (configure.ac): Likewise.
38582 * modules/strsep (configure.ac): Likewise.
38583 * modules/strstr (configure.ac): Likewise.
38584 * modules/strtok_r (configure.ac): Likewise.
38586 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
38588 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38590 2007-01-30 Jim Meyering <jim@meyering.net>
38592 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38594 2007-01-29 Bruno Haible <bruno@clisp.org>
38596 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38597 * lib/execute.c: Likewise.
38598 * lib/pipe.c: Likewise.
38599 * lib/printf-args.h: Likewise.
38600 * lib/printf-args.c: Likewise.
38601 * lib/printf-parse.c: Likewise.
38602 * lib/vasnprintf.c: Likewise.
38604 2007-01-29 Eric Blake <ebb9@byu.net>
38606 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38609 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
38611 * lib/strptime.h (strptime): Use 'restrict' for args where
38612 POSIX requires this.
38613 * lib/strptime.c (strptime): Likewise.
38614 Change license notice from LGPL to GPL, since gnulib-tool will
38615 change this as needed.
38616 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38618 Include "strptime.h" first, to check interface.
38619 Do not #undef _LIBC and _NL_CURRENT.
38620 Do not include <stdlib.h>; no longer needed.
38621 Include "time_r.h" and declare ptime_locale_status
38622 only if _LIBC is not defined.
38623 (__P): Remove unused macro.
38624 (match_string): Bring back glibc version, but use it only if _LIBC
38626 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38627 Remove unnecessary assertion and abort() call.
38628 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38629 * m4/strptime.m4: Fix serial number comment.
38630 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38631 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38632 (Depends-on): Add time_r.
38634 2007-01-29 Bruno Haible <bruno@clisp.org>
38636 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38638 * modules/strptime (Depends-on): Add stdbool.
38639 * lib/strptime.h: Include <time.h> always. Add comments.
38641 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
38643 * modules/strptime: New file.
38644 * lib/strptime.h: New file.
38645 * lib/strptime.c: New file.
38646 * m4/strptime.m4: New file.
38648 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
38650 * MODULES.html.sh: New module mpsort.
38651 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38653 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38654 a circularity problem with HP-UX ia64 reported by Bob Proulx in
38655 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38657 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38659 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38661 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38662 the parameter matches the prototype.
38664 2007-01-28 Jim Meyering <jim@meyering.net>
38666 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38667 sys/time.h here, reverting that part of the previous patch:
38668 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38670 2007-01-28 Bruno Haible <bruno@clisp.org>
38672 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38673 value of $(SYS_TIME_H).
38674 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38675 remove it conditionally, too. [added by Jim Meyering]
38676 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38677 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38678 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38679 GETTIMEOFDAY_REPLACEMENT to 1.
38681 2007-01-28 Bruno Haible <bruno@clisp.org>
38683 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38684 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38685 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38686 Set UNISTD_H instead of UNISTD_H2.
38687 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38689 2007-01-28 Bruno Haible <bruno@clisp.org>
38691 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38692 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38694 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38696 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38697 (func_create_testdir): Ensure C locale for `grep' and `tr'
38699 (func_create_megatestdir): Avoid one `grep'. Fix bug in
38700 ACLOCAL_AMFLAGS parsing state machine.
38702 2007-01-27 Bruno Haible <bruno@clisp.org>
38704 * modules/unistr/base: Update.
38706 2007-01-27 Bruno Haible <bruno@clisp.org>
38708 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38709 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38710 * modules/unistr/u32-mbtouc-unsafe: Renamed from
38711 modules/unistr/u32-mbtouc.
38712 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38713 * lib/unistr.h: Update.
38714 * lib/linebreak.c: Update.
38715 * modules/unistr/u32-mbtouc: Renamed from
38716 modules/unistr/u32-mbtouc-safe.
38717 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38718 * lib/unistr.h: Update.
38719 * lib/unistr/u32-to-u8.c: Update.
38720 * lib/unistr/u32-to-u16.c: Update.
38722 2007-01-27 Bruno Haible <bruno@clisp.org>
38724 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38725 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38726 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38727 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38728 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38729 * modules/unistr/u16-mbtouc-unsafe: Renamed from
38730 modules/unistr/u16-mbtouc.
38731 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38732 * lib/unistr.h: Update.
38733 * lib/linebreak.c: Update.
38734 * modules/linebreak: Update.
38735 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38736 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38737 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38738 * modules/unistr/u16-mbtouc: Renamed from
38739 modules/unistr/u16-mbtouc-safe.
38740 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38741 * lib/unistr.h: Update.
38742 * lib/unistr/u16-to-u8.c: Update.
38743 * modules/unistr/u16-to-u8: Update.
38744 * lib/unistr/u16-to-u32.c: Update.
38745 * modules/unistr/u16-to-u32: Update.
38747 2007-01-27 Bruno Haible <bruno@clisp.org>
38749 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38750 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38751 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38752 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38753 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38754 * modules/unistr/u8-mbtouc-unsafe: Renamed from
38755 modules/unistr/u8-mbtouc.
38756 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38757 * lib/unistr.h: Update.
38758 * lib/striconveh.c: Update.
38759 * modules/striconveh: Update.
38760 * lib/linebreak.c: Update.
38761 * modules/linebreak: Update.
38762 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38763 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38764 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38765 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38766 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38767 * lib/unistr.h: Update.
38768 * lib/striconveh.c: Update.
38769 * modules/striconveh: Update.
38770 * lib/unistr/u8-to-u16.c: Update.
38771 * modules/unistr/u8-to-u16: Update.
38772 * lib/unistr/u8-to-u32.c: Update.
38773 * modules/unistr/u8-to-u32: Update.
38775 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38778 * lib/argz.c: Do not include strings.h nor memory.h, include
38779 string.h unconditionally. Patch by Simon Josefsson.
38781 2007-01-27 Bruno Haible <bruno@clisp.org>
38783 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38784 from gl_HEADER_STRING_H_BODY.
38785 (gl_HEADER_STRING_H_BODY): Require it.
38786 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38787 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38788 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38789 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38790 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38791 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38792 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38793 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38794 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38795 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38796 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38797 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38798 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38799 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38800 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38802 2007-01-27 Bruno Haible <bruno@clisp.org>
38804 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38805 check_PROGRAMS into noinst_PROGRAMS.
38806 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38807 check_PROGRAMS in this case.
38808 (func_import): Set for_test to false.
38809 (func_create_testdir): Set for_test to true.
38811 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38812 Bruno Haible <bruno@clisp.org>
38814 * modules/strcasestr (Files): Remove lib/strcasestr.h.
38815 (Depends-on): Add string.
38816 (Includes): Use <string.h> instead of strcasestr.h.
38817 * modules/string (Makefile.am): Also substitute the value of
38818 REPLACE_STRCASESTR.
38819 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38820 assume strcasestr is declared in <string.h> not <strings.h>. Also
38821 set REPLACE_STRCASESTR.
38822 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38823 REPLACE_STRCASESTR.
38824 * lib/strcasestr.h: Remove file.
38825 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38826 * lib/string_.h (strcasestr): New declaration.
38828 2007-01-27 Bruno Haible <bruno@clisp.org>
38830 * lib/string_.h: Use 'extern'.
38832 2007-01-27 Jim Meyering <jim@meyering.net>
38834 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38835 of set-but-not-used local, "q".
38837 * lib/mempcpy.c: Include <config.h> before <string.h>.
38838 This fixes a compilation error on HP-UX, due to the system's
38839 "restrict"-using mempcpy prototype.
38841 2007-01-26 Bruno Haible <bruno@clisp.org>
38843 Small optimization.
38844 * lib/javacomp.c: Include c-strstr.h.
38845 (is_envjavac_gcj): Use c_strstr instead of strstr.
38846 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38848 2007-01-26 Bruno Haible <bruno@clisp.org>
38850 * MODULES.html.sh (Unicode string functions): Add the new modules.
38852 * modules/uniconv/u32-strconv-to-locale: New file.
38853 * lib/uniconv/u32-strconv-to-locale.c: New file.
38855 * modules/uniconv/u16-strconv-to-locale: New file.
38856 * lib/uniconv/u16-strconv-to-locale.c: New file.
38858 * modules/uniconv/u8-strconv-to-locale: New file.
38859 * lib/uniconv/u8-strconv-to-locale.c: New file.
38861 * modules/uniconv/u32-strconv-from-locale: New file.
38862 * lib/uniconv/u32-strconv-from-locale.c: New file.
38864 * modules/uniconv/u16-strconv-from-locale: New file.
38865 * lib/uniconv/u16-strconv-from-locale.c: New file.
38867 * modules/uniconv/u8-strconv-from-locale: New file.
38868 * lib/uniconv/u8-strconv-from-locale.c: New file.
38870 * modules/uniconv/u32-strconv-to-enc: New file.
38871 * lib/uniconv/u32-strconv-to-enc.c: New file.
38872 * modules/uniconv/u32-strconv-to-enc-tests: New file.
38873 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38875 * modules/uniconv/u16-strconv-to-enc: New file.
38876 * lib/uniconv/u16-strconv-to-enc.c: New file.
38877 * lib/uniconv/u-strconv-to-enc.h: New file.
38878 * modules/uniconv/u16-strconv-to-enc-tests: New file.
38879 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38881 * modules/uniconv/u8-strconv-to-enc: New file.
38882 * lib/uniconv/u8-strconv-to-enc.c: New file.
38883 * modules/uniconv/u8-strconv-to-enc-tests: New file.
38884 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38886 * modules/uniconv/u32-strconv-from-enc: New file.
38887 * lib/uniconv/u32-strconv-from-enc.c: New file.
38888 * modules/uniconv/u32-strconv-from-enc-tests: New file.
38889 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38891 * modules/uniconv/u16-strconv-from-enc: New file.
38892 * lib/uniconv/u16-strconv-from-enc.c: New file.
38893 * modules/uniconv/u16-strconv-from-enc-tests: New file.
38894 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38896 * modules/uniconv/u8-strconv-from-enc: New file.
38897 * lib/uniconv/u8-strconv-from-enc.c: New file.
38898 * lib/uniconv/u-strconv-from-enc.h: New file.
38899 * modules/uniconv/u8-strconv-from-enc-tests: New file.
38900 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38902 * modules/uniconv/u32-conv-from-enc: New file.
38903 * lib/uniconv/u32-conv-from-enc.c: New file.
38904 * modules/uniconv/u32-conv-from-enc-tests: New file.
38905 * tests/uniconv/test-u32-conv-from-enc.c: New file.
38907 * modules/uniconv/u16-conv-from-enc: New file.
38908 * lib/uniconv/u16-conv-from-enc.c: New file.
38909 * lib/uniconv/u-conv-from-enc.h: New file.
38910 * modules/uniconv/u16-conv-from-enc-tests: New file.
38911 * tests/uniconv/test-u16-conv-from-enc.c: New file.
38913 * modules/uniconv/u8-conv-from-enc: New file.
38914 * lib/uniconv/u8-conv-from-enc.c: New file.
38915 * modules/uniconv/u8-conv-from-enc-tests: New file.
38916 * tests/uniconv/test-u8-conv-from-enc.c: New file.
38918 * modules/uniconv/base: New file.
38919 * lib/uniconv.h: New file.
38921 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
38923 * doc/gnulib-tool.texi (Initial import): Update to match current
38924 behavior with strdup module.
38925 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38926 * lib/memmem.h: Remove; all uses removed. This is now done
38928 * lib/mempcpy.h: Likewise.
38929 * lib/memrchr.h: Likewise.
38930 * lib/stpcpy.h: Likewise.
38931 * lib/stpncpy.h: Likewise.
38932 * lib/strcase.h: Likewise.
38933 * lib/strchrnul.h: Likewise.
38934 * lib/strdup.h: Likewise.
38935 * lib/strndup.h: Likewise.
38936 * lib/strnlen.h: Likewise.
38937 * lib/strpbrk.h: Likewise.
38938 * lib/strsep.h: Likewise.
38939 * lib/strstr.h: Likewise.
38940 * lib/strtok_r.h: Likewise.
38941 * lib/string_.h: New file.
38942 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38943 Rely on <string.h> instead.
38944 * lib/canon-host.c: Likewise.
38945 * lib/chdir-long.c: Likewise.
38946 * lib/concatpath.c: Likewise.
38947 * lib/exclude.c: Likewise.
38948 * lib/fchdir.c: Likewise.
38949 * lib/getaddrinfo.c: Likewise.
38950 * lib/getcwd.c: Likewise.
38951 * lib/getsubopt.c: Likewise.
38952 * lib/glob.c: Likewise.
38953 * lib/hard-locale.c: Likewise.
38954 * lib/iconvme.c: Likewise.
38955 * lib/javacomp.c: Likewise.
38956 * lib/mempcpy.c: Likewise.
38957 * lib/memrchr.c: Likewise.
38958 * lib/regex_internal.h: Likewise.
38959 * lib/stpncpy.c: Likewise.
38960 * lib/strcasecmp.c: Likewise.
38961 * lib/strchrnul.c: Likewise.
38962 * lib/strdup.c: Likewise.
38963 * lib/striconv.c: Likewise.
38964 * lib/striconveh.c: Likewise.
38965 * lib/striconveha.c: Likewise.
38966 * lib/strncasecmp.c: Likewise.
38967 * lib/strndup.c: Likewise.
38968 * lib/strnlen.c: Likewise.
38969 * lib/strsep.c: Likewise.
38970 * lib/strstr.c: Likewise.
38971 * lib/strtok_r.c: Likewise.
38972 * lib/userspec.c: Likewise.
38973 * lib/w32spawn.h: Likewise.
38974 * lib/xstrndup.c: Likewise.
38975 * lib/mountlist.c (strstr): Remove decl.
38976 * m4/string_h.m4: New file.
38977 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38978 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38979 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38980 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38981 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38982 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38983 Set REPLACE_STRCASECMP if necessary.
38984 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38985 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38986 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38987 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38988 HAVE_DECL_STRDUP if necessary.
38989 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38990 since gl_FUNC_STRNDUP does that now.
38991 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38992 Check for decl here...
38993 (gl_PREREQ_STRNLEN): ... not here.
38994 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38995 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38996 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38997 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38999 * modules/string: New file.
39000 * modules/memmem (Files): Remove special-purpose include file.
39001 (Depends-on): Add string.
39002 (Include): Include <string.h>, not the removed file.
39003 * modules/mempcpy: Likewise.
39004 * modules/memrchr: Likewise.
39005 * modules/stpcpy: Likewise.
39006 * modules/stpncpy: Likewise.
39007 * modules/strcase: Likewise.
39008 * modules/strchrnul: Likewise.
39009 * modules/strdup: Likewise.
39010 * modules/strndup: Likewise.
39011 * modules/strnlen: Likewise.
39012 * modules/strpbrk: Likewise.
39013 * modules/strsep: Likewise.
39014 * modules/strstr: Likewise.
39015 * modules/strtok_r: Likewise.
39016 * tests/test-dirname.c: Don't include "strdup.h", since
39017 <string.h> now suffices.
39018 * tests/test-memmem.c: Don't include "memmem.h", since
39019 <string.h> now suffices.
39021 2007-01-25 Bruno Haible <bruno@clisp.org>
39023 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39026 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39027 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39028 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39029 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39031 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39032 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39033 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39034 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39035 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39036 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39038 2007-01-24 Bruno Haible <bruno@clisp.org>
39040 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39041 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39042 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39043 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39045 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39046 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39047 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39048 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39049 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39050 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39052 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39054 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39055 Reported by Ralf Wildenhues.
39057 2007-01-24 Bruno Haible <bruno@clisp.org>
39059 Drop AC_REQUIRE calls that are redundant with the module dependencies.
39060 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39062 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39063 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39064 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39066 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
39068 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39069 Don't use 'exit'; just return from 'main'.
39070 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39072 * lib/fnmatch_.h: Readjust white space and comments to match
39073 glibc, to avoid spurious diffs.
39075 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
39077 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39078 2004-12-01 change by Jakub Jelinek, since this code won't compile
39079 if !LIBC. Problem reported by Bob Proulx.
39081 2007-01-23 Bruno Haible <bruno@clisp.org>
39083 * lib/striconveh.c: Include c-strcaseeq.h.
39084 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39085 * modules/striconveh (Depends-on): Add c-strcaseeq.
39087 2007-01-23 Bruno Haible <bruno@clisp.org>
39089 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39091 * modules/c-strcaseeq: New file.
39092 * lib/c-strcaseeq.h: New file.
39094 * modules/streq: New file.
39095 * lib/streq.h: New file.
39097 2007-01-23 Bruno Haible <bruno@clisp.org>
39099 * modules/striconveha-tests: New file.
39100 * tests/test-striconveha.c: New file.
39102 * lib/striconveha.h: Include <stdbool.h>.
39103 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39104 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39105 (mem_iconveha_notranslit): Renamed from mem_iconveha.
39106 (mem_iconveha): New function.
39107 (str_iconveha_notranslit): Renamed from str_iconveha.
39108 (str_iconveha): New function.
39109 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39112 2007-01-23 Bruno Haible <bruno@clisp.org>
39114 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39115 encodings without forgiving before trying any encoding with handler.
39116 (str_iconveha): Try all encodings without forgiving before trying any
39117 encoding with handler.
39119 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
39121 Import the following changes from libc.
39123 2005-10-14 Ulrich Drepper <drepper@redhat.com>
39125 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39127 2004-12-01 Jakub Jelinek <jakub@redhat.com>
39129 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39130 normal_bracket label.
39132 2004-09-01 Jakub Jelinek <jakub@redhat.com>
39135 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39136 to normal_bracket after fetching the next character.
39138 2007-01-22 Bruno Haible <bruno@clisp.org>
39140 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39142 * lib/striconveh.c (iconv_carefully_1): New function.
39143 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39145 (str_cd_iconveh): Update.
39146 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39147 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39148 * tests/test-striconveh.c (MAGIC): New macro.
39149 (new_offsets): New function.
39150 (main): Test call with and without offsets.
39152 2007-01-22 Bruno Haible <bruno@clisp.org>
39154 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39155 * modules/sys_select (Makefile.am): Likewise.
39156 * modules/sys_socket (Makefile.am): Likewise.
39157 * modules/sys_time (Makefile.am): Likewise.
39159 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
39161 * modules/gettimeofday (License): Change from GPL to LGPL, since
39162 gettimeofday is a library function.
39164 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39166 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39168 2007-01-21 Bruno Haible <bruno@clisp.org>
39170 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39172 2007-01-21 Bruno Haible <bruno@clisp.org>
39174 * modules/striconveha: New file.
39175 * lib/striconveha.h: New file.
39176 * lib/striconveha.c: New file.
39177 * MODULES.html.sh (Internationalization functions): Add striconveha.
39178 * lib/striconv.c (str_iconv): Optimize the case of an empty input
39180 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39182 2007-01-21 Bruno Haible <bruno@clisp.org>
39184 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39185 * lib/striconveh.c (str_iconveh): Likewise.
39187 2007-01-21 Bruno Haible <bruno@clisp.org>
39189 * lib/striconveh.h (mem_iconveh): New declaration.
39190 * lib/striconveh.c (mem_iconveh): New function.
39191 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39193 2007-01-21 Bruno Haible <bruno@clisp.org>
39195 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39197 * lib/striconveh.h (mem_cd_iconveh): Change specification.
39198 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39199 original result buffer.
39200 (str_cd_iconveh): Update.
39201 * tests/test-striconveh.c (main): Update.
39203 * lib/striconv.h (mem_cd_iconv): Change specification.
39204 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39206 (str_cd_iconv): Update.
39207 * tests/test-striconv.c (main): Update.
39209 2007-01-21 Bruno Haible <bruno@clisp.org>
39211 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39213 2007-01-20 Jim Meyering <jim@meyering.net>
39215 * lib/userspec.c (parse_with_separator): If a user or group string
39216 starts with "+", skip the corresponding name-to-ID look-up, since
39217 such a look-up must fail: user and group names may not include "+".
39219 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
39221 * lib/poll.c: Include sys/time.h and time.h unconditionally,
39222 since we now assume the sys_time module.
39223 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39224 check for sys/time.h; no longer needed.
39225 * modules/poll (Depends-on): Depend on sys_time.
39227 2007-01-18 Bruno Haible <bruno@clisp.org>
39229 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39230 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39232 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39235 * tests/test-gettimeofday.c: Include <time.h>.
39236 (dummy): Remove variable.
39238 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39239 gl_HEADER_SYS_TIME_H.
39240 (gl_HEADER_SYS_TIME_H): New macro.
39242 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39243 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39244 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39245 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39246 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39247 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39248 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39249 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39250 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39251 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39252 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39254 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39255 last change; it caused a compilation error when cross-compiling to
39258 2007-01-18 Jim Meyering <jim@meyering.net>
39260 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39261 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39262 than the race-prone "test -d sys || mkdir sys".
39263 (configure.ac): Use AC_PROG_MKDIR_P.
39264 * modules/sys_select: Likewise.
39265 * modules/sys_socket: Likewise.
39266 * modules/sys_time: Likewise.
39268 2007-01-18 Eric Blake <ebb9@byu.net>
39270 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39271 replace gettimeofday.
39272 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39273 name, to avoid infinite recursion.
39275 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
39277 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39279 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39280 assume timespec.h defines struct timeval.
39281 * lib/settime.c: Likewise.
39282 * lib/utimens.c: Likewise.
39283 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39284 since we now assume the gettimeofday module.
39285 * lib/tempname.c (__gen_tempname): Likewise.
39286 * lib/gettimeofday.h: Remove.
39287 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39288 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39289 Include <time.h>, for 'time()'.
39290 (localtime_buffer_addr): Also use this workaround if
39291 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
39292 to simplify the uses. All uses changed.
39293 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39294 that #undef is inside {}, and 'const' follows type name consistently.
39295 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39296 (gettimeofday): Do not use the maximum possible value for
39297 tv->tv_usec, since that might break usages other than ls.c.
39298 Instead, we'll leave ls.c alone. This undoes today's patch
39299 by Bruno. Add a compile-time warning for 1s-clock resolution;
39300 we've never observed the problem but might as well keep the
39302 * lib/nanosleep.c: Include timespec.h first, for interface check.
39303 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39304 now assume the sys_time module.
39305 * lib/tempname.c: Likewise.
39306 * lib/timespec.h: Likewise.
39307 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39309 * lib/strftime.c: Likewise.
39310 * lib/timespec.h: Likewise.
39311 * lib/posixtm.c: Include posixtm.h first, for interface check.
39312 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39313 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39314 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39315 * lib/sys_time_.h: New file.
39316 * lib/timespec.h (struct timespec): Use long int, not long.
39317 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39318 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39319 Remove obsolescent call to AC_HEADER_TIME.
39320 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39321 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39322 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39323 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39325 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39326 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39327 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39328 into the sys_time module. Check for gettimeofday just once.
39329 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
39330 for gettimeofday signature to just check the signature. Merely
39331 compile it, since linking doesn't test signature. Improve test for
39332 whether gettimeofday.o is actually needed.
39333 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39334 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
39335 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
39336 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39337 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39338 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39339 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39340 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39341 than worrying about sys/time.h.
39342 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39343 Don't bother worrying about TIME_WITH_SYS_TIME.
39344 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39345 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39346 * m4/sys_time_h.m4: New file.
39347 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39348 Don't include sys/time.h. Return from main rather than exiting.
39349 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39351 * modules/gethrxtime (Depends-on): Add sys_time.
39352 * modules/gettime (Depends-on): Likewise.
39353 * modules/gettimeofday (Depends-on): Likewise.
39354 * modules/nanosleep (Depends-on): Likewise.
39355 * modules/settime (Depends-on): Likewise.
39356 * modules/tempname (Depends-on): Likewise.
39357 * modules/utimens (Depends-on): Likewise.
39358 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39359 (Include:) Change back to <sys/time.h>.
39360 (Maintainer:) Add self.
39361 * modules/sys_time: New file.
39362 * modules/tempname (Depends-on): Add gettimeofday.
39363 * tests/test-gettimeofday.c: Include <sys/time.h>
39364 rather than gettimeofday.h.
39366 2007-01-17 Bruno Haible <bruno@clisp.org>
39368 * gnulib-tool (func_get_license): Revert last patch. Instead, let
39369 the license default to GPL.
39370 (func_create_testdir): Don't complain if a module is LGPL and its
39371 tests module depends on GPLed modules.
39373 2007-01-17 Bruno Haible <bruno@clisp.org>
39375 * lib/gettimeofday.c (gettimeofday): Add code for the case
39376 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39377 maximum possible value for tv->tv_usec, rather than the minimum one.
39379 2005-10-08 Martin Lambers <marlam@marlam.de>
39380 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
39381 2007-01-16 Bruno Haible <bruno@clisp.org>
39383 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39384 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39385 gl_FUNC_GETTIMEOFDAY.
39386 (Include): Add gettimeofday.h.
39387 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39388 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39389 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39390 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39391 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39392 * lib/gettimeofday.h: New file.
39393 * lib/gettimeofday.c: Include <sys/timeb.h>.
39394 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39395 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39396 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39397 fall back on time().
39399 * tests/test-gettimeofday.c: New file.
39400 * modules/gettimeofday-tests: New file.
39402 2007-01-16 Eric Blake <ebb9@byu.net>
39404 * modules/fnmatch (Depends-on): Depend on wchar.
39405 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39406 * m4/fnmatch.m4: Likewise.
39407 * modules/mbchar (Makefile.am): Assume <wchar.h>.
39408 * m4/mbchar.m4: Likewise.
39409 * modules/mbswidth (Depends-on): Depend on wchar.
39410 * lib/mbswidth.c: Assume <wchar.h>.
39411 * m4/mbswidth.m4: Likewise.
39412 * modules/quotearg (Depends-on): Depend on wchar.
39413 * lib/quotearg.c: Assume <wchar.h>.
39414 * m4/quotearg.m4: Likewise.
39415 * modules/regex (Depends-on): Depend on wchar.
39416 * lib/regex_internal.h: Assume <wchar.h>.
39417 * m4/regex.m4: Likewise.
39418 * modules/stdint (Depends-on): Depend on wchar.
39419 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39420 * m4/stdint.m4: Likewise.
39421 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39422 * modules/strftime (Depends-on): Depend on wchar.
39423 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39424 * modules/strtol (Depends-on): Depend on wchar.
39425 * lib/strtol.c: Assume <wchar.h>.
39426 * modules/wcwidth (Depends-on): Depend on wchar.
39427 * lib/wcwidth.h: Assume <wchar.h>.
39428 * m4/wcwidth.m4: Likewise.
39430 2007-01-16 Bruno Haible <bruno@clisp.org>
39432 * modules/csharpexec-script: New, created from...
39433 * modules/csharpexec: ... this.
39435 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
39437 * modules/javaexec-script: New, created from...
39438 * modules/javaexec: ... this.
39440 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39442 * modules/poll (Dependencies): Add sys_select.
39444 2007-01-15 Jim Meyering <jim@meyering.net>
39446 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39447 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39448 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
39449 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39451 2007-01-15 Bruno Haible <bruno@clisp.org>
39453 * modules/striconveh: New file.
39454 * lib/striconveh.h: New file.
39455 * lib/striconveh.c: New file.
39456 * MODULES.html.sh (Internationalization functions): Add striconveh.
39458 * modules/striconveh-tests: New file.
39459 * tests/test-striconveh.c: New file.
39461 2007-01-15 Bruno Haible <bruno@clisp.org>
39463 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39464 not from GNU libiconv or GNU libc.
39466 2007-01-15 Bruno Haible <bruno@clisp.org>
39468 * doc/gnulib-intro.texi (Copyright): Explain the different license
39469 terms for module descriptions, autoconf macros, tests, documentation.
39471 2007-01-14 Bruno Haible <bruno@clisp.org>
39473 * modules/striconv-tests: New file.
39474 * tests/test-striconv.c: New file.
39476 2007-01-14 Bruno Haible <bruno@clisp.org>
39478 * modules/iconv-tests: New file.
39479 * tests/test-iconv.c: New file.
39481 2007-01-14 Bruno Haible <bruno@clisp.org>
39483 * gnulib-tool (func_get_license): For test modules, use the license of
39486 2007-01-14 Bruno Haible <bruno@clisp.org>
39488 * modules/iconv (Include): Clarify that <iconv.h> can only be included
39489 if iconv is found to exist.
39491 2007-01-14 Bruno Haible <bruno@clisp.org>
39493 * modules/c-ctype-tests: New file.
39494 * tests/test-c-ctype.c: New file.
39496 2007-01-14 Bruno Haible <bruno@clisp.org>
39498 * modules/binary-io-tests: New file.
39499 * tests/test-binary-io.sh: New file.
39500 * tests/test-binary-io.c: New file.
39502 2007-01-14 Bruno Haible <bruno@clisp.org>
39504 * modules/array-oset-tests: New file.
39505 * tests/test-array_oset.c: New file.
39507 2007-01-14 Bruno Haible <bruno@clisp.org>
39509 * modules/array-list-tests: New file.
39510 * tests/test-array_list.c: New file.
39512 2007-01-14 Bruno Haible <bruno@clisp.org>
39514 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39516 Reported by Simon Josefsson in
39517 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39519 2007-01-14 Bruno Haible <bruno@clisp.org>
39521 * modules/allocsa-tests: New file.
39522 * tests/test-allocsa.c: New file.
39524 2007-01-14 Bruno Haible <bruno@clisp.org>
39526 * modules/fchdir (Depends-on): Add absolute-header.
39527 * modules/unistd (Depends-on): Likewise.
39529 2006-12-30 Bruno Haible <bruno@clisp.org>
39531 * modules/fchdir: New file.
39532 * modules/unistd (Files): Add lib/unistd_.h.
39533 (Makefile.am): Generate unistd.h from unistd_.h.
39534 * lib/fchdir.c: New file.
39535 * lib/dirent_.h: New file.
39536 * lib/unistd_.h: New file.
39537 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39538 * m4/fchdir.m4: New file.
39539 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39540 (gl_HEADER_UNISTD): Invoke it.
39541 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39543 * lib/backupfile.c (opendir, closedir): Undefine.
39544 * lib/chown.c (open, close): Undefine.
39545 * lib/clean-temp.c (open, close): Undefine.
39546 * lib/copy-file.c (open, close): Undefine.
39547 * lib/execute.c (open, close): Undefine.
39548 * lib/fsusage.c (open, close): Undefine.
39549 * lib/gc-gnulib.c (open, close): Undefine.
39550 * lib/getcwd.c (opendir, closedir): Undefine.
39551 * lib/glob.c (opendir, closedir): Undefine.
39552 * lib/javacomp.c (open, close): Undefine.
39553 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39554 * lib/openat-proc.c (open, close): Undefine.
39555 * lib/pagealign_alloc.c (open, close): Undefine.
39556 * lib/pipe.c (open, close): Undefine.
39557 * lib/progreloc.c (open, close): Undefine.
39558 * lib/savedir.c (opendir, closedir): Undefine.
39559 * lib/utime.c (open, close): Undefine.
39560 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39562 2007-01-10 Bruno Haible <bruno@clisp.org>
39564 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39566 2007-01-12 Eric Blake <ebb9@byu.net>
39568 Provide a robust <wchar.h>. Further simplifications are now
39569 possible in other modules, but not included here.
39570 * modules/wchar: New module.
39571 * m4/wchar.m4: New file.
39572 * lib/wchar_.h: Likewise.
39573 * modules/mbchar (Depends-on): Depend on wchar, as the first use
39575 * MODULES.html.sh (Extended multibyte and wide character utilities):
39578 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
39580 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39581 to a reasonable default for memory allocation.
39582 (xreadlink): Don't allocate a huge buffer, to work around a buggy
39583 file system that reports garbage st_size values for symlinks.
39584 Problem reported by Liyang Hu.
39586 2007-01-11 Simon Josefsson <simon@josefsson.org>
39588 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39589 Emacs .#* auto-save files).
39591 2007-01-11 Bruno Haible <bruno@clisp.org>
39593 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39596 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
39598 Use @...@ consistently in lib/wctype_.h.
39599 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39600 on it being set to 1 or 0.
39601 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39602 go back to AC_SUBSTing it.
39603 * modules/wctype (Makefile.am): Undo previous change.
39605 2007-01-10 Eric Blake <ebb9@byu.net>
39607 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39608 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39609 * modules/wctype (Makefile.am): Likewise.
39610 Reported by Chris McGuire.
39612 2007-01-10 Jim Meyering <jim@meyering.net>
39614 fts.c: a small readability/maintainability improvement
39615 * lib/fts.c (fts_read): Make this code slightly more readable and
39616 maintainable by hoisting the "sp->fts_cur = p" assignments to
39617 immediately follow the statements that set P. Derived from
39618 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39620 2007-01-10 Eric Blake <ebb9@byu.net>
39622 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39623 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39624 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39625 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39626 Reported by Chris McGuire.
39628 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39630 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39633 2007-01-09 Bruno Haible <bruno@clisp.org>
39635 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39636 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39638 (func_module): Use them.
39640 2007-01-09 Bruno Haible <bruno@clisp.org>
39642 * modules/unistr/base: New file.
39643 * lib/unistr.h: New file.
39645 * modules/unistr/u8-to-u16: New file.
39646 * lib/unistr/u8-to-u16.c: New file.
39648 * modules/unistr/u8-to-u32: New file.
39649 * lib/unistr/u8-to-u32.c: New file.
39651 * modules/unistr/u16-to-u8: New file.
39652 * lib/unistr/u16-to-u8.c: New file.
39654 * modules/unistr/u16-to-u32: New file.
39655 * lib/unistr/u16-to-u32.c: New file.
39657 * modules/unistr/u32-to-u8: New file.
39658 * lib/unistr/u32-to-u8.c: New file.
39660 * modules/unistr/u32-to-u16: New file.
39661 * lib/unistr/u32-to-u16.c: New file.
39663 * modules/unistr/u8-check: New file.
39664 * modules/unistr/u16-check: New file.
39665 * modules/unistr/u32-check: New file.
39666 * lib/unistr/u8-check.c: New file.
39667 * lib/unistr/u16-check.c: New file.
39668 * lib/unistr/u32-check.c: New file.
39670 * modules/unistr/u8-chr: New file.
39671 * modules/unistr/u16-chr: New file.
39672 * modules/unistr/u32-chr: New file.
39673 * lib/unistr/u8-chr.c: New file.
39674 * lib/unistr/u16-chr.c: New file.
39675 * lib/unistr/u32-chr.c: New file.
39677 * modules/unistr/u8-cmp: New file.
39678 * modules/unistr/u16-cmp: New file.
39679 * modules/unistr/u32-cmp: New file.
39680 * lib/unistr/u8-cmp.c: New file.
39681 * lib/unistr/u16-cmp.c: New file.
39682 * lib/unistr/u32-cmp.c: New file.
39684 * modules/unistr/u8-cpy: New file.
39685 * modules/unistr/u16-cpy: New file.
39686 * modules/unistr/u32-cpy: New file.
39687 * lib/unistr/u8-cpy.c: New file.
39688 * lib/unistr/u16-cpy.c: New file.
39689 * lib/unistr/u32-cpy.c: New file.
39690 * lib/unistr/u-cpy.h: New file.
39692 * modules/unistr/u8-cpy-alloc: New file.
39693 * modules/unistr/u16-cpy-alloc: New file.
39694 * modules/unistr/u32-cpy-alloc: New file.
39695 * lib/unistr/u8-cpy-alloc.c: New file.
39696 * lib/unistr/u16-cpy-alloc.c: New file.
39697 * lib/unistr/u32-cpy-alloc.c: New file.
39698 * lib/unistr/u-cpy-alloc.h: New file.
39700 * modules/unistr/u8-endswith: New file.
39701 * modules/unistr/u16-endswith: New file.
39702 * modules/unistr/u32-endswith: New file.
39703 * lib/unistr/u8-endswith.c: New file.
39704 * lib/unistr/u16-endswith.c: New file.
39705 * lib/unistr/u32-endswith.c: New file.
39706 * lib/unistr/u-endswith.h: New file.
39708 * modules/unistr/u8-mblen: New file.
39709 * modules/unistr/u16-mblen: New file.
39710 * modules/unistr/u32-mblen: New file.
39711 * lib/unistr/u8-mblen.c: New file.
39712 * lib/unistr/u16-mblen.c: New file.
39713 * lib/unistr/u32-mblen.c: New file.
39715 * modules/unistr/u8-mbtouc: New file.
39716 * modules/unistr/u16-mbtouc: New file.
39717 * modules/unistr/u32-mbtouc: New file.
39718 * lib/unistr/u8-mbtouc.c: New file.
39719 * lib/unistr/u16-mbtouc.c: New file.
39720 * lib/unistr/u32-mbtouc.c: New file.
39722 * modules/unistr/u8-mbtouc-safe: New file.
39723 * modules/unistr/u16-mbtouc-safe: New file.
39724 * modules/unistr/u32-mbtouc-safe: New file.
39725 * lib/unistr/u8-mbtouc-safe.c: New file.
39726 * lib/unistr/u16-mbtouc-safe.c: New file.
39727 * lib/unistr/u32-mbtouc-safe.c: New file.
39729 * modules/unistr/u8-move: New file.
39730 * modules/unistr/u16-move: New file.
39731 * modules/unistr/u32-move: New file.
39732 * lib/unistr/u8-move.c: New file.
39733 * lib/unistr/u16-move.c: New file.
39734 * lib/unistr/u32-move.c: New file.
39735 * lib/unistr/u-move.h: New file.
39737 * modules/unistr/u8-next: New file.
39738 * modules/unistr/u16-next: New file.
39739 * modules/unistr/u32-next: New file.
39740 * lib/unistr/u8-next.c: New file.
39741 * lib/unistr/u16-next.c: New file.
39742 * lib/unistr/u32-next.c: New file.
39744 * modules/unistr/u8-prev: New file.
39745 * modules/unistr/u16-prev: New file.
39746 * modules/unistr/u32-prev: New file.
39747 * lib/unistr/u8-prev.c: New file.
39748 * lib/unistr/u16-prev.c: New file.
39749 * lib/unistr/u32-prev.c: New file.
39751 * modules/unistr/u8-set: New file.
39752 * modules/unistr/u16-set: New file.
39753 * modules/unistr/u32-set: New file.
39754 * lib/unistr/u8-set.c: New file.
39755 * lib/unistr/u16-set.c: New file.
39756 * lib/unistr/u32-set.c: New file.
39757 * lib/unistr/u-set.h: New file.
39759 * modules/unistr/u8-startswith: New file.
39760 * modules/unistr/u16-startswith: New file.
39761 * modules/unistr/u32-startswith: New file.
39762 * lib/unistr/u8-startswith.c: New file.
39763 * lib/unistr/u16-startswith.c: New file.
39764 * lib/unistr/u32-startswith.c: New file.
39765 * lib/unistr/u-startswith.h: New file.
39767 * modules/unistr/u8-stpcpy: New file.
39768 * modules/unistr/u16-stpcpy: New file.
39769 * modules/unistr/u32-stpcpy: New file.
39770 * lib/unistr/u8-stpcpy.c: New file.
39771 * lib/unistr/u16-stpcpy.c: New file.
39772 * lib/unistr/u32-stpcpy.c: New file.
39773 * lib/unistr/u-stpcpy.h: New file.
39775 * modules/unistr/u8-stpncpy: New file.
39776 * modules/unistr/u16-stpncpy: New file.
39777 * modules/unistr/u32-stpncpy: New file.
39778 * lib/unistr/u8-stpncpy.c: New file.
39779 * lib/unistr/u16-stpncpy.c: New file.
39780 * lib/unistr/u32-stpncpy.c: New file.
39781 * lib/unistr/u-stpncpy.h: New file.
39783 * modules/unistr/u8-strcat: New file.
39784 * modules/unistr/u16-strcat: New file.
39785 * modules/unistr/u32-strcat: New file.
39786 * lib/unistr/u8-strcat.c: New file.
39787 * lib/unistr/u16-strcat.c: New file.
39788 * lib/unistr/u32-strcat.c: New file.
39789 * lib/unistr/u-strcat.h: New file.
39791 * modules/unistr/u8-strchr: New file.
39792 * modules/unistr/u16-strchr: New file.
39793 * modules/unistr/u32-strchr: New file.
39794 * lib/unistr/u8-strchr.c: New file.
39795 * lib/unistr/u16-strchr.c: New file.
39796 * lib/unistr/u32-strchr.c: New file.
39798 * modules/unistr/u8-strcmp: New file.
39799 * modules/unistr/u16-strcmp: New file.
39800 * modules/unistr/u32-strcmp: New file.
39801 * lib/unistr/u8-strcmp.c: New file.
39802 * lib/unistr/u16-strcmp.c: New file.
39803 * lib/unistr/u32-strcmp.c: New file.
39805 * modules/unistr/u8-strcpy: New file.
39806 * modules/unistr/u16-strcpy: New file.
39807 * modules/unistr/u32-strcpy: New file.
39808 * lib/unistr/u8-strcpy.c: New file.
39809 * lib/unistr/u16-strcpy.c: New file.
39810 * lib/unistr/u32-strcpy.c: New file.
39811 * lib/unistr/u-strcpy.h: New file.
39813 * modules/unistr/u8-strcspn: New file.
39814 * modules/unistr/u16-strcspn: New file.
39815 * modules/unistr/u32-strcspn: New file.
39816 * lib/unistr/u8-strcspn.c: New file.
39817 * lib/unistr/u16-strcspn.c: New file.
39818 * lib/unistr/u32-strcspn.c: New file.
39819 * lib/unistr/u-strcspn.h: New file.
39821 * modules/unistr/u8-strdup: New file.
39822 * modules/unistr/u16-strdup: New file.
39823 * modules/unistr/u32-strdup: New file.
39824 * lib/unistr/u8-strdup.c: New file.
39825 * lib/unistr/u16-strdup.c: New file.
39826 * lib/unistr/u32-strdup.c: New file.
39827 * lib/unistr/u-strdup.h: New file.
39829 * modules/unistr/u8-strlen: New file.
39830 * modules/unistr/u16-strlen: New file.
39831 * modules/unistr/u32-strlen: New file.
39832 * lib/unistr/u8-strlen.c: New file.
39833 * lib/unistr/u16-strlen.c: New file.
39834 * lib/unistr/u32-strlen.c: New file.
39835 * lib/unistr/u-strlen.h: New file.
39837 * modules/unistr/u8-strmblen: New file.
39838 * modules/unistr/u16-strmblen: New file.
39839 * modules/unistr/u32-strmblen: New file.
39840 * lib/unistr/u8-strmblen.c: New file.
39841 * lib/unistr/u16-strmblen.c: New file.
39842 * lib/unistr/u32-strmblen.c: New file.
39844 * modules/unistr/u8-strmbtouc: New file.
39845 * modules/unistr/u16-strmbtouc: New file.
39846 * modules/unistr/u32-strmbtouc: New file.
39847 * lib/unistr/u8-strmbtouc.c: New file.
39848 * lib/unistr/u16-strmbtouc.c: New file.
39849 * lib/unistr/u32-strmbtouc.c: New file.
39851 * modules/unistr/u8-strncat: New file.
39852 * modules/unistr/u16-strncat: New file.
39853 * modules/unistr/u32-strncat: New file.
39854 * lib/unistr/u8-strncat.c: New file.
39855 * lib/unistr/u16-strncat.c: New file.
39856 * lib/unistr/u32-strncat.c: New file.
39857 * lib/unistr/u-strncat.h: New file.
39859 * modules/unistr/u8-strncmp: New file.
39860 * modules/unistr/u16-strncmp: New file.
39861 * modules/unistr/u32-strncmp: New file.
39862 * lib/unistr/u8-strncmp.c: New file.
39863 * lib/unistr/u16-strncmp.c: New file.
39864 * lib/unistr/u32-strncmp.c: New file.
39866 * modules/unistr/u8-strncpy: New file.
39867 * modules/unistr/u16-strncpy: New file.
39868 * modules/unistr/u32-strncpy: New file.
39869 * lib/unistr/u8-strncpy.c: New file.
39870 * lib/unistr/u16-strncpy.c: New file.
39871 * lib/unistr/u32-strncpy.c: New file.
39872 * lib/unistr/u-strncpy.h: New file.
39874 * modules/unistr/u8-strnlen: New file.
39875 * modules/unistr/u16-strnlen: New file.
39876 * modules/unistr/u32-strnlen: New file.
39877 * lib/unistr/u8-strnlen.c: New file.
39878 * lib/unistr/u16-strnlen.c: New file.
39879 * lib/unistr/u32-strnlen.c: New file.
39880 * lib/unistr/u-strnlen.h: New file.
39882 * modules/unistr/u8-strpbrk: New file.
39883 * modules/unistr/u16-strpbrk: New file.
39884 * modules/unistr/u32-strpbrk: New file.
39885 * lib/unistr/u8-strpbrk.c: New file.
39886 * lib/unistr/u16-strpbrk.c: New file.
39887 * lib/unistr/u32-strpbrk.c: New file.
39888 * lib/unistr/u-strpbrk.h: New file.
39890 * modules/unistr/u8-strrchr: New file.
39891 * modules/unistr/u16-strrchr: New file.
39892 * modules/unistr/u32-strrchr: New file.
39893 * lib/unistr/u8-strrchr.c: New file.
39894 * lib/unistr/u16-strrchr.c: New file.
39895 * lib/unistr/u32-strrchr.c: New file.
39897 * modules/unistr/u8-strspn: New file.
39898 * modules/unistr/u16-strspn: New file.
39899 * modules/unistr/u32-strspn: New file.
39900 * lib/unistr/u8-strspn.c: New file.
39901 * lib/unistr/u16-strspn.c: New file.
39902 * lib/unistr/u32-strspn.c: New file.
39903 * lib/unistr/u-strspn.h: New file.
39905 * modules/unistr/u8-strstr: New file.
39906 * modules/unistr/u16-strstr: New file.
39907 * modules/unistr/u32-strstr: New file.
39908 * lib/unistr/u8-strstr.c: New file.
39909 * lib/unistr/u16-strstr.c: New file.
39910 * lib/unistr/u32-strstr.c: New file.
39911 * lib/unistr/u-strstr.h: New file.
39913 * modules/unistr/u8-strtok: New file.
39914 * modules/unistr/u16-strtok: New file.
39915 * modules/unistr/u32-strtok: New file.
39916 * lib/unistr/u8-strtok.c: New file.
39917 * lib/unistr/u16-strtok.c: New file.
39918 * lib/unistr/u32-strtok.c: New file.
39919 * lib/unistr/u-strtok.h: New file.
39921 * modules/unistr/u8-uctomb: New file.
39922 * modules/unistr/u16-uctomb: New file.
39923 * modules/unistr/u32-uctomb: New file.
39924 * lib/unistr/u8-uctomb.c: New file.
39925 * lib/unistr/u16-uctomb.c: New file.
39926 * lib/unistr/u32-uctomb.c: New file.
39928 * MODULES.html.sh (Unicode string functions): Add the new modules.
39930 2007-01-08 Bruno Haible <bruno@clisp.org>
39932 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39933 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39936 2007-01-08 Karl Berry <karl@gnu.org>
39938 * doc/error.texi: mention that main() fns must set program_name
39939 when progname is used.
39941 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
39943 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39944 WCTYPE_H is empty, for the benefit of builds from non-distclean
39945 directories. Problem reported by Eric Blake in
39946 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39948 2007-01-08 Bruno Haible <bruno@clisp.org>
39950 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39951 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39952 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39953 PROVIDE_CANONICALIZE_FILENAME_MODE.
39954 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39956 2007-01-08 Bruno Haible <bruno@clisp.org>
39958 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39959 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39960 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39961 * lib/fts.c: Likewise.
39962 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39964 2006-12-25 Bruno Haible <bruno@clisp.org>
39966 * modules/utf8-ucs4-safe: New file.
39967 * lib/utf8-ucs4-safe.h: New file.
39968 * lib/unistr/utf8-ucs4-safe.c: New file.
39970 * modules/utf16-ucs4-safe: New file.
39971 * lib/utf16-ucs4-safe.h: New file.
39972 * lib/unistr/utf16-ucs4-safe.c: New file.
39974 * MODULES.html.sh (Unicode string functions): Add the new modules.
39976 2007-01-08 Bruno Haible <bruno@clisp.org>
39978 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39979 (Depends-on): Add unitypes.
39980 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39981 (u8_mbtouc_aux): Move out to separate file.
39982 (u8_mbtouc): Use ucs4_t, uint8_t types.
39983 * lib/unistr/utf8-ucs4.c: New file.
39985 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39986 (Depends-on): Add unitypes.
39987 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39988 (u16_mbtouc_aux): Move out to separate file.
39989 (u16_mbtouc): Use ucs4_t, uint16_t types.
39990 * lib/unistr/utf16-ucs4.c: New file.
39992 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39993 (Depends-on): Add unitypes.
39994 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39995 (u8_uctomb_aux): Move out to separate file.
39996 (u8_uctomb): Use ucs4_t, uint8_t types.
39997 * lib/unistr/ucs4-utf8.c: New file.
39999 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40000 (Depends-on): Add unitypes.
40001 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40002 (u16_uctomb_aux): Move out to separate file.
40003 (u16_uctomb): Use ucs4_t, uint16_t types.
40004 * lib/unistr/ucs4-utf16.c: New file.
40006 2006-12-25 Bruno Haible <bruno@clisp.org>
40008 * modules/unitypes: New file.
40009 * lib/unitypes.h: New file.
40010 * MODULES.html.sh (func_all_modules): New section "Unicode string
40011 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40012 this section. Add unitypes.
40014 2007-01-08 Bruno Haible <bruno@clisp.org>
40016 Avoid variable names that conflict with those from libtool.
40017 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40018 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40019 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40020 library_names_spec to acl_library_names_spec, hardcode_* to
40022 Reported by Ralf Wildenhues.
40024 2007-01-08 Bruno Haible <bruno@clisp.org>
40026 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40028 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40030 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40031 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40033 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40035 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40036 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40037 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40038 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40040 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40042 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40043 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40044 GC_USE_<algorithm>.
40045 * lib/gc-libgcrypt.c: Likewise.
40046 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40047 * modules/gc-arctwo (configure.ac): Likewise.
40048 * modules/gc-des (configure.ac): Likewise.
40049 * modules/gc-hmac-md5 (configure.ac): Likewise.
40050 * modules/gc-hmac-sha1 (configure.ac): Likewise.
40051 * modules/gc-md2 (configure.ac): Likewise.
40052 * modules/gc-md4 (configure.ac): Likewise.
40053 * modules/gc-md5 (configure.ac): Likewise.
40054 * modules/gc-random (configure.ac): Likewise.
40055 * modules/gc-rijndael (configure.ac): Likewise.
40056 * modules/gc-sha1 (configure.ac): Likewise.
40058 2007-01-08 Bruno Haible <bruno@clisp.org>
40060 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40062 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40064 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40066 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40067 * modules/fcntl-safer (configure.ac): Likewise.
40068 * modules/fopen-safer (configure.ac): Likewise.
40069 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40070 GNULIB_FWRITEERROR macro definition.
40072 2007-01-08 Bruno Haible <bruno@clisp.org>
40074 * m4/gnulib-common.m4: New file.
40075 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40076 (func_get_filelist): Add m4/gnulib-common.m4.
40078 2007-01-08 Bruno Haible <bruno@clisp.org>
40080 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40083 2007-01-08 Jim Meyering <jim@meyering.net>
40085 Use a more robust test for a "can't happen" condition.
40086 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40087 narrowed the st_size value. Presuming the "can't happen" condition
40088 is true, that narrowing could conceivably convert an invalid st_size
40089 value into a valid one. Instead, use a change based on Matthew
40090 Woehlke's original patch.
40092 Slight readability improvement: use an assert-like macro
40093 in place of literal "abort ()" uses.
40094 * lib/fts.c (fts_assert): Define.
40095 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40096 Use this macro instead of a bare 'abort'.
40098 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
40100 Don't worry about using IRIX 5.3's wctype.h broken definitions;
40101 simply work around them.
40102 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40103 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40104 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40106 Don't bother to define as macros, since the standard doesn't require it.
40107 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40108 longer worry about IRIX 5.3.
40109 (HAVE_WCTYPE_CTMP_BUG): Remove.
40111 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
40113 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40114 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
40115 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40116 Problems reported by Georg Schwarz for IRIX 5.3.
40118 * gnulib-tool (autoconf_minversion): Take the maximum version number
40119 found, not the minimum. Problem reported by James Youngman.
40121 2007-01-03 Karl Berry <karl@gnu.org>
40123 * doc/error.texi: new file, explaining interaction with progname.
40124 * doc/gnulib.texi: include it. Update copyright.
40126 2007-01-03 Simon Josefsson <simon@josefsson.org>
40128 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40129 AC_CANONICAL_HOST, to improve autobuild outputs.
40131 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
40132 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40134 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40135 sockets, server sockets, and other file descriptors. Count errors
40136 to compute the return value. Reorder the code a bit to be easier
40137 to follow. Don't set event bits that were not requested (except
40138 POLLERR and POLLHUP).
40140 2007-01-01 Bruno Haible <bruno@clisp.org>
40142 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40144 2007-01-03 Jim Meyering <jim@meyering.net>
40146 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
40148 2007-01-02 Bruno Haible <bruno@clisp.org>
40150 * modules/settime (Include): Require timespec.h.
40151 * modules/nanosleep (Include): Likewise.
40153 2007-01-01 Bruno Haible <bruno@clisp.org>
40155 * gnulib-tool (func_emit_copyright_notice): Bump year.
40156 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40158 2007-01-01 Bruno Haible <bruno@clisp.org>
40160 Improve support for OpenBSD.
40161 * build-aux/config.rpath (libname_spec): Export.
40162 (library_names_spec): New variable. Export.
40163 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40164 library_names_spec from the config.rpath output. Locate shared library
40165 through the name pattern in library_names_spec.
40167 2007-01-01 Eric Blake <ebb9@byu.net>
40169 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40171 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
40173 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40174 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
40175 assume the C locale, and avoid an "eval" that could cause trouble.
40176 Problem with SORT reported by Bob Proulx.
40178 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40179 Define. Trivial patch from Henning Nielsen Lund, originally
40180 sent to bug-grep@gnu.org today.
40182 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
40184 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40185 struct stat. Problem reported by Henning Nielsen Lund.
40186 * lib/acl.c: Include acl.h first, to check interface. Don't
40187 bother to include sys/types.h and sys/stat.h again.
40189 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
40191 Import the following change from libc; problem reported by
40194 2005-10-13 Ulrich Drepper <drepper@redhat.com>
40197 * lib/argp.h: Remove __NTH for __argp_usage inline function.
40199 2006-12-28 Jim Meyering <jim@meyering.net>
40201 * build-aux/announce-gen: Do not assume that the package
40202 builds any of tar.gz, tar.bz2, and .xdelta files.
40203 Suggestion from Simon Josefsson.
40205 2006-12-28 Simon Josefsson <simon@josefsson.org>
40207 * modules/announce-gen: New file.
40209 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
40211 * lib/mbchar.h: Just include <wctype.h>; the wctype module
40212 handles its gotchas now.
40213 * lib/mbswidth.c: Likewise.
40214 * lib/wcwidth.h: Likewise.
40215 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40216 and iswcntrl; the wctype module does this stuff now.
40217 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40218 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40219 * modules/mbchar (Depends-on): Add wctype.
40220 * modules/mbswidth (Depends-on): Likewise.
40221 * modules/wcwidth (Depends-on): Likewise.
40223 2006-12-27 Eric Blake <ebb9@byu.net>
40225 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40226 module uses more than what <wctype.h> is required to provide.
40228 2006-12-26 Eric Blake <ebb9@byu.net>
40230 * gnulib-tool (sed_extract_prog): Avoid space-tab.
40232 2006-12-26 Eric Blake <ebb9@byu.net>
40234 * modules/absolute-header: New module.
40235 * modules/fcntl (Depends-on): Depend on it.
40236 * modules/inttypes (Depends-on): Likewise.
40237 * modules/stdint (Depends-on): Likewise.
40238 * modules/sys_stat (Depends-on): Likewise.
40239 * modules/wctype (Depends-on): Likewise.
40240 * MODULES.html.sh (Support for building libraries and
40241 executables): Document it.
40243 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
40245 * gnulib-tool (SED): Remove, undoing previous change.
40246 The problem was that it broke coreutils on Solaris, because
40247 "sed --posix" leaked into a makefile.
40248 (sed): New alias, if 'alias' and GNU sed.
40250 2006-12-24 Jim Meyering <jim@meyering.net>
40252 Work around an fchownat bug in glibc-2.4:
40253 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40254 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40255 in spite of the -P option.
40256 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40258 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40259 * modules/openat (Files): Add lib/fchownat.c.
40260 * lib/openat.c (fchownat): Don't define here. Move to...
40261 * lib/fchownat.c: ...this new file.
40263 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
40265 Fix bug reported by Bruno Haible in
40266 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40267 where quotearg.c didn't compile on Mac OS X 10.2 because it
40268 lacks <wchar.h> and wint_t.
40269 * lib/wctype_.h (__wctype_wint_t): New type.
40270 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40271 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40272 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40273 Arg is now of type __wctype_wint_t, not wint_t.
40274 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40275 substitute HAVE_WINT_T.
40276 * modules/wctype (Files): Add m4/wint_t.m4.
40277 (wctype.h): Substitute HAVE_WINT_T.
40279 2006-12-23 Bruno Haible <bruno@clisp.org>
40281 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40283 2006-12-23 Bruno Haible <bruno@clisp.org>
40285 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40287 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40290 2006-12-22 Bruno Haible <bruno@clisp.org>
40292 * lib/copy-file.c: Include acl.h.
40293 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40294 Close the file descriptors only after being done with copy_acl.
40295 * modules/copy-file (Depends-on): Add acl.
40297 2006-12-22 Bruno Haible <bruno@clisp.org>
40299 * gnulib-tool (SED): New variable.
40300 Use $SED instead of sed everywhere.
40302 2006-12-22 Bruno Haible <bruno@clisp.org>
40304 * modules/no-c++: New file.
40305 * m4/no-c++.m4: New file.
40306 * MODULES.html.sh (Support for building libraries and executables):
40309 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
40311 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40312 Include <limits.h>, and use its INT_MAX to rewrite the
40313 j loop so that it does not overflow 'int'. Problem reported by
40315 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40316 Play it safe by shifting left by 1 rather than multiplying by 2,
40317 as GCC is less likely to optimize this away when the value
40318 is signed (when it assumes overflow leads to undefined behavior).
40319 Also, don't assume time_t uses two's complement.
40321 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
40323 * MODULES.html.sh: New module wctype.
40324 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40325 * lib/fnmatch.c: Don't bother to include <wchar.h> before
40326 <wctype.h>, since the new wctype module should fix this.
40327 * lib/quotearg.c: Include <wctype.h> unconditionally, since
40328 the wctype module should arrange for it.
40329 * lib/regex_internal.h: Likewise.
40330 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40331 since the wctype module should handle this now.
40332 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40333 * modules/fnmatch (Depends-on): Add wctype.
40334 * modules/quotearg (Depends-on): Likewise.
40335 * modules/regex (Depends-on): Likewise.
40337 2006-12-19 Bruno Haible <bruno@clisp.org>
40339 * lib/strdup.h [C++]: Wrap definitions in extern "C".
40340 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40342 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40344 * modules/savewd (Depends-on): Fix dependency on fcntl.
40346 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
40348 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40349 conforms to C99, rather than relying on the user's environment
40350 setting of STDINT_H.
40352 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
40353 and Eric Blake <ebb9@byu.net>
40355 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40356 This is more consistent with the other defines here.
40357 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40358 Port to z/OS. Problem reported by Paul Gilmartin.
40359 Change local vars to use gl_ prefix rather than ac_.
40360 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40361 with other defines.
40362 * modules/double-slash-root: New module.
40363 * modules/dirname (Files): Remove m4/double-slash-root.m4.
40364 (Depends-on): Add double-slash-root.
40365 * MODULES.html.sh (File system functions): Mention new module.
40367 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
40369 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40370 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40371 This is for the benefit of gzip, which doesn't do i18n.
40373 2006-12-12 Jim Meyering <jim@meyering.net>
40375 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40376 Reported by Andreas Schwab <schwab@suse.de>.
40378 2006-12-12 Bruno Haible <bruno@clisp.org>
40380 Merge these changes.
40381 2006-09-05 Bruno Haible <bruno@clisp.org>
40382 * lib/iconvme.c (iconv_string): No need to save and restore errno when
40383 iconv_alloc succeeded.
40384 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40385 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40386 test for " && dest " at the end - dest is always != NULL there. Call
40387 iconv with 4xNULL arguments initially, to reset the state. Call iconv
40388 with 2xNULL arguments, also to flush the state storage. Handle the
40389 IRIX iconv behaviour. Realloc the final result, to throw away unused
40392 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
40394 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40395 and fchmodat unconditionally, since glibc 2.4 has them.
40396 Problem reported by Arkadiusz Miskiewicz.
40398 2006-12-10 Bruno Haible <bruno@clisp.org>
40400 * gnulib-tool (func_import): Show the include files only for those
40401 modules that are copied and specified.
40402 Reported by Karl Berry.
40404 2006-12-08 Jim Meyering <jim@meyering.net>
40406 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40407 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
40409 * build-aux/announce-gen: Add two new options, both optional:
40410 --bootstrap-tools=TOOL_LIST
40411 a comma-separated list of tools, e.g.,
40412 autoconf,automake,bison,gnulib
40413 --gnulib-snapshot-date=DATE
40414 if gnulib is in the bootstrap tool list,
40415 then report this as the snapshot date.
40416 If not specified, use the current date/time.
40417 If you specify a date here, be sure it's UTC.
40419 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40421 * tests/test-argp-2.sh: Fix test to match actual output.
40422 (func_compare): Fix sed script to be portable.
40424 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
40426 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40427 workaround for this case. It is not autoconfigured now; offhand
40428 it's hard to see how to autoconfigure it.
40430 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
40432 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40433 a directory that is about to be chowned. Such a directory's
40434 initial file permissions should permit the owner only and this
40435 should not be changed until after the chown, since the group and
40436 other bits would be incorrect if they granted permission before
40439 Fix porting problem for iswctype reported by Georg Schwarz in:
40440 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40441 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40442 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40443 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40444 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40446 2006-12-03 Jim Meyering <jim@meyering.net>
40448 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40449 p->fts_statp may not yet be defined.
40450 (fts_read): Instead, set it in the caller, once p->fts_statp is
40451 sure to be defined, and corresponds to a top-level directory.
40452 This bug made du -x fail. Here's the coreutils test case:
40453 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40454 Reported by Mike Frysinger.
40456 2006-12-01 Jim Meyering <jim@meyering.net>
40458 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40459 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40460 Reported by Simon Josefsson.
40462 2006-11-30 Jim Meyering <jim@meyering.net>
40464 * m4/warning.m4: Use the all-permissive copyright notice
40465 recommended by RMS (rather than LGPL).
40466 * m4/vararrays.m4: Likewise.
40467 * m4/flexmember.m4: Likewise.
40469 2006-11-29 Bruno Haible <bruno@clisp.org>
40471 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40472 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40474 Reported by Simon Josefsson <simon@josefsson.org>.
40476 2006-11-28 James Youngman <jay@gnu.org>
40478 * README: Advise users that they might find the bug-gnulib@gnu.org
40479 and autotools-announce@gnu.org mailing lists useful.
40481 2006-11-28 Bruno Haible <bruno@clisp.org>
40483 * m4/ptrdiff_max.m4: Remove file.
40485 2006-11-21 Bruno Haible <bruno@clisp.org>
40487 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40489 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40490 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40492 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40493 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40495 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40497 2006-11-28 Jim Meyering <jim@meyering.net>
40499 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40500 warning from "gcc -Wshadow" about shadowing the builtin.
40502 2006-11-27 Bruno Haible <bruno@clisp.org>
40504 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40506 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40508 2006-11-27 Bruno Haible <bruno@clisp.org>
40509 Paul Eggert <eggert@cs.ucla.edu>
40511 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40513 2006-11-26 Bruno Haible <bruno@clisp.org>
40515 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40516 noinst_LTLIBRARIES.
40518 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
40519 Bruno Haible <bruno@clisp.org>
40521 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40522 if compiling with "gcc -ansi".
40524 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
40526 Fix some incompatibilities with gcc -ansi -pedantic.
40527 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40528 if compiling pedantically with GCC, unless it's C99 or later.
40529 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40530 it mishandles gcc -ansi -pedantic as well.
40531 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40533 * lib/regexec.c (check_node_accept_bytes): Don't use auto
40534 initializers for struct if -pedantic, unless it's C99 or later.
40536 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
40538 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40539 Don't close an fd more than once. Identical atimes indicate
40540 success, not failure.
40542 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
40544 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40546 2006-11-23 Jim Meyering <jim@meyering.net>
40548 * build-aux/announce-gen: New file. From coreutils.
40550 2006-11-22 Jim Meyering <jim@meyering.net>
40552 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40553 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40554 (fts_read): Use a temporary to narrow the overused st_size member
40555 before using it in a switch statement. Reported by Matthew Woehlke.
40557 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40558 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40560 2006-11-20 Bruno Haible <bruno@clisp.org>
40562 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40563 changequote instead of pairs of brackets.
40564 Reported by Andreas Schwab <schwab@suse.de>.
40566 2006-11-21 Jim Meyering <jim@meyering.net>
40568 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40569 so as to remain compatible with older compilers.
40570 Patch from Michael Deutschmann.
40572 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40574 * MODULES.html.sh (File system functions): Add openat.
40576 * lib/openat.h (rpl_fstatat): New macro, if
40577 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40578 (fstatat): Define to rpl_fstatat under the same conditions,
40579 unless COMPILING_FSTATAT.
40580 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40581 seems to have the bug.
40582 * lib/fstatat.c: New file.
40583 * modules/openat (Files): Add it.
40585 2006-11-20 Bruno Haible <bruno@clisp.org>
40587 * Makefile: New file.
40589 2006-11-20 Jim Meyering <jim@meyering.net>
40591 The beginnings of syntax-related checks for gnulib.
40592 * lib/Makefile: New file.
40593 * lib/t-idcache: New script. Ensure that the two halves of
40594 idcache.c stay in sync.
40596 * lib/idcache.c: Adjust comments in user- and group- portions to
40597 be more accurate, and to be consistent with one another.
40599 2006-11-20 Jim Meyering <jim@meyering.net>
40601 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40602 continue using the flexible array member (thus, this module performs
40603 half as many malloc calls), with the addition that...
40604 (getgroup, getuser): Consistently record a non-match via an empty
40605 "name" string, and map an empty string match to a NULL return value.
40606 * modules/idcache (Depends-on): Re-add flexmember.
40608 * lib/idcache.c (getuser): Remove all uses of the register keyword.
40609 (getuidbyname, getgroup, getgidbyname): Likewise.
40611 Use cleaner syntax: NULL rather than 0.
40612 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40614 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40616 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40617 It mishandled the case where the group was missing.
40618 Problem reported by Greg Schafer.
40619 * modules/idcache: Likewise.
40621 2006-11-18 Jim Meyering <jim@meyering.net>
40623 * check-module (%exempt_header): Add exception for some
40624 conditionally-included headers.
40626 * modules/i-ring (Depends-on): Add verify.
40627 (License): Change to LGPL.
40629 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
40631 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40632 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40633 and inttostr.h. Use snprintf rather than uinttostr, so that
40634 LGPLed code doesn't depend on GPLed.
40636 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
40638 * modules/inline (License): Change from GPL to LGPL.
40640 2006-11-17 Jim Meyering <jim@meyering.net>
40642 * modules/d-type (License): Switch to LGPL.
40644 2006-11-15 Bruno Haible <bruno@clisp.org>
40646 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40648 2006-11-15 Eric Blake <ebb9@byu.net>
40650 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40651 the module dependency.
40653 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40654 Bruno Haible <bruno@clisp.org>
40656 * gnulib-tool (func_create_testdir): Add license consistency check.
40658 2006-11-15 Eric Blake <ebb9@byu.net>
40660 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40661 random "(cached)" in configure output.
40663 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40665 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40666 test for conforming inttypes.h is both announced and cached.
40668 * MODULES.html.sh (seen_modules, seen_files): New variables.
40669 (func_module): Rewrite to use a few less gnulib-tool and sed
40670 invocations. Avoid a couple of quadratic algorithms for ...
40671 (missed_modules, missed_files): ... these, with ...
40672 (func_append, func_tmpdir): ... these new functions, from
40673 gnulib-tool. Analogously, install traps for cleanup.
40675 * tests/test-gc.c (main): Remove unused variables.
40676 * tests/test-read-file.c: Include stdlib.h, for 'free'.
40678 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
40680 * modules/inttostr (License): Change to LGPL.
40682 2006-11-14 Eric Blake <ebb9@byu.net>
40684 * modules/tempname (License): Change to LGPL.
40686 2006-11-14 Eric Blake <ebb9@byu.net>
40688 * doc/functions.texi (Function Portability): *printf functions on
40689 Cygwin now understand all POSIX size specifiers.
40691 2006-11-14 Bruno Haible <bruno@clisp.org>
40693 * modules/c-ctype (License): Change to LGPL.
40695 2006-11-12 Bruno Haible <bruno@clisp.org>
40697 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40698 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40699 for GNOME libraries, for which the include files are installed in
40700 subdirectories of $prefix/include.
40702 2006-11-12 Bruno Haible <bruno@clisp.org>
40704 * m4/lib-link.m4: Require at least autoconf-2.54.
40705 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40706 name to underscores for the --with option.
40708 2006-11-13 Bruno Haible <bruno@clisp.org>
40710 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40711 the tests directory.
40712 Reported by Ralf Wildenhues.
40714 2006-11-13 Bruno Haible <bruno@clisp.org>
40716 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40717 (func_emit_initmacro_end): Undo the override here.
40718 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40719 Works around the famous automake error in coreutils.
40721 2006-11-13 Eric Blake <ebb9@byu.net>
40723 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40724 element, not its node.
40726 2006-11-12 Bruno Haible <bruno@clisp.org>
40728 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40729 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40731 2006-11-12 Bruno Haible <bruno@clisp.org>
40733 * gnulib-tool: New option --local-symlink.
40734 (func_usage): Document it.
40735 (lsymbolic): New variable.
40736 (func_import, func_create_testdir): If --symlink was not specified,
40737 test whether --local-symlink was specified and the file comes from
40738 the local_gnulib_dir.
40740 2006-11-12 Bruno Haible <bruno@clisp.org>
40742 * gnulib-tool (func_ln): New function.
40743 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40745 2006-11-12 Bruno Haible <bruno@clisp.org>
40747 Finish support for source files in subdirectories.
40748 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40749 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40751 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40753 2006-11-12 Bruno Haible <bruno@clisp.org>
40755 * gnulib-tool (func_get_automake_snippet): Synthesize also an
40756 EXTRA_lib_SOURCES augmentation.
40757 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40759 2006-11-12 Jim Meyering <jim@meyering.net>
40761 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40762 file descriptors. This also averts a failure on systems with
40763 native openat support when a traversed directory lacks "x" access.
40764 * lib/fts_.h: Include "i-ring.h"
40765 (struct FTS) [fts_fd_ring]: New member.
40766 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40767 (FCHDIR): Add parentheses.
40768 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40769 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
40770 When descending, rather than simply closing the previous
40771 fts_cwd_fd value, push that file descriptor onto the ring.
40772 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40773 (fts_open): Initialize the new fd_ring member.
40774 (fts_close): Clear the ring.
40775 (fts_safe_changedir): When possible, use our new fd_ring to skip
40776 the diropen and fstat and dev/ino comparison that would normally
40777 accompany a virtual `chdir ("..")'.
40779 * modules/fts (Depends-on): Add i-ring.
40780 * modules/i-ring: New module.
40781 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40782 * m4/i-ring.m4: New file.
40784 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40786 * gnulib-tool (func_create_testdir): Fix replacement of
40787 `build-aux' in configure.ac. Run autotools in gltests
40789 (func_create_testdir, func_create_megatestdir, test): There is
40790 no need for '--force' in most autotool invocations in a new
40791 tree. Actually fail the whole test if any of the tools, or the
40792 configure or make stages fail.
40794 Sync from Automake.
40795 * build-aux/gnupload: Revert last change. Add pointer to upload
40796 instructions of the GNU Maintenance Instructions.
40797 Suggestion by Karl Berry.
40799 2006-11-10 Jim Meyering <jim@meyering.net>
40801 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40803 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40805 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40806 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40807 (bind_textdomain_codeset) [! ENABLE_NLS]:
40808 Evaluate all the arguments. That way, callers get compatible behavior
40809 if the arguments have side effects. Also, it avoids some GCC
40810 diagnostics in some cases; Joel E. Denny reported problems when Bison
40811 was configured with --enable-gcc-warnigs.
40813 2006-11-10 Jim Meyering <jim@meyering.net>
40815 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40816 relevant options in CFLAGS (like -O, -fno-inline) are taken into
40819 2006-11-10 Jim Meyering <jim@meyering.net>
40821 * modules/inline: New file/module.
40822 * modules/xalloc (Files): Remove m4/inline.m4.
40823 (Depends-on): Add inline, instead.
40824 * modules/oset: Likewise.
40825 * modules/list: Likewise.
40827 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40829 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40830 Problem reported by Matthew Woehlke.
40832 2006-11-09 Bruno Haible <bruno@clisp.org>
40834 * lib/tempname.c (gen_tempname): Remove variant that invokes
40836 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40839 2006-11-08 Bruno Haible <bruno@clisp.org>
40841 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40842 to 'yes' instead of 'cross-compiling'.
40844 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
40846 * lib/quotearg.h (quotearg_free): New decl.
40847 * lib/quotearg.c (quotearg_free): New function.
40848 (slot0, nslots, slotvec0, slotvec):
40849 Now file-scope so that quotearg_free can get at them.
40851 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40853 Sync from Automake.
40854 * build-aux/gnupload: Add missing 'gnu' to example URL.
40855 Report by Karl Berry.
40857 2006-11-08 Bruno Haible <bruno@clisp.org>
40859 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40860 Suggested by Paul Eggert.
40862 2006-11-08 Jim Meyering <jim@meyering.net>
40864 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40865 It's already included if !_LIBC.
40866 (fts_safe_changedir): Add a comment.
40868 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40870 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40871 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40874 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40875 definitions up, to avoid colliding with change below.
40876 (static_inline) [HAVE_INLINE]: New macro.
40877 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40878 Provide extern decls when !HAVE_INLINE. Do not define unless
40879 static_inline is defined, either by us or by xmalloc.c. Use
40880 static_inline rather than static inline.
40881 (XCALLOC): Optimize sizeof(T) = 1 case.
40882 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40884 2006-11-07 Bruno Haible <bruno@clisp.org>
40886 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40887 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40889 * modules/xalloc (Files): Add m4/inline.m4.
40891 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40893 * README: Fix typo.
40894 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40895 (Miscellanous Notes): ...from this.
40897 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40899 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40900 Mention that offsetof should be used instead of sizeof.
40903 2006-11-07 Bruno Haible <bruno@clisp.org>
40905 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40907 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40909 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40910 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40911 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40912 (gl_tree_add_before, gl_tree_add_after):
40913 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40914 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40915 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40916 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40917 (gl_linked_add_after, gl_linked_add_at): Likewise.
40918 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40919 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40920 (gl_tree_add_before, gl_tree_add_after): Likewise.
40921 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40922 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40923 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40925 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40927 * lib/gl_oset.h: Use C comment style, not C++ comment style.
40929 2006-11-06 Bruno Haible <bruno@clisp.org>
40931 * m4/inline.m4: New file.
40932 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40933 * modules/list (Files): Add m4/inline.m4.
40934 * modules/oset (Files): Likewise.
40936 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40938 * lib/idcache.c: Include <stddef.h>, for offsetof.
40939 (struct userid.name): Change from char * to a flexible array member.
40941 * modules/idcache (Depends-on): Add flexmember.
40943 * MODULES.html.sh (Core language properties): New module flexmember.
40944 * modules/flexmember, m4/flexmember.m4: New files.
40946 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40947 inline functions that are identical with the old xnmalloc_inline,
40948 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
40949 that we can avoid some unnecessary integer multiplications and
40950 divisions in the common case where the element size is known at
40952 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40954 (xnboundedmalloc): Remove.
40955 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40956 arguments, for consistency with rest of this header.
40957 (xcharalloc): Rewrite using XNMALLOC.
40958 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40959 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
40960 versions have been moved to lib/xalloc.h and renamed to be the
40961 non-*_inline versions.
40962 (xmalloc, xrealloc): Implement without reference to the xnmalloc
40963 and xnrealloc functions, since those functions are now inline and
40965 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40966 renaming described above.
40967 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40968 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
40969 captures the dependency in AC_C_INLINE.
40971 New module canonicalize-lgpl, proposed by Charles Wilson in
40972 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40973 with a few small changes afterwards.
40974 * MODULES.html.sh (File system functions): New module
40976 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40977 and canonicalize_file_name.
40978 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40979 * modules/canonicalize-lgpl: New files.
40981 2006-11-05 Bruno Haible <bruno@clisp.org>
40983 * gnulib-tool (func_import, func_create_testdir): Create directories
40984 also for files in subdirectories of lib/.
40986 2006-11-05 Bruno Haible <bruno@clisp.org>
40988 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40991 2006-11-03 Bruno Haible <bruno@clisp.org>
40993 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40994 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40995 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40996 (xnboundedmalloc): New inline function.
40997 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40998 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41000 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41002 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41003 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41004 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41006 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41007 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41009 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41010 gl_tree_add_after): Use XMALLOC instead of xmalloc.
41011 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41013 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41014 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41015 gl_tree_add_after): Use XMALLOC instead of xmalloc.
41016 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41017 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41018 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41019 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41021 2006-11-03 Bruno Haible <bruno@clisp.org>
41023 * lib/c-ctype.h [C++]: Define functions without name mangling.
41024 * lib/fwriteerror.h [C++]: Likewise.
41025 * lib/gcd.h [C++]: Likewise.
41026 * lib/linebreak.h [C++]: Likewise.
41028 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
41030 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41031 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41032 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41033 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41034 Check for functions and headers just once.
41035 Check for declaration of canonicalize_file_name.
41036 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41038 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
41040 * gnulib-tool (func_import): Fix typo in actioncmd.
41042 2006-11-02 Bruno Haible <bruno@clisp.org>
41044 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41045 newline sequence in the Makefile.am snippet as a space, like "make"
41047 Reported by Roger Persson <perrog@gmail.com>.
41049 2006-11-01 Bruno Haible <bruno@clisp.org>
41051 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41052 already declared in <string.h>.
41053 * lib/strcase.h (strncasecmp): Don't declare it if yes.
41055 2006-11-01 Bruno Haible <bruno@clisp.org>
41057 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41058 * lib/strcase.h: Include <string.h>.
41059 (strcasecmp): Define to rpl_strcasecmp here.
41061 2006-11-01 Bruno Haible <bruno@clisp.org>
41063 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41065 2006-11-01 Eric Blake <ebb9@byu.net>
41067 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41069 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41071 2006-10-29 Bruno Haible <bruno@clisp.org>
41073 Make it compile in C++ mode.
41074 * lib/full-write.c (full_rw): Add a cast.
41076 2006-11-01 Bruno Haible <bruno@clisp.org>
41078 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41079 be POSIX compliant.
41080 Reported by Roger Persson <perrog@gmail.com>.
41082 2006-11-01 Eric Blake <ebb9@byu.net>
41084 * lib/getopt_.h: Fix comments.
41086 2006-10-31 Eric Blake <ebb9@byu.net>
41088 * modules/tmpdir (Depends-on): Add sys_stat.
41089 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41090 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41091 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41092 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41095 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
41097 Avoid some C++ diagnostics reported by Bruno Haible.
41098 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41100 (quotearg_alloc): Use xcharalloc rather than xmalloc.
41101 (struct slotvec): Move to top level.
41102 (quotearg_n_options): Rewrite to avoid xmalloc.
41103 * lib/xalloc.h (xcharalloc): New function.
41104 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41105 [defined __cplusplus]: Add function template that provides result
41106 type propagation. This part of the change is from Bruno Haible.
41108 2006-10-29 Bruno Haible <bruno@clisp.org>
41110 Make it compile in C++ mode.
41111 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41112 * lib/strnlen1.c (strnlen1): Cast memchr result.
41113 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41114 * lib/clean-temp.c (string_equals, string_hash): Add casts.
41115 (create_temp_dir): Rename local variable 'template'.
41116 (compile_csharp_using_sscli): Add cast.
41117 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41118 * lib/findprog.c (find_in_path): Likewise.
41119 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41120 * lib/wait-process.c (register_slave_subprocess): Likewise.
41122 2006-10-22 Bruno Haible <bruno@clisp.org>
41124 * modules/tsearch: New file.
41125 * lib/tsearch.h: New file.
41126 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41127 * m4/tsearch.m4: New file.
41128 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41130 2006-10-29 Eric Blake <ebb9@byu.net>
41132 * lib/arcfour.c: Assume config.h.
41133 * lib/arctwo.c: Likewise.
41134 * lib/base64.c: Likewise.
41135 * lib/check-version.c: Likewise.
41136 * lib/crc.c: Likewise.
41137 * lib/des.c: Likewise.
41138 * lib/gc-gnulib.c: Likewise.
41139 * lib/gc-libgcrypt.c: Likewise.
41140 * lib/gc-pbkdf2-sha1.c: Likewise.
41141 * lib/getaddrinfo.c: Likewise.
41142 * lib/getdelim.c: Likewise.
41143 * lib/getline.c: Likewise.
41144 * lib/hmac-md5.c: Likewise.
41145 * lib/hmac-sha1.c: Likewise.
41146 * lib/iconvme.c: Likewise.
41147 * lib/md2.c: Likewise.
41148 * lib/md4.c: Likewise.
41149 * lib/memxor.c: Likewise.
41150 * lib/read-file.c: Likewise.
41151 * lib/readline.c: Likewise.
41152 * lib/rijndael-alg-fst.c: Likewise.
41153 * lib/rijndael-api-fst.c: Likewise.
41154 * lib/xgetdomainname.c: Likewise.
41156 2006-10-28 Eric Blake <ebb9@byu.net>
41158 * lib/xstrndup.c: Assume config.h.
41160 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
41162 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41163 stat-macros.h is now for our own macros, whereas stat_h is for
41164 macros in the <sys/stat.h> name space.
41165 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41166 (STAT_MACROS_H): Remove.
41167 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41168 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41169 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41170 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41171 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41172 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41173 Move these macros to ...
41174 * lib/stat_.h: here. Don't include stat-macros.h.
41175 * lib/canonicalize.c: Don't include stat-macros.h.
41176 * lib/chown.c: Likewise.
41177 * lib/euidaccess.c: Likewise.
41178 * lib/file-type.c: Likewise.
41179 * lib/filemode.c: Likewise.
41180 * lib/glob.c: Likewise.
41181 * lib/isapipe.c: Likewise.
41182 * lib/lchown.c: Likewise.
41183 * lib/lstat.c: Likewise.
41184 * lib/mkdir-p.c: Likewise.
41185 * lib/rmdir.c: Likewise.
41186 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41187 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41188 unless mkdir isn't declared, to speed up 'configure'.
41189 Always create sys/stat.h, since it's unlikely any real sys/stat.h
41190 would define all the S_* symbols.
41191 * modules/canonicalize (Depends-on):
41192 Depend on sys_stat, not stat-macros.
41193 * modules/chown: Likewise.
41194 * modules/euidaccess: Likewise.
41195 * modules/filemode: Likewise.
41196 * modules/file-type: Likewise.
41197 * modules/glob: Likewise.
41198 * modules/isapipe: Likewise.
41199 * modules/lchown: Likewise.
41200 * modules/lstat: Likewise.
41201 * modules/mkancesdirs: Likewise.
41202 * modules/rmdir: Likewise.
41203 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41204 * modules/modechange: Likewise.
41205 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41206 (configure.ac): Remove gl_STAT_MACROS.
41207 * modules/sys_stat (Depends-on): Remove stat-macros.
41209 2006-10-27 Bruno Haible <bruno@clisp.org>
41211 * m4/signed.m4: Remove file.
41212 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41214 * modules/vasnprintf (Files): Remove m4/signed.m4.
41216 2006-10-27 Bruno Haible <bruno@clisp.org>
41218 Update to GNU gettext 0.16.
41219 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41220 m4/inttypes-h.m4, m4/signed.m4.
41221 * m4/gettext.m4: Update to GNU gettext 0.16.
41222 * m4/intl.m4: New file, from GNU gettext.
41223 * m4/intldir.m4: New file, from GNU gettext.
41224 * config/srclist.txt: Update
41226 2006-10-27 Eric Blake <ebb9@byu.net>
41228 * MODULES.html.sh: Document tempname.
41229 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41231 (Files): Move lib/tempname.c...
41232 * modules/tempname: ...to this new module.
41233 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41234 (gl_PREREQ_TEMPNAME): Move...
41235 * m4/tempname.m4: ...to this new file.
41236 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41237 * modules/sys_stat (Depends-on): Add stat-macros.
41238 * lib/stat_.h (includes): Pick up stat macros.
41239 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41240 if stat macros are broken.
41241 * lib/tempname.c (includes): No need to include "stat-macros.h".
41242 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41243 (direxists, __path_search) [!_LIBC]: Don't compile these in
41244 gnulib; the tmpdir module covers that.
41245 * lib/tempname.h: New file.
41247 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
41249 * COPYING: Explain how gnulib-tool converts licence headers.
41250 Almost all wording by Eric Blake.
41252 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
41254 * lib/mbchar.h (is_basic_table): Make read-only.
41255 * lib/mbchar.c (is_basic_table): Likewise.
41256 Reported by John Darrington.
41258 2006-10-25 Bruno Haible <bruno@clisp.org>
41260 * lib/progname.h (set_program_name): Undefine before defining.
41262 2006-10-25 Bruno Haible <bruno@clisp.org>
41264 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41265 false for non-gcc C++ compilers.
41266 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41268 2006-10-24 Bruno Haible <bruno@clisp.org>
41270 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41271 iconv implementations like Irix iconv.
41273 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41275 * modules/vararrays: New file.
41276 * m4/vararrays.m4: New file, taken from diffutils.
41277 * MODULES.html.sh: New module vararrays.
41279 2006-10-24 Karl Berry <karl@gnu.org>
41281 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41282 Don't call GNU Unix.
41284 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41286 * users.txt: Add Libtool.
41290 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41292 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41293 to gnulib's policy of including config.h unconditionally.
41295 2006-10-24 Bruno Haible <bruno@clisp.org>
41297 * modules/wcwidth (Files): Add m4/wint_t.m4.
41298 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41299 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41301 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41303 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41304 to pacify GCC with some -W flags enabled. Problem reported by
41307 2006-10-24 Jim Meyering <jim@meyering.net>
41309 * MODULES.html.sh: Remove uinttostr. It's not a module.
41310 Reported by Karl Berry.
41312 2006-10-23 Bruno Haible <bruno@clisp.org>
41314 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41316 2006-10-24 Bruno Haible <bruno@clisp.org>
41318 * lib/gl_list.h: Use C comment style, not C++ comment style.
41320 2006-10-23 Eric Blake <ebb9@byu.net>
41322 * lib/getaddrinfo.c (includes): Add missing include.
41324 2006-10-23 Bruno Haible <bruno@clisp.org>
41325 Paul Eggert <eggert@cs.ucla.edu>
41327 Ability to rename obstack_free.
41328 * lib/obstack.h (__obstack_free): New macro. Declare instead of
41330 (obstack_free): Invoke the __obstack_free macro.
41331 * lib/obstack.c (obstack_free): Use __obstack_free macro.
41333 2006-10-23 Bruno Haible <bruno@clisp.org>
41334 Paul Eggert <eggert@cs.ucla.edu>
41336 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41337 __argc, __argv from the declaration. (They are defined as macros on
41340 2006-10-22 Bruno Haible <bruno@clisp.org>
41342 * doc/gnulib-intro.texi: New file.
41343 * doc/gnulib.texi: Include it.
41345 2006-10-21 Bruno Haible <bruno@clisp.org>
41347 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41348 "Introduction", "Miscellanous Notes", "Particular Modules".
41350 2006-10-21 Bruno Haible <bruno@clisp.org>
41352 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41353 Change mostlyclean-local rule to avoid sh syntax error from bash
41354 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41356 2006-10-23 Jim Meyering <jim@meyering.net>
41358 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41359 in place of snprintf.
41361 * modules/inttostr (Files): Add lib/uinttostr.c.
41362 * lib/uinttostr.c (inttostr): New file/function.
41363 * lib/inttostr.h (uinttostr): Declare.
41364 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41365 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41367 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
41369 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
41371 * lib/canonicalize.c (ELOOP): Define if not already defined.
41372 Problem reported by Bruno Haible in
41373 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41375 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
41377 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41378 Problem reported by Perry Smith and Ville Laurikari.
41380 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41383 2006-10-19 Bruno Haible <bruno@clisp.org>
41385 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41388 2006-10-19 Bruno Haible <bruno@clisp.org>
41390 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41393 2006-10-19 Bruno Haible <bruno@clisp.org>
41395 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41397 2006-10-19 Bruno Haible <bruno@clisp.org>
41399 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41402 2006-10-19 Bruno Haible <bruno@clisp.org>
41404 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41407 2006-10-19 Bruno Haible <bruno@clisp.org>
41409 * gnulib-tool (func_create_testdir): Don't include ftruncate and
41410 mountlist by default.
41412 2006-10-16 Bruno Haible <bruno@clisp.org>
41414 * lib/c-strstr.c: Include c-strstr.h.
41416 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
41418 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41421 2006-10-18 Bruno Haible <bruno@clisp.org>
41423 * lib/lock.h [C++]: Wrap definitions in extern "C".
41425 2006-10-18 Bruno Haible <bruno@clisp.org>
41427 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41430 2006-10-18 Bruno Haible <bruno@clisp.org>
41432 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41434 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
41436 * lib/xstrtol.h: Include gettext.h.
41437 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41438 Problem reported by Eric Blake.
41439 * modules/xstrtol (Depends-on): Add gettext-h.
41441 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
41443 * lib/strftime.c (advance): New macro.
41444 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
41445 incomplete type, so you can't add 0 to it. Problem and patch
41446 reported by Eelco Dolstra for dietlibc.
41448 2006-10-18 Jim Meyering <jim@meyering.net>
41450 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41451 type for a local, and rename it: s/up/user_proc/.
41453 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
41455 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41456 READ_UTMP_USER_PROCESS.
41457 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41459 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
41461 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41462 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41464 2006-10-17 Eric Blake <ebb9@byu.net>
41466 * lib/sigprocmask.c (sigprocmask): Fix typo.
41468 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41470 * modules/clean-temp (Makefile.am): Don't add to make output...
41471 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41474 2006-10-17 Bruno Haible <bruno@clisp.org>
41476 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41477 differently if DEFAULT_TEXT_DOMAIN is set.
41479 2006-10-16 Bruno Haible <bruno@clisp.org>
41481 * lib/clean-temp.c: Include fwriteerror.h.
41483 2006-10-16 Bruno Haible <bruno@clisp.org>
41485 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41487 2006-10-16 Bruno Haible <bruno@clisp.org>
41489 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41490 * lib/sigprocmask.h: Include <sys/types.h>.
41491 (sigset_t): Use the system's definition if present.
41493 2006-10-17 Eric Blake <ebb9@byu.net>
41495 * lib/xvasprintf.c (includes): Assume config.h.
41496 * lib/xasprintf.c (includes): Likewise.
41498 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
41500 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41501 at least as wide as intmax_t.
41503 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
41505 (Imported from Automake.)
41506 * build-aux/gnupload: Update to version 1.1 of directive file.
41508 2006-10-16 Eric Blake <ebb9@byu.net>
41510 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41511 match Automake 1.10a.
41513 2006-10-14 Bruno Haible <bruno@clisp.org>
41515 * modules/sigprocmask: New file.
41516 * lib/sigprocmask.h: New file.
41517 * lib/sigprocmask.c: New file.
41518 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41519 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41520 request sigprocmask.o.
41521 (gl_PREREQ_SIGPROCMASK): New macro.
41522 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41523 (Depends-on): Add sigprocmask.
41524 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41525 gt_SIGNALBLOCKING. Test for 'raise' only once.
41526 * lib/fatal-signal.c: Include sigprocmask.h.
41527 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41528 unblock_fatal_signals): Define always.
41529 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41532 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
41534 Sync from Automake.
41535 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41536 which incorrectly sets the mode of an existing destination
41537 directory. In some cases the unpatched install-sh could do the
41538 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41539 system. We hope this is rare in practice, but it's clearly worth
41540 fixing. Problem reported by Alex Unleashed in
41541 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41542 Also, don't bother to check for -m bugs unless we're using -m;
41543 suggested by Stepan Kasal.
41545 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41547 Sync from Automake.
41548 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41549 `-c' flag, so they appear at the same position as in %FASTDEP%
41550 mode in depend2.am. Fixes build failure for FreeBSD's c89,
41551 which ignores unknown options only after the first non-option.
41552 Bug report against M4 by Nelson H. F. Beebe.
41554 2006-10-13 Jim Meyering <jim@meyering.net>
41556 Fix a bug in yesterday's change.
41557 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41558 p->fts_statp->st_dev would be used uninitialized.
41559 Ensures that we always call fts_stat on the very first entry.
41560 Miklos Szeredi reported that find -xdev stopped working.
41562 2006-10-12 Bruno Haible <bruno@clisp.org>
41564 * gnulib-tool (func_get_automake_snippet): Append an automatically
41565 computed EXTRA_DIST augmentation.
41566 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41567 * modules/alloca-opt (Makefile.am): Likewise.
41568 * modules/allocsa (Makefile.am): Likewise.
41569 * modules/arcfour (Makefile.am): Likewise.
41570 * modules/arctwo (Makefile.am): Likewise.
41571 * modules/argmatch (Makefile.am): Likewise.
41572 * modules/argz (Makefile.am): Likewise.
41573 * modules/atexit (Makefile.am): Likewise.
41574 * modules/backupfile (Makefile.am): Likewise.
41575 * modules/byteswap (Makefile.am): Likewise.
41576 * modules/c-strtod (Makefile.am): Likewise.
41577 * modules/c-strtold (Makefile.am): Likewise.
41578 * modules/calloc (Makefile.am): Likewise.
41579 * modules/canon-host (Makefile.am): Likewise.
41580 * modules/canonicalize (Makefile.am): Likewise.
41581 * modules/chdir-long (Makefile.am): Likewise.
41582 * modules/chdir-safer (Makefile.am): Likewise.
41583 * modules/check-version (Makefile.am): Likewise.
41584 * modules/chown (Makefile.am): Likewise.
41585 * modules/cloexec (Makefile.am): Likewise.
41586 * modules/close-stream (Makefile.am): Likewise.
41587 * modules/closeout (Makefile.am): Likewise.
41588 * modules/crc (Makefile.am): Likewise.
41589 * modules/csharpexec (Makefile.am): Likewise.
41590 * modules/cycle-check (Makefile.am): Likewise.
41591 * modules/des (Makefile.am): Likewise.
41592 * modules/dev-ino (Makefile.am): Likewise.
41593 * modules/dirfd (Makefile.am): Likewise.
41594 * modules/dirname (Makefile.am): Likewise.
41595 * modules/dup2 (Makefile.am): Likewise.
41596 * modules/eealloc (Makefile.am): Likewise.
41597 * modules/error (Makefile.am): Likewise.
41598 * modules/euidaccess (Makefile.am): Likewise.
41599 * modules/exclude (Makefile.am): Likewise.
41600 * modules/exitfail (Makefile.am): Likewise.
41601 * modules/fcntl-safer (Makefile.am): Likewise.
41602 * modules/fcntl (Makefile.am): Likewise.
41603 * modules/file-type (Makefile.am): Likewise.
41604 * modules/fileblocks (Makefile.am): Likewise.
41605 * modules/filemode (Makefile.am): Likewise.
41606 * modules/filenamecat (Makefile.am): Likewise.
41607 * modules/fnmatch (Makefile.am): Likewise.
41608 * modules/fopen-safer (Makefile.am): Likewise.
41609 * modules/fpending (Makefile.am): Likewise.
41610 * modules/fprintftime (Makefile.am): Likewise.
41611 * modules/free (Makefile.am): Likewise.
41612 * modules/fsusage (Makefile.am): Likewise.
41613 * modules/ftruncate (Makefile.am): Likewise.
41614 * modules/fts (Makefile.am): Likewise.
41615 * modules/gc-arcfour (Makefile.am): Likewise.
41616 * modules/gc-des (Makefile.am): Likewise.
41617 * modules/gc-hmac-md5 (Makefile.am): Likewise.
41618 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41619 * modules/gc-md4 (Makefile.am): Likewise.
41620 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41621 * modules/gc-sha1 (Makefile.am): Likewise.
41622 * modules/gc (Makefile.am): Likewise.
41623 * modules/getaddrinfo (Makefile.am): Likewise.
41624 * modules/getcwd (Makefile.am): Likewise.
41625 * modules/getdelim (Makefile.am): Likewise.
41626 * modules/getdomainname (Makefile.am): Likewise.
41627 * modules/getgroups (Makefile.am): Likewise.
41628 * modules/gethostname (Makefile.am): Likewise.
41629 * modules/gethrxtime (Makefile.am): Likewise.
41630 * modules/getline (Makefile.am): Likewise.
41631 * modules/getloadavg (Makefile.am): Likewise.
41632 * modules/getlogin_r (Makefile.am): Likewise.
41633 * modules/getndelim2 (Makefile.am): Likewise.
41634 * modules/getopt (Makefile.am): Likewise.
41635 * modules/getpagesize (Makefile.am): Likewise.
41636 * modules/getpass-gnu (Makefile.am): Likewise.
41637 * modules/getpass (Makefile.am): Likewise.
41638 * modules/getsubopt (Makefile.am): Likewise.
41639 * modules/gettime (Makefile.am): Likewise.
41640 * modules/gettimeofday (Makefile.am): Likewise.
41641 * modules/getugroups (Makefile.am): Likewise.
41642 * modules/getusershell (Makefile.am): Likewise.
41643 * modules/glob (Makefile.am): Likewise.
41644 * modules/group-member (Makefile.am): Likewise.
41645 * modules/hard-locale (Makefile.am): Likewise.
41646 * modules/hash (Makefile.am): Likewise.
41647 * modules/hmac-md5 (Makefile.am): Likewise.
41648 * modules/hmac-sha1 (Makefile.am): Likewise.
41649 * modules/human (Makefile.am): Likewise.
41650 * modules/idcache (Makefile.am): Likewise.
41651 * modules/imaxabs (Makefile.am): Likewise.
41652 * modules/imaxdiv (Makefile.am): Likewise.
41653 * modules/inet_ntop (Makefile.am): Likewise.
41654 * modules/inet_pton (Makefile.am): Likewise.
41655 * modules/intprops (Makefile.am): Likewise.
41656 * modules/inttostr (Makefile.am): Likewise.
41657 * modules/inttypes (Makefile.am): Likewise.
41658 * modules/isapipe (Makefile.am): Likewise.
41659 * modules/javaversion (Makefile.am): Likewise.
41660 * modules/lchmod (Makefile.am): Likewise.
41661 * modules/lchown (Makefile.am): Likewise.
41662 * modules/localcharset (Makefile.am): Likewise.
41663 * modules/long-options (Makefile.am): Likewise.
41664 * modules/lstat (Makefile.am): Likewise.
41665 * modules/malloc (Makefile.am): Likewise.
41666 * modules/mathl (Makefile.am): Likewise.
41667 * modules/mbchar (Makefile.am): Likewise.
41668 * modules/md2 (Makefile.am): Likewise.
41669 * modules/md4 (Makefile.am): Likewise.
41670 * modules/md5 (Makefile.am): Likewise.
41671 * modules/memcasecmp (Makefile.am): Likewise.
41672 * modules/memchr (Makefile.am): Likewise.
41673 * modules/memcmp (Makefile.am): Likewise.
41674 * modules/memcoll (Makefile.am): Likewise.
41675 * modules/memcpy (Makefile.am): Likewise.
41676 * modules/memmem (Makefile.am): Likewise.
41677 * modules/memmove (Makefile.am): Likewise.
41678 * modules/mempcpy (Makefile.am): Likewise.
41679 * modules/memrchr (Makefile.am): Likewise.
41680 * modules/memset (Makefile.am): Likewise.
41681 * modules/memxor (Makefile.am): Likewise.
41682 * modules/mkancesdirs (Makefile.am): Likewise.
41683 * modules/mkdir-p (Makefile.am): Likewise.
41684 * modules/mkdir (Makefile.am): Likewise.
41685 * modules/mkdtemp (Makefile.am): Likewise.
41686 * modules/mkstemp (Makefile.am): Likewise.
41687 * modules/mktime (Makefile.am): Likewise.
41688 * modules/modechange (Makefile.am): Likewise.
41689 * modules/mountlist (Makefile.am): Likewise.
41690 * modules/nanosleep (Makefile.am): Likewise.
41691 * modules/obstack (Makefile.am): Likewise.
41692 * modules/openat (Makefile.am): Likewise.
41693 * modules/pagealign_alloc (Makefile.am): Likewise.
41694 * modules/pathmax (Makefile.am): Likewise.
41695 * modules/physmem (Makefile.am): Likewise.
41696 * modules/poll (Makefile.am): Likewise.
41697 * modules/posixtm (Makefile.am): Likewise.
41698 * modules/posixver (Makefile.am): Likewise.
41699 * modules/putenv (Makefile.am): Likewise.
41700 * modules/quote (Makefile.am): Likewise.
41701 * modules/quotearg (Makefile.am): Likewise.
41702 * modules/raise (Makefile.am): Likewise.
41703 * modules/read-file (Makefile.am): Likewise.
41704 * modules/readline (Makefile.am): Likewise.
41705 * modules/readlink (Makefile.am): Likewise.
41706 * modules/readtokens (Makefile.am): Likewise.
41707 * modules/readutmp (Makefile.am): Likewise.
41708 * modules/realloc (Makefile.am): Likewise.
41709 * modules/regex (Makefile.am): Likewise.
41710 * modules/rename-dest-slash (Makefile.am): Likewise.
41711 * modules/rename (Makefile.am): Likewise.
41712 * modules/rijndael (Makefile.am): Likewise.
41713 * modules/rmdir (Makefile.am): Likewise.
41714 * modules/rpmatch (Makefile.am): Likewise.
41715 * modules/safe-read (Makefile.am): Likewise.
41716 * modules/safe-write (Makefile.am): Likewise.
41717 * modules/same-inode (Makefile.am): Likewise.
41718 * modules/same (Makefile.am): Likewise.
41719 * modules/save-cwd (Makefile.am): Likewise.
41720 * modules/savedir (Makefile.am): Likewise.
41721 * modules/setenv (Makefile.am): Likewise.
41722 * modules/settime (Makefile.am): Likewise.
41723 * modules/sha1 (Makefile.am): Likewise.
41724 * modules/sig2str (Makefile.am): Likewise.
41725 * modules/snprintf (Makefile.am): Likewise.
41726 * modules/stat-macros (Makefile.am): Likewise.
41727 * modules/stat-time (Makefile.am): Likewise.
41728 * modules/stdbool (Makefile.am): Likewise.
41729 * modules/stdint (Makefile.am): Likewise.
41730 * modules/stdlib-safer (Makefile.am): Likewise.
41731 * modules/stpcpy (Makefile.am): Likewise.
41732 * modules/stpncpy (Makefile.am): Likewise.
41733 * modules/strcase (Makefile.am): Likewise.
41734 * modules/strcasestr (Makefile.am): Likewise.
41735 * modules/strchrnul (Makefile.am): Likewise.
41736 * modules/strcspn (Makefile.am): Likewise.
41737 * modules/strdup (Makefile.am): Likewise.
41738 * modules/strerror (Makefile.am): Likewise.
41739 * modules/strftime (Makefile.am): Likewise.
41740 * modules/strndup (Makefile.am): Likewise.
41741 * modules/strnlen (Makefile.am): Likewise.
41742 * modules/strpbrk (Makefile.am): Likewise.
41743 * modules/strsep (Makefile.am): Likewise.
41744 * modules/strstr (Makefile.am): Likewise.
41745 * modules/strtod (Makefile.am): Likewise.
41746 * modules/strtoimax (Makefile.am): Likewise.
41747 * modules/strtok_r (Makefile.am): Likewise.
41748 * modules/strtol (Makefile.am): Likewise.
41749 * modules/strtoll (Makefile.am): Likewise.
41750 * modules/strtoul (Makefile.am): Likewise.
41751 * modules/strtoull (Makefile.am): Likewise.
41752 * modules/strtoumax (Makefile.am): Likewise.
41753 * modules/strverscmp (Makefile.am): Likewise.
41754 * modules/sys_socket (Makefile.am): Likewise.
41755 * modules/sys_stat (Makefile.am): Likewise.
41756 * modules/sysexits (Makefile.am): Likewise.
41757 * modules/time_r (Makefile.am): Likewise.
41758 * modules/timegm (Makefile.am): Likewise.
41759 * modules/timespec (Makefile.am): Likewise.
41760 * modules/tmpfile-safer (Makefile.am): Likewise.
41761 * modules/trim (Makefile.am): Likewise.
41762 * modules/unistd-safer (Makefile.am): Likewise.
41763 * modules/unlinkdir (Makefile.am): Likewise.
41764 * modules/unlocked-io (Makefile.am): Likewise.
41765 * modules/userspec (Makefile.am): Likewise.
41766 * modules/utime (Makefile.am): Likewise.
41767 * modules/utimecmp (Makefile.am): Likewise.
41768 * modules/utimens (Makefile.am): Likewise.
41769 * modules/vasnprintf (Makefile.am): Likewise.
41770 * modules/vasprintf (Makefile.am): Likewise.
41771 * modules/vsnprintf (Makefile.am): Likewise.
41772 * modules/xalloc (Makefile.am): Likewise.
41773 * modules/xgetcwd (Makefile.am): Likewise.
41774 * modules/xnanosleep (Makefile.am): Likewise.
41775 * modules/xreadlink (Makefile.am): Likewise.
41776 * modules/xstrtod (Makefile.am): Likewise.
41777 * modules/xstrtol (Makefile.am): Likewise.
41778 * modules/xstrtold (Makefile.am): Likewise.
41779 * modules/yesno (Makefile.am): Likewise.
41780 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41782 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41784 * modules/error (Makefile.am): Distribute files through
41785 EXTRA_DIST, not lib_SOURCES.
41787 2006-10-12 Eric Blake <ebb9@byu.net>
41789 * modules/error (Makefile.am): Distribute files in /lib.
41790 * modules/obstack (Makefile.am): Likewise.
41792 2006-10-12 Bruno Haible <bruno@clisp.org>
41794 * modules/acl (Makefile.am): Distribute all files in lib/ through
41796 * modules/arcfour (Makefile.am): Likewise.
41797 * modules/arctwo (Makefile.am): Likewise.
41798 * modules/argmatch (Makefile.am): Likewise.
41799 * modules/argz (Makefile.am): Likewise.
41800 * modules/atexit (Makefile.am): Likewise.
41801 * modules/backupfile (Makefile.am): Likewise.
41802 * modules/c-strtod (Makefile.am): Likewise.
41803 * modules/c-strtold (Makefile.am): Likewise.
41804 * modules/calloc (Makefile.am): Likewise.
41805 * modules/canon-host (Makefile.am): Likewise.
41806 * modules/canonicalize (Makefile.am): Likewise.
41807 * modules/chdir-long (Makefile.am): Likewise.
41808 * modules/chdir-safer (Makefile.am): Likewise.
41809 * modules/check-version (Makefile.am): Likewise.
41810 * modules/chown (Makefile.am): Likewise.
41811 * modules/cloexec (Makefile.am): Likewise.
41812 * modules/close-stream (Makefile.am): Likewise.
41813 * modules/closeout (Makefile.am): Likewise.
41814 * modules/crc (Makefile.am): Likewise.
41815 * modules/cycle-check (Makefile.am): Likewise.
41816 * modules/des (Makefile.am): Likewise.
41817 * modules/dirfd (Makefile.am): Likewise.
41818 * modules/dirname (Makefile.am): Likewise.
41819 * modules/dup2 (Makefile.am): Likewise.
41820 * modules/euidaccess (Makefile.am): Likewise.
41821 * modules/exclude (Makefile.am): Likewise.
41822 * modules/exitfail (Makefile.am): Likewise.
41823 * modules/fcntl-safer (Makefile.am): Likewise.
41824 * modules/file-type (Makefile.am): Likewise.
41825 * modules/fileblocks (Makefile.am): Likewise.
41826 * modules/filemode (Makefile.am): Likewise.
41827 * modules/filenamecat (Makefile.am): Likewise.
41828 * modules/fnmatch (Makefile.am): Likewise.
41829 * modules/fopen-safer (Makefile.am): Likewise.
41830 * modules/fpending (Makefile.am): Likewise.
41831 * modules/fprintftime (Makefile.am): Likewise.
41832 * modules/free (Makefile.am): Likewise.
41833 * modules/fsusage (Makefile.am): Likewise.
41834 * modules/ftruncate (Makefile.am): Likewise.
41835 * modules/fts (Makefile.am): Likewise.
41836 * modules/gc (Makefile.am): Likewise.
41837 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41838 * modules/getaddrinfo (Makefile.am): Likewise.
41839 * modules/getcwd (Makefile.am): Likewise.
41840 * modules/getdelim (Makefile.am): Likewise.
41841 * modules/getdomainname (Makefile.am): Likewise.
41842 * modules/getgroups (Makefile.am): Likewise.
41843 * modules/gethostname (Makefile.am): Likewise.
41844 * modules/gethrxtime (Makefile.am): Likewise.
41845 * modules/getline (Makefile.am): Likewise.
41846 * modules/getloadavg (Makefile.am): Likewise.
41847 * modules/getlogin_r (Makefile.am): Likewise.
41848 * modules/getopt (Makefile.am): Likewise.
41849 * modules/getpass (Makefile.am): Likewise.
41850 * modules/getpass-gnu (Makefile.am): Likewise.
41851 * modules/getsubopt (Makefile.am): Likewise.
41852 * modules/gettime (Makefile.am): Likewise.
41853 * modules/gettimeofday (Makefile.am): Likewise.
41854 * modules/getugroups (Makefile.am): Likewise.
41855 * modules/getusershell (Makefile.am): Likewise.
41856 * modules/glob (Makefile.am): Likewise.
41857 * modules/group-member (Makefile.am): Likewise.
41858 * modules/hard-locale (Makefile.am): Likewise.
41859 * modules/hash (Makefile.am): Likewise.
41860 * modules/hmac-md5 (Makefile.am): Likewise.
41861 * modules/hmac-sha1 (Makefile.am): Likewise.
41862 * modules/human (Makefile.am): Likewise.
41863 * modules/idcache (Makefile.am): Likewise.
41864 * modules/imaxabs (Makefile.am): Likewise.
41865 * modules/imaxdiv (Makefile.am): Likewise.
41866 * modules/inet_ntop (Makefile.am): Likewise.
41867 * modules/inet_pton (Makefile.am): Likewise.
41868 * modules/inttostr (Makefile.am): Likewise.
41869 * modules/isapipe (Makefile.am): Likewise.
41870 * modules/lchown (Makefile.am): Likewise.
41871 * modules/long-options (Makefile.am): Likewise.
41872 * modules/lstat (Makefile.am): Likewise.
41873 * modules/malloc (Makefile.am): Likewise.
41874 * modules/mathl (Makefile.am): Likewise.
41875 * modules/mbchar (Makefile.am): Likewise.
41876 * modules/md2 (Makefile.am): Likewise.
41877 * modules/md4 (Makefile.am): Likewise.
41878 * modules/md5 (Makefile.am): Likewise.
41879 * modules/memcasecmp (Makefile.am): Likewise.
41880 * modules/memchr (Makefile.am): Likewise.
41881 * modules/memcmp (Makefile.am): Likewise.
41882 * modules/memcoll (Makefile.am): Likewise.
41883 * modules/memcpy (Makefile.am): Likewise.
41884 * modules/memmem (Makefile.am): Likewise.
41885 * modules/memmove (Makefile.am): Likewise.
41886 * modules/mempcpy (Makefile.am): Likewise.
41887 * modules/memrchr (Makefile.am): Likewise.
41888 * modules/memset (Makefile.am): Likewise.
41889 * modules/memxor (Makefile.am): Likewise.
41890 * modules/mkancesdirs (Makefile.am): Likewise.
41891 * modules/mkdir (Makefile.am): Likewise.
41892 * modules/mkdir-p (Makefile.am): Likewise.
41893 * modules/mkdtemp (Makefile.am): Likewise.
41894 * modules/mkstemp (Makefile.am): Likewise.
41895 * modules/mktime (Makefile.am): Likewise.
41896 * modules/modechange (Makefile.am): Likewise.
41897 * modules/mountlist (Makefile.am): Likewise.
41898 * modules/nanosleep (Makefile.am): Likewise.
41899 * modules/openat (Makefile.am): Likewise.
41900 * modules/pagealign_alloc (Makefile.am): Likewise.
41901 * modules/physmem (Makefile.am): Likewise.
41902 * modules/poll (Makefile.am): Likewise.
41903 * modules/posixtm (Makefile.am): Likewise.
41904 * modules/posixver (Makefile.am): Likewise.
41905 * modules/putenv (Makefile.am): Likewise.
41906 * modules/quote (Makefile.am): Likewise.
41907 * modules/quotearg (Makefile.am): Likewise.
41908 * modules/raise (Makefile.am): Likewise.
41909 * modules/read-file (Makefile.am): Likewise.
41910 * modules/readline (Makefile.am): Likewise.
41911 * modules/readlink (Makefile.am): Likewise.
41912 * modules/readtokens (Makefile.am): Likewise.
41913 * modules/readutmp (Makefile.am): Likewise.
41914 * modules/realloc (Makefile.am): Likewise.
41915 * modules/regex (Makefile.am): Likewise.
41916 * modules/rename (Makefile.am): Likewise.
41917 * modules/rename-dest-slash (Makefile.am): Likewise.
41918 * modules/rijndael (Makefile.am): Likewise.
41919 * modules/rmdir (Makefile.am): Likewise.
41920 * modules/rpmatch (Makefile.am): Likewise.
41921 * modules/safe-read (Makefile.am): Likewise.
41922 * modules/safe-write (Makefile.am): Likewise.
41923 * modules/same (Makefile.am): Likewise.
41924 * modules/save-cwd (Makefile.am): Likewise.
41925 * modules/savedir (Makefile.am): Likewise.
41926 * modules/setenv (Makefile.am): Likewise.
41927 * modules/settime (Makefile.am): Likewise.
41928 * modules/sha1 (Makefile.am): Likewise.
41929 * modules/sig2str (Makefile.am): Likewise.
41930 * modules/snprintf (Makefile.am): Likewise.
41931 * modules/stdlib-safer (Makefile.am): Likewise.
41932 * modules/stpcpy (Makefile.am): Likewise.
41933 * modules/stpncpy (Makefile.am): Likewise.
41934 * modules/strcase (Makefile.am): Likewise.
41935 * modules/strcasestr (Makefile.am): Likewise.
41936 * modules/strchrnul (Makefile.am): Likewise.
41937 * modules/strcspn (Makefile.am): Likewise.
41938 * modules/strdup (Makefile.am): Likewise.
41939 * modules/strerror (Makefile.am): Likewise.
41940 * modules/strftime (Makefile.am): Likewise.
41941 * modules/strndup (Makefile.am): Likewise.
41942 * modules/strnlen (Makefile.am): Likewise.
41943 * modules/strpbrk (Makefile.am): Likewise.
41944 * modules/strsep (Makefile.am): Likewise.
41945 * modules/strstr (Makefile.am): Likewise.
41946 * modules/strtod (Makefile.am): Likewise.
41947 * modules/strtoimax (Makefile.am): Likewise.
41948 * modules/strtok_r (Makefile.am): Likewise.
41949 * modules/strtol (Makefile.am): Likewise.
41950 * modules/strtoll (Makefile.am): Likewise.
41951 * modules/strtoul (Makefile.am): Likewise.
41952 * modules/strtoull (Makefile.am): Likewise.
41953 * modules/strtoumax (Makefile.am): Likewise.
41954 * modules/strverscmp (Makefile.am): Likewise.
41955 * modules/time_r (Makefile.am): Likewise.
41956 * modules/timegm (Makefile.am): Likewise.
41957 * modules/tmpfile-safer (Makefile.am): Likewise.
41958 * modules/unistd-safer (Makefile.am): Likewise.
41959 * modules/unlinkdir (Makefile.am): Likewise.
41960 * modules/userspec (Makefile.am): Likewise.
41961 * modules/utime (Makefile.am): Likewise.
41962 * modules/utimecmp (Makefile.am): Likewise.
41963 * modules/utimens (Makefile.am): Likewise.
41964 * modules/vasnprintf (Makefile.am): Likewise.
41965 * modules/vasprintf (Makefile.am): Likewise.
41966 * modules/vsnprintf (Makefile.am): Likewise.
41967 * modules/xalloc (Makefile.am): Likewise.
41968 * modules/xgetcwd (Makefile.am): Likewise.
41969 * modules/xnanosleep (Makefile.am): Likewise.
41970 * modules/xreadlink (Makefile.am): Likewise.
41971 * modules/xstrtod (Makefile.am): Likewise.
41972 * modules/xstrtol (Makefile.am): Likewise.
41973 * modules/xstrtold (Makefile.am): Likewise.
41974 * modules/yesno (Makefile.am): Likewise.
41976 2006-10-12 Jim Meyering <jim@meyering.net>
41978 * m4/getloadavg.m4: Revert the change below.
41980 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41981 lib/getloadavg.c using "ls -L", not "test -f". The latter would
41982 fail with a symlink, which is what coreutils' ./bootstrap now
41983 creates by default.
41985 2006-10-12 Bruno Haible <bruno@clisp.org>
41987 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41989 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41990 MSVC and mingw explicitly.
41992 2006-10-11 Simon Josefsson <jas@extundo.com>
41993 Bruno Haible <bruno@clisp.org>
41995 Add support for multiple gnulib-tool invocations in the scope of a
41996 single configure.ac file.
41997 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41998 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41999 with the same contents as the _LIBADD variable.
42000 (func_emit_initmacro_start, func_emit_initmacro_end,
42001 func_emit_initmacro_done): New functions.
42002 (func_import, func_create_testdir): Invoke them. Allow the identifiers
42003 gl_LIBOBJS and gl_LTLIBOBJS.
42005 2006-10-11 Bruno Haible <bruno@clisp.org>
42007 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42008 (func_create_testdir): Don't create po/Makefile.am, don't invoke
42009 autoreconf. Instead, invoke autopoint explicitly but move back the
42010 *.m4 files from gnulib.
42012 2006-10-11 Bruno Haible <bruno@clisp.org>
42014 * gnulib-tool (func_usage): Make module names after --create-testdir
42016 (func_create_testdir): If no module was specified, use nearly all
42019 2006-10-12 Jim Meyering <jim@meyering.net>
42021 Big performance improvement for fts-based tools that use FTS_NOSTAT.
42022 Avoid spurious inode-mismatch problems on non-POSIX file systems.
42023 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42024 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42025 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42026 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42027 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42028 (fts_set_stat_required): New function.
42029 (fts_open): Defer the calls to fts_stat, if possible or requested.
42030 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42031 into fts_stat itself.
42032 (fts_read): Perform any required (deferred) fts_stat call.
42033 (fts_build): Likewise, for the directory we're about to open and read.
42034 In the readdir loop, carefully decide whether each entry will require
42035 an eventual call to fts_stat, using dirent.d_type info if available.
42036 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42037 a command line argument into this function. Update all callers.
42038 Map a return value of FTS_DOT to FTS_D for a command line argument.
42039 * modules/fts (Depends-on): Add d-type. Alphabetize.
42040 Thanks to Miklos Szeredi for his tenacity and for the initial
42041 bug report about "find" failing on a FUSE-based file system.
42043 * lib/fts.c (fts_open): Use consistent indentation.
42045 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
42047 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42048 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42049 reported by Jim Meyering. All uses of cache variables renamed
42050 to match Autoconf's.
42051 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42054 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42055 Fix misspelling in diagnostic.
42057 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
42059 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42060 defined. Problem reported by Matthew Woehlke.
42062 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42063 Add support for Tandem NonStop R series.
42064 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42067 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42068 (has_trailing_slash): Omit size arg; all callers changed.
42069 Omit 'inline', since it doesn't help performance and we'd
42070 need to configure it.
42071 Don't count //, ///, etc. as having a trailing slash.
42072 As a side effect, this removes a C99ism reported by Matthew Woehlke.
42073 (rpl_rename_dest_slash): On failure, use rename's errno rather
42074 than (in some cases) an incorrect or junk errno.
42075 Simplify code by removing need to compute length; this does
42076 cause it to make two passes instead of one over the file name,
42079 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42080 change, since Autoconf's version may no longer be appropriate now
42081 that we are using CVS Autoconf's version. Add support for Tandem.
42083 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
42084 Bruno Haible <bruno@clisp.org>
42086 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42087 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42088 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42089 gl_AC_TYPE_LONG_LONG.
42091 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42092 instead of HAVE_LONG_LONG.
42093 * lib/printf-args.c (printf_fetchargs): Likewise.
42094 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42095 * lib/vasnprintf.c (VASNPRINTF): Likewise.
42096 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42097 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42098 gl_AC_TYPE_LONG_LONG.
42100 2006-10-11 Bruno Haible <bruno@clisp.org>
42102 * m4/longlong.m4: Add comments.
42103 * m4/ulonglong.m4: Likewise.
42105 2006-10-10 Bruno Haible <bruno@clisp.org>
42107 Make it possible to #define stpcpy, strdup to aliases.
42108 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42109 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42111 2006-10-10 Bruno Haible <bruno@clisp.org>
42113 Make it possible to #define gcd to an alias.
42114 * lib/gcd.c: Include config.h.
42116 2006-10-10 Bruno Haible <bruno@clisp.org>
42118 Make it possible to #define c_isascii to an alias.
42119 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42120 defined. Undefine the macros before defining them, to avoid gcc
42122 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42123 define NO_C_CTYPE_MACROS early.
42125 2006-10-10 Bruno Haible <bruno@clisp.org>
42127 Make it possible to #define set_program_name to an alias.
42128 * lib/progname.c: Don't undefine set_program_name; instead, undefine
42129 ENABLE_RELOCATABLE early.
42131 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
42133 Port to Tandem NSK OSS, which has 64-bit signed int but at most
42134 32-bit unsigned int. Problem reported by Matthew Woehlke in:
42135 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42136 More generally, don't assume that 64-bit signed int is available
42137 if unsigned int is, and vice versa.
42138 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42139 unsigned symbols, not on their signed counterparts.
42140 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42141 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42142 (UINT64_C, UINTMAX_C):
42144 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42145 unsigned counterparts.
42146 (Have_long_long, Unsigned): New macros.
42147 (Int): Renamed from INT.
42148 (strtoimax): Use the new macros.
42149 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42150 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42151 * modules/inttypes (inttypes.h): Substitute
42152 HAVE_UNSIGNED_LONG_LONG_INT.
42153 * modules/stdint (stdint.h): Likewise.
42154 (Files): Add m4/ulonglong.m4.
42156 2006-10-10 Bruno Haible <bruno@clisp.org>
42158 Fix a gcc -Wshadow warning.
42159 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42161 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42162 gl_linked_indexof_from_to): Likewise.
42163 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42165 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42167 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42168 Reported by Eric Blake.
42170 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
42172 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42173 for NetBSD. Problem reported by Bruno Haible.
42175 2006-10-09 Jim Meyering <jim@meyering.net>
42177 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42178 Patch from Bruno Haible.
42180 2006-10-09 Jim Meyering <jim@meyering.net>
42182 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42183 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42184 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42186 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
42188 Don't include <config.h> twice; this doesn't work in some cases,
42189 e.g., when config.h has "#define intmax_t long long int" and
42190 we include <config.h>, <inttypes.h>, <config.h> in that order.
42191 Problem reported by Matthew Woehlke in:
42192 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42193 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42194 * lib/fts-cycle.c: Don't include config.h.
42195 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42196 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42197 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
42198 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42200 * lib/xstrtoumax.c: Likewise.
42201 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42202 __strtol and the like, so that this module is more like its siblings.
42203 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42204 Remove; no longer needed now that we assume gnulib inttypes.h.
42206 2006-10-08 Bruno Haible <bruno@clisp.org>
42208 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42211 2006-10-07 Jim Meyering <jim@meyering.net>
42213 * modules/inttypes (inttypes.h): Revert what seems to have been
42214 an inadvertent part of today's change: use "|", not "/" in the
42215 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42217 2006-10-07 Bruno Haible <bruno@clisp.org>
42219 * modules/sublist: New file.
42221 2006-10-07 Bruno Haible <bruno@clisp.org>
42223 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42224 * modules/argz (argz.h): Likewise.
42225 * modules/arpa_inet (arpa/inet.h): Likewise.
42226 * modules/byteswap (byteswap.h): Likewise.
42227 * modules/configmake (configmake.h): Likewise.
42228 * modules/fcntl (fcntl.h): Likewise.
42229 * modules/fnmatch (fnmatch.h): Likewise.
42230 * modules/getopt (getopt.h): Likewise.
42231 * modules/glob (glob.h): Likewise.
42232 * modules/inttypes (inttypes.h): Likewise.
42233 * modules/netinet_in (netinet/in.h): Likewise.
42234 * modules/poll (poll.h): Likewise.
42235 * modules/stdbool (stdbool.h): Likewise.
42236 * modules/stdint (stdint.h): Likewise.
42237 * modules/sys_select (sys/select.h): Likewise.
42238 * modules/sys_socket (sys/socket.h): Likewise.
42239 * modules/sys_stat (sys/stat.h): Likewise.
42240 * modules/sysexits (sysexits.h): Likewise.
42241 * modules/unistd (unistd.h): Likewise.
42242 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42243 Add a "DO NOT EDIT" comment to the generated file.
42244 (func_import): Likewise for gnulib-comp.m4.
42246 2006-10-07 Bruno Haible <bruno@clisp.org>
42248 * lib/gl_sublist.h: New file.
42249 * lib/gl_sublist.c: New file.
42251 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
42253 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42254 name (relative to the original working directory) and the file
42255 name component (relative to the temporary working directory). All
42257 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42258 * lib/mkdir-p.c (make_dir_parents): Likewise.
42259 * lib/mkdir-p.h (make_dir_parents): Likewise.
42261 2006-10-06 Eric Blake <ebb9@byu.net>
42263 Define several macros for use by the clean-temp module.
42264 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42265 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42266 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42268 * lib/clean-temp.h (close_stream_temp): New declaration.
42269 * lib/clean-temp.c (includes): Pull in headers according to what
42270 other modules are in use.
42271 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42273 2006-10-06 Bruno Haible <bruno@clisp.org>
42275 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42276 instead of fopen, fwriteerror.
42278 2006-10-06 Bruno Haible <bruno@clisp.org>
42280 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42281 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42283 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42284 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42285 Return an error indicator.
42286 Suggested by Eric Blake.
42288 2006-10-06 Bruno Haible <bruno@clisp.org>
42290 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42291 Reported by Eric Blake.
42293 2006-10-06 Bruno Haible <bruno@clisp.org>
42295 * modules/closeout (Description): Mention stderr too.
42297 2006-10-06 Bruno Haible <bruno@clisp.org>
42298 and Paul Eggert <eggert@cs.ucla.edu>
42300 * lib/closeout.c (close_stdout): Also close stderr.
42301 * lib/closeout.h: Update comment.
42303 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
42305 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42306 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42307 * lib/dirchownmod.c: Include lchown.h.
42308 * lib/lchown.c: Don't include files that lchown.h now includes.
42309 Don't declare chown, since lchown.h now does that.
42310 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42311 (lchown): Define to rpl_chown if lchown is declared but
42312 does not exist. Declare using a prototype if lchown is not
42313 declared. Add a copyright notice.
42314 * lib/mkstemp.h: Include <unistd.h>.
42315 * lib/openat.c: Include lchown.h.
42317 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42318 we now test for that separately.
42319 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42320 rather than O_NOFOLLOW, when testing whether it's possible to
42321 avoid a race condition reliably.
42322 * lib/savewd.c (savewd_chdir): Likewise.
42324 Remove macros that are no longer needed now that stdint.h is
42326 * lib/fsusage.c (UINTMAX_MAX): Remove.
42327 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42328 * lib/utimecmp.c (SIZE_MAX): Remove.
42330 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42332 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42333 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
42336 2006-10-05 Bruno Haible <bruno@clisp.org>
42338 * lib/gl_list.h (gl_sortedlist_search_from_to,
42339 gl_sortedlist_indexof_from_to): New declarations.
42340 (gl_list_implementation): New fields sortedlist_search_from_to,
42341 sortedlist_indexof_from_to.
42342 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42344 * lib/gl_list.c (gl_sortedlist_search_from_to,
42345 gl_sortedlist_indexof_from_to): New functions.
42346 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42348 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42349 (gl_array_sortedlist_search_from_to): New function.
42350 (gl_array_list_implementation): Update.
42351 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42353 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42354 (gl_carray_sortedlist_search_from_to): New function.
42355 (gl_carray_list_implementation): Update.
42356 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42357 gl_linked_sortedlist_indexof_from_to): New functions.
42358 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42359 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42360 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42361 gl_tree_sortedlist_indexof_from_to): New functions.
42362 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42363 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42365 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42366 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42369 2006-10-05 Bruno Haible <bruno@clisp.org>
42371 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42372 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42373 (struct gl_list_implementation): Add fields search_from_to,
42374 indexof_from_to. Remove fields search, indexof.
42375 (gl_list_search): Use the search_from_to method.
42376 (gl_list_search_from, gl_list_search_from_to): New functions.
42377 (gl_list_indexof): Use the indexof_from_to method.
42378 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42379 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42380 (gl_list_search_from, gl_list_search_from_to): New functions.
42381 (gl_list_indexof): Use the indexof_from_to method.
42382 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42383 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42384 gl_array_indexof. Add start_index, end_index arguments.
42385 (gl_array_search_from_to): Renamed from gl_array_search. Add
42386 start_index, end_index arguments.
42387 (gl_array_remove, gl_array_list_implementation): Update.
42388 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42389 gl_carray_indexof. Add start_index, end_index arguments.
42390 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42391 start_index, end_index arguments.
42392 (gl_carray_remove, gl_carray_list_implementation): Update.
42393 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42394 gl_linked_search. Add start_index, end_index arguments.
42395 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42396 start_index, end_index arguments.
42397 (gl_linked_remove): Update.
42398 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42399 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42400 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42402 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42403 gl_tree_search. Add start_index, end_index arguments.
42404 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42405 start_index, end_index arguments.
42406 (gl_tree_remove): Update.
42407 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42408 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42409 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42411 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42412 gl_tree_search. Add start_index, end_index arguments.
42413 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42414 start_index, end_index arguments.
42415 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42417 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42419 2006-10-05 Bruno Haible <bruno@clisp.org>
42421 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42423 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42424 fwriteerror_temp): New declarations.
42425 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42426 (descriptors): New variable.
42427 (cleanup): First, close the descriptors.
42428 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42429 fclose_temp, fwriteerror_temp): New functions.
42431 2006-10-04 Jim Meyering <jim@meyering.net>
42433 * lib/fts.c (fts_open): Tiny comment change.
42435 2006-10-04 Bruno Haible <bruno@clisp.org>
42437 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42438 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42440 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42441 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42442 gl_LOCK_EARLY_BODY.
42443 (gl_LOCK): Require gl_LOCK_BODY.
42445 2006-10-04 Bruno Haible <bruno@clisp.org>
42447 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42448 (gl_oset_search_atleast): New declaration.
42449 (struct gl_oset_implementation): Add field 'search_atleast'.
42450 (gl_oset_search_atleast): New inline function.
42451 * lib/gl_oset.c (gl_oset_search_atleast): New function.
42452 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42453 (gl_array_oset_implementation): Update.
42454 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42455 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42456 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42458 2006-10-04 Bruno Haible <bruno@clisp.org>
42460 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42462 2006-10-03 Bruno Haible <bruno@clisp.org>
42464 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42465 from gl_avltreehash_list_implementation.
42467 2006-10-03 Bruno Haible <bruno@clisp.org>
42469 * lib/gl_oset.c (gl_oset_add): Fix return type.
42471 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
42473 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42475 2006-10-02 Eric Blake <ebb9@byu.net>
42477 * modules/strnlen (Depends-on): Add extensions.
42479 2006-10-02 Eric Blake <ebb9@byu.net>
42481 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42482 definition in 2.60+.
42484 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
42486 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42489 2006-10-02 Bruno Haible <bruno@clisp.org>
42491 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42492 to the AUTOMAKE_OPTIONS.
42493 Reported by Jim Meyering.
42495 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
42497 Work around bug in Solaris 10 /proc file system:
42498 /proc/self/fd/NNN/.. isn't the parent directory of
42499 the directory whose file descriptor is NNN. This needs to
42500 be worked around at run time, not compile time, since a
42501 program might be built on Solaris 8, where things work, and
42503 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
42504 to use the following interface instead:
42505 (OPENAT_BUFFER_SIZE): New macro.
42506 (openat_proc_name): New function.
42507 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42508 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42510 * lib/openat-proc.c: New file.
42511 * modules/openat (Files): Add lib/openat-proc.c.
42512 (Depends-on): Add same-inode, stdbool.
42513 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42515 2006-09-29 Bruno Haible <bruno@clisp.org>
42517 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42518 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42519 argument. Set stdout_closed before testing for ferror, not after.
42520 (fwriteerror, fwriteerror_no_ebadf): New functions.
42522 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42524 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42526 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
42528 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42529 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42531 2006-09-28 Jim Meyering <jim@meyering.net>
42533 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42534 Include <unistd.h>.
42536 2006-09-28 Bruno Haible <bruno@clisp.org>
42538 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42539 * modules/linkedhash-list (Depends-on): Likewise.
42540 * modules/rbtreehash-list (Depends-on): Likewise.
42542 2006-09-28 Bruno Haible <bruno@clisp.org>
42544 * lib/strndup.h: Simplify the redefinition of strndup.
42545 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42546 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42548 2006-09-28 Bruno Haible <bruno@clisp.org>
42550 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42551 * lib/gl_linkedhash_list.c: Likewise.
42552 * lib/gl_rbtreehash_list.c: Likewise.
42554 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
42556 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42559 * lib/__fpending.h: Don't include <stdio_ext.h> unless
42560 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
42561 it causes <stdio_ext.h> to cause a compile-time error.
42562 Problem reported by Nelson H. F. Beebe.
42563 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42564 of HAVE_DECL___PENDING.
42566 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42567 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42570 2006-09-27 Jim Meyering <jim@meyering.net>
42572 This file could end up with a definition for a function
42573 named __strndup, rather than rpl_strndup on a system with
42574 incomplete weak_alias support.
42575 * lib/strndup.c (strndup): Rename from __strndup.
42576 Remove #defines that used to map __strndup to strndup.
42577 Don't use K&R prototypes.
42578 Remove LIBC-related code, since this file is not sync'd with glibc.
42579 * lib/strndup.h: Revamp, accordingly.
42580 * m4/strndup.m4: Modernize.
42582 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
42584 * modules/savewd (Depends-on): Add 'raise'.
42585 * lib/savewd.c: Include <signal.h>, for 'raise'.
42587 2006-09-26 Jim Meyering <jim@meyering.net>
42589 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42590 when we detect Darwin 8.7.0's acl_get_file bug.
42591 Rearrange to perform the new (below) run-test while $LIBS
42592 contains any acl-related library. Set USE_ACL at the end.
42593 (gl_ACL_GET_FILE): New function.
42595 2006-09-26 Eric Blake <ebb9@byu.net>
42597 * lib/verror.c: Include <config.h> unconditionally.
42599 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
42601 * modules/clock-time (Maintainer): Add self.
42602 * modules/getlogin_r (Depends-on): Add extensions.
42604 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42606 * modules/clock-time: New module.
42607 * modules/nanosleep (Depends-on): Add clock-time.
42608 * modules/gethrxtime (Depends-on): Likewise.
42609 * modules/gettime (Depends-on): Likewise.
42610 * modules/settime (Depends-on): Likewise.
42612 * modules/fts-lgpl: Depend on openat.
42613 * modules/mkancesdirs: Depend on savewd.
42614 * modules/mkdir-p: Likewise.
42616 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42618 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42620 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42621 `gl_have_arbitrary_file_name_length_limit' to
42622 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42623 actually works between configure runs.
42625 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42626 Bruno Haible <bruno@clisp.org>
42628 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42630 2006-09-25 Jim Meyering <jim@meyering.net>
42632 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42633 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42635 2006-09-25 Eric Blake <ebb9@byu.net>
42637 * gnulib-tool (func_import, func_create_testdir): Fix typos in
42638 exec's in 2006-09-18 patch when shuffling fds.
42640 2006-09-25 Bruno Haible <bruno@clisp.org>
42642 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42643 Reported by Jim Meyering.
42645 2006-09-24 Jim Meyering <jim@meyering.net>
42647 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42648 compare a pointer against a literal "0". That caused failures with
42649 at least HP-UX's hpcc.
42651 2006-09-22 Simon Josefsson <jas@extundo.com>
42655 * modules/gc-hmac-sha1:
42656 * modules/gc-hmac-md5:
42658 * modules/gc-arcfour: Distribute more files.
42660 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42662 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42663 (gl_linked_iterator_from_to): Initialize struct completely.
42664 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42665 (gl_tree_iterator_from_to): Likewise
42666 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42667 * lib/gl_array_list.c [lint] (gl_array_iterator)
42668 (gl_array_iterator_from_to): Likewise.
42669 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42670 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42671 (gl_carray_iterator_from_to): Likewise.
42673 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42674 * lib/md4.c (md4_process_block): Remove unused variable.
42675 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42676 parentheses for clarity.
42678 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42680 * modules/bison-i18n (Depends-on): Add gettext.
42682 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42684 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42685 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42686 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42687 also add missing comma that caused broken test.
42688 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42689 stdlib.h, for `abort'.
42690 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42692 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42693 include unistd.h if present, for `rmdir'.
42694 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42696 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42697 in the process include standard headers for prototypes.
42698 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42699 gets declared on GNU/Linux.
42700 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42701 unistd.h, for `rmdir'.
42702 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42704 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42706 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42708 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42710 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42712 * gnulib-tool (func_version): Create output all at once. This
42713 may help avoid triggering unnecessary SIGPIPEs, and at any
42714 rate it doesn't hurt.
42716 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42717 Bruno Haible <bruno@clisp.org>
42719 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42720 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42721 * m4/signed.m4 (bh_C_SIGNED): Likewise.
42723 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42724 (gl_FUNC_VASPRINTF): Invoke it.
42726 2006-09-22 Bruno Haible <bruno@clisp.org>
42728 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42729 getloadavg.c as first argument.
42731 2006-09-22 Bruno Haible <bruno@clisp.org>
42733 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42734 at the beginning of the gl_INIT macro.
42735 * modules/getloadavg (configure.ac): Pass $gl_source_base to
42738 2006-09-22 Bruno Haible <bruno@clisp.org>
42740 * gnulib-tool (func_create_megatestdir): Don't include the config-h
42742 Suggested by Ralf Wildenhues.
42744 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
42746 Import this patch from libc:
42748 2006-09-06 Jakub Jelinek <jakub@redhat.com>
42750 * lib/regex_internal.c (re_string_reconstruct): Handle
42751 offset < pstr->valid_raw_len && pstr->offsets_needed case.
42752 Ensure no bytes read before raw_mbs array. Pass a saved copy of
42753 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42754 re_string_context_at.
42756 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42758 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42759 gl_REGEX now does it for us.
42760 (gl_REGEX): Add test taken from
42761 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42763 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42764 Check that large offsets work. Modernize Autoconf usages.
42765 Prefer "yes" to mean a good thing rather than a bad.
42766 Don't put "#define mkstemp" in config.h, as this might interfere
42767 with standard system headers that "#define mkstemp mkstemp64".
42769 * modules/mkstemp (Depends-on): Add extensions, so that
42770 mkstemp is visible on some platforms.
42771 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42772 (Include): Change to "mkstemp.h" from <stdlib.h>.
42773 (Files): Add mkstemp.h.
42775 * lib/mkstemp.h: New file, since some standard headers
42777 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42778 Include "mkstemp.h".
42779 Make the _LIBC code resemble glibc original more,
42780 e.g., use K&R style.
42781 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42782 (mkstemp): Remove, since mkstemp.h does this for us.
42783 * lib/stdlib--.h: Include mkstemp.h.
42785 Import this patch from libc:
42787 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42789 * lib/tempname.c (__gen_tempname): Change attempts_min
42790 into a macro. Use preprocessor to decide how to initialize
42791 attempts [Coverity CID 67].
42793 2006-09-20 Bruno Haible <bruno@clisp.org>
42795 * lib/mkdtemp.c: Import from libc.
42796 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42797 * sysdeps/posix/tempname.c (__gen_tempname): Change
42798 attempts_min into a macro. Use preprocessor to decide how to
42799 initialize attempts [Coverity CID 67].
42800 2001-11-27 Paul Eggert <eggert@twinsun.com>
42801 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42802 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42804 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42806 * gnulib-tool (func_exit): New function, to allow to pass the
42807 exit status portably through the trap. Use everywhere.
42808 (--help, --version): Signal a write error.
42809 (trap): catch SIGPIPE, for write errors.
42810 Exit at the end of the trap, with the correct exit status.
42812 2006-09-19 Karl Berry <karl@gnu.org>
42814 * doc/gnulib.texi: note about the license texinfo files.
42816 2006-09-19 Eric Blake <ebb9@byu.net>
42818 * gnulib-tool: Avoid space-tab.
42820 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42822 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42823 that prevented coreutils 6.1 from building. Problem reported
42824 by Petter Reinholdtsen.
42826 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42828 * gnulib-tool (avoidlist): Fix typo that broke options like
42829 --avoid=lock that are used by coreutils bootstrap.
42831 2006-09-18 Mark D. Baushke <mdb@gnu.org>
42833 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42834 more systematically.
42836 2006-09-18 Jim Meyering <jim@meyering.net>
42838 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42840 2006-09-18 Bruno Haible <bruno@clisp.org>
42842 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42844 2006-09-18 Bruno Haible <bruno@clisp.org>
42846 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42847 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42848 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42849 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42850 * m4/gettext.m4: Require autoconf >= 2.52.
42851 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42852 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42853 of gl_cv_header_inttypes_h.
42855 2006-09-18 Bruno Haible <bruno@clisp.org>
42857 * lib/javaversion.c: Include configmake.h.
42859 2006-09-18 Bruno Haible <bruno@clisp.org>
42861 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42862 avoid that the while loops be executed in a subshell.
42864 2006-09-18 Bruno Haible <bruno@clisp.org>
42866 * MODULES.html.sh (func_module): Break long lines.
42867 Suggested by Bruce Korb <bkorb@gnu.org>.
42869 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42871 Speed up by a factor of 1.12.
42872 * gnulib-tool (nl): New variable.
42873 (func_import): Rewrite include directive extraction to only read each
42876 2006-09-17 Bruno Haible <bruno@clisp.org>
42878 * modules/javaversion (Makefile.am): Remove DEFS setting.
42879 (Depends-on): Add configmake, for PKGDATADIR definition.
42881 2006-09-17 Bruno Haible <bruno@clisp.org>
42883 * gnulib-tool (func_create_testdir): Rewrite all files at once.
42885 2006-09-17 Bruno Haible <bruno@clisp.org>
42887 * gnulib-tool (func_append): New function, stolen from libtool.m4.
42888 (func_modules_transitive_closure, func_modules_add_dummy,
42889 func_modules_to_filelist, func_import, func_create_testdir,
42890 func_create_megatestdir, ...): Use it wherever possible.
42891 Suggested by Ralf Wildenhues.
42893 2006-09-16 Karl Berry <karl@gnu.org>
42895 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42896 to avoid sectioning errors.
42897 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42898 [ifinfo]: blank line after @center-ed titles.
42899 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42900 Spell FSF address consistently with others.
42901 (These changes approved by rms.)
42903 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42905 Speed up by a factor of 1.61.
42906 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42907 already checked module names again.
42909 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42911 Speed up by a factor of 1.13.
42912 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42913 for new_files, and the input to func_add_or_update.
42915 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42917 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42918 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42920 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42922 * modules/mkancesdirs (Depends-on): Add fcntl.
42923 * modules/savewd: New file.
42924 * MODULES.html.sh (File system functions): Add savewd.
42926 * modules/configmake (Makefile.am): Add support for the
42927 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42929 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42931 * m4/savewd.m4: New file.
42933 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42935 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42936 (dirchownmod): New arg FD. All callers changed.
42937 Use FD rather than opening the directory ourself, as opening is
42938 now the caller's responsibility.
42939 * lib/dirchownmod.h: Likewise.
42940 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42941 hosts that require <sys/types.h> before <sys/stat.h>. Include
42942 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42943 (test_dir): Remove.
42944 (mkancesdirs): Return length of prefix of FILE that has already
42945 been made, or -2 if there is a child doing the work. Redo
42946 algorithm so that it is O(N) rather than O(N**2). Optimize away
42947 ".", and treat ".." specially since it might stray back into
42948 already-created areas. Use a subprocess if necessary. New arg
42949 WD; all users changed. MAKE_DIR function should now return 1
42950 if it creates a directory that is not readable. Return -2 if
42951 a child process is spun off.
42952 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42953 Adjust signature to match code.
42954 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42955 (make_dir_parents): Use a subprocess if necessary. New arg WD;
42957 * lib/savewd.c, lib/savewd.h: New files.
42959 2006-09-15 Jim Meyering <jim@meyering.net>
42961 * modules/rename-dest-slash: New module.
42962 * MODULES.html.sh (posix_compat): Add it here.
42964 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42966 2006-09-15 Jim Meyering <jim@meyering.net>
42968 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42971 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42973 2006-09-15 Jim Meyering <jim@meyering.net>
42975 * lib/rename-dest-slash.c (has_trailing_slash): Use
42976 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42977 (rpl_rename_dest_slash): Perform the cheaper trailing slash
42978 test before testing whether SRC is a directory.
42979 Suggestions from Bruno Haible.
42981 Avoid a warning about an unused variable.
42982 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42983 into the #ifdef block where it's used.
42985 * lib/rename-dest-slash.c: New file.
42987 2006-09-14 Bruno Haible <bruno@clisp.org>
42989 * lib/allocsa.c: Include <config.h> unconditionally.
42990 * lib/asnprintf.c: Likewise.
42991 * lib/asprintf.c: Likewise.
42992 * lib/c-strcasecmp.c: Likewise.
42993 * lib/c-strcasestr.c: Likewise.
42994 * lib/c-strncasecmp.c: Likewise.
42995 * lib/c-strstr.c: Likewise.
42996 * lib/classpath.c: Likewise.
42997 * lib/clean-temp.c: Likewise.
42998 * lib/concatpath.c: Likewise.
42999 * lib/copy-file.c: Likewise.
43000 * lib/csharpcomp.c: Likewise.
43001 * lib/csharpexec.c: Likewise.
43002 * lib/execute.c: Likewise.
43003 * lib/fatal-signal.c: Likewise.
43004 * lib/findprog.c: Likewise.
43005 * lib/fwriteerror.c: Likewise.
43006 * lib/gl_array_list.c: Likewise.
43007 * lib/gl_array_oset.c: Likewise.
43008 * lib/gl_avltree_list.c: Likewise.
43009 * lib/gl_avltree_oset.c: Likewise.
43010 * lib/gl_avltreehash_list.c: Likewise.
43011 * lib/gl_carray_list.c: Likewise.
43012 * lib/gl_linked_list.c: Likewise.
43013 * lib/gl_linkedhash_list.c: Likewise.
43014 * lib/gl_list.c: Likewise.
43015 * lib/gl_oset.c: Likewise.
43016 * lib/gl_rbtree_list.c: Likewise.
43017 * lib/gl_rbtree_oset.c: Likewise.
43018 * lib/gl_rbtreehash_list.c: Likewise.
43019 * lib/imaxabs.c: Likewise.
43020 * lib/imaxdiv.c: Likewise.
43021 * lib/javacomp.c: Likewise.
43022 * lib/javaexec.c: Likewise.
43023 * lib/javaversion.c: Likewise.
43024 * lib/linebreak.c: Likewise.
43025 * lib/localcharset.c: Likewise.
43026 * lib/lock.c: Likewise.
43027 * lib/mbchar.c: Likewise.
43028 * lib/mbswidth.c: Likewise.
43029 * lib/mkdtemp.c: Likewise.
43030 * lib/pipe.c: Likewise.
43031 * lib/printf-args.c: Likewise.
43032 * lib/printf-parse.c: Likewise.
43033 * lib/progname.c: Likewise.
43034 * lib/progreloc.c: Likewise.
43035 * lib/readlink.c: Likewise.
43036 * lib/sh-quote.c: Likewise.
43037 * lib/stpcpy.c: Likewise.
43038 * lib/stpncpy.c: Likewise.
43039 * lib/strcasecmp.c: Likewise.
43040 * lib/strcasestr.c: Likewise.
43041 * lib/strcspn.c: Likewise.
43042 * lib/striconv.c: Likewise.
43043 * lib/strncasecmp.c: Likewise.
43044 * lib/strnlen1.c: Likewise.
43045 * lib/strstr.c: Likewise.
43046 * lib/strtok_r.c: Likewise.
43047 * lib/tls.c: Likewise.
43048 * lib/tmpdir.c: Likewise.
43049 * lib/unicodeio.c: Likewise.
43050 * lib/unsetenv.c: Likewise.
43051 * lib/vasnprintf.c: Likewise.
43052 * lib/vasprintf.c: Likewise.
43053 * lib/wait-process.c: Likewise.
43054 * lib/xallocsa.c: Likewise.
43055 * lib/xsetenv.c: Likewise.
43056 * lib/xstriconv.c: Likewise.
43058 2006-09-13 Simon Josefsson <jas@extundo.com>
43060 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43061 that internally, suggested by Ralf Wildenhues
43062 <Ralf.Wildenhues@gmx.de>.
43064 2006-09-13 Simon Josefsson <jas@extundo.com>
43066 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43068 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43070 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
43072 * lib/_fpending.c: Include <config.h> unconditionally, since we no
43073 longer worry about uses that don't define HAVE_CONFIG_H.
43074 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43075 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43076 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43077 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43078 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43079 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43080 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43081 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43082 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43083 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43084 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43085 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43086 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43087 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43088 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43089 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43090 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43091 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43092 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43093 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43094 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43095 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43096 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43097 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43098 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43099 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43100 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43101 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43102 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43103 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43104 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43105 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43106 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43107 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43108 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43109 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43110 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43111 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43112 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43113 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43114 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43117 2006-09-13 Eric Blake <ebb9@byu.net>
43119 * lib/getopt.c: Fix typo in last commit.
43121 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
43123 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43126 2006-09-12 Jim Meyering <jim@meyering.net>
43128 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43129 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43130 Reported by Nelson H. F. Beebe.
43132 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
43134 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43135 program_invocation_name and program_invocation_short_name are
43137 * lib/argp-namefrob.h: Move declarations of program_invocation_name
43138 and program_invocation_short_name to argp.h, so they are visible
43140 * lib/argp.h: Likewise
43142 2006-09-10 Bruno Haible <bruno@clisp.org>
43144 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43145 m4/inttypes_h.m4, m4/uintmax_t.m4.
43147 2006-09-10 Bruno Haible <bruno@clisp.org>
43149 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43150 gl_AC_TYPE_UINTMAX_T.
43152 2006-09-10 Bruno Haible <bruno@clisp.org>
43154 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43156 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
43158 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43159 convention. Text proposed by Bruno Haible.
43160 (struct argp_option): Document the use of N_() wrappers.
43162 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43163 '\v', and translate the two parts separately, instead of feeding
43164 the whole string to gettext. This allows to exclude
43165 '\v' from the strings visible to the translator by writing doc
43166 strings as N_("..") "\v" N_("..").
43168 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
43170 * config/srclist.txt: Undo latest change; the bug was fixed.
43172 2006-09-09 Bruno Haible <bruno@clisp.org>
43174 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43175 assignments if building a library without libtool.
43176 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43177 in func_emit_lib_Makefile_am.
43178 (func_import): When building a static library libfoo.a, arrange to
43179 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43180 (func_create_testdir): Likewise.
43181 * modules/gc (configure.ac, Makefile.am): If building statically,
43182 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43183 * modules/iconvme (configure.ac, Makefile.am): Likewise.
43184 * modules/striconv (configure.ac, Makefile.am): Likewise.
43185 Based on a suggestion by Ralf Wildenhues.
43187 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43189 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43190 Check for unistd.h too, since Autoconf doesn't assume POSIX.
43193 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43194 Add year_2050_test to catch glibc bug 2821
43195 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43197 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43198 Prefer #ifdef to #if.
43200 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
43201 Return from 'main' instead of calling 'exit'.
43203 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43205 * lib/mktime.c (guess_time_tm): Fix bug where mktime
43206 returned the maximum time_t value rather than (time_t) -1.
43207 Problem originally reported by William Bardwell
43208 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43210 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43212 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43215 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43217 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43220 2006-09-08 Jim Meyering <jim@meyering.net>
43222 Don't make generated files read-only. That would bother too many
43223 people. However, do retain the ability to work when targets are
43224 read-only: remove the destination and temporary files before writing
43225 them (when generated via sed or echo), or by using the -f option for
43226 both cp and mv commands. Suggestion to use -f from Paul Eggert.
43227 * modules/alloca-opt, modules/argz, modules/arpa_inet:
43228 * modules/byteswap, modules/configmake, modules/fcntl:
43229 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43230 * modules/localcharset, modules/netinet_in, modules/poll:
43231 * modules/stdbool, modules/stdint, modules/sys_select:
43232 * modules/sys_socket, modules/sys_stat, modules/sysexits:
43234 2006-09-08 Jim Meyering <jim@meyering.net>
43236 Avoid new build failure on FreeBSD 6.0.
43237 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43238 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
43239 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43241 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43243 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43245 2006-09-07 Jim Meyering <jim@meyering.net>
43247 Fix global typo in last change: use chmod u-w, not chmod u-x.
43248 Spotted by Paul Eggert and Bruce Korb.
43249 * modules/alloca-opt, modules/argz, modules/arpa_inet:
43250 * modules/byteswap, modules/configmake, modules/fcntl:
43251 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43252 * modules/localcharset, modules/netinet_in, modules/poll:
43253 * modules/stdbool, modules/stdint, modules/sys_select:
43254 * modules/sys_socket, modules/sys_stat, modules/sysexits:
43256 2006-09-06 Jim Meyering <jim@meyering.net>
43258 Make generated files be read-only.
43259 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43260 Ensure that each generated file is now read-only.
43261 * modules/argz: Likewise.
43262 * modules/arpa_inet: Likewise.
43263 * modules/byteswap: Likewise.
43264 * modules/configmake: Likewise.
43265 * modules/fcntl: Likewise.
43266 * modules/fnmatch: Likewise.
43267 * modules/getopt: Likewise.
43268 * modules/glob: Likewise.
43269 * modules/inttypes: Likewise.
43270 * modules/netinet_in: Likewise.
43271 * modules/poll: Likewise.
43272 * modules/stdbool: Likewise.
43273 * modules/stdint: Likewise.
43274 * modules/sys_select: Likewise.
43275 * modules/sys_socket: Likewise.
43276 * modules/sys_stat: Likewise.
43277 * modules/sysexits: Likewise.
43278 * modules/localcharset: Same as above, but continue using temporary
43279 file named "t-$@" (why different?) rather than the "$@-t" used
43282 * modules/sysexits (Makefile.am): Replace literal occurrences
43283 of "sysexit.h" more readable, and more consistent, "$@".
43285 2006-09-06 Bruno Haible <bruno@clisp.org>
43287 * modules/striconv: New file.
43288 * modules/xstriconv: New file.
43289 * MODULES.html.sh (Internationalization functions): Add striconv,
43292 2006-09-06 Bruno Haible <bruno@clisp.org>
43294 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43295 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43296 not using libtool correctly.
43298 2006-09-06 Bruno Haible <bruno@clisp.org>
43300 * lib/striconv.h: New file.
43301 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43303 * lib/xstriconv.h: New file.
43304 * lib/xstriconv.c: New file.
43306 2006-09-06 Bruno Haible <bruno@clisp.org>
43308 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43311 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43313 * lib/argz_.h: Sync from Libtool.
43315 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
43316 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43318 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43320 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
43322 * modules/trim: New file.
43324 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
43326 * lib/trim.h: New file.
43327 * lib/trim.c: New file.
43329 2006-09-05 Bruno Haible <bruno@clisp.org>
43331 * MODULES.html.sh (String handling): Add trim.
43333 2006-09-04 Karl Berry <karl@gnu.org>
43335 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43336 until next release.
43338 2006-09-03 Bruno Haible <bruno@clisp.org>
43340 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43343 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43345 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43346 not gl_GETLOADAVG. Omit unneeded semicolons.
43347 Problems reported by Ralf Wildenhues in
43348 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43349 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
43350 at the end, which is the usual gnulib style.
43352 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43353 of doing all the work ourselves.
43354 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43355 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43357 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43359 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43360 Problem reported by Ralf Wildenhues in
43361 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43363 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43364 HAVE_STRUCT_STATFS_F_FSTYPENAME.
43366 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43368 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43369 yesterday's patch by changing test -n to test -z.
43371 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43373 * modules/getloadavg (Files): Add m4/getloadavg.m4.
43374 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43375 the former is now obsolescent.
43377 * modules/chdir-long (Depends-on): Add fcntl.
43379 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43381 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43382 obsolescent, and programs should use gnulib instead.
43383 * m4/getloadavg.m4: New file, with contents taken from Autoconf
43384 but with prefixes changed.
43386 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43388 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43389 or stdbool.h, because they might not exist while configuring.
43391 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43392 Don't include unistd.h or limits.h; not needed, since chdir-long.h
43394 (O_DIRECTORY): Remove.
43396 2006-08-31 Eric Blake <ebb9@byu.net>
43398 * gnulib-tool: Don't let emacs change spaces to TAB.
43400 2006-08-31 Bruno Haible <bruno@clisp.org>
43402 * gnulib-tool: When calling func_import more than once, do it in a
43404 Reported by Eric Blake <ebb9@byu.net>.
43406 2006-08-31 Bruno Haible <bruno@clisp.org>
43408 * gnulib-tool (nl): Remove variable.
43409 (sed_transform_lib_file): Use more robust test for config-h module.
43410 (func_import): Fix typo in 2006-08-25 patch.
43412 2006-08-31 Bruno Haible <bruno@clisp.org>
43414 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43415 specified, augment Makefile.am variables instead of assigning them.
43417 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43419 Work around a bug in both the Linux and SunOS 64-bit kernels:
43420 nanosleep mishandles sleeps for longer than 2**31 seconds.
43421 Problem reported by Frank v Waveren in
43422 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43423 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43424 Check for nanosleep bug.
43425 (LIB_NANOSLEEP): Append clock_gettime library if needed.
43427 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43429 Work around a bug in both the Linux and SunOS 64-bit kernels:
43430 nanosleep mishandles sleeps for longer than 2**31 seconds.
43431 Problem reported by Frank v Waveren in
43432 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43433 * lib/nanosleep.c (BILLION): New constant.
43434 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43435 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43438 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43440 * modules/nanosleep (Depends-on): Add gettime.
43442 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43443 and Simon Josefsson <jas@extundo.com>
43444 and Oskar Liljeblad <oskar@osk.mine.nu>
43446 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43447 * gnulib-tool (func_import): New license type 'unmodifiable license
43449 * modules/fdl: Use it. Longer description.
43450 * module/gpl, module/lgpl: New files.
43452 2006-08-30 Jim Meyering <jim@meyering.net>
43454 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43455 shadowing the parameter.
43457 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43461 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43463 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43464 sharing with gnulib. Report by Eric Blake.
43466 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43468 * modules/isapipe: New file.
43469 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43471 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43473 * modules/configmake (Makefile.am): Add a comment, and omit
43474 the CONFIGMAKE_ prefix from generated macro names. Suggested
43477 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43479 * m4/isapipe.m4: New file.
43481 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43483 * lib/isapipe.c, lib/isapipe.h: New files.
43485 2006-08-29 Jim Meyering <jim@meyering.net>
43487 * modules/configmake (Makefile.am): Make configmake.h depend on
43488 Makefile. Otherwise, a stale configmake.h could hang around.
43490 2006-08-29 Eric Blake <ebb9@byu.net>
43492 * lib/error.c (error_at_line, print_errno_message): Match libc, after
43493 resolution of upstream bug 3044.
43495 2006-08-29 Bruno Haible <bruno@clisp.org>
43497 * modules/localcharset (Depends-on): Add configmake.
43498 (Makefile.am): Remove setting of LIBDIR through DEFS.
43500 2006-08-29 Bruno Haible <bruno@clisp.org>
43502 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43505 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43507 * modules/fcntl: New file.
43508 * modules/chdir-safer (Depends-on): Add fcntl.
43509 * modules/fts: Likewise.
43510 * modules/mkdir-p: Likewise.
43512 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43513 This undoes the most recent change, since we're now addressing the
43514 problem in a different way.
43516 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43517 into output, since the output might be called Makefile.am even
43518 if $makefile_name is something different.
43519 (func_import): Use $makefile_am rather than
43520 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43523 * modules/inttypes (Files): Add m4/inttypes-h.m4.
43525 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43527 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43528 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
43529 recent change to stdint.m4, since we're now addressing the problem in a
43532 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43534 * m4/fcntl_h.m4: New file.
43536 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43538 * lib/fcntl_.h: New file.
43539 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43541 * lib/dirchownmod.c: Likewise.
43542 * lib/fts.c: Likewise.
43544 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43545 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43546 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43547 just before including <inttypes.h>, to avoid circular inclusion.
43549 2006-08-28 Jim Meyering <jim@meyering.net>
43551 * doc/visibility.texi: Actually read and correct the grammar of the
43552 sentence affected by yesterday's change.
43554 2006-08-28 Eric Blake <ebb9@byu.net>
43556 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43559 2006-08-28 Eric Blake <ebb9@byu.net>
43561 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43563 2006-08-28 Eric Blake <ebb9@byu.net>
43565 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43567 2006-08-28 Bruno Haible <bruno@clisp.org>
43569 * modules/c-strstr: New file, from GNU gettext.
43570 * MODULES.html.sh (String handling): Add c-strstr.
43572 2006-08-28 Bruno Haible <bruno@clisp.org>
43574 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43576 Reported by Eric Blake.
43578 2006-08-28 Bruno Haible <bruno@clisp.org>
43580 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43581 (VASNPRINTF): Return a string of length > INT_MAX without failing.
43582 * lib/vasprintf.c: Include errno.h, limits.h.
43583 (EOVERFLOW): New fallback definition.
43584 (vasprintf): Test here whether the string length is > INT_MAX.
43585 * lib/vsnprintf.c: Include errno.h, limits.h.
43586 (EOVERFLOW): New fallback definition.
43587 (vsnprintf): Fix bug when generated string was too long for the buffer.
43588 Test here whether the string length is > INT_MAX.
43590 2006-08-28 Bruno Haible <bruno@clisp.org>
43592 * lib/inttypes_.h (SCNX*): Remove definitions.
43593 Reported by Eric Blake.
43595 2006-08-28 Bruno Haible <bruno@clisp.org>
43597 * lib/c-strstr.h: New file, from GNU gettext.
43598 * lib/c-strstr.c: New file, from GNU gettext.
43600 2006-08-28 Bruno Haible <bruno@clisp.org>
43602 * gnulib-tool: Reorder some statements.
43604 2006-08-28 Bruno Haible <bruno@clisp.org>
43606 * gnulib-tool: New option --makefile-name.
43607 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43609 (func_import): Write $makefile_name to the cache file, and read it from
43610 there unless explicitly specified. Use $makefile_name as file name
43611 instead of Makefile.am. Adjust the recommendations accordingly.
43613 2006-08-28 Bruno Haible <bruno@clisp.org>
43615 * gnulib-tool (func_verify_module): Check against misapplying patch.
43617 2006-08-28 Bruno Haible <bruno@clisp.org>
43619 * gnulib-tool (func_relativize, func_relconcat): New functions.
43620 Give an error if --local-dir is given with --update.
43621 Remove trailing slashes from $local_gnulib_dir.
43622 (func_import): Store the relativized $local_gnulib_dir in
43623 gnulib-cache.m4, and read it from there if not specified explicitly.
43625 2006-08-28 Bruno Haible <bruno@clisp.org>
43627 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43628 is the current directory. Respect also $local_gnulib_dir.
43630 2006-08-28 Bruno Haible <bruno@clisp.org>
43631 Simon Josefsson <jas@extundo.com>
43634 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43636 2006-08-27 Jim Meyering <jim@meyering.net>
43638 * doc/visibility.texi: Remove duplicate word: "pointer".
43640 2006-08-26 Bruno Haible <bruno@clisp.org>
43642 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43643 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43644 (Makefile.am): Create inttypes.h from inttypes_.h.
43645 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43647 * modules/imaxabs: New file.
43649 * modules/imaxdiv: New file.
43651 2006-08-26 Bruno Haible <bruno@clisp.org>
43653 * m4/inttypes.m4: New file.
43654 * m4/_inttypes_h.m4: Remove file.
43655 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43657 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43659 * m4/imaxabs.m4: New file.
43661 * m4/imaxdiv.m4: New file.
43663 2006-08-26 Bruno Haible <bruno@clisp.org>
43665 * lib/inttypes_.h: New file.
43666 * lib/inttypes.h: Remove file.
43667 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43669 * lib/imaxabs.c: New file.
43671 * lib/imaxdiv.c: New file.
43673 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43675 New config-h module, so that "make" output needn't be cluttered
43676 by -DHAVE_CONFIG_H.
43677 * MODULES.html.sh (Support for building libraries and executables):
43679 * modules/config-h: New file.
43680 * gnulib-tool (nl, sed_transform_lib_file): New vars.
43681 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43682 the config-h module is used.
43684 New configmake module, so that "make" output needn't be cluttered
43685 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43686 * MODULES.html.sh (Support for building libraries and executables):
43688 * modules/configmake: New file.
43690 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43692 * m4/config-h.m4: New file.
43694 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43696 * config/srclist.txt: Add elisp-comp.
43698 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43700 * MODULES.html.sh (Support for building libraries and executables):
43702 * build-aux/elisp-comp: New file.
43703 * modules/elisp-comp: New file.
43705 2006-08-24 Bruno Haible <bruno@clisp.org>
43707 * gnulib-tool (func_create_testdir): Use non-default values of
43708 sourcebase and m4base.
43710 2006-08-24 Bruno Haible <bruno@clisp.org>
43712 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43715 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
43717 * modules/openat (Depends-on): Add lchown.
43719 2006-08-23 Bruno Haible <bruno@clisp.org>
43721 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43722 of gl_LOCK_EARLY instead of gl_LOCK.
43724 2006-08-23 Bruno Haible <bruno@clisp.org>
43726 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43728 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43730 2006-08-23 Bruno Haible <bruno@clisp.org>
43732 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43735 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43736 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43737 (gl_LOCK): New macro.
43739 2006-08-22 Simon Josefsson <jas@extundo.com>
43741 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43744 2006-08-22 Simon Josefsson <jas@extundo.com>
43746 * MODULES.html.sh: Add "Support for maintaining and release
43749 * build-aux/gnupload: New file, from coreutils.
43751 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43753 Avoid the need for AC_LIBSOURCES in m4 macros.
43754 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43755 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43756 * modules/check-version (EXTRA_DIST): Add check-version.h.
43757 * modules/crc (EXTRA_DIST): Add crc.h.
43758 * modules/des (EXTRA_DIST): Add des.h.
43759 * modules/gc (EXTRA_DIST): Add gc.h.
43760 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43761 * modules/getline (EXTRA_DIST): Add getline.h.
43762 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43763 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43764 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43765 * modules/md2 (EXTRA_DIST): Add md2.h.
43766 * modules/md4 (EXTRA_DIST): Add md4.h.
43767 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43768 * modules/read-file (EXTRA_DIST): Add read-file.h.
43769 * modules/readline (EXTRA_DIST): Add readline.h.
43770 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43771 rijndael-api-fst.h.
43773 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43775 * m4/rijndael.m4 (gl_ARCFOUR):
43776 * m4/arctwo.m4 (gl_ARCTWO):
43777 * m4/check-version.m4 (gl_CHECK_VERSION):
43778 * m4/crc.m4 (gl_CRC):
43779 * m4/des.m4 (gl_DES):
43780 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43781 * m4/gc.m4 (gl_GC):
43782 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43783 * m4/getline.m4 (gl_FUNC_GETLINE):
43784 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43785 * m4/hmac-md5.m4 (gl_HMAC_MD5):
43786 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43787 * m4/md2.m4 (gl_MD2):
43788 * m4/md4.m4 (gl_MD4):
43789 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43790 * m4/read-file.m4 (gl_FUNC_READ_FILE):
43791 * m4/readline.m4 (gl_FUNC_READLINE):
43792 * m4/rijndael.m4 (gl_RIJNDAEL):
43793 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43794 to get the necessary .h files and whatnot.
43796 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43798 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43799 gnulib rather than the other way around.
43800 * config/srclistvars.sh (COREUTILS): Remove.
43802 2006-08-22 Jim Meyering <jim@meyering.net>
43804 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43806 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43808 2006-08-22 Eric Blake <ebb9@byu.net>
43810 * modules/regexprops-generic: New file.
43811 * MODULES.html.sh (Support for building documentation): List it.
43813 2006-08-22 Eric Blake <ebb9@byu.net>
43815 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43816 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43817 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43818 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43820 2006-08-22 Bruno Haible <bruno@clisp.org>
43822 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43823 and lib_LTLIBRARIES like the other lib_* variables.
43825 2006-08-22 Bruno Haible <bruno@clisp.org>
43827 * build-aux/x-to-1.in: New file, from GNU gettext.
43829 2006-08-22 Bruno Haible <bruno@clisp.org>
43831 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43834 2006-08-22 Bruno Haible <bruno@clisp.org>
43836 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43839 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43842 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43844 Problem reported by Bruno Haible.
43846 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43848 Avoid the need for AC_LIBSOURCES in m4 macros.
43849 * modules/acl (EXTRA_DIST): Add acl.h.
43850 * modules/argmatch (Files): Add m4/argmatch.m4.
43851 (configure.ac): Add gl_ARGMATCH.
43852 (EXTRA_DIST): Renamed from lib_SOURCES, for
43853 consistency with the other modules. Remove argmatch.c.
43854 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43855 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43856 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43857 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43858 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43859 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43860 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43861 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43862 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43863 * modules/closeout (EXTRA_DIST): Add closeout.h.
43864 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43865 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43866 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43867 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
43868 dirname.h; remove basename.c and stripslash.c.
43869 * modules/exclude (EXTRA_DIST): Add exclude.h.
43870 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43871 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43872 * modules/file-type (EXTRA_DIST): Add file-type.h.
43873 * modules/filemode (EXTRA_DIST): Add filemode.h.
43874 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43875 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43876 * modules/fpending (EXTRA_DIST): Add __fpending.h.
43877 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43878 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43879 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43880 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43881 * modules/getdate (EXTRA_DIST): Add getdate.c.
43882 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43883 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43884 * modules/getpass (EXTRA_DIST): Add getpass.h.
43885 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43886 * modules/group-member (EXTRA_DIST): Add group-member.h.
43887 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43888 * modules/hash (EXTRA_DIST): Add hash.h.
43889 * modules/human (EXTRA_DIST): Add human.h.
43890 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43891 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43892 * modules/lchown (EXTRA_DIST): Add lchown.h.
43893 * modules/long-options (EXTRA_DIST): Add long-options.h.
43894 * modules/lstat (EXTRA_DIST): Add lstat.h.
43895 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43896 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43897 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43898 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43899 * modules/memxor (EXTRA_DIST): Add memxor.h.
43900 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43901 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43902 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43903 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43904 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43905 * modules/physmem (EXTRA_DIST): Add physmem.h.
43906 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43907 * modules/posixver (EXTRA_DIST): Add posixver.h.
43908 * modules/quote (EXTRA_DIST): Add quote.h.
43909 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43910 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43911 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43912 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43913 regex_internal.h regexec.c.
43914 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43915 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43916 * modules/same (EXTRA_DIST): Add same.h.
43917 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43918 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43919 * modules/savedir (EXTRA_DIST): Add savedir.h.
43920 * modules/sha1 (EXTRA_DIST): Add sha1.h.
43921 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43922 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43923 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43924 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43925 * modules/strdup (EXTRA_DIST): Add strdup.h.
43926 * modules/strftime (EXTRA_DIST): Add strftime.h.
43927 * modules/strndup (EXTRA_DIST): Add strndup.h.
43928 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43929 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43930 * modules/time_r (EXTRA_DIST): Add time_r.h.
43931 * modules/timespec (EXTRA_DIST): Add timespec.h.
43932 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43933 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43934 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43935 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43936 * modules/userspec (EXTRA_DIST): Add userspec.h.
43937 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43938 * modules/utimens (EXTRA_DIST): Add utimens.h.
43939 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43940 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43941 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43942 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43943 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43944 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43945 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43946 * modules/yesno (EXTRA_DIST): Add yesno.h.
43948 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43950 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43952 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43953 * m4/dev-ino.m4, same-inode.m4: Remove.
43955 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43956 * m4/acl.m4 (AC_FUNC_ACL):
43957 * m4/backupfile.m4 (gl_BACKUPFILE):
43958 * m4/c-strtod.m4 (gl_C99_STRTOLD):
43959 * m4/canon-host.m4 (gl_CANON_HOST):
43960 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43961 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43962 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43963 * m4/cloexec.m4 (gl_CLOEXEC):
43964 * m4/close-stream.m4 (gl_CLOSE_STREAM):
43965 * m4/closeout.m4 (gl_CLOSEOUT):
43966 * m4/dirfd.m4 (gl_FUNC_DIRFD):
43967 * m4/dirname.m4 (gl_DIRNAME):
43968 * m4/exclude.m4 (gl_EXCLUDE):
43969 * m4/exitfail.m4 (gl_EXITFAIL):
43970 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43971 * m4/file-type.m4 (gl_FILE_TYPE):
43972 * m4/filemode.m4 (gl_FILEMODE):
43973 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43974 * m4/fpending.m4 (gl_FUNC_FPENDING):
43975 * m4/fprintftime.m4 (gl_FPRINTFTIME):
43976 * m4/fts.m4 (gl_FUNC_FTS):
43977 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43978 * m4/getdate.m4 (gl_GETDATE):
43979 * m4/gethrxtime.m4 (gl_GETHRXTIME):
43980 * m4/getpagesize.m4 (gl_GETPAGESIZE):
43981 * m4/getpass.m4 (gl_FUNC_GETPASS):
43982 * m4/gettime.m4 (gl_GETTIME):
43983 * m4/getugroups.m4 (gl_GETUGROUPS):
43984 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43985 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43986 * m4/hard-locale.m4 (gl_HARD_LOCALE):
43987 * m4/hash.m4 (gl_HASH):
43988 * m4/idcache.m4 (gl_IDCACHE):
43989 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43990 * m4/lchown.m4 (gl_FUNC_LCHOWN):
43991 * m4/long-options.m4 (gl_LONG_OPTIONS):
43992 * m4/lstat.m4 (gl_FUNC_LSTAT):
43993 * m4/md5.m4 (gl_MD5):
43994 * m4/memcasecmp.m4 (gl_MEMCASECMP):
43995 * m4/memcoll.m4 (gl_MEMCOLL):
43996 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43997 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43998 * m4/memxor.m4 (gl_MEMXOR):
43999 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44000 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44001 * m4/modechange.m4 (gl_MODECHANGE):
44002 * m4/mountlist.m4 (gl_MOUNTLIST):
44003 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44004 * m4/openat.m4 (gl_FUNC_OPENAT):
44005 * m4/pathmax.m4 (gl_PATHMAX):
44006 * m4/physmem.m4 (gl_PHYSMEM):
44007 * m4/posixtm.m4 (gl_POSIXTM):
44008 * m4/posixver.m4 (gl_POSIXVER):
44009 * m4/quote.m4 (gl_QUOTE):
44010 * m4/quotearg.m4 (gl_QUOTEARG):
44011 * m4/readtokens.m4 (gl_READTOKENS):
44012 * m4/readutmp.m4 (gl_READUTMP):
44013 * m4/regex.m4 (gl_REGEX):
44014 * m4/safe-read.m4 (gl_SAFE_READ):
44015 * m4/safe-write.m4 (gl_SAFE_WRITE):
44016 * m4/same.m4 (gl_SAME):
44017 * m4/save-cwd.m4 (gl_SAVE_CWD):
44018 * m4/savedir.m4 (gl_SAVEDIR):
44019 * m4/settime.m4 (gl_SETTIME):
44020 * m4/sha1.m4 (gl_SHA1):
44021 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44022 * m4/stat-macros.m4 (gl_STAT_MACROS):
44023 * m4/stat-time.m4 (gl_STAT_TIME):
44024 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44025 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44026 * m4/strdup.m4 (gl_FUNC_STRDUP):
44027 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44028 * m4/strndup.m4 (gl_FUNC_STRNDUP):
44029 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44030 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44031 * m4/time_r.m4 (gl_TIME_R):
44032 * m4/timespec.m4 (gl_TIMESPEC):
44033 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44034 * m4/unlinkdir.m4 (gl_UNLINKDIR):
44035 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44036 * m4/userspec.m4 (gl_USERSPEC):
44037 * m4/utimecmp.m4 (gl_UTIMECMP):
44038 * m4/utimens.m4 (gl_UTIMENS):
44039 * m4/xalloc.m4 (gl_XALLOC):
44040 * m4/xgetcwd.m4 (gl_XGETCWD):
44041 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44042 * m4/xreadlink.m4 (gl_XREADLINK):
44043 * m4/xstrtod.m4 (gl_XSTRTOD):
44044 * m4/yesno.m4 (gl_YESNO):
44045 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44046 to get the necessary .h files and whatnot.
44048 2006-08-21 Mark D. Baushke <mdb@gnu.org>
44049 Bruno Haible <bruno@clisp.org>
44051 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44052 /bin/sh understanding of '!' conditional negation.
44054 2006-08-21 Jim Meyering <jim@meyering.net>
44056 * modules/openat (Depends-on): Really alphabetize.
44058 * modules/acl (Depends-on): Add error and quote.
44060 * check-module (find_included_lib_files): Add at-func.c to the
44061 ok-to-include-more-than-once white list.
44063 * modules/openat (Depends-on): Add lstat. Alphabetize.
44065 2006-08-21 Bruno Haible <bruno@clisp.org>
44067 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44068 Emit a pkgdata_DATA variable only if some snippets add contents to it.
44069 Reported by Martin Lambers <marlam@marlam.de>.
44071 2006-08-21 Bruno Haible <bruno@clisp.org>
44073 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44074 specify an installation location, don't emit a noinst_LIBRARIES or
44075 noinst_LTLIBRARIES assignment.
44077 2006-08-21 Bruno Haible <bruno@clisp.org>
44080 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44081 BeOS has mbrtowc() but no <wctype.h>.
44083 2006-08-21 Bruno Haible <bruno@clisp.org>
44086 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44089 2006-08-21 Bruno Haible <bruno@clisp.org>
44092 * lib/mbchar.h: Include <wctype.h> only if it exists.
44094 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
44096 Remove files that are no longer needed by their respective modules.
44097 * m4/obstack.m4: Remove.
44098 * m4/strerror_r.m4: Remove.
44099 * m4/uint32_t.m4: Remove.
44100 * m4/uintptr_t.m4: Remove.
44101 * m4/ullong_max.m4: Remove.
44102 * m4/xstrtoimax.m4: Remove.
44103 * m4/xstrtoumax.m4: Remove.
44105 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44106 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44107 dependencies now capture this.
44109 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44110 Do not use AC_LIBSOURCES, since gnulib modules now do this.
44111 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44112 * m4/human.m4 (gl_HUMAN): Likewise.
44113 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44114 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44116 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44118 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44119 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44121 * m4/human.m4 (gl_HUMAN): Likewise.
44122 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44123 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44124 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44125 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44126 * m4/xstrtol (gl_XSTRTOL): Likewise.
44128 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44129 AC_TYPE_LONG_LONG_INT.
44130 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44131 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44132 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44133 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44135 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44138 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44139 (gl_PREREQ_XSTRTOUL): Remove.
44141 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44143 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44146 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
44148 Add and change modules to make it easier for coreutils to use
44150 * modules/backupfile (Files): Remove m4/d-ino.m4.
44151 (Depends-on): Add d-ino.
44152 * modules/cycle-check (Depends-on): Add stdint.
44153 (lib_SOURCES): Add cycle-check.h.
44154 * modules/d-ino: New module.
44155 * modules/d-type: New module.
44156 * modules/error (Files): Remove m4/strerror_r.m4.
44157 * modules/filemode (Files): Add m4/st_dm_mode.m4.
44158 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44159 m4/inttypes_h.m4, m4/uintmax_t.m4.
44160 (Depends-on): Add stdint.
44161 (lib_SOURCES): Add fsusage.h.
44162 * modules/getcwd (Files): Remove d-ino.m4.
44163 (Depends-on): Add d-ino.
44164 * modules/getndelim2 (Depends-on): Add stdint.
44165 * modules/glob (Files): Remove m4/d-type.m4.
44166 (Depends-on): Add d-type.
44167 * modules/host-os: New module.
44168 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44169 m4/inttypes_h.m4, m4/uintmax_t.m4.
44170 * Depends-on: Add stdint.
44171 (lib_SOURCES): Add human.h.
44172 * modules/inttostr (Files): Remove m4/intmax_t.m4,
44173 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44174 m4/uintmax_t.m4, m4/ulonglong.m4.
44175 (Depends-on): Add stdint.
44176 (EXTRA_DIST): Add inttostr.h.
44177 * modules/lchmod: New module.
44178 * modules/link-follow: New module.
44179 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44180 (Depends-on): Add lchmod.
44181 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44182 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44183 (Depends-on): Add stdint.
44184 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44185 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44186 (Depends-on): Add stdint.
44187 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44188 * modules/perl: New module.
44189 * modules/regex (Depends-on): Add stdint.
44190 * modules/rmdir-errno: New module.
44191 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44193 (Depends-on): Add stdint.
44194 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44196 (Depends-on): Add stdint.
44197 * modules/unlink-busy: New module.
44198 * modules/utimecmp (Depends-on): Add stdint.
44199 * modules/uptime: New module.
44200 * modules/winsz-ioctl: New module.
44201 * modules/winsz-termios: New module.
44202 * modules/xnanosleep (Depends-on): Add nanosleep.
44203 * modules/ullong_max: Remove.
44204 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44205 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44206 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44207 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44208 (Depends-on): Add inttypes.
44209 (lib_SOURCES): Add xstrtol.h.
44210 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44211 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44212 * MODULES.html.sh: Move 'assert' into the assert section.
44213 Move 'dummy' into the linking section.
44215 Add section for compatibility checks for POSIX:2001 functions,
44216 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44217 winsz-ioctl, and winsz-termios into it.
44219 Add top-level Misc section and put host-os, perl, and uptime
44222 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
44224 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44225 now assume the stdint module. Do not include inttypes.h.
44226 * lib/fsusage.h: Likewise.
44227 * lib/getndelim2.c: Likewise.
44228 * lib/human.h: Likewise.
44229 * lib/inttostr.h: Likewise.
44230 * lib/obstack.c: Likewise.
44231 * lib/regex_internal.h: Likewise.
44232 * lib/tempname.c: Likewise.
44233 * lib/utimecmp.c: Likewise.
44234 * lib/xstrtol.h: Likewise.
44236 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44238 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44239 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44240 * lib/xtime.h: Likewise.
44242 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
44244 * modules/openat (Files): Add lib/fchmodat.c.
44245 Fixes problem reported by Jay Youngman.
44247 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
44249 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
44250 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
44252 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
44253 Bruno Haible <bruno@clisp.org>
44255 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44256 and is a script that invokes bison. Tighten the code. Add comments.
44258 2006-08-18 Jim Meyering <jim@meyering.net>
44260 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44261 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44262 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
44263 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44265 2006-08-18 Bruno Haible <bruno@clisp.org>
44267 * modules/bison-i18n: New file.
44268 * MODULES.html.sh (Internationalization functions): Add it.
44270 2006-08-18 Bruno Haible <bruno@clisp.org>
44272 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44273 sys/statvfs.h. When getmntinfo was found, check its declaration and
44274 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44276 2006-08-18 Bruno Haible <bruno@clisp.org>
44278 * m4/bison-i18n.m4: New file, from bison.
44280 2006-08-18 Bruno Haible <bruno@clisp.org>
44282 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44283 (ME_DUMMY): Treat "kernfs" as a dummy.
44284 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44286 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
44288 Update from coreutils.
44290 2006-08-15 Jim Meyering <jim@meyering.net>
44292 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44294 2006-01-17 Jim Meyering <jim@meyering.net>
44296 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44298 2006-01-11 Jim Meyering <jim@meyering.net>
44300 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44301 Check for the lchmod function.
44303 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
44305 Update from coreutils.
44307 * lib/__fpending.h: Add copyright notice.
44308 * lib/fprintftime.h: Likewise.
44309 * lib/savedir.c: Use (C) in copyright notice.
44310 * lib/savedir.h: Likewise.
44312 2006-08-15 Jim Meyering <jim@meyering.net>
44314 * lib/at-func.c: New file, with the logic of all emulated at-functions.
44315 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44316 in support of the EXPECTED_ERRNO macro.
44317 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44318 definitions. Instead, define the appropriate symbols and include
44320 * lib/mkdirat.c (mkdirat): Likewise.
44321 * lib/fchmodat.c (fchmodat): Likewise.
44322 (ENOSYS): Remove definition.
44323 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44324 it. Don't include "unistd--.h" -- it wasn't ever used.
44326 2006-01-17 Jim Meyering <jim@meyering.net>
44328 Rewrite fts.c not to change the current working directory,
44329 by using openat, fstatat, fdopendir, etc..
44331 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44332 (HAVE_OPENAT_SUPPORT): Define.
44333 [_LIBC] (fchdir): Don't undef or define; no longer used.
44334 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44335 Now, this `function' always succeeds, and consumes its file descriptor
44336 parameter -- so callers must not close such FDs. Update callers.
44337 (diropen_fd, opendirat, cwd_advance_fd): New functions.
44338 (diropen): Add parameter, SP. Adjust all callers.
44339 Implement using diropen_fd, rather than open.
44340 (fts_open): Initialize new member, fts_cwd_fd.
44341 Remove fts_rft-setting code.
44342 (fts_close): Close fts_cwd_fd, if necessary.
44343 (__opendir2): Define in terms of opendir or opendirat,
44344 depending on whether the FST_NOCHDIR flag is set.
44345 (fts_build): Since fts_safe_changedir consumes its FD, and since
44346 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44347 and close the dup'd file descriptor upon failure.
44348 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44349 (fts_safe_changedir): Tweak semantics to reflect that this function
44350 now calls cwd_advance_fd and hence consumes its FD argument.
44351 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44352 [struct FTS] (fts_rft): Remove now-unused member.
44353 [struct FTS] (fts_cycle.state): Improve comment.
44355 * lib/openat.c (openat_needs_fchdir): New function.
44356 * lib/openat.h (openat_needs_fchdir): Declare it.
44358 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
44360 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44361 Problem and fix reported by Pádraig Brady in
44362 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44364 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44366 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44368 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44370 * lib/memcoll.c (memcoll): Optimize for the common case where the
44371 arguments are bytewise equal.
44373 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44375 * doc/regexprops-generic.texi: Add a copyright notice.
44377 2006-08-15 Bruno Haible <bruno@clisp.org>
44379 * modules/tmpdir (License): Change to LGPL.
44381 2006-08-15 Bruno Haible <bruno@clisp.org>
44383 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44386 2006-08-14 Simon Josefsson <jas@extundo.com>
44388 * config/srclist.txt: Add gnupload.
44390 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44392 Change copyright notice from LGPL 2 to GPL 2, since that's the
44393 standard form used in the gnulib repository.
44394 * tests/test-lock.c: Likewise.
44395 * tests/test-stdint.c: Likewise.
44396 * tests/test-tls.c: Likewise.
44398 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44399 prelude-manager. User shorter URLs for GNU projects, without '?'.
44400 Add copyright notice.
44402 * check-module: Add copyright notice. Output a copyright
44403 notice if "--version" is specified.
44404 * modules/COPYING: New file.
44405 * tests/test-getaddrinfo.c: Add copyright notice.
44406 * tests/test-verify.c: Likewise.
44408 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44410 Change copyright notice from LGPL 2 to GPL 2, since that's the
44411 standard form used in the gnulib repository.
44412 * lib/lock.c: LGPL -> GPL.
44413 * lib/lock.h: Likewise.
44414 * lib/strnlen1.c: Likewise.
44415 * lib/strnlen1.h: Likewise.
44416 * lib/tls.c: Likewise.
44417 * lib/tls.h: Likewise.
44418 * lib/tmpdir.c: Likewise.
44420 * lib/TODO: Remove; this belongs only in coreutils.
44422 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44424 Add copyright notices to long-enough files that lack them, since
44425 otherwise the files aren't clearly free. Use the same notice that
44426 getdate.texi already uses.
44427 * doc/alloca-opt.texi: Add copyright notice.
44428 * doc/alloca.texi: Likewise.
44429 * doc/ctime.texi: Likewise.
44430 * doc/functions.texi: Likewise.
44431 * doc/gcd.texi: Likewise.
44432 * doc/gnulib-tool.texi: Likewise.
44433 * doc/inet_ntoa.texi: Likewise.
44434 * doc/visibility.texi: Likewise.
44436 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44437 * doc/quote.texi: Add copyright notice.
44439 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44440 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
44441 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
44442 Mention SunOS 5.11. Mention that everything before SunOS 5.7
44443 is now obsolete, and give a pointer to the Sun list.
44444 Add copyright notice.
44446 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44448 * config/srclistvars.sh: Add copyright notice.
44450 2006-08-14 Eric Blake <ebb9@byu.net>
44452 Import the following change from libc:
44454 2006-08-12 Ulrich Drepper <drepper@redhat.com>
44457 * lib/misc/error.c: Add space between program name and message if file
44460 2006-08-12 Karl Berry <karl@gnu.org>
44462 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44463 remove, these originate in gnulib now.
44465 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44467 * doc/Makefile (standards.info standards.html standards.dvi):
44468 Also depend on make-stds.texi.
44470 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
44472 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44473 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
44475 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44476 in wchar_t. Problem reported by Eric Blake.
44478 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44479 LEN is smaller than SIZE. Suggested by Bruno Haible.
44480 Also, help the compiler to keep LEN in a register.
44482 2006-08-11 Eric Blake <ebb9@byu.net>
44484 * users.txt: Sort. Add tar.
44486 2006-08-11 Bruno Haible <bruno@clisp.org>
44488 * users.txt: New file.
44490 2006-08-11 Bruno Haible <bruno@clisp.org>
44492 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44493 before <wchar.h>. Needed for OSF/1 and BSD/OS.
44495 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
44497 * modules/snprintf (Depends-on): Remove minmax.
44498 (Maintainer): Add self and Bruno.
44500 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
44502 * lib/.cppi-disable: Add snprintf.h, socket_.h.
44503 * lib/snprintf.c: Include <errno.h> and <limits.h>.
44504 (EOVERFLOW): Define if the system does not.
44505 Do not include "minmax.h"; it wasn't used.
44506 (snprintf): Don't assume size_t promotes to an unsigned type.
44507 Fix bug when generated string was too long for the buffer: the
44508 buffer's contents are supposed to be the initial prefix of the
44509 output. Don't assume vasnprintf returns EOVERFLOW if the size
44510 exceeds INT_MAX; do the check ourselves.
44512 Import the following changes from libc:
44514 2006-06-02 Jakub Jelinek <jakub@redhat.com>
44516 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44517 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
44518 set wc to the byte which couldn't be converted.
44519 (re_string_reconstruct): Don't clear valid_raw_len before calling
44520 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
44521 tip_context using re_string_context_at.
44523 2006-05-02 Ulrich Drepper <drepper@redhat.com>
44525 * lib/posix/regex.h: g++ still cannot handled [restrict].
44527 2006-04-21 Ulrich Drepper <drepper@redhat.com>
44529 * lib/posix/regex.h: Remove special handling for VMS.
44531 2006-08-10 Jim Meyering <jim@meyering.net>
44533 * modules/same-inode: New module.
44534 * modules/dev-ino: New module.
44535 * modules/cycle-check: Depend on these modules, rather than simply
44536 including their .h files.
44537 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44538 required via m4/cycle-check.m4.
44539 * modules/same: Depend on new same-inode module, rather than
44540 including same-inode.h.
44541 * modules/chdir-safer: New file.
44543 * modules/chown (Depends-on): Add stat-macros.
44545 2006-08-10 Jim Meyering <jim@meyering.net>
44547 * m4/cycle-check.m4: New file.
44548 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44549 * m4/dev-ino.m4, m4/same-inode.m4: New files.
44551 2006-08-10 Eric Blake <ebb9@byu.net>
44553 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44554 in from original proposal.
44556 2006-08-10 Eric Blake <ebb9@byu.net>
44557 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44559 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44562 2006-08-10 Bruno Haible <bruno@clisp.org>
44564 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44567 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44569 Sync from coreutils.
44571 2006-07-19 Mike Frysinger <vapier@gentoo.org>
44573 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44574 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44576 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44578 * modules/restrict: Remove; no longer needed now that we assume
44579 Autoconf 2.59 or later.
44580 * MODULES.html.sh: Remove 'restrict'.
44581 * modules/argp (Depends-on): Remove 'restrict'.
44582 * modules/base64 (Depends-on): Likewise.
44583 * modules/gc (Depends-on): Likewise.
44584 * modules/getaddrinfo (Depends-on): Likewise.
44585 * modules/glob (Depends-on): Likewise.
44586 * modules/inet_ntop (Depends-on): Likewise.
44587 * modules/inet_pton (Depends-on): Likewise.
44588 * modules/memxor (Depends-on): Likewise.
44589 * modules/regex (Depends-on): Likewise.
44590 * modules/strtok_r (Depends-on): Likewise.
44591 * modules/time_r (Depends-on): Likewise.
44593 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44595 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44596 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44597 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44598 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44599 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44600 * m4/memxor.m4 (gl_MEMXOR): Likewise.
44601 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
44602 gl_C_RESTRICT replaced by AC_C_RESTRICT.
44604 Merge from coreutils.
44605 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44606 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44607 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44608 * m4/time_r.m4 (gl_TIME_R): Likewise.
44610 2006-08-09 Karl Berry <karl@gnu.org>
44612 * config/srclist.txt: no more gettext-tools, per Bruno.
44614 2006-08-08 Eric Blake <ebb9@byu.net>
44616 * modules/verror: New module.
44617 * MODULES.html.sh: Document it.
44619 2006-08-08 Eric Blake <ebb9@byu.net>
44621 * lib/verror.h, lib/verror.c: New files.
44623 2006-08-08 Eric Blake <ebb9@byu.net>
44625 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44626 verror_at_line output complies with GNU Coding Standards even when
44629 2006-08-07 Bruno Haible <bruno@clisp.org>
44631 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44633 Reported by Ralf Wildenhues.
44635 2006-08-07 Bruno Haible <bruno@clisp.org>
44637 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44638 in an AC_DEFUN. Needed so that the autoconf snippets can use
44641 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44643 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44644 Initialize pkgdata_DATA.
44645 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44648 2006-08-06 Eric Blake <ebb9@byu.net>
44650 * lib/error.h: Fold in some upstream changes from glibc.
44651 * lib/error.c: Likewise.
44653 2006-08-04 Bruno Haible <bruno@clisp.org>
44655 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44656 Make the mostlyclean-local rule depend on mostlyclean-generic.
44657 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44659 2006-07-31 Bruno Haible <bruno@clisp.org>
44661 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44662 <stdlib.h>, <string.h>.
44664 2006-07-30 Bruno Haible <bruno@clisp.org>
44666 * modules/readlink (License): Change to LGPL.
44668 2006-07-30 Bruno Haible <bruno@clisp.org>
44670 * modules/javaversion (Makefile.am): Distribute javaversion.java and
44671 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44672 set PKGDATADIR to point to it.
44674 2006-07-30 Bruno Haible <bruno@clisp.org>
44676 * modules/csharpexec (configure.ac): Comment out macro invocation.
44677 * modules/javaexec (configure.ac): Likewise.
44678 * modules/javacomp-script (configure.ac): Likewise.
44680 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44682 2006-07-30 Bruno Haible <bruno@clisp.org>
44684 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44687 2006-07-30 Bruno Haible <bruno@clisp.org>
44689 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44691 2006-07-30 Bruno Haible <bruno@clisp.org>
44693 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44694 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44697 2006-07-29 Bruno Haible <bruno@clisp.org>
44699 Make it possible for gnulib-tool to work with locally modified or
44700 augmented gnulib repositories.
44701 * gnulib-tool (func_usage): Document --local-dir option.
44702 (local_gnulib_dir): New variable.
44703 Handle --local-dir option.
44704 (func_lookup_file): New function.
44705 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44706 (func_get_description, func_get_filelist, func_get_description,
44707 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44708 func_get_automake_snippet, func_get_include_directive,
44709 func_get_license, func_get_maintainer): Use func_lookup_file.
44710 (func_import, func_create_testdir): Use func_lookup_file.
44712 2006-07-29 Bruno Haible <bruno@clisp.org>
44714 * modules/setenv (Depends-on): Add unistd.
44716 2006-07-29 Bruno Haible <bruno@clisp.org>
44718 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44720 2006-07-29 Bruno Haible <bruno@clisp.org>
44722 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44724 2006-07-29 Bruno Haible <bruno@clisp.org>
44726 * gnulib-tool (import, update): If there is no Makefile.am, look at
44727 aclocal.m4, instead of bailing out.
44729 2006-07-29 Bruno Haible <bruno@clisp.org>
44731 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44732 Categorize the options by when they are useful.
44734 2006-07-29 Bruno Haible <bruno@clisp.org>
44736 * gnulib-tool (func_usage): Document option --no-libtool.
44737 Handle option --no-libtool.
44738 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44739 for changed semantics of $libtool variable.
44740 (func_import): Likewise. If libtool is not used, show this through
44741 an option --no-libtool.
44742 (func_create_testdir): Update.
44744 2006-07-29 Bruno Haible <bruno@clisp.org>
44746 * gnulib-tool (func_import): Extend error message about missing
44749 2006-07-29 Bruno Haible <bruno@clisp.org>
44751 * gnulib-tool (func_import): Don't create the $docbase directory if
44752 there is no file to store there.
44754 2006-07-29 Bruno Haible <bruno@clisp.org>
44756 * gnulib-tool (autoconf_minversion): If a --dir option is given and
44757 relevant, look for configure.ac there, not in the current directory.
44758 Also use a simple search for AC_PREREQ, not "autoconf --trace".
44760 2006-07-29 Bruno Haible <bruno@clisp.org>
44762 * gnulib-tool (SORT): New variable.
44763 (func_usage): Undocument --assume-autoconf option.
44764 Remove --assume-autoconf option handling.
44765 (autoconf_minversion): Determine from the contents of configure.ac.
44766 (func_import): Remove autoconf_minversion handling.
44767 Suggested by Eric Blake.
44769 2006-07-29 Bruno Haible <bruno@clisp.org>
44771 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44773 2006-07-29 Bruno Haible <bruno@clisp.org>
44775 * config/srclist.txt (*setenv.[ch]): Remove rules.
44777 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44779 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44781 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44783 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44786 2006-07-28 Simon Josefsson <jas@extundo.com>
44788 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44789 * modules/inet_pton (Depends-on): Likewise.
44791 2006-07-28 Simon Josefsson <jas@extundo.com>
44793 * m4/netinet_in_h.m4: New file.
44795 2006-07-28 Simon Josefsson <jas@extundo.com>
44797 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44800 2006-07-28 Simon Josefsson <jas@extundo.com>
44802 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44805 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
44807 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44808 setgid on directories only if they set these bits.
44809 * lib/modechange.h: Remove obsolete comment about masks.
44811 2006-07-28 Eric Blake <ebb9@byu.net>
44813 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44816 2006-07-28 Bruno Haible <bruno@clisp.org>
44818 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44820 2006-07-28 Bruno Haible <bruno@clisp.org>
44822 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44824 2006-07-28 Bruno Haible <bruno@clisp.org>
44826 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44827 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44829 Avoids link error on FreeBSD 4.x.
44830 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44832 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44834 * lib/mbswidth.c (iswcntrl): Likewise.
44836 2006-07-27 Bruno Haible <bruno@clisp.org>
44838 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44841 2006-07-27 Bruno Haible <bruno@clisp.org>
44843 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44844 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44847 2006-07-26 Eric Blake <ebb9@byu.net>
44849 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44851 2006-07-26 Eric Blake <ebb9@byu.net>
44853 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44854 like mingw that lack mkstemp.
44855 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44856 avoid compilation warning on mingw.
44858 2006-07-26 Bruno Haible <bruno@clisp.org>
44860 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44861 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44862 INT_FAST*_MIN, INTPTR_MIN.
44864 2006-07-25 Bruno Haible <bruno@clisp.org>
44866 * modules/version-etc (Depends-on): Add stdarg.
44868 2006-07-25 Bruno Haible <bruno@clisp.org>
44870 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44873 2006-07-25 Bruno Haible <bruno@clisp.org>
44875 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44876 defined in <stdarg.h> or config.h.
44878 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44880 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44881 (gl_STDIO_SAFER): Remove.
44883 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44885 * MODULES.html.sh (File stream based Input/Output):
44886 Add fopen-safer, tmpfile-safer; remove stdio-safer.
44887 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44888 * modules/fopen-safer, modules/tmpfile-safer: New files.
44889 * modules/stdio-safer: Remove.
44891 2006-07-24 Bruno Haible <bruno@clisp.org>
44893 * modules/tmpdir: New file.
44894 * MODULES.html.sh (File system functions): Add it.
44896 2006-07-24 Bruno Haible <bruno@clisp.org>
44898 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44899 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44901 2006-07-24 Bruno Haible <bruno@clisp.org>
44903 * modules/clean-temp: New file.
44905 2006-07-24 Bruno Haible <bruno@clisp.org>
44907 * m4/tmpdir.m4: New file, from GNU gettext.
44909 2006-07-24 Bruno Haible <bruno@clisp.org>
44911 * lib/tmpdir.h: New file, from GNU gettext.
44912 * lib/tmpdir.c: New file, from GNU gettext.
44914 2006-07-24 Bruno Haible <bruno@clisp.org>
44916 * lib/clean-temp.h: New file, from GNU gettext.
44917 * lib/clean-temp.c: New file, from GNU gettext.
44919 2006-07-23 Eric Blake <ebb9@byu.net>
44921 * modules/stdio-safer (Files): Add tmpfile-safer.c.
44922 (Depends-on): Add binary-io.
44924 2006-07-23 Eric Blake <ebb9@byu.net>
44926 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44928 2006-07-23 Eric Blake <ebb9@byu.net>
44930 * lib/tmpfile-safer.c: New file.
44931 * lib/stdio-safer.h (fopen_safer): Add prototype.
44932 * lib/stdio--.h (tmpfile): Make safer.
44934 2006-07-23 Bruno Haible <bruno@clisp.org>
44936 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44937 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44938 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44939 gl_linked_remove_at): Use it.
44941 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44942 and Simon Josefsson <jas@extundo.com>
44944 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44946 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44948 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44950 * modules/close-stream: New file.
44951 * modules/closeout (Description): Make it clear that it exits
44952 with a diagnostic on error.
44953 (Depends-on): Add close-stream. Remove fpending, stdbool.
44954 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44956 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44958 * m4/close-stream.m4: New file.
44960 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44962 * lib/close-stream.c, lib/close-stream.h: New files.
44964 2006-07-22 Bruno Haible <bruno@clisp.org>
44966 Merge from GNU gettext 0.15.
44968 2006-05-01 Bruno Haible <bruno@clisp.org>
44970 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44972 2006-07-22 Bruno Haible <bruno@clisp.org>
44974 * modules/javaversion: New file.
44975 * MODULES.html.sh (Java): Add javaversion.
44977 2006-03-12 Bruno Haible <bruno@clisp.org>
44979 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44981 2005-12-04 Bruno Haible <bruno@clisp.org>
44983 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44986 2006-06-21 Bruno Haible <bruno@clisp.org>
44988 Avoid warnings from recent versions of mcs.
44989 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44990 -o, -L, -r any more. Use options documented since mcs-1.0
44991 instead. Similarly for -g.
44993 2005-12-04 Bruno Haible <bruno@clisp.org>
44995 * build-aux/csharpcomp.sh.in: Suffix for resources is
44996 .resources, not .resource.
44998 2005-07-09 Bruno Haible <bruno@clisp.org>
45000 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45002 Reported by Mark Junker <mjscod@gmx.de>.
45004 2006-07-22 Bruno Haible <bruno@clisp.org>
45006 * modules/gettext: Upgrade to gettext-0.15.
45007 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45009 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45011 2006-07-22 Bruno Haible <bruno@clisp.org>
45013 Merge from GNU gettext 0.15.
45015 2006-03-25 Bruno Haible <bruno@clisp.org>
45017 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45019 2006-07-21 Bruno Haible <bruno@clisp.org>
45021 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45024 2006-05-09 Bruno Haible <bruno@clisp.org>
45026 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45027 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45028 for the conftestver execution.
45030 2006-05-01 Bruno Haible <bruno@clisp.org>
45032 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45033 optional target-version argument. Verify that the compiler
45034 groks source of the specified source-version, or add -source
45035 option as necessary. Verify that the compiler produces
45036 bytecode in the specified target-version, or add -target and
45037 -source options as necessary. Make the result of the test
45038 available as variable CONF_JAVAC. Also log error output in
45041 2006-03-11 Bruno Haible <bruno@clisp.org>
45043 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45045 2006-05-09 Bruno Haible <bruno@clisp.org>
45047 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45048 CLASSPATH_SEPARATOR to a semicolon.
45050 2006-03-12 Bruno Haible <bruno@clisp.org>
45052 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45053 available as variable CONF_JAVA, for subsequent autoconf
45054 tests. Also log error output in config.log.
45056 2006-07-19 Bruno Haible <bruno@clisp.org>
45058 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45059 that getline works on glibc2 systems. Needed to avoid trouble
45061 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45063 2005-12-04 Bruno Haible <bruno@clisp.org>
45065 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45066 launcher (untested).
45068 2005-12-04 Bruno Haible <bruno@clisp.org>
45070 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45072 2006-07-22 Bruno Haible <bruno@clisp.org>
45074 * gettext.m4: Update from GNU gettext-0.15.
45075 * nls.m4: Likewise.
45077 * inttypes-pri.m4: Likewise.
45078 * inttypes-h.m4: Renamed from inttypes.m4.
45079 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45081 2006-07-22 Bruno Haible <bruno@clisp.org>
45083 Merge from GNU gettext 0.15.
45085 2005-07-05 Bruno Haible <bruno@clisp.org>
45087 * printf-args.c (printf_fetchargs): Work around broken
45088 definition of wint_t on mingw.
45090 2005-02-12 Bruno Haible <bruno@clisp.org>
45092 * xallocsa.h: Add extern "C" for C++.
45094 2006-05-17 Bruno Haible <bruno@clisp.org>
45096 Cygwin portability.
45097 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45099 2006-04-30 Bruno Haible <bruno@clisp.org>
45101 * progreloc.c: Include <mach-o/dyld.h> if available.
45102 (find_executable): Use _NSGetExecutablePath when possible.
45104 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
45106 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45109 2005-12-29 Bruno Haible <bruno@clisp.org>
45111 * progreloc.c (set_program_name_and_installdir): Fix
45114 2005-12-04 Bruno Haible <bruno@clisp.org>
45116 Cygwin portability.
45117 * progreloc.c: Include <windows.h> also on Cygwin.
45118 (find_executable): Add support for Cygwin.
45119 (set_program_name_and_installdir): Handle also platforms with
45122 2006-07-11 Bruno Haible <bruno@clisp.org>
45124 * javacomp.c: Fix a comment.
45125 Reported by Jim Meyering.
45127 2006-04-30 Bruno Haible <bruno@clisp.org>
45129 * javacomp.h (compile_java_class): Add source_version,
45130 target_version arguments.
45131 * javacomp.c: Rewritten to choose only a compiler that
45132 respects the specified source_version and target_version.
45134 2006-06-27 Bruno Haible <bruno@clisp.org>
45136 Assume correct S_ISDIR macro.
45137 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45139 2006-07-22 Bruno Haible <bruno@clisp.org>
45141 * javaversion.h: New file, from GNU gettext.
45142 * javaversion.c: New file, from GNU gettext.
45143 * javaversion.java: New file, from GNU gettext.
45144 * javaversion.class: New file, from GNU gettext.
45146 2006-05-17 Bruno Haible <bruno@clisp.org>
45148 Cygwin portability.
45149 * javaexec.c (execute_java_class): Test for jview program
45152 2006-04-09 Bruno Haible <bruno@clisp.org>
45154 * fatal-signal.c: Don't include string.h.
45155 (at_fatal_signal): Use a copying loop instead of memcpy.
45157 2005-12-04 Bruno Haible <bruno@clisp.org>
45159 * csharpexec.c: Add support for 'clix' launcher (untested).
45160 (execute_csharp_using_sscli): New function.
45161 (execute_csharp_program): Call it.
45163 2006-06-21 Bruno Haible <bruno@clisp.org>
45165 Avoid warnings from recent versions of mcs.
45166 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45167 -o, -L, -r any more. Use options documented since mcs-1.0
45168 instead. Similarly for -g.
45170 2005-07-09 Bruno Haible <bruno@clisp.org>
45172 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45174 Reported by Mark Junker <mjscod@gmx.de>.
45176 2006-06-17 Bruno Haible <bruno@clisp.org>
45178 * config.charset: Update for NetBSD 3.0.
45180 2006-05-17 Bruno Haible <bruno@clisp.org>
45182 Cygwin portability.
45183 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45185 2006-05-16 Bruno Haible <bruno@clisp.org>
45187 * localcharset.c [CYGWIN]: Include <windows.h>.
45188 (get_charset_aliases): For Cygwin, return the same CPxxx
45189 aliases list as under WIN32.
45190 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45191 the environment variables. Fall back to GetACP().
45193 2006-04-05 Bruno Haible <bruno@clisp.org>
45195 * config.charset: Update Juan Manuel Guerrero's address.
45197 2005-02-12 Bruno Haible <bruno@clisp.org>
45199 * allocsa.h: Add extern "C" for C++.
45201 2005-02-10 Bruno Haible <bruno@clisp.org>
45203 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45204 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45206 2006-07-22 Bruno Haible <bruno@clisp.org>
45208 * gettext.h: Update to GNU gettext-0.15.
45210 2006-07-22 Bruno Haible <bruno@clisp.org>
45212 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45213 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45214 lib-prefix.m4, longdouble.m4, ssize_t.m4.
45216 2006-07-21 Eric Blake <ebb9@byu.net>
45218 * modules/stdlib-safer: New file.
45219 * MODULES.html.sh (File stream based Input/Output): Add
45222 2006-07-21 Eric Blake <ebb9@byu.net>
45224 * lib/stdlib-safer.h: New file from coreutils, required by
45227 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
45229 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45231 2006-07-20 Bruno Haible <bruno@clisp.org>
45233 * gnulib-tool: Recognize new option --assume-autoconf.
45234 (autoconf_minversion): New variable.
45235 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45237 2006-07-20 Bruno Haible <bruno@clisp.org>
45239 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45241 2006-07-19 Derek R. Price <derek@ximbiot.com>
45243 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45244 Reindent and repaginate.
45246 2006-07-19 Derek Price <derek@ximbiot.com>
45248 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
45251 2006-07-17 Bruno Haible <bruno@clisp.org>
45253 * modules/list: New file.
45254 * modules/array-list: New file.
45255 * modules/carray-list, modules/carray-list-tests: New files.
45256 * modules/linked-list, modules/linked-list-tests: New files.
45257 * modules/avltree-list, modules/avltree-list-tests: New files.
45258 * modules/rbtree-list, modules/rbtree-list-tests: New files.
45259 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45260 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45261 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45262 * modules/oset: New file.
45263 * modules/array-oset: New file.
45264 * modules/avltree-oset, modules/avltree-oset-tests: New files.
45265 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45266 * tests/test-carray_list.c: New file.
45267 * tests/test-linked_list.c: New file.
45268 * tests/test-avltree_list.c: New file.
45269 * tests/test-rbtree_list.c: New file.
45270 * tests/test-linkedhash_list.c: New file.
45271 * tests/test-avltreehash_list.c: New file.
45272 * tests/test-rbtreehash_list.c: New file.
45273 * tests/test-avltree_oset.c: New file.
45274 * tests/test-rbtree_oset.c: New file.
45275 * MODULES.html.sh (Container data structures): New section.
45277 2006-07-17 Bruno Haible <bruno@clisp.org>
45279 * m4/gl_list.m4: New file.
45281 2006-07-17 Bruno Haible <bruno@clisp.org>
45283 * lib/gl_list.h: New file.
45284 * lib/gl_list.c: New file.
45285 * lib/gl_array_list.h: New file.
45286 * lib/gl_array_list.c: New file.
45287 * lib/gl_carray_list.h: New file.
45288 * lib/gl_carray_list.c: New file.
45289 * lib/gl_linked_list.h: New file.
45290 * lib/gl_linked_list.c: New file.
45291 * lib/gl_anylinked_list1.h: New file.
45292 * lib/gl_anylinked_list2.h: New file.
45293 * lib/gl_avltree_list.h: New file.
45294 * lib/gl_avltree_list.c: New file.
45295 * lib/gl_anyavltree_list1.h: New file.
45296 * lib/gl_anyavltree_list2.h: New file.
45297 * lib/gl_rbtree_list.h: New file.
45298 * lib/gl_rbtree_list.c: New file.
45299 * lib/gl_anyrbtree_list1.h: New file.
45300 * lib/gl_anyrbtree_list2.h: New file.
45301 * lib/gl_anytree_list1.h: New file.
45302 * lib/gl_anytree_list2.h: New file.
45303 * lib/gl_linkedhash_list.h: New file.
45304 * lib/gl_linkedhash_list.c: New file.
45305 * lib/gl_anyhash_list1.h: New file.
45306 * lib/gl_anyhash_list2.h: New file.
45307 * lib/gl_avltreehash_list.h: New file.
45308 * lib/gl_avltreehash_list.c: New file.
45309 * lib/gl_rbtreehash_list.h: New file.
45310 * lib/gl_rbtreehash_list.c: New file.
45311 * lib/gl_anytreehash_list1.h: New file.
45312 * lib/gl_anytreehash_list2.h: New file.
45314 * lib/gl_oset.h: New file.
45315 * lib/gl_oset.c: New file.
45316 * lib/gl_array_oset.h: New file.
45317 * lib/gl_array_oset.c: New file.
45318 * lib/gl_avltree_oset.h: New file.
45319 * lib/gl_avltree_oset.c: New file.
45320 * lib/gl_rbtree_oset.h: New file.
45321 * lib/gl_rbtree_oset.c: New file.
45322 * lib/gl_anytree_oset.h: New file.
45324 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45326 * m4/mkancesdirs.m4: New file.
45327 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45328 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45329 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45332 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45334 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45335 * lib/mkancesdirs.h: New files.
45336 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45337 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45338 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
45339 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45340 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
45341 callers changed. Revamp internals significantly, by not
45342 attempting to create directories that are temporarily more
45343 permissive than the final results. Do not attempt to use
45344 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45345 This removes some race conditions, fixes some bugs, and simplifies
45346 things. Use new dirchownmod function to do owner and mode changes.
45347 * lib/mkdir-p.h: Likewise.
45348 * lib/modechange.c (octal_to_mode): New function.
45349 (struct mode_change): New member mentioned.
45350 (make_node_op_equals): New arg mentioned. All callers changed.
45351 (mode_compile): Keep track of which mode bits the user has explicitly
45353 (mode_adjust): New arg DIR, so that we implement the X op correctly.
45354 New arg PMODE_BITS, to keep track of which mode bits the user
45355 mentioned; it treats S_ISUID and S_ISGID speciall.
45356 All callers changed.
45357 * lib/modechange.h: Likewise.
45359 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45361 * MODULES.html.sh: Add mkancestors.
45362 * modules/mkancesdirs: New module.
45363 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45364 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45365 The chdir-safer and afs files are now orphans; I'll remove them
45366 unless someone speaks up.
45367 Add lib/dirchownmod.c, lib/dirchownmod.h.
45368 (Depends-on): Remove alloca, chown, save-cwd, dirname.
45369 Add lchown, mkancesdirs.
45370 (Maintainer): Add self.
45372 2006-07-15 Karl Berry <karl@gnu.org>
45374 * gnulib-tool: help message wording/arrangement.
45376 2006-07-14 Simon Josefsson <jas@extundo.com>
45378 * doc/gnulib.texi (Libtool and Windows): New section.
45380 2006-07-12 Simon Josefsson <jas@extundo.com>
45382 * modules/gendocs (License): Fix license, approved by Karl.
45384 2006-07-12 Eric Blake <ebb9@byu.net>
45386 * MODULES.html.sh: Add gendocs.
45388 2006-07-11 Eric Blake <ebb9@byu.net>
45390 * modules/fdl: New module, to install doc/fdl.texi.
45391 * MODULES.html.sh: Add new section for documentation modules.
45392 * gnulib-tool: Avoid space-tab.
45393 (--doc-base): New option, to manage files from doc.
45395 2006-07-11 Eric Blake <ebb9@byu.net>
45397 * m4/absolute-header.m4: Fix comments to match recent change.
45399 2006-07-11 Eric Blake <ebb9@byu.net>
45401 * gnulib-tool: List --doc-base before --tests-base.
45403 2006-07-11 Derek R. Price <derek@ximbiot.com>
45405 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45407 2006-07-11 Bruno Haible <bruno@clisp.org>
45409 * README: Mention where to put documentation.
45411 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45413 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45415 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
45417 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45420 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
45422 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45423 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
45424 "no/such/file/stdint.h" when there is no such file, so that
45425 the resulting C code can be parsed by dodgy compilers.
45426 Problems reported by Bob Proulx.
45428 2006-07-10 Derek R. Price <derek@ximbiot.com>
45430 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45431 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
45432 macros into the GNU _D_EXACT_NAMLEN.
45433 * lib/savedir.c: Likewise.
45434 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45436 2006-07-10 Derek R. Price <derek@ximbiot.com>
45437 and Paul Eggert <eggert@cs.ucla.edu>
45439 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45441 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
45442 macros into the GNU _D_EXACT_NAMLEN.
45444 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45446 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45447 around the absolute name, to work around a problem with the HP-UX
45448 11.23 native C compiler, reported by Bob Proulx.
45450 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45452 * doc/maintain.texi, make-stds.texi: Sync from
45453 <http://savannah.gnu.org/projects/gnustandards>.
45455 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45457 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45459 2006-07-09 Jim Meyering <jim@meyering.net>
45461 * m4/glob.m4: Remove a doubled word in a comment.
45463 2006-07-09 Jim Meyering <jim@meyering.net>
45465 * lib/argp-pv.c: Remove a doubled word in a comment.
45466 * lib/check-version.c (check_version): Likewise.
45467 * lib/javacomp.c (compile_java_class): Likewise.
45469 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
45471 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45472 for the benefit of people using Autoconf 2.60. If you want to
45473 support older Autoconf versions you can copy m4/onceonly_2_57.m4
45474 (or m4/onceonly.m4, if pre-2.57) manually.
45476 2006-07-08 Jim Meyering <jim@meyering.net>
45478 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45480 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45481 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45484 2006-07-08 Jim Meyering <jim@meyering.net>
45486 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45488 2006-07-07 Simon Josefsson <jas@extundo.com>
45490 * tests/test-crc.c: Change expected crc value, the test vector
45491 were probably computed using the old broken crc.c?
45493 2006-07-06 Simon Josefsson <jas@extundo.com>
45495 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45496 now the canonical place for the M4 file).
45498 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45499 from the sys_socket dependency now.
45501 * modules/inet_pton (Files): Ditto.
45503 * modules/inet_ntop (Files): Ditto.
45505 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45507 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45508 not gl_PREREQ_GETUSERSHELL.
45510 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45512 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45513 with only one argument, for Autoconf 2.60.
45514 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45515 expand to nothing, so add a shell command to avoid syntax error.
45516 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45518 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45520 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45522 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45524 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45525 no longer needed. Check for isblank decl.
45526 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45527 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45530 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45532 * lib/getloadavg.c: Use __VMS, not VMS.
45533 * lib/getopt.c: Likewise.
45534 * lib/getpagesize.h: Likewise.
45535 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45536 and probably does not work.
45538 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45540 * lib/.cppi-disable: Add wcwidth.
45541 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
45542 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45543 (ISGRAPH): Remove. All uses changed to isgraph.
45544 (FOLD) [!defined _LIBC]: Remove special case.
45545 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45546 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45548 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45551 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45553 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45554 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45555 brackets. Other minor changes to suppress some compiler
45558 2006-07-06 Derek R. Price <derek@ximbiot.com>
45559 and Paul Eggert <eggert@cs.ucla.edu>
45561 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45562 of invoking obsolescent AC_HEADER_DIRENT macro.
45563 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45564 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45565 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45566 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45567 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45568 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45569 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45570 * m4/readdir.m4: Remove; no longer needed.
45572 2006-07-06 Derek R. Price <derek@ximbiot.com>
45573 and Paul Eggert <eggert@cs.ucla.edu>
45575 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45576 Don't worry about this obsolete case any more.
45577 (HAVE_DIR): Remove. All uses removed; we now assume you can read
45579 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45580 worry about this obsolete case any more.
45581 * lib/fts.c: Likewise.
45582 * lib/getcwd.c: Likewise.
45583 * lib/glob.h: Likewise.
45584 * lib/savedir.c: Likewise.
45586 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45588 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45589 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45590 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45593 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45594 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45595 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45597 * m4/getdate.m4 (gl_GETDATE): Likewise.
45598 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45599 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45600 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45601 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45602 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45603 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45604 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45607 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45609 * lib/memcasecmp.c: Include <limits.h>.
45610 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45611 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45612 Don't assume isdigit succeeds only on '0' through '9'.
45614 2006-07-05 Eric Blake <ebb9@byu.net>
45616 * modules/getaddrinfo (Depends-on): Add snprintf.
45618 2006-07-05 Eric Blake <ebb9@byu.net>
45620 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45621 to avoid 'header present but could not be compiled' on cygwin.
45623 2006-07-05 Eric Blake <ebb9@byu.net>
45625 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45626 missing from netdb.h.
45627 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45629 2006-07-05 Derek R. Price <derek@ximbiot.com>
45631 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45633 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45634 * m4/getdate.m4 (gl_GETDATE): Likewise.
45635 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45636 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45637 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45638 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45639 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45641 2006-07-05 Derek R. Price <derek@ximbiot.com>
45643 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45644 All uses of is_space replaced by isspace.
45645 * lib/exit.h: Don't talk about STDC_HEADERS.
45646 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
45647 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45648 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
45649 replaced by isprint etc.
45650 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45651 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45652 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45653 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45654 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45655 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45657 2006-07-05 Bruno Haible <bruno@clisp.org>
45659 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45660 the function exists, before testing against AIX.
45661 Reported by Martin Lambers <marlam@marlam.de>.
45663 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45665 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45666 From Mark D. Baushke.
45668 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45670 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45671 to the absolute name, not just one, to bypass Sun C 5.8's
45672 "warning: #include of /usr/include/... may be non-portable".
45674 2006-07-04 Eric Blake <ebb9@byu.net>
45676 * modules/dirname-tests: New test module.
45677 * tests/test-dirname.c: New file, replacing dirname.c
45678 TEST_DIRNAME section that was recently deleted.
45680 2006-07-04 Bruno Haible <bruno@clisp.org>
45682 Assume ANSI C header files and <ctype.h> functions.
45683 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45684 (mbsnwidth): Use isprint, iscntrl instead.
45686 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45688 Merge from coreutils.
45689 * MODULES.html.sh: Add xstrtold.
45690 * modules/xstrtold: New file.
45691 * modules/cycle-check (Files): Add lib/same-inode.h.
45692 * modules/dirname (Files): Add m4/double-slash-root.m4.
45693 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45694 * modules/mkdir-p (Files): Add lib/same-inode.h.
45695 * modules/same (Files): Add lib/same-inode.h.
45697 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45699 * m4/absolute-header.m4: Renamed from full-header-path.m4.
45700 This is to keep the terminology clean; POSIX talks about
45701 "absolute pathnames", not "full pathnames", but the GNU
45702 Coding Standards say to use "path" for something else;
45703 so use "absolute" to keep both sides happy.
45704 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45705 Set gl_absolute_header, not gl_full_header_path.
45706 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45707 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45710 Merge from coreutils.
45712 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45714 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45715 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45716 want to require the building of c-strtod.o.
45717 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45718 needs -lm directly.
45719 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45721 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45723 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45724 --as-needed option if available. Problem reported by Albert Chin in
45725 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45726 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45727 cc merely issues a bunch of annoying warnings for --as-needed
45728 (this problem was reported by Bob Proulx). Also, try linking with
45729 -lm to detect a bug in binutils 2.16 (this problem was reported
45730 by Ralf Wildenhues).
45732 2006-06-18 Jim Meyering <jim@meyering.net>
45734 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45735 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45737 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45738 also check for glibc-2.4's abort-inducing bug.
45740 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45741 Low-probability clean-up should be to use rmdir to get rid of
45742 the just-created directory, not unlink.
45744 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45745 configure fail, and request a bug report to inform us about it.
45746 Add a comment that, barring reports to the contrary, in 2007 we'll
45747 assume ftruncate is universally available.
45749 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45751 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45753 2006-03-12 Jim Meyering <jim@meyering.net>
45755 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45756 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45757 * m4/same.m4 (gl_SAME): Likewise.
45758 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45760 2006-03-11 Eric Blake <ebb9@byu.net>
45762 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45763 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45764 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45765 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45767 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45769 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45770 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
45771 reported by Mark D. Baushke, one in
45772 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45774 Merge from coreutils.
45776 * lib/.cppi-disable: Add stdint_.h.
45777 * lib/.cvsignore: Add stdint.h.
45779 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45781 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45782 both double and long double versions.
45783 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
45784 * lib/xstrtold.c: New file.
45785 * lib/xstrtod.h (xstrtold): New decl.
45787 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
45789 * lib/filemode.c (setst): Remove.
45790 (strmode): Rewrite to avoid setst. This makes the code shorter,
45791 (arguably) clearer, and the generated code is a bit smaller on my
45792 Debian GNU/Linux stable x86 host.
45794 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45796 * lib/filemode.c: Include "filemode.h" first, to test the interface.
45797 Assume that filemode.h includes sys/types.h and sys/stat.h.
45798 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45799 (ftypelet): Reorder to put common cases first, for efficiency.
45800 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
45802 (strmode): Renamed from mode_string, and now stores 12 bytes instead
45803 of 10, for compatibility with FreeBSD. All callers changed.
45804 (filemodestring): Now stores 12 bytes instead of 10, and sets file
45805 types that can't be deduced solely from st_mode. First arg is now a
45807 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45808 (strmode): Renamed from mode_string.
45809 (filemodestring): New decl.
45810 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45811 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45813 (S_ISPORT, S_ISWHT): New macros, if not already defined.
45815 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
45817 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45818 fsusage.h now does that. Include fsusage.h first, to test interface.
45819 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
45820 at most one method (the old code could have generated decls that
45821 didn't conform to C89, not that this was ever exercised).
45822 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45824 2006-03-19 Jim Meyering <jim@meyering.net>
45826 Work even in a chroot where d_ino values for entries in "/"
45827 don't match the stat.st_ino values for the same names.
45828 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45829 number, iterate through all entries again, using lstat instead.
45830 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45831 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45833 * lib/getcwd.c (__getcwd): Clarify a comment.
45834 Use memcpy in place of a call to strcpy.
45836 2006-03-12 Jim Meyering <jim@meyering.net>
45838 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45839 matches that of the current directory (which we're about to chdir ".."
45840 out of), then save the dev-ino of the parent, instead.
45842 * lib/same-inode.h (SAME_INODE): New file/macro.
45843 * lib/chdir-safer.c (SAME_INODE): Remove definition.
45844 Include "same-inode.h", instead.
45845 * lib/same.c: Likewise.
45846 * lib/cycle-check.h: Include "same-inode.h".
45847 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45848 * lib/cycle-check.c (SAME_INODE): Remove definition.
45849 * lib/root-dev-ino.h: Include "same-inode.h".
45851 2006-03-11 Eric Blake <ebb9@byu.net>
45853 * lib/same.c (same_name): s/base_name/last_component/
45854 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45855 * lib/filenamecat.c (file_name_concat): Likewise.
45857 2006-03-11 Eric Blake <ebb9@byu.net>,
45858 Paul Eggert <eggert@cs.ucla.edu>
45860 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45861 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45863 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45864 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45865 (last_component): New method.
45866 * lib/dirname.c (dir_len): Determine when drive letters need a
45867 subsequent slash. Preserve // when it is special.
45868 (dir_name): Don't append dot when drive letter is absolute.
45869 [TEST_DIRNAME]: Move into a full-blown gnulib test.
45870 * lib/basename.c (base_name): New semantics - malloc the result.
45871 Preserve // when it is special. Preserve relative files that look
45872 like drive letters.
45873 (base_len): Preserve // when it is special.
45874 (last_component): New method, similar to old base_name semantics.
45875 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45876 base_name. Strip redundant slashes from ///.
45878 2006-07-03 Jim Meyering <jim@meyering.net>
45880 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45881 macro is used before the first cycle_check call.
45883 2006-07-03 Eric Blake <ebb9@byu.net>
45885 * modules/dirname (Depends-on): Add xstrndup.
45887 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45889 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45890 test cases, so that config.log is a bit easier to follow.
45892 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45894 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45895 both are 64 bits, since this seems to be the tradition, and this
45896 prevents gcc -Wformat from warning about usages with PRIuMAX. If
45897 we ever run into a host that prefers long long to long in this
45898 case, we'll need another configure-time test. Problem reported by
45901 2006-07-02 Eric Blake <ebb9@byu.net>
45903 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45905 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45907 * modules/inttypes (Depends-on): No longer depends on stdint.
45908 * modules/stdint (Description): Say more about assumptions.
45909 Say that the fast types might differ. Say macros are used.
45910 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
45911 (Makefile.am): Revise list of substituted symbols to match
45913 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45914 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45915 * tests/test-stdint.c (verify_same_types)
45916 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45917 the code conforms to C99/C89.
45918 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45919 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45921 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45923 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45924 but fix a bug, by requiring at least 64 bits.
45925 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45926 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45927 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
45928 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45930 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45931 changes. Make 2.59 a prerequisite. Check and substitute for
45932 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
45933 inttypes.h. Do not use special include files; just use the
45934 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
45935 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
45936 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45937 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45938 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45939 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45940 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45941 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45942 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45943 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45944 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45945 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45946 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45947 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45948 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45949 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45950 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45951 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45952 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45953 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45954 WINT_MAX. Check for C99 conformance more strictly, by detecting
45955 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
45956 not check for things that C99 does not require, e.g., int8_t. If
45957 a test isn't needed unless <stdint.h> isn't working, and is
45958 unlikely to be needed for any other reason, then don't do it
45959 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
45960 size_t, since we assume C89 freestanding at least. Do not check
45961 for sig_atomic_t, wchar_t, or wint_t, since the code now does
45962 the right thing even if the types are not defined. Instead use:
45963 (gl_STDINT_TYPE_PROPERTIES): New macro.
45964 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
45965 testing whether <sys/types.h> clashes, as Autoconf does this for
45966 us now. All uses removed.
45967 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45968 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45969 (gl_CHECK_TYPE_SAME):
45970 Remove; no longer needed.
45971 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45972 exists, since we'll return 0 anyway in that case.
45973 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45975 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45977 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45978 possible collision with system files.
45979 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45980 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45981 WCHAR_MIN and WCHAR_MAX in this case.
45982 (<stddef.h>): Do not include; no longer needed.
45983 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45984 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45985 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45986 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45987 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45988 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45989 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45990 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45991 !defined(__c99))]: Include in this case too, since it's harmless
45993 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45994 dangerous to do so.
45995 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45996 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45997 (_STDINT_MIN, _STDINT_MAX): New macros.
45998 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45999 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46000 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46001 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46002 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46003 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46004 macros, not typedefs; this simplifies things quite a bit.
46005 Use long int for all types narrower than int64_t.
46006 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46007 Define in terms of long long int or int64_t or long int,
46008 not int64_t or int32_t. This saves some compile-time testing.
46009 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46010 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46011 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46012 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46013 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46014 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46015 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46016 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46017 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46018 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46019 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46020 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46021 undef any previous version and define our own version, for
46022 simplicity and consistency with the new macros for types.
46023 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46024 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46025 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46026 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
46027 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46028 @WINT_T_SUFFIX@ to keep things simple here.
46029 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46030 Simplify by assuming typical 8/16/32/64 host, since we're
46031 already doing that elsewhere anyway.
46032 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46033 and assume long long int is 64 bits if available. This
46034 speeds up 'configure'.
46036 2006-07-01 Eric Blake <ebb9@byu.net>
46038 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46039 Reported by Andreas Buening.
46041 2006-07-01 Eric Blake <ebb9@byu.net>
46043 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46045 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
46047 * lib/getaddrinfo.c: fixed typo
46049 2006-06-29 Jim Meyering <jim@meyering.net>
46051 * modules/strftime (Maintainer): Add my name, since with the
46052 FPRINTFTIME changes strftime.c has forked from glibc.
46054 2006-06-29 Eric Blake <ebb9@byu.net>
46056 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46058 2006-06-29 Eric Blake <ebb9@byu.net>
46060 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46062 2006-06-29 Eric Blake <ebb9@byu.net>
46064 * lib/stat_.h: New file.
46066 2006-06-29 Eric Blake <ebb9@byu.net>
46068 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46069 unused static function.
46071 2006-06-29 Eric Blake <ebb9@byu.net>
46073 * doc/functions.texi (Function Portability): Document missing lstat
46076 2006-06-29 Eric Blake <ebb9@byu.net>
46078 * MODULES.html.sh: Add sys_stat.
46079 * modules/sys_stat: New module.
46080 * modules/mkstemp (Depends-on): Add sys_stat.
46082 2006-06-29 Derek R. Price <derek@ximbiot.com>
46084 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46086 2006-06-29 Derek R. Price <derek@ximbiot.com>
46088 * m4/c-bs-a.m4: Removed.
46090 2006-06-29 Derek R. Price <derek@ximbiot.com>
46092 * lib/strftime.c: Assume strftime() exists.
46094 2006-06-29 Derek Price <derek@ximbiot.com>
46096 * modules/c-bs-a: Removed - \a is C89.
46097 * MODULES.html.sh: Remove c-bs-a.
46099 2006-06-29 Bruno Haible <bruno@clisp.org>
46101 * modules/wcwidth (License): Change to LGPL.
46103 2006-06-28 Simon Josefsson <jas@extundo.com>
46105 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
46108 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46111 2006-06-28 Simon Josefsson <jas@extundo.com>
46113 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46115 2006-06-28 Simon Josefsson <jas@extundo.com>
46117 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46118 functions there. It will succeed on Windows XP, but on Windows
46119 2000 and (presumably) earlier, it will fail, and use the internal
46121 (use_win32_p): New function.
46122 (getaddrinfo): Use strtoul on servname, to support numeric ports.
46123 Support AI_NUMERICSERV to disable getservbyname.
46124 (getnameinfo): New function, only supports
46125 NI_NUMERICHOST|NI_NUMERICSERV for now.
46127 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46128 only have some of them. Add AI_NUMERICSERV. Add prototype for
46131 2006-06-28 Eric Blake <ebb9@byu.net>
46133 * modules/wcwidth: New file.
46134 * modules/mbchar (Depends-on): Add wcwidth.
46135 * modules/mbswidth (Depends-on): Add wcwidth.
46136 * MODULES.html.sh: Add wcwidth.
46138 2006-06-28 Eric Blake <ebb9@byu.net>
46140 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46141 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46143 2006-06-28 Eric Blake <ebb9@byu.net>
46145 * lib/xvasprintf.h: Fix comments.
46147 2006-06-28 Eric Blake <ebb9@byu.net>
46149 * lib/mbchar.h (wcwidth): Include wcwidth.h.
46150 * lib/mbswidth.c (wcwidth): Move from here...
46151 * lib/wcwidth.h: ...to this new file.
46153 2006-06-28 Derek R. Price <derek@ximbiot.com>
46155 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46157 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46159 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46161 2006-06-28 Derek R. Price <derek@ximbiot.com>
46163 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
46164 Autoconf 2.60 says this stuff was obsolete.
46166 2006-06-28 Bruno Haible <bruno@clisp.org>
46168 * modules/wcwidth (Files): Add m4/wchar_t.m4.
46170 2006-06-28 Bruno Haible <bruno@clisp.org>
46172 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46175 2006-06-28 Bruno Haible <bruno@clisp.org>
46177 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46178 declaration for wcwidth.
46179 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46181 2006-06-28 Bruno Haible <bruno@clisp.org>
46183 * lib/mkdtemp.c [MINGW]: Include <io.h>.
46184 (mkdir): Define using _mkdir.
46186 2006-06-28 Bruno Haible <bruno@clisp.org>
46188 * lib/getaddrinfo.h: Fix POSIX URL.
46189 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46191 (use_win32_p): Make static.
46192 (getaddrinfo): Reject service name if it is empty or does not consist
46193 solely of decimal digits, or if its value is > 65535.
46194 (getnameinfo): Remove useless casts.
46196 2006-06-27 Simon Josefsson <jas@extundo.com>
46198 * modules/sys_select: New file, suggested by Bruno Haible, Paul
46199 Eggert and Martin Lambers.
46201 2006-06-27 Simon Josefsson <jas@extundo.com>
46203 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46204 Eggert and Martin Lambers.
46206 2006-06-27 Bruno Haible <bruno@clisp.org>
46208 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46209 result to 0, not to empty.
46210 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46212 2006-06-27 Bruno Haible <bruno@clisp.org>
46214 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46216 2006-06-26 Simon Josefsson <jas@extundo.com>
46218 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46221 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
46223 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46224 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
46225 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46227 2006-06-26 Mark D. Baushke <mdb@gnu.org>
46229 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46231 2006-06-26 Bruno Haible <bruno@clisp.org>
46233 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46235 2006-06-26 Bruno Haible <bruno@clisp.org>
46237 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46239 2006-06-26 Bruno Haible <bruno@clisp.org>
46241 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46242 SGI C compiler in pre-C99 mode.
46243 Suggested by Mark D. Baushke and Larry Jones.
46245 2006-06-26 Bruno Haible <bruno@clisp.org>
46247 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46249 Reported by Mark D. Baushke and Larry Jones.
46251 2006-06-26 Bruno Haible <bruno@clisp.org>
46253 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46255 Suggested by Mark D. Baushke and Larry Jones.
46257 2006-06-23 Simon Josefsson <jas@extundo.com>
46258 Bruno Haible <bruno@clisp.org>
46260 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46261 Emit mostlyclean-local rule.
46262 (func_emit_tests_Makefile_am): Likewise.
46263 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46265 2006-06-23 Mark D. Baushke <mdb@gnu.org>
46267 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46269 2006-06-23 Bruno Haible <bruno@clisp.org>
46271 * tests/test-stdint.c: Update to match ISO C 99 Technical
46274 2006-06-23 Bruno Haible <bruno@clisp.org>
46276 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46278 2006-06-23 Bruno Haible <bruno@clisp.org>
46280 * lib/stdint_.h: Treat IRIX like OpenBSD.
46282 2006-06-23 Bruno Haible <bruno@clisp.org>
46284 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46285 ISO C 99 Technical Corrigendum 1.
46287 2006-06-22 Simon Josefsson <jas@extundo.com>
46289 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46292 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
46294 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46295 needed. Some compiler complained about some of them. Problem reported
46297 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46299 2006-06-21 Simon Josefsson <jas@extundo.com>
46301 * tests/test-getaddrinfo.c: New file.
46303 * modules/getaddrinfo-tests: New file.
46305 * MODULES.html.sh: Add inet_pton.
46307 * modules/inet_pton: New file.
46309 2006-06-21 Simon Josefsson <jas@extundo.com>
46311 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
46312 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
46313 of using the (limited) gnulib implementation on Windows XP.
46315 * m4/inet_pton.m4: New file.
46317 2006-06-21 Simon Josefsson <jas@extundo.com>
46319 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46322 * lib/socket_.h: Don't define WINVER.
46324 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46325 slightly modified to work in gnulib.
46327 2006-06-21 Simon Josefsson <jas@extundo.com>
46329 * doc/gnulib.texi (Windows sockets): Add.
46331 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
46333 * lib/read-file.c (fread_file): Start with buffer allocation of
46334 0 bytes rather than 1 byte; this simplifies the code.
46335 Don't invoke feof; it's not needed. Refactor to avoid duplicate
46336 code to free buffer and save/restore errno.
46337 (internal_read_file): Remove unused local.
46339 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
46341 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46342 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46343 Problem reported by Denis Excoffier in
46344 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46346 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46348 * modules/sys_socket, modules/socklen: Include sys/types since
46349 FreeBSD 4.x's sys/socket.h needs it.
46351 2006-06-19 Simon Josefsson <jas@extundo.com>
46353 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46355 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
46357 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46359 2006-06-19 Bruno Haible <bruno@clisp.org>
46361 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46362 and FULL_PATH_INTTYPES_H in angle brackets.
46363 Reported by Mark D. Baushke <mdb@gnu.org>.
46365 2006-06-17 Eric Blake <ebb9@byu.net>
46367 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46370 2006-06-17 Bruno Haible <bruno@clisp.org>
46372 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46375 2006-06-17 Bruno Haible <bruno@clisp.org>
46377 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46378 whether errno is declared. Assume <errno.h> declares errno.
46380 2006-06-17 Bruno Haible <bruno@clisp.org>
46382 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46384 2006-06-17 Bruno Haible <bruno@clisp.org>
46386 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46387 problem on Solaris 2.5.1.
46389 2006-06-16 Eric Blake <ebb9@byu.net>
46391 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46392 * lib/unicodeio.c [!defined errno]: Likewise.
46393 * lib/strtol.c [!defined errno]: Likewise.
46394 * lib/strtod.c [!defined errno]: Likewise.
46396 2006-06-15 Eric Blake <ebb9@byu.net>
46398 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46400 2006-06-15 Eric Blake <ebb9@byu.net>
46402 * config/srclist.txt (ssize_t.m4): Lose sync.
46404 2006-06-15 Bruno Haible <bruno@clisp.org>
46406 * modules/stdint (Files): Include m4/full-header-path.m4,
46407 m4/size_max.m4, m4/wchar_t.m4.
46408 (Makefile.am): Many more substitutions.
46409 * modules/stdint-tests: New file.
46410 * tests/test-stdint.c: New file.
46412 2006-06-15 Bruno Haible <bruno@clisp.org>
46414 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46415 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46416 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46417 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46418 gl_CHECK_TYPE_SAME): New macros.
46420 2006-06-15 Bruno Haible <bruno@clisp.org>
46422 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46424 2006-06-15 Bruno Haible <bruno@clisp.org>
46426 * lib/stdint_.h: Rewritten to be fully auto-configured.
46427 Fixes bug on HP-UX/IA64.
46429 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
46431 * lib/getdate.y (__attribute__): Don't define if already defined.
46432 Problem reported by Larry Jones.
46433 * lib/utimens.c (__attribute__): Likewise.
46435 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
46437 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46438 reported by Andreas Schwab.
46440 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46441 Bruno Haible <bruno@clisp.org>
46443 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46444 check for the declaration of strnlen and a run test that exposes the
46445 AIX 5.1 strnlen bug. In the failure case, #define strndup to
46448 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46449 Bruno Haible <bruno@clisp.org>
46451 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46453 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46455 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46456 compile test, for Tru64 4.0D.
46458 2006-05-28 Karl Berry <karl@gnu.org>
46460 * config/srclist.txt (printf-args.c): lose sync.
46462 2006-05-26 Martin Lambers <marlam@marlam.de>
46464 * lib/getpass.c: Updates the test for the native W32 API, and adds
46465 missing includes, thus fixing compilation warnings.
46467 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
46469 * lib/exclude.c (exclude_fnmatch): New function.
46470 (excluded_file_name): Call exclude_fnmatch.
46471 * lib/exclude.h (excluded_file_name): New prototype
46473 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
46475 * lib/tempname.c (small_open, large_open): New macros.
46476 (__open, __open64) [!_LIBC]: Remove.
46477 (__gen_tempname): Use small_open and large_open instead of __open
46478 and __open64. This fixes a portability bug on HP-UX 11.11i
46479 reported by Simon Wing-Tang in
46480 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46482 2006-05-24 Bruno Haible <bruno@clisp.org>
46484 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46485 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46486 Reported by Thorsten Maerz <torte@netztorte.de> via
46487 Aaron Stone <aaron@serendipity.cx>.
46489 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
46491 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46492 gl_ rather than jm_. Link, don't run, so that cross-compiles are
46493 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
46494 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46495 not really conditional on the cache.
46496 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46498 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
46500 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46501 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46502 (my_usleep): Don't mishandle maximum value.
46504 2006-05-19 Jim Meyering <jim@meyering.net>
46506 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
46508 2006-05-17 Bruno Haible <bruno@clisp.org>
46510 Cygwin portability.
46511 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46513 2006-05-17 Bruno Haible <bruno@clisp.org>
46515 * lib/stdint_.h: Fix recognition of Cygwin.
46517 2006-05-15 Bruno Haible <bruno@clisp.org>
46519 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46520 on libtool patch by Ralf Wildenhues.
46522 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
46524 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46525 test for C99 conformance; (bool) 0.5 is an integer constant
46526 expression, but (bool) -0.5 is not. Problem reported by Fedor
46527 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46529 2006-05-11 Simon Josefsson <jas@extundo.com>
46531 * m4/xvasprintf.m4: Fix obvious typo.
46533 2006-05-11 Jim Meyering <jim@meyering.net>
46535 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
46538 2006-05-10 Simon Josefsson <jas@extundo.com>
46540 * lib/md4.c: Typo fix, update copyright years.
46541 (K1, K2): Don't use L because it turn computations into 64-bit on
46544 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
46546 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46547 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46548 unwanted sign propagation, e.g., on hosts with 64-bit int.
46549 There still are some problems with reeelly weird theoretical hosts
46550 (e.g., 33-bit int) but it's not worth worrying about now.
46551 * lib/sha1.c (rol): Likewise.
46552 (K1, K2, K3, K4): Remove unnecessary L suffix.
46554 2006-05-10 Bruno Haible <bruno@clisp.org>
46556 * lib/des.c: Cast to avoid warnings.
46558 2006-05-09 Bruno Haible <bruno@clisp.org>
46560 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46561 (Depends-on): Depend also on xsize, stdarg.
46562 (configure.ac): Add gl_XVASPRINTF.
46564 2006-05-09 Bruno Haible <bruno@clisp.org>
46566 * m4/xvasprintf.m4: New file.
46568 2006-05-09 Bruno Haible <bruno@clisp.org>
46570 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46571 (EOVERFLOW): Define fallback value.
46572 (xstrcat): New function.
46573 (xvasprintf): Recognize the special case of a string concatenation.
46575 2006-05-08 Eric Blake <ebb9@byu.net>
46577 * gnulib-tool (func_version): Base copyright year on CVS date.
46578 (func_emit_copyright_notice): New function.
46579 (func_emit_lib_Makefile_am): Use it.
46580 (func_emit_tests_Makefile_am): Likewise.
46581 (func_import): Likewise.
46583 2006-05-08 Bruno Haible <bruno@clisp.org>
46585 * modules/stdarg: New file.
46586 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46588 2006-05-08 Bruno Haible <bruno@clisp.org>
46590 * m4/stdarg.m4: New file, from GNU gettext.
46592 2006-05-08 Bruno Haible <bruno@clisp.org>
46594 * config/srclist.txt (build-aux/config.rpath): different from latest
46597 2006-05-08 Bruno Haible <bruno@clisp.org>
46599 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46601 2006-05-05 Jim Meyering <jim@meyering.net>
46603 * m4/warning.m4: New file, derived from bison's file by the same name.
46605 2006-05-03 Bruno Haible <bruno@clisp.org>
46607 * lib/stdint_.h: Shorter URL.
46608 * lib/inttypes.h: Likewise.
46610 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46612 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46614 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46616 * lib/verify.h: Document the internals better. Most of this change
46617 was written by Bruno Haible.
46619 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46621 * doc/verify.texi: New file, partly based on a proposal by
46624 2006-05-02 Bruno Haible <bruno@clisp.org>
46626 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46628 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46630 2006-04-29 Bruno Haible <bruno@clisp.org>
46632 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46633 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46635 2006-04-29 Bruno Haible <bruno@clisp.org>
46637 * gnulib-tool: Make --update option actually work.
46639 2006-04-29 Bruno Haible <bruno@clisp.org>
46641 * doc/gcd.texi: New file.
46642 * doc/gnulib.texi: Include it.
46644 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
46646 * lib/getdate.y (get_date): When adding relative date, start with the
46647 initial time, not with the result of the first mktime call.
46649 2006-04-25 Bruno Haible <bruno@clisp.org>
46651 * gnulib-tool (func_import): Output the include directives in three
46652 blocks, sorted separately.
46653 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46655 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46657 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46658 to define main with arguments, for C++. Reported by Eric Blake.
46659 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46660 Prefer 'int main ()' to 'int main (void)', for C++.
46661 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46662 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46663 for 'main', for C99 and C++.
46665 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46667 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46668 Don't assume that exit status -1 is valid.
46669 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46670 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46671 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46672 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46673 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46674 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46675 not AC_TRY_RUN. Use return, not exit. Don't assume that
46676 functions can be used without declaring them, or that you can
46677 exit with status -1.
46678 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46680 2006-04-24 Karl Berry <karl@gnu.org>
46682 * config/srclist.txt (longdouble.m4): sync lost.
46684 2006-04-24 Eric Blake <ebb9@byu.net>
46686 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46688 2006-04-24 Bruno Haible <bruno@clisp.org>
46690 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46691 poll() implementation in AIX.
46692 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46694 2006-04-24 Bruno Haible <bruno@clisp.org>
46696 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46697 assigned exactly once.
46699 2006-04-23 Claudio Fontana <claudio@gnu.org>
46700 Bruno Haible <bruno@clisp.org>
46702 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46703 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46706 2006-04-23 Bruno Haible <bruno@clisp.org>
46708 * modules/copy-file: Depend on unistd.
46709 * modules/execute: Likewise.
46710 * modules/fatal-signal: Likewise.
46711 * modules/findprog: Likewise.
46712 * modules/mkdtemp : Likewise.
46713 * modules/pipe: Likewise.
46714 * modules/wait-process: Likewise.
46716 2006-04-23 Bruno Haible <bruno@clisp.org>
46718 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46719 condition was already detected.
46720 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46722 2006-04-23 Bruno Haible <bruno@clisp.org>
46724 * lib/copy-file.c: Include <unistd.h> unconditionally.
46725 * lib/execute.c: Likewise.
46726 * lib/fatal-signal.c: Likewise.
46727 * lib/findprog.c: Likewise.
46728 * lib/mkdtemp.c: Likewise.
46729 * lib/pipe.h: Likewise.
46730 * lib/pipe.c: Likewise.
46731 * lib/wait-process.h: Likewise.
46733 2006-04-23 Bruno Haible <bruno@clisp.org>
46735 * gnulib-tool (func_usage): Fix --import description. Document
46737 (func_import): Create temporary file in a temporary directory, if
46738 --dry-run is specified. Silence errors from 'grep' when there are no
46739 m4 files in $m4dir.
46740 (func_create_testdir): Silence errors from 'grep' when there are no
46741 m4 files in $m4dir.
46742 Reported by Karl Berry <karl@freefriends.org>.
46744 2006-04-20 Bruno Haible <bruno@clisp.org>
46746 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46747 one argument, so that the code will be portable to Autoconf 2.60.
46748 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46749 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46750 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46752 2006-04-19 Derek Price <derek@ximbiot.com>
46753 Eric Blake <ebb9@byu.net>
46755 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46756 rather than "/full/path.h". Update comment to match. Shorten &
46757 generalize m4_translit call via AS_TR_CPP.
46759 2006-04-19 Derek Price <derek@ximbiot.com>
46760 Eric Blake <ebb9@byu.net>
46762 * lib/inttypes.h: Correct grammar in comment.
46764 2006-04-18 Derek Price <derek@ximbiot.com>
46765 Paul Eggert <eggert@cs.ucla.edu>
46767 * modules/inttypes: New file.
46768 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46770 2006-04-18 Derek Price <derek@ximbiot.com>
46771 Paul Eggert <eggert@cs.ucla.edu>
46773 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46776 2006-04-18 Derek Price <derek@ximbiot.com>
46777 Paul Eggert <eggert@cs.ucla.edu>
46779 * lib/inttypes.h: New file.
46780 * lib/strtoimax.c: Assume <inttypes.h>.
46782 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
46784 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46785 isn't mounted. Problem reported by Kir Kolyshkin.
46787 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
46789 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46790 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
46792 * lib/regex.h (RE_DUP_MAX): Update comment to match current
46795 2006-04-12 Eric Blake <ebb9@byu.net>
46797 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46798 is now done automatically by the corresponding Autoconf macro.
46800 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
46802 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46805 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46807 Merge regex changes from libc, removing some of our
46808 POSIX-conformance changes that were rejected and redoing them in a
46809 less-intrusive way.
46811 * lib/regcomp.c (re_compile_internal, init_dfa):
46812 Length arg is now size_t, not Idx. All uses changed.
46813 (peek_token): Forward decl now says internal_function.
46814 (__re_error_msgid, __re_error_msgid_idx):
46815 Now static rather than extern with attribute_hidden.
46816 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46817 For some reason libc prefers K&R style defns for external functions.
46818 (regerror) [!defined _LIBC]: Likewise.
46819 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46820 (seek_collating_symbol_entry, lookup_collation_sequence_value):
46821 (build_range_exp, build_collating_symbol):
46822 Use K&R-style defn.
46823 (re_compile_fastmap): Use '\0' to memset, not 0.
46824 (utf8_sb_map): Make the calculations more obvious.
46825 (init_dfa, parse_bracket_exp, build_charclass_op):
46826 Call calloc and cast result, as glibc does.
46827 (init_word_char, fetch_token, peek_token, peek_token_bracket):
46828 (build_range_exp, build_collating_symbol):
46829 Now internal functions.
46831 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46833 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
46834 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46835 Don't depend on VMS; depend on __VMS instead, for POSIX
46836 namespace cleanness.
46837 (regoff_t): Define to ssize_t, not long int.
46839 Remove the REG_ macros named below. Instead, make the old names
46840 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46842 (REG_BACKSLASH_ESCAPE_IN_LISTS):
46843 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46844 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46845 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46846 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46847 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46848 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46849 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46850 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46851 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46852 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46853 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46854 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46855 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46856 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46857 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46858 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46860 Remove. All uses replaced by the old RE_* names.
46861 (RE_BACKSLASH_ESCAPE_IN_LISTS):
46862 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46863 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46864 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46865 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46866 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46867 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46868 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46869 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46870 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46871 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46872 Don't bother having these macros be independent of each others'
46873 values, since they no longer exist in the POSIX name space.
46875 Rename the following member names back to their old names,
46876 unless !__USE_GNU_REGEX. All uses changed back.
46877 (buffer): Renamed from re_buffer.
46878 (allocated): Renamed from re_allocated.
46879 (used): Renamed from re_used.
46880 (syntax): Renamed from re_syntax.
46881 (fastmap): Renamed from re_fastmap.
46882 (translate): Renamed from re_translate.
46883 (can_be_null): Renamed from re_can_be_null.
46884 (regs_allocated): Renamed from re_regs_allocated.
46885 (fastmap_accurate): Renamed from re_fastmap_accurate.
46886 (no_sub): Renamed from re_no_sub.
46887 (not_bol): Renamed from re_not_bol.
46888 (not_eol): Renamed from re_not_eol.
46889 (newline_anchor): Renamed from re_newline_anchor.
46890 (num_regs): Renamed from rm_num_regs.
46891 (start): Renamed from rm_start.
46892 (end): Renamed from rm_end.
46894 (free_state): Move up a bit.
46896 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46897 #define to be empty.
46898 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46899 when that is what is intended.
46900 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46901 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46903 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46904 All uses changed back to re_malloc, etc. It's now the caller's
46905 responsibility to check for overflow; all callers changed.
46906 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46907 (re_x2nrealloc): Remove.
46908 (free_state): Remove decl.
46910 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46911 (re_set_registers, re_exec):
46912 Use K&R-style defn.
46914 2006-01-31 Roland McGrath <roland@redhat.com>
46916 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46917 Reported by Mike Frysinger <vapier@gentoo.org>.
46919 2006-01-15 Andreas Jaeger <aj@suse.de>
46922 * lib/regex_internal.c (re_string_reconstruct): Adjust for
46923 build_wcs_upper_buffer change.
46924 (build_wcs_upper_buffer): Change return type.
46926 2005-12-10 Ulrich Drepper <drepper@redhat.com>
46928 * lib/regex_internal.h: Include <stdint.h> if available.
46930 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
46932 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46934 2005-10-14 Ulrich Drepper <drepper@redhat.com>
46936 * lib/regcomp.c: Adjust for changed secondary hash function.
46938 2005-09-30 Ulrich Drepper <drepper@redhat.com>
46940 * lib/regex.h: Pretty printing.
46941 Clean up namespace a bit.
46943 2005-09-30 Jakub Jelinek <jakub@redhat.com>
46945 * lib/regexec.c (update_cur_sifted_state, check_arrival,
46946 check_arrival_add_next_nodes): Avoid using uninitialized variable.
46948 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46949 Ulrich Drepper <drepper@redhat.com>
46952 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
46954 (bitset_word_t): Renamed from bitset_word. All uses changed.
46956 2005-09-22 Ulrich Drepper <drepper@redhat.com>
46959 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46960 * lib/regcomp.c: Remove unnecessary uses of
46961 unsigned RE_TRANSLATE_TYPE.
46962 * lib/regex_internal.h: Likewise.
46963 * lib/regex_internal.c: Likewise.
46964 * lib/regexec.c: Likewise.
46965 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46967 2005-09-07 Ulrich Drepper <drepper@redhat.com>
46969 * lib/regexec.c (find_recover_state): Remove unnecessary
46971 (transit_state_bkref): Make DFA a const pointer.
46972 (get_subexp): Likewise.
46973 (check_arrival): Likewise.
46974 (update_cur_sifted_state): Likewise.
46975 (re_search_internal): Likewise.
46976 (prune_impossible_nodes): Likewise.
46977 (acquire_init_state_context): Likewise.
46978 (proceed_next_node): Likewise.
46979 (set_regs): Likewise.
46980 (free_fail_stack_return): Likewise.
46981 (check_arrival_expand_ecl): Mark DFA parameter as const.
46982 (check_arrival_expand_ecl_sub): Likewise.
46983 (check_subexp_limits): Likewise.
46984 (sub_epsilon_src_nodes): Likewise.
46985 (add_epsilon_src_nodes): Likewise.
46986 (merge_state_array): Likewise.
46987 (update_regs): Likewise.
46988 (build_trtable): Likewise.
46989 (sift_states_backward): Mark MCTX parameter as const.
46990 (build_sifted_states): Likewise.
46991 (update_cur_sifted_state): Likewise.
46992 (sift_states_mkref): Likewise.
46993 (check_arrival_expand_ecl): Mark eclosure as const.
46994 (check_dst_limits_calc_pos_1): Likewise.
46995 * lib/regex_internal.h (re_match_context_t): Make dfa a const
46998 2005-09-06 Ulrich Drepper <drepper@redhat.com>
47000 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47001 (transit_state_sb): Likewise.
47002 (transit_state_mb): Likewise.
47003 (sift_states_iter_mb): Likewise.
47004 (check_arrival_add_next_nodes): Likewise.
47005 (check_node_accept_bytes): Change first parameter to pointer-to-const.
47006 [_LIBC] (re_search_2_stub): Use mempcpy.
47008 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47009 mbrtowc for very simple UTF-8 case.
47011 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47012 a pointer-to-const.
47013 (re_acquire_state_context): Likewise.
47014 * lib/regex_internal.h: Adjust prototypes.
47016 * lib/regex.c: Prevent using C++ compilers.
47018 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47019 (re_acquire_state_context): Likewise.
47021 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
47023 * modules/regex (Depends-on): Add ssize_t.
47025 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
47027 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47030 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
47032 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47034 2006-03-29 Mark D. Baushke <mdb@gnu.org>
47035 Bruno Haible <bruno@clisp.org>
47037 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47038 <sys/types.h> and <inttypes.h>.
47040 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47042 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47043 `__error_t_defined', so argp.h will not typedef the former.
47045 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
47047 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47048 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
47049 glibc names. Even if glibc is changed to conform to POSIX, the
47050 traditional names will be available anyway, since regex depends on
47051 the extensions module. Also, fix a longstanding typo in the
47052 implementation of Spencer ERE test #75 from grep 2.3. Problems
47053 reported by Emanuele Giaquinta. Also, change sense of cached
47054 variable, so that the message makes sense.
47056 2006-03-24 Simon Josefsson <jas@extundo.com>
47058 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47059 including some doc fixes.
47060 (base64_encode_alloc): Fix +1 bug on allocation failures.
47062 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47064 * lib/base64.c (base64_encode): Do not read past end of array with
47065 unsanitized input on systems with CHAR_BIT > 8.
47067 2006-03-24 Eric Blake <ebb9@byu.net>
47069 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47071 2006-03-22 Karl Berry <karl@gnu.org>
47073 * config/srclist.txt (*setenv.[ch]): get from coreutils.
47074 * config/srclistvars.sh (COREUTILS): new var.
47076 2006-03-17 Jim Meyering <jim@meyering.net>
47078 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47079 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47081 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
47083 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47084 no longer needs it. Instead, check that regoff_t is as least
47085 as wide as ptrdiff_t.
47087 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47088 so that our regex.h stays compatible with the installed regex.
47089 This is helpful for installers who configure --without-included-regex.
47090 Problem reported by Emanuele Giaquinta.
47092 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
47094 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47095 Typedef to long int, not to off_, as POSIX will likely change
47098 2006-03-15 Eric Blake <ebb9@byu.net>
47100 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47102 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
47104 * lib/argp-help.c (validate_uparams): Fix typo
47105 * lib/argp-parse.c (argp_default_options): Consistently begin help
47106 messages with a lowercase letter.
47108 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
47110 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
47111 overrun buffers and shouldn't be used (much as gets shouldn't be
47113 * lib/time_r.c (asctime_r, ctime_r): Likewise.
47115 2006-03-08 Simon Josefsson <jas@extundo.com>
47117 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47118 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47120 2006-03-08 Simon Josefsson <jas@extundo.com>
47122 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47123 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47125 2006-03-08 Simon Josefsson <jas@extundo.com>
47127 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47128 signal that configure disabled the device.
47130 2006-03-08 Simon Josefsson <jas@extundo.com>
47132 * build-aux/maint.mk: Fix refresh-po, to handle no translated
47135 2006-03-07 Simon Josefsson <jas@extundo.com>
47137 * modules/getopt (Depends-on): Add unistd.
47139 * modules/unistd: New file.
47141 2006-03-07 Simon Josefsson <jas@extundo.com>
47143 * modules/gc-random: New file.
47145 2006-03-07 Simon Josefsson <jas@extundo.com>
47147 * m4/unistd_h.m4: New file.
47149 2006-03-07 Simon Josefsson <jas@extundo.com>
47151 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47152 test to be side-effect free by storing the result in the cache
47153 variable gl_cv_lib_readline, and moving the assignment of
47154 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47155 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47157 2006-03-07 Simon Josefsson <jas@extundo.com>
47159 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
47160 error on missing devices (the functions will return an error).
47162 * m4/gc.m4: Move random stuff to gc-random.m4
47164 2006-03-07 Simon Josefsson <jas@extundo.com>
47166 * lib/unistd_.h: New file.
47168 2006-03-07 Simon Josefsson <jas@extundo.com>
47170 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47172 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47174 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47175 Problem reported by Juan Manuel Guerrero.
47177 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47179 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47181 * lib/getlogin_r.c: Likewise.
47182 * lib/getlogin_r.h: Likewise.
47183 * lib/glob.c: Likewise.
47184 * lib/pagealign_alloc.c: Likewise.
47185 * lib/unistd_.h: Remove; no longer needed.
47187 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47189 * MODULES.html.sh (Support for systems lacking POSIX:2001):
47191 * modules/c-stack (Depends-on): Add unistd.
47192 * modules/getlogin_r: Likewise.
47193 * modules/glob: Likewise.
47194 * modules/pagealign_alloc: Likewise.
47195 * modules/unistd (Files): Remove lib/unistd_.h.
47196 (EXTRA_DIST): Remove.
47197 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47199 (MOSTLYCLEANFILES): Remove unistd.h-t.
47201 2006-03-03 Simon Josefsson <jas@extundo.com>
47203 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47205 2006-03-03 Simon Josefsson <jas@extundo.com>
47207 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47210 2006-03-03 Simon Josefsson <jas@extundo.com>
47212 * build-aux/maint.mk: Add indent target.
47214 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47216 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47217 our replacement poll.h in any case, to avoid a differing
47218 declaration from a system header. Seen on AIX.
47220 2006-03-01 Simon Josefsson <jas@extundo.com>
47222 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47225 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
47227 * modules/gettime (Depends-on): Add extensions module.
47228 * modules/nanosleep (Depends-on): Likewise.
47229 * modules/settime (Depends-on): Likewise.
47231 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
47233 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47234 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47236 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47237 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47239 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47240 not "==". Reported by Ralf Wildenhues.
47242 2006-03-01 Karl Berry <karl@gnu.org>
47244 * doc/Copyright/request-*: new files, synced from gnuorg.
47246 2006-03-01 Karl Berry <karl@gnu.org>
47248 * config/srclist.txt (Copyright/*): new entries.
47250 2006-02-28 Simon Josefsson <jas@extundo.com>
47252 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47254 2006-02-27 Simon Josefsson <jas@extundo.com>
47256 * lib/base64.h: Indent #define's. From Jim Meyering
47257 <jim@meyering.net>.
47259 2006-02-27 Jim Meyering <jim@meyering.net>
47261 Revert the change of 2006-02-24, so these files can continue
47262 to be sync'd from gettext.
47263 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47266 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
47268 * modules/intprops: New file.
47269 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47271 * modules/getloadavg (Files): Remove lib/intprops.h.
47272 (Depends-on): Add intprops.
47273 * modules/human: Likewise.
47274 * modules/inttostr: Likewise.
47275 * modules/openat: Likewise.
47276 * modules/sig2str: Likewise.
47277 * modules/userspec: Likewise.
47278 * modules/utimecmp: Likewise.
47279 * modules/xnanosleep: Likewise.
47280 * modules/xstrtol: Likewise.
47282 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
47284 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47285 * modules/lock-tests (TESTS): Use $(EXEEXT).
47286 * modules/tls-tests: Likewise.
47287 * modules/argp-tests: Likewise.
47288 (check_PROGRAMS): New var, replacing...
47289 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47291 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47293 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47296 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
47298 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47300 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47302 Sync from coreutils.
47303 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47306 2006-02-22 Jim Meyering <jim@meyering.net>
47308 Sync from coreutils.
47309 * m4/chdir-safer.m4: New file.
47311 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
47313 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47314 AT_FDCWD exceeds INT_MAX.
47315 * lib/openat.h (AT_FDCWD): Likewise.
47317 2006-02-17 Eric Blake <address@hidden>
47319 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47321 2006-02-16 Simon Josefsson <jas@extundo.com>
47323 * modules/getaddrinfo (Depends-on): Add sys_socket.
47325 2006-02-15 Simon Josefsson <jas@extundo.com>
47327 * build-aux/maint.mk: Add dsyntax-check rule.
47329 2006-02-15 Eric Blake <ebb9@byu.net>
47331 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47332 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47333 'present but cannot compile' warnings on cygwin.
47334 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
47335 use ws2tcpip.h if sys/socket.h works.
47336 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47337 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47339 2006-02-14 Simon Josefsson <jas@extundo.com>
47341 * modules/maintainer-makefile (Files): Rename.
47343 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47344 and (the local) Makefile.cfg to maint-cfg.mk.
47346 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47349 * modules/maintainer-makefile: New module.
47351 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47352 severaly stripped to make it possible to build it up from scratch
47353 with reliable tests.
47355 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47356 fixes to permit overriding the default actions when configure and
47357 makefile are not available.
47359 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
47361 Sync from coreutils.
47362 * modules/lstat (Depends-on): Don't depend on xalloc.
47363 (License): Change from GPL to LGPL, since this is now simply a
47364 replacement for a libc function.
47366 2006-02-14 Jim Meyering <jim@meyering.net>
47368 Sync from coreutils.
47370 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47371 failure on deficient systems, and simplify gnulib lgpl dependencies.
47372 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47373 xmalloc/lstat combination. Based on a patch from Bruno Haible.
47375 * lib/xalloc-die.c: Remove unused definition of N_.
47377 2006-02-14 Jim Meyering <jim@meyering.net>
47379 Sync from coreutils.
47380 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47381 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47382 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47383 double-quote uses of that variable, to accommodate the rare case in
47384 which getmntent is available in none of the libraries checked. This
47385 happens at least on FreeBSD 5.0.
47387 2006-02-13 Simon Josefsson <jas@extundo.com>
47389 * gnulib-tool (Usage): Fix --import, from
47390 karl@freefriends.org (Karl Berry).
47392 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
47394 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47396 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
47398 * lib/argp-namefrob.h: Restore changes accidentally lost during the
47399 "autoupdate" on 2005-12-12.
47401 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
47403 * modules/closeout (Depends-on): Remove atexit.
47405 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
47407 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47408 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47410 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
47412 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47413 __EXTENSIONS__ if this causes compilation to fail. Problem
47414 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47415 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47417 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
47419 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47420 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47421 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47424 2006-01-26 Simon Josefsson <jas@extundo.com>
47426 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47427 prototype is visible on mingw32.
47429 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47432 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47435 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
47437 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
47438 attempt to open for write; this always fails, at least on POSIX
47439 hosts. This reinstates the 2006-01-09 change, which was
47440 inadvertently removed.
47442 2006-01-26 Bruno Haible <bruno@clisp.org>
47444 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47445 Reported by Paul Eggert.
47447 2006-01-26 Bruno Haible <bruno@clisp.org>
47448 Paul Eggert <eggert@cs.ucla.edu>
47450 * lib/stdbool_.h (_Bool)
47451 [(! (defined __cplusplus || defined __BEOS__)
47452 && !defined __GNUC__
47453 && !(defined __HP_cc || defined __xlc__
47454 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47455 || defined __sgi))]:
47456 #define to signed char in these cases too; this simplifies
47457 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47458 etc., separately) and makes it more conservative.
47460 2006-01-25 Simon Josefsson <jas@extundo.com>
47462 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47463 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
47464 ws2tcpip.h with WINVER=0x0501. All for mingw32.
47466 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
47468 * lib/argp-namefrob.h: Bugfix. Remove stray #
47470 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
47472 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47473 so that we test the test.
47474 Check for yet another HP-UX cc bug involving *bool |= bool.
47476 2006-01-25 Karl Berry <karl@gnu.org>
47478 * config/srclist.txt (vasnprintf.c): sync lost.
47480 2006-01-25 Jim Meyering <jim@meyering.net>
47482 Sync from the stable (b5) branch of coreutils:
47484 * lib/fts.c (fts_children): Don't let close() clobber errno from
47487 * lib/fts.c (fts_stat): When following a symlink-to-directory,
47488 don't necessarily interpret stat-fails+lstat-succeeds as indicating
47489 a dangling symlink. That can also happen at least for ELOOP.
47490 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47491 FYI, this bug predates the inclusion of fts.c in coreutils.
47493 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47494 in their own block, so pre-c99 compilers don't object.
47496 Avoid the double-free (first in fts_read, second in fts_close) that
47497 would occur when an `active' directory is made inaccessible (e.g.,
47498 via chmod a-x) during a traversal.
47499 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47500 before returning. Reproduce this failure by
47501 mkdir -p a/b; cd a; chmod a-x . b
47502 Reported by Stavros Passas.
47504 2006-01-25 Jim Meyering <jim@meyering.net>
47506 * lib/fileblocks.c: Remove more useless parentheses.
47507 * lib/readutmp.h: Likewise.
47509 2006-01-25 Bruno Haible <bruno@clisp.org>
47511 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47513 Reported by Paul Eggert.
47515 2006-01-25 Bruno Haible <bruno@clisp.org>
47517 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47518 rid of a trap command. For Solaris sh.
47519 Reported by Mark D. Baushke <mdb@gnu.org>.
47521 2006-01-24 Simon Josefsson <jas@extundo.com>
47523 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47526 2006-01-24 Karl Berry <karl@gnu.org>
47528 * config/srclist.txt (argp-namefrob.h): sync lost.
47530 2006-01-24 Jim Meyering <jim@meyering.net>
47532 * modules/openat (Files): Add lib/intprops.h.
47533 From Mark D. Baushke.
47535 2006-01-24 Jim Meyering <jim@meyering.net>
47537 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47538 Reported by Mark D. Baushke.
47540 2006-01-24 Jim Meyering <jim@meyering.net>
47542 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47544 2006-01-24 Bruno Haible <bruno@clisp.org>
47546 * modules/strnlen (Maintainer): Change from glibc to all.
47548 2006-01-24 Bruno Haible <bruno@clisp.org>
47550 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47551 Patch by Paul Eggert.
47553 2006-01-24 Bruno Haible <bruno@clisp.org>
47555 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47557 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
47560 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47561 'signed char' to avoid problems with the built-in _Bool type.
47562 Reported by Paul Eggert on 2005-11-26.
47564 2006-01-24 Bruno Haible <bruno@clisp.org>
47566 * gnulib-tool (func_import): Avoid constructing complicated sed
47567 expressions inside backquote.
47568 Report and solution by Mark D. Baushke <mdb@gnu.org>.
47570 2006-01-23 Ulrich Drepper <drepper@redhat.com>
47572 These changes imported from libc.
47573 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47574 test and two separate function calls.
47575 * lib/strndup.c (__strndup): Add libc_hidden_def.
47577 2006-01-23 Simon Josefsson <jas@extundo.com>
47579 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47580 Remove the test_*_SOURCES variable: automake infers it by default.
47581 * modules/tls-tests: Likewise.
47583 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47585 Work around porting bugs reported by Dieter in
47586 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47587 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47588 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47589 Include "getopt.h" first, to check interface.
47590 (getenv): Declare only if defined HAVE_DECL_GETENV &&
47592 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47593 (__strndup): Revert to K&R-style function dfns, the glibc style.
47594 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47595 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47596 Include strnlen.h first, to get prototype properly.
47597 (strnlen): Renamed from __strnlen.
47600 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47602 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47604 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47606 * config/srclist.txt: Adjust to reflect glibc reorganization.
47607 This affects only comments.
47609 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47611 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47612 Reported by Bruce Korb <bkorb@gnu.org>.
47614 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
47616 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47617 to pacify gcc -Wswitch-default.
47619 2006-01-22 Bruno Haible <bruno@clisp.org>
47621 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47622 temporary buffer for sprintf, take into account the precision also
47623 for 'd', 'i', 'u', 'o', 'x', 'X'.
47625 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47627 * modules/argp-tests: New module
47628 * tests/test-argp.c: New file
47629 * tests/test-argp-2.sh: New file
47631 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47633 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47634 (__argp_base_name): Removed
47635 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47637 (__argp_base_name): Provide macro definition or extern declaration
47638 depending on the configuration
47640 2006-01-20 Simon Josefsson <jas@extundo.com>
47642 * modules/inet_ntop (Depends-on): Depend on sys_socket.
47644 2006-01-20 Simon Josefsson <jas@extundo.com>
47646 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47648 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
47650 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47651 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47652 Suggested by Bruno Haible.
47654 2006-01-20 Karl Berry <karl@gnu.org>
47656 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47657 until changes propagate, I guess.
47659 2006-01-19 Simon Josefsson <jas@extundo.com>
47661 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47663 2006-01-19 Simon Josefsson <jas@extundo.com>
47665 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47667 2006-01-19 Simon Josefsson <jas@extundo.com>
47669 * gnulib-tool: Set check_PROGRAMS.
47671 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47672 modules/des-tests, modules/gc-arcfour-tests,
47673 modules/gc-arctwo-tests, modules/gc-des-tests,
47674 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47675 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47676 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47677 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47678 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47679 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47680 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47683 2006-01-18 Simon Josefsson <jas@extundo.com>
47685 * modules/socklen (Depends-on): Depend on sys_socket.
47687 2006-01-18 Simon Josefsson <jas@extundo.com>
47689 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47690 modules/des-tests, modules/gc-arcfour-tests,
47691 modules/gc-arctwo-tests, modules/gc-des-tests,
47692 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47693 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47694 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47695 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47696 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47697 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47698 $(EXEEXT) to automake TESTS variable, for mingw32.
47700 2006-01-17 Simon Josefsson <jas@extundo.com>
47702 * modules/socklen (Include): Need sys/socket.h.
47704 2006-01-17 Bruno Haible <bruno@clisp.org>
47706 * modules/ssize_t (Include): Add <sys/types.h>.
47708 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
47710 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47711 it's not portable and it doesn't work with cross-compiles.
47712 Problem reported by Bruno Haible. Fix missing-$ typo in
47713 'test "gl_cv_ignore_unused_libraries" ...' that prevented
47714 -zignore from being used with Sun's C compiler.
47716 2006-01-12 Simon Josefsson <jas@extundo.com>
47718 * lib/base64.c: Fix warning, reported by Bruno Haible
47719 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47721 2006-01-12 Bruno Haible <bruno@clisp.org>
47723 * modules/ldd: New file.
47724 * build-aux/ldd.sh.in: New file.
47725 * MODULES.html.sh (Support for building libraries and executables): Add
47728 2006-01-12 Bruno Haible <bruno@clisp.org>
47730 * m4/ldd.m4: New file.
47732 2006-01-12 Bruno Haible <bruno@clisp.org>
47734 * gnulib-tool (func_import, func_create_testdir): Don't go into an
47735 endless loop while replacing $auxdir with build-aux.
47737 2006-01-11 Simon Josefsson <jas@extundo.com>
47739 * lib/stdint_.h (SIZE_MAX): Add missing (.
47741 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
47743 Sync from coreutils.
47744 * lib/md5.c: Fix commentary typos.
47745 (alignof, UNALIGNED_P): No need for a GCC-specific version.
47746 * lib/md5.h (__attribute__): Remove; unused.
47747 * lib/sha1.c: Fix commentary to match md5 better.
47748 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47749 so that we don't need to worry about alignment. All uses changed.
47750 This merges the 2005-10-28 md5 change into sha1.
47752 2006-01-11 Jim Meyering <jim@meyering.net>
47754 Sync from coreutils.
47755 * lib/md5.c (OP): Fix spacing.
47757 2006-01-11 Bruno Haible <bruno@clisp.org>
47759 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47760 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47761 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47763 2006-01-11 Bruno Haible <bruno@clisp.org>
47765 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47766 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47767 the "early" section as well.
47769 2006-01-11 Bruno Haible <bruno@clisp.org>
47771 Avoid "ar: no archive members specified" error on MacOS X.
47772 * gnulib-tool (func_modules_add_dummy): New function.
47773 (func_import, func_create_testdir): Invoke it.
47775 2006-01-11 Bruno Haible <bruno@clisp.org>
47777 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47778 with $auxdir in AC_CONFIG_FILES statements.
47780 2006-01-11 Bruno Haible <bruno@clisp.org>
47782 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47783 Initialize also noinst_HEADERS to empty.
47785 2006-01-11 Bruno Haible <bruno@clisp.org>
47787 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47789 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47792 2006-01-11 Bruno Haible <bruno@clisp.org>
47794 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47795 overridable by the user.
47796 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47798 2006-01-10 Simon Josefsson <jas@extundo.com>
47800 * modules/sys_socket: New file.
47802 2006-01-10 Simon Josefsson <jas@extundo.com>
47804 * m4/sys_socket_h.m4: New file.
47806 2006-01-10 Simon Josefsson <jas@extundo.com>
47808 * lib/socket_.h: New file.
47810 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47812 * modules/readutmp (Maintainer): Add myself.
47814 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47816 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47817 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
47818 People who are still concerned with buggy memcmp implementations
47819 can invoke gl_FUNC_MEMCMP themselves.
47821 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47823 * lib/regex_internal.h (BITSET_WORD_BITS):
47824 Work around a bug in 64-bit PGC (before version 6.1-2), where the
47825 preprocessor mishandles large unsigned values as if they were signed.
47826 Problem reported by Claudio Fontana in
47827 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47829 2006-01-10 Jim Meyering <jim@meyering.net>
47831 Avoid the double-free (first in fts_read, second in fts_close) that
47832 would occur when an `active' directory is made inaccessible (e.g.,
47833 via chmod a-x) during a traversal.
47834 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47835 before returning. Reproduce this failure by
47836 mkdir -p a/b; cd a; chmod a-x . b
47837 Reported by Stavros Passas.
47839 Sync from coreutils.
47840 * lib/sha1.c: Tweak grammar in a comment.
47842 2006-01-10 Jim Meyering <jim@meyering.net>
47844 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47845 Patch by Joerg Sonnenberger.
47847 2006-01-10 Bruno Haible <bruno@clisp.org>
47849 * modules/readutmp: Depend on module free.
47850 * modules/strtok_r: Depend on module restrict.
47852 2006-01-10 Bruno Haible <bruno@clisp.org>
47854 * modules/gettext (configure.ac): Add an invocation of
47855 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47857 2006-01-10 Bruno Haible <bruno@clisp.org>
47859 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47860 Reported by Werner Lemberg <wl@gnu.org>.
47862 2006-01-10 Bruno Haible <bruno@clisp.org>
47864 * lib/localcharset.c: Update from GNU gettext.
47866 2006-01-10 Bruno Haible <bruno@clisp.org>
47868 * lib/argp.h (__const): Remove macro. Use const instead.
47869 * lib/argp-fmtstream.h (__const): Likewise.
47870 * lib/glob_.h (__const): Remove macro.
47871 * lib/glob-libc.h: Use const instead of __const.
47873 2006-01-10 Bruno Haible <bruno@clisp.org>
47875 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47877 Needed to avoid an automake error regarding the 'gettext' module.
47879 2006-01-09 Simon Josefsson <jas@extundo.com>
47881 * modules/inet_ntop (Depends-on): Add restrict.
47883 2006-01-09 Simon Josefsson <jas@extundo.com>
47885 * modules/gc-rijndael-tests (License): Put under LGPL.
47887 * modules/gc-des-tests (License): Likewise.
47889 * modules/gc-arcfour-tests (License): Likewise.
47891 * modules/gc-arctwo-tests (License): Likewise.
47893 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47895 * modules/gc-hmac-sha1-tests (Files): Likewise.
47897 * modules/gc-hmac-md5-tests (License): Likewise.
47899 * modules/gc-sha1-tests (License): Likewise.
47901 * modules/gc-md5-tests (License): Likewise.
47903 * modules/gc-md4-tests (License): Likewise.
47905 * modules/gc-md2-tests (License): Likewise.
47907 * modules/gc-tests (License): Likewise.
47909 * modules/des-tests (License): Likewise.
47911 * modules/md4-tests (License): Likewise.
47913 * modules/md2-tests (License): Likewise.
47915 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47917 Sync from coreutils:
47919 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47920 * modules/lib-ignore: New file.
47921 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47922 chdir-safer.m4, lchmod.m4.
47923 * modules/openat: Add mkdirat.c, openat-priv.h.
47925 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47927 Sync from coreutils.
47928 * m4/lib-ignore.m4: New file.
47929 * m4/lchmod.m4: New file.
47931 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47933 Sync from coreutils.
47934 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47935 for write access: POSIX says that must fail.
47936 * lib/fts.c (diropen): Likewise.
47937 * lib/save-cwd.c (save_cwd): Likewise.
47938 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47939 well, for minor improvements on hosts that lack O_DIRECTORY.
47940 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47941 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47942 Fall back on chown if open failed with EACCES.
47944 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47945 Report an error at compile-time if only a 1-second nominal clock
47946 resolution is found.
47948 * lib/lchmod.h: New file.
47949 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47950 (make_dir_parents): Use lchown rather than chown, and
47951 lchmod rather than chmod.
47953 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47954 dummies too. Problem with "none" reported by Bob Proulx. Problem with
47955 "proc" reported by n0dalus.
47957 * lib/mountlist.c: Include <limits.h>.
47958 (dev_from_mount_options)
47959 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47960 New function. It no longer assumes "dev=" has the System V meaning
47961 on Linux (since it doesn't). It also parses "dev=" more carefully.
47962 (read_file_system_list)
47963 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47964 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47967 * lib/posixtm.h (PDS_PRE_2000): New macro.
47968 * lib/posixtm.c (year): Arg is now syntax_bits rather than
47969 allow_century. All usages changed. Reject dates outside the range
47970 1969-1999 if PDS_PRE_2000 is used.
47972 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47974 Sync from coreutils.
47975 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47976 (Time of day items): Mention the possibility of leap seconds.
47977 Problem reported by Dr. David Alan Gilbert.
47979 2006-01-09 Jim Meyering <jim@meyering.net>
47981 Sync from coreutils.
47983 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47985 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47987 * lib/modechange.c (mode_compile): Reject an invalid mode string
47988 that starts with an octal digit. From Andreas Gruenbacher.
47990 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47991 and dup to open_safer and dup_safer, respectively.
47992 (openat_permissive): Fix typo in comment.
47994 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47995 "gettext.h"; either no longer needed or are guaranteed by openat.h.
47996 (_): Remove; no longer needed.
47997 (openat): Renamed from rpl_openat; no need for rpl_openat
47998 since openat.h renames openat for us.
47999 Replace most of the body with a call to openat_permissive,
48000 to avoid duplicate code.
48001 Port to (probably hypothetical) environments were mode_t is
48003 (openat_permissive): Require mode arg, so that we can check
48004 types better. Put it just after flags. Change cwd failure
48005 indicator from pointer-to-bool to pointer-to-errno-value.
48006 All callers changed.
48007 Invoke openat_save_fail and/or openat_restore_fail if
48008 cwd_errno is null, so that openat can call us.
48009 (openat_permissive, fdopendir, fstatat, unlinkat):
48010 Simplify errno handling to avoid some duplicate code,
48011 as it's OK to set errno on success.
48012 * lib/openat.h: Revamp code so that function macros depend on
48013 __OPENAT_PREFIX only, not also on AT_FDCWD.
48014 (openat_ro): Remove. Caller changed to use openat_permissive.
48015 (openat_permissive): Now a macro, if not a function.
48016 (openat_restore_fail, openat_save_fail): Now always functions,
48017 since mkdirat needs them even if __OPENAT_PREFIX is defined.
48019 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48021 * lib/mkdirat.c: Include openat-priv.h.
48022 Remove definitions of macros defined therein.
48023 * lib/openat.c: Likewise.
48025 * lib/mkdirat.c (mkdirat): New file and function.
48026 * lib/openat.h (mkdirat): Declare.
48028 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48030 * lib/openat.h (openat_permissive): Declare.
48031 (openat_ro): Define.
48033 * lib/openat.c (EXPECTED_ERRNO): New macro.
48034 (openat_permissive): New function -- used in remove.c rewrite.
48035 (all functions): Set errno just before returning, only if there
48036 was an actual failure.
48037 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48039 Emulate openat-family functions using Linux's procfs, if possible.
48040 Idea and some code based on Ulrich Drepper's glibc changes.
48042 * lib/openat.c: (BUILD_PROC_NAME): New macro.
48043 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48044 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48045 before falling back on save_cwd and restore_cwd.
48046 (fdopendir, fstatat, unlinkat): Likewise.
48048 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48049 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48051 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48052 as second argument to va_arg. Otherwise, some versions of gcc
48053 warn that `if this code is reached, the program will abort'.
48055 2006-01-09 Jim Meyering <jim@meyering.net>
48057 Sync from coreutils.
48058 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48059 Require openat-priv.h.
48061 2006-01-09 Bruno Haible <bruno@clisp.org>
48063 * modules/strnlen (Include): Use strnlen.h.
48065 2006-01-09 Bruno Haible <bruno@clisp.org>
48067 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48069 2006-01-09 Bruno Haible <bruno@clisp.org>
48071 * lib/sysexit_.h (EX_OK): New macro.
48072 Suggested by Martin Lambers <marlam@marlam.de>.
48074 2006-01-09 Bruno Haible <bruno@clisp.org>
48076 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48077 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48079 2006-01-09 Bruno Haible <bruno@clisp.org>
48081 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48084 2006-01-09 Bruno Haible <bruno@clisp.org>
48086 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48087 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48088 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48089 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48091 2006-01-09 Bruno Haible <bruno@clisp.org>
48093 * build-aux/javacomp.sh.in: New file, moved from lib/.
48094 * modules/javacomp-script (Files): Update.
48095 (configure.ac): Add AC_CONFIG_FILES invocation.
48096 (EXTRA_DIST): Remove variable.
48098 * build-aux/javaexec.sh.in: New file, moved from lib/.
48099 * modules/javaexec (Files): Update.
48100 (configure.ac): Add AC_CONFIG_FILES invocation.
48101 (EXTRA_DIST): Remove javaexec.sh.in.
48103 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48104 * modules/csharpcomp-script (Files): Update.
48105 (configure.ac): Add AC_CONFIG_FILES invocation.
48106 (EXTRA_DIST): Remove variable.
48108 * build-aux/csharpexec.sh.in: New file, moved from lib/.
48109 * modules/csharpexec (Files): Update.
48110 (configure.ac): Add AC_CONFIG_FILES invocation.
48111 (EXTRA_DIST): Remove csharpexec.sh.in.
48113 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
48115 Sync from coreutils.
48117 Add POSIX ACL support
48118 * lib/acl.h (copy_acl, set_acl): Add declarations.
48119 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48120 systems other than Linux.
48121 (chmod_or_fchmod): New function: use fchmod when possible,
48122 and chmod otherwise.
48123 (file_has_acl): Add a POSIX ACL implementation, with a
48124 Linux-specific subcase.
48125 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48126 S_ISVTX from one file to another. Fall back to fchmod/chmod when
48127 acls are unsupported.
48128 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48129 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
48132 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
48134 Sync from coreutils.
48135 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48137 2006-01-07 Bruno Haible <bruno@clisp.org>
48139 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48142 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
48144 * lib/strftime.c (tzname): Don't declare if it is already #defined.
48145 Problem reported for Mingw by Mark Junker.
48147 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
48149 * README: Gnulib normally doesn't generate a tarball.
48151 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
48153 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48154 long int, not int, for nanosecond counts, so that people who are
48155 used to POSIX struct timespec won't be surprised. Reported by Jim
48158 2005-12-28 Bruno Haible <bruno@clisp.org>
48160 * build-aux/config.rpath: Update from GNU gettext.
48162 2005-12-16 Jim Meyering <jim@meyering.net>
48164 * modules/fprintftime: New module.
48165 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48167 2005-12-16 Jim Meyering <jim@meyering.net>
48169 * m4/fprintftime.m4: New file.
48171 2005-12-16 Jim Meyering <jim@meyering.net>
48173 * lib/fprintftime.c, lib/fprintftime.h: New files.
48175 2005-12-15 Simon Josefsson <jas@extundo.com>
48177 * modules/socklen (configure.ac): Fix M4 macro name, to align with
48180 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
48182 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48183 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48185 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
48187 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48188 * lib/argp-help.c (fill_in_uparams): Check if the constructed
48189 struct uparams is valid. Fall back to the default values if it is
48192 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48194 * modules/argp (Files): Add argp-pin.c
48195 (Depends-on): dirname
48196 (lib_SOURCES): Add argp-pin.c
48198 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48200 * m4/argp.m4: Check if program_invocation_name and
48201 program_invocation_short_name are declared and define appropriate
48202 macros if they are not.
48204 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48206 * lib/argp-help.c (__argp_base_name): New function
48207 (__argp_short_program_name): Rewrite using __argp_base_name
48208 * lib/argp-namefrob.h: Define program_invocation_name and
48209 program_invocation_short_name if requested
48210 (__argp_base_name): Add prototype
48211 * lib/argp-parse.c (argp_def): Use gettext wrappers
48212 (argp_default_parser): Use __argp_base_name
48213 * lib/argp-pin.c: New file. Defines program_invocation_name and
48214 program_invocation_short_name on systems that lack them.
48216 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
48218 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48219 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48220 porting problem reported by Georg Schwarz in
48221 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48223 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
48225 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48226 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48227 porting problem reported by Georg Schwarz in
48228 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48230 2005-12-05 Bruno Haible <bruno@clisp.org>
48232 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48233 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48234 Reported by Mark Junker <mjscod@gmx.de>.
48236 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
48238 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48239 Use implementation from Albert Chin, with some
48240 comments/corrections by Stepan Kasal and myself.
48242 2005-12-02 Bruno Haible <bruno@clisp.org>
48244 * gnulib-tool (func_import): Accept GPLed build tool modules when
48246 * modules/csharpcomp-script: New file.
48247 * modules/csharpcomp: Depend on it.
48248 * modules/javacomp-script: New file.
48249 * modules/javacomp: Depend on it.
48250 Suggested by Simon Josefsson.
48252 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
48254 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48255 statement, to work around an HP-UX 10.20 compiler bug reported by
48258 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
48260 * modules/savedir (Depends-on): Add openat.
48262 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
48264 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48265 (uintmax_t) [defined uintmax_t]: Do not declare.
48266 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48267 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48268 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
48269 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48270 sake of portability to weird hosts that C allows (though we don't
48271 know of any practical examples).
48273 * lib/savedir.h (fdsavedir): New decl.
48274 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48275 contains most of the former guts of savedir.
48276 (savedir): Use savedirstream.
48277 Include "openat.h".
48279 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
48281 * modules/obstack (Files): Add m4/ulonglong.m4.
48282 Problem reported by Davide Angelocola.
48284 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
48286 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48287 coreutils no longer futzes with rounding modes.
48289 2005-11-14 Jim Meyering <jim@meyering.net>
48291 * lib/mkstemp-safer.c: Include <config.h>, required for possible
48292 replacement of mkstemp.
48294 2005-11-10 Simon Josefsson <jas@extundo.com>
48296 * lib/readline.c: Remove EOL.
48298 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48300 * modules/gethrxtime (Depends-on): Add gettime.
48302 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48304 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48305 or gettimeofday; no longer needed.
48307 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48309 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48311 (gethrxtime) [! (HAVE_NANOUPTIME
48312 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48313 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48314 our own approximation.
48316 2005-11-08 Eric Blake <ebb9@byu.net>
48318 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48320 2005-11-08 Eric Blake <ebb9@byu.net>
48322 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48324 2005-11-04 Bruno Haible <bruno@clisp.org>
48326 * gnulib-tool: Implement --update mode.
48328 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
48330 Fix porting problem reported by Theodoros V. Kalamatianos.
48331 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48332 Don't assume that futimes failing means we must fail.
48334 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
48336 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48337 variables to suggest the intended function of the PATH_MAX check.
48339 2005-10-30 Kean Johnston <jkj@sco.com>
48341 Trivial changes to support SCO systems.
48342 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48344 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48345 where __ptr is null when no I/O is pending.
48347 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
48349 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48350 leave errno alone. Problem reported by Dmitry V. Levin.
48352 2005-10-28 Simon Josefsson <jas@extundo.com>
48354 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48357 * tests/test-gc-md2.c, tests/test-md2.c: New files.
48359 * modules/md2, modules/md2-tests: New files.
48361 2005-10-28 Simon Josefsson <jas@extundo.com>
48363 * m4/inet_ntop.m4: More tests.
48365 * m4/gc-md2.m4, md2.m4: New file.
48367 2005-10-28 Simon Josefsson <jas@extundo.com>
48369 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48370 "restrict" keywords, as per POSIX. Protect the function
48371 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48372 Don't use K&R prototypes. Check the sprintf return values.
48373 Re-define EAFNOSUPPORT if not present. Indent.
48375 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48376 suggested by Bruno Haible <bruno@clisp.org>.
48378 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48380 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
48382 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48385 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
48387 * lib/md2.h, lib/md2.c: New files.
48389 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
48391 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48392 errno alone. Problem reported by Frederic Jolliton.
48394 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
48396 * modules/verify (License): Change from GPL to LGPL. This is a
48397 tiny module and there are apparently near-equivalents that are
48398 under the BSD license.
48400 2005-10-24 Simon Josefsson <jas@extundo.com>
48402 * modules/sha1: Relicense to LGPL.
48404 2005-10-24 Simon Josefsson <jas@extundo.com>
48406 * lib/md4.h: Shrink buffer size, now that we changed the type.
48408 2005-10-23 Simon Josefsson <jas@extundo.com>
48410 * gnulib-tool (func_import): Fix --tests-base.
48412 2005-10-22 Simon Josefsson <jas@extundo.com>
48414 * modules/arcfour (Depends-on): Need stdint.
48416 2005-10-22 Simon Josefsson <jas@extundo.com>
48418 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48419 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
48421 2005-10-22 Simon Josefsson <jas@extundo.com>
48423 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48424 suggested by Bruno Haible <bruno@clisp.org>.
48426 2005-10-22 Simon Josefsson <jas@extundo.com>
48428 * lib/crc.h: Include stddef.h, for size_t.
48430 2005-10-22 Simon Josefsson <jas@extundo.com>
48432 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48433 arcfour_context struct (simplify test vector testing in GNU
48436 2005-10-21 Simon Josefsson <jas@extundo.com>
48438 * modules/des, modules/des-tests: New files.
48440 * modules/gc-des, modules/gc-des-tests: New files.
48442 * tests/test-des.c, tests/test-gc-des.c: New file.
48444 2005-10-21 Simon Josefsson <jas@extundo.com>
48446 * modules/arctwo, modules/arctwo-tests: New files.
48448 * tests/test-arctwo.c: New file.
48450 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48452 * tests/test-gc-arctwo.c: New file.
48454 2005-10-21 Simon Josefsson <jas@extundo.com>
48456 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48457 Bruno Haible <bruno@clisp.org>.
48459 * m4/gc-des.m4: New file.
48461 2005-10-21 Simon Josefsson <jas@extundo.com>
48463 * m4/arctwo.m4: New file.
48465 * m4/gc-arctwo.m4: New file.
48467 2005-10-21 Simon Josefsson <jas@extundo.com>
48469 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48472 2005-10-21 Simon Josefsson <jas@extundo.com>
48474 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48477 * lib/hmac-sha1.c (hmac_sha1): Likewise.
48479 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48480 Bruno Haible <bruno@clisp.org>.
48482 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48485 2005-10-21 Simon Josefsson <jas@extundo.com>
48487 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48489 2005-10-21 Simon Josefsson <jas@extundo.com>
48491 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48493 2005-10-21 Simon Josefsson <jas@extundo.com>
48495 * lib/des.h, lib/des.c: New files.
48497 * lib/gc-gnulib.c: Support DES.c
48499 2005-10-21 Simon Josefsson <jas@extundo.com>
48501 * lib/arctwo.h, lib/arctwo.c: New files.
48503 * lib/gc-gnulib.c: Support ARCTWO.
48505 2005-10-21 Simon Josefsson <jas@extundo.com>
48507 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48508 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48510 2005-10-21 Simon Josefsson <jas@extundo.com>
48512 * gnulib-tool (func_import, func_create_testdir): Define automake
48513 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48514 Makefile.am snippet),
48515 suggested by Bruno Haible <bruno@clisp.org>.
48517 * modules/gc (Makefile.am): Use it.
48519 2005-10-21 Bruno Haible <bruno@clisp.org>
48521 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48524 2005-10-19 Simon Josefsson <jas@extundo.com>
48526 * tests/test-gc-rijndael.c: New file.
48528 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48530 2005-10-19 Simon Josefsson <jas@extundo.com>
48532 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48535 2005-10-19 Simon Josefsson <jas@extundo.com>
48537 * tests/test-gc-arcfour.c: New file.
48539 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48541 2005-10-19 Simon Josefsson <jas@extundo.com>
48543 * modules/gc-md4, modules/gc-md4-tests: New file.
48545 * tests/test-gc-md4.c: New file.
48547 2005-10-19 Simon Josefsson <jas@extundo.com>
48549 * m4/gc-md4.m4: New file.
48551 2005-10-19 Simon Josefsson <jas@extundo.com>
48553 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48554 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48557 2005-10-19 Simon Josefsson <jas@extundo.com>
48559 * m4/gc-arcfour.m4: New file.
48561 * m4/gc-rijndael.m4: New file.
48563 2005-10-19 Simon Josefsson <jas@extundo.com>
48565 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48567 2005-10-19 Simon Josefsson <jas@extundo.com>
48569 * lib/gc-gnulib.c: Support ARCFOUR.
48571 2005-10-19 Simon Josefsson <jas@extundo.com>
48573 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48576 * lib/gc.h: Add ECB enum type.
48578 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48580 2005-10-18 Simon Josefsson <jas@extundo.com>
48582 * tests/test-md5.c: New file.
48584 * modules/md5-tests: New file.
48586 2005-10-18 Simon Josefsson <jas@extundo.com>
48588 * tests/test-md4.c: New file.
48590 * modules/md4, modules/md4-tests: New files.
48592 2005-10-18 Simon Josefsson <jas@extundo.com>
48594 * m4/md4.m4: New file.
48596 2005-10-18 Simon Josefsson <jas@extundo.com>
48598 * lib/md4.h, lib/md4.c: New files, based on md5.?.
48600 2005-10-17 Stepan Kasal <kasal@ucw.cz>
48602 * gnulib-tool (func_create_testdir): Omit the second check whether
48603 BUILT_SOURCES in nonempty.
48605 2005-10-17 Simon Josefsson <jas@extundo.com>
48607 * tests/test-rijndael.c: New file.
48609 2005-10-17 Simon Josefsson <jas@extundo.com>
48611 * modules/sha1: Depend on stdint instead of md5.
48613 * modules/md5: Depend on stdint, remove uint32_t.
48615 2005-10-17 Simon Josefsson <jas@extundo.com>
48617 * modules/gc-sha1-tests: New file.
48619 * tests/test-gc-sha1.c: New file.
48621 2005-10-17 Simon Josefsson <jas@extundo.com>
48623 * m4/md5.m4: Remove call to uint32_t.m4.
48625 2005-10-17 Simon Josefsson <jas@extundo.com>
48627 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48629 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48632 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
48634 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
48636 2005-10-17 Simon Josefsson <jas@extundo.com>
48638 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48640 2005-10-17 Simon Josefsson <jas@extundo.com>
48642 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48644 2005-10-17 Simon Josefsson <jas@extundo.com>
48646 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48648 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48650 2005-10-17 Bruno Haible <bruno@clisp.org>
48652 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48653 that it can also be used in a test.
48655 2005-10-16 Bruno Haible <bruno@clisp.org>
48657 * gnulib-tool (func_emit_tests_Makefile_am): Also define
48658 TESTS_ENVIRONMENT, so that individual tests can augment it.
48660 * gnulib-tool (func_create_testdir): Use an intermediate target for
48661 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48662 macros, like $(ALLOCA_H), which cannot be passed through the command
48665 2005-10-15 Simon Josefsson <jas@extundo.com>
48667 * modules/rijndael-tests: New file.
48669 * modules/rijndael: New file.
48671 2005-10-15 Simon Josefsson <jas@extundo.com>
48673 * m4/rijndael.m4: New file.
48675 2005-10-15 Simon Josefsson <jas@extundo.com>
48677 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48679 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48681 2005-10-14 Simon Josefsson <jas@extundo.com>
48683 * tests/test-arcfour.c: New file.
48685 * modules/arcfour, modules/arcfour-tests: New files.
48687 2005-10-14 Simon Josefsson <jas@extundo.com>
48689 * m4/arcfour.m4: New file.
48691 2005-10-14 Simon Josefsson <jas@extundo.com>
48693 * lib/arcfour.h, lib/arcfour.c: New files.
48695 2005-10-14 Roland McGrath <roland@redhat.com>
48697 Import from libc. [BZ #1331]
48698 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48700 Reported by Matej Vela <vela@debian.org>.
48702 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48704 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48705 include <wchar.h>; no longer needed.
48707 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48709 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48711 2005-10-14 Jakub Jelinek <jakub@redhat.com>
48712 and Ulrich Drepper <drepper@redhat.com>
48715 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48716 instead of inline stream orientation test and two separate
48717 function calls. Pay no attention to USE_IN_LIBIO.
48719 2005-10-13 Simon Josefsson <jas@extundo.com>
48721 * modules/gc-hmac-md5-tests: New file.
48723 * tests/test-gc-hmac-sha1.c: New file.
48725 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48727 * modules/gc-hmac-md5-tests: New file.
48729 * tests/test-gc-md5.c: New file.
48731 * modules/gc-md5-tests: New file.
48733 2005-10-13 Simon Josefsson <jas@extundo.com>
48735 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48736 Move memory allocation outside of loop.
48738 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
48740 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48741 intermediate directory is in a read-only file system. Problem
48742 reported by Eric Blake.
48744 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
48746 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48748 2005-10-12 Simon Josefsson <jas@extundo.com>
48750 * tests/test-hmac-sha1.c: New file.
48752 * modules/hmac-sha1-tests: New file.
48754 * modules/hmac-sha1: New file.
48756 2005-10-12 Simon Josefsson <jas@extundo.com>
48758 * modules/gc-sha1: New file.
48760 2005-10-12 Simon Josefsson <jas@extundo.com>
48762 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48764 * tests/test-gc-pbkdf2-sha1.c: New file.
48766 2005-10-12 Simon Josefsson <jas@extundo.com>
48768 * modules/gc-md5, modules/gc-hmac-md5: New files.
48770 * modules/gc (Files): Remove md5, memxor and hmac files.
48772 2005-10-12 Simon Josefsson <jas@extundo.com>
48774 * m4/gc-pbkdf2-sha1.m4: New file.
48776 * m4/gc-hmac-sha1.m4: New file.
48778 * m4/gc-sha1: New file.
48780 * m4/hmac-sha1.m4: New file.
48782 2005-10-12 Simon Josefsson <jas@extundo.com>
48784 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48786 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48788 2005-10-12 Simon Josefsson <jas@extundo.com>
48790 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48791 suggested by Bruno Haible <bruno@clisp.org>.
48793 2005-10-12 Simon Josefsson <jas@extundo.com>
48795 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48797 2005-10-12 Simon Josefsson <jas@extundo.com>
48799 * lib/gc-pbkdf2-sha1.c: New file.
48801 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48803 2005-10-12 Simon Josefsson <jas@extundo.com>
48805 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48807 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48809 2005-10-12 Simon Josefsson <jas@extundo.com>
48811 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48812 GC_USE_HMAC_MD5, respectively.
48814 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48815 (gc_md5): Fix typo.
48817 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48819 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48821 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48823 2005-10-12 Bruno Haible <bruno@clisp.org>
48825 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48826 Reported by Stepan Kasal <kasal@ucw.cz>.
48828 2005-10-11 Simon Josefsson <jas@extundo.com>
48830 * tests/test-crc.c: New file.
48832 * modules/crc, modules/crc-tests: New files.
48834 2005-10-11 Simon Josefsson <jas@extundo.com>
48836 * m4/crc.m4: New file.
48838 2005-10-11 Simon Josefsson <jas@extundo.com>
48840 * lib/gc.h: Add gc_hash and gc_hash_buffer.
48842 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
48844 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48846 2005-10-11 Simon Josefsson <jas@extundo.com>
48848 * lib/crc.h, lib/crc.c: New files.
48850 * lib/gc.h (gc_hash_buffer): Add doc.
48852 2005-10-11 Bruno Haible <bruno@clisp.org>
48854 * modules/c-strcasestr: New file.
48855 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48857 2005-10-11 Bruno Haible <bruno@clisp.org>
48859 * modules/c-strcase: New file.
48860 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48862 2005-10-11 Bruno Haible <bruno@clisp.org>
48864 * lib/strcasecmp.c: Include limits.h.
48865 (strcasecmp): Avoid integer overflow on exotic platforms.
48866 * lib/strncasecmp.c: Include limits.h.
48867 (strncasecmp): Avoid integer overflow on exotic platforms.
48868 Reported by Paul Eggert.
48870 2005-10-11 Bruno Haible <bruno@clisp.org>
48872 * lib/c-strcasestr.h: New file, from GNU gettext.
48873 * lib/c-strcasestr.c: New file, from GNU gettext.
48875 2005-10-11 Bruno Haible <bruno@clisp.org>
48877 * lib/c-strcase.h: New file, from GNU gettext.
48878 * lib/c-strcasecmp.c: New file, from GNU gettext.
48879 * lib/c-strncasecmp.c: New file, from GNU gettext.
48881 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
48883 * modules/mempcpy (License): GPL -> LGPL.
48884 * modules/strchrnul (License): Likewise.
48885 * modules/sysexits (License): Likewise.
48887 2005-10-08 Simon Josefsson <jas@extundo.com>
48889 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48891 2005-10-07 Simon Josefsson <jas@extundo.com>
48893 * m4/memxor.m4: Remove gl_C_RESTRICT call.
48895 2005-10-06 Simon Josefsson <jas@extundo.com>
48897 * tests/test-hmac-md5.c: New file.
48899 * modules/hmac-md5-tests: New file.
48901 * modules/hmac-md5: New file.
48903 2005-10-06 Simon Josefsson <jas@extundo.com>
48905 * m4/hmac-md5.m4: New file.
48907 * m4/memxor.m4: Require gl_C_RESTRICT.
48909 2005-10-06 Simon Josefsson <jas@extundo.com>
48911 * lib/memxor.c (memxor): Avoid casts and warnings.
48913 2005-10-06 Simon Josefsson <jas@extundo.com>
48915 * lib/hmac-md5.c: New file.
48917 * lib/hmac.h: New file.
48919 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
48921 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48922 promotes to int, not unsigned int, to catch the AIX 5.3
48925 2005-10-05 Simon Josefsson <jas@extundo.com>
48927 * modules/memxor: New file.
48929 * modules/iconv (Files): Move config.rpath to havelib, it is used
48932 * modules/havelib (Files): Add config.rpath.
48934 2005-10-05 Simon Josefsson <jas@extundo.com>
48936 * m4/memxor.m4: New file.
48938 2005-10-05 Simon Josefsson <jas@extundo.com>
48940 * lib/memxor.c (memxor): Fix compiler error.
48942 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48943 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48945 * lib/memxor.h, lib/memxor.c: New files.
48947 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48948 we assume all systems have it, suggested by Jim Meyering
48949 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
48950 any systems lack sys/socket.h; mingw32 is known to lack it, but we
48951 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
48954 2005-10-05 Simon Josefsson <jas@extundo.com>
48956 * config/srclist.txt: Add glibc bug 1423 for md5.h.
48958 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
48960 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48961 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48962 needed, since the source code now assumes these .h files.
48964 2005-10-05 Derek Price <derek@ximbiot.com>
48966 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48968 2005-10-05 Bruno Haible <bruno@clisp.org>
48970 * modules/stdint (License): Change to LGPL.
48972 2005-10-04 Simon Josefsson <jas@extundo.com>
48974 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48975 D. Baushke" <mdb@gnu.org>.
48977 2005-10-04 Bruno Haible <bruno@clisp.org>
48979 * lib/verify.h (verify_true): Provide alternative definition for C++.
48981 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
48983 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
48984 (SSIZE_MAX): New macro, if not already defined.
48985 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48988 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48990 Sync from coreutils.
48991 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48992 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48993 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
48994 ULLONG_MAX doesn't work with 2.7.2.1.
48996 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48998 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49001 * modules/exclude (Depends-on): Depend on verify.
49002 * modules/strtoimax (Depends-on): Likewise.
49003 * modules/utimecmp (Depends-on): Likewise.
49005 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
49007 * lib/exclude.c: Include verify.h.
49008 (verify): Remove. All callers changed to use verify.h's version.
49009 * lib/strtoimax.c: Likewise.
49010 * lib/utimecmp.c: Likewis.e
49012 Sync from coreutils.
49013 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49014 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49015 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49016 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
49017 bother returning ENOSYS if settimeofday or stime fails; just let
49018 them return whatever errno they want to return.
49019 * lib/utimens.c: Include unistd.h, for dup2.
49020 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49021 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49023 2005-10-02 Jim Meyering <jim@meyering.net>
49025 Sync from coreutils.
49026 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49027 from glibc-2.2.5 that fails for read-only files.
49029 2005-10-02 Jim Meyering <jim@meyering.net>
49031 Sync from coreutils.
49032 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49033 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49034 `#if HAVE_CONFIG_H'.
49035 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49036 Remove AT_FDCWD test.
49037 Do not consume the fd unless successful.
49038 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49039 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49040 block, so that we don't even try to compile it if settimeofday is
49041 available. This works around a compilation failure on OSF1 V5.1,
49042 due to stime requiring a `long int*' while tv_sec is `int'.
49044 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
49046 Sync from coreutils.
49047 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49048 against `yes', rather than just testing for nonempty.
49050 2005-10-01 Simon Josefsson <jas@extundo.com>
49052 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49055 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49056 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
49057 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
49058 freeaddrinfo and gai_strerror are declared by the POSIX headers.
49059 Check if struct addrinfo is declared.
49061 2005-10-01 Simon Josefsson <jas@extundo.com>
49063 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49064 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
49065 AI_* and EAI_* definitions. Protect function declarations.
49067 2005-10-01 Jim Meyering <jim@meyering.net>
49069 Sync from coreutils.
49071 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49072 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
49073 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49074 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49075 in the inet and nsl libraries. Required on Solaris 5.7.
49077 2005-10-01 Jim Meyering <jim@meyering.net>
49079 Sync from coreutils.
49080 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49081 in the inet and nsl libraries. Required on Solaris 5.7.
49083 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
49085 * lib/getdelim.c (getdelim): Remove unused variables.
49087 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
49089 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49090 so that the code works even with ancient cpp. Portability problem
49091 with GCC 2.7.2.1 reported by Thomas M.Ott.
49093 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
49095 * modules/regex (Depends-on): Add strcase.
49097 * modules/gethostname (Licence): Change from GPL to LGPL, since
49098 gethostname.c is a trivial implementation of a standard library
49100 * modules/poll (License): Change from GPL to LGPL, since it's
49101 derived from LGPL code.
49103 2005-09-27 Jim Meyering <jim@meyering.net>
49105 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49108 * lib/intprops.h (signed_type_or_expr__): Define.
49109 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49110 for unsigned types.
49112 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
49114 * lib/verify.h (verify_expr): Remove, replacing with:
49115 (verify_true): New macro that returns true instead of void.
49116 (verify_type__): Remove.
49117 (verify): Use verify_true rather than verify_type__.
49119 2005-09-26 Bruno Haible <bruno@clisp.org>
49121 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49123 (lib_SOURCES): Remove mbchar.c.
49124 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49125 (Files): Add m4/mbrtowc.m4.
49126 * modules/mbiter: Likewise.
49127 * modules/mbuiter: Likewise.
49129 2005-09-26 Bruno Haible <bruno@clisp.org>
49131 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49132 compile mbchar.c if they are not both present.
49133 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49134 * m4/mbiter.m4 (gl_MBITER): Likewise.
49135 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49136 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49137 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49139 2005-09-25 Jim Meyering <jim@meyering.net>
49141 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49142 also uses socklen_t.
49144 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
49146 * lib/utimens.c (ENOSYS): Define if not already defined.
49147 (futimens): Support having a null PATH if the file descriptor
49150 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49152 (__attribute): Define to empty unless GCC 3.1 or later.
49153 This works around a core dump on OpenBSD 3.4, which has GCC
49154 2.95.3, which dumps core when given __attribute__(()). It also
49155 simplifies other tests, since we really don't want to bother with
49156 worrying about which ancient version of GCC supported what.
49157 Original problem reported by Yoann Vandoorselaere, with part of
49158 the fix suggested by Derek Price.
49160 2005-09-24 Jim Meyering <jim@meyering.net>
49162 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49163 so we can once again use a positive bitfield width of 1 -- now we
49164 don't have to explain why we were using a bitfield width of 2.
49166 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
49168 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49169 and similarly for the other external symbols. Problem reported
49172 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49173 bug reported by Jim Meyering.
49175 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49176 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49177 not needed, since socklen is a prerequisite module.
49179 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
49181 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49182 Problem reported by Eric Blake.
49183 (getaddrinfo): Initialize se so that it's not garbage.
49184 Redo internal storage allocation so that it doesn't make unportable
49185 assumptions about alignment.
49188 * lib/utimens.c (futimens): Use futimesat if available.
49189 Prefer it to futimes since it doesn't have the futimes bug.
49191 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49192 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49193 Instead, declare a function that returns a pointer to an array,
49194 and use verify_type__ to declare the size of the array.
49195 Problem and germ of a solution reported by Bruno Haible.
49196 (verify_type__): Use 2, not 1, for bitfield size, to avoid
49197 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
49199 2005-09-23 Jim Meyering <jim@meyering.net>
49201 Sync from coreutils.
49202 Correct build failure (socklen_t not defined) on at least
49203 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49204 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49206 2005-09-23 Jim Meyering <jim@meyering.net>
49208 * modules/getaddrinfo (Depends-on): Add socklen.
49210 2005-09-23 Bruno Haible <bruno@clisp.org>
49212 * tests/test-verify.c: New file.
49214 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49216 Sync from coreutils.
49218 * modules/argmatch (Depends-on): Add verify.
49219 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49221 * modules/save-cwd (Depends-on): Likewise.
49223 * modules/openat (Files): Add lib/openat-die.c.
49224 (Depends-on): Remove error, exitfail.
49227 * modules/verify: New file.
49228 * MODULES.html.sh (Diagnostics <assert.h>): New section,
49229 with "verify" module.
49231 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49233 Sync from coreutils.
49235 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49236 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49237 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49238 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49239 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49240 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49241 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49242 Don't bother checking for string.h, stdlib.h, unistd.h.
49243 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49244 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49246 * m4/jm-macros.m4 (gl_MACROS): Likewise.
49247 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49249 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49250 (gl_GETDATE): Use it.
49252 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49254 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49256 Sync from coreutils.
49258 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49260 * lib/argmatch.h: Include verify.h
49261 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49262 (ARGMATCH_ASSERT): Remove; unused.
49263 * lib/canonicalize.c: Assume STDC_HEADERS.
49264 * lib/exclude.c: Include "strcase.h".
49265 * lib/regex_internal.h [!defined _LIBC]: Likewise.
49266 * lib/getusershell.c: Include stdio--.h rather than stdio.h
49268 (getusershell): Call fopen, not fopen_safer.
49269 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49270 Do not include unistd-safer.h.
49271 (save_cwd): Don't call fd_safer; no longer needed
49272 now that we include fcntl--.h.
49274 * lib/getdate.y (relative_time): New type.
49275 (RELATIVE_TIME_0): New constant.
49276 (parser_control): Use relative_time instead of doing it ourselves.
49277 (%union): Add new relative_time rel member.
49278 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49280 (relunit, relunit_snumber): Now of type rel.
49281 (zone, rel, relunit, get_date): Adjust to above changes.
49283 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49284 Do not include unistd-safer.h.
49285 (getloadavg): Don't call fd_safer; no longer needed
49286 now that we include fcntl--.h.
49288 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49289 (make_dir_parents): Treat ENOSYS like EEXIST.
49291 Improve quality of diagnostics on restore_cwd failure.
49292 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
49293 (make_dir_parents): Last arg is now int * (for errno), not bool *.
49294 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49295 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49296 each time through the loop. Do not diagnose restore_cwd failure;
49297 that is the caller's job (and perhaps the caller does not care).
49299 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49300 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49301 If the file already exists but is not a directory, don't bother
49302 to try to make its parents.
49303 Close potential file descriptor leak if we can't chdir("/") (!).
49304 Don't always return true if chdir($PWD) fails; return true only
49305 if the requested action was done successfully (except for the
49307 Don't log final directory unless we actually made it.
49308 Refactor to avoid duplicate code to fix up permissions.
49309 Don't attempt to fix up parent permissions if chdir($PWD) fails.
49311 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49312 to make it a bit faster and (I hope) clearer.
49313 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49314 Fix bug in formats like %2N.
49316 * lib/verify.h: New file.
49318 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49320 Sync from coreutils.
49321 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49323 2005-09-22 Jim Meyering <jim@meyering.net>
49325 Sync from coreutils.
49327 * m4/lstat.m4 (gl_FUNC_LSTAT):
49328 Use AC_LIBSOURCES to require lstat.c and lstat.h.
49329 Remove obsolete comment.
49330 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49331 * m4/xstrtod.m4: Likewise.
49333 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49335 2005-09-22 Jim Meyering <jim@meyering.net>
49337 Sync from coreutils.
49339 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49341 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49342 the .tm_year member, since otherwise gcc-4.0 would now warn about
49343 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49345 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49346 order to avoid an unsuppressible warning from gcc on 64-bit systems.
49348 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49349 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49350 when run in a time zone for which daylight savings time is in effect
49351 for the starting date.
49353 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49354 stop us from restricting permissions of just-created absolute-named
49356 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49357 to restore initial working directory.
49358 * lib/mkdir-p.c (make_dir_parents): New parameter:
49359 different_working_dir, to tell caller if/when we change the working
49360 directory and are unable to return to the initial one.
49361 * lib/mkdir-p.h (make_dir_parents): Update prototype.
49362 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49363 `return false'. This fixes a bug introduced on 2004-07-30.
49365 * lib/openat.c (fdopendir): Be sure to close the supplied
49366 file descriptor before returning. This makes our replacement
49367 implementation a little closer to Solaris's, where fdopendir
49368 ties the file descriptor to the returned DIR* pointer.
49369 * lib/openat.c (unlinkat): New function.
49370 * lib/openat.h (unlinkat): Add prototype.
49371 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49372 (openat_restore_fail): Rename from openat_restore_die.
49373 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49375 Provide an alternative to exiting immediately upon save_cwd or
49376 restore_cwd failure. Now, an application can arrange e.g.,
49377 to perform a longjump in that case.
49378 * lib/openat.c: Include dirname.h.
49379 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49380 (rpl_openat, fdopendir, fstatat): Call openat_save_die
49381 and openat_restore_die rather than calling error directly.
49382 Don't include "error.h" or "exitfail.h"; they're no longer needed.
49384 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49385 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49388 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49389 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49390 int utc, int nanoseconds);
49392 date should not have to allocate a megabyte of virtual memory to
49393 handle a format argument like +%1048575T. When implemented with
49394 strftime, it must allocate such a buffer, use strftime to fill it
49395 in, print it, then free it.
49396 With fprintftime, it simply prints everything and exits.
49397 With no need for memory allocation, that's one fewer way to fail.
49398 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49399 optional field width, not before, so we accept %9:z, not %:9z.
49400 (my_strftime): Be sure to use L_('x') for literals.
49402 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49403 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49404 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49405 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49406 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49407 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49408 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49409 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49410 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49411 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49412 * lib/xgethostname.c, lib/xreadlink.c:
49413 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49415 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49416 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49417 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49418 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49419 and don't include <sys/file.h>).
49421 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
49423 Sync from coreutils.
49425 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49426 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49427 [!LDAV_DONE]: Avoid unused variable warning.
49429 2005-09-21 Bruno Haible <bruno@clisp.org>
49431 * lib/unicodeio.h (unicode_to_mb): New declaration.
49433 2005-09-20 Derek Price <derek@ximbiot.com>
49435 * lib/getaddrinfo.c: Don't include <netdb.h> included from
49438 2005-09-20 Bruno Haible <bruno@clisp.org>
49440 * gnulib-tool: Remove trailing slashes from the values specified for
49441 --source-base, --m4-base, --tests-base, --aux-dir.
49442 Suggested by Simon Josefsson <jas@extundo.com>.
49444 2005-09-20 Bruno Haible <bruno@clisp.org>
49446 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49447 func_modules_to_filelist, func_import, func_create_testdir): Make all
49448 sorting results locale-independent, so that gnulib-cache.m4 doesn't
49449 change when gnulib-tool is invoked in a different locale.
49451 2005-09-19 Simon Josefsson <jas@extundo.com>
49453 * m4/socklen.m4: Fix typo.
49455 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49457 Use a consistent style for including <config.h>.
49458 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49459 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49460 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49461 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49462 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49463 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49464 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49465 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49466 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49467 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49468 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49469 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49470 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49471 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49472 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49473 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49474 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49475 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49476 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49477 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49478 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49479 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49480 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49481 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49482 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49483 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49484 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49485 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49486 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49487 lib/xstrtoumax.c, lib/yesno.c:
49488 Standardize inclusion of config.h.
49489 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49490 lib/inttostr.h: Removed inclusion of config.h from header files.
49491 * lib/inttostr.c: Adjusted in-tree users.
49492 * lib/timespec.h: Remove superfluous warning to include config.h.
49493 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49494 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49495 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49496 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49497 config.h with HAVE_CONFIG_H.
49499 2005-09-19 Jim Meyering <jim@meyering.net>
49501 * modules/pathmax (License): Change to LGPL.
49503 2005-09-19 Derek Price <derek@ximbiot.com>
49505 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49507 2005-09-19 Bruno Haible <bruno@clisp.org>
49509 * gnulib-tool (import): Provide default for --tests-base.
49511 2005-09-19 Bruno Haible <bruno@clisp.org>
49513 * doc/quote.texi: New file, extracted from gnulib.texi.
49514 * doc/ctime.texi: New file, extracted from gnulib.texi.
49515 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49516 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49517 * doc/gnulib.texi: Include them.
49519 2005-09-18 Bruno Haible <bruno@clisp.org>
49522 * gnulib-tool (func_readlink): New function.
49523 (func_ln_if_changed): Use it.
49525 2005-09-18 Bruno Haible <bruno@clisp.org>
49527 * gnulib-tool: Support --with-tests also with --import.
49528 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49529 (func_import): Use variables $testsbase and $inctests. Emit a
49530 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49531 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49532 SUBDIRS += $testsdir.
49533 (func_create_testdir): Update.
49535 2005-09-18 Bruno Haible <bruno@clisp.org>
49537 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49538 instead of $dry_run.
49539 (func_cp_if_changed, func_mv_if_changed): Remove functions.
49540 (func_ln_if_changed): Don't handle dry-run here.
49541 (func_import): In dry-run mode, detect more precisely which actions
49542 would be performed, and don't use "...ing" verbs.
49544 2005-09-18 Bruno Haible <bruno@clisp.org>
49546 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49547 (func_import): Use join on two temporary files instead of three nested
49548 loops, in order to determine which files are new or old.
49550 2005-09-18 Bruno Haible <bruno@clisp.org>
49552 * gnulib-tool (func_import): Comment out code that spits out the
49553 new files with --dry-run.
49555 2005-09-18 Bruno Haible <bruno@clisp.org>
49557 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49559 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49561 * lib/stat-time.h: New file.
49562 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49563 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
49564 in a different way.
49565 (timespec_cmp): New function.
49566 * lib/utimecmp.c: Include stat-time.h.
49567 (SYSCALL_RESOLUTION): Depend on whether various struct stat
49568 members exist, not on the obsolescent ST_MTIM_NSEC.
49569 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49571 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49573 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49575 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49577 * MODULES.html.sh (File system functions): Add stat-time.
49578 * modules/stat-time: New file.
49579 * modules/timespec (Files): Remove m4/st_mtim.m4; this
49580 is now done in a different way, by the stat-time module.
49581 * modules/utimecmp (Depends-on): Add stat-time.
49583 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
49585 * m4/st_mtim.m4: Remove. Superseded by...
49586 * m4/stat-time.m4: New file.
49587 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49588 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49590 2005-09-15 Derek Price <derek@ximbiot.com>
49592 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49594 2005-09-15 Derek Price <derek@ximbiot.com>
49596 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49597 * lib/regex_internal.c: Ditto, using this...
49598 (__GNUC_PREREQ): ...new macro.
49599 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49601 (__GNUC_PREREQ): ...this new macro.
49603 * lib/strstr.h: Include string.h. Define strstr as a macro here.
49605 2005-09-15 Derek Price <derek@ximbiot.com>
49606 Paul Eggert <eggert@cs.ucla.edu>
49608 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49609 changes, consolidating in...
49610 * lib/regex_internal.h: ...this file.
49612 2005-09-13 Jim Meyering <jim@meyering.net>
49614 * lib/canon-host.c: Filter through gnu indent and reword comments
49616 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49618 2005-09-13 Derek Price <derek@ximbiot.com>
49620 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49622 Reported by Jim Meyering <jim@meyering.net>.
49624 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
49626 * lib/base64.c: Typo.
49627 (base64_encode): Put b64str in initialized data section.
49629 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
49631 Merge glibc and coreutils changes into gnulib, plus a few
49633 * lib/md5.c: Use #error rather than a string.
49634 (CYCLIC): New macro, from glibc source. Use it instead of rol.
49635 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49636 (__attribute__): Define to empty for non recent-GCC.
49637 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49638 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49639 Renamed from their non-__ counterparts, with new macros replacing
49640 them if not _LIBC. Add __THROW attribute.
49642 (struct md5_ctx): Align buffer if using GCC.
49643 * lib/sha1.h (struct sha1_ctx): Likewise.
49644 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
49645 The old name was backwards.
49646 (NOTSWAP): Remove; not used.
49647 (rol): New macro, moved here from md5.h.
49648 (sha1_process_block): Remove a FIXME that doesn't make sense.
49650 2005-09-12 Derek Price <derek@ximbiot.com>
49652 Return usable errors from canon-host.
49653 * lib/canon-host.h: New file.
49654 * lib/canon-host.c (canon_host): Wrap...
49655 (canon_host_r): ...this new function, which now relies exclusively on
49657 (ch_strerror): New function.
49658 (last_cherror): New global.
49659 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49661 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
49663 (freeaddrinfo): Free ai->ai_canonname when set.
49665 2005-09-12 Derek Price <derek@ximbiot.com>
49667 Make canon-host require getaddrinfo.
49668 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49669 AC_LIBSOURCE canon-host.h. Call...
49670 (gl_PREREQ_CANON_HOST): ...this new function, which requires
49672 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49674 2005-09-12 Derek Price <derek@ximbiot.com>
49676 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
49678 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
49680 2005-09-12 Derek Price <derek@ximbiot.com>
49682 * lib/gai_strerror.c: Include config.h when available. Include
49683 getaddrinfo.h before other headers to test interface.
49684 Reported by Larry Jones <lawrence.jones@ugs.com>.
49686 2005-09-12 Derek Price <derek@ximbiot.com>
49687 Paul Eggert <eggert@cs.ucla.edu>
49689 * modules/glob (Files): Add glob-libc.h.
49691 2005-09-12 Derek Price <derek@ximbiot.com>
49692 Paul Eggert <eggert@cs.ucla.edu>
49694 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49695 glob_.h, glob-libc.h.
49696 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49698 2005-09-12 Derek Price <derek@ximbiot.com>
49699 Paul Eggert <eggert@cs.ucla.edu>
49701 * lib/glob-libc.h: Renamed from glob_.h. The new version is
49702 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49703 protecting things that should be done only in gnulib contexts.
49704 * lib/glob_.h: New file, containing only the glob things needed for
49706 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
49707 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49708 (glob, globfree, glob_pattern_p): Now defined simply in terms of
49709 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49710 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49711 and to respect the namespace rules better.
49713 2005-09-08 Simon Josefsson <jas@extundo.com>
49715 * modules/socklen: New file.
49717 2005-09-08 Simon Josefsson <jas@extundo.com>
49719 * m4/socklen.m4: New file.
49721 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49723 * modules/utimens (Files): Add m4/utimbuf.m4, since
49724 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49725 Reported by Sergey Poznyakoff.
49727 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49729 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49730 definitions, since that's the preferred style in glibc.
49731 Fix a minor spacing issue, and update copyright notice to match
49734 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49736 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49738 2005-09-06 Simon Josefsson <jas@extundo.com>
49740 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49741 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
49743 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49745 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49748 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49750 * config/srclist.txt: Add glibc bug 1302.
49752 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
49754 Change bitset word type from unsigned int to unsigned long int,
49755 as this has better performance on typical 64-bit hosts.
49756 Port bitset code to hosts with unusual word sizes.
49757 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49758 (build_collating_symbol):
49759 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49760 argument is a bitset. This is merely a style issue, but it makes
49761 it clearer that an entire array is expected.
49762 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49763 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49764 Port to the case where bitset_word is not the same as unsigned int.
49765 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49766 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49768 * lib/regexec.c (check_dst_limits_calc_pos_1,
49769 check_subexp_matching_top):
49770 (build_trtable, group_nodes_into_DFAstates):
49772 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49773 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49774 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49775 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49776 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49777 * lib/regcomp.c (optimize_subexps, lower_subexp):
49778 Work even if bitset_word has holes in its bitwise representation.
49779 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49780 * lib/regexec.c (check_dst_limits_calc_pos_1,
49781 check_subexp_matching_top):
49783 * lib/regex_internal.c (re_string_reconstruct):
49784 Don't assume UCHAR_MAX == 255.
49785 * lib/regex_internal.h (bitset_set_all): Likewise.
49786 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49788 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
49789 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49791 (BITSET_WORD_MAX): New macro.
49792 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49793 (bitset_set_all, bitset_copy): Now inline functions, not macros.
49794 (bitset_empty, bitset_copy):
49795 Prefer sizeof (bitset) to multiplying it out ourselves.
49796 (bitset_not_merge): Remove; unused.
49797 (bitset_contain): Return bool, not unsigned int with one bit on.
49798 All callers changed.
49799 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49800 alignment than re_node_set; do this by defining a new internal
49801 type struct dests_alloc and using it to allocate memory.
49803 2005-09-05 Bruno Haible <bruno@clisp.org>
49805 * gnulib-tool (func_import): Fix comparison in handling of symbolic
49808 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
49810 * modules/size_max (Makefile.am): Add size_max.h
49812 2005-09-04 Derek Price <derek@ximbiot.com>
49814 * gnulib-tool (func_import): Fix reversed $symbolic logic.
49816 2005-09-03 Simon Josefsson <jas@extundo.com>
49818 * gnulib-tool: Fix typo.
49820 2005-09-03 Simon Josefsson <jas@extundo.com>
49822 * config/srclist.txt: Add glibc bug 1293.
49824 2005-09-03 Derek Price <derek@ximbiot.com>
49826 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49827 From Larry Jones <lawrence.jones@ugs.com>.
49829 2005-09-02 Simon Josefsson <jas@extundo.com>
49831 * modules/socklen: New file.
49833 2005-09-02 Simon Josefsson <jas@extundo.com>
49835 * modules/havelib: New module.
49837 * modules/gettext, modules/iconv, modules/lock, modules/readline:
49840 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49842 Check for arithmetic overflow when calculating sizes, to prevent
49843 some buffer-overflow issues. These patches are conservative, in the
49844 sense that when I couldn't determine whether an overflow was possible,
49845 I inserted a run-time check.
49846 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49848 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49849 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49850 (re_xnrealloc, re_x2nrealloc): New inline functions.
49851 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49852 parse_bracket_exp):
49853 (build_equiv_class, build_charclass): Check for arithmetic overflow
49854 in size expression calculations.
49855 * lib/regex_internal.c (re_string_realloc_buffers):
49856 (build_wcs_upper_buffer, re_node_set_add_intersect):
49857 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49858 (re_dfa_add_node, register_state): Likewise.
49859 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49860 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49861 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49862 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49864 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49866 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49867 m4/ulonglong.m4. Problem reported by Martin Lambers.
49869 2005-09-02 Bruno Haible <bruno@clisp.org>
49871 Support for lib vs. lib64 distinction on biarch platforms.
49872 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49873 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49874 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49876 2005-09-02 Bruno Haible <bruno@clisp.org>
49878 * gnulib-tool (import): In the other first-use case, provide defaults
49881 2005-09-02 Bruno Haible <bruno@clisp.org>
49883 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49884 patches not yet found in the latest gettext release.
49886 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49888 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49889 to avoid a collision with bits/local_lim.h in glibc.
49890 All uses changed. Problem reported by Dmitry V. Levin in
49891 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49893 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49894 bugs in int versus size_t comparisons.
49895 (re_string_context_at): Fix bug where the code assumed that
49898 Use bool where appropriate.
49899 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49900 All callers changed.
49901 (calc_eclosure_iter): Likewise, for ROOT arg.
49902 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49903 (build_charclass_op): Likewise, for NON_MATCH arg.
49904 * lib/regex_internal.c (re_string_allocate, re_string_construct):
49905 (re_string_construct_common): Likewise, for ICASE arg.
49906 * lib/regexec.c (re_search_2_stub, re_search_stub):
49907 Likewise, for RET_LEN arg.
49908 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49909 (set_regs): Likewise, for FL_BACKTRACK arg.
49910 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49911 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49912 (calc_eclosure_iter, parse_bracket_exp):
49913 Use bool for internal variables that are booleans.
49914 * lib/regexec.c (re_search_internal, check_matching,
49915 proceed_next_node):
49916 (set_regs, build_sifted_states, sift_states_bkref):
49917 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49918 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49919 (find_collation_sequence_value):
49921 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49922 (re_node_set_compare):
49923 Return bool, not int. All callers changed.
49924 * lib/regexec.c (check_halt_node_context, check_dst_limits):
49925 (build_trtable, check_node_accept): Likewise.
49926 * lib/regex_internal.h: Include stdbool.h.
49928 Fix bugs uncovered when converting to bool.
49929 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49930 failure instead of charging ahead blindly.
49931 * lib/regex_internal.c (register_state): Likewise.
49932 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49933 for freeing internal storage.
49934 (group_nodes_into_DFA_states): Use unsigned int, not int, for
49935 bitset pieces used as boolean, to avoid undefined behavior
49936 on hosts that do int overflow checking.
49938 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49940 * config/srclist.txt: Add glibc bugs 1285-1287.
49942 2005-09-01 Jim Meyering <jim@meyering.net>
49944 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49945 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49946 Require gl_STAT_MACROS, too.
49948 2005-09-01 Bruno Haible <bruno@clisp.org>
49950 * gnulib-tool (import): In the first-use case, provide defaults.
49952 2005-09-01 Bruno Haible <bruno@clisp.org>
49954 * gnulib-tool (func_import): Remove the .tmp files.
49956 2005-09-01 Bruno Haible <bruno@clisp.org>
49958 * gnulib-tool (func_import): Fix handling of symbolic links.
49960 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49962 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49963 old glibc regex code mishandles strings longer than 2**31 bytes.
49964 This patch fixes this when the regex code is used in gnulib
49965 (i.e., outside glibc).
49967 This patch should not affect the use of the regex code inside
49968 glibc. No doubt this problem also needs to be handled for glibc
49969 as well, but the result will be an incompatible change to the
49970 glibc ABI, and the old ABI will have to be supported too. That
49971 can be the the subject for another patch.
49973 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49974 governing whether the rest of this patch is active. By default,
49975 the macro is disabled and the patch has no effect.
49976 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49977 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49978 (struct re_pattern_buffer, re_search, re_search_2, re_match):
49979 (re_match_2, re_set_registers): Use the new types.
49980 * lib/regex_internal.h (Idx, re_hashval_t): New types.
49981 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49983 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49984 (re_string_context_at, bin_tree_t, re_dfastate_t):
49985 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49986 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49987 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49988 (re_string_char_size_at, re_string_wchar_at):
49989 (re_string_elem_size_at):
49990 Use the new types and macros to port to 64-bit hosts.
49991 Use unsigned types for internal values, so that the code
49992 mostly works even for arrays larger than SSIZE_MAX.
49993 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49994 (search_duplicated_node, calc_eclosure_iter, fetch_number):
49995 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49996 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49997 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49998 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49999 (calc_inveclosure, parse_dup_op, build_range_exp):
50000 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50001 (fetch_number, create_token_tree, mark_opt_subexp):
50003 * lib/regex_internal.c (re_string_construct_common,
50004 create_ci_newstate):
50005 (create_cd_newstate, re_string_allocate, re_string_construct):
50006 (re_string_realloc_buffers, build_wcs_upper_buffer):
50007 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50008 (re_string_reconstruct, re_string_peek_byte_case):
50009 (re_string_fetch_byte_case, re_string_context_at):
50010 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50011 (re_node_set_init_copy, re_node_set_add_intersect):
50012 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50013 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50014 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50015 (re_acquire_state, re_acquire_state_context, register_state):
50017 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50018 search_cur_bkref_entry):
50019 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50020 (re_search_internal, re_search_2_stub, re_search_stub)
50021 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50022 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50023 (update_cur_sifted_state, check_dst_limits):
50024 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50025 (check_subexp_limits, sift_states_bkref, merge_state_array):
50026 (check_subexp_matching_top, get_subexp, get_subexp_sub):
50027 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50028 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50029 (expand_bkref_cache, check_node_accept_bytes):
50030 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50031 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50032 (acquire_init_state_context, check_halt_node_context):
50033 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50034 (sift_states_backward, clean_state_log_if_needed):
50035 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50036 (find_recover_state, transit_state_sb, transit_state_mb):
50037 (transit_state_bkref, build_trtable, match_ctx_clean):
50039 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50040 to work around an assumption that REG_MISSING is negative.
50042 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50043 (seek_collating_symbol_entry) [defined _LIBC]:
50044 (lookup_collation_sequence_value) [defined _LIBC]:
50045 (build_range_exp, build_collating_symbol) [defined _LIBC]:
50046 Use prototypes rather than old-style function definitions.
50047 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50048 (transit_state_sb) [0]:
50049 (find_collation_sequence_value) [defined _LIBC]: Likewise.
50051 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50054 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50055 (optimize_subexps, lower_subexp):
50056 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50057 since the signed shift might overflow. Use 1u<<31 instead.
50058 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50060 * lib/regexec.c (check_dst_limits_calc_pos_1,
50061 check_subexp_matching_top): Likewise.
50063 * lib/regcomp.c (optimize_subexps, lower_subexp):
50064 Use CHAR_BIT rather than 8, for clarity.
50065 * lib/regexec.c (check_dst_limits_calc_pos_1):
50066 (check_subexp_matching_top): Likewise.
50067 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50068 have to worry about portability issues when shifting it left.
50069 Remove no-longer-needed test for table_size > 0.
50070 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50071 in a word, as the resulting behavior is undefined.
50072 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50073 in one case, a <= should have been an <, and in another case the
50074 whole test was missing.
50075 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
50076 the standard name CHAR_BIT.
50077 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50078 this is not true on one's complement and signed-magnitude hosts.
50080 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50082 (struct re_dfa_t): Remove unused member states_alloc.
50083 * lib/regcomp.c (init_dfa): Don't initialize unused members.
50085 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
50087 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50088 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
50089 and large-file glibc and in 32-bit large-file Solaris.
50091 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
50093 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50094 lengths fit in regoff_t; this isn't true if regoff_t is the same
50096 * lib/regex.c (re_search_internal): 5th arg is LAST_START
50097 (= START + RANGE) instead of RANGE. This avoids overflow
50098 problems when regoff_t is the same width as size_t.
50099 All callers changed.
50100 (re_search_2_stub): Check for overflow when adding the
50101 sizes of the two strings.
50102 (re_search_stub): Check for overflow when adding START
50103 to RANGE; if it occurs, substitute the extreme value.
50105 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
50107 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50109 2005-08-31 Jim Meyering <jim@meyering.net>
50111 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50112 a pointer-to-const.
50113 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50114 (register_state): Likewise.
50115 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50116 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50117 (group_nodes_into_DFAstates): Likewise.
50119 2005-08-31 Jim Meyering <jim@meyering.net>
50121 * check-module: Add a FIXME comment.
50123 2005-08-31 Eric Blake <ebb9@byu.net>
50125 * modules/unistd-safer (Files): Add unistd--.h.
50126 * modules/stdio-safer (Files): Add stdio--.h.
50128 2005-08-31 Derek Price <derek@ximbiot.com>
50130 * lib/getdelim.c (getdelim): Return EOF on EOF.
50131 Reported by Larry Jones <lawrence.jones@ugs.com>.
50133 2005-08-31 Bruno Haible <bruno@clisp.org>
50135 Avoid unnecessary diffs in the generated lib/Makefile.am.
50136 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50137 the generated files.
50138 (func_import): Don't set cmd.
50140 2005-08-31 Bruno Haible <bruno@clisp.org>
50142 * lib/strstr.c: Include <stddef.h>, for NULL.
50143 * lib/strcasestr.c: Likewise.
50144 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50146 2005-08-31 Bruno Haible <bruno@clisp.org>
50148 * gnulib-tool: New option --macro-prefix.
50149 (func_import): Use macro_prefix.
50150 (import): Handle option --macro-prefix.
50152 2005-08-31 Bruno Haible <bruno@clisp.org>
50154 * gnulib-tool (import): Rename most ac_* variables to cached_*.
50155 Also use new variables cached_lgpl, cached_libtool.
50157 2005-08-31 Bruno Haible <bruno@clisp.org>
50159 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50160 always instantiating them.
50162 2005-08-31 Bruno Haible <bruno@clisp.org>
50164 * gnulib-tool (func_import): Read the previous cached settings
50165 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50166 earlier added by gnulib but are now dropped. Warn when a gnulib file
50167 overwrites a non-gnulib file.
50169 2005-08-31 Bruno Haible <bruno@clisp.org>
50171 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50172 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50173 projects that don't keep autogenerated files in CVS. Put into
50174 actioncmd only the specified modules, not the transitive closure.
50176 2005-08-31 Bruno Haible <bruno@clisp.org>
50178 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50179 Create directories that shall be filled.
50180 (import): Don't look for gl_* macros in configure.ac. Recurse across
50181 all directories containing a gnulib-cache.m4 files, if meaningful.
50183 2005-08-31 Bruno Haible <bruno@clisp.org>
50185 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50186 (import): Set seen_libtool when we see gl_LIBTOOL.
50188 2005-08-31 Bruno Haible <bruno@clisp.org>
50190 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50191 declaration macro definitions from generated gnulib.m4.
50193 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
50195 * lib/iconvme.h: Add prototype for iconv_alloc.
50197 2005-08-29 Simon Josefsson <jas@extundo.com>
50199 * lib/iconvme.c: Fix errno.
50201 2005-08-29 Bruno Haible <bruno@clisp.org>
50203 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50204 that it works when the directory contains spaces.
50206 2005-08-29 Bruno Haible <bruno@clisp.org>
50208 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50210 2005-08-29 Bruno Haible <bruno@clisp.org>
50212 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50215 2005-08-29 Bruno Haible <bruno@clisp.org>
50216 and Stepan Kasal <kasal@ucw.cz>
50218 * check-module: If more parameters are given, check each of them
50219 separately; add more exceptions, as noted by Jim Meyering.
50220 (check_module): New procedure.
50221 (%exempt_header): Now contains all exceptions.
50223 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
50225 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50227 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
50229 * lib/iconvme.c: Split iconv_string into iconv_alloc.
50231 2005-08-28 Bruno Haible <bruno@clisp.org>
50233 * m4/gnulib-tool.m4: New file.
50235 2005-08-27 Jim Meyering <jim@meyering.net>
50237 * modules/unistd-safer (Files): Add pipe-safer.c.
50238 * modules/fcntl-safer (Files): Add creat-safer.c.
50240 2005-08-27 Jim Meyering <jim@meyering.net>
50242 * m4/stdlib-safer.m4: New file. From coreutils.
50243 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50244 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50245 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50246 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50247 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50249 2005-08-27 Jim Meyering <jim@meyering.net>
50251 * lib/fopen-safer.c: Merge minor changes from coreutils.
50252 * lib/dup-safer.c: Likewise.
50253 * lib/fd-safer.c: Likewise.
50255 Merge from coreutils.
50256 * lib/stdio--.h: New file.
50257 * lib/stdlib--.h: New file.
50258 * lib/mkstemp-safer.c: New file.
50260 GNU tar needs these.
50261 * lib/pipe-safer.c: New file.
50262 * lib/creat-safer.c: New file.
50263 * lib/fcntl--.h (creat): Define to creat_safer.
50264 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50265 * lib/unistd--.h (pipe): Define to pipe_safer.
50266 * lib/unistd-safer.h: Declare pipe_safer.
50268 2005-08-26 Simon Josefsson <jas@extundo.com>
50270 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50271 Haible <bruno@clisp.org>.
50273 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
50275 * lib/regex_internal.h: Remove all references to
50276 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50278 (bitset_not, bitset_merge, bitset_not_merge):
50279 (bitset_mask, re_string_allocate, re_string_construct):
50280 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50281 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50282 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50283 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50284 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50285 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50286 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50287 (re_acquire_state_context):
50288 Remove unnecessary forward decls.
50289 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50290 Put __attribute at function definition,
50291 now that the function decl has been removed.
50292 * lib/regex_internal.c (re_string_peek_byte_case):
50293 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50296 2005-08-25 Stepan Kasal <kasal@ucw.cz>
50298 * m4/regex.m4: Add AC_PREREQ(2.50).
50299 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50301 2005-08-25 Simon Josefsson <jas@extundo.com>
50303 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50306 2005-08-25 Simon Josefsson <jas@extundo.com>
50308 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
50309 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
50310 GLIBC specific code.
50312 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50314 Make regex safe for g++. This fixes one real bug (an "err"
50315 that should have been "*err"). g++ problem reported by
50317 * lib/regex_internal.h (re_calloc): New macro, consistent with
50318 re_malloc etc. All callers of calloc changed to use re_calloc.
50319 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50320 not int. All callers changed.
50321 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50322 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50323 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50324 (find_recover_state): Change "err" to "*err"; this fixes what
50325 appears to be a real bug.
50326 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50329 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50331 * modules/regex (Depends-on): Add malloc, since the code
50332 assumes that !malloc(0) means failure.
50334 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50336 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50338 alloca modernization/simplification for regex.
50339 * lib/regex.c: Remove portability cruft for alloca. This no longer
50340 needs to be at the start of the file, and can be moved into
50341 regex_internal.h and simplified.
50342 * lib/regex_internal.h: Include <alloca.h>.
50343 (__libc_use_alloca) [!defined _LIBC]: New macro.
50344 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50345 now works outside glibc.
50347 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50349 * config/srclist.txt: Add glibc bugs 1241, 1245.
50351 2005-08-25 Jim Meyering <jim@meyering.net>
50353 * lib/open-safer.c: Include <config.h>.
50354 Otherwise, we'd lose LARGEFILE support in any file using
50357 2005-08-25 Bruno Haible <bruno@clisp.org>
50359 * m4/minmax.m4: Require autoconf 2.52.
50360 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50361 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50362 alternatives of translit over the alphabet.
50363 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50365 2005-08-24 Simon Josefsson <jas@extundo.com>
50367 * tests/test-getpass.c: New file.
50369 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50371 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50372 for GNU regex features.
50374 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50376 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50377 * lib/regex.h (regerror): Likewise.
50379 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50380 requires this. (The code never needed it.)
50382 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50383 All uses of recently-renamed identifiers changed to use the new,
50384 POSIX-compliant names. The code will build and run just fine
50385 without these changes, but it's better to eat our own dog food
50386 and use the standard-conforming names.
50388 * lib/regex.h: Fix a multitude of POSIX name space violations.
50389 These changes have an effect only for programs that define
50390 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50391 do not change anything for programs compiled in the normal way.
50392 Also, there is no effect on the ABI.
50394 (_REGEX_SOURCE): New macro.
50395 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50396 defined and _GNU_SOURCE is not; this fixes a name space violation.
50398 Rename the following macros to obey POSIX requirements.
50399 The old names are still visible as macros if _REGEX_SOURCE is defined.
50400 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50401 RE_BACKSLASH_ESCAPE_IN_LISTS.
50402 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50403 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50404 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50405 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50406 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50407 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50408 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50409 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50410 (REG_INTERVALS): renamed from RE_INTERVALS.
50411 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50412 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50413 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50414 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50415 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50416 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50417 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50418 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50419 RE_UNMATCHED_RIGHT_PAREN_ORD.
50420 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50421 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50422 (REG_DEBUG): renamed from RE_DEBUG.
50423 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50424 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
50425 unusual, since we can't clash with the POSIX REG_ICASE.
50426 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50427 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50428 (REG_NO_SUB): renamed from RE_NO_SUB.
50429 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50430 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50431 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50432 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50433 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50434 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50435 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50436 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50437 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50438 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50439 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50440 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50441 RE_SYNTAX_POSIX_MINIMAL_BASIC.
50442 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50443 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50444 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50445 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
50446 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50447 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50448 (REG_FIXED): Renamed from REGS_FIXED.
50449 (REG_NREGS): Renamed from RE_NREGS.
50451 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50452 of other REG_* macros, since POSIX says the user is allowed to
50453 #undef these macros selectively.
50455 (reg_errcode_t): Update comment stating what other tables need
50458 Rename the following enum values to obey POSIX requirements.
50459 The old names are still visible as macros.
50460 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
50461 is not defined, since GNU is supposed to be a superset of POSIX as
50462 much as possible, and since we want reg_errcode_t to be a signed
50463 type for implementation consistency.
50464 (_REG_NOERROR): Renamed from REG_NOERROR.
50465 (_REG_NOMATCH): Renamed from REG_NOMATCH.
50466 (_REG_BADPAT): Renamed from REG_BADPAT.
50467 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50468 (_REG_ECTYPE): Renamed from REG_ECTYPE.
50469 (_REG_EESCAPE): Renamed from REG_EESCAPE.
50470 (_REG_ESUBREG): Renamed from REG_ESUBREG.
50471 (_REG_EBRACK): Renamed from REG_EBRACK.
50472 (_REG_EPAREN): Renamed from REG_EPAREN.
50473 (_REG_EBRACE): Renamed from REG_EBRACE.
50474 (_REG_BADBR): Renamed from REG_BADBR.
50475 (_REG_ERANGE): Renamed from REG_ERANGE.
50476 (_REG_ESPACE): Renamed from REG_ESPACE.
50477 (_REG_BADRPT): Renamed from REG_BADRPT.
50478 (_REG_EEND): Renamed from REG_EEND.
50479 (_REG_ESIZE): Renamed from REG_ESIZE.
50480 (_REG_ERPAREN): Renamed from REG_ERPAREN.
50481 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50482 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50483 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50484 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50486 (_REG_RE_NAME, _REG_RM_NAME): New macros.
50487 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
50488 changed. But support the old name if the new one is not defined
50489 and if _REGEX_SOURCE.
50491 Change the following member names in struct re_pattern_buffer.
50492 The old names are still supported if !_REGEX_SOURCE.
50493 The new names are always supported, regardless of _REGEX_SOURCE.
50494 (re_buffer): Renamed from buffer.
50495 (re_allocated): Renamed from allocated.
50496 (re_used): Renamed from used.
50497 (re_syntax): Renamed from syntax.
50498 (re_fastmap): Renamed from fastmap.
50499 (re_translate): Renamed from translate.
50500 (re_can_be_null): Renamed from can_be_null.
50501 (re_regs_allocated): Renamed from regs_allocated.
50502 (re_fastmap_accurate): Renamed from fastmap_accurate.
50503 (re_no_sub): Renamed from no_sub.
50504 (re_not_bol): Renamed from not_bol.
50505 (re_not_eol): Renamed from not_eol.
50506 (re_newline_anchor): Renamed from newline_anchor.
50508 Change the following member names in struct re_registers.
50509 The old names are still supported if !_REGEX_SOURCE.
50510 The new names are always supported, regardless of _REGEX_SOURCE.
50511 (rm_num_regs): Renamed from num_regs.
50512 (rm_start): Renamed from start.
50513 (rm_end): Renamed from end.
50515 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50516 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50517 Prepend __ to parameter names.
50519 Undo yesterday's changes.
50521 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50523 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50524 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
50527 2005-08-24 Jim Meyering <jim@meyering.net>
50529 Sync from coreutils.
50530 * m4/fcntl-safer.m4: New file.
50532 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50533 and object files for this module.
50535 2005-08-24 Jim Meyering <jim@meyering.net>
50537 Sync from coreutils.
50538 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50540 2005-08-24 Jim Meyering <jim@meyering.net>
50542 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50543 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50545 2005-08-24 Jim Meyering <jim@meyering.net>
50547 * modules/fcntl-safer: New module.
50548 * modules/fts (Depends-on): Add fcntl-safer.
50549 * MODULES.html.sh (File descriptor based Input/Output):
50552 2005-08-24 Bruno Haible <bruno@clisp.org>
50554 Support for unit test modules.
50555 * modules/README: Mention tests modules.
50556 * modules/TEMPLATE-TESTS: New file.
50557 * gnulib-tool: New options --extract-tests-module, --with-tests and
50558 --tests-base (unused for the moment).
50559 (testsbase, inctests): New variables.
50560 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50561 (func_verify_module): Exclude TEMPLATE-TESTS.
50562 (func_verify_nontests_module, func_verify_tests_module): New functions.
50563 (func_get_dependencies): Add implicit dependency for tests modules.
50564 (func_get_tests_module): New function.
50565 (func_modules_transitive_closure): When --with-tests was specified,
50566 include the unit tests as well, unless explicitly avoided.
50567 (func_emit_lib_Makefile_am): Ignore the tests modules here.
50568 (func_emit_tests_Makefile_am): New function.
50569 (func_create_testdir): When --with-tests was specified, emit a
50571 * MODULES.html.sh (Future developments): Update.
50573 2005-08-24 Bruno Haible <bruno@clisp.org>
50575 * modules/tls-tests: New file.
50576 * tests/test-tls.c: New file, from GNU gettext.
50578 2005-08-24 Bruno Haible <bruno@clisp.org>
50580 * modules/lock-tests: New file.
50581 * tests/test-lock.c: New file, from GNU gettext.
50583 2005-08-24 Bruno Haible <bruno@clisp.org>
50585 * lib/lock.h: Add multiple inclusion guard.
50586 * lib/tls.h: Add multiple inclusion guard.
50588 2005-08-24 Bruno Haible <bruno@clisp.org>
50590 * gnulib-tool: Add support for the --aux-dir option to
50591 --create-testdir, --create-megatestdir, --test, --megatest.
50592 (func_create_testdir, func_create_megatestdir): Optionally emit a
50593 AC_CONFIG_AUX_DIR directive.
50594 (create-testdir, create-megatestdir, test, megatest): Provide a
50595 default value for $auxdir.
50597 2005-08-24 Bruno Haible <bruno@clisp.org>
50599 * gnulib-tool (import): Use compound statement instead of subshell
50602 2005-08-24 Bruno Haible <bruno@clisp.org>
50604 * gnulib-tool (import): Change --aux-dir default to "build-aux".
50606 2005-08-24 Bruno Haible <bruno@clisp.org>
50608 * gnulib-tool (func_version): Update.
50610 2005-08-24 Bruno Haible <bruno@clisp.org>
50612 * gnulib-tool (func_import, func_create_testdir,
50613 func_create_megatestdir): Quote all autoconf macro arguments.
50615 2005-08-24 Bruno Haible <bruno@clisp.org>
50617 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50618 option --force, because --force causes the aclocal.m4 of each
50619 subdirectory to be newer than the corresponding config.h.in.
50621 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50623 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50624 All contents moved to gl_REGEX.
50625 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50626 assume that it does.
50628 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50630 * lib/regex.h (REG_NOSYS)
50631 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50632 Define, since POSIX requires it as of 2001.
50634 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50635 New private symbol, used to keep the enum signed in all cases.
50636 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50638 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50640 * lib/regex_internal.c (re_string_skip_chars, register_state):
50642 Remove forward decls; no longer needed now that we use prototypes.
50643 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50644 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50645 (clean_state_log_if_needed): Likewise.
50647 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50649 * config/srclist.txt: Add glibc bugs 1231-1233.
50651 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50653 Fix problems reported by Sam Steingold in
50654 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50655 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50656 assumed that reg_errcode_t is a signed type, which is not
50657 necessarily true if _XOPEN_SOURCE is not defined.
50658 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50659 since some compilers warn about it otherwise.
50661 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50663 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50664 (init_word_char, create_initial_state, duplicate_node_closure):
50665 (fetch_token, peek_token_bracket, build_range_exp):
50666 (build_collating_symbol): Remove forward decls; no longer needed
50667 now that we use prototypes.
50670 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50671 (re_compile_fastmap_iter, regcomp, regerror, regfree):
50672 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50673 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50674 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50675 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50676 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50677 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50678 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50679 (build_range_exp, build_collating_symbol, parse_bracket_exp):
50680 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50681 (build_charclass, build_charclass_op, fetch_number, create_tree):
50682 (create_token_tree, mark_opt_subexp, duplicate_tree):
50683 Use prototypes rather than old-style definitions.
50685 * lib/regex_internal.c:
50686 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50687 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50688 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50689 (re_string_reconstruct, re_string_peek_byte_case):
50690 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50691 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50692 (re_node_set_init_copy, re_node_set_add_intersect):
50693 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50694 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50695 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50696 (re_acquire_state, re_acquire_state_context, register_state):
50697 (create_ci_newstate, create_cd_newstate, free_state):
50699 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50701 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50702 (re_search_internal, prune_impossible_nodes):
50703 (acquire_init_state_context, check_matching, static):
50704 (check_halt_node_context, check_halt_state_context, proceed_next_node):
50705 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50706 (update_regs, sift_states_backward, build_sifted_states):
50707 (clean_state_log_if_needed, merge_state_array):
50708 (update_cur_sifted_state, add_epsilon_src_nodes):
50709 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50710 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50711 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50712 (find_recover_state, check_subexp_matching_top, transit_state_mb):
50713 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50714 (check_arrival, check_arrival_add_next_nodes):
50715 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50716 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50717 (check_node_accept_bytes, check_node_accept, extend_buffers):
50718 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50719 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50723 * lib/regex_internal.h:
50724 (re_string_allocate, re_string_construct, re_string_reconstruct):
50725 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50726 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50727 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50728 (re_string_context_at, re_string_peek_byte_case):
50729 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50730 is defined, since we now use prototypes always.
50732 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
50733 C89 or better. All uses removed.
50735 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50737 * config/srclist.txt: Add glibc bugs 1220-1227.
50739 2005-08-20 Jim Meyering <jim@meyering.net>
50741 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50742 of unused local, dfa.
50744 2005-08-20 Bruno Haible <bruno@clisp.org>
50746 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50748 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50750 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50751 (re_node_set_insert_last, re_dfa_add_node):
50752 Rename local variables to avoid GCC shadowing warnings.
50754 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50756 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50757 [defined lint]: Suppress bogus uninitialized-variable warnings.
50759 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50760 and let the caller return REG_ESPACE if out of space. This
50761 removes an uninitialied-variable warning with GCC 4.0.1, and also
50762 avoids taking the address of a local variable. All callers
50765 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50767 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50768 $LIBCSRC/posix/regexec.c.
50769 Add glibc bug 1217 for regcomp.c.
50771 2005-08-19 Jim Meyering <jim@meyering.net>
50773 * lib/regexec.c (proceed_next_node): Redo local variables to
50774 avoid GCC shadowing warnings.
50776 2005-08-18 Bruno Haible <bruno@clisp.org>
50778 * lib/strstr.c (strstr): Fix return value in multibyte case.
50779 * lib/strcasestr.c (strcasestr): Likewise.
50781 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
50783 * lib/regex.h: Remove useless space-before-tab. From coreutils.
50785 2005-08-17 Jim Meyering <jim@meyering.net>
50787 Make the %s format (seconds since the epoch) work for a negative
50788 number and when used with a zero-padded field width, e.g. %015s.
50790 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50791 label so that it precedes the code to set `digits'. Otherwise,
50792 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
50793 print `00-22'. Now, it prints `-0022', as it should.
50795 2005-08-17 Bruno Haible <bruno@clisp.org>
50797 * modules/strstr (Files): Add m4/mbrtowc.m4.
50798 (Depends-on): Add mbuiter.
50800 2005-08-17 Bruno Haible <bruno@clisp.org>
50802 * modules/strcasestr: New file.
50803 * MODULES.html.sh (String handling, based on ANSI C 89): Add
50806 2005-08-17 Bruno Haible <bruno@clisp.org>
50808 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50810 2005-08-17 Bruno Haible <bruno@clisp.org>
50812 * modules/mbuiter: New file.
50813 * MODULES.html.sh (Extended multibyte and wide character utilities):
50816 2005-08-17 Bruno Haible <bruno@clisp.org>
50818 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50819 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50821 2005-08-17 Bruno Haible <bruno@clisp.org>
50823 * m4/strcasestr.m4: New file.
50825 2005-08-17 Bruno Haible <bruno@clisp.org>
50827 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50828 * lib/strstr.c: Completely rewritten, with multibyte locale support.
50830 2005-08-17 Bruno Haible <bruno@clisp.org>
50832 * lib/strcasestr.h: New file.
50833 * lib/strcasestr.c: New file.
50835 2005-08-17 Bruno Haible <bruno@clisp.org>
50837 * lib/strcasecmp.c: Use mbuiter.h.
50839 2005-08-17 Bruno Haible <bruno@clisp.org>
50841 * lib/mbuiter.h: New file.
50843 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
50845 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50846 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
50847 and gl_GETOPT are both invoked via different paths (as happens
50848 with GNU tar CVS because it uses both argp and getopt), the former
50851 2005-08-16 Bruno Haible <bruno@clisp.org>
50853 * modules/tls: New file.
50854 * MODULES.html.sh (Multithreading): Add tls.
50856 2005-08-16 Bruno Haible <bruno@clisp.org>
50858 * modules/strnlen1: New file.
50859 * MODULES.html.sh (String handling): Add strnlen1.
50861 2005-08-16 Bruno Haible <bruno@clisp.org>
50863 * modules/strcase (Files): Add m4/mbrtowc.m4.
50864 (Depends-on): Add strnlen1, mbchar.
50866 2005-08-16 Bruno Haible <bruno@clisp.org>
50868 * modules/mbiter: New file.
50869 * MODULES.html.sh (Extended multibyte and wide character utilities):
50872 2005-08-16 Bruno Haible <bruno@clisp.org>
50874 * modules/mbfile: New file.
50875 * MODULES.html.sh (Extended multibyte and wide character utilities):
50878 2005-08-16 Bruno Haible <bruno@clisp.org>
50880 * modules/mbchar: New file.
50881 * MODULES.html.sh (Extended multibyte and wide character utilities):
50884 2005-08-16 Bruno Haible <bruno@clisp.org>
50886 * m4/tls.m4: New file, from GNU gettext.
50888 2005-08-16 Bruno Haible <bruno@clisp.org>
50890 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50892 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50894 2005-08-16 Bruno Haible <bruno@clisp.org>
50896 * m4/mbiter.m4: New file.
50898 2005-08-16 Bruno Haible <bruno@clisp.org>
50900 * m4/mbfile.m4: New file.
50902 2005-08-16 Bruno Haible <bruno@clisp.org>
50904 * m4/mbchar.m4: New file.
50906 2005-08-16 Bruno Haible <bruno@clisp.org>
50908 * lib/tls.h: New file, from GNU gettext.
50909 * lib/tls.c: New file, from GNU gettext.
50911 2005-08-16 Bruno Haible <bruno@clisp.org>
50913 * lib/strnlen1.h: New file.
50914 * lib/strnlen1.c: New file.
50916 2005-08-16 Bruno Haible <bruno@clisp.org>
50918 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50919 (mbi_init): Update.
50920 (mbi_avail, mbi_advance): Let the iteration end before the terminating
50921 NUL byte, not after it.
50923 2005-08-16 Bruno Haible <bruno@clisp.org>
50925 * lib/strcase.h (strcasecmp): Add note in comments.
50926 * lib/strncasecmp.c: Use code from strcasecmp.c.
50927 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50928 (strcasecmp): Work correctly in multibyte locales.
50930 2005-08-16 Bruno Haible <bruno@clisp.org>
50932 * lib/mbiter.h: New file.
50934 2005-08-16 Bruno Haible <bruno@clisp.org>
50936 * lib/mbfile.h: New file.
50938 2005-08-16 Bruno Haible <bruno@clisp.org>
50940 * lib/mbchar.h: New file.
50941 * lib/mbchar.c: New file.
50943 2005-08-16 Bruno Haible <bruno@clisp.org>
50945 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50946 the valid ones. Makes the comparison operations transitive:
50947 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50948 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50950 2005-08-15 Simon Josefsson <jas@extundo.com>
50952 * modules/ssize_t (License): Change to 'unlimited'.
50954 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50956 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
50958 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50959 Add comments for each pending glibc patch.
50961 2005-08-15 Bruno Haible <bruno@clisp.org>
50963 * lib/regex.h (__restrict_arr): Don't define to __restrict if
50964 __cplusplus is defined.
50966 2005-08-14 Jim Meyering <jim@meyering.net>
50968 Sync from coreutils.
50970 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50971 Use the hash-table-based cycle-detection code not just when
50972 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50973 Reported by James Youngman in
50974 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50975 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50976 FTS_TIGHT_CYCLE_CHECK.
50977 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50978 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50980 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50981 * lib/fts.c (fd_safer): Remove decl.
50982 Include fcntl--.h rather than unistd-safer.h
50983 (fts_safe_changedir): Don't call fd_safer; no longer needed
50984 now that we include fcntl--.h.
50986 2005-08-12 Simon Josefsson <jas@extundo.com>
50988 * modules/getndelim2: Use ssize_t module.
50989 * modules/getnline: Likewise.
50990 * modules/safe-read: Likewise.
50991 * modules/xreadlink: Likewise.
50993 * modules/ssize_t: New file.
50995 2005-08-12 Simon Josefsson <jas@extundo.com>
50997 * m4/readline.m4: Look for termcap, curses or ncurses if required.
50999 2005-08-12 Simon Josefsson <jas@extundo.com>
51001 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51004 2005-08-12 Simon Josefsson <jas@extundo.com>
51006 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51007 readline, getdelim and check_version.
51008 (Support for systems lacking ISO C 99: Sizes of integer types):
51011 2005-08-12 Bruno Haible <bruno@clisp.org>
51013 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51015 2005-08-11 Simon Josefsson <jas@extundo.com>
51017 * modules/readline: New file.
51019 * modules/strnlen (Files): Add strnlen.h.
51021 2005-08-11 Simon Josefsson <jas@extundo.com>
51023 * m4/readline.m4: New file.
51025 2005-08-11 Simon Josefsson <jas@extundo.com>
51027 * lib/readline.h, readline.c: New file.
51029 2005-08-11 Simon Josefsson <jas@extundo.com>
51031 * doc/gnulib.texi (Initial import, Finishing touches): Mention
51034 2005-08-11 Bruno Haible <bruno@clisp.org>
51036 * lib/strnlen.h (strnlen): Change parameter name to match comment.
51038 2005-08-10 Stepan Kasal <kasal@ucw.cz>
51040 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51042 2005-08-10 Simon Josefsson <jas@extundo.com>
51044 * tests/test-iconvme.c: New file.
51046 2005-08-10 Simon Josefsson <jas@extundo.com>
51048 * m4/strnlen.m4: New file.
51050 * m4/strndup.m4: Don't check for strnlen declaration, done in
51053 2005-08-10 Simon Josefsson <jas@extundo.com>
51055 * lib/strndup.c: Use strnlen.h.
51057 * lib/strnlen.h: New file.
51059 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
51063 2005-08-02 Simon Josefsson <jas@extundo.com>
51065 * modules/readline: New file.
51067 2005-08-02 Simon Josefsson <jas@extundo.com>
51069 * modules/getdelim: New file.
51071 * modules/getline: Rewrite, don't use getndelim2.
51073 2005-08-02 Simon Josefsson <jas@extundo.com>
51075 * m4/getline.m4: Separate out getdelim stuff into separate module.
51077 * m4/getdelim.m4: New file.
51079 2005-08-02 Simon Josefsson <jas@extundo.com>
51081 * lib/getline.h, getline.c: Rewrite.
51083 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51085 2005-07-31 Bruno Haible <bruno@clisp.org>
51087 * lib/lock.h (gl_lock_initializer): New macro.
51088 (gl_lock_define_initialized): Use it.
51089 (gl_rwlock_initializer): New macro.
51090 (gl_rwlock_define_initialized): Use it.
51091 (gl_recursive_lock_initializer): New macro.
51092 (gl_recursive_lock_define_initialized): Use it.
51094 2005-07-30 Karl Berry <karl@gnu.org>
51096 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51097 Report from Ben Pfaff, regarding getopt.
51099 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
51101 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51103 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51104 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
51105 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51106 (gl_GETOPT): Use the new macros. Most of the implementation
51107 is moved to the new macros. This is for programs like Emacs
51108 that don't want all the functionality of gl_GETOPT.
51110 2005-07-26 Bruno Haible <bruno@clisp.org>
51112 * m4/lock.m4: Update from GNU gettext.
51114 2005-07-26 Bruno Haible <bruno@clisp.org>
51116 * lib/lock.h: Update from GNU gettext.
51117 * lib/lock.c: Update from GNU gettext.
51119 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
51121 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51122 obsolescent AC_TRY_RUN. Include the default includes files, for
51125 2005-07-24 Bruno Haible <bruno@clisp.org>
51127 * modules/visibility: New file.
51128 * MODULES.html.sh (Misc): Add visibility.
51130 2005-07-24 Bruno Haible <bruno@clisp.org>
51132 * m4/visibility.m4: New file.
51134 2005-07-24 Bruno Haible <bruno@clisp.org>
51136 * doc/visibility.texi: New file.
51138 2005-07-22 Bruno Haible <bruno@clisp.org>
51140 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51141 $(ALLOCA_H), redundant through BUILT_SOURCES.
51142 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51143 redundant through BUILT_SOURCES.
51144 * modules/byteswap (Makefile.am): Remove explicit dependency on
51145 $(BYTESWAP_H), redundant through BUILT_SOURCES.
51146 * modules/fnmatch (Makefile.am): Remove explicit dependency on
51147 $(FNMATCH_H), redundant through BUILT_SOURCES.
51148 * modules/getopt (Makefile.am): Remove explicit dependency on
51149 $(GETOPT_H), redundant through BUILT_SOURCES.
51150 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51151 redundant through BUILT_SOURCES.
51152 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51153 redundant through BUILT_SOURCES.
51154 * modules/stdbool (Makefile.am): Remove explicit dependency on
51155 $(STDBOOL_H), redundant through BUILT_SOURCES.
51156 * modules/stdint (Makefile.am): Remove explicit dependency on
51157 $(STDINT_H), redundant through BUILT_SOURCES.
51158 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51159 Remove explicit dependency on $(SYSEXITS_H).
51160 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51162 2005-07-18 Simon Josefsson <jas@extundo.com>
51164 * lib/check-version.c (check_version): Accept identical versions too.
51166 2005-07-18 Bruno Haible <bruno@clisp.org>
51168 * modules/lock: New file.
51169 * MODULES.html.sh (Multithreading): New section.
51171 2005-07-18 Bruno Haible <bruno@clisp.org>
51173 * m4/lock.m4: New file, from GNU gettext.
51175 2005-07-18 Bruno Haible <bruno@clisp.org>
51177 * lib/lock.h: New file, from GNU gettext.
51178 * lib/lock.c: New file, from GNU gettext.
51180 2005-07-18 Bruno Haible <bruno@clisp.org>
51182 * lib/lock.h (gl_once_t): New type.
51183 (gl_once_define, gl_once): New macros.
51184 * lib/lock.c (fresh_once): New variable.
51185 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51188 2005-07-16 Simon Josefsson <jas@extundo.com>
51190 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51191 workaround, suggested by Bruno.
51193 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
51195 * modules/xalloc (Depends-on): Add xalloc-die.
51196 * modules/xvasprintf (Depends-on): Add xalloc-die.
51198 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
51200 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51201 with a minor change.
51203 2005-07-15 Bruno Haible <bruno@clisp.org>
51205 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51206 When using lib/poll.c, define poll as rpl_poll.
51208 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
51210 * modules/argp (Depends-on): Remove unlocked-io.
51212 2005-07-14 Derek Price <derek@ximbiot.com>
51214 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
51215 for glob symlink bug.
51217 2005-07-14 Bruno Haible <bruno@clisp.org>
51219 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51220 Instead, test for *_unlocked function declarations directly.
51222 2005-07-11 Simon Josefsson <jas@extundo.com>
51224 * modules/size_max: New file.
51226 * modules/xsize: Depend on size_max module for size_max.m4.
51228 2005-07-11 Simon Josefsson <jas@extundo.com>
51230 * lib/size_max.h: New file.
51232 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
51234 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51235 copyright symbol and the year.
51236 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51237 (version_etc_va): Use parameterized copyright notice.
51238 Reword to conform to the current GNU coding standards.
51240 2005-07-11 Karl Berry <karl@gnu.org>
51242 * doc/gnulib.texi (Quoting): new node.
51243 (Initial import): more info, from Patrice.
51245 2005-07-11 Bruno Haible <bruno@clisp.org>
51247 * gnulib-tool (func_usage): Document option --avoid.
51248 (Command line options): Handle --avoid.
51249 (func_acceptable): New function.
51250 (func_modules_transitive_closure): Use it.
51252 2005-07-11 Bruno Haible <bruno@clisp.org>
51254 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51255 Reported by Jim Meyering.
51257 2005-07-10 Bruno Haible <bruno@clisp.org>
51259 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51260 Needed when size_t is smaller than 'unsigned int'.
51261 Reported by Paul Eggert.
51263 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
51265 * modules/argp (Depends-on): Add unlocked-io
51267 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
51269 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51272 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
51274 * config/srclist.txt: Comment out regcomp.c, since we have a porting
51277 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
51278 and Paul Eggert <eggert@cs.ucla.edu>
51280 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51281 in wint_t, not wchar_t. Remove now-unnecessary cast.
51283 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51285 * modules/regex (Files): Add lib/regex_internal.c,
51286 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51287 (Depends-on): Add extensions.
51288 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51290 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51292 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51294 * m4/same.m4 (gl_SAME): Likewise.
51295 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51297 * m4/regex.m4: Adjust to new libc regex implementation.
51298 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51299 all the .c and .h parts of (the new) regex.
51300 Quote the m4 stuff better.
51301 Check for RE_ICASE bug of old gnulib.
51302 Check for REG_STARTEND of recent libc.
51303 Rename local variables from jm_* to gl_*.
51304 Quote operand of "test -f".
51305 Say "recent enough" version of libc, not "version 2".
51306 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51307 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
51308 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51309 Remove check for btowc, isascii.
51310 Require AM_LANGINFO_CODESET.
51312 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51314 * lib/regex.c, regex.h: Sync from libc.
51315 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51317 New files, synced from libc, except that regex_internal.h
51318 currently has a small porting fix.
51320 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51322 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51323 regex_internal.c, regexec.c.
51324 Add regex_internal.h too, but as a comment, since the libc version
51325 is currently broken in gnulib mode.
51327 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
51329 Support programs like Emacs that use gnulib but not gettext.
51330 * MODULES.html.sh (Internationalization functions): Add gettext-h.
51331 * modules/gettext-h: New file.
51332 * modules/gettext (Files): Remove lib/gettext.h.
51333 (Depends-on): Add gettext-h.
51334 (Makefile.am): Remove lib_SOURCES.
51335 * modules/argmatch, modules/c-stack, modules/closeout:
51336 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51337 * modules/execute, modules/file-type, modules/getaddrinfo:
51338 * modules/getopt, modules/human, modules/javacomp:
51339 * modules/javaexec, modules/mkdir-p, modules/obstack:
51340 * modules/openat, modules/pagealign_alloc, modules/pipe:
51341 * modules/quotearg, modules/regex, modules/rpmatch:
51342 * modules/unicodeio, modules/userspec, modules/version-etc:
51343 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51345 Depend on gettext-h, not gettext.
51347 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
51349 * gnulib-tool (func_import): Add support for 'public domain' license.
51350 * modules/alloca, modules/atexit, modules/memmove:
51351 Now public domain, not GPL.
51352 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51353 * modules/realloc, modules/strerror, modules/strtod:
51356 2005-07-05 Bruno Haible <bruno@clisp.org>
51358 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51359 autoconf CVS. Needed for mingw.
51361 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51363 Remove the dependency of the strftime module on the tzset module.
51364 * modules/strftime (Depends-on): Remove dependency on tzset.
51366 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51368 Remove the dependency of the strftime module on the tzset module.
51369 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51370 gl_FUNC_TZSET_CLOBBER.
51372 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51374 Remove the dependency of the strftime module on the tzset module.
51375 * lib/strftime.c (my_strftime)
51376 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51377 Copy the input structure, to work around some of the bug with
51378 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
51379 Solaris releases, you should also use the tzset module, but we won't
51380 require it as a dependency any more since we don't want LGPLed code
51381 to depend on GPLed code.
51383 2005-07-02 Jim Meyering <jim@meyering.net>
51385 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51386 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51387 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51388 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51390 2005-07-02 Jim Meyering <jim@meyering.net>
51392 * lib/backupfile.c (backup_args): Change a `0' to NULL.
51394 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
51396 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51397 declares only 'struct timespec;' (!).
51399 2005-07-01 Jim Meyering <jim@meyering.net>
51401 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51402 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51403 * lib/save-cwd.c, tempname.c:
51404 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51405 and don't include <sys/file.h>).
51407 2005-06-29 Jim Meyering <jim@meyering.net>
51409 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51410 type name. Use the variable name instead.
51411 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51414 2005-06-28 Simon Josefsson <jas@extundo.com>
51416 * modules/check-version (Files): Add check-version.m4.
51418 2005-06-28 Simon Josefsson <jas@extundo.com>
51420 * m4/check-version.m4: New file, suggested by Jim Meyering
51421 <jim@meyering.net>.
51423 2005-06-28 Simon Josefsson <jas@extundo.com>
51425 * lib/check-version.h, lib/check-version.c: New files.
51427 2005-06-28 Simon Josefsson <jas@extundo.com>
51429 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
51430 collision with global variable. Better indentation. Don't
51431 increment buffer pointer beyond buffer end. Based on comments
51432 from Paul Eggert <eggert@cs.ucla.edu>.
51434 * lib/base64.h: Indent.
51436 2005-06-28 Simon Josefsson <jas@extundo.com>
51438 * doc/gnulib.texi (Library version handling): New section.
51440 2005-06-28 Jim Meyering <jim@meyering.net>
51442 * check-module (find_included_lib_files): Hard-code another
51443 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51444 but modules/fts-lgpl (correctly) does not list those files.
51446 * modules/canonicalize (Files): Add lib/pathmax.h.
51448 2005-06-25 Simon Josefsson <jas@extundo.com>
51450 * modules/check-version: New file.
51452 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
51454 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51455 initializer of struct addrinfo, as an indication that we don't
51456 care how many members the structure has.
51458 2005-06-24 Derek Price <derek@ximbiot.com>
51459 and Bruno Haible <bruno@clisp.org>
51461 Remove stat module & update lstat.
51462 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51463 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51464 * m4/stat.m4: Remove this file.
51466 2005-06-24 Derek Price <derek@ximbiot.com>
51467 and Bruno Haible <bruno@clisp.org>
51469 Remove stat module & update lstat.
51470 * lib/stat.c: Remove this file...
51471 (slash_aware_lstat): ...moving this content and its support...
51472 * lib/lstat.c (rpl_lstat): ...into here.
51473 * lib/lstat.h: New file.
51475 2005-06-24 Derek Price <derek@ximbiot.com>
51476 and Bruno Haible <bruno@clisp.org>
51478 Remove stat module & update lstat.
51479 * config/srclist.txt (libc sources): Remove stat.
51481 2005-06-24 Derek Price <derek@ximbiot.com>
51482 and Bruno Haible <bruno@clisp.org>
51484 Remove stat module & update lstat.
51485 * MODULES.html.sh (stat): Remove.
51486 * MODULES.html: Regenerated.
51487 * modules/lstat (Description): Correct function name.
51488 (Files): Add "lstat.h".
51489 (Depends-on): Remove stat, add xalloc, stat-macros.
51490 * modules/stat: Remove this file.
51491 (Include): Add "lstat.h", remove <sys/stat.h>.
51493 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
51495 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
51496 (ranged_convert): Don't save conversion in a temporary struct.
51497 This causes a warning with GCC 4.0.0, and anyway in the typical
51498 case it's not worth the extra 100 bytes or so of code.
51499 (ranged_convert, __mktime_internal): When calling a function via a
51500 pointer P, use P () rather than (*P) (), as we now assume C89 or
51503 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
51505 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51506 "who -r" failed to give output. Problem reported by Tim Waugh.
51508 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51509 (xcalloc): Use it to avoid needless tests.
51510 Problem reported by Jim Meyering.
51512 2005-06-20 Derek Price <derek@ximbiot.com>
51514 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51515 unnecessary for Autoconfs > 2.59c.
51517 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51519 * lib/argp.h (__option_is_short): Check upper limit of
51520 __key. Isprint() requires its argument to have the value
51521 of an unsigned char or EOF.
51523 2005-06-16 Jim Meyering <jim@meyering.net>
51525 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51526 when either N or S is zero.
51528 2005-06-16 Derek Price <derek@ximbiot.com>
51530 * m4/bison.m4: Declare YACC & YFLAGS precious.
51532 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
51534 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51535 multibyte string or pattern, fall back on unibyte matching.
51536 Problem reported by James Youngman.
51538 2005-06-08 Bruno Haible <bruno@clisp.org>
51540 * modules/csharpcomp: New file.
51541 * MODULES.html.sh (C#): Add csharpcomp.
51543 2005-06-08 Bruno Haible <bruno@clisp.org>
51545 * m4/csharpcomp.m4: New file, from GNU gettext.
51547 2005-06-08 Bruno Haible <bruno@clisp.org>
51549 * lib/csharpcomp.h: New file, from GNU gettext.
51550 * lib/csharpcomp.c: New file, from GNU gettext.
51551 * lib/csharpcomp.sh.in: New file, from GNU gettext.
51553 2005-06-08 Bruno Haible <bruno@clisp.org>
51555 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51558 2005-06-07 Derek Price <derek@ximbiot.com>
51561 * lib/glob_.h: Indent nested #ifdef.
51563 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51565 Sync from coreutils.
51566 Use "file name" when talking about file names, instead of "filename"
51567 or "path", as per the GNU coding standards.
51568 * lib/mkdir-p.c: Renamed from makepath.c.
51569 (make_dir_parents): Renamed from make_path. All callers changed.
51570 * lib/mkdir-p.h: Likewise. All includers changed.
51571 * lib/filenamecat.c: Renamed from path-concat.c.
51572 (file_name_concat): Renamed from path_concat. All callers changed.
51573 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51574 * lib/filenamecat.h: Likewise. All includers changed.
51575 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51576 in comments or local variable names.
51577 * lib/basename.c: Likewise.
51578 * lib/canonicalize.c, canonicalize.h: Likewise.
51579 * lib/dirname.c, dirname.h: Likewise.
51580 * lib/euidaccess.c: Likewise.
51581 * lib/exclude.c: Likewise
51582 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51583 * lib/fsusage.c, fsuage.h: Likewise.
51584 * lib/fts.c, fts_.h: Likewise.
51585 * lib/getcwd.c: Likewise.
51586 * lib/getloadavg.c: Likewise.
51587 * lib/mkstemp.c: Likewise.
51588 * lib/mountlist.c, mountlist.h: Likewise.
51589 * lib/openat.c, openat.h: Likewise.
51590 * lib/readlink-stub.c: Likewise.
51591 * lib/readutmp.c, readutmp.h: Likewise.
51592 * lib/rename.c: Likewise.
51593 * lib/rmdir.c: Likewise.
51594 * lib/same.c: Likewise.
51595 * lib/savedir.c: Likewise.
51596 * lib/stripslash.c: Likewise.
51597 * lib/tempname.c: Likewise.
51598 * lib/xreadlink.c: Likewise.
51599 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51601 * lib/exclude.h: Likewise.
51603 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51604 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51605 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51606 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51607 * lib/pathmax.h: Include <limits.h> unconditionally, since other
51608 files have been getting away with it for years (MORE/BSD 4.3
51610 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51611 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51613 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51614 Define to 256, not 255, as per modern POSIX.
51616 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51618 Sync from coreutils.
51619 Use "file name" when talking about file names, instead of "filename"
51620 or "path", as per the GNU coding standards.
51621 * MODULES.html.sh: mkdir-p renamed from makepath.
51622 filenamecat renamed from path-concat.
51623 * modules/filenamecat: Renamed from modules/path-concat.
51624 (Files): filenamecat.h and filenamecat.c renamed from
51625 path-concat.h and path-concat.c.
51626 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51627 (Include): filenamecat.h, not path-concat.h.
51628 * modules/mkdir-p: Renamed from modules/makepath.
51629 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51631 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51632 (Include): mkdir-p.h, not makepath.h.
51634 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51636 Sync from coreutils.
51637 * m4/mkdir-p.m4: Renamed from makepath.m4.
51638 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
51639 Rename files from makepath.c to mkdir-p.c, and from
51640 makepath.h to mkdir-p.h.
51641 * m4/filenamecat.m4: Renamed from path-concat.m4.
51642 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
51643 Rename files from path-concat.c to filenamecat.c,
51644 and from path-concat.h to filenamecat.h.
51645 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51646 "file name" in local variables or comments.
51647 * m4/rename.m4: Likewise.
51649 2005-06-01 Bruno Haible <bruno@clisp.org>
51651 * modules/csharpexec: New file.
51652 * MODULES.html.sh (C#): New section.
51654 2005-06-01 Bruno Haible <bruno@clisp.org>
51656 * m4/csharp.m4: New file, from GNU gettext.
51657 * m4/csharpexec.m4: New file, from GNU gettext.
51659 2005-06-01 Bruno Haible <bruno@clisp.org>
51661 * lib/csharpexec.h: New file, from GNU gettext.
51662 * lib/csharpexec.c: New file, from GNU gettext.
51663 * lib/csharpexec.sh.in: New file, from GNU gettext.
51665 2005-05-31 Derek Price <derek@ximbiot.com>
51666 Paul Eggert <eggert@cs.ucla.edu>
51669 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51671 2005-05-31 Derek Price <derek@ximbiot.com>
51672 Paul Eggert <eggert@cs.ucla.edu>
51675 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51677 2005-05-29 Derek Price <derek@ximbiot.com>
51679 * config/srclist.txt (glob_.h, glob.c): Add these files.
51681 2005-05-29 Derek Price <derek@ximbiot.com>
51683 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51684 * modules/glob: New file.
51685 * modules/getlogin_r: Add link to POSIX spec in description.
51687 2005-05-29 Derek Price <derek@ximbiot.com>
51688 Paul Eggert <eggert@cs.ucla.edu>
51690 * m4/glob.m4: New file.
51692 2005-05-29 Derek Price <derek@ximbiot.com>
51693 Paul Eggert <eggert@cs.ucla.edu>
51695 * lib/glob_.h, lib/glob.c: New files.
51697 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51699 * modules/fts (Files): Remove m4/inttypes-pri.m4.
51700 * modules/fts-lgpl (Depends-on): Remove gettext.
51702 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51704 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51705 and don't require gt_INTTYPES_PRI.
51707 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51709 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51711 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51712 the configuration hassle isn't worth it.
51713 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51714 (LONGEST_MODIFIER, PRIuMAX): Remove.
51716 2005-05-27 Bruno Haible <bruno@clisp.org>
51718 * lib/getlogin_r.h: Remove second include of <stddef.h>.
51720 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
51722 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51723 _POSIX_PTHREAD_SEMANTICS for Solaris.
51725 2005-05-25 Derek Price <derek@ximbiot.com>
51727 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51729 2005-05-25 Derek Price <derek@ximbiot.com>
51730 Paul Eggert <eggert@cs.ucla.edu>
51732 * modules/getlogin_r, m4/getlogin_r.m4: New files.
51733 * lib/getlogin_r.c, getlogin_r.h: New files.
51735 2005-05-25 Bruno Haible <bruno@clisp.org>
51736 Derek Price <derek@ximbiot.com>
51738 * lib/getlogin_r.h: Simplify API documentation.
51740 2005-05-23 Derek Price <derek@ximbiot.com>
51742 * modules/minmax (Files): Add m4/minmax.m4.
51743 (configure.ac): Add gl_MINMAX.
51745 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
51747 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51748 so that unistd-safer.h (GPL'ed code) need not be included.
51750 2005-05-22 Bruno Haible <bruno@clisp.org>
51752 * m4/minmax.m4: New file.
51753 Based on a patch by Derek Price <derek@ximbiot.com>.
51755 2005-05-22 Bruno Haible <bruno@clisp.org>
51757 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51758 (INT64_MIN): Fix definition.
51759 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51761 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51762 NEED_SIGNED_INT_TYPES.
51764 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51765 HAVE_SYSTEM_INTTYPES.
51767 2005-05-22 Bruno Haible <bruno@clisp.org>
51769 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51770 Also include <sys/param.h> if it defines MIN, MAX.
51771 Based on a patch by Derek Price <derek@ximbiot.com>.
51773 2005-05-21 Jim Meyering <jim@meyering.net>
51775 * modules/fts (Files): Add m4/inttypes-pri.m4.
51776 (Depends-on): Add lstat and remove gettext. Alphabetize.
51778 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51781 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51782 (setup_dir, free_dir): New functions.
51783 (enter_dir, leave_dir): Define trivial
51784 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
51785 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
51786 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51787 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51788 Move to fts-cycle.c.
51789 (fts_open): Use setup_dir.
51790 (fts_close): Use free_dir.
51791 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51792 This adds a label and some gotos, but the alternatives were messier.
51793 Check for memory allocation failure when entering a dir.
51794 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51795 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51796 (FTS): New member fts_cycle, that is a union that contains the
51797 old active_dir_ht and cycle_state. All uses changed to mention
51798 fts_cycle.ht and fts_cycle.state.
51799 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51800 fts.c, with the following changes:
51801 (setup_dir, free_dir): New functions.
51802 (enter_dir): Now returns bool. Return true if successful, false
51803 if memory exhausted. All callers changed.
51804 Do not bother partly cleaning up on
51805 memory allocation failure; that is free_dir's job.
51806 However, free ad if hash_insert fails, to avoid memory leak.
51807 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51808 fts->fts_options to see which union member to use.
51810 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51812 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51813 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51815 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51817 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51819 2005-05-20 Jim Meyering <jim@meyering.net>
51821 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51822 Now a macro, to pacify GCC.
51824 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51826 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51829 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51831 * lib/chown.c (rpl_chown): Return -1 on failure.
51833 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51835 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51836 Don't check for stddef.h.
51837 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51838 don't use its results.
51839 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51840 since we include them unconditionally. Don't require
51841 AM_STDBOOL_H, since stdbool is a prerequisite.
51842 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51843 since we assume C89 or better.
51844 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51845 as we don't use their results.
51846 Don't check for fchdir, memmove, memset, strrchr, as we use
51847 them unconditionally.
51848 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51849 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51851 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51853 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51854 Include <stddef.h> unconditionally, since we assume C89 now.
51855 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51856 * lib/fts.c: Include fts_.h first, to check interface.
51857 Do not include intprops.h; no longer needed.
51858 Include cycle-check.h and hash.h, since fts_.h no longer does.
51859 Remove unnecessary casts of closedir to void.
51860 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51861 decide whether to decrement nlinks.
51862 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51863 (FTS): Use struct hash_table * instead of Hash_table, so that
51864 we no longer need to include hash.h here.
51866 2005-05-18 Jim Meyering <jim@meyering.net>
51868 * modules/dirfd (License): Change to LGPL. Most of the code
51869 is already in the public domain.
51871 2005-05-18 Jim Meyering <jim@meyering.net>
51873 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51874 Reported by Yoann Vandoorselaere.
51876 2005-05-17 Jim Meyering <jim@meyering.net>
51878 * m4/fts.m4: New file, from coreutils.
51880 2005-05-17 Jim Meyering <jim@meyering.net>
51882 * lib/fts.c, lib/fts_.h: New files, from coreutils.
51884 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51886 Sync from coreutils.
51887 * m4/unlinkdir.m4: New file.
51889 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51891 Sync from coreutils.
51892 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51893 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51894 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51895 White space changes only.
51896 * lib/makepath.c (make_path): Port to hosts where leading "//" is
51898 * lib/yesno.c: Include getline.h, not ctype.h.
51899 (yesno): Don't remove leading white space; POSIX doesn't allow it.
51900 Use getline to remove arbitrary restriction on response length.
51902 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51904 * config/srclist-update: Spell out "Street" in FSF postal
51905 mail address; this is the style the FSF seems to prefer.
51907 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51908 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51909 this updates FSF postal mail address.
51911 Sync from coreutils.
51912 * modules/unlinkdir: New file.
51913 * modules/yesno (Depends-on): Add getline.
51914 * MODULES.html.sh (File system functions): Add unlinkdir.
51916 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51918 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51920 Change the initial comment to refer to GPL, not LGPL.
51921 gnulib-tool will change it to LGPL as needed.
51923 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51924 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51925 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51926 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51927 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51928 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51929 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51930 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51931 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51932 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51933 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51934 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51935 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51936 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51937 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51938 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51939 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51940 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51941 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51942 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51943 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51944 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51945 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51946 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51947 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51948 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51949 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51950 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51951 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51952 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51953 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51954 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51955 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51956 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51957 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51958 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51959 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51960 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51961 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51962 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51963 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51964 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51965 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51966 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51967 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51968 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51969 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51970 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51971 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51972 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51973 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51974 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51975 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51976 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51977 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51978 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51979 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51980 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51981 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51982 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51983 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51984 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51985 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51986 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51987 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51988 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51989 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51990 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51991 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51992 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51993 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51994 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51995 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51996 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51997 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51998 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51999 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52000 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52001 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52002 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52003 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52004 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52005 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52006 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52007 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52008 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52009 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52010 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52011 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52012 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52013 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52014 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52015 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52016 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52017 lib/yesno.c, lib/yesno.h:
52018 Update FSF postal mail address.
52020 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
52022 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52023 tests/test-memmem.c, tests/test-stpncpy.c:
52024 Update FSF postal mail address.
52026 2005-05-13 Bruno Haible <bruno@clisp.org>
52028 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52029 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52030 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52031 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52032 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52033 Add support for 64-bit integers in the MSVC compiler.
52035 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52037 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52039 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
52041 * gnulib-tool (func_import): Sort and uniquify recommended includes.
52043 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
52045 * doc/getdate.texi (General date syntax): Don't say that date
52046 date --iso-8601=ns generates acceptable dates; it doesn't yet.
52047 Problem reported by Nic Ferrier.
52049 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52051 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52052 specified in ai_socktype. Fix invalid ai_protocol
52053 check. ai_protocol is usually set to 0 or depending on
52054 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
52055 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
52056 ai_socktype / ai_protocol in the returned addrinfo structure.
52058 2005-05-10 Simon Josefsson <jas@extundo.com>
52060 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52061 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52063 2005-05-10 Karl Berry <karl@gnu.org>
52065 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52066 (from http://www.gnu.org/licenses).
52067 * doc/COPYING.LIB: also rename to COPYING.LESSER.
52068 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52071 2005-05-10 Karl Berry <karl@gnu.org>
52073 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52074 (COPYING.DOC): remove.
52076 * config/srclist-update: new FSF address.
52078 2005-05-10 Derek Price <derek@ximbiot.com>
52080 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52083 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52084 Bruno Haible <bruno@clisp.org>
52086 * modules/inet_ntop: New file.
52087 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52090 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52091 Bruno Haible <bruno@clisp.org>
52093 * m4/inet_ntop.m4: New file.
52095 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52096 Bruno Haible <bruno@clisp.org>
52098 * lib/inet_ntop.h: New file.
52099 * lib/inet_ntop.c: New file, from glibc with modifications.
52101 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
52103 * modules/time_r (License): Change to LGPL.
52104 * modules/extensions (License): Change to LGPL. Actually,
52105 the license is more permissive than that, but currently gnulib-tool
52106 doesn't know how to handle more-permissive licenses.
52108 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52109 Problem reported by Dave Love.
52111 2005-05-08 Jim Meyering <jim@meyering.net>
52113 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52116 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
52118 * modules/argmatch (Depends-on): Add stdbool.
52119 * modules/backupfile (Depends-on): Likewise.
52120 * modules/chdir-long (Depends-on): Likewise.
52121 * modules/closeout (Depends-on): Likewise.
52122 * modules/cycle-check (Depends-on): Likewise.
52123 * modules/dirname (Depends-on): Likewise.
52124 * modules/fnmatch (Depends-on): Likewise.
52125 * modules/fsusage (Depends-on): Likewise.
52126 * modules/fwriteerror (Depends-on): Likewise.
52127 * modules/getcwd (Depends-on): Likewise.
52128 * modules/getloadavg (Depends-on): Likewise.
52129 * modules/hard-locale (Depends-on): Likewise.
52130 * modules/makepath (Depends-on): Likewise.
52131 * modules/mountlist (Depends-on): Likewise.
52132 * modules/nanosleep (Depends-on): Likewise.
52133 * modules/posixtm (Depends-on): Likewise.
52134 * modules/quotearg (Depends-on): Likewise.
52135 * modules/readtokens (Depends-on): Likewise.
52136 * modules/readtokens0 (Depends-on): Likewise.
52137 * modules/readutmp (Depends-on): Likewise.
52138 * modules/save-cwd (Depends-on): Likewise.
52139 * modules/strftime (Depends-on): Likewise.
52140 * modules/userspec (Depends-on): Likewise.
52141 * modules/utimecmp (Depends-on): Likewise.
52142 * modules/xgetcwd (Depends-on): Likewise.
52143 * modules/xnanosleep (Depends-on): Likewise.
52144 * modules/xstrtod (Depends-on): Likewise.
52145 * modules/yesno (Depends-on): Likewise.
52147 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
52149 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52152 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52154 Merge from coreutils. Among other things,
52155 add bulletproofing for cases where stdin, stdout, or stderr are closed.
52156 * lib/fd-safer.c: New file.
52157 * lib/fcntl-safer.h, open-safer.c: Remove.
52158 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52159 * lib/dup-safer.c: Include unistd-safer.h first.
52160 Don't include errno.h.
52161 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52162 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52163 * lib/file-type.c: Rely on file-type.h change.
52164 * lib/getloadavg.c: Include unistd-safer.h.
52165 (getloadavg): Use safer open.
52166 * lib/getusershell.c: Include "stdio-safer.h".
52167 (getusershell): Use safer fopen.
52168 * lib/long-options.c (long_options): Use NULL rather than 0.
52169 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52171 * lib/modechange.c: Likewise.
52172 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52173 (MODE_DONE): New constant.
52174 (struct mode_change): Remove 'next' member.
52175 (make_node_op_equals): New function; like the old one of the
52176 same name, except it allocates an array.
52177 (mode_compile, mode_create_from_ref): Use it.
52178 (mode_compile): Allocate result as an array, not a linked list.
52179 Parse octal string ourself, so that we catch mistakes like "+0".
52180 (mode_adjust): Arg is an array, not a linked list.
52181 * lib/modechange.c: Include stat-macros.h, xalloc.h.
52182 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52183 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52184 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52185 Remove. This is now stat-macros.h's job.
52186 (talloc): Remove. All callers replaced by xalloc, so that
52187 our invokers don't have to worry about reporting memory failures.
52188 (make_node_op_equals): Remove.
52189 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52191 (struct mode_change): Moved here from modechange.h.
52192 (mode_append_entry): Remove.
52193 (mode_compile): Remove MASKED_OPS arg, since it encouraged
52194 apps to have incorrect behavior. Use simpler algorithm for head
52195 and tail. Don't futz with umask; that's now the job of mode_adjust.
52196 Detect more invalid usages rather than having somewhat-random behavior.
52197 Don't insert an "a=" action, as that leads to incorrect behavior.
52198 (mode_compile, mode_create_from_ref): Return NULL on error instead
52199 of an enum, since now there's only one way to have an error. All
52201 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52202 at the correct time. Simplify calculation of "+u" and its ilk.
52203 Don't mishandle "+X".
52204 (mode_free): Remove "register" and localize decls.
52205 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52206 (struct mode_change): Move to modechange.c; callers don't
52207 need to see this stuff.
52208 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52209 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52210 (mode_change, mode_adjust): Reflect the new signatures noted above.
52211 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52212 that might redefine system include files.
52213 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52214 (my_usleep): Use NULL rather than (void *) 0.
52215 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52216 Use siginterrupt to specify that system calls should be interrupted.
52217 (rpl_nanosleep): Move initialization of suspended closer to call of
52219 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
52220 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
52221 (desirable_utmp_entry): New function.
52222 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52223 using x2nrealloc, to simplify logic.
52224 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52225 size calculation. Do not assume utmp file is a regular file.
52226 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52227 (READ_UTMP_CHECK_PIDS): New constant.
52228 * lib/save-cwd.c: Include unistd-safer.h.
52229 (save_cwd): Use fd_safer.
52230 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52231 [!_LIBC] Include "stat-macros.h" instead.
52232 * lib/unistd-safer.h (fd_safer): New decl.
52234 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52236 * modules/getloadavg (Depends-on): Add unistd-safer.
52237 * modules/getusershell (Depends-on): Add stdio-safer.
52238 * modules/lstat (Depends-on): Remove xalloc.
52239 * modules/mkstemp (Depends-on): Add stat-macros.
52240 * modules/modechange (Depends-on): Remove xstrtol.
52241 Add stat-macros, xalloc.
52242 * modules/save-cwd (Depends-on): Add unistd-safer.
52243 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52244 * modules/unistd-safer (Files): Add lib/fd-safer.c
52245 (Makefile.am): Remove lib_SOURCES.
52247 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52248 Remove fcntl-safer; unistd-safer supersedes it.
52250 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52252 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52254 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52255 (gl_PREREQ_CHOWN): Remove.
52256 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52257 it. Don't require AC_HEADER_STAT.
52258 (gl_PREREQ_LSTAT): Remove.
52259 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52260 Don't require AC_HEADER_STAT.
52261 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52262 (gl_PREREQ_RMDIR): Remove.
52263 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52264 mention stat-macros.h or AC_HEADER_STAT, since we'll make
52265 the stat-macros module a prerequisite.
52266 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52267 * m4/filemode.m4 (gl_FILEMODE): Likewise.
52268 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52269 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52270 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52272 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52273 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
52275 * m4/fcntl-safer.m4: Remove.
52276 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52277 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52278 Invoke gl_PREREQ_FD_SAFER.
52279 (gl_PREREQ_FD_SAFER): New macro.
52280 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52281 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52282 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52283 Remove duplicate call to AC_LIBOBJ(readutmp).
52284 (gl_PREREQ_READUTMP): Remove. All uses inlined.
52286 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52287 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
52289 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52291 * MODULES.html.sh (Misc): Add byteswap.
52293 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52295 * modules/getcwd (Depends-on): Add extensions.
52296 * modules/openat (Depends-on): Likewise.
52298 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52300 * modules/byteswap: New file.
52302 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52304 * m4/byteswap.m4: New file.
52306 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52308 * lib/byteswap_.h: New file.
52310 2005-04-25 Karl Berry <karl@gnu.org>
52312 * m4/gettext.m4: Update from GNU gettext 0.14.4.
52314 2005-04-25 Albert Chin <china@thewrittenword.com>
52316 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52319 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
52321 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52322 (func_ln_if_changed) Remove forcibly for no error message
52323 in case file does not exist.
52325 2005-04-19 Simon Josefsson <jas@extundo.com>
52327 * gnulib-tool (Options): Make --symlink mean --symbolic.
52329 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
52331 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
52333 2005-04-16 Simon Josefsson <jas@extundo.com>
52335 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52337 2005-04-15 Simon Josefsson <jas@extundo.com>
52339 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52341 2005-04-15 Simon Josefsson <jas@extundo.com>
52343 * gnulib-tool: Rename --symlink to --symbolic.
52345 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
52347 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52348 symbolic links to files instead of copying/moving. Add --aux-dir,
52349 specifying directory relative --dir where auxiliary build tools
52352 2005-04-14 Bruno Haible <bruno@clisp.org>
52354 * modules/allocsa (License): Change to LGPL.
52355 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52357 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
52359 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52360 that "UTC +1 second" continues to work. Problem reported
52361 by Dmitry V. Levin.
52362 (relunit_snumber): New rule.
52365 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
52367 * lib/getdate.y (universal_time_zone_table): New constant.
52368 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52369 universal_time_zone_table.
52370 (lookup_zone): Prefer universal_time_zone_table to
52371 local_time_zone_table, so that "GMT" time stamps are allowed in
52372 London during the summer. Problem reported by Ian Abbott.
52374 2005-04-12 Jim Meyering <jim@meyering.net>
52376 * lib/human.c (humblock): Set *options even when returning due to
52377 xstrtoumax conversion failure. Thanks to a used-uninitialized
52378 warning from gcc-4.
52380 2005-04-09 Jim Meyering <jim@meyering.net>
52382 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52383 -Wuninitialized: initialize tm0.tm_year.
52385 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
52387 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52388 count, since there's no maximum. All uses changed.
52389 Add member dsts_seen.
52390 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52392 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52393 Use pc_rels_seen to decide whther a date is absolute.
52395 * lib/getdate.y (number): Don't overwrite year.
52396 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52399 2005-04-02 Simon Josefsson <jas@extundo.com>
52401 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52402 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52404 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
52406 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52407 where no absolute path name can be longer than PATH_MAX.
52409 2005-03-27 Jim Meyering <jim@meyering.net>
52411 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52413 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
52415 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52416 "one's complement" -> "ones' complement" in comment, as per Knuth.
52417 "value of type" -> "type or expression" in comment.
52418 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52420 2005-03-26 Jim Meyering <jim@meyering.net>
52423 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52424 Correct typos: s/or/of/.
52426 2005-03-26 Jim Meyering <jim@meyering.net>
52428 * modules/check-include-files: Move to ../ and rename to...
52429 * check-module: ...this.
52431 2005-03-25 Jim Meyering <jim@meyering.net>
52433 * modules/xvasprintf (Files): Add xalloc.h.
52435 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
52437 * modules/gettext (Files): config/config.rpath ->
52438 build-aux/config.rpath
52439 * modules/iconv (Files): Likewise.
52440 Problem reported by Oskar Liljeblad.
52442 2005-03-23 Jim Meyering <jim@meyering.net>
52444 * modules/check-include-files: New script to check for
52445 missing dependencies, multiple includes, etc.
52447 * modules/c-strtold (Depends-on): Add xalloc.
52448 * modules/c-strtod (Depends-on): Add xalloc.
52449 * modules/hash (Depends-on): Add xalloc.
52450 (Files): Remove lib/xalloc.h.
52452 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52453 * modules/userspec (Files): Add lib/inttostr.h.
52455 2005-03-23 Jim Meyering <jim@meyering.net>
52457 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52459 2005-03-22 Jim Meyering <jim@meyering.net>
52461 * modules/stat-macros: New module.
52462 * modules/canonicalize, modules/euidaccess, modules/file-type,
52463 * modules/filemode, modules/lchown, modules/makepath,
52464 * modules/rmdir, modules/stat: Depend on new stat-macros module
52465 rather than listing lib/stat-macros.h manually.
52466 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52468 2005-03-22 Jim Meyering <jim@meyering.net>
52470 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52472 2005-03-22 Bruno Haible <bruno@clisp.org>
52474 * config/srclist.txt: Replace target directory 'config' with
52476 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52477 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52480 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
52482 * modules/chdir-long (Depends-on): Add mempcpy.
52484 * modules/acl, modules/backupfile, modules/c-strtod,
52485 modules/c-strtold, modules/canon-host, modules/canonicalize,
52486 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52487 modules/exclude, modules/exitfail, modules/file-type,
52488 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52489 modules/getdate, modules/getline, modules/getpagesize,
52490 modules/getpass, modules/getugroups, modules/group-member,
52491 modules/hard-locale, modules/hash, modules/human, modules/idcache,
52492 modules/inttostr, modules/long-options, modules/makepath,
52493 modules/md5, modules/memcasecmp, modules/memcoll,
52494 modules/modechange, modules/mountlist, modules/path-concat,
52495 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52496 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52497 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52498 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52499 modules/strftime, modules/strndup, modules/strverscmp,
52500 modules/timespec, modules/unlocked-io, modules/userspec,
52501 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52503 Remove lib_SOURCES line from Makefile.am section, as this is now
52504 done automatically by the corresponding Autoconf macro.
52506 2005-03-21 Jim Meyering <jim@meyering.net>
52508 Changes imported from coreutils.
52510 * lib/cycle-check.c: Don't include xalloc.h.
52512 * lib/path-concat.c: Don't include assert.h.
52513 (path_concat): Remove assertion that would have triggered
52514 for ABASE starting with more than one slash.
52515 Reported by Andreas Schwab.
52517 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52518 properly when ABASE is an absolute file name.
52519 Correct the description of this function.
52520 Include <assert.h>.
52521 Add an assertion and a test driver.
52522 This fixes a bug introduced on 2004-07-02.
52523 Andreas Schwab reported the resulting failure of cp --parents:
52524 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52526 2005-03-21 Jim Meyering <jim@meyering.net>
52528 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52529 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52531 2005-03-21 Jim Meyering <jim@meyering.net>
52532 and Paul Eggert <eggert@cs.ucla.edu>
52534 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52535 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52536 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52537 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52538 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52539 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52540 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52541 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52542 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52543 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52544 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52545 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52546 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52547 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52548 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52549 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52550 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52553 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
52555 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52556 (which shouldn't happen), generate nothing instead of returning 0
52557 immediately, so that nstrftime (NULL, ...) doesn't return 0.
52559 2005-03-16 Bruno Haible <bruno@clisp.org>
52561 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52562 HAVE_LONGLONG_64BIT.
52564 2005-03-16 Bruno Haible <bruno@clisp.org>
52566 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52567 HAVE_LONGLONG_64BIT.
52569 2005-03-16 Bruno Haible <bruno@clisp.org>
52571 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52572 HAVE_LONGLONG_64BIT.
52574 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52576 * lib/strftime.c (my_strftime): Prepend space to format so that we can
52577 reliably distinguish strftime failure from empty output on POSIX
52580 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52582 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52583 (iconv_string): Don't guess a size-zero buffer, as that might cause
52584 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
52585 result would be 'too large', where 'too large' is (heuristically)
52586 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52587 overflow concerns. This will prevent some unwanted malloc failures
52588 when the inputs are very large.
52590 2005-03-15 Karl Berry <karl@gnu.org>
52592 * config/srclist.txt (config.rpath): from gettext.
52593 * config/config.rpath: update.
52595 2005-03-15 Bruno Haible <bruno@clisp.org>
52597 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52600 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52603 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52606 2005-03-14 Simon Josefsson <jas@extundo.com>
52608 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52611 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
52613 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52614 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52616 * lib/strtol.c: Likewise.
52618 2005-03-14 Jim Meyering <jim@meyering.net>
52620 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52621 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52622 to be nonzero so that we (and caller) can detect the difference
52623 between a valid zero-length expansion and an error return, even
52624 when the underlying strftime fails before writing anything into
52627 2005-03-14 Bruno Haible <bruno@clisp.org>
52629 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52630 Update from GNU gettext 0.14.3.
52632 2005-03-10 Jim Meyering <jim@meyering.net>
52634 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52636 2005-03-10 Jim Meyering <jim@meyering.net>
52638 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52639 so that this module works on systems without fchdir.
52641 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
52643 Factor int-properties macros into a single file, except for
52644 glibc-related files.
52645 * lib/intprops.h: New file.
52646 * lib/getloadavg.c: Include it instead of limits.h.
52647 (INT_STRLEN_BOUND): Remove.
52648 * lib/human.c: Include intprops.h.
52649 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52650 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52652 * lib/inttostr.h: Include intprops.h instead of limits.h.
52653 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52654 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52655 for consistency with intprops.h.
52656 (time_t_is_integer, twos_complement_arithmetic): Use them.
52657 * lib/sig2str.h: Include <signal.h>, intprops.h.
52658 (INT_STRLEN_BOUND): Remove.
52659 * lib/strftime.c (TYPE_SIGNED): Remove.
52660 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52661 * lib/strtol.c: Adjust comments to match intprops.h.
52662 * lib/userspec.c: Include intprops.h.
52663 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52664 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52665 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52666 instead of rolling our own expressions.
52667 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52669 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
52671 (my_strftime): Do not mishandle years close to INT_MAX, by doing
52672 the right thing even if adding 1900 would overflow. Similarly
52673 for tm_mon + 1 and tm_yday + 1.
52674 Make %Y always equivalent to %C%y, and similarly for %G and %g.
52675 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52676 (DO_SIGNED_NUMBER): New macro.
52677 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52679 2005-03-07 Bruno Haible <bruno@clisp.org>
52681 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52683 2005-03-07 Bruno Haible <bruno@clisp.org>
52685 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52687 2005-03-04 Derek R. Price <derek@ximbiot.com>
52689 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52690 (func_import): Only replace files via --import when they have actually
52693 2005-03-03 Derek R. Price <derek@ximbiot.com>
52695 * m4/mmap-anon.m4: New file.
52696 * m4/pagealign_alloc.m4: New file.
52698 2005-03-03 Derek R. Price <derek@ximbiot.com>
52699 Bruno Haible <bruno@clisp.org>
52701 * modules/pagealign_alloc: New file.
52702 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52704 2005-03-03 Derek R. Price <derek@ximbiot.com>
52705 Bruno Haible <bruno@clisp.org>
52707 * lib/pagealign_alloc.h: New file.
52708 * lib/pagealign_alloc.c: New file.
52710 2005-03-03 Bruno Haible <bruno@clisp.org>
52712 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52713 Use an all-permissive copyright notice, recommended by RMS.
52715 2005-03-02 Bruno Haible <bruno@clisp.org>
52717 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52718 of AIX, the replacement has to be done only after <string.h> is
52719 included, therefore not in config.h. stpncpy.h does the replacement,
52720 and stpncpy.c uses it.
52722 2005-03-02 Bruno Haible <bruno@clisp.org>
52724 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52727 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52729 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52730 The workaround isn't strictly needed for POSIX conformance, and
52731 it's too much of a pain to configure and maintain. We'll ask
52732 people to fix their kernels instead.
52733 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52734 (NANOSLEEP_BUG_WORKAROUND): Remove.
52735 (xnanosleep): Remove the workaround.
52737 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52739 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52740 Reported by Derek Price.
52741 (Include): Add "timespec.h".
52743 * modules/xnanosleep (Depends-on): Remove gethrxtime.
52745 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52747 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52748 to detect nanosleep bug.
52750 2005-03-01 Bruno Haible <bruno@clisp.org>
52752 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52754 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
52756 * modules/gethrxtime: New file.
52757 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52758 (Depends-on): Add gethrxtime.
52759 (configure.ac): Add gl_XNANOSLEEP.
52760 (Makefile.am): Remove lib_SOURCES line.
52762 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52764 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52765 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52767 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52769 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52770 * lib/timespec.h (gettime): Return void, since it always
52771 succeeds now. All uses changed.
52772 * lib/gettime.c (gettime) Likewise.
52773 [HAVE_NANOTIME]: Prefer nanotime.
52774 Assume gettimeofday succeeds, as POSIX requires.
52775 Assime time () succeeds, since other code already does.
52776 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52777 (timespec_subtract): Remove.
52778 (NANOSLEEP_BUG_WORKAROUND): New constant.
52779 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52780 things considerably. Use it only on GNU/Linux hosts, since the
52781 workaround shouldn't be needed elsewhere.
52783 2005-02-24 Bruno Haible <bruno@clisp.org>
52785 * modules/gettext (Files): Add m4/glibc2.m4.
52787 2005-02-24 Bruno Haible <bruno@clisp.org>
52789 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52790 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52792 Update from GNU gettext 0.14.2.
52793 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52795 2005-02-24 Bruno Haible <bruno@clisp.org>
52797 * lib/localcharset.c: Update from GNU gettext 0.14.2.
52798 * lib/config.charset: Update from GNU gettext 0.14.2.
52800 2005-02-24 Bruno Haible <bruno@clisp.org>
52802 * lib/gettext.h: Update from GNU gettext 0.14.2.
52804 2005-02-23 Simon Josefsson <jas@extundo.com>
52806 * m4/iconvme.m4: New file.
52808 2005-02-23 Jim Meyering <jim@meyering.net>
52810 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52812 Thanks to Bruno Haible for catching it.
52814 2005-02-22 Simon Josefsson <jas@extundo.com>
52816 * modules/iconvme: New file.
52818 * MODULES.html.sh: Add iconvme.
52820 2005-02-22 Simon Josefsson <jas@extundo.com>
52822 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52824 2005-02-22 Simon Josefsson <jas@extundo.com>
52826 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52828 2005-02-22 Jim Meyering <jim@meyering.net>
52830 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52833 2005-02-20 Neil Conway <neilc@samurai.com>
52835 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52836 returned by OSX/Darwin if the specified buffer is not large
52837 enough for the hostname.
52839 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52841 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52842 pass it to _help, otherwise the latter coredumps trying to
52843 dereference state.root_argp.
52845 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52847 * modules/chdir-long (Depends-on): Add memrchr.
52848 * modules/memrchr (Files): Add lib/memrchr.h.
52849 (Include): "memrchr.h".
52851 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52853 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52855 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52857 * lib/memrchr.h: New file.
52858 * lib/chdir-long.c: Include it.
52859 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52860 Don't bother including stddef.h.
52862 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
52864 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52866 Include <sys/types.h>, for dev_t.
52867 (ME_DUMMY, ME_REMOTE): Move from here....
52868 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52869 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
52871 Include mountlist.h first, to test the interface.
52873 2005-01-29 Bruno Haible <bruno@clisp.org>
52875 * lib/progname.c (program_name): Initialize.
52876 Needed when linking statically on MacOS X.
52878 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52880 Sync from coreutils.
52881 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52882 (Depends-on): Add c-strtod.
52883 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52885 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52887 Sync from coreutils.
52888 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52890 Remove files that are specific to coreutils.
52891 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52893 2005-01-28 Bruno Haible <bruno@clisp.org>
52895 * modules/javacomp: New file.
52896 * MODULES.html.sh (Java): Add javacomp.
52898 2005-01-28 Bruno Haible <bruno@clisp.org>
52900 * m4/javacomp.m4: New file, from GNU gettext.
52902 2005-01-28 Bruno Haible <bruno@clisp.org>
52904 * lib/javacomp.sh.in: New file, from GNU gettext.
52905 * lib/javacomp.h: New file, from GNU gettext.
52906 * lib/javacomp.c: New file, from GNU gettext.
52908 2005-01-26 Simon Josefsson <jas@extundo.com>
52910 * lib/gai_strerror.c: Use GPL in header.
52912 2005-01-26 Bruno Haible <bruno@clisp.org>
52914 * modules/javaexec: New file.
52915 * MODULES.html.sh (Java): Add javaexec.
52917 2005-01-26 Bruno Haible <bruno@clisp.org>
52919 * m4/javaexec.m4: New file, from GNU gettext.
52921 2005-01-26 Bruno Haible <bruno@clisp.org>
52923 * lib/javaexec.sh.in: New file, from GNU gettext.
52924 * lib/javaexec.h: New file, from GNU gettext.
52925 * lib/javaexec.c: New file, from GNU gettext.
52927 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52929 * modules/lchown (Depends-on): Remove lchown.h
52931 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52933 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52934 must be defined if the header file was not found, in order
52935 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52937 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52939 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52940 initializers for struct pentry_state.
52941 (__argp_error): Check return value of __asprintf
52942 (__argp_failure): Translate error message
52944 * lib/argp-parse.c: Removed braces around the expansion of N_()
52946 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
52948 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52949 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52950 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52951 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52952 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52953 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52954 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52955 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52956 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52957 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52958 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52959 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52960 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52961 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52962 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52963 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52964 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52965 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52966 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52967 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52968 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52969 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52970 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52971 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52972 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52973 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52974 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52975 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52976 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52977 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52978 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52979 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52980 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52981 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52982 xstrtol.m4, xstrtoumax.m4, yesno.m4:
52983 Use an all-permissive copyright notice, recommended by RMS.
52985 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
52987 * modules/chdir-long (Depends-on): Remove mempcpy.
52989 2005-01-21 Jim Meyering <jim@meyering.net>
52991 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52992 same value as for Solaris 9.
52994 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52995 component length. This included changing the parameter to be
52996 of type `char *' rather than `char const *'.
52997 * lib/chdir-long.h (chdir_long): Update prototype.
52999 * lib/openat.c (fdopendir, fstatat): New functions.
53000 * lib/openat.h: Include headers required for use of DIR and struct
53002 [AT_SYMLINK_NOFOLLOW]: Define.
53003 (fdopendir, fstatat): Add prototypes.
53005 2005-01-21 Bruno Haible <bruno@clisp.org>
53007 * modules/classpath: New file.
53008 * MODULES.html.sh (Java): Add classpath.
53010 2005-01-21 Bruno Haible <bruno@clisp.org>
53012 * lib/classpath.h: New file, from GNU gettext.
53013 * lib/classpath.c: New file, from GNU gettext.
53015 2005-01-20 Simon Josefsson <jas@extundo.com>
53017 * modules/version-etc-fsf: New file.
53019 2005-01-20 Simon Josefsson <jas@extundo.com>
53021 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53022 * lib/version-etc.c: Remove version_etc_copyright.
53023 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53024 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53026 2005-01-20 Simon Josefsson <jas@extundo.com>
53028 * lib/base64.h (isbase64): Add.
53030 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53031 using a unsigned prototype, don't inline.
53032 (base64_decode): Use it.
53034 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
53036 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53039 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
53041 * lib/save-cwd.c (save_cwd): Remove code to support the case
53042 where fchdir is missing or flaky.
53044 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
53046 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53048 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
53050 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53051 AC_LIBSOURCES now does this.
53052 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53053 with new ullong_max module.
53055 2005-01-19 Bruno Haible <bruno@clisp.org>
53057 * modules/sh-quote: New file.
53058 * MODULES.html.sh (Executing programs): Add sh-quote.
53060 2005-01-19 Bruno Haible <bruno@clisp.org>
53062 * lib/sh-quote.h: New file, from GNU gettext.
53063 * lib/sh-quote.c: New file, from GNU gettext.
53065 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
53067 Merge from coreutils.
53068 * m4/ullong_max.m4: New file.
53069 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53070 (gl_MACROS): Assume localeconv exists.
53072 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
53074 Merge changes from coreutils, as described below in several
53075 changelogs dated today.
53077 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53078 (O_DIRECTORY): Remove; not needed here, since "." must be
53079 a directory. All uses removed.
53080 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
53081 universal on Suns, and we also need to test for IRIX.
53082 Revamp code to use 'if' rather than '#if'.
53083 Avoid unnecessary comparison of cwd->desc to 0.
53085 * lib/utimens.c (futimens): Robustify the previous patch, by checking
53086 for known valid error numbers rather than observed invalid ones.
53088 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
53090 * modules/ullong_max: New file.
53092 * modules/chdir-long, modules/openat: New files.
53093 * modules/save-cwd (Depends-on): Depend on chdir-long.
53094 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53096 2005-01-18 Jim Meyering <jim@meyering.net>
53098 Merge from coreutils.
53099 * m4/chdir-long.m4, m4/openat.m4: New files.
53100 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53101 save-cwd.h. Add AC_LIBOBJ for save-cwd.
53102 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53103 is sane and DOES follow symlinks. Besides, testing 20 different
53104 systems found no broken chown implementations.
53105 Prompted by a change in rsync's copy of this macro.
53106 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53108 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53110 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53111 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53112 NULL-means-set-to-current-time semantics.
53113 Remove temporary file immediately, rather than waiting
53114 for configure's at-exit trap code to do it.
53116 2005-01-18 Jim Meyering <jim@meyering.net>
53118 * lib/version-etc.c (version_etc_copyright): Update copyright date.
53120 * lib/utimens.c (futimens): Account for the fact that futimes
53121 can also fail with errno == ENOSYS or errno == ENOENT.
53122 Patch from Dmitry V. Levin.
53124 Change the name of the robust chdir function from chdir to chdir_long.
53125 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53126 (restore_cwd): Use chdir_long, not chdir.
53127 * lib/chdir-long.c: Renamed from chdir.c.
53128 * lib/chdir-long.h: Renamed from chdir.h.
53129 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53132 2005-01-18 Bruno Haible <bruno@clisp.org>
53134 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53135 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53136 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53137 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53138 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53139 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53140 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53141 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53142 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53143 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53144 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53145 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53146 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53147 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53148 Use an all-permissive copyright notice, recommended by RMS.
53150 2005-01-18 Bob Proulx <bob@proulx.com>
53152 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53153 simplify offsetof() macro construct to avoid compile failure with
53154 native HP-UX 11.0 ANSI C compiler.
53156 2005-01-17 Bruno Haible <bruno@clisp.org>
53158 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53159 redundant because stpncpy.m4 takes care of it.
53161 2005-01-17 Bruno Haible <bruno@clisp.org>
53163 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53165 2005-01-17 Bruno Haible <bruno@clisp.org>
53167 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53170 2005-01-17 Bruno Haible <bruno@clisp.org>
53172 * lib/fwriteerror.h (fwriteerror): Change specification to include
53174 * lib/fwriteerror.c: Include <stdbool.h>.
53175 (fwriteerror): At the end, close the file stream. Record whether
53176 stdout was already closed.
53178 2005-01-17 Bruno Haible <bruno@clisp.org>
53180 * lib/execute.c (environ): Declare if needed.
53181 * lib/pipe.c (environ): Likewise.
53182 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53184 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53186 * modules/argp: Depend on vsnprintf
53188 2005-01-10 Jim Meyering <jim@meyering.net>
53190 * modules/closeout (Depends-on): Add atexit.
53192 2005-01-06 Bruno Haible <bruno@clisp.org>
53194 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53196 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
53198 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53199 definitions to be after all include files, to avoid collisions.
53200 Problem reported by Bob Proulx.
53202 2005-01-04 Jim Meyering <jim@meyering.net>
53204 Changes imported from coreutils.
53205 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53206 as the mkstemp template, use a temporary directory and an
53207 8.3-friendly template to avoid trouble on systems like DJGPP.
53208 Reported by Juan M. Guerrero via Stepan Kasal.
53209 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53210 close. Remove the temporary directory right away, rather than waiting
53211 for configure's at-exit trap code to do it.
53212 Suggestion from Stepan Kasal.
53214 2005-01-01 Simon Josefsson <jas@extundo.com>
53216 * gnulib-tool: Print #include directives when --import'ing.
53218 2004-12-28 Simon Josefsson <jas@extundo.com>
53220 * tests/test-base64.c: Include required header files. Remove
53223 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
53225 * modules/error (Depends-on): Remove gettext.
53227 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
53229 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53230 not needed. This removes a dependency on the gettext module.
53231 [defined _LIBC]: Do not include <libintl.h>; not needed.
53233 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
53235 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53236 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53238 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
53240 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53243 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53245 * modules/getdate (Depends-on): Remove alloca-opt.
53247 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53249 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53251 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53253 * lib/argp-parse.c: Include <stddef.h>.
53254 (alignof, alignto): New macros.
53255 (parser_init): Don't assume that void * is aligned sufficiently
53258 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53259 need to extend the stack.
53260 (YYINITDEPTH): New macro, so that the initial stack isn't overly
53263 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53265 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53267 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
53269 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53270 (2004-10-24) change. Apparently this was a false alarm.
53272 * modules/getdate: Depend on alloca-opt, not alloca.
53274 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
53276 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53277 Remove now-obsolete comment about AIX.
53278 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53279 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53280 (YYMAXDEPTH): New macro.
53282 2004-12-18 Simon Josefsson <jas@extundo.com>
53284 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53286 2004-12-18 Bruno Haible <bruno@clisp.org>
53288 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53290 2004-12-18 Bruno Haible <bruno@clisp.org>
53292 * lib/fatal-signal.c (fatal_signals): Make non-const.
53293 (init_fatal_signals): New function.
53294 (uninstall_handlers, install_handlers): Ignore signals that were set to
53296 (at_fatal_signal): Call init_fatal_signals.
53297 (init_fatal_signal_set): Likewise. Ignore signals that were set to
53299 Reported by Paul Eggert.
53301 2004-12-18 Bruno Haible <bruno@clisp.org>
53303 * doc/alloca.texi: New file.
53304 * doc/alloca-opt.texi: New file.
53306 2004-12-17 Jim Meyering <jim@meyering.net>
53308 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53309 Otherwise, install-sh could exit with improper exit status when
53310 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
53312 2004-12-16 Simon Josefsson <jas@extundo.com>
53314 * tests/test-base64.c: Add license.
53316 2004-12-15 Stepan Kasal <address@hidden>
53318 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53320 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
53322 * modules/getcwd (Files): Add m4/d-ino.m4.
53323 Suggested by Mark D. Baushke.
53325 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
53327 * lib/getdate.y (textint): New member "negative".
53328 (time_zone_hhmm): New function.
53329 Expect 14 shift-reduce conflicts, not 13.
53330 (o_colon_minutes): New rule.
53331 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53332 (yylex): Set the "negative" member of signed numbers.
53334 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
53336 * doc/getdate.texi (Time of day items, Time zone items):
53337 Describe new formats +00:00, UTC+00:00.
53339 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
53341 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53342 spurious "-l"s. Problem reported by Stepan Kasal.
53344 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
53346 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53347 in Autoconf 2.59. Problem reported by Mark D. Baushke.
53349 2004-12-04 Simon Josefsson <jas@extundo.com>
53351 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53352 Vandoorselaere <yoann@prelude-ids.org>.
53354 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53356 Changes imported from coreutils.
53357 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53359 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53361 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53363 Changes imported from coreutils.
53364 * lib/hard-locale.c: Assume <locale.h> exists.
53365 Include "strdup.h".
53366 (GLIBC_VERSION): New macro.
53367 (hard_locale): Assume setlocale exists.
53368 Rewrite to avoid #ifdef.
53369 Use strdup rather than malloc + strcpy.
53370 * lib/human.c: Assume <locale.h> exists.
53371 (human_readable): Assume localeconv exists.
53373 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53375 * modules/hard-locale (Depends-on): Add strdup.
53377 2004-12-01 Jakub Jelinek <jakub@redhat.com>
53379 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53380 convert T2, not T. (Imported from libc.)
53382 2004-11-30 Simon Josefsson <jas@extundo.com>
53384 * modules/restrict (License): Change to LGPL.
53386 2004-11-30 Simon Josefsson <jas@extundo.com>
53388 * m4/restrict.m4: Add copyright and copying conditions.
53390 2004-11-30 Simon Josefsson <jas@extundo.com>
53392 * m4/base64.m4: New file.
53394 2004-11-30 Simon Josefsson <jas@extundo.com>
53396 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53399 * tests/test-base64.c: New file.
53401 * modules/base64: New file.
53403 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
53405 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53406 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53408 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53410 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
53412 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53413 (__getcwd.c): Don't restore errno; glibc doesn't.
53414 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53415 first, falling back to our code only if its results look suspicious.
53416 Ensure that the resulting buffer is only as large as necessary.
53418 * lib/readutmp.c: Include readutmp.h first.
53419 Include <errno.h>, since readutmp.h no longer does that.
53420 * lib/readutmp.h: Don't include <errno.h>,
53421 <sys/param.h>, <time.h>; not needed to establish interface.
53422 (errno): Remove decl.
53423 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53424 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53425 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53427 2004-11-28 Simon Josefsson <jas@extundo.com>
53429 * lib/base64.h, base64.c: New file.
53431 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
53433 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53435 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
53437 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53438 (Depends-on): Remove pathmax, same. Add mempcpy.
53439 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53440 (Makefile.am): Append getcwd.h to lib_SOURCES.
53441 (Include): Add getcwd.h.
53442 (Maintainer): Change from Jim Meyering to "all, glibc",
53443 since getdate now uses intended-for-glibc code.
53444 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53445 (Depends-on): Depend on getcwd. Do not depend on pathmax.
53447 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
53449 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53450 HP's ANSI C compiler.
53451 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53452 Declaring int functions causes warnings on some modern systems and
53453 shouldn't be needed to compile on ancient ones.
53454 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53457 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53458 with the following changes.
53459 (__set_errno): Parenthesize properly.
53460 Include <stdbool.h>.
53461 (MIN, MAX, MATCHING_INO): New macros.
53462 (__getcwd): Define with prototype, not K&R form.
53463 Use heuristics to allocate default buffer on stack if possible.
53464 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53465 behavior, and to avoid the PATH_MAX limit when computing
53467 Use MATCHING_INO to compare inode number to file.
53468 Check for arithmetic overflow in size calculations.
53469 Fix bug in reallocation of dot array that caused getcwd to fail
53470 on directories nested deeper than 75.
53471 Be more careful about saving errno on error.
53472 Do not use realloc; use only free+malloc, as this is a bit
53473 more flexible and avoids a needless copy operation.
53474 Do not inspect st_dev and st_ino for symbolic links; POSIX
53475 doesn't specify the latter.
53476 Check for closedir errors.
53477 Avoid needless casts.
53478 Use "#ifdef weak_alias" around weak_alias, to be like other
53480 The following changes to getcwd.c have effect only when used in
53481 gnulib; they have no effect inside glibc proper.
53482 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53483 as alloca isn't used.
53484 (alloca, __alloca): Likewise.
53485 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53486 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53487 unconditionally, as gnulib assumes C89 or better.
53488 Do not include <sys/param.h>.
53489 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53490 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53492 (NULL) [!defined NULL]: Remove; we assume C89 or better.
53493 Include <dirent.h> in a way that is compatible with modern Autoconf.
53494 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53495 New macros, if not already defined.
53496 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53497 Use "_LIBC", not "defined _LIBC", for consistency.
53498 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53500 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53501 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
53502 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53503 credit only to Jim Meyering and adjust the copyright dates.
53504 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53505 <stdlib.h>, <unistd.h>, "pathmax.h".
53506 Instead, include "xgetcwd.h" (first) and "getcwd.h".
53507 (INITIAL_BUFFER_SIZE): Remove.
53508 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53510 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
53512 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53513 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
53514 Use the _ONCE methods, for efficiency.
53515 Check for fcntl.h. In test program, include <errno.h>
53516 and <fcntl.h> if available. Remove old K&R cruft from
53517 test program. Check for common errors in GNU/Linux,
53518 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
53519 don't do AC_LIBOBJ, as that's getcwd.m4's job.
53520 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53521 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
53523 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
53524 accommodate new getcwd.c.
53525 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53526 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53527 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53528 that's all we need now.
53530 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53532 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53533 argp-parse.c depends on getopt internals, that means we should
53534 always use our getopt, to be on the safe side.
53535 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53536 order not to spoil the result of an eventual previous invocation
53537 of gl_GETOPT_SUBSTITUTE.
53539 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53541 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53542 redefinition warnings. To avoid them, include the defines
53543 in `#if !defined __need_getopt ... #endif'. The only place
53544 where __getopt_argv_const is used is in definitions
53545 of getopt_long and getopt_long_only below, which are as well
53546 protected by `#ifndef __need_getopt'.
53547 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53548 __need_getopt after including <stdio.h> and <unistd.h> These
53549 headers might have defined it.
53551 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53553 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53555 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53557 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53558 (futimens): New function, which uses futimes if available.
53559 (futimens, utimens): Support timespec==NULL, with same semantics
53560 as utime and utimens.
53561 * lib/utimens.h (futimens): New decl.
53563 2004-11-23 Jim Meyering <jim@meyering.net>
53565 * lib/getopt_.h: Remove trailing blanks.
53567 2004-11-23 Jim Meyering <jim@meyering.net>
53569 * lib/__fpending.c: Add comment.
53571 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
53573 * modules/canonicalize (Depends-on): Add xreadlink.
53574 Problem reported by James Youngman.
53576 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
53578 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53580 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53581 optopt): Use them instead of invoking ## directly; otherwise, the
53582 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53584 2004-11-19 Bruno Haible <bruno@clisp.org>
53586 * lib/strtok_r.c: Move comments from here...
53587 * lib/strtok_r.h: ... to here.
53589 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53591 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53592 implementations that mishandle size_t overflow.
53594 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53596 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53597 might fail. Problem reported by Yoann Vandoorselaere.
53598 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53599 implementations that mishandle size_t overflow.
53601 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53603 * modules/canon-host (Depends-on): Add strdup.
53605 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53607 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53609 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53611 * lib/canon-host.c: Include "strdup.h".
53612 (canon_host): Use getaddrinfo if available, so that IPv6 works.
53613 Use strdup instead of malloc/strcpy to duplicate strings.
53615 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53616 (human_space_before_unit): New constant.
53617 * lib/human.c (human_readable): Support it.
53619 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53620 (xgetcwd): Set errno correctly when failing.
53621 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53622 the failure is actually due to a PATH_MAX problem.
53624 Further getopt changes to make it more likely that glibc will
53625 buy the changes back.
53626 * lib/getopt.c (POSIXLY_CORRECT): New constant.
53627 (getopt): Use it, so to preserve glibc semantic
53628 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53629 when compiling for libc.
53630 * lib/getopt_.h (__getopt_argv_const): Bring it back.
53631 (getopt_long, getopt_long_only): Use it.
53633 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53634 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
53635 (getopt): Argv is now char * const *, as per standard.
53636 (_getopt_internal_r, _getopt_internal): Argv is now char **,
53637 not char *__getopt_argv_const *.
53638 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53639 _getopt_long_only_r): Likewise.
53640 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53641 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53642 _getopt_long_r, _getopt_long_only_r): Likewise.
53643 * lib/getopt_.h (__getopt_argv_const): Remove.
53644 (getopt): Argv is now char * const *, as per standard.
53646 * lib/getdate.y (tORDINAL): New token.
53647 (day, relunit): Allow it for relative times.
53648 (relative_time_table): Use tORDINAL for ordinals.
53650 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53652 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53653 Document that "second" isn't allowed as an ordinal number.
53655 2004-11-16 Jim Meyering <jim@meyering.net>
53657 * modules/closeout (Depends-on): Add fpending.
53659 2004-11-15 Jim Meyering <jim@meyering.net>
53661 * lib/closeout.c: Include "__fpending.h" once again.
53662 Include <stdbool.h>.
53663 (close_stdout): Don't fail just because stdout was closed initially,
53664 since some programs don't write to stdout in the normal course of
53665 operation (other than --version and --help), and we don't want this
53666 function to make e.g. `touch file >&-' fail.
53667 But do fail if it was closed and someone has tried to write to it.
53668 E.g., `printf foo >&-' must fail.
53670 2004-11-13 Jim Meyering <jim@meyering.net>
53672 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53674 2004-11-12 Simon Josefsson <jas@extundo.com>
53676 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53677 small doc fix is still pending.
53679 2004-11-11 Simon Josefsson <jas@extundo.com>
53681 * modules/strtok_r: New file.
53683 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53686 2004-11-11 Simon Josefsson <jas@extundo.com>
53688 * m4/strtok_r.m4: New file.
53690 * m4/getopt.m4: Replace opterr.
53692 2004-11-11 Simon Josefsson <jas@extundo.com>
53694 * lib/strtok_r.h, strtok_r.c: New file.
53696 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53698 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53699 of replacing opterr, getopt, etc. This should handle the
53700 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53702 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53704 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53705 we can stop lying to compilers about the constness of argv when we
53706 are compiled outside glibc.
53707 (getopt, getopt_long, getopt_long_only): Use it.
53708 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53709 _getopt_internal, getopt): Likewise.
53710 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53711 _getopt_long_only_r): Likewise.
53712 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53713 _getopt_long_r, _getopt_long_only_r): Likewise.
53715 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53716 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53717 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53718 the other external symbols.
53719 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53720 declaration, since the above renaming now works around collisions.
53722 2004-11-11 Jim Meyering <jim@meyering.net>
53724 * lib/linebreak.c: Remove trailing blanks.
53725 * lib/alloca_.h: Likewise.
53726 * lib/acosl.c: Likewise.
53727 * lib/euidaccess.c: Likewise.
53728 * lib/allocsa.h: Likewise.
53730 2004-11-10 Simon Josefsson <jas@extundo.com>
53732 * m4/getaddrinfo.m4: New file.
53734 2004-11-10 Simon Josefsson <jas@extundo.com>
53736 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53738 2004-11-10 Simon Josefsson <jas@extundo.com>
53740 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53743 * modules/getaddrinfo: New file.
53745 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53747 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53749 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53751 * lib/mktime.c (SHR): New macro, which is a portable
53752 substitute for >> that should work even on Crays.
53753 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53754 Problem reported by Mark D. Baushke in
53755 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53756 * lib/getdate.y (SHR): Likewise.
53758 * lib/strftime.c (SHR): Likewise.
53760 * lib/quotearg.c (struct quoting_options): Use unsigned int for
53761 quote_these_too, so that right shifts are well defined. All uses
53764 2004-11-10 Jim Meyering <jim@meyering.net>
53766 Ensure that no close failure goes unreported.
53767 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
53768 return early when it seems there's nothing to flush.
53769 Don't include __fpending.h.
53771 2004-11-10 Jim Meyering <jim@meyering.net>
53773 * modules/closeout (Depends-on): Remove fpending.
53775 2004-11-10 Jim Meyering <jim@meyering.net>
53777 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53779 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53781 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
53783 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53784 and AC_REQUIRE when possible, to avoid duplicate checks.
53785 Check for <wchar.h>.
53787 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53789 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53791 2004-11-09 Bruno Haible <bruno@clisp.org>
53793 * m4/sockpfaf.m4: New file.
53795 2004-11-05 Bruno Haible <bruno@clisp.org>
53797 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53798 Reported by Mark D. Baushke <mdb@cvshome.org>.
53800 2004-11-04 Bruno Haible <bruno@clisp.org>
53802 2004-09-11 Bruno Haible <bruno@clisp.org>
53803 * allocsa.valgrind: New file.
53804 2004-02-06 Bruno Haible <bruno@clisp.org>
53805 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53806 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53807 Reported by Christopher Seip <chris.seip@hp.com>.
53809 2004-11-04 Bruno Haible <bruno@clisp.org>
53811 * modules/allocsa (Files): Add lib/allocsa.valgrind.
53812 (Makefile.am): Distribute it.
53814 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
53816 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53817 with errno == ERANGE if the buffer is too small.
53818 Problem reported by Mark D. Baushke.
53820 2004-11-03 Albert Chin <china@thewrittenword.com>
53821 Paul Eggert <eggert@cs.ucla.edu>
53823 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53824 equivalent, substitute $ac_type for equivalent type rather than
53825 blindly using uint32_t *always* which won't work if uint32_t is not
53826 available. Define _UINT32_T to work around typedef of uint32_t if
53827 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53830 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53832 * m4/jm-macros.m4: Sync from coreutils.
53833 (gl_MACROS): Check for mbrlen, for pathchk.
53834 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53836 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53838 * lib/xreadlink.c (MAXSIZE): New macro.
53839 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
53840 size does not exceed MAXSIZE. Avoid cast.
53841 As suggested by Mark D. Baushke in
53842 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53843 if readlink fails with buffer size just under MAXSIZE, try again
53846 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53848 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53850 2004-11-02 Derek R. Price <derek@ximbiot.com>
53851 and Paul Eggert <eggert@cs.ucla.edu>
53853 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53854 (get_date): Overparenthesize to avoid GCC warning.
53856 2004-11-02 Bruno Haible <bruno@clisp.org>
53858 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53861 2004-11-02 Bruno Haible <bruno@clisp.org>
53863 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53864 function returns void.
53866 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53868 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53869 fflush_unlocked, flockfile, funlockfile, funlockfile,
53870 fputs_unlocked, putc_unlocked.
53872 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53874 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53875 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53878 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53880 * modules/getdate (Files): Add doc/getdate.texi.
53881 (Depends-on): Add setenv, xalloc.
53883 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53885 * lib/getdate.y: Add support for TZ="foo" within a date string.
53886 Fix some bugs near time_t boundaries. Reject dates with
53887 out-of-range components, e.g., "Sept 31".
53888 Include <stdlib.h>, "setenv.h", "xalloc.h".
53889 (ISDIGIT_LOCALE): Remove; unused.
53890 Note that the TZ and time functions used here are not reentrant.
53891 (mktime_ok, get_tz): New functions.
53892 (TZBUFSIZE): New constant.
53893 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
53894 This requires that we sometimes generate our own TZ="XXX..." setting.
53896 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53898 * doc/getdate.texi: New file, from coreutils with modifications for
53899 the new TZ parsing.
53901 2004-10-27 Derek R. Price <derek@ximbiot.com>
53903 * lib/mktime.c (not_equal_tm): Remove redundant check.
53905 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53907 * modules/regex (lib_SOURCES): Add regex.c.
53908 Reported by James Youngman in
53909 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53911 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53913 * lib/getdate.y: Use Bison 1.875 features, and some minor
53914 code cleanups. This change does not affect semantics.
53915 Don't include <stdlib.h>; no longer needed.
53916 Don't include unlocked-io.h; only the "#if TEST" code uses
53917 stdio, and performance isn't crucial there.
53918 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53919 Bison 1.875 features as described below.
53920 All uses of "PC." replaced by "pc->".
53921 (YYSTYPE): Add a forward declaration.
53922 (yylex, yyerror): Use full prototypes in forward decls.
53923 Use "%pure-parser" rather than obsolescent "%pure_parser".
53924 Use %parse-param and %lex-param instead of obsolescent
53925 YYPARSE_PARAM and YYLEX_PARAM.
53926 (meridian_table, month_and_day_table, time_units_table,
53927 relative_time_table, time_zone_table, military_table,
53928 lookup_zone, lookup_word, get_date):
53929 Use NULL instead of 0 where appropriate.
53930 (to_hour): Avoid abort (), to avoid a dependency on
53932 (yyerror, yylex): Now accepts parser_control * arg.
53933 (main) [TEST]: Use '\0' rather than 0 for char.
53935 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53937 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53939 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53941 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53942 It's now the caller's responsibility to handle the case where
53943 !HAVE_GETPAGESIZE && !defined getpagesize.
53945 * lib/mktime.c (leapyear): Arg is long int, not int.
53947 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
53949 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53951 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
53953 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53954 missing. Problem reported by James Youngman.
53956 2004-10-16 Simon Josefsson <jas@extundo.com>
53958 * gnulib-tool: Fix comments. Fix parse problem.
53959 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53961 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
53963 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53964 implementation of getopt_long. Problem reported by Alexander Taler in:
53965 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53967 2004-10-15 Bruno Haible <bruno@clisp.org>
53969 * gnulib-tool: Untabify. Initialize supplied_libname.
53970 (func_usage): More homogenous output.
53971 (func_modules_transitive_closure, func_modules_to_filelist,
53972 func_emit_lib_Makefile_am): New functions.
53973 (func_import): New function, extracted from big case statement. Use
53974 func_get_license, func_modules_transitive_closure,
53975 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53976 opt_lgpl. Don't use test -a, as it's not portable.
53977 (func_create_testdir): Use func_modules_transitive_closure,
53978 func_modules_to_filelist, func_emit_lib_Makefile_am.
53980 2004-10-15 Bruno Haible <bruno@clisp.org>
53982 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53984 2004-10-15 Bruno Haible <bruno@clisp.org>
53986 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53987 the portions belonging to each module.
53988 Suggested by Derek Robert Price <derek@ximbiot.com>.
53990 2004-10-12 Simon Josefsson <jas@extundo.com>
53992 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53993 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53996 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53998 * modules/vsnprintf: New file.
54000 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
54002 * m4/vsnprintf.m4: New file.
54004 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
54006 * lib/vsnprintf.h: New file.
54007 * lib/vsnprintf.c: New file.
54009 2004-10-11 Bruno Haible <bruno@clisp.org>
54011 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54014 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
54016 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54018 2004-10-07 Bruno Haible <bruno@clisp.org>
54020 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54021 fits into the provided buffer.
54023 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
54025 * lib/diacrit.c, diacrit.h: Add GPL notice.
54027 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54029 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54030 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54031 This avoids a potential constant-folding bug.
54033 2004-10-05 Bruno Haible <bruno@clisp.org>
54035 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54036 for the declaration of strsep.
54038 2004-10-05 Bruno Haible <bruno@clisp.org>
54040 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54042 2004-10-04 Simon Josefsson <jas@extundo.com>
54044 * modules/memmem: New file.
54045 * tests/test-memmem.c: New file.
54046 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54048 2004-10-04 Simon Josefsson <jas@extundo.com>
54050 * m4/memmem.m4: New file.
54052 2004-10-04 Simon Josefsson <jas@extundo.com>
54054 * lib/memmem.h: New file.
54055 * lib/memmem.c: New file, taken from glibc.
54057 2004-10-04 Simon Josefsson <jas@extundo.com>
54059 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54060 '#ifdef USE_UNLOCKED_IO'.
54062 2004-10-04 Simon Josefsson <jas@extundo.com>
54064 * config/srclist.txt: Add memmem from glibc.
54066 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
54068 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54070 * modules/argmatch, modules/argp, modules/closeout, modules/error,
54071 modules/exclude, modules/getdate, modules/getline,
54072 modules/getndelim2, modules/getpass, modules/getpass-gnu,
54073 modules/getusershell, modules/linebuffer, modules/md5,
54074 modules/mountlist, modules/posixtm, modules/readtokens,
54075 modules/readutmp, modules/regex, modules/sha1,
54076 modules/version-etc, modules/yesno:
54077 Remove dependency on unlocked-io.
54079 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
54081 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
54083 * m4/unlocked-io.m4: Add copyright notice.
54084 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54086 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
54088 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
54089 * lib/xmalloc.c (xmemdup): Likewise.
54090 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54091 XFREE): Remove these long-obsolescent macros.
54092 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54093 * lib/xstrdup.c: Remove.
54095 * lib/regex.c (re_comp): Cast gettext return value to char *,
54096 Problem reported by Martin Neitzel via Mark D. Baushke.
54098 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
54100 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54101 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54102 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54103 regex.c, sha1.c, version-etc.c, yesno.c:
54104 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54105 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54106 the includer's responsibility.
54108 Sync from coreutils.
54110 * lib/modechange.c (mode_compile): Don't decrement a pointer that
54111 points to the start of a string, as the C Standard says the
54112 resulting behavior is undefined.
54114 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54115 simple -> simple_backups, numbered_existing ->
54116 numbered_existing_backups, numbered -> numbered_backups
54117 to avoid shadowing problems. All uses changed.
54118 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54119 * lib/backupfile.c (check_extension, numbered_backup):
54120 Rename locals to avoid shadowing 'basename'.
54121 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54124 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54125 * lib/.cvsignore: Add getopt.h.
54127 2004-10-04 Bruno Haible <bruno@clisp.org>
54129 * modules/README: New file.
54130 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54133 2004-10-02 Jim Meyering <jim@meyering.net>
54135 * lib/dirfd.h, getpagesize.h: Add copyright notice.
54137 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54139 * modules/strsep: New file.
54141 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54143 * m4/strsep.m4: New file.
54145 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54147 * lib/strsep.h: New file.
54148 * lib/strsep.c: New file.
54150 2004-10-01 Simon Josefsson <jas@extundo.com>
54152 * lib/snprintf.c (snprintf): Handle size==0.
54154 2004-10-01 Simon Josefsson <jas@extundo.com>
54155 Bruno Haible <bruno@clisp.org>
54157 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54158 (snprintf): Declare 'args'.
54160 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
54162 * lib/snprintf.c: Remove comments as to why each header is needed.
54164 2004-10-01 Bruno Haible <bruno@clisp.org>
54166 * MODULES.html.sh: Add strsep.
54168 2004-09-30 Simon Josefsson <jas@extundo.com>
54170 * modules/snprintf: New file.
54172 2004-09-30 Simon Josefsson <jas@extundo.com>
54174 * m4/snprintf.m4: New file.
54176 2004-09-30 Simon Josefsson <jas@extundo.com>
54178 * lib/snprintf.h, lib/snprintf.c: New files.
54180 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
54182 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54183 (hol_entry_help): Never translate an empty string.
54184 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54185 * lib/argp.h (OPTION_NO_TRANS): New option.
54187 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54189 * modules/argp (Maintainer): Replace Simon Josefsson
54190 by Sergey Poznyakoff.
54192 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54194 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54195 changes merged back into glibc.
54197 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54199 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54201 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
54203 * lib/xvasprintf.c: Include xalloc.h.
54204 (xvasprintf): Use xalloc_die, not xmalloc_die.
54206 2004-09-29 Bruno Haible <bruno@clisp.org>
54208 * modules/alloca-opt: New file, derived from modules/alloca.
54209 * modules/allocsa: Depend on alloca-opt instead of alloca.
54210 * modules/setenv: Likewise.
54211 * modules/vasnprintf: Likewise.
54212 * MODULES.html.sh: Add alloca-opt.
54214 2004-09-28 Simon Josefsson <jas@extundo.com>
54216 * gnulib-tool: New parameter --lgpl, to asseert that modules are
54217 LGPL, and to replace license template from GPL to LGPL.
54219 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
54221 * modules/dummy: Change license to LGPL.
54223 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
54225 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54227 2004-09-24 Simon Josefsson <jas@extundo.com>
54229 * modules/minmax (License): Change from GPL to LGPL.
54231 2004-09-23 Simon Josefsson <jas@extundo.com>
54233 * gnulib-tool (--import): Typo.
54235 2004-09-23 Simon Josefsson <jas@extundo.com>
54237 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54239 2004-09-22 Bruno Haible <bruno@clisp.org>
54241 * modules/*: Add 'License' field.
54242 * gnulib-tool: Accept --extract-license option.
54243 (func_get_license): New function.
54245 2004-09-21 Bruno Haible <bruno@clisp.org>
54247 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54248 Reported by Simon Josefsson.
54250 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
54252 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54253 gl_AC_TYPE_LONG_LONG.
54255 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
54257 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54259 2004-09-18 Simon Josefsson <jas@extundo.com>
54260 and Paul Eggert <eggert@cs.ucla.edu>
54262 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54263 calls with autoreconf. Define GL_LIB.
54265 2004-09-14 Karl Berry <karl@gnu.org>
54267 * config/srclist.txt: unsync setenv.c, sigh.
54269 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
54271 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54272 Problem reported by Bruno Haible in:
54273 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54275 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
54277 * config/srclist.txt: Comment out argp-pvh.c.
54279 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
54281 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54282 in case some system header has #define'd it. Problem reported by
54283 Soeren D. Schulze in
54284 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54286 2004-09-09 Karl Berry <karl@gnu.org>
54288 * regex.[ch]: delete from the root. These were supposed to be
54289 synced with emacs cvs, but this has not happened for about
54290 a year, and anyway nothing else uses emacs regex.[ch].
54291 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54292 lib/regex[.ch] is untouched.
54294 2004-09-09 Bruno Haible <bruno@clisp.org>
54296 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54298 2004-09-09 Bruno Haible <bruno@clisp.org>
54300 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54302 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54304 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
54306 * modules/xvasprintf: New file.
54307 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54309 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
54311 * lib/xvasprintf.h: New file.
54312 * lib/xvasprintf.c: New file.
54313 * lib/xasprintf.c: New file.
54315 2004-09-08 Bruno Haible <bruno@clisp.org>
54317 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54319 2004-09-08 Bruno Haible <bruno@clisp.org>
54321 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54322 length is > INT_MAX.
54323 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54326 2004-09-08 Bruno Haible <bruno@clisp.org>
54328 * lib/stdint_.h: New file, taken from GNU clisp.
54330 2004-09-08 Bruno Haible <bruno@clisp.org>
54331 Oskar Liljeblad <oskar@osk.mine.nu>
54333 * modules/stdint: New file.
54334 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54336 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54338 Import from coreutils.
54339 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54340 strings on unbounded length. alloca's performance benefits aren't
54341 that important here.
54342 (V_STRDUP): Remove.
54343 (parse_with_separator): New function, with most of the internals
54344 of the old parse_user_spec. Allow user to omit both user and group,
54345 for compatibility with FreeBSD.
54346 Clone only the user name, not the entire spec.
54347 Do not set *uid, *gid unless entirely successful.
54348 Avoid memory leak in some failing cases.
54349 Fix regression for USER.GROUP reported by Dmitry V. Levin in
54350 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54351 (parse_user_spec): Rewrite to use parse_with_separator.
54353 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54355 * modules/userspec: Don't depend on alloca.
54357 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54359 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54361 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
54363 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54364 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54365 utimecmp, utimens, xnanosleep. Rename sha to sha1.
54367 2004-08-16 Simon Josefsson <jas@extundo.com>
54369 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54370 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54371 Add --dry-run for --import.
54372 Let user provided command line parameters override configure.ac
54375 2004-08-12 Simon Josefsson <jas@extundo.com>
54377 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54378 as discussed with Paul Eggert in threads rooted at
54379 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54381 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54382 Before, the test was empty, and relied on ELIDE_CODE in source
54384 (gl_PREREQ_GETOPT): New macro.
54385 (gl_GETOPT): Use them.
54387 2004-08-12 Simon Josefsson <jas@extundo.com>
54389 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54390 * lib/getopt_.h: Renamed from getopt.h.
54392 2004-08-12 Simon Josefsson <jas@extundo.com>
54394 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54395 Change default library name from libfoo to libgnu.
54396 Now, if you have a configure.ac that says:
54399 gl_MODULES(error getopt etcetera)
54401 you can import all you need by running:
54402 ../gnulib/gnulib-tool --import
54404 * modules/getopt (Files): Rename getopt.h to getopt_.h.
54405 (Makefile.am): Rewrite, use logic from argz.
54406 (Include): Use <getopt.h> instead of "getopt.h".
54408 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54410 * modules/argp (Files): Add m4/unlocked-io.m4.
54411 (Depends-on): Add extensions.
54413 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54415 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54416 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54417 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54418 Check for program_invocation_name, program_invocation_short_name,
54419 flockfile, funlockfile, features.h, _getopt_long_only_r.
54421 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54423 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54424 its complicated substitute.
54425 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54426 and program_invocation_name.
54427 (__argp_basename) [!_LIBC]: Remove; the only use was
54428 replaced by its body.
54429 (__argp_short_program_name): Change condition from
54430 !defined __argp_short_program_name to
54431 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54432 to match argp-namefrob.h.
54433 (__argp_failure): Don't assume strerror_r returns char *.
54434 * lib/argp-parse.c (N_): Define unconditionally.
54435 (argp_default_options): Fill out initializers with 0 to avoid
54438 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54440 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54443 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54445 Merge from coreutils.
54447 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54449 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54450 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54452 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54454 Merge from coreutils.
54456 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54457 wmemchr or wmemcpy. Problem reported by Robert Dahlem
54458 for Reliant Unix 5.43.
54460 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54461 (union fooround): Use uintmax_t, not long int.
54462 The rest is a merge from libc:
54463 [defined _LIBC]: Include <shlib-compat.h>.
54464 (_obstack) [defined _LIBC]: Remove after 2.3.4.
54466 * lib/settime.c (settime): Recode to avoid warning with
54469 * lib/strverscmp.c: Convert to UTF-8.
54471 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54473 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54476 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54478 * modules/xalloc-die: New file.
54479 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54481 * modules/md5 (Files): Add m4/uint32_t.m4.
54482 * modules/sha1: Renamed from modules/sha.
54484 Rename lib/sha.h to lib/sha1.h.
54485 Rename lib/sha.c to lib/sha1.c.
54486 Rename m4/sha.m4 to m4/sha1.m4.
54487 (lib_SOURCES): Likewise.
54488 (configure.ac): Rename gl_SHA to gl_SHA1.
54489 (Include): sha.h -> sha1.h.
54491 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54493 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54494 * m4/sha1.m4: Renamed from sha.m4.
54495 (gl_SHA1): Renamed from gl_SHA. All uses changed.
54497 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54499 * lib/obstack.h (obstack_empty_p):
54500 Don't assume that chunk->contents is suitably aligned.
54501 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54502 Likewise. Problem reported by Benno in
54503 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54505 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54506 readable. This could be improved further but it'd take some work.
54508 2004-08-08 Simon Josefsson <jas@extundo.com>
54510 * modules/xgethostname (Depends-on): Remove exit and error (not
54513 * modules/getpass-gnu: Add getpass.h.
54514 (Depends-on): Add stdbool.
54515 * modules/getpass: Add getpass.h.
54517 2004-08-08 Simon Josefsson <jas@extundo.com>
54519 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54520 Check getpass declaration.
54522 2004-08-08 Simon Josefsson <jas@extundo.com>
54524 * lib/xgethostname.c: Don't include error.h (not used).
54526 * lib/getpass.h: Add.
54527 * lib/getpass.c: Include getpass.h first.
54529 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
54531 * lib/xalloc-die.c: New file.
54532 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54534 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54535 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54537 (_, N_, xalloc_die): Move to xalloc-die.c.
54538 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54539 so that we needn't mess with xalloc_msg_memory_exhausted.
54541 * lib/sha1.h: Renamed from sha.h.
54542 (SHA1_H): Renamed from _SHA_H.
54543 (sha1_ctx): Renamed from sha_ctx.
54544 (sha1_init_ctx): Renamed from sha_init_ctx.
54545 (sha1_process_block): Renamed from sha_process_block.
54546 (sha1_process_bytes): Renamed from sha_process_bytes.
54547 (sha1_finish_ctx): Renamed from sha_finish_ctx.
54548 (sha1_read_ctx): Renamed from sha_read_ctx.
54549 (sha1_stream): Renamed from sha_stream.
54550 (sha1_buffer): Renamed from sha_buffer.
54551 * lib/sha1.c: Likewise; renamed from sha.c.
54552 Do not include <sys/types.h>.
54553 Include <stddef.h> rather than <stdlib.h>.
54555 2004-08-08 Bruno Haible <bruno@clisp.org>
54557 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54558 FILESYSTEM_PREFIX_LEN.
54559 * lib/progreloc.c: Likewise.
54560 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54562 2004-08-06 Simon Josefsson <jas@extundo.com>
54564 * modules/progname (Depends-on): Don't depend on stdbool.
54566 2004-08-06 Simon Josefsson <jas@extundo.com>
54568 * modules/getsubopt: New file.
54569 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54572 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54574 More merge from coreutils.
54576 * m4/utimens.m4, m4/utimecmp.m4: New files.
54577 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54578 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54579 prereq.m4, sha.m4: Import changes from coreutils.
54581 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54583 More merge from coreutils.
54584 * modules/raise, modules/readtokens0, modules/utimens:
54585 * modules/utimecmp, module/xnanosleep: New files.
54586 * modules/strftime: Add lib/strftime.h.
54587 Change include from <time.h> to "strftime.h".
54588 * modules/yesno: Add lib/yesno.h.
54589 * modules/backupfile: Remove lib/addext.c.
54590 * modules/euidaccess: Add stat-macros.h.
54591 * modules/canonicalize, modules/euidaccess,
54592 modules/filemode, modules/lchown, modules/makepath,
54593 modules/rmdir, modules/stat: Likewise.
54595 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54598 * lib/argp-help.c (make_hol, hol_append): Don't assume that
54599 SIZE_MAX is a valid preprocessor constant.
54600 (__argp_basename): Change from "#ifndef _LIBC"
54601 to "#ifndef __argp_short_program_name", so that
54602 we don't compile these functions for tar.
54604 More merges from coreutils.
54605 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54606 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54607 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54608 * lib/addext.c: Remove; no longer needed.
54609 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54610 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54611 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54612 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54613 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54614 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54615 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54616 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54617 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54618 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54619 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54620 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54621 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54622 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54623 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54624 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54625 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54626 Import changes from coreutils.
54628 2004-08-05 Simon Josefsson <jas@extundo.com>
54630 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54632 2004-08-05 Simon Josefsson <jas@extundo.com>
54634 * m4/getsubopt.m4: New file.
54636 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54638 Merge from coreutils.
54640 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54641 * m4/getcwd-path-max.m4: New files.
54643 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54644 FILESYSTEM_PREFIX_LEN ->
54645 FILE_SYSTEM_PREFIX_LEN.
54646 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54647 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54648 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54649 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54651 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54652 prerequisite modules now handle the DOS stuff.
54653 Don't check for unistd.h.
54655 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54657 Merge from coreutils.
54659 * lib/.gdb-history: Remove; this doesn't belong here.
54661 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54662 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54663 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54664 * lib/getcwd.c: New files.
54666 * lib/dirname.h: Include <stdbool.h>.
54667 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54668 for consistency with POSIX terminology. All uses changed.
54669 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54670 (strip_trailing_slashes): Use bool for booleans.
54671 * lib/stripslash.c (strip_trailing_slashes): Likewise.
54673 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54674 sometimes returns a positive errno value even when it succeeds.
54675 (print_errno_message) [!LIBC]: Fall back on strerror if
54676 __strerror_r fails.
54678 * lib/path-concat.c (mempcpy): Don't define if a system header defines
54679 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54680 (longest_relative_suffix): New function.
54681 (path_concat): Use it. Assume first argument is not NULL.
54682 Port to DOS. Omit redundant separators.
54683 Report an error instead of returning NULL.
54684 Use mempcpy instead of memcpy.
54685 (xpath_concat): Remove: not declared or used.
54687 * lib/same.h: Include <stdbool.h>
54688 (same_name): Return bool, not int.
54689 * lib/same.c (same_name): Likewise.
54690 (errno): Don't declare; we assume C89 or better now.
54692 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54693 if not already defined.
54695 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54696 * lib/dup-safer.c (errno): Likewise.
54698 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54700 Merge from coreutils.
54701 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54702 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54703 * modules/path-concat: Don't depend on strdup.
54705 2004-08-03 Simon Josefsson <jas@extundo.com>
54707 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54708 * lib/progname.h: Don't include stdbool.h.
54710 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54712 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54713 * MODULES.html.sh (func_all_modules): Remove fatal.
54715 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54717 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54719 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54721 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54724 2004-08-02 Simon Josefsson <jas@extundo.com>
54726 * lib/getsubopt.h: New file, with comments from Bruno Haible.
54727 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54728 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54730 2004-08-01 Simon Josefsson <jas@extundo.com>
54732 * lib/xgetdomainname.c: Include stdlib.h, for free().
54734 2004-07-19 Bruno Haible <bruno@clisp.org>
54736 * MODULES.html.sh (func_all_modules): Add dummy.
54738 2004-07-16 Simon Josefsson <jas@extundo.com>
54740 * modules/dummy: New file.
54742 2004-07-16 Simon Josefsson <jas@extundo.com>
54744 * lib/dummy.c: New file.
54746 2004-07-16 Bruno Haible <bruno@clisp.org>
54748 * lib/backupfile.h: Add extern "C" for C++.
54749 * lib/closeout.h: Likewise.
54750 * lib/copy-file.h: Likewise.
54751 * lib/findprog.h: Likewise.
54752 * lib/full-write.h: Likewise.
54753 * lib/pathname.h: Likewise.
54754 * lib/progname.h: Likewise.
54755 * lib/stpcpy.h: Likewise.
54756 * lib/stpncpy.h: Likewise.
54757 * lib/strcase.h: Likewise.
54758 * lib/strstr.h: Likewise.
54759 * lib/xalloc.h: Likewise.
54761 * lib/mbswidth.h: Add extern "C" for C++.
54762 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54764 2004-07-13 Robert Millan <robertmh@gnu.org>
54766 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54768 2004-07-09 Simon Josefsson <jas@extundo.com>
54770 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
54771 failed without this.)
54773 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54775 * modules/chown (Files): Add lib/fchown-stub.c, since
54776 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54778 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54780 * lib/fchown-stub.c: New file.
54782 2004-06-24 Jim Meyering <jim@meyering.net>
54784 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54786 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54788 * modules/argz: Omit "#include".
54790 * MODULES.html.sh (func_all_modules): Add calloc, to match
54791 2004-06-01 addition of calloc module.
54793 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54795 * m4/argz.m4: New file, which is autoupdated from libtool.
54797 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54799 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54802 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54804 * config/srclist-update: Don't insist on "USA." before the
54805 close-comment, as libtool omits the period and puts the */ on a
54807 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54808 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54810 2004-06-22 Gary V. Vaughan <gary@gnu.org>
54812 * modules/argz: New file.
54813 * MODULES.html.sh (func_all_modules): Add argz.
54815 2004-06-12 Jim Meyering <jim@meyering.net>
54816 and Paul Eggert <eggert@cs.ucla.edu>
54818 * modules/hash (Files): Add lib/xalloc.h.
54819 * modules/pipe (Depends-on): Add wait-process.
54820 * modules/stat (Depends-on): Add xalloc.
54821 * modules/userspec (Files): Add lib/userspec.h.
54824 Upgrade from gettext-0.13.
54825 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54826 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54827 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54829 2004-06-10 Jim Meyering <jim@meyering.net>
54831 * lib/calloc.c: New file.
54833 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
54835 * lib/getdate.y (yylex): Allow space between sign and number.
54836 Problem reported by Dan Jacobson.
54838 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54840 Merge from coreutils CVS.
54842 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54843 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54844 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54845 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54846 xstrtol.m4: Fix copyright date and/or serial number.
54848 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54849 See if we need an fchown replacement.
54850 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54851 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54852 and use the replacement function if we detect either defect.
54854 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54857 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54858 and Jim Meyering <jim@meyering.net>
54860 Merge from coreutils CVS.
54862 * lib/stat-macros.h: New file, with contents from file-type.h
54863 and coreutils' system.h.
54864 * lib/file-type.c: Include "stat-macros.h".
54865 * lib/file-type.h (file_type): Move all macro definitions to new file,
54868 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54869 Wrap old code with this conditional.
54870 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54871 function that does not dereference symlinks.
54872 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54874 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54875 dependency problems.
54876 (xreadlink): Accept new arg SIZE, for efficiency.
54877 All decls and uses changed.
54878 * lib/xreadlink.h: Include <stddef.h>, for size_t.
54880 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54881 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54883 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54886 2004-06-01 Jim Meyering <jim@meyering.net>
54888 * m4/calloc.m4: New file.
54890 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
54892 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54893 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
54894 Also, fix a typo in a diagnostic.
54896 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54898 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54899 or AC_FUNC_REALLOC.
54901 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54903 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54904 macros to be defined.
54905 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54906 the allocator returns NULL because the requested size is zero.
54908 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
54910 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54911 var. Add comment explaining why libc still defines it. This
54912 merges the following patch from glibc:
54913 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54915 2004-05-20 Andreas Schwab <schwab@suse.de>
54917 * m4/free.m4: Replace free if it not known to work, not the other
54920 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
54922 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
54923 present in glibc since revision 1.1 of this file.
54924 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54925 obstack_alignment_mask, obstack_alloc, obstack_base,
54926 obstack_blank, obstack_blank_fast, obstack_chunk_size,
54927 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54928 obstack_grow0, obstack_init, obstack_int_grow,
54929 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54930 obstack_next_free, obstack_object_size, obstack_ptr_grow,
54931 obstack_ptr_grow_fast, obstack_room): Remove declarations of
54932 nonexistent functions.
54934 2004-05-18 Karl Berry <karl@gnu.org>
54936 * config/srclist.txt: break link for vasnprintf.c.
54938 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54940 Port obstack to the AS/400, where pointers are 16 bytes wide and
54941 you cannot cast an integer to a valid pointer. This patch is
54942 currently waiting to be integrated into glibc; see
54943 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54945 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54946 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54947 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54948 (struct obstack): temp member is now a union of a pointer and
54949 an integer, instead of an integer. All integer uses changed.
54950 This does not affect the physical layout of struct obstack,
54951 except on hosts (like the AS/400) where the size or alignment of
54952 void * is greater than that of ptrdiff_t.
54953 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54954 __STDC__)]: Store temporary in pointer member of union, not
54956 * lib/obstack.c: Include <stddef.h>, for offsetof.
54957 (struct fooalign): Remove; it doesn't need a name.
54958 (union fooround): Change double to long double, and add void *.
54959 (DEFAULT_ALIGNMENT): Use offsetof to compute.
54960 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54961 not a macro. Hence the values are always int; so remove all
54962 casts-to-int in uses.
54964 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54966 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54967 we can get this patch merged into glibc.
54969 2004-05-17 Derek R. Price <derek@ximbiot.com>
54970 Paul Eggert <eggert@cs.ucla.edu>
54972 * m4/argp: Depend on alloca.
54974 2004-05-17 Derek R. Price <derek@ximbiot.com>
54975 Paul Eggert <eggert@cs.ucla.edu>
54977 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54980 2004-05-17 Bruno Haible <bruno@clisp.org>
54982 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54983 precision that consists of a '.' followed by an empty digit string.
54984 Patch by Tor Lillqvist <tml@iki.fi>.
54986 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54988 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54989 for backward compatibility with older code. We need our own
54990 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
54991 it under some other name, and our alloca.h will define it.
54993 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54994 Derek Price <derek@ximbiot.com>
54996 * lib/alloca.c: Include <alloca.h>, to get our interface.
54997 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54998 include <alloca.h> first. Use C89 prototype for alloca; this
54999 requires including <stddef.h> for size_t. Use extern "C" if C++.
55000 Use #elif for simplicity, since we can assume C89 now.
55001 Don't try to source the system alloca.h since it will not be found
55002 and to prevent recursively including its replacement.
55003 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55004 * lib/regex.c: Likewise.
55006 2004-05-16 Derek Price <derek@ximbiot.com>
55007 Paul Eggert <eggert@cs.ucla.edu>
55009 getline cleanup. This changes the getndelim2 API: both order of
55010 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55013 * lib/getline.c: Don't include stddef.h or stdio.h, since our
55014 interface does that.
55015 (getline): Always use getdelim, so that we don't have two
55016 copies of this code.
55017 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55019 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55020 (GETNDELIM2_MAXIMUM): New macro.
55021 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
55022 instead of the old practice of delim2==0. All callers changed.
55023 Return -1 on overflow, instead of returning junk.
55024 Do not set *linesize unless allocation succeeds.
55025 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55026 that we include sys/types.h.
55027 * lib/getnline.h: Likewise.
55028 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55029 (getndelim2): Reorder arguments.
55030 * lib/getnline.c (getnline, getndelim):
55031 Don't discard the NMAX argument.
55032 (getnline): Invoke getndelim, to avoid code duplication.
55033 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55034 of (size_t) -1 by callers of the getnline family.
55036 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
55038 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55039 Check for gettimeofday.
55040 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55041 Check for settimeofday, stime.
55043 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
55045 * lib/nanosleep.c (suspended): Change its type from int to
55046 sig_atomic_t volatile.
55047 (first_call): Make it private to rpl_nanosleep, and have it
55048 be zero initially as that's a bit faster.
55049 (my_usleep): Round up fractional times instead of truncating them,
55050 as this is the usual meaning for 'sleep'.
55052 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55054 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55055 (ENOSYS): Define if not defined.
55056 (settime): Fall back on stime if it exists and settimeofday fails.
55057 But don't bother with fallbacks if a method fails with errno == EPERM.
55059 2004-05-11 Jim Meyering <jim@meyering.net>
55061 Prior to this change, the save_cwd caller required read access to the
55062 current directory on most systems (ones with the fchdir function).
55064 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55065 fails, try write-only, and finally, resort to using xgetcwd.
55067 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
55069 * lib/obstack.c, obstack.h: Import changes from libc.
55071 2004-04-28 Bruno Haible <bruno@clisp.org>
55073 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55074 also implicitly appends .exe to executables.
55075 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55076 accepts Windows pathnames.
55077 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55078 Treat Cygwin like Windows, since it now accepts Windows pathnames.
55079 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55080 Treat Cygwin like Windows, since it now accepts Windows pathnames.
55081 Reported by Derek Robert Price <derek@ximbiot.com>.
55083 2004-04-21 Karl Berry <karl@gnu.org>
55085 * config/srclist.txt (localcharset.c): break sync.
55087 2004-04-20 Paul Eggert <eggert@twinsun.com>
55089 * m4/host-os.m4: Add a copyright notice.
55091 2004-04-20 Jim Meyering <jim@meyering.net>
55093 Change UTILS_ to gl_ in AC_DEFINE'd names.
55094 Change utils_- and jm_-prefixed variables, too.
55095 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55096 UTILS_FUNC_MKDIR_TRAILING_SLASH.
55097 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55099 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55100 Don't emit trailing blanks.
55101 Also rename jm_-prefixed variables to have gl_ prefix.
55103 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55104 Also rename jm_-prefixed variables to have gl_ prefix.
55106 * m4/jm-macros.m4: Reflect the renamings.
55107 * m4/prereq.m4: Likewise.
55109 2004-04-20 Jim Meyering <jim@meyering.net>
55111 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55114 2004-04-20 Jim Meyering <jim@meyering.net>
55115 Bruno Haible <bruno@clisp.org>
55117 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55118 memory when realloc fails.
55120 2004-04-19 Jim Meyering <jim@meyering.net>
55122 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55123 now that readutmp.c may call `free (0)'.
55125 2004-04-19 Bruno Haible <bruno@clisp.org>
55127 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55128 * m4/inttypes_h.m4: Likewise.
55129 * m4/stdint_h.m4: Likewise.
55130 * m4/intmax_t.m4: Likewise.
55131 * m4/uintmax_t.m4: Likewise.
55133 2004-04-18 Jim Meyering <jim@meyering.net>
55135 * m4/prereq.m4: Don't forbid jm_ prefix.
55137 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55138 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55139 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55140 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55141 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55142 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55143 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55144 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55145 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55146 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55147 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55148 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55149 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55150 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55151 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55152 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55153 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55154 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55155 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55157 2004-04-18 Jim Meyering <jim@meyering.net>
55159 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55160 failure, don't leak memory and do call END_UTMP_ENT.
55162 2004-04-16 Jim Meyering <jim@meyering.net>
55164 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
55165 coreutils' stat program.
55166 (gl_PREREQ): Don't require jm_PREREQ_STAT.
55168 2004-04-11 Paul Eggert <eggert@twinsun.com>
55170 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55172 (CHAR_BIT): Remove, since we assume C89.
55173 Include <stdint.h> if available, as per current Autoconf CVS advice.
55175 2004-03-31 Jim Meyering <jim@meyering.net>
55177 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55178 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55179 * m4/xalloc.m4: Likewise.
55181 2004-03-30 Paul Eggert <eggert@twinsun.com>
55183 Merge from coreutils.
55185 * m4/inttostr.m4: New file.
55186 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55187 Require AM_STDBOOL_H and gl_TIMESPEC instead.
55188 Require gl_CLOCK_TIME.
55189 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55191 2004-03-30 Paul Eggert <eggert@twinsun.com>
55193 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55194 not bool, to be more consistent with Unix conventions.
55195 Suggested by Bruno Haible.
55197 Merge from coreutils.
55199 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55200 * lib/umaxtostr.c: New files.
55202 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55203 the usual <time.h> dance.
55204 (get_date): Change signature to support fractional time stamps.
55205 All callers changed.
55206 * lib/getdate.y: Include "getdate.h" first, as we can now
55207 assume C89 and don't need to worry about 'const'.
55208 Similarly, include "unlocked-io.h" near start, not in middle.
55209 Include <limits.h>.
55210 (textint.value): Use long int rather than int.
55211 (textint.digits): Use size_t rather than int.
55212 (BILLION, LOG10_BILLION): New constants.
55213 (parser_control): New member rel_ns. Members day_ordinal,
55214 time_zone, month, day, hour, minutes, rel_year, rel_month,
55215 rel_day, rel_hour, rel_minutes, rel_seconds
55216 are now long int, not int. Member seconds is now struct timespec,
55217 not int. New member timespec_seen. Members dates_seen, days_seen,
55218 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55220 (%union.intval): Now long int, not int.
55221 New member timespec.
55222 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55223 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55224 (spec): Now is a timespec or an item list.
55225 (timespec, items): New nonterminals.
55226 (time, rel, relunit, number, get_date):
55227 Add support for fractional seconds.
55228 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55229 (gmtime, localtime, mktime): Remove decls; not needed with C89.
55230 (to_hour): First arg is now long int, not int.
55231 (to_year): Returns long int, not int.
55232 Don't treat year -70 like 70.
55233 (tm_diff): Returns long int, not int.
55234 (lookup_word): Use bool instead of int when appropriate.
55235 (yylex): Use size_t for count, not int.
55236 Detect overflow when parsing large integer constants.
55237 Add support for fractions.
55238 (get_date): Make pointers 'const' if possible.
55239 Use more-portable code to detect integer overflow.
55240 (main) [TEST]: Adjust to above changes. Test for localtime failure.
55241 Don't use ctime; it's not reliable if the year has >4 digits.
55243 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55244 This is for compatibility with BSD.
55246 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55247 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55248 From coreutils' system.h.
55250 * lib/userspec.c: Don't include "posixver.h".
55251 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55252 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55253 compatible extension. Simplify code by removing a boolean int
55254 that was always nonzero if a string was nonnull.
55256 2004-03-30 Jim Meyering <jim@meyering.net>
55258 Merge from coreutils.
55260 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55261 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55262 on some systems one must include <grp.h> before it.
55263 Reported by Christian Krackowizer.
55265 2004-03-30 Jim Meyering <jim@meyering.net>
55267 Merge from coreutils.
55269 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55271 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55272 an empty input stream.
55274 * lib/readtokens.c: Include <stdbool.h>.
55275 (readtoken): Use `size_t' rather than int/long.
55276 All callers adjusted.
55277 Use `bool' rather than `int' where appropriate.
55278 Use memset rather than an explicit loop.
55279 Use x2nrealloc rather than xrealloc.
55280 Allow the use of `\0' as a delimiter.
55281 (readtokens): Likewise.
55282 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55284 2004-03-30 Jim Meyering <jim@meyering.net>
55286 * m4/realloc.m4: Remove file, since now it does no more than
55287 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55288 the `configure.ac' section of module/realloc.
55289 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55291 2004-03-30 Bruno Haible <bruno@clisp.org>
55293 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55296 2004-03-29 Paul Eggert <eggert@twinsun.com>
55298 Merge changes to getloadavg.c from coreutils and Emacs.
55300 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55301 Define to an expression, not to the empty string.
55302 Include cloexec.h and xalloc.h.
55303 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55304 Use set_cloexec_flag rather than rolling our own.
55305 * lib/cloexec.c, lib/cloexec.h: New files.
55307 2004-03-29 Paul Eggert <eggert@twinsun.com>
55309 * m4/cloexec.m4: New file.
55311 2004-03-18 Paul Eggert <eggert@twinsun.com>
55313 * lib/getopt.h: Sync with libc CVS.
55315 2004-03-18 Paul Eggert <eggert@twinsun.com>
55316 Bruno Haible <bruno@clisp.org>
55318 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55321 2004-03-18 Paul Eggert <eggert@twinsun.com>
55322 Bruno Haible <bruno@clisp.org>
55324 * lib/mbswidth.h: Include <wchar.h> only if
55325 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55327 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55329 2004-03-09 Paul Eggert <eggert@twinsun.com>
55331 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55332 Sync with libc CVS.
55333 * lib/getopt_int.h: New file, also synced from libc.
55335 2004-03-09 Paul Eggert <eggert@twinsun.com>
55337 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55338 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
55339 Bring back getopt.c, getopt.h, getopt1.c.
55341 2004-03-07 Paul Eggert <eggert@twinsun.com>
55343 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55344 All uses changed. Check for sa_sigaction member; this fixes
55345 a bug first reported by Jason Andrade in
55346 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55348 2004-03-07 Paul Eggert <eggert@twinsun.com>
55350 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
55351 '#if' expressions. Unlike the code it replaces, it does not
55352 depend on (defined _SC_PAGESIZE). However, it does depend on
55353 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55354 first reported by Jason Andrade in
55355 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55357 2004-02-25 Simon Josefsson <jas@extundo.com>
55359 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55361 2004-02-25 Simon Josefsson <jas@extundo.com>
55363 * lib/strdup.h: New file.
55364 * lib/strdup.c: Include it.
55365 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55366 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55368 2004-02-23 Karl Berry <karl@gnu.org>
55370 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55371 (from fencepost.gnu.org:/gd/gnuorg).
55373 2004-02-23 Karl Berry <karl@gnu.org>
55375 * config/srclistvars.sh (GNUORG) [karl]: redefine.
55376 * config/srclist.txt: add maintain/standards documents.
55378 2004-02-18 Bruno Haible <bruno@clisp.org>
55380 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55381 Reported by Derek Robert Price <derek@ximbiot.com>.
55383 2004-02-16 Karl Berry <karl@gnu.org>
55385 * config/mkinstalldirs, install-sh: update from automake.
55387 2004-02-06 Karl Berry <karl@gnu.org>
55389 * m4/po.m4: update from gettext 0.14.1.
55391 2004-02-06 Karl Berry <karl@gnu.org>
55393 * lib/config.charset: update from gettext 0.14.1.
55395 2004-02-05 Paul Eggert <eggert@twinsun.com>
55397 Add comments and code, prompted by suggestions from Bruno Haible
55399 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
55400 describing the enum quoting_style values.
55401 * lib/quotearg.c (quotearg_alloc): New function.
55402 (quotearg_buffer_restyled): Treat lone { and } as special.
55403 Treat = as special. Work around bug with older shells
55404 that "see" a '\' that is really the 2nd byte of a multibyte char.
55405 Quote empty string with shell_quoting_style.
55407 2004-02-03 Bruno Haible <bruno@clisp.org>
55409 * m4/pipe.m4: New file, from GNU gettext.
55411 2004-02-03 Bruno Haible <bruno@clisp.org>
55413 * lib/pipe.h: New file, from GNU gettext.
55414 * lib/pipe.c: New file, from GNU gettext.
55416 2004-01-27 Bruno Haible <bruno@clisp.org>
55418 * m4/execute.m4: New file, from GNU gettext.
55420 2004-01-27 Bruno Haible <bruno@clisp.org>
55422 * lib/execute.h: New file, from GNU gettext.
55423 * lib/execute.c: New file, from GNU gettext.
55424 * lib/w32spawn.h: New file, from GNU gettext.
55426 2004-01-24 Paul Eggert <eggert@twinsun.com>
55428 Merge from diffutils.
55430 * lib/file-type.c (file_type): Add typed memory objects.
55431 * lib/file-type.h (S_TYPEISTMO): New macro.
55433 * lib/c-stack.h (c_stack_action): Remove argv argument.
55434 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
55435 (die): Don't calculate message unless segv_action returns.
55436 (get_stack_location, min_address_from_argv, max_address_from_argv,
55437 volatile stack_base, volatile_stack_size): Remove.
55438 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55439 that every segmentation violation is a stack overflow. (Ouch!)
55440 See Debian bug 136249 (still outstanding) for more info about why
55441 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55443 2004-01-24 Paul Eggert <eggert@twinsun.com>
55445 Exit-status fix from coreutils.
55447 Use exit_failure consistently in place of EXIT_FAILURE,
55448 so that program exit statuses are consistent on failure.
55450 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55451 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55452 * lib/argmatch.h: Comment fix to match the above.
55453 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55454 Now a macro referring to exit_failure, instead of a separate
55455 variable. Include "exitfail.h" to get it.
55456 * lib/xstrtol.h: Include "exitfail.h".
55457 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55459 * lib/long-options.c (parse_long_options): Use prototype
55460 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
55463 2004-01-21 Jim Meyering <jim@meyering.net>
55465 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55466 so as not to conflict with a different-sized __mktime_internal
55467 function in GNU libc.
55468 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55469 Problem building statically-linked `ls' reported by Michael Brunnbauer.
55471 2004-01-20 Karl Berry <karl@gnu.org>
55473 * config/config.guess: update from config.
55475 * config/srclistvars.sh: GNUWWWLICENSES for karl.
55477 2004-01-20 Bruno Haible <bruno@clisp.org>
55479 Safer stack allocation.
55480 * lib/setenv.c: Include allocsa.h.
55481 (alloca): Remove fallback definition.
55482 (freea): Remove macro.
55483 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55486 2004-01-20 Bruno Haible <bruno@clisp.org>
55488 * m4/eealloc.m4: New file, from GNU gettext.
55490 2004-01-20 Bruno Haible <bruno@clisp.org>
55492 * m4/allocsa.m4: New file, from GNU gettext.
55494 2004-01-20 Bruno Haible <bruno@clisp.org>
55496 * lib/xallocsa.h: New file, from GNU gettext.
55497 * lib/xallocsa.c: New file, from GNU gettext.
55499 2004-01-20 Bruno Haible <bruno@clisp.org>
55501 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55503 2004-01-20 Bruno Haible <bruno@clisp.org>
55505 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55506 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55509 2004-01-20 Bruno Haible <bruno@clisp.org>
55511 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55514 2004-01-20 Bruno Haible <bruno@clisp.org>
55516 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55518 2004-01-20 Bruno Haible <bruno@clisp.org>
55520 * lib/eealloc.h: New file.
55522 2004-01-20 Bruno Haible <bruno@clisp.org>
55524 * lib/binary-io.h: Avoid warnings on Cygwin.
55526 2004-01-20 Bruno Haible <bruno@clisp.org>
55528 * lib/allocsa.h: New file, from GNU gettext.
55529 * lib/allocsa.c: New file, from GNU gettext.
55531 2004-01-18 Karl Berry <karl@gnu.org>
55533 * doc/gpl.texi, doc/lgpl.texi: new files.
55535 2004-01-18 Karl Berry <karl@gnu.org>
55537 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55538 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55540 2004-01-15 Paul Eggert <eggert@twinsun.com>
55542 Merge from coreutils.
55544 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55545 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55546 (gl_DEFAULT_POSIX2_VERSION): Move
55547 the documentation from 'configure' into 'config.hin',
55548 so that 'configure --help' isn't burdened by it and
55549 we don't have to worry about its formatting there.
55550 Reword the documentation so that it's more succinct
55551 and can be run together into a single paragraph.
55552 * m4/same.m4 (gl_SAME): Check for pathconf.
55554 2004-01-15 Paul Eggert <eggert@twinsun.com>
55556 Merge from coreutils.
55558 * lib/posixver.c: Include posixver.h.
55560 * lib/same.c: Include <stdbool.h>, <limits.h>.
55561 (_POSIX_NAME_MAX): Define if not defined.
55563 (same_name): If file names are silently truncated, report
55564 that the file names are the same if they are the same after
55565 the silent truncation.
55567 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55568 conversion function.
55569 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
55570 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
55573 2004-01-15 Jim Meyering <jim@meyering.net>
55575 Merge from coreutils.
55577 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55578 if no library is required.
55579 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55580 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55581 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55582 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55583 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55584 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55585 value, $ac_cv_search_crypt, if it's "none required".
55586 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55587 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55588 not gl_FUNC_GETLOADAVG.
55589 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55590 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55592 2004-01-15 Jim Meyering <jim@meyering.net>
55594 Merge from coreutils.
55596 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
55597 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
55598 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55600 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55601 optional configure-time default.
55603 * lib/version-etc.c (version_etc_copyright): Update copyright date.
55605 * lib/xreadlink.c (xreadlink): Correct outdated comment.
55607 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
55609 Merge from coreutils.
55611 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55612 value, $ac_cv_search_nanosleep, if it's "none required".
55614 2004-01-14 Paul Eggert <eggert@twinsun.com>
55616 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55617 with like-named macro in fnmatch.c.
55618 (EXT): Use an internal constant instead.
55620 Merge fnmatch patches from glibc.
55621 * lib/fnmatch.c (mbsinit): Remove define.
55622 Add libc_hidden_ver (__fnmatch, fnmatch).
55623 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55624 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55626 2004-01-14 Karl Berry <karl@gnu.org>
55628 * config/install-sh: update from automake.
55630 2004-01-13 Karl Berry <karl@gnu.org>
55632 * config/install-sh: update from automake.
55634 2004-01-09 Karl Berry <karl@gnu.org>
55636 * config/install-sh: update from automake.
55638 2004-01-05 Karl Berry <karl@gnu.org>
55640 * config/config.{sub,guess}: update from config.
55642 2003-12-31 Karl Berry <karl@gnu.org>
55644 * config/depcomp: update from automake.
55646 2003-12-14 Karl Berry <karl@gnu.org>
55648 * lib/config.charset: update from gettext-runtime.
55650 2003-12-03 Paul Eggert <eggert@twinsun.com>
55652 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55653 Bug reported by Alfred M. Szmidt.
55655 2003-12-03 Bruno Haible <bruno@clisp.org>
55657 * m4/gettext.m4: Upgrade from gettext-0.13.
55658 * m4/po.m4: Upgrade from gettext-0.13.
55659 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55660 * m4/intmax.m4: New file, from gettext-0.13.
55661 * m4/printf-posix.m4: New file, from gettext-0.13.
55663 2003-11-29 Karl Berry <karl@gnu.org>
55665 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55667 2003-11-25 Paul Eggert <eggert@twinsun.com>
55668 Bruno Haible <bruno@clisp.org>
55670 * lib/printf-parse.h: Don't include sys/types.h.
55671 (ARG_NONE): New macro.
55672 (char_directive): Change type of *arg_index fields to size_t.
55673 * lib/printf-parse.c: Don't include sys/types.h.
55674 (SSIZE_MAX): Remove macro.
55675 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55676 Remove unnecessary overflow check.
55677 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55680 2003-11-25 Bruno Haible <bruno@clisp.org>
55682 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55684 2003-11-25 Bruno Haible <bruno@clisp.org>
55686 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55689 2003-11-24 Paul Eggert <eggert@twinsun.com>
55691 * modules/alloca: Remove dependency on xalloc.
55693 2003-11-24 Paul Eggert <eggert@twinsun.com>
55695 * lib/alloca.c: Remove dependency on xalloc module.
55696 (xalloc_die): Remove.
55697 (memory_full) [!defined emacs]: New macro.
55698 [!defined emacs]: Don't include xalloc.h.
55699 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55700 address arithmetic overflows. Change datatypes a bit to avoid
55703 2003-11-22 Jim Meyering <jim@meyering.net>
55705 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55708 2003-11-21 Karl Berry <karl@gnu.org>
55710 * config/config.{sub,guess}: update from config.
55712 2003-11-18 Karl Berry <karl@gnu.org>
55714 * config/config.{sub,guess}: update from config.
55716 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55718 2003-11-17 Paul Eggert <eggert@twinsun.com>
55720 * README: Mention that S+T cannot overflow if S is the size of
55721 an existing object and T is sufficiently small.
55723 2003-11-17 Jim Meyering <jim@meyering.net>
55725 On systems without utime and without a utimes function capable of
55726 dealing with a NULL struct utimbuf* argument, this utime replacement
55727 could -- in unusual circumstances -- leak a file descriptor.
55728 * lib/utime.c: Include <unistd.h> and <errno.h>.
55729 (utime_null): Be sure to close `fd' and to preserve errno.
55730 Reported by Geoff Collyer via Arnold Robbins.
55732 2003-11-17 Bruno Haible <bruno@clisp.org>
55734 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55735 (Depends-on): Add xsize.
55737 2003-11-17 Bruno Haible <bruno@clisp.org>
55739 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55741 2003-11-17 Bruno Haible <bruno@clisp.org>
55743 * lib/vasnprintf.c (alloca): Remove fallback definition.
55744 (freea): Remove definition.
55745 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55746 Reported by Paul Eggert.
55748 2003-11-16 Paul Eggert <eggert@twinsun.com>
55749 Bruno Haible <bruno@clisp.org>
55751 Protect against address arithmetic overflow.
55752 * lib/printf-args.h: Include stddef.h.
55753 (arguments): Change type of field 'count' to size_t.
55754 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55755 'unsigned int' where appropriate.
55756 * lib/printf-parse.h: Include sys/types.h.
55757 (char_directive): Change type of *arg_index fields to ssize_t.
55758 (char_directives): Change type of fields 'count', max_*_length to
55760 * lib/printf-parse.c: Include sys/types.h and xsize.h.
55761 (SSIZE_MAX): Define fallback value.
55762 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55763 instead of 'int' where appropriate. Check a_allocated, d_allocated
55764 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55765 * lib/vasnprintf.c: Include xsize.h.
55766 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55767 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55768 overflow. Avoid wraparound when converting a width or precision from
55771 2003-11-16 Bruno Haible <bruno@clisp.org>
55773 Update from GNU gettext.
55774 * lib/printf-parse.c: Generalize to it can be compiled for wide
55776 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55777 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55778 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55779 SNPRINTF): New macros.
55780 Don't include <alloca.h> if the file is used inside libintl.
55781 (local_wcslen): New function, for Solaris 2.5.1.
55782 (VASNPRINTF): Use it instead of wcslen.
55784 2003-11-16 Bruno Haible <bruno@clisp.org>
55786 * lib/xsize.h (xmax): New function.
55787 (xsum, xsum3, xsum4): Declare as "pure" functions.
55789 2003-11-12 Paul Eggert <eggert@twinsun.com>
55791 * modules/xalloc (Files): Undo latest change, since xalloc.h
55792 no longer needs SIZE_MAX or PTRDIFF_MAX.
55794 2003-11-12 Paul Eggert <eggert@twinsun.com>
55796 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55799 2003-11-12 Paul Eggert <eggert@twinsun.com>
55801 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55802 "return", to pacify some unknown compiler. Problem reported
55803 by Joerg Schilling.
55805 2003-11-12 Paul Eggert <eggert@twinsun.com>
55807 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55808 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55809 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
55810 heuristic is just as accurate as far as we know, and it removes a
55811 dependency on size_max.m4 and ptrdiff_max.m4.
55813 2003-11-11 Bruno Haible <bruno@clisp.org>
55815 * modules/xsize (Files): Add m4/size_max.m4.
55816 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55818 2003-11-11 Bruno Haible <bruno@clisp.org>
55820 * m4/size_max.m4: New file.
55821 * m4/ptrdiff_max.m4: New file.
55822 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55823 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55824 (gl_XALLOC): Invoke it.
55826 2003-11-11 Bruno Haible <bruno@clisp.org>
55828 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55829 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55832 2003-11-10 Paul Eggert <eggert@twinsun.com>
55834 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55835 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55836 rejected some allocations of exactly SIZE_MAX - 2 bytes.
55838 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55839 not (size_t) -1, since it's defined here.
55841 2003-11-09 Karl Berry <karl@gnu.org>
55843 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55845 2003-11-06 Paul Eggert <eggert@twinsun.com>
55847 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55848 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55849 Reject sizes of exactly SIZE_MAX bytes.
55850 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55851 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55853 2003-11-05 Bruno Haible <bruno@clisp.org>
55855 * lib/xsize.h: Include limits.h, to avoid a possible collision with
55856 SIZE_MAX defined in <limits.h> on Solaris.
55858 2003-11-04 Jim Meyering <jim@meyering.net>
55860 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55861 variable names, rather than @VAR@.
55862 * modules/poll: Likewise.
55864 2003-11-04 Bruno Haible <bruno@clisp.org>
55866 * modules/xsize: New file.
55867 * modules/linebreak: Depend on xsize.
55868 * MODULES.html.sh (func_all_modules): Add xsize.
55870 2003-11-04 Bruno Haible <bruno@clisp.org>
55872 * m4/xsize.m4: New file.
55874 2003-11-04 Bruno Haible <bruno@clisp.org>
55876 * lib/xsize.h: New file.
55877 * lib/linebreak.c: Include xsize.h.
55878 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55879 argument for overflow.
55880 Suggested by Paul Eggert.
55882 2003-11-03 Karl Berry <karl@gnu.org>
55884 * config/config.{guess,sub}: update from config.
55886 2003-11-03 Jim Meyering <jim@meyering.net>
55888 * modules/userspec (lib_SOURCES): Add userspec.h.
55889 (Include): Add "userspec.h".
55890 Improve description.
55892 2003-11-03 Jim Meyering <jim@meyering.net>
55894 * lib/userspec.c: Include "userspec.h".
55895 * lib/userspec.h: New file.
55897 2003-11-03 Bruno Haible <bruno@clisp.org>
55899 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55901 2003-11-03 Bruno Haible <bruno@clisp.org>
55903 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55904 available, to avoid (extremely rare) race condition.
55905 Suggested by Paul Eggert.
55907 2003-11-02 Karl Berry <karl@gnu.org>
55909 * config/srclist.txt (vasprintf.c): sync broken, sigh.
55911 2003-10-31 Paul Eggert <eggert@twinsun.com>
55913 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55914 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55915 (read_filesystem_list): Set and use me_type_malloced.
55916 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55917 whatever the type happens to be), for brevity and consistency.
55918 Check for size calculation overflow on Alphas running OSF/1.
55920 2003-10-31 Jim Meyering <jim@meyering.net>
55922 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55924 * lib/linebuffer.c: Include <string.h> for declaration of memset.
55926 2003-10-30 Paul Eggert <eggert@twinsun.com>
55927 Bruno Haible <bruno@clisp.org>
55929 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55930 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55932 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
55934 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55935 netbsd*-gnu*. Suggested by Robert Millan.
55937 2003-10-29 Paul Eggert <eggert@twinsun.com>
55939 * modules/group-member: Depend on stdbool.
55941 2003-10-29 Paul Eggert <eggert@twinsun.com>
55943 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55945 2003-10-29 Paul Eggert <eggert@twinsun.com>
55947 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
55948 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
55949 after the 'gnu' in these cases. This fixes some bugs in the
55950 previous change, and is based on suggestions by Robert Millan.
55952 2003-10-29 Paul Eggert <eggert@twinsun.com>
55954 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55955 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
55957 * lib/quotearg.c (quotearg_n_options): Use it.
55958 * lib/group-member.c: Include <stdbool.h>.
55959 (free_group_info): Arg is now const *; don't free arg.
55960 (get_group_info): Now returns bool and accepts struct group_info *,
55961 rather than returning a malloc'ed struct group_info *.
55962 All uses changed. Check for overflow in internal size calculation.
55964 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55965 rather than xmalloc/xrealloc.
55966 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55967 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
55968 conformance bug: the old code used a pointer after freeing the
55969 storage that it addressed.
55970 * lib/hash.c (hash_initialize): Simplify the code by using
55971 xalloc_oversized rather than doing it by hand.
55972 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55973 the buffer preserved. Use free and xmalloc instead.
55974 * lib/quotearg.c (quotearg_n_options): Likewise.
55975 Use a simpler test for size overflow. Don't use xalloc_oversized
55976 because unsigned int might be wider than size_t (!); this suggests
55977 that we should switch from unsigned int to size_t for slot numbers.
55979 2003-10-28 Paul Eggert <eggert@twinsun.com>
55981 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55982 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
55983 NetBSD kernels. Requested by Richard Stallman.
55985 2003-10-27 Paul Eggert <eggert@twinsun.com>
55987 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55988 to allocate the returned structure. Do not allocate a subarray,
55989 as x2nrealloc will do that.
55990 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55991 instead of xnrealloc.
55992 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55994 2003-10-27 Bruno Haible <bruno@clisp.org>
55996 * lib/stdbool_.h: Better support for BeOS.
55998 2003-10-26 Paul Eggert <eggert@twinsun.com>
56000 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56003 2003-10-26 Paul Eggert <eggert@twinsun.com>
56005 * lib/xalloc.h (xalloc_oversized): New static inline function, for
56006 callers that want to do their own size-overflow checking. Include
56007 <stdbool.h>, since xalloc_oversized returns bool.
56008 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
56009 to use xalloc_oversized.
56011 Add two functions x2realloc, x2nrealloc, for programs that grow
56012 arrays dynamically by doubling their sizes.
56013 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56014 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56017 Port to C99 semantics for 'inline' of external functions.
56018 Bug reported by Bruno Haible.
56019 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56020 with the old contents of xnmalloc.
56021 (xnmalloc, xmalloc): Use it.
56022 (xnrealloc_inline): New static inline function,
56023 with the old contents of xnrealloc.
56024 (xnrealloc, xrealloc): Use it.
56026 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56029 2003-10-26 Karl Berry <karl@gnu.org>
56031 * config/srclist.txt (COPYING.DOC): no longer available from
56032 /gd/gnuorg; don't know where the ultimate source is.
56034 2003-10-25 Paul Eggert <eggert@twinsun.com>
56036 Fix several address-calculation bugs in the hash modules,
56037 plus some minor code cleanup.
56039 * lib/hash.h: Include <stdbool.h>, for bool.
56040 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56041 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56042 hash_get_n_entries, hash_get_max_bucket_length,
56043 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56044 hash_rehash): Use size_t rather than unsigned.
56045 * lib/hash.c (struct hash_table, hash_get_n_buckets,
56046 hash_get_n_buckets_used, hash_get_n_entries,
56047 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56048 hash_get_entries, hash_do_for_each, hash_string, is_prime,
56049 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56051 (SIZE_MAX): Define if not defined.
56052 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56053 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56055 Use const * when possible.
56056 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56057 (check_tuning): Fix bug: if tuning parameters were very close to
56058 0 or 1, rounding errors could have caused subscript violations.
56059 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56060 (hash_initialize): Add 'fail:' label
56061 to free table and return NULL, and use it to simplify code.
56062 Use calloc rather than clearing the storage ourself.
56063 (hash_initialize, hash_rehash): Check for arithmetic overflow in
56064 buffer size calculations.
56065 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56066 Include <stddef.h>, for size_t.
56067 * lib/hash-pjw.c (hash_pjw): Likewise.
56068 Switch to method described by Bruno Haible.
56069 Include <limits.h>, for CHAR_BIT.
56070 (SIZE_BITS): New macro.
56072 2003-10-23 Paul Eggert <eggert@twinsun.com>
56074 * m4/getline.m4 (AM_FUNC_GETLINE):
56075 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56076 hosts. Problem reported by Derek Robert Price in
56077 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56078 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56079 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56081 2003-10-21 Paul Eggert <eggert@twinsun.com>
56083 * lib/getndelim2.c (getndelim2): When size calculation overflows,
56084 ceiling the allocation at NMAX bytes rather than silently
56085 discarding input bytes before NMAX is reached. This makes
56086 a difference only if NMAX exceeds SIZE_MAX / 2.
56088 * lib/obstack.c: Merge from glibc.
56089 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56090 Add libc_hidden_def (_obstack_newchunk).
56091 (_obstack_free) [! defined _LIBC]: Remove.
56092 [defined _LIBC]: Make a strong alias from obstack_free, rather than
56093 a clone of the function body.
56094 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56095 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56097 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56099 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56102 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56103 (obstack_ptr_grow_fast, obstack_int_grow_fast):
56104 Don't use lvalue casts, as GCC plans to remove support for them
56105 in GCC 3.5. Reported by Joseph S. Myers. This bug
56106 was also present in the non-GCC version, indicating that this
56107 code had always been buggy and had never been widely used.
56108 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56109 Use the fast variant of each macro, rather than copying the
56110 definiens of the fast variant; that way, we'll be more likely to
56111 catch future bugs in the fast variants.
56113 2003-10-20 Bruno Haible <bruno@clisp.org>
56115 * modules/wait-process: New file.
56116 * MODULES.html.sh (func_all_modules): Add wait-process.
56118 2003-10-20 Bruno Haible <bruno@clisp.org>
56120 * m4/wait-process.m4: New file.
56122 2003-10-20 Bruno Haible <bruno@clisp.org>
56124 * lib/wait-process.h: New file, from GNU gettext.
56125 * lib/wait-process.c: New file, from GNU gettext.
56127 2003-10-19 Jim Meyering <jim@meyering.net>
56129 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56132 2003-10-18 Karl Berry <karl@gnu.org>
56134 * config/config.guess: update from config.
56136 2003-10-16 Paul Eggert <eggert@twinsun.com>
56138 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56139 (getgroups): First arg is int, not size_t.
56140 Don't let 'free' mangle errno.
56142 2003-10-16 Paul Eggert <eggert@twinsun.com>
56144 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56146 2003-10-16 Karl Berry <karl@gnu.org>
56148 * config/config.{guess,sub}: update from config.
56150 2003-10-16 Jim Meyering <jim@meyering.net>
56152 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56155 2003-10-15 Paul Eggert <eggert@twinsun.com>
56157 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56158 (SIZE_MAX): Remove.
56159 (new_exclude, add_exclude_file): Initial size no longer needs to
56161 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56162 our own address arithmetic overflow checking.
56164 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56165 (fnmatch): Do not alloca more than 2000 wide characters;
56166 instead, use malloc for large buffers.
56167 Check for address arithmetic overflow, and return -1
56168 with errno set to ENOMEM in that case.
56169 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56170 (NEW_PATTERN): Do not alloca more than 8000 bytes;
56171 instead, return -1. Check for address arithmetic overflow.
56173 2003-10-14 Paul Eggert <eggert@twinsun.com>
56175 Handle invalid suffixes and overflow independently, so that
56176 callers can treat them independently as needed. Fix some bugs in
56177 suffix handling, e.g., "100k@" was not diagnosed as an invalid
56178 suffix for a human-readable blocksize. The major caller-visible
56179 change is the addition of a new
56180 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56181 that both overflow and suffix chars were found.
56183 * lib/human.c (humblock): Don't check separately for invalid suffix
56184 char; that is xstrtoumax's job (now that its bug is fixed).
56185 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56186 INTMAX_MAX]: New macros.
56187 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56188 TYPE_MAXIMUM): New macros.
56189 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56190 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56191 if overflow occurs, as it's what __strtol does and it's more useful
56193 (__xstrtol): If __strtol reports some error other than ERANGE,
56194 reflect it to the caller as LONGINT_INVALID. If it reports
56195 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56196 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56197 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56199 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
56200 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56201 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56202 [defined UINTMAX_MAX]: New macros.
56204 2003-10-14 Bruno Haible <bruno@clisp.org>
56206 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56208 2003-10-14 Bruno Haible <bruno@clisp.org>
56210 * m4/sig_atomic_t: New file, from GNU gettext.
56211 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56213 2003-10-14 Bruno Haible <bruno@clisp.org>
56215 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56216 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56217 Also use volatile where needed.
56219 2003-10-12 Paul Eggert <eggert@twinsun.com>
56221 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
56222 Change maintainer from Bruno Haible to 'all'.
56224 2003-10-12 Paul Eggert <eggert@twinsun.com>
56226 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56228 2003-10-12 Paul Eggert <eggert@twinsun.com>
56230 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56231 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56232 and define in terms of the other primitives.
56233 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56234 (SIZE_MAX): Define if not already defined.
56235 (array_size_overflow): New function.
56236 (xalloc_die): Abort instead of exiting if 'error' returns.
56237 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56238 (xmalloc, xrealloc): Use them.
56239 (xcalloc): Check for address arithmetic overflow.
56240 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56241 a bit faster than strcpy.
56243 2003-10-10 Simon Josefsson <jas@extundo.com>
56245 * modules/argp (Depends-on): Add restrict and strcase.
56247 2003-10-10 Simon Josefsson <jas@extundo.com>
56249 * m4/argp.m4: Add AC_C_INLINE.
56251 2003-10-08 Paul Eggert <eggert@twinsun.com>
56253 Merge getpass from libc, plus a few fixes.
56255 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56256 Include <stdbool.h>.
56257 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56258 __fsetlocking to empty.
56259 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56260 do include <bits/libc-lock.h>.
56261 Do not include <fcntl.h>; not needed.
56262 [_LIBC]: Include <wchar.h>.
56263 (NOTCANCEL_MODE): New macro.
56264 (flockfile, funlockfile) [_LIBC]: New macros.
56265 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56266 [!_LIBC]: New macros.
56267 (call_fclose): New function.
56268 (getpass): Use it. Save tty stream separately; this simplifies the
56269 code and makes it more reliable if stdin happens to equal stdout.
56270 Invoke __fsetlocking on tty.
56271 Handle thread cancellation if needed.
56272 Namespace cleanup (use __tcgetattr, __getline).
56273 Use bool for Booleans.
56274 [USE_IN_LIBIO]: Handle wide streams.
56275 [!_LIBC]: Unconditionally do the fseek, since we don't know what
56276 stream might go where.
56278 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56279 doesn't have to include <stdio.h> before us.
56280 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56281 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56282 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56283 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56284 if not declared, so that we can use getpass.c code from libc without
56286 (flockfile, ftrylockfile, funlockfile): New macros.
56288 2003-10-08 Paul Eggert <eggert@twinsun.com>
56290 * modules/getpass: Depend on stdbool.
56292 2003-10-08 Paul Eggert <eggert@twinsun.com>
56294 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56296 2003-10-07 Karl Berry <karl@gnu.org>
56298 * config/config.{guess,sub}: update from config.
56300 2003-10-06 Jim Meyering <jim@meyering.net>
56301 Bruno Haible <bruno@clisp.org>
56303 This lets translators provide better translations for the
56304 "Written by ..." part of --version output.
56305 * lib/version-etc.h: Include stdarg.h.
56306 (version_etc_copyright): Declare as readonly.
56307 (version_etc): Make this function variadic with a NULL-terminated list
56308 of author name strings.
56309 (version_etc_va): New declaration.
56310 * lib/version-etc.c: Include stdarg.h, stdlib.h.
56311 (version_etc_copyright): Declare as readonly.
56312 (version_etc_va): New function. Provide a different translatable string
56313 for each possible number of authors < 10. Abbreviate when there are 10
56315 (version_etc): Make this function variadic. Call version_etc_va.
56316 Suggestion from Gary V. Vaughan.
56318 * lib/long-options.h (parse_long_options): Change prototype: the
56319 authors string is moved to the end and becomes variadic.
56320 * lib/long-options.c: Include stdarg.h.
56321 (parse_long_options): Make this function variadic, too.
56322 Call version_etc_va, not version_etc.
56324 2003-10-06 Bruno Haible <bruno@clisp.org>
56326 * modules/version-etc-2: Remove file.
56327 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56329 2003-10-06 Bruno Haible <bruno@clisp.org>
56331 * modules/fatal-signal: New file.
56332 * MODULES.html.sh (func_all_modules): Add fatal-signal.
56334 2003-10-06 Bruno Haible <bruno@clisp.org>
56336 * m4/fatal-signal.m4: New file.
56337 * m4/signalblocking.m4: New file, from GNU gettext.
56339 2003-10-06 Bruno Haible <bruno@clisp.org>
56341 * lib/version-etc-2.h: Remove file.
56342 * lib/version-etc-2.c: Remove file.
56344 2003-10-06 Bruno Haible <bruno@clisp.org>
56346 * lib/fatal-signal.h: New file, from GNU gettext.
56347 * lib/fatal-signal.c: New file, from GNU gettext.
56349 2003-10-05 Paul Eggert <eggert@twinsun.com>
56351 * README: Rework advice for preventing empty .o files.
56352 Don't recommend ELIDE constructs. Recommend <stddef.h>,
56355 2003-10-04 Karl Berry <karl@gnu.org>
56357 * lib/argp*: update from libc.
56359 2003-10-04 Karl Berry <karl@gnu.org>
56361 * config/config.{guess,sub}: update from config.
56363 2003-10-02 Bruno Haible <bruno@clisp.org>
56365 * modules/lchown (Include): Add lchown.h.
56366 * modules/time_r (Include): Use "..." syntax.
56367 * modules/xgetdomainname (Include): Add xgetdomainname.h.
56369 2003-10-01 Simon Josefsson <jas@extundo.com>
56371 * MODULES.html.sh (func_all_modules): Move gethostname from section
56372 'based on' to section 'lacking' POSIX:2001.
56374 2003-10-01 Larry Jones <lawrence.jones@eds.com>
56376 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56377 to output mode on the same stream.
56379 2003-09-29 Paul Eggert <eggert@twinsun.com>
56381 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56382 Fix arg typo in previous patch.
56384 2003-09-28 Jim Meyering <jim@meyering.net>
56386 * lib/error.c: Correct cpp indentation.
56388 2003-09-27 Paul Eggert <eggert@twinsun.com>
56390 * modules/free: New file.
56392 2003-09-27 Paul Eggert <eggert@twinsun.com>
56394 * m4/free.m4: New file.
56396 2003-09-27 Paul Eggert <eggert@twinsun.com>
56398 * lib/minmax.h (MIN, MAX)
56399 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56400 Omit the special code that used __typeof__, since we worry that
56401 it could be more trouble than it's worth. See:
56402 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56403 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56405 * lib/free.c: New file.
56407 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
56409 Trivial fixes to Makefile.am parts of module listings.
56410 * modules/strstr: Append strstr.h to lib_SOURCES.
56411 * modules/strcase: Likewise, for strcase.h.
56413 2003-09-27 Karl Berry <karl@gnu.org>
56415 * config/mkinstalldirs: update from automake.
56417 2003-09-26 Paul Eggert <eggert@twinsun.com>
56419 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56420 (error_tail): Do not loop, reallocating temporary buffer, since
56421 the output cannot contain more wide characters than the input
56422 contains bytes, the size must be big enough already. This avoids
56423 one potential size overflow calculation. Check for size overflow
56424 when calculating temporary buffer size. Free temporary buffer
56425 when done, if it was allocated with malloc; this plugs a memory
56426 leak. Remove casts from void * to pointers, that are no longer
56427 needed now that we're assuming C89 or better.
56429 Merge error changes from glibc.
56431 * lib/error.c, error.h: Update copyright notice header to match glibc.
56432 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56433 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56434 Disable cancellation while printing error.
56435 * lib/error.h: Prepend __ to parameter names.
56437 2003-09-26 Jim Meyering <jim@meyering.net>
56439 * lib/error.c (error_tail): Move some declarations
56440 into inner scope where the local variables are used.
56442 2003-09-26 Bruno Haible <bruno@clisp.org>
56444 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56446 Don't define stpncpy through config.h; it's now done through stpncpy.h.
56448 2003-09-26 Bruno Haible <bruno@clisp.org>
56450 * lib/stpncpy.h (gnu_stpncpy): New declaration.
56451 (stpncpy): Define as alias for gnu_stpncpy.
56452 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56454 2003-09-25 Simon Josefsson <jas@extundo.com>
56456 * lib/xgetdomainname.h: New file.
56457 * lib/xgetdomainname.c: New file.
56459 2003-09-25 Simon Josefsson <jas@extundo.com>
56460 Bruno Haible <bruno@clisp.org>
56462 * modules/getdomainname: New file.
56463 * modules/xgetdomainname: New file.
56464 * MODULES.html.sh (func_all_modules): Add getdomainname,
56467 2003-09-25 Simon Josefsson <jas@extundo.com>
56468 Bruno Haible <bruno@clisp.org>
56470 * m4/getdomainname.m4: New file.
56472 2003-09-25 Simon Josefsson <jas@extundo.com>
56473 Bruno Haible <bruno@clisp.org>
56475 * lib/getdomainname.h: New file.
56476 * lib/getdomainname.c: New file.
56478 2003-09-25 Karl Berry <karl@gnu.org>
56480 * lib/argp-fmtstream.c, argp-help.c: update from libc.
56482 2003-09-25 Karl Berry <karl@gnu.org>
56484 * config/install-sh: update from automake.
56486 2003-09-25 Bruno Haible <bruno@clisp.org>
56488 * modules/version-etc-2: New file, from modules/version-etc with
56490 * MODULES.html.sh (func_all_modules): Add version-etc-2.
56492 2003-09-25 Bruno Haible <bruno@clisp.org>
56494 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56495 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56497 2003-09-24 Simon Josefsson <jas@extundo.com>
56499 * modules/xgethostname: Add xgethostname.h.
56501 2003-09-24 Paul Eggert <eggert@twinsun.com>
56503 * lib/linebuffer.c (freebuffer): Don't free the argument, just
56504 the buffer associated with the argument. Bug reported by
56507 2003-09-24 Paul Eggert <eggert@twinsun.com>
56509 * README: Document assumptions that 'int' is at least 32 bits
56510 wide, that integer arithmetic is 2's complement without overflow,
56511 that there are no holes in integer values, that adding sizes of
56512 two nonoverlapping objects can't overflow, and that all-bits-zero
56513 yields scalar zero. Fix spelling and capitalization typos.
56515 2003-09-19 Karl Berry <karl@gnu.org>
56517 * lib/argp.h: update from libc.
56519 2003-09-17 Paul Eggert <eggert@twinsun.com>
56521 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56522 to avoid spurious warnings like "AC_RUN_IFELSE was called before
56523 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56525 2003-09-17 Paul Eggert <eggert@twinsun.com>
56527 * gnulib-tool: Use "test -h", not "test -L", for portability
56528 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
56529 (tags_regexp): Remove, since \| doesn't conform to POSIX.
56530 (sed_extract_prog): Issue s commands one-by-one, rather than
56531 using \| in one s command.
56533 2003-09-16 Paul Eggert <eggert@twinsun.com>
56535 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56536 input error, instead of returning NULL the next time we are called
56537 (and therefore losing track of errno).
56539 2003-09-16 Bruno Haible <bruno@clisp.org>
56541 * gnulib-tool (func_create_testdir): Warn about duplicated
56544 2003-09-15 Paul Eggert <eggert@twinsun.com>
56546 * modules/argmatch, modules/fatal, modules/obstack,
56547 modules/xalloc, modules/xgethostname: Sort dependencies by
56548 importance, not alphabetically.
56550 2003-09-15 Paul Eggert <eggert@twinsun.com>
56552 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56553 fails, so that the caller gets the proper errno.
56555 * lib/readutmp.c (read_utmp): Likewise.
56556 Check for fstat error. Close stream and free storage
56559 2003-09-14 Karl Berry <karl@gnu.org>
56561 * config/srclist.txt (strdup.c): disable for c89 changes.
56563 2003-09-14 Jim Meyering <jim@meyering.net>
56565 * lib/getloadavg.c: Correct cpp indentation.
56566 * lib/strdup.c: Likewise.
56567 * lib/vasnprintf.c: Likewise.
56569 2003-09-14 Bruno Haible <bruno@clisp.org>
56571 * modules/fwriteerror: New file.
56572 * MODULES.html.sh (func_all_modules): Add fwriteerror.
56574 2003-09-14 Bruno Haible <bruno@clisp.org>
56576 * lib/fwriteerror.h: New file.
56577 * lib/fwriteerror.c: New file.
56579 2003-09-12 Paul Eggert <eggert@twinsun.com>
56581 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56582 modules/xgethostname, modules/xalloc: Depend on exit.
56584 2003-09-12 Paul Eggert <eggert@twinsun.com>
56586 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56588 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56589 and AC_MINIX, too, so that their extensions are available.
56591 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
56592 This macro has been superseded by gl_BACKUPFILE.
56594 More patches to assume C89 or better.
56596 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56598 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56600 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56601 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56602 Include <string.h>, <stdlib.h> unconditionally.
56603 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56604 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56605 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56606 headers or for string.h.
56607 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56610 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56612 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56613 * m4/userspec.m4 (gl_USERSPEC): Likewise.
56614 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56615 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56616 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56617 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56619 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56620 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56621 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56623 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56624 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56625 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56628 2003-09-12 Paul Eggert <eggert@twinsun.com>
56630 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56631 * lib/obstack.c [!defined _LIBC]: Likewise.
56632 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56633 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56634 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56636 More changes to assume C89 or better.
56638 * lib/error.c (error_tail): Assume vprintf.
56640 * lib/argmatch.c (getenv): Remove decl.
56641 * lib/progreloc.c (get_full_program_name): Define via prototype.
56642 * lib/setenv.c (clearenv): Likewise.
56643 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56645 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56646 (malloc, memcpy): Remove decls.
56647 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56648 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56649 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56650 (memcpy): Remove macro.
56651 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56652 (__P): Remove. All uses removed.
56653 (PTR): Remove. All uses changed to void *.
56654 (CHAR_BIT, NULL): Remove.
56655 (spaces, zeros, memset_space, memset_zero)
56656 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56658 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56659 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56660 Define with prototype.
56661 Remove now-unnecessary prototype decl.
56662 (extra_args_spec): Assume ANSI C. All uses changed.
56663 (extra_args_spec_iso): Remove.
56664 (my_strftime, emacs_strftimeu): Define via prototype.
56665 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56667 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56668 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56669 (strtoul, strtol): Remove decls.
56670 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56672 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56673 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
56674 (LOCALE_PARAM_PROTO): New macro.
56675 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56676 (INTERNAL (strtol), strtol): Define with a prototype.
56677 (PARAMS): Remove. All uses removed.
56678 * lib/tempname.c: Include <string.h> unconditionally.
56679 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56680 * lib/xgethostname.c (main): Define with a prototype.
56681 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56682 Include <stdlib.h> unconditionally.
56683 (calloc, malloc, realloc, free): Remove decls.
56684 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56685 Include <stdlib.h> unconditionally. Sort include file names.
56687 (xstrtod): Define with a prototype.
56688 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56689 (strtol, strtoul): Remove decls.
56691 2003-09-11 Paul Eggert <eggert@twinsun.com>
56693 More patches to assume C89 or better.
56694 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56695 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56696 string.h, memchr, STDC_HEADERS.
56698 2003-09-11 Paul Eggert <eggert@twinsun.com>
56700 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56701 Include <stdlib.h>, <string.h> unconditionally.
56702 Remove now-unnecessary cast to char *.
56703 * lib/strnlen.c: Include <string.h> unconditionally.
56704 * lib/yesno.c (yesno): Define with a prototype.
56706 2003-09-11 Bruno Haible <bruno@clisp.org>
56708 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56710 2003-09-10 Jim Meyering <jim@meyering.net>
56712 * lib/error.c: Correct indentation of cpp directives.
56714 2003-09-10 Bruno Haible <bruno@clisp.org>
56716 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56717 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56718 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56719 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56720 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56721 <stdlib.h> and <string.h> checks.
56722 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56723 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56725 2003-09-10 Bruno Haible <bruno@clisp.org>
56727 * lib/strcspn.c: Include <string.h> unconditionally.
56728 * lib/strpbrk.c: Include <string.h> unconditionally.
56729 * lib/strstr.c: Include <string.h> unconditionally.
56730 * lib/unicodeio.c: Include <string.h> unconditionally.
56731 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56732 * lib/unsetenv.c: Likewise.
56733 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56734 * lib/yesno.c: Include <stdlib.h> unconditionally.
56735 (rpmatch): Add prototype.
56737 2003-09-09 Paul Eggert <eggert@twinsun.com>
56739 More patches to assume C89 or better.
56740 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56741 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56742 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56744 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56746 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56748 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56750 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56751 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56752 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56754 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56755 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56757 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56759 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56760 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56761 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56762 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56763 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56764 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56766 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56767 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56768 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56769 C headers, or for string.h.
56770 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56771 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56772 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56773 headers, memory.h, stdlib.h, string.h, strings.h.
56774 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56775 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56776 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56778 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56779 headers, memory.h, string.h.
56780 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56781 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56783 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56785 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56786 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56787 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56788 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56789 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56791 2003-09-09 Paul Eggert <eggert@twinsun.com>
56795 * lib/acosl.c (main): Use a prototype.
56796 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56799 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56801 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56802 (getopt, etopt_long, getopt_long_only, _getopt_internal)
56803 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56805 * lib/getopt.c (const): Remove macro.
56806 Include <string.h> unconditionally.
56807 (my_index): Remove; all uses changed to strchr.
56808 (strlen): Remove decl.
56809 (exchange): Remove forward decl; no longer needed.
56810 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56811 Define with prototype.
56812 * lib/getopt1.c (const): Remove macro.
56813 (getopt_long, getopt_long_only, main): Define with prototype.
56815 * lib/getugroups.c: Include <string.h> unconditionally.
56817 * lib/getusershell.c: Include <stdlib.h> unconditionally.
56818 (getusershell, setusershell, endusershell, readname, main):
56819 Define with prototypes.
56821 * lib/group-member.c: Include group-member.h first.
56822 Include <stdlib.h> unconditionally.
56824 * lib/hard-locale.c: Include hard-locale.h first.
56825 Include <stdlib.h>, <string.h> unconditionally.
56827 * lib/hash.c (free, malloc): Remove decls.
56828 Include <stdlib.h> unconditionally.
56830 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56831 (getenv): Do not declare.
56833 * lib/idcache.c: Include <string.h> unconditionally.
56835 * lib/long-options.c: Include long-options.h first, to test interface.
56836 Include <stdlib.h> unconditionally.
56838 * lib/makepath.c: Include makepath.h first, to test interface.
56839 Include <stdlib.h> and <string.h> unconditionally.
56841 * lib/linebuffer.c: Include <stdlib.h>.
56842 (free): Remove decl.
56844 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56845 stddef.h. rpl_malloc returns void *, not char *.
56846 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
56849 * lib/md5.h: Include <limits.h> unconditionally.
56850 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56851 (__P): Remove; all uses removed.
56852 * lib/md5.c: Include "md5.h" first.
56853 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56854 md5_buffer, md5_process_bytes, md5_process_block):
56855 Define with prototypes.
56856 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
56857 * lib/sha.c: Include "sha.h" first.
56858 Include <stdlib.h>, <string.h> unconditionally.
56860 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56861 * lib/memcmp.c (__ptr_t): Likewise.
56862 * lib/memrchr.c (__ptr_t): Likewise.
56863 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56864 Include <string.h> unconditionally.
56865 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56866 * lib/memchr.c: Include <stdlib.h> unconditionally.
56867 * lib/memchr.c (LONG_MAX): Remove.
56868 * lib/memrchr.c (LONG_MAX): Likewise.
56869 * lib/memchr.c (__memchr): Define via a prototype.
56870 * lib/memrchr.c (__memrchr): Likewise.
56871 * lib/memcmp.c (__P): Remove, and remove all uses.
56872 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56873 Remove forward decls; no longer needed.
56874 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56875 Use types required by C89 in prototype.
56877 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56878 * lib/savedir.c: Likewise.
56879 * lib/mkdir.c (free): Remove decl.
56880 * lib/rmdir.c (rmdir): Define with a prototype.
56881 * lib/savedir.c: Include savedir.h first, to test interface.
56883 * lib/mktime.c (STDC_HEADERS): Remove.
56884 Include <stdlib.h>, <string.h> unconditionally.
56886 * lib/modechange.c: Include <stdlib.h> unconditionally.
56887 (malloc): Remove decl.
56889 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56890 (free): Remove decl.
56892 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56893 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56894 (This type really should be intptr_t, but that's a C99ism.)
56895 (_obstack_memcpy): Remove: all uses changed to memcpy.
56896 Include <string.h> unconditionally.
56897 (struct obstack): Assume __STDC__ for types of members
56898 chunkfun, freefun, extra_arg.
56899 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56900 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56901 obstack_begin, obstack_specify_allocation,
56902 obstack_specify_allocation_with_arg, obstack_chunkfun,
56903 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56904 Remove unprototyped decls and the macros that use them.
56905 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
56906 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56907 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56908 (defined __STDC__ && __STDC__)]:
56909 Remove nonprototyped code.
56910 Include <stdlib.h> unconditionally.
56911 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56912 _obstack_allocated_p, _obstack_free, obstack_free,
56913 _obstack_memory_used, print_and_abort):
56914 Define using prototypes.
56915 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56916 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56917 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56918 obstack_next_free, obstack_object_size, obstack_room) [0]:
56919 Remove unused, unprototyped code.
56921 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56923 * lib/physmem.c (physmem_total, physmem_available, main): Define
56926 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56927 (main): Define with a prototype.
56929 * lib/posixver.c (getenv): Remove decl.
56931 * lib/putenv.c (malloc): Returns void *, not char *.
56932 Include <string.h> unconditionally.
56933 (strchr, memcpy, NULL): Do not define.
56935 * lib/readtokens.c: Include readtokens.h first, to test interface.
56936 Include <stdlib.h>, <string.h> unconditionally.
56937 (init_tokenbuffer): Define with a prototype.
56939 * lib/regex.c (PARAMS): Remove. All uses removed.
56940 All uses of _RE_ARGS removed, too.
56941 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56943 (bzero): Assume memset exists.
56944 (memcmp, memcpy, NULL): Remove.
56945 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56946 char, or assignments to local vars of type signed char.
56947 (init_syntax_once, PREFIX(extract_number_and_incr),
56948 PREFIX(print_partial_compiled_pattern),
56949 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56950 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56951 PREFIX(regex_grow_registers), PREFIX(regex_compile),
56952 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56953 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56954 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56955 wcs_compile_range, byte_compile_range, truncate_wchar,
56956 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56957 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56958 count_mbs_length, wcs_re_match_2_internal,
56959 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56960 PREFIX(alt_match_null_string_p),
56961 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56962 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56963 regfree, PREFIX(extract_number)): Define with prototype. Remove
56964 now-unnecessary declaration, if any.
56965 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56967 Remove now-unnecessary casts among pointer types.
56968 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
56970 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56971 (free): Remove decl.
56973 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56975 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56976 (free): Remove decl.
56978 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56979 * lib/xgetcwd.c: Likewise.
56981 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56982 (free): Remove decl.
56984 * lib/strchrnul.c (strchrnul): Define with a prototype.
56985 Fix bug: c_in was not converted to char before searching.
56987 The following changes are not K&R related:
56989 * lib/group-member.h: Include <sys/types.h>, so that this file is
56991 * lib/makepath.h: Likewise.
56993 * lib/getusershell.c (readname, default_index, line_size, readname):
56994 Use size_t, not int, for sizes.
56995 (readname): If the size overflows, report an error instead of
56998 2003-09-09 Paul Eggert <eggert@twinsun.com>
57000 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57003 2003-09-09 Paul Eggert <eggert@twinsun.com>
57005 * README: New section: portability guidelines.
57007 2003-09-09 Derek Robert Price <derek@ximbiot.com>
57009 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57012 2003-09-09 Derek Robert Price <derek@ximbiot.com>
57014 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57016 2003-09-08 Paul Eggert <eggert@twinsun.com>
57018 Assume C89 or better; remove K&R cruft.
57019 A few of these changes were first proposed by Derek Robert Price
57020 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57022 * lib/addext.c: Include <string.h> unconditionally.
57023 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57024 Don't declare getenv or malloc.
57026 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57027 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57029 (find_stack_direction, alloca): Use prototypes.
57031 * lib/atexit.c (atexit): Define using a prototype.
57033 * lib/basename.c, dirname.c, stripslash.c:
57034 Include <string.h> unconditionally.
57036 * lib/bcopy.c: Include <stddef.h>.
57037 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57039 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57041 * lib/error.h (error, error_at_line, error_print_progname)
57042 [! (defined (__STDC__) && __STDC__)]: Remove decls.
57043 * lib/error.c: Include error.h first, to check interface.
57044 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57045 (VA_START): Remove; all uses changeed to va_start.
57046 (exit, strerror): Remove decls.
57047 (error_print_progname): Prototype uncondionally.
57048 Don't include <errno.h>; no longer needed.
57049 (private_strerror): Remove.
57050 (error_tail): Always define.
57051 (error, error_at_line): Assume C89 or better; always use prototypes.
57052 * lib/fatal.c: Include "fatal.h" first, to test interface.
57053 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57054 (VA_START): Remove; all uses changed to va_start.
57055 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57057 (exit): Remove decl.
57058 (fatal): Prototype unconditionally. Assume va_start works.
57059 Abort at end, to pacify gcc.
57061 * lib/euidaccess.c (main): Define with a prototype.
57063 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57065 * lib/exitfail.c: Include <stdlib.h> unconditionally.
57067 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
57069 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57070 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57071 (getenv): Remove decl.
57072 (fnmatch): Define using a prototype.
57073 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57074 (FCT): Define using a prototype.
57076 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57078 * lib/gethostname.c: Include <stddef.h>.
57079 (gethostname): Define with prototype. Length is size_t, not int.
57081 2003-09-08 Paul Eggert <eggert@twinsun.com>
57083 Assume C89 or better; remove K&R cruft.
57084 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57085 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57086 string.h, getenv, malloc.
57087 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57089 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57090 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57091 do not check for strerror.
57092 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57093 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57094 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57095 do not check for doprnt or vprintf.
57096 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
57097 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57099 2003-09-08 Paul Eggert <eggert@twinsun.com>
57101 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57102 getversion.c should have been removed then, but was accidentally
57105 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57106 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57108 2003-09-08 Karl Berry <karl@gnu.org>
57110 * config/config.sub, config.guess, srclistvars.sh: update from savannah
57111 config, forget about prep.
57113 * config/depcomp, missing: update from automake.
57115 2003-09-07 Paul Eggert <eggert@twinsun.com>
57117 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
57118 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57120 2003-09-07 Paul Eggert <eggert@twinsun.com>
57122 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57123 copy_tm_result. Bug reported by Simon Josefsson in
57124 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57126 2003-09-06 Paul Eggert <eggert@twinsun.com>
57128 * m4/time_r.m4: New file.
57129 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57130 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57131 is. Check for timegm declaration.
57132 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57133 Do not check for gmtime_r.
57134 Replace mktime if __mktime_internal does not exist and if mktime
57135 hasn't been replaced already.
57137 2003-09-06 Paul Eggert <eggert@twinsun.com>
57139 * lib/time_r.c, lib/time_r.h: New files.
57141 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57143 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
57144 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57146 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57148 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57149 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57150 Include <time_r.h>.
57152 * lib/timegm.c: Switch to glibc implementation, with the following
57154 [defined HAVE_CONFIG_H]: Include <config.h>.
57155 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57156 (__mktime_internal) [!defined _LIBC]: New decl.
57157 (__gmtime_r) [!defined _LIBC]: New macro and function.
57158 (timegm): Use a prototype, since gnulib assumes C89.
57159 Do not bother declaring tmp to be const, as it's not really usefu.
57160 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57161 (timegm): Declare only if HAVE_DECL_TIMEGM.
57163 2003-09-06 Paul Eggert <eggert@twinsun.com>
57165 * MODULES.html.sh (func_all_modules): Add time_r.
57166 * modules/time_r: New file.
57167 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57168 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
57170 2003-09-03 Paul Eggert <eggert@twinsun.com>
57172 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57173 Bug reported by Lute Kamstra in
57174 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57176 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57177 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
57178 course with correspondingly smaller numbers for tomorrow and
57179 yesterday. From Tadayoshi Funaba. Originally installed into
57180 sh-utils on 1999-08-07, but the patch got lost (I guess during the
57183 2003-08-31 Simon Josefsson <jas@extundo.com>
57185 * modules/timegm: New file.
57186 * MODULES.html.sh (func_all_modules): Add timegm.
57188 2003-08-31 Simon Josefsson <jas@extundo.com>
57190 * m4/timegm.m4: New file.
57192 2003-08-31 Simon Josefsson <jas@extundo.com>
57194 * lib/timegm.h: New file.
57195 * lib/timegm.c: New file. Based on
57196 wget-1.8.2/src/http.c:mktime_from_utc.
57198 2003-08-31 Karl Berry <karl@gnu.org>
57200 * lib/argp.h: update from libc.
57202 2003-08-28 Bruno Haible <bruno@clisp.org>
57204 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57205 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57206 followed by '#define fnmatch fnmatch_posix' gives an error.
57208 2003-08-28 Bruno Haible <bruno@clisp.org>
57210 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57211 warning on QNX, which defines O_BINARY to 000000.
57213 2003-08-27 Jim Meyering <jim@meyering.net>
57215 * m4/mkstemp.m4: Require that the system mkstemp be able to create
57216 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
57217 would fail after 32. Reported by Danny Levinson. Details here:
57218 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57220 2003-08-24 Bruno Haible <bruno@clisp.org>
57222 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57223 MSVC7 <stdio.h> is included later.
57225 2003-08-22 Simon Josefsson <jas@extundo.com>
57227 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57229 2003-08-20 Karl Berry <karl@gnu.org>
57231 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57233 2003-08-20 Bruno Haible <bruno@clisp.org>
57235 * modules/progname: New file.
57236 * MODULES.html.sh (func_all_modules): Add progname.
57238 2003-08-20 Bruno Haible <bruno@clisp.org>
57240 * lib/progname.h: New file, from GNU gettext.
57241 * lib/progname.c: New file, from GNU gettext.
57242 * lib/progreloc.c: New file, from GNU gettext.
57244 2003-08-19 Jim Meyering <jim@meyering.net>
57246 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57247 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57249 2003-08-19 Bruno Haible <bruno@clisp.org>
57251 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57254 2003-08-19 Bruno Haible <bruno@clisp.org>
57256 * lib/xstrdup.c: Assume <string.h> exists.
57258 2003-08-18 Paul Eggert <eggert@twinsun.com>
57260 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
57263 2003-08-18 Jim Meyering <jim@meyering.net>
57265 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57266 * m4/lib-ld.m4: Likewise.
57268 2003-08-18 Jim Meyering <jim@meyering.net>
57270 * lib/setenv.h: Indent nested cpp directive.
57271 * lib/vasnprintf.c: Remove trailing blanks.
57273 2003-08-17 Simon Josefsson <jas@extundo.com>
57275 * modules/xstrndup: New file.
57276 * MODULES.html.sh (func_all_modules): Add xstrndup.
57278 2003-08-17 Simon Josefsson <jas@extundo.com>
57280 * modules/argp: Fix autoconf macro name. Add more dependencies.
57282 2003-08-17 Simon Josefsson <jas@extundo.com>
57284 * m4/xstrndup.m4: New file.
57286 2003-08-17 Simon Josefsson <jas@extundo.com>
57288 * m4/argp.m4: New file.
57290 2003-08-17 Simon Josefsson <jas@extundo.com>
57291 Bruno Haible <bruno@clisp.org>
57293 * lib/xstrndup.h: New file.
57294 * lib/xstrndup.c: New file.
57296 2003-08-17 Bruno Haible <bruno@clisp.org>
57298 * modules/strndup (Files, Include): Add lib/strndup.h.
57300 2003-08-17 Bruno Haible <bruno@clisp.org>
57302 * modules/euidaccess (Files): Add lib/euidaccess.h.
57304 2003-08-17 Bruno Haible <bruno@clisp.org>
57306 * lib/strndup.h: New file.
57308 2003-08-17 Bruno Haible <bruno@clisp.org>
57310 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57311 like AC_GNU_SOURCE.
57312 * modules/extensions (configure.ac): Comment out the invocation of
57313 gl_USE_SYSTEM_EXTENSIONS.
57315 2003-08-16 Paul Eggert <eggert@twinsun.com>
57317 Merges from coreutils, etc.
57318 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57319 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
57320 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57322 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57323 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57325 2003-08-16 Paul Eggert <eggert@twinsun.com>
57327 Document merge from coreutils.
57328 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57329 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57330 * modules/utime: Add m4/utimes-null.m4.
57332 2003-08-16 Paul Eggert <eggert@twinsun.com>
57334 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57335 space, undoing this 2003-08-12 change:
57336 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57338 2003-08-16 Paul Eggert <eggert@twinsun.com>
57340 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57341 strtoul.c from libc, undoing this 2003-08-12 change:
57342 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57344 2003-08-16 Jim Meyering <jim@meyering.net>
57346 Merges from coreutils.
57347 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57348 prefix. Adjust cache variables similarly. Create 500 rather than
57349 just 300 files, to exercise bug on Darwin6.5, too.
57350 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57352 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57353 AM_SYS_POSIX_TERMIOS.
57354 Reported by mkc@mathdogs.com.
57355 Also change use of $am_cv_sys_posix_termios
57356 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
57357 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57358 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57359 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57360 in /proc/mounts until it finds one with matching device number. This
57361 is unnecessary when the FILE argument *is* a mount point. No stat call
57362 is necessary in that case. So, disable the statvfs-testing code on
57363 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
57364 as RedHat bug# 84846.
57365 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57366 to 1MB, so as not to render systems with no stack size limit (e.g.,
57367 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
57368 Include <unistd.h>. On some systems,
57369 it is required for the definition of _SC_PAGESIZE.
57371 2003-08-16 Jim Meyering <jim@meyering.net>
57373 Merge from coreutils.
57374 * lib/xstrtoimax.c: #else #if -> #elif.
57375 * lib/xstrtoumax.c: Likewise.
57377 2003-08-16 Jim Meyering <jim@meyering.net>
57379 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57380 * m4/utimes.m4: Removed.
57381 * m4/utimes-null.m4: Renamed from utimes.m4.
57383 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57384 to 1MB, so as not to render systems with no stack size limit (e.g.,
57385 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
57386 Include <unistd.h>. On some systems,
57387 it is required for the definition of _SC_PAGESIZE.
57389 2003-08-16 Jim Meyering <jim@meyering.net>
57390 and Paul Eggert <eggert@cs.ucla.edu>
57392 Merges from coreutils, etc.
57394 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57395 using the latest version from cvs. This avoids problems with #line
57396 directives using a vendor (Sun) compiler.
57397 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57398 Don't set GETGROUPS_LIB here; now it's
57399 done via getgroups.m4's wrapper function.
57400 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57401 rather than just in sh-util/configure.in, so that the
57402 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57404 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57405 AC_FUNC_GETLOADAVG where to find getloadavg.c.
57406 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57407 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57408 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57409 Remove code that is now done by the newly-required macros.
57410 Append $(EXEEXT) to DF_PROG.
57411 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57412 Do not invoke or require the following here,
57413 since prereq.m4 or some gnulib .m4 now does this for us:
57414 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57415 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57416 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57417 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57418 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57419 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57420 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57422 Do not replace the following functions, as this is now the job
57423 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57424 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57425 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57426 atexit getpass, strdup, getpagesize.
57428 Do not check for the following functions, as this is now the job
57429 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57430 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
57432 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57433 Check for sys/sysctl.h.
57434 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57435 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
57436 of checking for ssize_t ourselves.
57438 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57439 Require every macro that gnulib/modules/* suggests for us.
57440 (jm_PREREQ_ADDEXT): New macro.
57441 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57442 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57444 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57445 (gl_PHYSMEM): Use it.
57446 Also check for `table' function.
57447 Check for new headers and functions.
57448 Add check for sys/sysmp.h.
57449 With suggestions from Kaveh Ghazi.
57450 Ignore headers that are present but cannot be compiled. This
57451 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57454 2003-08-15 Paul Eggert <eggert@twinsun.com>
57456 Document merge from coreutils.
57457 * modules/userspec: Depend on posixver.
57458 * modules/strftime: Depend on tzset.
57460 2003-08-15 Paul Eggert <eggert@twinsun.com>
57462 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57463 rather than tab, after '#' in shell-script copyright notices.
57464 Suggested by Bruno Haible.
57466 2003-08-15 Paul Eggert <eggert@twinsun.com>
57468 * config/srclist-update: Use three spaces, rather than tab, after '#'
57469 in shell-script copyright notices. Suggested by Bruno Haible.
57470 Remove unnecessary parenthesization in regular expression.
57472 2003-08-15 Jim Meyering <jim@meyering.net>
57474 Merge from coreutils.
57475 * lib/xgethostname.c: Include <stdlib.h>.
57476 (xghostname): Don't exit for anything other than memory-related
57477 failure; just return NULL.
57478 * lib/userspec.c: Include "posixver.h".
57479 (parse_user_spec): Accept `.' as a separator only
57480 in pre-POSIX-200112 mode.
57481 * lib/strtoimax.c: Use #elif rather than #else #if.
57482 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57483 Remove function, now that we can rely on a working tzset function.
57484 [!_LIBC]: Ensure that the required autoconf test has been run.
57485 [!defined _NL_CURRENT && HAVE_STRFTIME]:
57486 Use underlying_strftime for %r.
57487 * lib/sha.c: Merge in some clean-up and optimization changes from
57489 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57490 Ensure that it is a multiple of 64.
57491 Rearrange loop exit tests so as to avoid performing an
57492 additional fread after encountering an error or EOF.
57493 * lib/realloc.c: Update copyright date.
57495 2003-08-15 Jim Meyering <jim@meyering.net>
57496 and Paul Eggert <eggert@twinsun.com>
57498 Merge from coreutils.
57499 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57500 member but strut utmpx does not. Needed for AIX 4.3.3.
57501 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57503 2003-08-15 Jim Meyering <jim@meyering.net>
57504 and Paul Eggert <eggert@cs.ucla.edu>
57506 Merges from coreutils, etc.
57507 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57508 Require gl_FUNC_TZSET_CLOBBER.
57509 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57510 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57513 2003-08-14 Paul Eggert <eggert@twinsun.com>
57515 Help the merge from coreutils.
57516 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57517 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57518 * m4/tzset.m4: Use it too.
57520 2003-08-14 Paul Eggert <eggert@twinsun.com>
57522 * modules/tzset: New file.
57524 2003-08-14 Jim Meyering <jim@meyering.net>
57526 Merges from coreutils.
57527 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57528 variable names, rather than @FNMATCH_H@.
57529 * modules/alloca: Likewise for $(ALLOCA_H).
57531 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57532 the three copies of the literal target, `fnmatch.h'.
57533 * modules/alloca (alloca.h): Likewise.
57535 2003-08-14 Jim Meyering <jim@meyering.net>
57537 Merge from coreutils.
57538 * m4/tzset.m4: New file.
57539 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57540 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57541 otherwise, AIX 5.1 systems would end up using the latter.
57542 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57543 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
57544 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57545 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
57547 2003-08-14 Jim Meyering <jim@meyering.net>
57549 Merge from coreutils.
57550 * lib/obstack.h: Whitespace changes.
57551 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57552 and xcalloc return values.
57553 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57554 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
57555 hang on OSF/1 5.1 for DIR on both local and remote file systems.
57556 Reported by (and fix confirmed by) Nelson H. F. Beebe.
57557 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57559 Use mntctl's return value to drive the entry-processing loop, since
57560 we can't rely on the value of the vmt_length member in the last
57561 entry. On some systems doing so could result in exhausting
57562 virtual memory. Based in part on a patch from Mike Jetzer.
57564 2003-08-14 Jim Meyering <jim@meyering.net>
57565 and Paul Eggert <eggert@twinsun.com>
57567 Merges from coreutils, plus other fixes.
57568 * lib/physmem.c: Merge in portability changes from gcc/libiberty
57569 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
57570 for credits and details. Thanks to Kaveh Ghazi for helping
57571 to keep these files in sync.
57572 (ARRAY_SIZE): Define it.
57573 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57574 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57575 (memcasecmp): Don't assume size_t fits in unsigned int.
57576 Remove casts and duplicate code.
57577 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57578 (memcpy): Remove definition.
57579 Merge in some clean-up and optimization changes from glibc.
57580 [BLOCKSIZE]: Move definition to top of file.
57581 Ensure that it is a multiple of 64.
57582 Rearrange loop exit tests so as to avoid performing an
57583 additional fread after encountering an error or EOF.
57584 * lib/md5.h (md5_uintptr): Define.
57585 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57586 return to the initial working directory. Preserve errno
57588 * lib/idcache.c: Include "xalloc.h".
57589 (xmalloc, xrealloc): Remove decls.
57590 (getuser): Remove casts no longer required in C89.
57591 * lib/human.c: Include stdio.h, for sprintf.
57592 * lib/group-member.c: Include "xalloc.h".
57593 (xmalloc, xrealloc): Remove decls.
57594 (get_group_info): Remove casts no longer required in C89.
57595 * lib/getusershell.c (readname): Remove casts no longer required in
57597 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57598 * lib/getline.c: Whitespace fix, from coreutils.
57600 2003-08-13 Paul Eggert <eggert@twinsun.com>
57602 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57605 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57606 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57607 Undo previous (whitespace-only) change.
57609 2003-08-13 Paul Eggert <eggert@twinsun.com>
57611 * lib/exclude.c: Include <ctype.h>
57612 (IN_CTYPE_DOMAIN): New macro.
57613 (is_space): New fn.
57614 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57617 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57618 Undo previous (whitespace-only) change.
57620 2003-08-13 Paul Eggert <eggert@twinsun.com>
57622 * config/srclist-update: Change update back to the old behavior,
57623 leaving whitespace alone. Use one 'sed' command rather than a
57625 (fixlicense): Now a variable, not a function.
57626 (remove_trailing_blanks): Remove.
57627 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57628 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57629 Undo previous (whitespace-only) change.
57631 2003-08-12 Paul Eggert <eggert@twinsun.com>
57633 Merge from coreutils.
57634 * modules/euidaccess: Add lib_SOURCES, include for new
57637 2003-08-12 Paul Eggert <eggert@twinsun.com>
57639 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57640 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57641 Normalize leading white space and remove trailing white space.
57643 Merge from coreutils
57644 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57646 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57647 0.12.1. These files are now being upgraded automatically by
57648 ../config/srclist-update.
57650 2003-08-12 Paul Eggert <eggert@twinsun.com>
57652 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57653 Normalize leading white space and remove trailing white space.
57654 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57655 notice, as per ../config/srclist-update.
57657 Merge from coreutils.
57658 * lib/euidaccess.h: New file.
57659 * lib/euidaccess.c: Include it.
57660 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57661 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
57662 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57664 2003-08-12 Paul Eggert <eggert@twinsun.com>
57666 * config/srclist-update: Add copyright notice.
57667 (remove_id_lines, remove_trailing_blanks): New constants.
57668 (fixfile): Use them to normalize spacing a bit in copied files.
57669 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57670 Normalize leading white space and remove trailing white space.
57672 * config/texinfo.tex: Sync with texinfo.
57674 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57675 strtoul.c from libc, to merge coreutils whitespace changes.
57677 * config/srclist.txt: Get the following m4 files from gettext:
57678 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57679 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57680 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57683 2003-08-12 Karl Berry <karl@gnu.org>
57685 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57688 2003-08-11 Paul Eggert <eggert@twinsun.com>
57690 * modules/gnu-source, m4/gnu-source.m4:
57691 Remove; we're assuming Autoconf 2.54 or later now.
57692 Suggested by Bruno Haible.
57693 * MODULES.html.sh (func_all_modules): Remove gnu-source.
57695 2003-08-11 Bruno Haible <bruno@clisp.org>
57697 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57699 2003-08-11 Bruno Haible <bruno@clisp.org>
57701 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57702 (vasnprintf): Use it instead of wcslen.
57704 2003-08-11 Bruno Haible <bruno@clisp.org>
57706 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57707 value to ensure that _Bool promotes to int. Use #define for _Bool when
57708 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57710 2003-08-10 Karl Berry <karl@gnu.org>
57712 * lib/regex.h: update from libc (whitespace fix).
57714 2003-08-09 Paul Eggert <eggert@twinsun.com>
57716 Merge some files from coreutils. These changes were
57717 originally made by Jim Meyering.
57718 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57719 many older Unixes require this.
57720 * lib/alloca.c (alloca): Remove cast to argument of free;
57721 no longer needed in C89.
57722 * lib/alloca_.h, regex.h: Fix white space to match
57723 what GNU indent does.
57725 2003-08-09 Paul Eggert <eggert@twinsun.com>
57727 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57728 apparently Emacs's Unicode mode got confused before my 2003-08-05
57731 2003-08-08 Paul Eggert <eggert@twinsun.com>
57733 * m4/extensions.m4: New file.
57734 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57735 Require gl_USE_SYSTEM_EXTENSIONS.
57736 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57737 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57739 2003-08-08 Paul Eggert <eggert@twinsun.com>
57741 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57742 * modules/extensions, modules/gnu-source: New files.
57743 * modules/timespec, modules/unlocked-io: Depend on extensions.
57745 2003-08-07 Paul Eggert <eggert@twinsun.com>
57747 * modules/restrict: New file.
57748 * MODULES.html.sh (func_all_modules): Add restrict.
57749 * modules/regex: Depend on restrict.
57751 2003-08-07 Paul Eggert <eggert@twinsun.com>
57753 * m4/restrict.m4: New file.
57754 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57756 2003-08-07 Bruno Haible <bruno@clisp.org>
57758 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57759 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57761 2003-08-07 Bruno Haible <bruno@clisp.org>
57763 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57764 makes the module 'getndelim2' compatible with the module 'getline'.
57766 2003-08-05 Paul Eggert <eggert@twinsun.com>
57768 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57769 byte with "\201" to avoid glitches when editing that source file
57770 with multi-gnome-terminal.
57772 2003-08-05 Paul Eggert <eggert@twinsun.com>
57774 * lib/bumpalloc.h: Remove.
57776 2003-08-05 Paul Eggert <eggert@twinsun.com>
57778 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57779 * modules/bumpalloc: Remove.
57781 2003-08-04 Paul Eggert <eggert@twinsun.com>
57783 * lib/getloadavg.c: Change copyright notice and spacing to conform to
57786 Merge from coreutils.
57787 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57789 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57790 from Karl Berry, implemented by Jim Meyering.
57791 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57792 from Dmitry V. Levin.
57793 Remove anachronistic cast of xrealloc.
57794 * lib/fnmatch_.h (__const): Remove. Use 'const'.
57795 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57796 type. Otherwise, it wouldn't compile with at least /bin/cc on
57797 ymp-cray-unicos9.0.2.X.
57798 Combine two mostly-identical uses of alloca into one.
57799 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57801 2003-08-04 Dave Love <d.love@dl.ac.uk>
57805 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
57806 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
57807 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57808 obsolete NLIST_NAME_UNION.
57809 [__GNU__]: Undef BSD and FSCALE.
57810 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57812 2003-08-03 Paul Eggert <eggert@twinsun.com>
57814 * lib/stdbool_.h (_Bool): Make it signed char, instead of
57815 an enum type, so that it's guaranteed to promote to int. See:
57816 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57818 2003-08-03 Karl Berry <karl@gnu.org>
57820 * config/depcomp: update from automake.
57822 2003-07-31 Paul Eggert <eggert@twinsun.com>
57824 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
57825 (strerror): Don't assume that a printable int fits in 14 bytes.
57827 2003-07-31 Bruno Haible <bruno@clisp.org>
57829 * modules/getpass-gnu: New file.
57830 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57832 2003-07-31 Bruno Haible <bruno@clisp.org>
57834 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57836 2003-07-24 Karl Berry <karl@gnu.org>
57838 * config/missing: update from automake.
57840 2003-07-24 Derek Robert Price <derek@ximbiot.com>
57841 Bruno Haible <bruno@clisp.org>
57843 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57844 * lib/getline.c (getline, getdelim): Likewise.
57845 Remove _GNU_SOURCE define; now it's defined in config.h through
57848 2003-07-23 Karl Berry <karl@gnu.org>
57850 * config/config.sub: update from prep.
57852 2003-07-22 Paul Eggert <eggert@twinsun.com>
57854 * modules/xalloc (Depends-on): Add exitfail.
57855 * modules/xmemcoll: Likewise.
57857 2003-07-22 Paul Eggert <eggert@twinsun.com>
57859 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57860 over-parenthesization in macros.
57862 Sync with coreutils.
57864 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57867 Use `exit_failure' for xalloc and xmemcoll instead of their own
57868 private exit-failure variables.
57869 * lib/xalloc.h (xalloc_exit_failure): Remove.
57870 * lib/xmalloc.c: Likewise. Include exitfail.h.
57871 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57872 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57873 * lib/xmemcoll.c: Likewise. Include exitfail.h.
57874 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57876 2003-07-20 Jim Meyering <jim@meyering.net>
57878 * modules/closeout (Depends-on): Add exitfail.
57879 Suggestion from Bruno Haible.
57881 2003-07-19 Karl Berry <karl@gnu.org>
57883 * config/config.sub: update from prep.
57885 2003-07-18 Paul Eggert <eggert@twinsun.com>
57887 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57889 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
57890 to test that it can stand by itself. Include "exitfail.h".
57891 Clients should set exit_failure instead.
57892 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
57894 2003-07-18 Bruno Haible <bruno@clisp.org>
57896 * modules/getndelim2: New file.
57897 * modules/getline: Share files with module getndelim2.
57898 * modules/getnline: Depend on getndelim2 instead of sharing files with
57899 it. Add getnline.c to lib_SOURCES.
57900 * MODULES.html.sh (func_all_modules): Add getndelim2.
57902 2003-07-18 Bruno Haible <bruno@clisp.org>
57904 * m4/getndelim2.m4: New file.
57905 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57906 invoke gl_PREREQ_GETNDELIM2.
57907 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57908 gl_PREREQ_GETNDELIM2.
57909 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57912 2003-07-18 Bruno Haible <bruno@clisp.org>
57914 * lib/getndelim2.h: New file.
57915 * lib/getndelim2.c: Make into a module of its own. Include config.h,
57917 (getndelim2): Make non-static. Change return type to ssize_t.
57918 * lib/getline.h: Change argument names.
57919 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57920 * lib/getnline.c: Include getndelim2.h.
57922 2003-07-18 Andreas Schwab <schwab@suse.de>
57924 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57926 2003-07-17 Karl Berry <karl@gnu.org>
57928 * config/config.sub: update from prep.
57930 2003-07-17 Bruno Haible <bruno@clisp.org>
57932 * modules/getnline: New file.
57933 * modules/getline: Add lib/getndelim2.c to source file list.
57934 * MODULES.html.sh (func_all_modules): Add getnline.
57936 2003-07-17 Bruno Haible <bruno@clisp.org>
57938 * m4/getnline.m4: New file.
57940 2003-07-17 Bruno Haible <bruno@clisp.org>
57942 * m4/Makefile.am.in: Remove file.
57943 * m4/Makefile.am: Remove file.
57944 * m4/Makefile.in: Remove file.
57946 2003-07-17 Bruno Haible <bruno@clisp.org>
57948 * lib/getnline.h: New file.
57949 * lib/getnline.c: New file.
57950 * lib/getndelim2.c: New file, extracted from getline.c.
57951 (getndelim2): Renamed from getdelim2, with added nmax argument.
57952 * lib/getline.c: Include getndelim2.c.
57953 (getdelim2): Moved out to getndelim2.c.
57954 (getline, getdelim): Update.
57956 2003-07-17 Bruno Haible <bruno@clisp.org>
57958 * lib/Makefile.am: Remove file.
57959 * lib/Makefile.in: Remove file.
57961 2003-07-17 Bruno Haible <bruno@clisp.org>
57963 * configure.in: Remove file.
57964 * Makefile.in: Remove file.
57966 2003-07-17 Bruno Haible <bruno@clisp.org>
57968 * MODULES.html.sh: Put the </BODY> right before </HTML>.
57970 2003-07-16 Karl Berry <karl@gnu.org>
57972 * config/srclist-update: was running fixlicense twice, which caused
57973 texinfo.tex to be nullified for some reason. Simplify,
57974 $gplsrc is no longer needed as far as I can see?
57976 2003-07-16 Jim Meyering <jim@meyering.net>
57978 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
57980 2003-07-15 Paul Eggert <eggert@twinsun.com>
57982 * config/srclist.txt: Get the following files from gettext-runtime/intl
57983 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57984 ref-del.sin. From Bruno Haible.
57985 * config/srclist-update (fixfile): Change grep pattern again, since the
57986 previous fix didn't work (there was another trailing $). Use
57987 '[$]' to escape the $s.
57989 2003-07-15 Karl Berry <karl@gnu.org>
57991 * lib/vasnprintf.c: update from gettext.
57993 2003-07-15 Karl Berry <karl@gnu.org>
57995 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57996 gets expanded when surrounded by '$'.
57998 2003-07-15 Jim Meyering <jim@meyering.net>
58000 * modules/save-cwd: Don't depend on error. From Derek Price.
58002 2003-07-15 Jim Meyering <jim@meyering.net>
58004 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58006 2003-07-14 Simon Josefsson <jas@extundo.com>
58008 * modules/mempcpy: New file.
58009 * MODULES.html.sh (func_all_modules): Add mempcpy.
58011 2003-07-14 Simon Josefsson <jas@extundo.com>
58013 * m4/mempcpy.m4: New file.
58015 2003-07-14 Simon Josefsson <jas@extundo.com>
58017 * lib/mempcpy.h: New file.
58018 * lib/mempcpy.c: New file.
58020 2003-07-14 Paul Eggert <eggert@twinsun.com>
58022 * modules/getdate, modules/posixtm: Depend on mktime.
58024 2003-07-14 Paul Eggert <eggert@twinsun.com>
58026 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58027 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58028 unicodeio.c, unicodeio.h, unlocked-io.h:
58029 Switch from LGPL to GPL.
58031 2003-07-14 Paul Eggert <eggert@twinsun.com>
58033 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58034 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58035 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58036 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58037 vasprintf.c, vasprintf.h: Regenerate. These files are now being
58038 updated automatically by ../config/srclist-update. This changes
58039 their license from LPGL to GPL.
58041 2003-07-14 Paul Eggert <eggert@twinsun.com>
58043 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
58044 assumed to refer to the root of the most recent stable gettext version.
58045 * config/srclistvars.sh: Add defaults for eggert.
58046 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58047 Match "This program" as well as "The program". This is needed
58050 2003-07-14 Jim Meyering <jim@meyering.net>
58052 Don't emit diagnostics. Let callers do that.
58053 * lib/save-cwd.c: Don't include "error.h".
58054 (save_cwd): Don't call error. Ensure that errno is valid
58055 when returning nonzero.
58057 * lib/save-cwd.h (restore_cwd): Update prototype.
58058 * lib/save-cwd.c (restore_cwd): Remove two parameters.
58059 Simplify. Don't call error upon failure. Let callers do that.
58060 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58061 when auditing is enabled. But don't bother updating the #if.
58063 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
58065 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58066 it breaks C++ compilation.
58067 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58069 2003-07-10 Simon Josefsson <jas@extundo.com>
58071 * modules/strchrnul (Makefile.am): Add strchrnul.h.
58073 2003-07-10 Jim Meyering <jim@meyering.net>
58075 * m4/clock_time.m4: Remove trailing blank.
58076 * m4/intmax_t.m4: Likewise.
58078 2003-07-10 Jim Meyering <jim@meyering.net>
58080 * lib/vasnprintf.c: Remove trailing blanks.
58081 Make cpp indentation consistent.
58083 2003-07-09 Paul Eggert <eggert@twinsun.com>
58085 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58086 posixver.c, strftime.c, strnlen.c, strverscmp.c:
58087 Switch from LGPL to GPL.
58089 2003-07-09 Paul Eggert <eggert@twinsun.com>
58091 * config/srclist.txt: Sort sublists. Add
58092 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58093 that differ from gnulib for one reason or another; we'd like this list
58094 to be smaller but for now let's document what we have.
58096 2003-07-08 Paul Eggert <eggert@twinsun.com>
58098 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58099 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
58100 and sweeter "eval x=$x".
58101 * config/srclist.txt: Get lib/argp* from glibc.
58103 2003-07-07 Paul Eggert <eggert@twinsun.com>
58105 * lib/mktime.c: Fix some boundary cases and remove need for floating
58108 Issue a compile-time diagnostic if time_t is floating point, or if
58109 two's complement arithmetic is not in effect, or if arithmetic
58110 right shift does not propagate the sign. These assumptions were
58111 all in the original code but they weren't checked.
58113 (TIME_T_MIDPOINT, verify): New macros.
58114 (__isleap): Remove; it has integer overflow problems.
58115 (leapyear): New function, without those problems.
58116 (ydhms_tm_diff): Remove; splitting into two parts.
58117 (ydhms_diff): New function, containing the arithmetic part of
58118 the old ydhms_tm_diff function. Issue a compile-time
58119 diagnostic if we are not using C99 integer division.
58120 Avoid casts when possible.
58121 (guess_time_tm): New function, containing the checking part of
58122 the old ydhms_tm_diff function. Return the new value, rather than
58123 the difference between it and the old. Accept a new argument T
58124 so that *T specifies the old value. Check for overflow in the result.
58126 (__mktime_internal): Use a time_t offset, not a long int offset.
58127 This undoes the 2003-06-04 change, which is no longer needed now
58128 that we have better overflow checking.
58129 (localtime_offset): Likewise.
58131 (__mktime_internal): Avoid harmful overflow on hosts where time_t
58132 and long are 64-bit but int is only 32-bit.
58133 (ydhms_diff): Use long int to store year1 and yday1.
58134 Issue a compile-time diagnostic if long int is not wide enough.
58136 (__mktime_internal): Use long int to store adjusted year and yday.
58137 Use plain C rather than preprocessor commands, if that doesn't
58139 Check for overflow (and try to repair) after each probe
58140 rather than checking only at the very end. This avoids some bugs
58141 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58142 does not equal GMT offset at maximum time).
58143 Use integer to check for overflow rather than floating point; this
58144 is more portable to non-IEEE hosts, and is a tad faster.
58145 When we detect that we are oscillating between two values,
58146 don't check whether tm_isdst has the requested value, since
58147 we already know the answer. When tm_isdst has the wrong value,
58148 use a different heuristic to find the right one, based on the
58149 extreme values actually observed in practice in tz2003a,
58150 rather than the (overly optimistic) "previous 3 calendar quarters".
58152 (not_equal_tm, print_tm, check_result): Use "const T" rather than
58153 "T const" to accommodate glibc style.
58154 (check_result): Use less-confusing report format. "long" -> "long int.
58156 Don't loop if the iteration overflows time_t.
58157 Allow a negative step in the iteration.
58159 2003-07-06 Karl Berry <karl@gnu.org>
58161 * config/depcomp: update from automake.
58162 * config/config.sub: update from prep.
58164 2003-07-03 Karl Berry <karl@gnu.org>
58166 * config/config.guess: update from prep.
58168 2003-07-01 Paul Eggert <eggert@twinsun.com>
58170 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58171 xreadlink.c now includes it unconditionally.
58173 2003-07-01 Paul Eggert <eggert@twinsun.com>
58175 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58176 having it depend on HAVE_SYS_TYPES_H.
58178 2003-07-01 Bruno Haible <bruno@clisp.org>
58180 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58181 <sys/types.h> should be sufficient.
58182 Reported by Paul Eggert.
58184 2003-06-26 Karl Berry <karl@gnu.org>
58186 * config/depcomp: update from automake.
58188 2003-06-26 Bruno Haible <bruno@clisp.org>
58190 * modules/human: Depend on module stdbool.
58192 2003-06-25 Bruno Haible <bruno@clisp.org>
58194 * modules/readlink: New file.
58195 * modules/xreadlink: Depend on it.
58196 * MODULES.html.sh (func_all_modules): Add readlink.
58198 2003-06-25 Bruno Haible <bruno@clisp.org>
58200 * m4/readlink.m4: New file.
58202 2003-06-25 Bruno Haible <bruno@clisp.org>
58204 * lib/readlink.c: New file.
58206 2003-06-22 Karl Berry <karl@gnu.org>
58208 * config/srclist.txt: update mkinstalldirs from automake.
58209 * config/mkinstalldirs: update.
58211 2003-06-22 Bruno Haible <bruno@clisp.org>
58213 Portability to mingw32.
58214 * m4/ssize_t.m4: New file, from GNU gettext.
58215 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58216 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58218 2003-06-22 Bruno Haible <bruno@clisp.org>
58220 * modules/safe-read: Add m4/ssize_t.m4.
58221 * modules/xreadlink: Add m4/ssize_t.m4.
58223 2003-06-20 Bruno Haible <bruno@clisp.org>
58225 Assume C89, so PARAMS isn't needed.
58226 * lib/unicodeio.h (PARAMS): Remove.
58227 * lib/unicodeio.c: Don't use PARAMS.
58229 2003-06-18 Karl Berry <karl@gnu.org>
58231 * config/config.{guess,sub}: update from prep.
58233 2003-06-18 Jim Meyering <jim@meyering.net>
58235 Merge changes from coreutils.
58236 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58237 Remove explicit declarations of xmalloc and realloc.
58239 (read_utmp): Remove anachronistic cast of xmalloc.
58241 2003-06-17 Paul Eggert <eggert@twinsun.com>
58243 Assume C89, so PARAMS isn't needed.
58244 * lib/backupfile.h (PARAMS): Remove. All uses removed.
58245 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58246 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58247 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58248 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58249 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58250 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58251 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58252 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58253 lib/xstrtod.h, lib/xstrtol.h: Likewise.
58254 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58255 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58256 no longer needed. Anyway, config.h should always be included before any
58259 2003-06-11 Simon Josefsson <jas@extundo.com>
58261 * modules/sysexits: New file.
58262 * MODULES.html.sh (func_all_modules): Add sysexits.
58264 2003-06-11 Simon Josefsson <jas@extundo.com>
58266 * lib/sysexit_.h: New file.
58268 2003-06-11 Derek Price <derek@ximbiot.com>
58270 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58273 2003-06-11 Bruno Haible <bruno@clisp.org>
58275 * m4/sysexits.m4: New file.
58277 2003-06-10 Simon Josefsson <jas@extundo.com>
58279 * lib/argp.h: New file, from glibc.
58280 * lib/argp-ba.c: New file, from glibc.
58281 * lib/argp-eexst.c: New file, from glibc.
58282 * lib/argp-fmtstream.c: New file, from glibc.
58283 * lib/argp-fmtstream.h: New file, from glibc.
58284 * lib/argp-fs-xinl.c: New file, from glibc.
58285 * lib/argp-help.c: New file, from glibc.
58286 * lib/argp-namefrob.h: New file, from glibc.
58287 * lib/argp-parse.c: New file, from glibc.
58288 * lib/argp-pv.c: New file, from glibc.
58289 * lib/argp-pvh.c: New file, from glibc.
58290 * lib/argp-xinl.c: New file, from glibc.
58292 2003-06-10 Simon Josefsson <jas@extundo.com>
58294 * modules/strchrnul: New file.
58296 2003-06-10 Simon Josefsson <jas@extundo.com>
58298 * modules/argp: New file.
58300 2003-06-10 Simon Josefsson <jas@extundo.com>
58302 * m4/strchrnul.m4: New file.
58304 2003-06-10 Simon Josefsson <jas@extundo.com>
58306 * lib/strchrnul.h: New file.
58307 * lib/strchrnul.c: New file.
58309 2003-06-10 Bruno Haible <bruno@clisp.org>
58311 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58313 2003-06-07 Karl Berry <karl@gnu.org>
58315 * config/config.{guess,sub}: update from prep.
58317 2003-06-07 Jim Meyering <jim@meyering.net>
58319 * modules/strtod: Use $(...) notation, not @...@ for
58320 AC_REPLACE'd variables.
58321 * modules/localcharset: Likewise.
58323 2003-06-07 Jim Meyering <jim@meyering.net>
58325 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58326 in place of my name in the copyright comment.
58327 Remove definition and uses of __P.
58330 * lib/stat.c: Don't declare xmalloc explicitly.
58331 Instead, include "xalloc.h".
58332 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58333 xrealloc, and xcalloc return values.
58334 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58336 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58338 2003-06-07 Bruno Haible <bruno@clisp.org>
58340 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58341 avoid AC_CONFIG_LINKS.
58342 * modules/fnmatch (Makefile.am): Use explicit creation rule for
58343 fnmatch.h, to avoid AC_CONFIG_LINKS.
58344 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58346 2003-06-07 Bruno Haible <bruno@clisp.org>
58348 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58349 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58350 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58352 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58353 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58356 2003-06-06 Jim Meyering <jim@meyering.net>
58358 Merge from coreutils.
58359 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58360 Consolidate declarations and initializations of *_base* locals.
58362 Merge from coreutils.
58363 This avoids a core dump on systems without GNU putenv,
58364 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58365 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58366 (unsetenv): New static function, from GNU libc.
58367 (rpl_putenv): Use it.
58369 * lib/modechange.c: Remove trailing blanks.
58371 Merge from coreutils.
58372 * lib/fsusage.c: Remove declaration of statfs.
58373 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58375 * lib/posixtm.c: Include <stdbool.h> unconditionally.
58377 2003-06-06 Jim Meyering <jim@meyering.net>
58379 * lib/stdbool_.h: Renamed from stdbool.h.in.
58381 2003-06-06 Jim Meyering <jim@meyering.net>
58382 Bruno Haible <bruno@clisp.org>
58384 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58385 Adjust Makefile.am snippet not to redirect directly to target.
58386 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58388 2003-06-05 Paul Eggert <eggert@twinsun.com>
58390 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58391 mismatch, look in future quarters as well as past. This fixes a
58392 bug when processing fall-backwards gaps immediately after a long
58393 period of daylight-saving time.
58395 * lib/mktime.c: Assume freestanding C89 or better.
58396 (HAVE_LIMITS_H): Remove. Assume it's 1.
58397 (__P): Remove; not used.
58398 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58399 (mktime, not_equal_tm, print_tm, check_result,
58400 main): Use prototypes. Use const * where appropriate.
58401 (main): Fix typo in testing code that uncovered by above changes.
58402 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58404 2003-06-04 Paul Eggert <eggert@twinsun.com>
58406 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
58407 locale.h, localeconv. This merges changes from coreutils.
58409 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58410 It can be removed after the next Autoconf is released.
58411 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58414 2003-06-04 Paul Eggert <eggert@twinsun.com>
58416 * lib/mktime.c: Fix Debian bug 177940
58417 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58418 (localtime_offset): Now long int, not time_t, because we want it
58419 to be guaranteed to be signed. All uses changed.
58420 (__mktime_internal): If overflow would occur when adding offset,
58423 Merge 'human' changes from coreutils. Rewrite to support
58424 locale-specific notations like thousands separators.
58425 * lib/human.c: Simplify authorship notice.
58426 Include human.h immediately after config.h.
58427 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58428 <limits.h>: Do not include, since human.h does.
58429 (SIZE_MAX, UINTMAX_MAX): New macros.
58430 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58431 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58432 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58433 (power_letter): Renamed from suffixes.
58434 (generate_suffix_backwards): Remove.
58435 (adjust_value): Now takes int style (because of human.h changes)
58436 and long double value (for greater precision on some platforms).
58437 (group_number): New function.
58438 (human_readable): Use it. Use integer options, not enum.
58439 Put the options before the sizes in the arg list.
58440 Support all the new options.
58441 The old human_readable function has been removed;
58442 use inttostr.h instead.
58443 (human_readable, default_block_size, humblock):
58444 Use uintmax_t, not int, for block sizes.
58445 (human_readable_inexact, block_size_types): Remove.
58446 (block_size_opts): New constant.
58447 (human_options): Renamed from human_block_size, with new signature
58448 that allows block sizes up to UINTMAX_MAX. All callers changed.
58449 * lib/human.h: Add copyright and authorship notice.
58450 Include <limits.h> and <stdbool.h> unconditionally.
58451 (PARAMS): Remove. All uses removed.
58452 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58453 (enum human_inexact_style): Remove tag; now a nameless enum.
58454 (human_floor, human_ceiling, human_round_to_even): Now have
58455 values 2, 0, 1 rather than -1, 1, 0.
58456 (human_group_digits, human_suppress_point_zero, human_autoscale,
58457 human_base_1024, human_SI, human_B): New constants.
58458 (human_readable_inexact, human_block_size): Remove.
58459 (human_readable): Size args are now uintmax_t, not int.
58460 (human_options): New decl.
58462 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58463 unnecessary now that we assume C89 or better. This change
58464 imported from coreutils.
58466 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58467 arbitrarily. This is the same patch as 2003-05-28, but it got lost
58468 in the 2003-05-30 sync from glibc.
58470 .h files should stand alone, but we shouldn't include <sys/types.h>
58471 if we can get away with just <stddef.h>.
58473 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58474 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58475 rather than <sys/types.h>, as we merely need size_t.
58476 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58478 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58479 Include <stdio.h>, to get FILE.
58480 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58481 memcasecmp.h has included <stddef.h> and all we need is size_t.
58482 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58483 our interface, instead of including <sys/types.h>
58485 2003-06-04 Paul Eggert <eggert@twinsun.com>
58487 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58488 now, as glibc mktime is buggy on non-glibc systems.
58490 2003-06-03 Karl Berry <karl@gnu.org>
58492 * config/config.sub: update from prep.
58494 2003-06-02 Paul Eggert <eggert@twinsun.com>
58497 Fix some minor time-related bugs with POSIX time arguments.
58498 Some valid time stamps were being rejected (notably -1, and
58499 time stamps before 1900 on 64-bit hosts). And some invalid
58500 time stamps were being accepted, e.g. September 31.
58502 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58503 that we can return (time_t) -1 successfully.
58504 * lib/posixtm.c: Likewise.
58505 [HAVE_STDBOOL_H]: Include <stdbool.h>.
58506 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58507 (t): Remove static var.
58508 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58509 of static var. All uses changed.
58510 (year): Do not reject years before 1900; they can occur with
58512 (posix_time_parse): Do not check for out-of-range components;
58513 that is now the caller's responsibility, since our checks were
58514 only approximations.
58515 (posixtime): Use mktime to check for out-of-range components,
58516 since it knows them exactly.
58517 If mktime returns (time_t) -1, check whether an error actually occurred
58518 by invoking localtime on -1.
58519 (main) [TEST_POSIXTIME]: Check for input data errors, and report
58520 posixtime failures better.
58521 Improve the test data (in comments only).
58523 2003-06-02 Karl Berry <karl@gnu.org>
58525 * config/mkinstalldirs (version): new variable.
58526 (--version): new option.
58527 (usage): improve message.
58529 2003-05-30 Karl Berry <karl@gnu.org>
58531 * lib/mktime.c: update from libc.
58533 2003-05-30 Bruno Haible <bruno@clisp.org>
58535 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58536 * config/config.rpath: Upgrade to gettext-0.12.1.
58538 2003-05-30 Bruno Haible <bruno@clisp.org>
58540 * m4/gettext.m4: Upgrade to gettext-0.12.1.
58541 * m4/nls.m4: New file, from gettext-0.12.1.
58542 * m4/po.m4: New file, from gettext-0.12.1.
58543 * m4/progtest.m4: Upgrade to gettext-0.12.1.
58545 2003-05-30 Bruno Haible <bruno@clisp.org>
58547 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58548 * lib/localcharset.h: Likewise.
58549 * lib/localcharset.c: Likewise.
58551 2003-05-29 Karl Berry <karl@gnu.org>
58553 * config/config.rpath: update from gettext.
58555 2003-05-28 Paul Eggert <eggert@twinsun.com>
58557 Assume the headers required for C89 freestanding compilers.
58558 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58559 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58560 * m4/human.m4 (gl_HUMAN): Likewise.
58561 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58562 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58563 * m4/userspec.m4 (gl_USERSPEC): Likewise.
58564 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58565 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58566 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58568 2003-05-28 Paul Eggert <eggert@twinsun.com>
58570 Assume the headers required for C89 freestanding compilers.
58571 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58572 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58573 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58574 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58575 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58576 define, since <limits.h> is guaranteed to do that.
58577 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58578 * lib/exclude.c: Include <stdbool.h> unconditionally.
58579 * lib/tempname.c: Include <stddef.h> unconditionally.
58580 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58581 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58582 <stddef.h> does that.
58583 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58584 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58585 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58587 * lib/xstrtol.c: Likewise.
58588 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58589 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58591 * lib/addext.c (addext): Use assignment rather than cast, to avoid
58592 warnings on some platforms.
58594 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58597 2003-05-26 Jim Meyering <jim@meyering.net>
58599 Merge in a change from coreutils:
58600 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58601 that is guaranteed to be `no'. Use `no_such_member' to indicate
58602 that condition, rather than `-1' which is slightly misleading.
58603 Change the name of the cache variable to have the gl_ prefix.
58604 Prompted by a patch from Richard Dawe for DJGPP.
58606 2003-05-24 Karl Berry <karl@gnu.org>
58608 * config/config.guess: update from prep.
58610 2003-05-22 Karl Berry <karl@gnu.org>
58612 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58614 2003-05-20 Karl Berry <karl@gnu.org>
58616 * config/config.guess: update from prep.
58618 2003-05-18 Karl Berry <karl@gnu.org>
58620 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58621 might actually be set by the user.
58623 * config/depcomp, install-sh, mdate-sh: update from automake.
58625 2003-05-17 Bruno Haible <bruno@clisp.org>
58627 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58628 invalid expansion for AC_EGREP_CPP.
58629 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58630 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58631 Suggested by Akim Demaille <akim@epita.fr> in
58632 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58634 2003-05-12 Jim Meyering <jim@meyering.net>
58636 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58637 the space-padded-by-default conversion specifiers, %e, %k, %l.
58639 2003-05-12 Bruno Haible <bruno@clisp.org>
58641 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58642 the string is longer than 4 KB.
58644 2003-05-11 Karl Berry <karl@gnu.org>
58646 * config/config.{guess,sub}: update from prep.
58648 2003-05-09 Bruno Haible <bruno@clisp.org>
58650 * modules/error: Add m4/strerror_r.m4 to file list.
58652 2003-05-03 Bruno Haible <bruno@clisp.org>
58654 Upgrade to Unicode-4.0.
58655 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58656 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58657 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58658 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58659 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58660 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58661 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58662 Change width of U+E0100..U+E01EF from 1 to 0.
58664 2003-04-25 Jim Meyering <jim@meyering.net>
58666 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58667 of type size_t, not int.
58669 2003-04-25 Bruno Haible <bruno@clisp.org>
58671 * lib/copy-file.c: Include <stddef.h>, for size_t.
58673 2003-04-21 Paul Eggert <eggert@twinsun.com>
58675 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58676 code which expansion is under static control. Patch imported from
58677 Akim Demaille's patch to Bison; see
58678 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58680 2003-04-14 Bruno Haible <bruno@clisp.org>
58682 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58684 2003-04-11 Jim Meyering <jim@meyering.net>
58686 Merge changes from Coreutils.
58688 2003-03-22 Jim Meyering <jim@meyering.net>
58690 * lib/strftime.c (widen): Cast alloca return value to proper type.
58692 2003-01-19 Ulrich Drepper <drepper@redhat.com>
58695 * lib/strftime.c (my_strftime): Handle very large width
58696 specifications for numeric values correctly. Improve checks for
58699 2003-01-19 Jim Meyering <jim@meyering.net>
58701 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58703 (nl_get_alt_digit) [! defined my_strftime]: Define.
58704 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58705 _nl_get_alt_digit and _nl_get_walt_digit.
58707 * lib/strftime.c (my_strftime): Merge in locale-related changes from
58708 libc. These changes have no effect outside of _LIBC.
58710 2003-04-10 Bruno Haible <bruno@clisp.org>
58712 * modules/findprog: New file.
58713 * MODULES.html.sh (func_all_modules): Add it.
58715 2003-04-10 Bruno Haible <bruno@clisp.org>
58717 * m4/findprog.m4: New file.
58718 * m4/eaccess.m4: New file.
58720 2003-04-10 Bruno Haible <bruno@clisp.org>
58722 * lib/findprog.h: New file, from GNU gettext.
58723 * lib/findprog.c: New file, from GNU gettext.
58725 2003-04-05 Jim Meyering <jim@meyering.net>
58727 Merge changes from Coreutils.
58729 * lib/exclude.h (PARAMS): Remove definition and uses.
58730 * lib/exclude.c: Remove uses of `PARAMS'.
58732 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58733 Add test-cases for DOS filenames. Declare program_name.
58734 (main): Set up program_name. Patch by Rich Dawe.
58736 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58738 Use mntctl's return value to drive the entry-processing loop, since
58739 we can't rely on the value of the vmt_length member in the last
58740 entry. On some systems doing so could result in exhausting
58741 virtual memory. Based in part on a patch from Mike Jetzer.
58743 2003-04-04 Bruno Haible <bruno@clisp.org>
58745 * modules/linebreak: New file.
58746 * MODULES.html.sh (func_all_modules): Add it.
58748 2003-04-04 Bruno Haible <bruno@clisp.org>
58750 * m4/linebreak.m4: New file.
58752 2003-04-04 Bruno Haible <bruno@clisp.org>
58754 * lib/linebreak.h: New file, from GNU gettext.
58755 * lib/linebreak.c: New file, from GNU gettext with slight
58757 * lib/lbrkprop.h: New file, from GNU gettext.
58759 2003-04-03 Bruno Haible <bruno@clisp.org>
58761 * modules/utf8-ucs4: New file.
58762 * modules/utf16-ucs4: New file.
58763 * modules/ucs4-utf8: New file.
58764 * modules/ucs4-utf16: New file.
58765 * MODULES.html.sh (func_all_modules): Add them.
58767 2003-04-03 Bruno Haible <bruno@clisp.org>
58769 * m4/utf-ucs4.m4: New file.
58770 * m4/ucs4-utf.m4: New file.
58772 2003-04-03 Bruno Haible <bruno@clisp.org>
58774 * lib/utf8-ucs4.h: New file, from GNU gettext.
58775 * lib/utf16-ucs4.h: New file, from GNU gettext.
58776 * lib/ucs4-utf8.h: New file, from GNU gettext.
58777 * lib/ucs4-utf16.h: New file, from GNU gettext.
58779 2003-04-02 Bruno Haible <bruno@clisp.org>
58781 * modules/binary-io: New file.
58782 * MODULES.html.sh (func_all_modules): Add it.
58784 2003-04-02 Bruno Haible <bruno@clisp.org>
58786 * lib/binary-io.h: New file, from GNU gettext.
58788 2003-04-01 Bruno Haible <bruno@clisp.org>
58790 * modules/pathname: New file.
58791 * MODULES.html.sh (func_all_modules): Add it.
58793 2003-04-01 Bruno Haible <bruno@clisp.org>
58795 * lib/pathname.h: New file, from GNU gettext.
58796 * lib/concatpath.c: New file, from GNU gettext.
58798 2003-03-30 Bruno Haible <bruno@clisp.org>
58800 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58802 2003-03-30 Bruno Haible <bruno@clisp.org>
58804 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58805 function chown() doesn't exist.
58807 2003-03-28 Bruno Haible <bruno@clisp.org>
58809 * modules/copy-file: New file.
58810 * MODULES.html.sh (func_all_modules): Add it.
58812 2003-03-28 Bruno Haible <bruno@clisp.org>
58814 * m4/copy-file.m4: New file.
58816 2003-03-28 Bruno Haible <bruno@clisp.org>
58818 * lib/copy-file.h: New file, from GNU gettext.
58819 * lib/copy-file.c: New file, from GNU gettext.
58821 2003-03-18 Jim Meyering <jim@meyering.net>
58823 * lib/quote.c (quote_n): Fix typo in comment.
58825 2003-03-18 Bruno Haible <bruno@clisp.org>
58827 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58829 * m4/onceonly_2_57.m4: Likewise.
58831 2003-03-17 Bruno Haible <bruno@clisp.org>
58833 * m4/onceonly.m4: Require autoconf 2.54 or newer.
58834 (m4_quote): Remove macro.
58835 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58837 2003-03-14 Jim Meyering <jim@meyering.net>
58839 Merge changes from Coreutils.
58840 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58841 to be const, in order to avoid warnings.
58842 (obstack_room): Likewise.
58843 (obstack_empty_p): Likewise.
58845 2003-03-14 Bruno Haible <bruno@clisp.org>
58847 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58848 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58850 2003-03-13 Paul Eggert <eggert@twinsun.com>
58852 Merge changes from Bison.
58853 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58854 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58855 when compiling Bison 1.875's `bitset bset = obstack_alloc
58856 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
58857 * lib/hash.c: Include <stdbool.h> unconditionally.
58859 2003-03-13 Paul Eggert <eggert@twinsun.com>
58861 * m4/onceonly.m4 (m4_quote): New macro.
58862 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58863 Quote AC_FOREACH variable-expansions properly.
58865 2003-03-13 Paul Eggert <eggert@twinsun.com>
58867 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58869 2003-03-09 Paul Eggert <eggert@twinsun.com>
58871 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58872 Reported by Bruce Becker; see:
58873 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58875 2003-03-03 Paul Eggert <eggert@twinsun.com>
58876 Bruno Haible <bruno@clisp.org>
58878 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58879 Reported by John Hughes, see
58880 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58882 2003-02-20 Bruno Haible <bruno@clisp.org>
58884 * MODULES.html.sh (func_all_modules): Add poll.
58886 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58888 * modules/poll: New file.
58890 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58892 * lib/poll_.h: New file.
58893 * lib/poll.c: New file.
58895 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58897 * m4/poll.m4: New file.
58899 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58901 * modules/mathl: New file.
58903 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58905 * lib/mathl.h: New file.
58906 * lib/acosl.c: New file.
58907 * lib/asinl.c: New file.
58908 * lib/atanl.c: New file.
58909 * lib/ceill.c: New file.
58910 * lib/cosl.c: New file.
58911 * lib/expl.c: New file.
58912 * lib/floorl.c: New file.
58913 * lib/frexpl.c: New file.
58914 * lib/ldexpl.c: New file.
58915 * lib/logl.c: New file.
58916 * lib/sincosl.c: New file.
58917 * lib/sinl.c: New file.
58918 * lib/sqrtl.c: New file.
58919 * lib/tanl.c: New file.
58920 * lib/trigl.c: New file.
58921 * lib/trigl.h: New file.
58923 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58925 * m4/mathl.m4: New file.
58927 2003-02-18 Bruno Haible <bruno@clisp.org>
58929 * MODULES.html.sh (func_all_modules): Add mathl.
58931 2003-02-17 Bruno Haible <bruno@clisp.org>
58933 * modules/mkdtemp: New module.
58934 * MODULES.html.sh (func_all_modules): Add it.
58936 2003-02-17 Bruno Haible <bruno@clisp.org>
58938 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58940 2003-02-17 Bruno Haible <bruno@clisp.org>
58942 * lib/mkdtemp.h: New file, from GNU gettext.
58943 * lib/mkdtemp.c: New file, from GNU gettext.
58945 2003-02-02 Jim Meyering <jim@meyering.net>
58947 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58950 2003-01-31 Bruno Haible <bruno@clisp.org>
58952 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58954 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58956 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58958 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58961 2003-01-31 Bruno Haible <bruno@clisp.org>
58963 * lib/rename.c: #undef rename before defining rpl_rename.
58964 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58966 2003-01-30 Bruno Haible <bruno@clisp.org>
58968 * modules/vasnprintf, modules/vasprintf: New modules.
58969 * MODULES.html.sh (func_all_modules): Add them.
58971 2003-01-30 Bruno Haible <bruno@clisp.org>
58973 * m4/signed.m4: New file, from GNU gettext.
58974 * m4/longdouble.m4: New file, from GNU gettext.
58975 * m4/wchar_t.m4: New file, from GNU gettext.
58976 * m4/wint_t.m4: New file, from GNU gettext.
58977 * m4/vasnprintf.m4: New file.
58978 * m4/vasprintf.m4: New file.
58980 2003-01-30 Bruno Haible <bruno@clisp.org>
58982 * lib/printf-args.h: New file, from GNU gettext.
58983 * lib/printf-args.c: New file, from GNU gettext.
58984 * lib/printf-parse.h: New file, from GNU gettext.
58985 * lib/printf-parse.c: New file, from GNU gettext.
58986 * lib/vasnprintf.h: New file, from GNU gettext.
58987 * lib/vasnprintf.c: New file, from GNU gettext.
58988 * lib/asnprintf.c: New file, from GNU gettext.
58989 * lib/vasprintf.h: New file, from GNU gettext with modifications.
58990 * lib/vasprintf.c: New file, from GNU gettext.
58991 * lib/asprintf.c: New file, from GNU gettext.
58993 2003-01-29 Bruno Haible <bruno@clisp.org>
58995 * modules/stpncpy: New module.
58996 * MODULES.html.sh (func_all_modules): Add it.
58998 2003-01-29 Bruno Haible <bruno@clisp.org>
59000 * m4/stpncpy.m4: New file.
59002 2003-01-29 Bruno Haible <bruno@clisp.org>
59004 * lib/stpncpy.h: New file, from GNU gettext with modifications.
59005 * lib/stpncpy.c: New file, from GNU gettext with modifications.
59007 2003-01-28 Bruno Haible <bruno@clisp.org>
59009 * modules/c-ctype: New module.
59010 * MODULES.html.sh (func_all_modules): Add it.
59012 2003-01-28 Bruno Haible <bruno@clisp.org>
59014 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59016 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59019 2003-01-27 Bruno Haible <bruno@clisp.org>
59021 * modules/xsetenv: New module.
59022 * MODULES.html.sh (func_all_modules): Add it.
59024 2003-01-27 Bruno Haible <bruno@clisp.org>
59026 * lib/xsetenv.h: New file, from GNU gettext.
59027 * lib/xsetenv.c: New file, from GNU gettext.
59029 2003-01-23 Jim Meyering <jim@meyering.net>
59031 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59032 from working on systems without dirfd (at least Irix and OSF1/Tru64).
59034 2003-01-23 Bruno Haible <bruno@clisp.org>
59036 * modules/minmax: New module.
59037 * MODULES.html.sh (func_all_modules): Add it.
59039 2003-01-23 Bruno Haible <bruno@clisp.org>
59041 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59044 2003-01-22 Bruno Haible <bruno@clisp.org>
59046 * modules/exit: New module.
59047 * MODULES.html.sh (func_all_modules): Add it.
59049 2003-01-22 Bruno Haible <bruno@clisp.org>
59051 * lib/exit.h: New file, from GNU gettext.
59053 2003-01-19 Bruno Haible <bruno@clisp.org>
59055 * gnulib-tool: Recognize option --extract-maintainer.
59056 (func_get_maintainer): New function.
59057 * modules/*: Add Maintainer entry.
59059 2003-01-16 Jim Meyering <jim@meyering.net>
59061 * m4/regex.m4: The `regex' struct is both input and output.
59062 Initialize it before each use. Patch by Tim Waugh.
59064 2003-01-16 Bruno Haible <bruno@clisp.org>
59066 * MODULES.html.sh: Add a table of contents. Add the module name as
59067 leftmost column. Add hyperlinks.
59069 2003-01-15 Bruno Haible <bruno@clisp.org>
59071 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59073 2003-01-15 Bruno Haible <bruno@clisp.org>
59075 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59076 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59079 2003-01-15 Bruno Haible <bruno@clisp.org>
59081 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59083 2003-01-15 Bruno Haible <bruno@clisp.org>
59085 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59086 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59088 2003-01-14 Jim Meyering <jim@meyering.net>
59090 * lib/same.c (same_name): Tweak a comment.
59092 2003-01-14 Bruno Haible <bruno@clisp.org>
59094 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59095 when a string comparison is sufficient.
59097 2003-01-14 Bruno Haible <bruno@clisp.org>
59099 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59102 2003-01-14 Bruno Haible <bruno@clisp.org>
59104 * lib/hash-pjw.c: Add comment about low quality of this function.
59106 2003-01-13 Bruno Haible <bruno@clisp.org>
59108 * modules/stpcpy: Distribute lib/stpcpy.h.
59109 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59111 2003-01-13 Bruno Haible <bruno@clisp.org>
59113 * modules/*: Add a description.
59114 * modules/strpbrk: Fix Makefile.am snippet.
59115 * modules/strtoimax: Fix dependencies.
59116 * modules/strtoumax: Likewise.
59118 2003-01-13 Bruno Haible <bruno@clisp.org>
59120 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59121 * modules/alloca (Makefile.am): All object files depend on alloca.h.
59122 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59124 2003-01-13 Bruno Haible <bruno@clisp.org>
59126 * gnulib-tool (func_create_testdir): Store config/* files in the main
59128 * config.rpath: Move to ...
59129 * config/config.rpath: ... here.
59130 * modules/gettext: Contains config/config.rpath, not config.rpath.
59131 * modules/iconv: Likewise.
59133 2003-01-12 Paul Eggert <eggert@twinsun.com>
59135 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59136 to avoid collisions with libcurses and libreadline.
59138 * m4/getstr.m4: Remove.
59139 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59141 2003-01-12 Paul Eggert <eggert@twinsun.com>
59143 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59144 to avoid collisions with libcurses and libreadline.
59146 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59147 * lib/getstr.h, getstr.c: Remove.
59148 * lib/getline.c: Include "getline.h", to check interface.
59149 Move body of old getstr.c here: this defines MIN_CHUNK and
59150 declares getdelim2, which is renamed from getstr.
59151 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59153 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59155 * lib/linebuffer.h: Likewise.
59156 (readline): Remove backward-compatibility macro.
59158 2003-01-12 Paul Eggert <eggert@twinsun.com>
59160 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59161 to avoid collisions with libcurses and libreadline.
59163 * MODULES.html.sh: Remove getstr.
59164 * modules/getline: Depend on unlocked-io, not getstr.
59166 2003-01-12 Jim Meyering <jim@meyering.net>
59168 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
59170 2003-01-10 Bruno Haible <bruno@clisp.org>
59172 * modules/alloca: Change Makefile.am requirements. Simplify Include
59173 requirements. Add lib/alloca_.h to file list.
59175 2003-01-10 Bruno Haible <bruno@clisp.org>
59177 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59179 2003-01-10 Bruno Haible <bruno@clisp.org>
59181 * lib/alloca_.h: New file.
59182 * lib/getdate.y: Unconditionally include alloca.h.
59183 * lib/makepath.c: Likewise.
59184 * lib/setenv.c: Likewise.
59185 * lib/userspec.c: Likewise.
59187 2003-01-09 Karl Berry <karl@gnu.org>
59189 * MODULES.html.sh: include `dirname $0` in PATH, to find
59192 2003-01-09 Bruno Haible <bruno@clisp.org>
59194 * modules/stdbool: Change configure.ac, Makefile.am requirements.
59195 Simplify Include requirements. Add lib/stdbool.h.in to file list.
59197 2003-01-09 Bruno Haible <bruno@clisp.org>
59199 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59201 2003-01-09 Bruno Haible <bruno@clisp.org>
59203 * lib/stdbool.h.in: New file.
59205 2003-01-09 Bruno Haible <bruno@clisp.org>
59207 * gnulib-tool (func_all_modules): Ignore files ending in ~.
59208 * MODULES.html.sh: Likewise.
59210 2003-01-08 Jim Meyering <jim@meyering.net>
59212 * lib/full-write.c: Undefine and define-away `const' after inclusion
59213 of errno.h, not before. Suggestion from Bruno Haible.
59215 2003-01-08 Bruno Haible <bruno@clisp.org>
59217 * modules/full-read: Depend on full-write.
59219 2003-01-08 Bruno Haible <bruno@clisp.org>
59221 * lib/safe-read.c: Include specification header first, to ensure its
59223 * lib/full-write.c: Likewise.
59225 2003-01-07 Jim Meyering <jim@meyering.net>
59227 * lib/full-write.c: Rework so that it may serve to define full_read,
59229 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59231 2003-01-07 Bruno Haible <bruno@clisp.org>
59233 * lib/strtoimax.c: Include <stdint.h> as an alternative to
59235 * lib/xstrtol.h: Likewise.
59236 * lib/xstrtoimax.c: Likewise.
59237 * lib/xstrtoumax.c: Likewise.
59238 * lib/human.h: Likewise.
59240 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59241 on systems that have <inttypes.h> but not <stdint.h>.
59243 2003-01-07 Bruno Haible <bruno@clisp.org>
59245 * MODULES.html.sh: Add copyright notice.
59246 (missed_files): Omit CVS directory entries.
59247 (func_module): Make it work with sed-3.02.
59248 * MODULES.txt: Remove file.
59250 2003-01-06 Jim Meyering <jim@meyering.net>
59252 * lib/version-etc.c: Update year in translatable copyright string.
59254 2003-01-03 Karl Berry <karl@gnu.org>
59256 * config/config.{guess,sub}: update from prep.
59258 2003-01-02 Karl Berry <karl@gnu.org>
59260 * doc/COPYING.DOC: belatedly updated to 1.2.
59262 2003-01-01 Karl Berry <karl@gnu.org>
59264 * gnulib-tool (func_verify_module): report module name $module in
59265 error message, not $1.
59266 * gnulib-tool (create-testdir): don't complain if destdir couldn't
59267 be created, only if it doesn't exist.
59268 * gnulib-tool (last_checkin_date): don't expand the $Date here.
59270 2002-12-31 Paul Eggert <eggert@twinsun.com>
59272 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59274 2002-12-31 Paul Eggert <eggert@twinsun.com>
59276 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59277 memcmp if strcoll doesn't work.
59279 2002-12-31 Bruno Haible <bruno@clisp.org>
59281 * lib/utime.c (utime_null): No need to call ftruncate if the file was
59284 2002-12-31 Bruno Haible <bruno@clisp.org>
59286 * lib/memcoll.c (STRCOLL): New macro.
59289 2002-12-31 Bruno Haible <bruno@clisp.org>
59291 * lib/localcharset.h: New file.
59292 * lib/localcharset.c: Include it.
59293 * lib/unicodeio.c: Likewise.
59295 2002-12-31 Bruno Haible <bruno@clisp.org>
59297 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59298 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59300 2002-12-31 Bruno Haible <bruno@clisp.org>
59302 * lib/getline.h: Include <stddef.h>, for size_t.
59304 * lib/unicodeio.h: Include <stddef.h>, for size_t.
59305 * lib/unicodeio.c: Don't include <stddef.h>.
59307 2002-12-31 Bruno Haible <bruno@clisp.org>
59309 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59312 2002-12-24 Karl Berry <karl@gnu.org>
59314 * config/config.guess: update from prep.
59316 2002-12-24 Bruno Haible <bruno@clisp.org>
59318 General infrasructure.
59319 * m4/README: Rewritten.
59320 * m4/onceonly.m4: New file.
59321 * m4/onceonly_2_57.m4: New file.
59324 * m4/atexit.m4: New file.
59327 * m4/strtod.m4: New file.
59330 * m4/strtol.m4: New file.
59333 * m4/strtoul.m4: New file.
59336 * m4/memchr.m4: New file.
59339 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59340 (jm_FUNC_MEMCMP): Invoke it.
59343 * m4/memcpy.m4: New file.
59346 * m4/memmove.m4: New file.
59349 * m4/memset.m4: New file.
59352 * m4/strcspn.m4: New file.
59355 * m4/strpbrk.m4: New file.
59358 * m4/strstr.m4: New file.
59361 * m4/strerror.m4: New file.
59364 * m4/mktime.m4: Renamed from jm-mktime.m4.
59365 (gl_PREREQ_MKTIME): New macro.
59366 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59369 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59370 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59371 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59374 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59375 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59376 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59379 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59380 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59381 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59383 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59386 * m4/xalloc.m4: New file.
59389 * m4/alloca.m4: New file.
59392 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59393 (jm_FUNC_PUTENV): Invoke it.
59396 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59397 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59398 when invoked twice.
59399 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59403 * m4/memrchr.m4: New file.
59406 * m4/stpcpy.m4: New file.
59409 * m4/strcase.m4: New file.
59412 * m4/strdup.m4: New file.
59415 * m4/strnlen.m4: New file.
59418 * m4/strndup.m4: New file.
59421 * m4/xstrtod.m4: New file.
59424 * m4/xstrtol.m4: New file.
59427 * m4/getdate.m4: New file.
59429 Module unlocked-io.
59430 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59431 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59432 * m4/jm-glibc-io.m4n: Remove file.
59434 Module long-options.
59435 * m4/long-options.m4: New file.
59438 * m4/md5.m4: New file.
59441 * m4/sha.m4: New file.
59444 * m4/getstr.m4: New file.
59447 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59448 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59449 <sys/types.h>, for size_t. Use the function name gnu_getline, not
59450 simply getline. Infoke gl_PREREQ_GETLINE.
59453 * m4/obstack.m4: New file.
59456 * m4/hash.m4: New file.
59459 * m4/readtokens.m4: New file.
59462 * m4/strverscmp.m4: New file.
59465 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59469 * m4/strtoll.m4: New file.
59472 * m4/strtoull.m4: New file.
59475 * m4/strtoimax.m4: New file.
59478 * m4/strtoumax.m4: New file.
59481 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59482 jm_AC_PREREQ_XSTRTOIMAX.
59483 Moved the strtol prerequisites to strtol.m4.
59484 Moved the strtoll prerequisites to strtoll.m4.
59485 Moved the strtoimax prerequisites to strtoimax.m4.
59488 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59489 jm_AC_PREREQ_XSTRTOUMAX.
59490 Moved the strtoul prerequisites to strtoul.m4.
59491 Moved the strtoull prerequisites to strtoull.m4.
59492 Moved the strtoumax prerequisites to strtoumax.m4.
59495 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59496 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59499 * m4/dup2.m4: New file.
59502 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59503 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59506 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59507 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59509 Module gettimeofday.
59510 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59511 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59512 gl_PREREQ_GETTIMEOFDAY.
59515 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59516 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59519 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59520 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59521 jm_AC_TYPE_UINTMAX_T.
59522 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59525 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59526 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59529 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59530 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59533 * m4/timespec.m4 (gl_TIMESPEC): New macro.
59534 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59535 * m4/st_mtim.m4: Indentation.
59538 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59539 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59540 gl_PREREQ_NANOSLEEP.
59543 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59544 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59545 (gl_REGEX): New macro.
59548 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59549 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59552 * m4/rmdir.m4: New file.
59555 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59556 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59557 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59560 * m4/dirname.m4: New file.
59563 * m4/getopt.m4: New file.
59565 Module unistd-safer.
59566 * m4/unistd-safer.m4: New file.
59569 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59571 (gl_PREREQ_FNMATCH_EXTRA): New macro.
59572 (gl_FUNC_FNMATCH_POSIX): New macro.
59573 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59574 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59578 * m4/exclude.m4: New file.
59581 * m4/human.m4: New file.
59587 * m4/backupfile.m4: New file.
59588 * m4/d-ino.m4: Indentation.
59591 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59592 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59593 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59596 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59600 * m4/euidaccess.m4: New file.
59603 * m4/file-type.m4: New file.
59606 * m4/fileblocks.m4: New file.
59609 * m4/filemode.m4: New file.
59612 * m4/isdir.m4: New file.
59615 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59616 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59619 * m4/makepath.m4: New file.
59622 * m4/modechange.m4: New file.
59625 * m4/mountlist.m4: New file.
59626 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59629 Module path-concat.
59630 * m4/path-concat.m4: New file.
59633 * m4/pathmax.m4: New file.
59636 * m4/same.m4: New file.
59639 * m4/save-cwd.m4: New file.
59642 * m4/savedir.m4: New file.
59645 * m4/xgetcwd.m4: New file.
59646 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59649 * m4/xreadlink.m4: New file.
59652 * m4/safe-read.m4: New file.
59655 * m4/safe-write.m4: New file.
59658 * m4/closeout.m4: New file.
59660 Module stdio-safer.
59661 * m4/stdio-safer.m4: New file.
59664 * m4/getpass.m4: New file.
59667 * m4/getugroups.m4: New file.
59669 Module group-member.
59670 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59671 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59674 * m4/idcache.m4: New file.
59677 * m4/userspec.m4: New file.
59680 * m4/clock_time.m4: New file.
59681 * m4/gettime.m4: New file.
59684 * m4/settime.m4: New file.
59687 * m4/posixtm.m4: New file.
59689 Module gethostname.
59690 * m4/gethostname.m4: New file.
59693 * m4/canon-host.m4: New file.
59696 * m4/codeset.m4: New file, from gettext-0.11.5.
59697 * m4/gettext.m4: New file, from gettext-0.11.5.
59698 * m4/glibc21.m4: New file, from gettext-0.11.5.
59699 * m4/iconv.m4: New file, from gettext-0.11.5.
59700 * m4/intdiv0.m4: New file, from gettext-0.11.5.
59701 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59702 * m4/inttypes.m4: New file, from gettext-0.11.5.
59703 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59704 * m4/isc-posix.m4: New file, from gettext-0.11.5.
59705 * m4/lcmessage.m4: New file, from gettext-0.11.5.
59706 * m4/lib-ld.m4: New file, from gettext-0.11.5.
59707 * m4/lib-link.m4: New file, from gettext-0.11.5.
59708 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59709 * m4/progtest.m4: New file, from gettext-0.11.5.
59710 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59711 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59712 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59714 Module localcharset.
59715 * m4/localcharset.m4: New file.
59717 Module hard-locale.
59718 * m4/hard-locale.m4: New file.
59721 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59723 * m4/mbrtowc.m4: Add comment.
59726 * m4/memcasecmp.m4: New file.
59729 * m4/memcoll.m4: New file.
59732 * m4/unicodeio.m4: New file.
59735 * m4/rpmatch.m4: New file.
59738 * m4/yesno.m4: New file.
59741 * m4/exitfail.m4: New file.
59744 * m4/c-stack.m4 (gl_C_STACK): New macro.
59745 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59748 * m4/error.m4 (gl_ERROR): New macro.
59749 (jm_PREREQ_ERROR): Use onceonly macros.
59752 * m4/fatal.m4: New file.
59755 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59756 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59758 Module getpagesize.
59759 * m4/getpagesize.m4: New file.
59761 Module getusershell.
59762 * m4/getusershell.m4: New file.
59765 * m4/physmem.m4: New file.
59768 * m4/posixver.m4: New file.
59771 * m4/quotearg.m4: New file.
59774 * m4/quote.m4: New file.
59777 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59780 * m4/sig2str.m4: New file.
59783 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59785 * m4/intmax_t.m4: New file.
59786 * m4/d-type.m4: Indentation.
59787 * m4/jm-macros.m4: Update.
59788 * m4/prereq.m4 (jm_PREREQ): Update.
59789 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59790 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59791 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59792 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59793 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59794 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59795 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59796 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59797 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59798 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59799 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59800 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59801 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59802 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59803 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59804 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59805 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59806 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59807 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59809 2002-12-24 Bruno Haible <bruno@clisp.org>
59811 * MODULES.txt: Update according to m4/ changes.
59814 * config.rpath: New file, from gettext-0.11.5.
59816 * modules/*: New module descriptions.
59817 * gnulib-tool: New file.
59818 * MODULES.html.sh: New file.
59820 2002-12-21 Karl Berry <karl@gnu.org>
59822 * doc/fdl.texi: update to version 1.2.
59824 2002-12-19 Karl Berry <karl@gnu.org>
59826 * config/config.guess: update from prep.
59828 2002-12-18 Bruno Haible <bruno@clisp.org>
59830 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59831 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59833 2002-12-17 Bruno Haible <bruno@clisp.org>
59835 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59836 stdlib.h, string.h.
59838 2002-12-17 Bruno Haible <bruno@clisp.org>
59840 * lib/canon-host.c (strdup): Remove unused declaration.
59842 * lib/fsusage.c: Include full_read.h.
59843 (get_fs_usage): Use full_read instead of safe_read.
59845 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59847 2002-12-12 Karl Berry <karl@gnu.org>
59849 * config/config.guess: update from prep.
59851 2002-12-11 Bruno Haible <bruno@clisp.org>
59853 * m4/setenv.m4: New file, from gettext-0.11.5.
59855 2002-12-11 Bruno Haible <bruno@clisp.org>
59857 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59859 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59862 2002-12-11 Bruno Haible <bruno@clisp.org>
59864 * setenv.c (alloca): Fall back to malloc.
59865 (freea): New macro.
59866 (setenv): Use freea() to free memory allocated with alloca().
59868 2002-11-13 Bruno Haible <bruno@clisp.org>
59870 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59871 function declarations.
59872 * unsetenv.c (unsetenv): Likewise.
59874 2002-03-04 Bruno Haible <bruno@clisp.org>
59876 Portability to AIX 4.3.3.
59877 * unsetenv.c: New file, extracted from setenv.c.
59878 * setenv.c: Move the unsetenv() function to unsetenv.c.
59880 2001-12-20 Bruno Haible <bruno@clisp.org>
59882 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59883 use malloc instead. For SunOS 4.
59885 2001-12-11 Bruno Haible <bruno@clisp.org>
59887 * setenv.c: Declare alloca.
59888 (compar_fn_t): New typedef.
59889 (KNOWN_VALUE, STORE_VALUE): Use it.
59891 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59894 2002-12-10 Paul Eggert <eggert@twinsun.com>
59896 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59897 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59898 Choose values that are less likely to collide with system fnmatch
59900 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59901 defined (e.g., a pure POSIX system).
59902 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59903 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59905 2002-12-06 Paul Eggert <eggert@twinsun.com>
59907 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59908 a pain in practice to deal with generated m4 files. This change
59909 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59911 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59912 and jm-glibc-io.m4, as they are no longer a special case.
59913 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59914 kludge and the auto-generation stuff. Check only whether the
59915 functions are declared, not whether they exist, since older hosts
59916 that don't declare the functions can't use the optimization anyway.
59918 2002-12-06 Jim Meyering <jim@meyering.net>
59920 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59922 Merge in changes from libc's misc/error.c, in preparation
59923 for the merge of gnulib's changes back into libc.
59925 * lib/error.c (_): Define only if not already defined.
59926 Move definition to follow all #include directives.
59927 Include unlocked-io.h only if !_LIBC.
59928 [_LIBC]: Include <libio/libioP.h>.
59929 [USE_IN_LIBIO]: Include <libio/iolibio.h>
59930 (fflush): Tweak definition to use INTUSE.
59933 2002-12-05 Paul Eggert <eggert@twinsun.com>
59935 * lib/alloca.c [defined emacs]: Include "lisp.h".
59936 (xalloc_die) [defined emacs]: New macro.
59937 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59938 [! defined emacs]: Include <xalloc.h>.
59939 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59940 (pointer): Typedef to POINTER_TYPE *.
59941 (malloc): Remove decl; we now always use xmalloc.
59942 (alloca): Use old-style definition, since Emacs needs this.
59943 Check for arithmetic overflow when computing combined size.
59945 2002-12-04 Paul Eggert <eggert@twinsun.com>
59947 Do not generate unlocked-io.h automatically, since it's easier to
59948 maintain it by hand.
59950 * lib/unlocked-io.h: New file, from GNU diffutils,
59951 but with proper copyright notice and attribution.
59952 * lib/gen-uio: Remove.
59953 * lib/Makefile.am: Add copyright notice.
59954 (libfetish_a_SOURCES): Add unlocked-io.h.
59955 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59956 (DISTCLEANFILES, io_functions): Remove macros.
59957 (EXTRA_DIST): Remove gen_uio.
59958 (unlocked-io.h): Remove rule.
59960 2002-12-04 Jim Meyering <jim@meyering.net>
59962 Reflect the fact that stat.c and lstat.c are no longer generated.
59963 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59964 (DISTCLEANFILES): Likewise.
59965 (EXTRA_DIST): Likewise.
59966 (all_local): Don't depend on stat.c or lstat.c.
59967 (stat.c, lstat.c): Remove rules.
59968 (EXTRA_DIST): Remove xstat.in.
59970 * lib/xstat.in: Remove file. Contents moved into stat.c.
59971 * lib/stat.c: New file. Contents mostly from xstat.in.
59972 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59973 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59975 * lib/safe-read.c: Rework so that it may serve to define safe_write,
59977 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59979 2002-12-03 Jim Meyering <jim@meyering.net>
59981 * lib/safe-read.c, safe-write.c: Change variable names and comments,
59982 but not semantics, to minimize the differences between these two files.
59983 (safe_read): Change comment to mention SAFE_READ_ERROR.
59985 * lib/safe-read.c (IS_EINTR): Define.
59986 (safe_read): Use IS_EINTR in place of in-function cpp directives.
59988 2002-12-02 Jim Meyering <jim@meyering.net>
59990 * lib/safe-read.c (EINTR): Define.
59991 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59992 (INT_MAX): Provide fallback.
59993 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59995 * lib/safe-read.h (SAFE_READ_ERROR): Define.
59997 2002-12-02 Bruno Haible <bruno@clisp.org>
59999 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60000 Define, taken from safe-read.c.
60001 (INT_MAX): Provide fallback.
60002 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60003 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60005 * lib/safe-read.c (EINTR): Remove definition.
60006 (safe_read): Don't use EINTR if it is absent.
60008 2002-12-01 Jim Meyering <jim@meyering.net>
60010 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60012 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60014 2002-11-27 Paul Eggert <eggert@twinsun.com>
60016 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60017 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60018 with `if (! (value < limit)) abort ();', for readability.
60020 2002-11-26 Karl Berry <karl@gnu.org>
60022 * lib/strdup.c: copy from libc again, with jim's ok.
60023 * lib/.cppi-disable: re-add strdup.c
60025 2002-11-25 Karl Berry <karl@gnu.org>
60027 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60028 instead of "strtol.c".
60030 2002-11-25 Karl Berry <karl@gnu.org>
60032 * config/install-sh: update from automake for variable quoting, $0 in
60035 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60036 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60039 2002-11-25 Jim Meyering <jim@meyering.net>
60041 * lib/mktime.c: Sync from libc, now that it has the latest fix.
60043 2002-11-24 Karl Berry <karl@gnu.org>
60045 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60046 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60048 2002-11-24 Jim Meyering <jim@meyering.net>
60050 Update from coreutils:
60052 * lib/mktime.c: Merge in changes from libc.
60054 Avoid a link-time failure on some Linux systems.
60055 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60057 (__mon_yday): Declare with the STATIC attribute.
60058 (__mktime_internal): Likewise.
60059 Based on a report from Greg Schafer.
60061 2002-11-23 Jim Meyering <jim@meyering.net>
60063 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60064 Use `unsigned', not `int', as type of index.
60066 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60068 * lib/fsusage.c: Remove unneeded parentheses around operands of
60071 2002-11-22 Paul Eggert <eggert@twinsun.com>
60073 * lib/quotearg.h: Allow multiple inclusion by surrounding with
60074 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
60075 so that we can be included first.
60076 (PARAMS): Remove; we now assume C89 or later. All uses removed.
60077 * lib/quotearg.c: Include quotearg.h immediately after config.h.
60078 No need to include stddef.h or sys/types.h any more.
60079 Surround local include files with "", not "<>".
60080 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60081 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60082 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60083 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60084 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60085 (ISPRINT): Remove; no longer needed now that we assume C89.
60087 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60090 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60091 quotearg_char): Use SIZE_MAX rather than
60092 (size_t) -1 when we are talking about "infinity".
60094 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60096 2002-11-22 Paul Eggert <eggert@twinsun.com>
60098 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60099 hint that one should use `if (! x) abort ();' rather than `assert
60100 (x);', and anyway it's one less thing to worry about configuring.
60101 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60102 hash_rehash, hash_insert): Use abort rather than assert.
60104 2002-11-22 Bruno Haible <bruno@clisp.org>
60106 * lib/safe-read.h: Assume C89. Add comments.
60107 (safe_read): Change return type to size_t.
60108 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60109 byte counts > SSIZE_MAX correctly.
60110 * lib/safe-write.h: New file.
60111 * lib/safe-write.c: New file.
60112 * lib/full-read.h: New file.
60113 * lib/full-read.c: New file.
60114 * lib/full-write.h: Assume C89. Add comments.
60115 * lib/full-write.c: Include safe-write.h.
60116 (full_write): Rewritten to use safe_write.
60117 Suggested by Jim Meyering and Paul Eggert.
60119 2002-11-21 Jim Meyering <jim@meyering.net>
60121 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60123 Merge in changes from the coreutils.
60125 2002-09-25 Paul Eggert <eggert@twinsun.com>
60126 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60128 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60129 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60130 int. Work more efficiently if X is the same width as uintmax_t.
60131 Do not compare X to -1, to avoid bogus compiler warning.
60132 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60133 Don't assume that f_frsize and f_bsize are the same type.
60135 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60136 warning on FreeBSD.
60138 * lib/makepath.c (make_path): Restore umask *before* creating the final
60140 (make_path): Minor reformatting.
60142 * lib/xmalloc.c: Adjust to work with new autoconf macros,
60143 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60144 HAVE_MALLOC/HAVE_REALLOC.
60146 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60147 dummy ones. At least on GNU/Linux systems, `auto' means something
60149 From Michael Stone.
60151 2002-11-21 Bruno Haible <bruno@clisp.org>
60153 Remove case insensitive option matching.
60154 * lib/argmatch.h (argcasematch): Remove declaration.
60155 (ARGCASEMATCH): Remove macro.
60156 (__xargmatch_internal): Remove case_sensitive argument.
60157 (XARGMATCH): Update.
60158 (XARGCASEMATCH): Remove macro.
60159 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60160 case_sensitive argument.
60161 (argcasematch): Remove function.
60162 (__xargmatch_internal): Remove case_sensitive argument.
60163 (main): Use XARGMATCH instead of XARGCASEMATCH.
60165 * lib/xmalloc.c: Change compile-time error message. Add comment about
60166 required autoconf version.
60168 2002-11-20 Paul Eggert <eggert@twinsun.com>
60170 Merge argmatch cleanups from Bison. Assume C89.
60172 * lib/argmatch.c: Include config.h here, not in argmatch.h.
60173 Include stdlib.h, for EXIT_FAILURE.
60174 Always include <string.h>, since we assume C89.
60175 (EXIT_FAILURE): Remove pre-C89 bug workaround.
60176 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60177 Include <stddef.h> instead, since it's all we need for size_t.
60178 (PARAMS): Remove. All uses removed.
60179 (ARRAY_CARDINALITY): Do not bother to #undef.
60180 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60181 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60182 Remove unnecessary parentheses.
60183 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60184 Insert necessary parentheses.
60185 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60186 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60188 2002-11-19 Bruno Haible <bruno@clisp.org>
60190 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60191 * lib/mbswidth.h: Include <stddef.h>, for size_t.
60193 * lib/mbswidth.h (PARAMS): Remove macro.
60194 (mbswidth, mbsnwidth): Use ANSI C function declarations.
60195 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60197 * lib/gcd.h (PARAMS): Remove macro.
60198 (gcd): Use ANSI C function declarations.
60199 * lib/gcd.c (gcd): Likewise.
60201 2002-11-15 Bruno Haible <bruno@clisp.org>
60203 * lib/strcspn.c: Include <stddef.h>.
60204 (strcspn): Use ANSI C function declaration. Change return type to
60206 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60207 (strpbrk): Use NULL.
60208 * lib/strpbrk.h (PARAMS): Remove macro.
60209 (strpbrk): Use ANSI C function declaration.
60210 * lib/strstr.c: Don't include <sys/types.h>.
60211 * lib/strstr.h (PARAMS): Remove macro.
60212 (strstr): Use ANSI C function declarations.
60214 2002-11-14 Karl Berry <karl@gnu.org>
60216 * config/mkinstalldirs: `do' on separate line, instead of
60219 2002-11-06 Bruno Haible <bruno@clisp.org>
60221 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60222 * lib/gcd.c (gcd): Likewise.
60224 2002-11-05 Bruno Haible <bruno@clisp.org>
60226 * lib/gcd.h: New file, from gettext-0.11.5.
60227 * lib/gcd.c: New file, from gettext-0.11.5.
60229 2002-11-05 Bruno Haible <bruno@clisp.org>
60231 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60232 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60233 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60234 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60236 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60238 * lib/makepath.c: Include gettext.h instead of <locale.h> and
60241 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60242 * lib/human.c: Include gettext.h instead of <libintl.h>.
60243 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60244 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60245 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60246 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60247 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60248 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60249 (textdomain): Remove definition.
60250 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60252 * lib/long-options.c: Remove include of <libintl.h> and definition of
60254 * lib/same.c: Remove include of <libintl.h> and definition of _.
60256 2002-11-04 Owen Taylor <otaylor@redhat.com>
60258 * lib/config.charset: A few additions for Solaris.
60260 2002-11-04 Bruno Haible <haible@clisp.cons.org>
60262 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60263 * lib/localcharset.c (locale_charset): Declare as extern "C".
60265 2002-11-04 Bruno Haible <haible@clisp.cons.org>
60267 * lib/config.charset: msdos in uk_UA uses CP1125.
60269 2002-11-04 Bruno Haible <bruno@clisp.org>
60271 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60272 * lib/strcase.h: New file, from GNU gettext-0.11.5.
60273 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60274 * lib/strstr.h: New file, from GNU gettext-0.11.5.
60275 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60277 2002-11-04 Bruno Haible <bruno@clisp.org>
60279 * lib/localcharset.c (locale_charset): Don't return an empty string.
60281 2002-11-04 Bruno Haible <bruno@clisp.org>
60283 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60286 2002-11-04 Bruno Haible <bruno@clisp.org>
60288 * lib/config.charset: Update for newest glibc. Add canonical names
60289 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60291 2002-11-04 Bruno Haible <bruno@clisp.org>
60293 * lib/config.charset: Add support for NetBSD.
60295 2002-11-04 Bruno Haible <bruno@clisp.org>
60297 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60299 2002-11-01 Bruno Haible <bruno@clisp.org>
60301 * configure.in: Add AC_CONFIG_AUX_DIR call.
60302 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60304 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60306 2002-09-28 Karl Berry <karl@gnu.org>
60308 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60309 installed automake until the next release, since changes have been
60312 2002-09-25 Karl Berry <karl@gnu.org>
60314 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60315 * lib/getopt*: copy from libc/posix.
60316 * lib/gettext.h: copy from gettext.
60317 * lib/.cppi-disable: add strdup.c, gettext.h.
60319 2002-09-25 Karl Berry <karl@gnu.org>
60321 * config/srclist.txt: enable gettext.h check.
60322 * config/config.{guess,sub}: update from prep.
60323 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60324 from automake 1.6.3.
60327 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
60329 * regex.c (PATFETCH): Remove the translating fetch.
60330 (PATFETCH_RAW): Rename to PATFETCH.
60331 (set_image_of_range): New fun.
60332 (SET_RANGE_TABLE_WORK_AREA): Use it.
60333 (regex_compile): Don't translate the pattern chars so eagerly.
60334 Only do it when inserting an `exactn' bytecode or when handling
60336 (mutually_exclusive_p): Avoid empty statement.
60338 2002-07-06 Jim Meyering <meyering@lucent.com>
60340 * m4/README: Don't mention Makefile.am.in.
60341 Outline how I've tested changes to .m4 files. Yep, it's a pain.
60343 2002-07-01 Jim Meyering <meyering@lucent.com>
60345 * lib/c-stack.c: Include sys/time.h.
60346 From Volker Borchert.
60348 2002-06-26 Paul Eggert <eggert@twinsun.com>
60350 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60352 2002-06-26 Paul Eggert <eggert@twinsun.com>
60354 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60355 New macro. Use it uniformly instead of
60356 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60357 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60358 reported by Vin Shelton.
60360 2002-06-22 Paul Eggert <eggert@twinsun.com>
60362 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60363 Do not assume SA_SIGINFO behavior.
60364 Bug reported by Jim Meyering on NetBSD 1.5.2.
60366 2002-06-22 Jim Meyering <meyering@lucent.com>
60368 * m4/c-stack.m4: New file, from diffutils-2.8.2.
60369 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60371 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60372 now that configure.ac uses AC_GNU_SOURCE.
60373 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60374 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60376 Update to latest tools. Suggestions from Paul Eggert.
60377 * m4/stdbool.m4: New file, from diffutils-2.8.2.
60378 * m4/gnu-source.m4: Update from diffutils-2.8.2.
60379 * m4/fnmatch.m4: Likewise.
60380 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60381 to AC_HEADER_STDBOOL
60383 2002-06-22 Jim Meyering <meyering@lucent.com>
60385 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60386 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60388 2002-06-22 Jim Meyering <meyering@lucent.com>
60390 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60392 * lib/exitfail.c, exitfail.h: Likewise.
60393 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60395 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60397 (EXTRA_DIST): Add fnmatch_loop.c.
60398 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60400 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60401 * lib/fnmatch.c: Update from diffutils-2.8.2.
60402 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
60403 * lib/fnmatch.h: Remove file.
60405 2002-06-21 Jim Meyering <meyering@lucent.com>
60407 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60408 * m4/mbrtowc.m4: Likewise.
60410 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60411 * m4/mbswidth.m4: Reflect name change:
60412 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60413 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60415 * m4/lib-link.m4: Update from gettext-0.11.2.
60416 * m4/gettext.m4: Likewise.
60418 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60419 From Alfred M. Szmidt.
60421 2002-06-18 Paul Eggert <eggert@twinsun.com>
60423 * lib/file-type.h: Report an error if neither S_ISREG nor
60424 S_IFREG is defined, instead of using a test specific to glibc
60425 2.2. This should be safe, since POSIX requires S_ISREG and
60426 Unix Version 7 had S_IFREG. We don't need to check for
60427 <sys/types.h> since we don't use any symbols that it defines.
60429 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
60431 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60432 $@-t, so that each temporary file name is unique and valid in the first
60433 8 characters, for operation under DOS.
60435 2002-06-15 Paul Eggert <eggert@twinsun.com>
60437 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60439 2002-06-15 Jim Meyering <meyering@lucent.com>
60441 Work even with DJGPP 2.03, which lacks support for symlinks.
60443 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60445 * lib/lchown.c (S_ISLNK): Likewise.
60447 2002-06-15 Jim Meyering <meyering@lucent.com>
60449 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60450 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60451 have been included before this file.
60453 2002-06-14 Jim Meyering <meyering@lucent.com>
60455 * lib/file-type.h: Use the version from diffutils-2.8.2.
60456 * lib/file-type.c: Likewise.
60458 2002-06-07 Jim Meyering <meyering@lucent.com>
60460 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60461 They're needed at least for NetBSD 1.5.2.
60462 ($statxfs_includes): Include those same headers.
60463 ($statxfs_includes): Include sys/vfs.h if available.
60464 ($statxfs_includes): Likewise for sys/statvfs.h.
60465 Check for the following members in both structs statfs and statvfs:
60466 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60468 2002-06-01 Jim Meyering <meyering@lucent.com>
60470 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60471 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60473 2002-05-28 Jim Meyering <meyering@lucent.com>
60475 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60476 Reported by Volker Borchert.
60478 2002-05-27 Jim Meyering <meyering@lucent.com>
60480 Fix a problem seen only on nonconforming systems whereby ls.c's
60481 use of localtime, and then of gettimeofday would cause trouble:
60482 the localtime call used to initialize rpl_gettimeofday's save
60483 mechanism would clobber ls's current local time information so
60484 that in any long listing the first file would always be listed
60485 with date 1970-01-01. Analysis by Volker Borchert.
60487 * lib/gettimeofday.c (localtime): Undefine.
60488 (rpl_localtime): New function.
60490 2002-05-27 Jim Meyering <meyering@lucent.com>
60492 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60495 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60496 use the replacement function; it wouldn't resolve at link time.
60497 Reported by Volker Borchert.
60499 2002-05-22 Jim Meyering <meyering@lucent.com>
60501 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60503 * lib/file-type.h: New file.
60504 * lib/file-type.c (file_type): New file/function. Extracted from
60507 2002-04-30 Jim Meyering <meyering@lucent.com>
60509 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60511 2002-04-29 Paul Eggert <eggert@twinsun.com>
60513 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60515 2002-04-29 Paul Eggert <eggert@twinsun.com>
60517 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60518 Do not check for alloca.h (no longer used) or stdbool.h (was never
60519 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
60521 2002-04-29 Paul Eggert <eggert@twinsun.com>
60523 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60525 2002-04-29 Jim Meyering <meyering@lucent.com>
60527 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60528 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60529 Use AC_FUNC_STRNLEN here instead.
60531 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60532 With autoconf-2.53a, it's part of AC_PROG_CC.
60534 2002-04-28 Paul Eggert <eggert@twinsun.com>
60536 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60537 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60539 2002-04-28 Paul Eggert <eggert@twinsun.com>
60541 * lib/sig2str.h, lib/sig2str.c: New files.
60542 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60544 2002-04-28 Paul Eggert <eggert@twinsun.com>
60546 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60547 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
60548 of 127, since 64 is the largest conceivable number for ancient
60550 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60552 2002-04-28 Jim Meyering <meyering@lucent.com>
60554 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60556 2002-04-24 Jim Meyering <meyering@lucent.com>
60558 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60559 (jm_PREREQ): Use it.
60561 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60562 mach/mach.h fcntl.h.
60563 Check for this function: setlocale.
60565 2002-04-24 Jim Meyering <meyering@lucent.com>
60567 * lib/gettext.h: New file, from Gettext.
60568 * lib/Makefile.am (INCLUDES): Remove -I../intl.
60569 (libfetish_a_SOURCES): Add gettext.h.
60571 2002-04-16 Jim Meyering <meyering@lucent.com>
60573 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60574 ut_pid, ut_id, ut_exit.
60576 2002-04-16 Jim Meyering <meyering@lucent.com>
60578 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60579 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60580 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60582 2002-04-12 Jim Meyering <meyering@lucent.com>
60584 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60585 now-bogus check for f_type in sys/mount.h. Instead, just test for the
60586 existence of the getmntinfo function. Needed for Darwin 5.3.
60588 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60589 This is necessary at least on Darwin 5.3.
60591 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60592 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
60593 strnlen.o in the library, and that makes some versions of ranlib
60596 2002-04-12 Jim Meyering <meyering@lucent.com>
60598 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60600 2002-04-09 Jim Meyering <meyering@lucent.com>
60602 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60603 to be more precise. Rather than saying we're checking whether the
60604 function `works', say what we're testing.
60605 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60606 Reported by Bruno Haible.
60608 2002-03-10 Jim Meyering <meyering@lucent.com>
60610 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60611 Suggestion from Santiago Vila.
60613 2002-03-08 Jim Meyering <meyering@lucent.com>
60615 * lib/rename.c: Mention that this wrapper is needed also on
60616 mips-dec-ultrix4.4 systems.
60618 2002-03-02 Jim Meyering <meyering@lucent.com>
60620 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60621 not HAVE_CLOCK_SETTIME.
60623 2002-02-27 Paul Eggert <eggert@twinsun.com>
60625 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60626 Check for clock_settime.
60628 2002-02-27 Paul Eggert <eggert@twinsun.com>
60630 * lib/nanosleep.h: Rename to....
60631 * lib/timespec.h: New name for nanosleep.h. All uses changed.
60633 * lib/gettime.c: New file.
60634 * lib/settime.c: New file.
60635 * lib/stime.c: Remove.
60637 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60638 timespec.h. Remove nanosleep.h.
60640 2002-02-25 Paul Eggert <eggert@twinsun.com>
60642 * m4/acl.m4: New file.
60643 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60644 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60646 2002-02-25 Paul Eggert <eggert@twinsun.com>
60648 * lib/acl.c, lib/acl.h: New files.
60649 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60651 2002-02-24 Jim Meyering <meyering@lucent.com>
60653 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60654 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60655 cause trouble. Reported by Nelson Beebe.
60657 2002-02-23 Paul Eggert <eggert@twinsun.com>
60659 * lib/path-concat.c (xpath_concat): Reorder code to pacify
60660 compilers that don't know that xalloc_die never returns.
60662 2002-02-20 Jim Meyering <meyering@lucent.com>
60664 * lib/getdate.c: Regenerate using bison-1.33.
60666 2002-02-17 Jim Meyering <meyering@lucent.com>
60668 * config/config.guess (main): Don't use `head -1'; it's no longer
60669 portable. Use `sed 1q' instead.
60671 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
60673 * m4/codeset.m4: Upgrade to gettext-0.11.
60674 * m4/gettext.m4: Upgrade to gettext-0.11.
60675 * m4/glibc21.m4: Upgrade to gettext-0.11.
60676 * m4/iconv.m4: Upgrade to gettext-0.11.
60677 * m4/isc-posix.m4: Upgrade to gettext-0.11.
60678 * m4/lcmessage.m4: Upgrade to gettext-0.11.
60679 * m4/lib-ld.m4: New file, from gettext-0.11.
60680 * m4/lib-link.m4: New file, from gettext-0.11.
60681 * m4/lib-prefix.m4: New file, from gettext-0.11.
60682 * m4/progtest.m4: Upgrade to gettext-0.11.
60684 2002-02-15 Paul Eggert <eggert@twinsun.com>
60686 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60687 (jm_PREREQ): Use it.
60689 2002-02-15 Paul Eggert <eggert@twinsun.com>
60691 * lib/posixver.c, lib/posixver.h: New files.
60692 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60694 2002-02-02 Paul Eggert <eggert@twinsun.com>
60695 Bruno Haible <bruno@clisp.org>
60697 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60698 (fwrite_success_callback): New declaration.
60699 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60700 print_unicode_char. Call failure callback instead of error.
60701 (fwrite_success_callback): New function.
60702 (exit_failure_callback): New function.
60703 (fallback_failure_callback): New function.
60704 (print_unicode_char): Call unicode_to_mb.
60706 2002-01-26 Jim Meyering <meyering@lucent.com>
60708 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60709 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60711 2002-01-26 Jim Meyering <meyering@lucent.com>
60713 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60715 2002-01-22 Paul Eggert <eggert@twinsun.com>
60717 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60719 2002-01-22 Jim Meyering <meyering@lucent.com>
60721 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60722 Otherwise, some versions of automake would omit the rule that makes
60723 Makefile from Makefile.in.
60725 2002-01-21 Paul Eggert <eggert@twinsun.com>
60727 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60728 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60729 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60730 (memcoll): Set errno to zero if there is no error.
60732 * lib/quotearg.c (quotearg_buffer_restyled):
60733 Fix bug with quoting buffers containing NUL when backslashing escapes.
60734 This bug was exposed by the other changes in this patch.
60735 (quotearg_n_options): New arg ARGSIZE.
60736 All callers changed.
60737 (quoting_options_from_style): New function.
60738 (quotearg_n_style): Use it.
60739 (quotearg_n_style_mem): New function.
60741 * lib/quotearg.h (quotearg_n_style_mem): New function.
60743 2002-01-19 Jim Meyering <meyering@lucent.com>
60745 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60746 Remove useless quotes: DF_PROG="df".
60747 * m4/strnlen.m4: New file.
60749 2002-01-16 Paul Eggert <eggert@twinsun.com>
60751 * lib/backupfile.c (ISDIGIT): Comment fix.
60752 * lib/getdate.y (ISDIGIT): Likewise.
60753 * lib/posixtm.c (ISDIGIT, year): Likewise.
60754 * lib/strverscmp.c (ISDIGIT): Likewise.
60755 * lib/userspec.c (ISDIGIT): Likewise.
60757 2002-01-16 Jim Meyering <meyering@lucent.com>
60759 * lib/getdate.y: Add three semicolons, each just before a closing
60760 brace. Bison (as of version 1.31) no longer papers over that mistake.
60762 2002-01-05 Jim Meyering <meyering@lucent.com>
60764 * lib/version-etc.c (version_etc_copyright): Update copyright year.
60766 2001-12-19 Paul Eggert <eggert@twinsun.com>
60768 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60769 not silently exit merely because the output buffer happens to
60770 have nothing pending.
60772 2001-12-18 Paul Eggert <eggert@twinsun.com>
60774 See the big note in ../ChangeLog.
60775 * lib/human.c (suffixes): Prefer K to k for 1024.
60776 (generate_suffix_backwards): New function.
60777 (human_readable_inexact): Use it.
60778 * lib/xstrtol.c (__xstrtol): If there is no number but there
60779 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
60780 Accept 'K' as well as 'k'.
60782 2001-12-15 Jim Meyering <meyering@lucent.com>
60784 * lib/regex.h (__restrict_arr): Update from libc.
60786 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60787 as `remote' if the name starts with `//'. Suggested by Michael Stone.
60790 2001-12-14 Jim Meyering <meyering@lucent.com>
60792 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60793 Suggestion from Bruno Haible.
60795 2001-12-10 Jim Meyering <meyering@lucent.com>
60797 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60798 xrealloc, Instead, include "xalloc.h".
60799 (initbuffer): Don't cast xmalloc return value to char*.
60800 (readline): Reword comment.
60801 Don't cast xrealloc return value to char*
60802 Return NULL, not 0.
60804 2001-12-09 Jim Meyering <meyering@lucent.com>
60806 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60807 about `signed and unsigned type in conditional expression'.
60808 * lib/posixtm.c (posix_time_parse): Likewise.
60810 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60812 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60813 to avoid a pedantic warning.
60815 * lib/getstr.c: Don't include assert.h.
60816 (getstr): Remove warning-evoking assertions.
60817 Return -1 if offset parameter is out of bounds.
60818 Change the type of a local from int to size_t.
60820 * lib/strftime.c (my_strftime_localtime_r): Include this function
60821 definition in the `#if ! HAVE_TM_GMTOFF' block.
60823 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60824 Include xalloc.h instead.
60826 2001-12-02 Jim Meyering <meyering@lucent.com>
60828 * lib/tempname.c: Don't declare getenv, thus reverting the change of
60829 2001-11-18. It's no longer necessary, now that stdlib.h is always
60832 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60833 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
60835 2001-11-30 Akim Demaille <akim@epita.fr>
60837 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60838 before being defined.
60840 2001-11-27 Paul Eggert <eggert@twinsun.com>
60842 * lib/quotearg.h (quotearg_n, quotearg_n_style):
60843 First arg is int, not unsigned.
60844 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60845 (SIZE_MAX, UINT_MAX): New macros.
60846 (quotearg_n_options): Abort if N is negative.
60847 Avoid overflow check on hosts where size_t is 64 bits and int
60848 is 32 bits, as overflow is impossible there.
60849 Fix off-by-one typo that caused unnecessary reallocation.
60851 2001-11-27 Jim Meyering <meyering@lucent.com>
60853 * lib/tempname.c: Merge with version from libc.
60854 * lib/regex.c: Likewise.
60856 * lib/tempname.c: Include stdlib.h unconditionally. On some old
60857 systems for which STDC_HEADERS is 0, it was not included, resulting in
60858 a warning about an integer-to-pointer conversion problem with getenv.
60859 Reported by Volker Borchert.
60861 2001-11-26 Jim Meyering <meyering@lucent.com>
60863 * lib/gtod.h: Remove file.
60864 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60865 * lib/gettimeofday.c: Don't include gtod.h.
60866 (GTOD_init): Remove function.
60867 (rpl_gettimeofday): Do its job here instead, rather than aborting.
60868 Suggestion from Volker Borchert.
60870 2001-11-23 Jim Meyering <meyering@lucent.com>
60872 * lib/hash.h (struct hash_table): Don't define here. Merely declare
60874 * lib/hash.c (struct hash_table): Define it here instead.
60876 2001-11-22 Jim Meyering <meyering@lucent.com>
60878 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60880 2001-11-20 Jim Meyering <meyering@lucent.com>
60882 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60883 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60885 2001-11-19 Jim Meyering <meyering@lucent.com>
60887 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60888 directory. Use "conftestXXXXXX" as the template.
60889 Suggestion from Paul Eggert.
60891 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60892 immediately, so the test doesn't mistakenly hit the max-open-files
60895 2001-11-18 Paul Eggert <eggert@twinsun.com>
60897 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60898 (TEMPORARIES): New macro.
60899 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
60900 removes an artificial limitation (e.g. HP-UX 10.20, where
60903 2001-11-18 Jim Meyering <meyering@lucent.com>
60905 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60907 2001-11-18 Jim Meyering <meyering@lucent.com>
60909 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60912 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60913 files will be created before anything else.
60915 2001-11-17 Paul Eggert <eggert@twinsun.com>
60917 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60918 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60920 2001-11-17 Jim Meyering <meyering@lucent.com>
60922 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60923 Prompted by a report from Bob Proulx.
60925 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60926 Instead, require UTILS_FUNC_MKSTEMP.
60928 2001-11-17 Jim Meyering <meyering@lucent.com>
60930 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60931 Now, that's done as part of AC_FUNC_STRTOD.
60933 2001-11-17 Jim Meyering <meyering@lucent.com>
60935 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60936 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60937 rather than group writable. Patch by Juan F. Codagnone.
60939 * lib/readtokens.c: Remove explicit declarations of xmalloc and
60940 xrealloc, Instead, include "xalloc.h".
60942 * lib/mountlist.c: Include unlocked-io.h after all system headers.
60943 Remove explicit declarations of xmalloc, xrealloc,
60944 and xstrdup. Instead, include "xalloc.h".
60946 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60948 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60950 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60952 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60953 Reported by Padraig Brady.
60955 * lib/mkstemp.c: #undef mkstemp.
60957 (rpl_mkstemp): Rename from mkstemp.
60960 2001-11-16 Jim Meyering <meyering@lucent.com>
60962 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60963 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60964 determine the amount of total physical memory, use pstat_getstatic.
60965 HPUX-11 doesn't define _SC_PHYS_PAGES.
60966 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60967 If sysconf couldn't be used to determine the amount of available
60968 physical memory, use both pstat_getstatic and pstat_getdynamic.
60969 Based on a patch from Bob Proulx.
60971 2001-11-10 Jim Meyering <meyering@lucent.com>
60973 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60974 (jm_PREREQ): Use it.
60976 2001-11-09 Jim Meyering <meyering@lucent.com>
60978 * m4/jm-macros.m4: Require autoconf-2.52f.
60979 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60980 Use these AC_-prefixed names, not the AM_-prefixed ones.
60982 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
60984 2001-11-05 Jim Meyering <meyering@lucent.com>
60986 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60988 2001-11-04 Jim Meyering <meyering@lucent.com>
60990 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60993 2001-11-03 Jim Meyering <meyering@lucent.com>
60995 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60998 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60999 know the name of the variable in the macro definition.
61001 2001-11-03 Jim Meyering <meyering@lucent.com>
61003 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61004 in argmatch_to_argument call.
61006 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61009 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61010 e.g., a fault due to an attempt to free a NULL pointer.
61012 2001-11-01 Jim Meyering <meyering@lucent.com>
61014 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61015 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61017 2001-11-01 Jim Meyering <meyering@lucent.com>
61019 * lib/dirfd.c, lib/dirfd.h: New files.
61020 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61022 * lib/hash.c (hash_print) [TESTING]: Clean up.
61024 2001-10-22 Paul Eggert <eggert@twinsun.com>
61026 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61027 to avoid a warning if -Wall.
61029 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
61032 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61033 (per RMS's instructions, this is now the canonical source)
61034 * lgpl/, gpl/: New directories.
61036 2001-10-21 Paul Eggert <eggert@twinsun.com>
61038 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61040 2001-10-21 Jim Meyering <meyering@lucent.com>
61042 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
61043 this code would end up calling gettext even in packages built
61044 with --disable-nls.
61045 * lib/getopt.c (_): Likewise.
61046 * lib/regex.c (_): Likewise.
61048 2001-10-20 Paul Eggert <eggert@twinsun.com>
61050 * m4/error.m4 (jm_PREREQ_ERROR):
61051 Do not invoke AC_CHECK_FUNCS with strerror_r, as
61052 AC_FUNC_STRERROR_R does that.
61053 Check for strerror declaration.
61055 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61056 are supposed to have them these days.
61057 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61058 Merge changes from latest Autoconf CVS.
61059 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61060 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61061 POSIX decided to standardize on the int flavor of strerror_r.
61063 2001-10-20 Paul Eggert <eggert@twinsun.com>
61065 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61066 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61067 Use strerror_r that is only a macro, even if it is not a function.
61068 (strerror): Check for HAVE_DECL_STRERROR before declaring.
61069 (private_strerror): Use prototypes, not old-style function definition.
61070 (print_errno_message): New function.
61071 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61072 char*-flavored one.
61073 (error_tail, error, error_at_line): Use it.
61075 2001-10-11 Jim Meyering <meyering@lucent.com>
61077 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61078 and quote_n (1, ... to avoid clobbering a buffer.
61080 2001-10-05 Jim Meyering <meyering@lucent.com>
61082 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61084 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61085 * lib/hash-pjw.h: New file.
61087 2001-09-30 Jim Meyering <meyering@lucent.com>
61089 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61090 `struct fsstat' has the `f_fstypename' member.
61091 Use that to define FS_TYPE, which is now used to make
61092 the getfsstat link test tighter.
61094 2001-09-30 Jim Meyering <meyering@lucent.com>
61096 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61097 Include <sys/ucred.h>, for Apple Darwin.
61098 Include sys/mount.h and sys/fs_types.h only if available.
61100 (read_filesystem_list): Use FS_TYPE.
61102 2001-09-29 Paul Eggert <eggert@twinsun.com>
61104 * lib/exclude.c (excluded_filename): 0 -> false, since it's
61107 2001-09-29 Jim Meyering <meyering@lucent.com>
61109 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61110 [one-argument getmntent function]): Include stdio.h before mntent.h.
61111 SunOS 4.1.x needs it for the declaration of `FILE'.
61112 Patch by Volker Borchert.
61114 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61115 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61116 sys/fs_types.h, and make the link-test for getfsstat guard #include
61117 directives with appropriate #if HAVE_*_H tests so that we can
61118 detect getfsstat on Apple Darwin1.3.7 systems.
61119 Reported by Nelson Beebe.
61120 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61122 2001-09-28 Paul Eggert <eggert@twinsun.com>
61124 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61125 #defines strtoimax. Also treat the other strto* functions
61128 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61129 Check for strtoul and strtoumax,
61130 as those declarations are made even in the signed case.
61131 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61132 Likewise, for strtol and strtoimax.
61134 2001-09-28 Paul Eggert <eggert@twinsun.com>
61136 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61137 #defines strtoimax. Also treat the other strto* functions
61140 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61141 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61142 (strtoimax, strtoumax): Do not declare if already defined as a macro.
61144 2001-09-26 Jim Meyering <meyering@lucent.com>
61146 Most macros in unlocked-io.h had the wrong number of arguments.
61147 * lib/gen-uio: New script.
61148 (USE_UNLOCKED_IO): Define to 1 if not already defined.
61149 * lib/unlocked-io.hin: Remove file.
61150 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61151 rather than trying to embed it here.
61152 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
61153 Reported by Padraig Brady.
61155 2001-09-25 Volker Borchert <bt@teknon.de>
61157 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61160 2001-09-24 Jim Meyering <meyering@lucent.com>
61162 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61164 2001-09-23 Jim Meyering <meyering@lucent.com>
61166 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61167 instead of the mere test for existence of mntent.h. The latter
61168 would get a false-positive on AIX 3.4 systems.
61169 In the outer getmntent if-block, don't die if neither of the getmntent
61170 tests succeeds. Instead, just fall through and continue with the
61173 2001-09-23 Jim Meyering <meyering@lucent.com>
61175 * lib/mountlist.c: Remove useless parentheses in #if directives.
61176 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61177 the deprecated MOUNTED symbol is no longer defined in mntent.h.
61179 2001-09-22 Jim Meyering <meyering@lucent.com>
61181 * m4/gettext.m4: New file. From gettext.
61182 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61183 * m4/progtest.m4: Likewise
61184 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61185 * m4/glibc21.m4: Likewise.
61187 * m4/libintl.m4: Remove. No longer used.
61189 2001-09-22 Jim Meyering <meyering@lucent.com>
61191 * lib/localcharset.c: Update from latest gettext.
61192 * lib/config.charset: Likewise.
61194 2001-09-20 Jim Meyering <meyering@lucent.com>
61196 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61198 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61201 2001-09-20 Jim Meyering <meyering@lucent.com>
61203 * lib/xstrtol.c (strtoimax): Guard declaration with
61204 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61205 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61206 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61207 (strtoumax): Likewise, for completeness (it wasn't necessary).
61209 2001-09-17 Paul Eggert <eggert@twinsun.com>
61211 * lib/strtoimax.c (HAVE_LONG_LONG):
61212 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61213 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61214 to work around bug in IBM C compiler.
61216 2001-09-17 Jim Meyering <meyering@lucent.com>
61218 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61219 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61220 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61221 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61222 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61223 whenever the right hand side need not be expanded by the shell.
61225 2001-09-16 Paul Eggert <eggert@twinsun.com>
61227 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61228 library. It's not correct, as some older glibcs are buggy.
61229 fnmatch wasn't fixed until glibc 2.2.
61231 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61232 special shell magic here.
61234 2001-09-16 Jim Meyering <meyering@lucent.com>
61236 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61237 * m4/jm-macros.m4: Require it.
61239 2001-09-16 Jim Meyering <meyering@lucent.com>
61241 * lib/mkdir.c: New file.
61243 2001-09-15 Jim Meyering <meyering@lucent.com>
61245 * m4/jm-macros.m4: Check for help2man.
61247 2001-09-11 Jim Meyering <meyering@lucent.com>
61249 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61250 The body, by Paul Eggert, was moved here from configure.in.
61251 * m4/jm-macros.m4: Require UTILS_HOST_OS.
61253 2001-09-04 Paul Eggert <eggert@twinsun.com>
61255 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61256 (jm_PREREQ): Use it.
61258 2001-09-04 Paul Eggert <eggert@twinsun.com>
61260 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
61261 Use ssize_t, not int, to store result of readlink.
61262 Check for ssize_t overflow as well as size_t overflow,
61263 as POSIX says the result of readlink is implementation-defined
61264 when ssize_t overflows.
61265 Remove unnecessary cast to char*.
61266 Use free+malloc instead of realloc, as the storage doesn't need
61267 to be preserved and it's clearer and can be more efficient that way.
61268 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61269 * lib/xreadlink.h (xreadlink): Update prototype.
61271 2001-09-04 Paul Eggert <eggert@twinsun.com>
61273 * lib/xgetcwd.c: Revert some of the previous change; intead,
61274 fix the HAVE_GETCWD_NULL code to behave more like the
61275 !HAVE_GETCWD_NULL code used to.
61277 Include "xalloc.h".
61278 (xgetcwd): Do not return NULL when memory is exhausted; instead,
61281 2001-09-03 Paul Eggert <eggert@twinsun.com>
61283 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61284 sys/param.h, as pathmax.h includes them.
61286 2001-09-03 Paul Eggert <eggert@twinsun.com>
61288 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61289 (jm_PREREQ_XGETCWD): New macro.
61291 * m4/getcwd.m4: New file.
61293 2001-09-03 Paul Eggert <eggert@twinsun.com>
61295 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61296 like the HAVE_GETCWD_NULL code.
61297 Include pathmax.h if not HAVE_GETCWD.
61298 Do not include xalloc.h.
61299 (INITIAL_BUFFER_SIZE): New symbol.
61300 Do not use xmalloc / xrealloc, since the caller is responsible for
61301 handling errors. Preserve errno around `free' during failure.
61302 Do not overrun buffer when using getwd.
61304 2001-09-03 Paul Eggert <eggert@twinsun.com>
61306 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61307 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61310 2001-09-03 Paul Eggert <eggert@twinsun.com>
61312 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61313 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
61314 spotted by Jim Meyering.
61316 2001-09-03 Jim Meyering <meyering@lucent.com>
61318 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61321 2001-09-02 Jim Meyering <meyering@lucent.com>
61323 * lib/error.c: Update from GNU libc.
61325 2001-09-01 Jim Meyering <meyering@lucent.com>
61327 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61330 2001-09-01 Jim Meyering <meyering@lucent.com>
61332 * lib/xreadlink.c: New file.
61333 * lib/xreadlink.h: New file.
61334 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61337 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61338 doesn't conflict with sparc Solaris 7's definition in
61339 /usr/include/sys/int_types.h.
61341 * lib/exclude.c: Use `""', not `<>' to #include non-system header
61343 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61344 and strncasecmp as r-values. Unixware didn't have declarations.
61346 2001-08-31 Paul Eggert <eggert@twinsun.com>
61348 * lib/xstrtol.h: Add copyright notice.
61349 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61350 LONGINT_INVALID_SUFFIX_CHAR.
61352 2001-08-31 Paul Eggert <eggert@twinsun.com>
61354 * lib/xstrtol.c (strtoimax): New decl.
61356 2001-08-31 Paul Eggert <eggert@twinsun.com>
61358 * lib/xgetcwd.c: Don't include pathmax.h.
61359 Include stdlib.h and unistd.h if available.
61361 (xmalloc, xstrdup, free): Remove decls.
61362 (xgetcwd): Don't assume sizes fit in unsigned.
61363 Check for overflow when computing sizes.
61364 Simplify reallocation code.
61366 2001-08-31 Paul Eggert <eggert@twinsun.com>
61368 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61369 a directory's st_size can have an arbitrary value, so the old
61370 usage could waste an arbitrary amount of memory. All uses
61372 * lib/savedir.h: Update prototype.
61374 2001-08-31 Paul Eggert <eggert@twinsun.com>
61376 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61378 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61381 Also, make the following further changes to make this file's
61382 configuration more similar to that of strtol.c:
61383 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
61384 (strtoumax, uintmax_t, strtoull, strtol): Remove.
61385 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61386 (strtoimax): Renamed from strtoumax. All uses of unsigned values
61387 changed to signed values.
61389 And make the following changes as well:
61390 Fix copyright notice, as 1999 was missing.
61391 (verify): New macro.
61392 (strtoimax): Check sizes at compile-time, not run-time.
61393 Prefer strtol to strtoll if both work.
61394 (main): Remove; it was not that useful and was a pain to maintain.
61396 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61398 2001-08-31 Jim Meyering <meyering@lucent.com>
61400 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61401 Use an initial, malloc'd, buffer of length 128 rather than
61402 a statically allocated one of length 1024.
61404 2001-08-30 Paul Eggert <eggert@twinsun.com>
61406 Simplify code, partly by assuming autoconf 2.52 semantics.
61408 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61410 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61411 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61413 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61414 Move AC_REQUIRE to next-to-top level, to avoid confusion.
61415 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61416 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61417 jm_AC_HEADER_INTTYPES_H.
61418 * m4/jm-macros.m4 (jm_MACROS): Likewise.
61420 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61422 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61423 Quote first arg of AC_DEFUN.
61424 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61425 since they are needed to parse the include file even if we need
61426 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
61427 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61428 but with opposite signedness.
61430 2001-08-30 Paul Eggert <eggert@twinsun.com>
61432 Merge 'exclude' changes from tar 1.13.22.
61433 This fixes one or two unlikely storage allocation overflow bugs,
61434 but doesn't change user-visible behavior otherwise.
61436 2001-08-30 Paul Eggert <eggert@twinsun.com>
61438 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61439 (jm_PREREQ_EXCLUDE): New macro.
61441 2001-08-30 Paul Eggert <eggert@twinsun.com>
61443 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61446 2001-08-30 Paul Eggert <eggert@twinsun.com>
61448 * lib/hash.c: Remove '2001' from copyright notice.
61450 2001-08-30 Paul Eggert <eggert@twinsun.com>
61452 * lib/full-write.h: New file.
61453 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61454 * lib/full-write.c: Correct credits, as cccp.c no longer
61455 exists and anyway it was so heavily changed from the old cccp
61456 code as to be unrecognizable. Include full-write.h.
61457 (full_write) Return size_t, with short writes meaning failure.
61458 All callers changed. This fixes a bug with large buffers
61460 * lib/utime.c: Include full-write.h.
61462 2001-08-30 Paul Eggert <eggert@twinsun.com>
61464 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61465 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61466 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61467 Include if available.
61468 (<xalloc.h>): Include
61469 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61470 (verify): New macro. Use it to verify that EXCLUDE macros do not
61471 collide with FNM macros.
61472 (struct patopts): New struct.
61473 (struct exclude): Use it, as exclude patterns now come with options.
61474 (new_exclude): Support above changes.
61475 (new_exclude, add_exclude_file):
61476 Initial size must now be a power of two to simplify overflow checking.
61477 (free_exclude, fnmatch_no_wildcards): New function.
61478 (excluded_filename): No longer requires options arg, as the options
61479 are determined by add_exclude. Now returns bool, not int.
61480 (excluded_filename, add_exclude):
61481 Add support for the fancy new exclusion options.
61482 (add_exclude, add_exclude_file): Now takes int options arg.
61483 Check for arithmetic overflow when computing sizes.
61484 (add_exclude_file): xrealloc might modify errno, so don't
61485 realloc until after errno might be used.
61487 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61489 (free_exclude): New decl.
61490 (add_exclude, add_exclude_file): Now takes int options arg.
61491 (excluded_filename): No longer requires options arg, as the options
61492 are determined by add_exclude. Now returns bool, not int.
61494 2001-08-30 Paul Eggert <eggert@twinsun.com>
61496 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61498 2001-08-27 Jim Meyering <meyering@lucent.com>
61500 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61502 * lib/version-etc.c (N_): Remove definition.
61503 Revert most of last change.
61504 Instead, simply don't mark the `Copyright...' string for translation.
61505 Based on advice from Paul Eggert.
61507 * lib/strtoxmax.c: Tweak comment.
61509 2001-08-26 Jim Meyering <meyering@lucent.com>
61511 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61513 * m4/xstrtoimax.m4: New file.
61514 * m4/xstrtoumax.m4: Add comments explaining why we
61515 AC_REPLACE_FUNCS(strtol).
61517 2001-08-26 Jim Meyering <meyering@lucent.com>
61519 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61520 of copyright with `%s' so translators don't get an untranslated
61522 (COPYRIGHT_YEAR): Define.
61523 (version_etc): Use fprintf rather than fputs.
61524 Suggestion from Ulrich Drepper.
61526 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61528 * lib/strtoll.c: New file, from GNU libc.
61529 * lib/xstrtoimax.c: New file.
61531 * lib/xstrtol.h: Add xstrtoimax.
61532 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
61533 * lib/strtoimax.c: New file. Likewise, but first define
61536 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61538 * lib/strtoxmax.c: ... then renamed to this.
61540 2001-08-18 Paul Eggert <eggert@twinsun.com>
61542 * m4/inttypes.m4: Add AC_PREREQ(2.13).
61543 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61544 (jm_AC_TYPE_INTMAX_T): New macro.
61545 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61547 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61549 * m4/longlong.m4: Renamed from ulonglong.m4.
61550 * m4/inttypes.m4: Renamed from inttypes_h.m4.
61551 * m4/uintmax_t.m4: Removed.
61553 2001-08-13 Paul Eggert <eggert@twinsun.com>
61555 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61556 Port to Solaris 8, where 'sed' requires a space after the 'r'
61557 command, and where sh dislikes "$/". Clean up the spacing a bit.
61558 Redirect output to $tmp just once.
61560 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
61562 * lib/addext.c (<errno.h>): Include.
61563 (errno): Declare if not defined.
61564 (addext): Work correctly when pathconf returns -1 and leaves
61565 errno alone because there is no limit. Also, work even if
61566 pathconf returns a value greater than SIZE_MAX.
61568 2001-08-12 Jim Meyering <meyering@lucent.com>
61570 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61571 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61572 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61573 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61574 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61575 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61576 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61577 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61578 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61579 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61580 utime.m4, utimes.m4, xstrtoumax.m4:
61581 Quote the first argument in each use of AC_DEFUN.
61583 2001-08-12 Jim Meyering <meyering@lucent.com>
61585 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61586 Simply `return getcwd (NULL, 0);'.
61587 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61588 Use 1300 as initial value for length, not PATH_MAX.
61590 * lib/pathmax.h: Clean up cpp syntax.
61592 2001-08-12 Jim Meyering <meyering@lucent.com>
61594 * lib/gettimeofday.c: New file.
61595 * lib/gtod.h: New file.
61596 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61598 2001-08-05 Jim Meyering <meyering@lucent.com>
61600 * m4/jm-macros.m4: Require autoconf-2.52.
61602 2001-08-04 Jim Meyering <meyering@lucent.com>
61604 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61605 stmt, to get in sync with glibc.
61607 2001-08-03 Paul Eggert <eggert@twinsun.com>
61609 The following changes are from gettext 0.10.39 as maintained by
61612 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61613 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61614 with inverted sense. All uses changed.
61616 * lib/mbswidth.c: Don't include <limits.h>.
61617 Include <stdlib.h> and <string.h> unconditionally.
61618 (iswcntrl, mbsinit, ISCNTRL): New macros.
61619 (mbsnwidth): Use K&R style function declarations.
61620 Don't bother checking for MB_LEN_MAX == 1, since the compiler
61621 can optimize it when MB_CUR_MAX == 1.
61622 The width of control characters is zero, not 1.
61624 2001-08-03 Paul Eggert <eggert@twinsun.com>
61626 The following changes are from gettext 0.10.39 as maintained by
61627 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61629 * m4/codeset.m4: Upgrade to serial AM1.
61630 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61631 all uses changed. Quote first arg of AC_DEFUN.
61632 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61634 * m4/iconv.m4: Upgrade to serial AM2.
61635 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61636 Add --with-libconv-prefix.
61637 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
61638 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61639 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61640 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61641 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61643 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61644 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61645 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61646 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61647 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61648 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61649 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61650 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61651 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61653 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61656 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61657 not the default value.
61659 2001-06-25 Bruno Haible <haible@clisp.cons.org>
61660 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61661 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
61662 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61663 Also check for iswcntrl, used for wcwidth fallback.
61664 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61667 2001-08-03 Jim Meyering <meyering@lucent.com>
61669 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61670 as it was in the original. Reported by Paul Eggert.
61672 2001-07-16 Jim Meyering <meyering@lucent.com>
61674 * m4/gettimeofday.m4: New file.
61675 Prompted by a report from Bernhard Baehr.
61677 2001-07-15 Jim Meyering <meyering@lucent.com>
61679 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61680 stuff. Now it's in ../Makefile.cfg.
61682 2001-07-15 Jim Meyering <meyering@lucent.com>
61684 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61685 (BUILT_SOURCES): Add unlocked-io.h.
61686 (io_functions): Define.
61687 (unlocked-io.h): New rule.
61688 (DISTCLEANFILES): Add unlocked-io.h.
61689 (all-local): Depend on unlocked-io.h, to ensure it is created.
61691 * lib/unlocked-io.hin: New file
61693 * lib/regex.c: Update from glibc.
61695 2001-07-05 Jim Meyering <meyering@lucent.com>
61697 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61699 (libfetish_a_SOURCES): Put all .h files here instead.
61700 Remove a thus-exposed (better checks in automake) duplicate and
61701 two unnecessary .h files.
61703 2001-07-04 Jim Meyering <meyering@lucent.com>
61705 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
61706 that generates jm-glibc-io.m4 so that it doesn't trigger any make
61709 2001-07-02 Jim Meyering <meyering@lucent.com>
61711 The following changes were prompted by suggestions from Bruno Haible.
61713 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61715 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61716 definition of EXTRA_DIST.
61717 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61718 ensure that the generated file is created/updated whenever the list
61719 of $(unlocked_functions) is changed.
61720 (jm-glibc-io.m4): New rule.
61721 (unlocked-io.h): New rule -- currently unused.
61723 2001-06-24 Jim Meyering <meyering@lucent.com>
61725 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61726 unmatched right bracket, rather than kludging it with an extra,
61727 falsely-matching quote in a comment. Patch by Akim Demaille.
61729 2001-06-11 Jim Meyering <meyering@lucent.com>
61731 * lib/regex.c: Update from GNU libc.
61733 2001-05-27 Jim Meyering <meyering@lucent.com>
61735 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61736 Check for ut_type in struct utmp.
61738 2001-05-27 Jim Meyering <meyering@lucent.com>
61740 * lib/readutmp.h (UT_TYPE): Define.
61742 2001-05-24 Jim Meyering <meyering@lucent.com>
61744 * lib/argmatch.c: Include "quote.h".
61745 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
61746 quote function. Reported by Göran Uddeborg.
61748 2001-05-22 Jim Meyering <meyering@lucent.com>
61750 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61751 now that we use the package-supplied version unconditionally.
61752 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61754 2001-05-21 Jim Meyering <meyering@lucent.com>
61756 * m4/regex.m4: Change a couple backticks to single quotes to avoid
61757 shell syntax errors.
61759 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61761 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61763 2001-05-20 Paul Eggert <eggert@twinsun.com>
61765 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61766 Don't bother to check library strftime, since
61767 we'll be using our own my_strftime function anyway.
61768 Define my_strftime instead of strftime.
61770 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
61772 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61773 which is not yet declared.
61775 2001-05-15 Jim Meyering <meyering@lucent.com>
61777 * m4/regex.m4: Use proper quoting so brackets appear in the test
61779 Reported by, and with help from, Bruno Haible.
61781 2001-05-13 Jim Meyering <meyering@lucent.com>
61783 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61786 2001-05-11 Paul Eggert <eggert@twinsun.com>
61788 dirname code cleanup. base_name now behaves more compatibly
61789 with POSIX basename when given file names that have trailing
61790 slashes, and similarly for dir_name. Add new primitives
61791 base_len and dir_len. Put the directory-name-related decls
61794 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61795 * lib/backupfile.c (base_name): Likewise.
61796 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61797 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61798 * lib/makepath.c (strip_trailing_slashes): Likewise.
61799 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61800 ISSLASH): Likewise.
61801 * lib/rename.c (strip_trailing_slashes): Likewise.
61802 * lib/same.c (base_name): Likewise.
61803 * lib/stripslash.c (ISSLASH): Likewise.
61805 * lib/addext.c: Include <dirname.h> after size_t is defined.
61806 * lib/backupfile.c: Likewise.
61808 * lib/addext.c (addext): Use base_len to trim redundant
61809 trailing slashes instead of doing it ourselves.
61810 But do not trim the last slash if it is not redundant.
61812 * lib/backupfile.c (find_backup_file_name,
61813 max_backup_version): Use base_len instead of rolling it ourselves.
61814 Handle the case of "" and (on DOS) "C:" correctly.
61816 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61817 needed. Include <string.h>, <dirname.h>.
61818 (base_name): Allow file names ending in slashes, other than names
61819 that are all slashes. In this case, return the basename followed
61820 by the slashes. This is more general, and can be used in places
61821 where the original base_name purposely had an assertion failure.
61822 (base_len): New function.
61824 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61825 Do not include <assert.h>; no longer needed.
61827 (memrchr): Remove decl.
61828 (dir_name_r): Remove.
61829 (dir_len): Renamed from dirlen. All callers changed.
61830 Rewrite in terms of base_name, for simplicity and consistency.
61831 (dir_name): Never return NULL. All callers changed.
61832 Do not include <stdlib.h> in test program; no longer needed.
61833 return 0; is fine for test program.
61835 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61837 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61839 * lib/path-concat.c (path_concat): Use base_len to compute
61840 base length, not strlen; this means we cannot rely on memcpy
61843 * lib/same.c (STREQ): Remove.
61844 (same_name): Handle the case where the basename ends in trailing '/'.
61846 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61847 a slash was stripped. Do not strip the last slash after a
61848 file system prefix.
61850 2001-05-11 Paul Eggert <eggert@twinsun.com>
61852 * lib/Makefile.am (libfetish_a_SOURCES):
61853 Add strftime.c, since we now compile it on all hosts.
61855 * lib/strftime.c (my_strftime):
61856 Define to nstrftime if emacs, but only if my_strftime is not defined.
61857 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61858 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61859 Add one more extra argument: a nanoseconds value.
61862 (my_strftime function): Add %N format.
61863 (emacs_strftimeu): Renamed from emacs_strftime,
61864 with extra ut argument.
61866 2001-05-09 Paul Eggert <eggert@twinsun.com>
61868 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61870 2001-04-21 Jim Meyering <meyering@lucent.com>
61872 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61875 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61877 * m4/ftruncate.m4: Check for chsize.
61878 Link with ftruncate.o unconditionally if ftruncate is missing.
61879 This was required when cross-compiling to i586-mingw32msvc.
61881 2001-04-08 Jim Meyering <meyering@lucent.com>
61883 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61884 recomputed; that's necessary when the offset spans a DST transition.
61885 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
61887 2001-04-02 Jim Meyering <meyering@lucent.com>
61889 * lib/regex.h, regex.c: Update from GNU libc.
61891 2001-03-24 Jim Meyering <meyering@lucent.com>
61893 * m4/jm-macros.m4: Require autoconf-2.49d.
61895 2001-03-20 Bruno Haible <haible@clisp.cons.org>
61897 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61899 2001-03-19 Paul Eggert <eggert@twinsun.com>
61901 * lib/version-etc.c (version_etc_copyright): Update to 2001.
61903 2001-03-17 Jim Meyering <meyering@lucent.com>
61905 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61906 now that the version in autoconf is equivalent.
61907 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61909 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61910 Suggestion from Akim Demaille.
61912 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61913 (jm_PREREQ_TEMPNAME): New function.
61915 2001-03-16 Paul Eggert <eggert@twinsun.com>
61917 * lib/tempname.c (uint64_t): Define to uintmax_t if
61918 not defined, and if UINT64_MAX is not defined.
61919 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61920 Reported by John David Anglin.
61922 2001-03-15 Bruno Haible <haible@clisp.cons.org>
61924 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61925 resolve alias if codeset is empty.
61926 * lib/config.charset (BeOS): Use wildcard syntax.
61928 2001-03-13 Jim Meyering <meyering@lucent.com>
61930 * lib/path-concat.c (path_concat)
61931 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61932 concatenating e.g., `C:' and `foo'.
61935 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61937 * lib/localcharset.c (locale_charset): Don't use
61938 setlocale(LC_CTYPE,NULL). Don't return NULL.
61939 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61941 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61943 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61944 support for DOS/DJGPP.
61946 2001-03-01 Paul Eggert <eggert@twinsun.com>
61948 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61949 lacks mkstemp. Compile our own tempname.c if we compile our own
61950 mkstemp.c, as mkstemp relies on tempname.
61952 2001-03-01 Jim Meyering <meyering@lucent.com>
61954 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61955 AH_VERBATIM really does output its argument verbatim.
61957 2001-02-28 Paul Eggert <eggert@twinsun.com>
61959 * lib/Makefile.am (libfetish_a_SOURCES):
61960 Add dup-safer.c, fopen-safer.c.
61961 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61963 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61964 * lib/unistd-safer.h: New files.
61966 2001-02-25 Paul Eggert <eggert@twinsun.com>
61968 The mkstemp replacement is taken from glibc 2.2.2, with some
61969 portability fixes for use outside glibc, as follows:
61971 * lib/tempname.c (struct_stat64): New macro.
61972 (direxists, __gen_tempname): Use it.
61973 This avoids a portability problem with Solaris 8.
61975 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61976 (<stddef.h>, <stdint.h>, <string.h>):
61977 Include only if STDC_HEADERS || _LIBC.
61978 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61979 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61980 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61981 (__set_errno): Define this macro if <errno.h> doesn't.
61982 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61983 Define these macros if <stdio.h> doesn't.
61984 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61985 Define these macros if <sys/stat.h>
61986 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61987 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61988 __xstat64): Define if not _LIBC.
61989 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61990 (__gen_tempname): Invoke gettimeofday only if
61991 HAVE_GETTIMEOFDAY || _LIBC;
61992 otherwise, fall back on plain "time".
61993 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61995 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61997 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61999 2001-02-18 Paul Eggert <eggert@twinsun.com>
62001 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62003 2001-02-17 Paul Eggert <eggert@twinsun.com>
62005 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62006 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62007 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62008 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62010 2001-02-17 Paul Eggert <eggert@twinsun.com>
62012 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62013 Remove workaround macros for hosts that have mbrtowc but not
62014 mbstate_t, as we now insist on proper declarations for both
62015 before using mbrtowc.
62017 2001-02-17 Jim Meyering <meyering@lucent.com>
62019 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62020 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62021 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62024 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62025 rather than AC_CACHE_VAL.
62027 2001-02-17 Jim Meyering <meyering@lucent.com>
62029 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
62030 around included file name.
62032 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62034 * lib/strftime.c: Update from GNU libc (the only changes were to
62037 2001-02-17 Jim Meyering <meyering@lucent.com>
62039 * lib/regex.c: Update from libc.
62041 2001-02-17 Bruno Haible <haible@clisp.cons.org>
62043 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62046 2001-02-16 Paul Eggert <eggert@twinsun.com>
62048 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62049 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
62050 Reported by Mark Hounschell via Paul Eggert.
62052 2001-02-07 Jim Meyering <meyering@lucent.com>
62054 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62056 2001-02-05 Jim Meyering <meyering@lucent.com>
62058 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62059 it includes the patch required for `large file' support with at least
62060 HP-UX's 10.20 /bin/cc.
62062 2001-02-03 Jim Meyering <meyering@lucent.com>
62064 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62065 AS_IF, now that it works once again (mysteriously).
62066 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62068 2001-01-30 Jim Meyering <meyering@lucent.com>
62070 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62071 * m4/chown.m4: Rename conftestchown to conftest.chown.
62072 * m4/rename.m4: s/conftestdir/conftest.d1/ and
62073 s/conftestdir2/conftest.d2/.
62074 * m4/utimes.m4: s/conftestdata/conftest.data/
62075 Inspired by Pavel Roskin's change in autoconf.
62077 2001-01-30 Bruno Haible <haible@clisp.cons.org>
62079 * lib/config.charset: Update for FreeBSD 4.2.
62081 2001-01-27 Jim Meyering <meyering@lucent.com>
62083 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62085 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62087 2001-01-26 Jim Meyering <meyering@lucent.com>
62089 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62090 quotearg.c includes it.
62092 2001-01-26 Jim Meyering <meyering@lucent.com>
62094 * lib/quotearg.c: Include stddef.h.
62095 * lib/quote.c: Include stddef.h.
62096 Reported by Axel Kittenberger.
62098 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62099 line in double quotes so that it evokes a better diagnostic.
62100 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62101 Reported by Axel Kittenberger.
62103 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
62105 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62106 as if it was a `charset'.
62108 2001-01-21 Bruno Haible <haible@clisp.cons.org>
62110 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62113 2001-01-21 Bruno Haible <haible@clisp.cons.org>
62115 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62116 to avoid a warning. Add back 'const' to inptr.
62118 2001-01-20 Jim Meyering <meyering@lucent.com>
62120 Be sure that headers are checked before used in code compiled
62121 for the type checks.
62122 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62123 In place of that, invoke jm_CHECK_ALL_TYPES.
62124 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62125 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62126 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62127 The check for ssize_t was mistakenly run before the test for unistd.h.
62129 The configure-time check for stdbool.h was missing.
62130 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62131 (jm_PREREQ_HASH): New function.
62133 2001-01-17 Jim Meyering <meyering@lucent.com>
62135 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62136 for autoconf-2.49c.
62137 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62139 2001-01-16 Jim Meyering <meyering@lucent.com>
62141 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62144 2001-01-14 Jim Meyering <meyering@lucent.com>
62146 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62147 foo and bar. Create conftestdir/ in the script, not in the C code.
62148 Remove directories in the script, not in the C code.
62149 Remove conftestdir{,2} before trying to create the directory.
62150 Make the entire configure script fail if the mkdir fails.
62152 2001-01-14 Jim Meyering <meyering@lucent.com>
62154 * lib/rename.c: New file. From Volker Borchert.
62155 Include stdlib.h, string.h or strings.h, and xalloc.h.
62156 Use strip_trailing_slashes rather than open-coding it.
62158 2001-01-03 Paul Eggert <eggert@twinsun.com>
62160 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62162 2001-01-03 Jim Meyering <meyering@lucent.com>
62164 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62165 of local `inptr' to avoid warning with some system declarations of
62168 2001-01-02 Volker Borchert <bt@teknon.de>
62170 * m4/rename.m4: New file.
62171 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62173 2001-01-01 Jim Meyering <meyering@lucent.com>
62175 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62176 even on systems with utmpx.h. It's necessary for the declaration of
62177 utmp's ut_user member. Reported by Andreas Jaeger.
62179 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62180 available. They are required for the declarations of getgrgid and
62182 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62183 Reported by Andreas Jaeger.
62185 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
62187 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62188 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62189 so `make install' also works in VPATH builds.
62191 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
62193 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62194 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62195 can be used in subdirectories.
62197 2000-12-29 Paul Eggert <eggert@twinsun.com>
62199 * lib/modechange.c: Do not assume that mode_t uses the
62200 traditional octal encoding. E.g. "chmod 1 FOO" should set
62201 the other-execute bit of FOO even if S_IXOTH != 1.
62203 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62204 WOTH, XOTH, ALLM): New macros.
62205 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62206 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62208 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62209 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62211 No need to use uintmax_t; unsigned long is long enough.
62212 Don't bother to get suffix since we don't use it.
62214 2000-12-26 Jim Meyering <meyering@lucent.com>
62216 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62217 better with autoheader.
62219 2000-12-24 Jim Meyering <meyering@lucent.com>
62221 * lib/hash.c (is_prime): Return explicit boolean values.
62222 (hash_get_first): Return NULL to appease Irix5.6's 89.
62223 Reported by Nelson Beebe.
62225 2000-12-19 Bruno Haible <haible@clisp.cons.org>
62227 * lib/localcharset.c (locale_charset): Add support for Win32.
62229 2000-12-18 Paul Eggert <eggert@twinsun.com>
62231 * lib/physmem.h, lib/physmem.c: New files.
62233 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62234 (noinst_HEADERS): Add physmem.h.
62236 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62237 't' for compatibility with Solaris 8 sort.
62239 2000-12-18 Bruno Haible <haible@clisp.cons.org>
62241 * lib/config.charset: Add support for BeOS.
62243 2000-12-17 Jim Meyering <meyering@lucent.com>
62245 * m4/dos.m4 (jm_AC_DOS): New file and macro.
62246 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62248 2000-12-16 Jim Meyering <meyering@lucent.com>
62250 This bug had a serious impact on chown: `chown N:M FILE' (for integer
62251 N and M) would have treated it like `chown N:N FILE'.
62253 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62255 2000-12-16 Jim Meyering <meyering@lucent.com>
62257 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62258 SHELLS_FILE to a file name that's useful on djgpp systems.
62260 (ADDITIONAL_DEFAULT_SHELLS): Define.
62261 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62262 Based mostly on a patch from Prashant TR.
62264 2000-12-16 Bruno Haible <haible@clisp.cons.org>
62266 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62267 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62268 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62270 2000-12-08 Andreas Schwab <schwab@suse.de>
62272 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62273 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62275 2000-12-07 Jim Meyering <meyering@lucent.com>
62277 * lib/stripslash.c (ISSLASH): Define.
62278 (strip_trailing_slashes): Use ISSLASH rather than comparing against
62282 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62283 (dir_name_r): Declare this function as static.
62284 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62285 manifest itself on a name containing a mix of slashes and
62287 Make this function work with names starting with a DOS-style
62288 drive letter and colon prefix.
62289 (dir_name): Append `.' if necessary.
62290 Based mostly on patches from Prashant TR and Eli Zaretskii.
62292 * lib/dirname.h (dir_name_r): Remove prototype.
62294 2000-12-06 Paul Eggert <eggert@twinsun.com>
62296 * m4/off_t-format.m4: Remove this file.
62297 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62299 2000-12-06 Jim Meyering <meyering@lucent.com>
62301 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62302 replacement strtoull, we may well need the replacement strtoul, too.
62303 Check for declarations of strtoul and strtoull.
62304 Check for strtol. Mainly as a cue to cause automake to include
62305 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62306 Check for limits.h -- strtol.c needs it.
62308 2000-12-05 Jim Meyering <meyering@lucent.com>
62310 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62312 2000-12-04 Jim Meyering <meyering@lucent.com>
62314 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62315 Also include memory.h, stdlib.h, unistd.h if appropriate.
62316 Reported by Andreas Jaeger (conflicting declaration of malloc).
62318 2000-12-02 Jim Meyering <meyering@lucent.com>
62320 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62321 * m4/jm-macros.m4 (jm_MACROS): require it.
62323 2000-12-02 Jim Meyering <meyering@lucent.com>
62325 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62327 2000-12-01 Paul Eggert <eggert@twinsun.com>
62329 * lib/memrchr.c: Include <config.h> before any system include file.
62331 2000-11-30 Jim Meyering <meyering@lucent.com>
62333 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62335 2000-11-30 Jim Meyering <meyering@lucent.com>
62337 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62339 2000-11-29 Paul Eggert <eggert@twinsun.com>
62341 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62343 2000-11-26 Jim Meyering <meyering@lucent.com>
62345 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
62347 2000-11-22 Paul Eggert <eggert@twinsun.com>
62349 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62350 size of (size_t) -1; it's not portable.
62352 2000-11-17 Jim Meyering <meyering@lucent.com>
62354 * lib/strstr.c: Update from GNU libc.
62356 2000-11-17 Akim Demaille <akim@epita.fr>
62358 * lib/obstack.h: Formatting changes.
62359 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62360 prevent type checking.
62361 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62362 cast the value to (void *): assigning a `foo *' to a `void *'
62364 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62366 2000-11-16 Jim Meyering <meyering@lucent.com>
62368 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62370 2000-11-11 Jim Meyering <meyering@lucent.com>
62372 * lib/error.c: Add a couple #includes, merging from GNU libc version.
62374 2000-11-10 Jim Meyering <meyering@lucent.com>
62376 * lib/obstack.h: Update from GNU libc.
62377 * lib/obstack.c: Likewise.
62379 2000-11-08 Bruno Haible <haible@clisp.cons.org>
62381 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62383 2000-11-06 Paul Eggert <eggert@twinsun.com>
62385 * lib/getusershell.c (setusershell): Use rewind rather than
62386 fseek/fseeko, to avoid configuration hassles with fseeko.
62387 Don't bother opening SHELLS_FILE if shellstream is NULL;
62388 it's not necessary.
62390 2000-11-05 Jim Meyering <meyering@lucent.com>
62392 * lib/makepath.h (make_dir): Declare.
62393 * lib/makepath.c (make_dir): Remove `static' attribute.
62396 2000-11-04 Jim Meyering <meyering@lucent.com>
62398 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62400 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
62402 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
62403 last one in a bucket, advance to the next bucket.
62405 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
62407 * lib/fnmatch.c: Do not comment out all the code if we are using
62408 the GNU C library, because in some cases we are replacing buggy
62409 code in the GNU C library itself.
62411 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
62413 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62414 (regex_compile): Catch bogus \(\1\).
62416 2000-10-30 Paul Eggert <eggert@twinsun.com>
62418 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62419 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62420 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62422 2000-10-30 Paul Eggert <eggert@twinsun.com>
62424 * lib/error.h, getline.h, modechange.h:
62425 Remove "2000" from Copyright line, as the file hasn't been
62426 changed this year other than in the copyright notice.
62428 * lib/xalloc.h: Add "2000" to Copyright line, as this file
62429 was changed this year.
62431 2000-10-29 Jim Meyering <meyering@lucent.com>
62433 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62435 * m4/ls-mntd-fs.m4: Likewise
62437 2000-10-29 Jim Meyering <meyering@lucent.com>
62439 * lib/xstat.in: Fix grammar in comment.
62441 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
62443 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62444 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62445 doesn't define __restrict_arr.
62447 2000-10-28 Jim Meyering <meyering@lucent.com>
62449 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62450 (jm_PREREQ_MEMCHR): New function.
62452 2000-10-28 Jim Meyering <meyering@lucent.com>
62454 * lib/memchr.c: Update from libc.
62455 Adjust for portability:
62456 [HAVE_STDLIB_H]: Include stdlib.h.
62457 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62458 Undef __memchr, too.
62459 [!weak_alias]: Define __memchr to memchr.
62461 * lib/regex.c: Update from libc.
62462 * lib/regex.h: Likewise.
62463 * lib/getopt1.c: Likewise.
62464 * lib/memcmp.c: Likewise.
62466 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62467 Avoid using fseek, when possible -- it's broken by design.
62468 Patch by Ulrich Drepper.
62470 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
62472 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62473 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62474 Giving in to popular pressure to shut up the compiler with casts.
62476 2000-10-26 Jim Meyering <meyering@lucent.com>
62478 * lib/strftime.c: Update from libc.
62480 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
62482 * regex.c: More `unsigned char' -> `re_char' changes.
62483 Also change several `int' into `re_wchar_t'.
62484 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62485 (PUSH_FAILURE_POINTER): Don't cast any more.
62486 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62487 We want GCC to complain, since this piece of code makes
62488 re_match non-reentrant, which *should* be fixed.
62489 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62490 (EXTEND_BUFFER): Use RETALLOC.
62491 (SET_LIST_BIT): Don't cast.
62492 (re_wchar_t): New type.
62493 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62494 that those two functions will always properly return.
62495 (IMMEDIATE_QUIT_CHECK): Cast to void.
62496 (analyse_first): Use recursion rather than an explicit stack.
62497 (re_compile_fastmap): Can't fail anymore.
62498 (re_search_2): Don't check re_compile_fastmap for failure.
62499 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62500 Now also sets the new value (passed in a new argument).
62501 (re_match_2_internal): Use it.
62502 Also, use a new var `reg' of type size_t when looping through regs
62503 rather than reuse the inappropriate `mcnt'.
62505 2000-10-25 Jim Meyering <meyering@lucent.com>
62507 * lib/obstack.c: Update from libc.
62509 2000-10-24 Kenichi Handa <handa@etl.go.jp>
62511 * regex.c (regex_compile): Change the way of handling a range from
62512 a char less than 256 to a char not less than 256.
62514 2000-10-24 Andrew Innes <andrewi@gnu.org>
62516 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62518 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62519 so that re_search functions only quit when callers expect them to.
62521 2000-10-23 Jim Meyering <meyering@lucent.com>
62523 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62524 wrong. That set_locale call must not have any side effects.
62527 2000-10-22 Jim Meyering <meyering@lucent.com>
62529 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62530 [CYCLIC]: Remove now-unused definition.
62532 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62533 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62534 Suggestion from Ulrich Drepper.
62536 2000-10-21 Jim Meyering <meyering@lucent.com>
62538 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62539 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62540 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62542 2000-10-21 Jim Meyering <meyering@lucent.com>
62544 * lib/dirname.c (memrchr): Declare if necessary.
62545 (dir_name): Remove the restriction that there be no
62546 trailing slashes. Now, this code skips past them, effectively
62548 [TEST_DIRNAME] (main): New unit tests.
62550 * lib/memrchr.c: New file from GNU libc.
62551 Undef __memrchr, too.
62552 [!weak_alias]: Define __memrchr to memrchr.
62553 Guard weak_alias use with `#ifdef weak_alias'.
62555 2000-10-21 Jim Meyering <meyering@lucent.com>
62557 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62558 (dir_name): Use dir_name_r.
62559 * lib/dirname.h (dir_name_r): Declare it.
62561 2000-10-17 Jim Meyering <meyering@lucent.com>
62563 * lib/quote.h (PARAMS): Define and use.
62564 Reported by Akim Demaille.
62566 * lib/getopt.c: Update from libc.
62568 2000-10-16 Jim Meyering <meyering@lucent.com>
62570 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62574 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
62576 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62578 2000-09-25 Jim Meyering <meyering@lucent.com>
62580 * lib/md5.h (rol): Define (from GnuPG).
62582 * lib/sha.c: Give credit (GnuPG) where due.
62583 (M): Use rol rather than open-coding it.
62584 Add a FIXME comment.
62586 2000-09-21 Jim Meyering <meyering@lucent.com>
62588 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62589 Reported by Michael Stone.
62591 2000-09-20 Jim Meyering <meyering@lucent.com>
62593 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62594 (noinst_HEADERS): Add sha.h.
62595 Based on code from Scott G. Miller and from GnuPG.
62597 2000-09-18 Jim Meyering <meyering@lucent.com>
62599 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62600 LIBS. Otherwise, everyone ends up linking with -lelf for some
62602 Reported by Mike Stone.
62604 2000-09-15 Jim Meyering <meyering@lucent.com>
62606 * lib/regex.c: Update from libc.
62608 2000-09-10 Jim Meyering <meyering@lucent.com>
62610 * lib/getopt.c (_getopt_internal): Update from glibc.
62612 2000-09-09 Jim Meyering <meyering@lucent.com>
62614 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62615 think it should be used as a general replacement for isascii.
62616 * lib/fnmatch.c: Likewise.
62617 * lib/mbswidth.c: Likewise
62618 * lib/regex.c: Likewise.
62621 * lib/userspec.c: Include sys/param.h and limits.h.
62623 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62624 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62625 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62626 UID, GID. Check range.
62628 2000-09-06 Jim Meyering <meyering@lucent.com>
62630 * lib/getopt.c (_getopt_internal): Update from glibc.
62632 2000-08-30 Jim Meyering <meyering@lucent.com>
62634 * lib/strftime.c: Merge in changes from GNU libc.
62636 2000-08-26 Jim Meyering <meyering@lucent.com>
62638 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62639 * m4/fpending.m4: New file.
62641 2000-08-26 Jim Meyering <meyering@lucent.com>
62643 * lib/closeout.c: Include "__fpending.h".
62644 (close_stdout_status): Return right away if there's nothing to flush.
62646 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62647 * lib/__fpending.c: New file.
62648 * lib/__fpending.h: New file.
62650 2000-08-20 Jim Meyering <meyering@lucent.com>
62652 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62653 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
62654 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
62656 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
62658 Improve fileutils installation on systems where running
62659 programs (like install) can't be unlinked.
62660 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62661 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62663 2000-08-07 Paul Eggert <eggert@twinsun.com>
62665 Standardize on "memory exhausted" instead of "Memory exhausted"
62666 or "virtual memory exhausted".
62667 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62668 "virtual memory exhausted".
62669 * lib/same.c (same_name): Invoke xalloc_die instead of printing
62671 * lib/userspec.c (parse_user_spec): Likewise.
62672 * lib/bumpalloc.h: comment fix
62673 * lib/same.c, userspec.c: Include xalloc.h.
62675 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62676 not char *const and pointing to a constant array.
62677 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62678 (xrealloc): Comment fix.
62680 * lib/userspec.c (parse_user_spec):
62681 Don't translate a message until just before returning,
62682 to avoid unnecessary translation.
62684 2000-08-07 Jim Meyering <meyering@lucent.com>
62686 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62687 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62688 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62689 getgroups.c, gethostname.c, getopt.h, group-member.c,
62690 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62691 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62692 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62693 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62694 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62695 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62696 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62697 yesno.c: Back out Copyright date changes for each file with no change
62698 this year. This eases coordination with other programs using the same
62699 source code modules. From Paul Eggert.
62701 2000-08-06 Paul Eggert <eggert@twinsun.com>
62703 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62704 not char, for compatibility with glibc 2.1.3 strftime.c.
62706 2000-08-03 Greg McGary <greg@mcgary.org>
62708 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62709 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62710 (EXTEND_BUFFER): Use them.
62712 2000-08-01 Jim Meyering <meyering@lucent.com>
62714 * lib/dirname.c (ISSLASH): Define.
62715 (BACKSLASH_IS_PATH_SEPARATOR): Define.
62716 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62717 both `\' and `/' may be use as path separators.
62718 Based on a patch from Prashant TR.
62720 2000-07-31 Paul Eggert <eggert@twinsun.com>
62722 * lib/quotearg.c (quotearg_n_options): Don't make the initial
62723 slot vector a constant, since it might get modified.
62725 2000-07-31 Jim Meyering <meyering@lucent.com>
62727 * lib/xmalloc.c: Use `virtual memory exhausted', not
62728 `Memory exhausted'.
62729 * lib/obstack.c (print_and_abort): Likewise.
62731 2000-07-30 Paul Eggert <eggert@twinsun.com>
62733 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62734 buffer, so that the caller can always quote one small
62735 component of a "memory exhausted" message in slot 0.
62736 From a suggestion by Jim Meyering.
62738 2000-07-30 Jim Meyering <meyering@lucent.com>
62740 * lib/makepath.c (make_path): Quote the other instance, too.
62742 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62743 (STATIC_BUF_SIZE): Define.
62744 (quotearg_n_options): Use only statically allocated storage when
62745 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62746 than STATIC_BUF_SIZE.
62748 2000-07-29 Jim Meyering <meyering@lucent.com>
62750 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62751 * lib/dirname.c (dir_name): Likewise.
62753 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62756 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62757 (dir_name): Assert that there are no trailing slashes.
62759 2000-07-29 Bruno Haible <haible@clisp.cons.org>
62761 * lib/mbswidth.h (mbswidth): Add a flags argument.
62762 (mbswidth): New declaration.
62763 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62764 * lib/mbswidth.c (mbswidth): Add a flags argument.
62765 (mbsnwidth): New function.
62767 2000-07-24 Jim Meyering <meyering@lucent.com>
62769 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
62771 2000-07-23 Paul Eggert <eggert@twinsun.com>
62773 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62775 2000-07-23 Paul Eggert <eggert@twinsun.com>
62777 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62778 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62779 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62780 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62781 invoke multibyte primitives.
62783 2000-07-23 Paul Eggert <eggert@twinsun.com>
62786 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62787 so that mbstate_t is always defined.
62789 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62790 be 1 in at least one GCC installation, and this configuration
62791 error is likely to be common. Ignoring MB_LEN_MAX hurts
62792 performance on hosts that have mbrtowc but have only unibyte
62793 locales, but I assume these hosts are rare.
62795 2000-07-23 Paul Eggert <eggert@twinsun.com>
62797 * lib/mbswidth.c (_XOPEN_SOURCE):
62798 Don't define; this causes problems on Solaris 7.
62799 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62801 2000-07-23 Jim Meyering <meyering@lucent.com>
62803 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62804 too: getgrgid, getpwuid, getuid.
62806 2000-07-23 Jim Meyering <meyering@lucent.com>
62808 * lib/basename.c (base_name): Add an assertion.
62810 2000-07-23 Bruno Haible <haible@clisp.cons.org>
62812 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62813 shadow its mbsinit function.
62815 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62817 * lib/mbswidth.h: New file.
62818 * lib/mbswidth.c: New file.
62819 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62820 (noinst_HEADERS): Add mbswidth.h.
62822 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62824 * lib/config.charset: Add support for FreeBSD. Improve support for
62827 2000-07-16 Bruno Haible <haible@clisp.cons.org>
62829 * m4/mbswidth.m4: New file.
62830 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62832 2000-07-15 Jim Meyering <meyering@lucent.com>
62834 * lib/makepath.c: Include quote.h.
62835 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62836 corresponding argument in a `quote (...)' call.
62837 Give better diagnostics.
62839 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62840 (noinst_HEADERS): Add quote.h.
62842 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
62843 from tar's src/misc.c.
62844 * lib/quote.h: New file. Prototypes for same.
62846 2000-07-14 Paul Eggert <eggert@twinsun.com>
62848 From a suggestion by Bruno Haible.
62849 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62850 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62851 to decide whether to define the BeOS workaround macro;
62852 this adjusts to the change to AC_MBSTATE_T.
62854 2000-07-14 Jim Meyering <meyering@lucent.com>
62856 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62857 jm_AC_TYPE_UINTMAX_T.
62859 2000-07-13 Paul Eggert <eggert@twinsun.com>
62861 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62863 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62864 quotearg_buffer_restyled): Add support for
62865 clocale_quoting_style. Undo previous change to
62866 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62867 and "{RIGHT QUOTATION MARK}" msgids.
62869 2000-07-10 Paul Eggert <eggert@twinsun.com>
62871 From a suggestion by Bruno Haible.
62872 * m4/mbstate_t.m4 (AC_MBSTATE_T):
62873 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
62874 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62875 and mbstate_t, to a single-part test that simply defines mbstate_t.
62876 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62877 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62879 2000-07-10 Jim Meyering <meyering@lucent.com>
62881 * m4/strerror_r.m4: Mirror the correction made in autoconf.
62883 * m4/gnu-source.m4: Output to confdefs.h directly.
62884 Suggestion from Akim Demaille.
62886 2000-07-09 Paul Eggert <eggert@twinsun.com>
62888 The old behavior of quoting `like this' doesn't look good with
62889 newer, ISO-style fonts. See:
62890 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62892 Instead, quote "like this" by default. Let the translator
62893 tailor the locale-specific quoting behavior by providing
62894 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62896 * lib/quotearg.c (N_): New macro.
62897 (gettext_default): New function.
62898 (quotearg_buffer_restyled): Use
62899 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62900 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62902 2000-07-09 Jim Meyering <meyering@lucent.com>
62904 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62905 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
62907 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62908 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62910 2000-07-09 Jim Meyering <meyering@lucent.com>
62912 * lib/Most files: Update copyright dates to include 2000.
62914 2000-07-08 Jim Meyering <meyering@lucent.com>
62916 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62918 (xgethostname): Remove now-unnecessary #ifdef.
62919 Move declaration of `err' into loop where it's used.
62921 2000-07-05 Paul Eggert <eggert@twinsun.com>
62922 and Bruno Haible <haible@clisp.cons.org>
62924 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62925 only if the test for an object-type mbstate_t fails. This
62926 prevents us from mistakenly reporting that mbstate_t is a
62927 system object type after we "#define mbstate_t int" to work
62930 2000-07-05 Paul Eggert <eggert@twinsun.com>
62931 and Bruno Haible <haible@clisp.cons.org>
62933 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62935 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62937 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62939 Include <ctype.h> for use of isalpha.
62941 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62943 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62944 by allocating a larger buffer. Test the gethostname return value for
62945 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
62946 returns an error and ENAMETOOLONG isn't defined.
62948 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62950 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62953 2000-07-04 Jim Meyering <meyering@lucent.com>
62955 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62956 of the deprecated AC_CHECKING.
62958 2000-07-04 Jim Meyering <meyering@lucent.com>
62960 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62961 Reported by Bruno Haible.
62963 2000-07-04 Jim Meyering <meyering@lucent.com>
62965 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62966 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
62969 2000-07-03 Paul Eggert <eggert@twinsun.com>
62971 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62972 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62974 2000-07-03 Paul Eggert <eggert@twinsun.com>
62975 and Bruno Haible <haible@clisp.cons.org>
62977 * lib/quotearg.c (mbrtowc):
62978 Assign to *pwc, and return 1 only if result is nonzero.
62979 (iswprint): Use ISPRINT when substituting our own mbrtowc.
62981 2000-07-03 Jim Meyering <meyering@lucent.com>
62983 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62985 2000-07-03 Jim Meyering <meyering@lucent.com>
62987 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62988 This is necessary to get a definition of e.g., UTMP_FILE on
62992 2000-07-02 Jim Meyering <meyering@lucent.com>
62994 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62996 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62997 AC_LIBOBJ(function_name).
62998 * m4/chown.m4: Likewise.
62999 * m4/fnmatch.m4: Likewise.
63000 * m4/ftruncate.m4: Likewise.
63001 * m4/getgroups.m4: Likewise.
63002 * m4/getline.m4: Likewise.
63003 * m4/group-member.m4: Likewise.
63004 * m4/jm-macros.m4: Likewise.
63005 * m4/lstat.m4: Likewise.
63006 * m4/malloc.m4: Likewise.
63007 * m4/memcmp.m4: Likewise.
63008 * m4/nanosleep.m4: Likewise.
63009 * m4/putenv.m4: Likewise.
63010 * m4/realloc.m4: Likewise.
63011 * m4/regex.m4: Likewise.
63012 * m4/stat.m4: Likewise.
63013 * m4/strftime.m4: Likewise.
63015 2000-07-02 Jim Meyering <meyering@lucent.com>
63017 * lib/quotearg.c (mbstate_t): Don't define here.
63019 2000-07-02 Jim Meyering <meyering@lucent.com>
63021 * lib/nanosleep.c (SIGCONT): Define if not already defined.
63023 2000-07-01 Jim Meyering <meyering@lucent.com>
63025 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63027 2000-07-01 Jim Meyering <meyering@lucent.com>
63029 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63032 2000-07-01 Bruno Haible <haible@clisp.cons.org>
63034 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63035 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63037 2000-07-01 Bruno Haible <haible@clisp.cons.org>
63039 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63040 per change in ../m4/ls-mntd-fs.m4.
63041 (read_filesystem_list): Ignore symbolic links.
63043 2000-06-29 Jim Meyering <meyering@lucent.com>
63045 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63046 for declaration of strcmp.
63048 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63050 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63051 Avoid warning by casting result to `char *' to remove `const'.
63053 2000-06-28 Jim Meyering <meyering@lucent.com>
63055 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
63056 included by quotearg.c, for which we perform this test. From
63059 2000-06-27 Bruno Haible <haible@clisp.cons.org>
63061 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63062 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63063 <utmpx.h> exists, put readutmp.o into LIBOBJS.
63065 2000-06-27 Bruno Haible <haible@clisp.cons.org>
63067 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63069 2000-06-26 Paul Eggert <eggert@twinsun.com>
63071 savedir now sets errno on failure and invokes xmalloc to get memory.
63072 Fix a couple of other minor bugs while we're at it.
63074 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63075 (NAMLEN): Remove macro.
63076 (malloc, realloc): Remove decls.
63077 (stpcpy): Likewise.
63078 ("xalloc.h"): Include.
63079 (NAME_SIZE_DEFAULT): New macro.
63080 (savedir): Use xmalloc / xrealloc to allocate memory.
63081 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63082 Skip "" directory entries.
63083 Use strlen to calculate directory entry length, since the old method
63084 is rarely used these days and isn't worth supporting.
63085 Don't use a pointer after freeing it.
63086 Check for integer overflow when calculating allocation size.
63087 Use memcpy to copy entries, instead of stpcpy.
63088 Set errno properly when returning NULL.
63089 Check for readdir error.
63091 2000-06-26 Jim Meyering <meyering@lucent.com>
63093 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63095 2000-06-25 Jim Meyering <meyering@lucent.com>
63097 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63098 Linux header bug when _XOPEN_SOURCE is defined to 500.
63100 2000-06-25 Bruno Haible <haible@clisp.cons.org>
63102 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63105 2000-06-25 Bruno Haible <haible@clisp.cons.org>
63107 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63109 Don't include <stdlib.h>. Don't declare malloc, realloc.
63111 2000-06-24 Jim Meyering <meyering@lucent.com>
63113 * m4/strerror_r.m4: Revive this file -- to try out an experimental
63114 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63115 for which strerror does return char*, but which lacks a conveniently
63116 accessible declaration of the function. If the compile-test says
63117 strerror_r doesn't work, then resort to a `run'-test that works on
63118 BeOS and segfaults on DEC Unix.
63120 2000-06-24 Jim Meyering <meyering@lucent.com>
63122 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63124 2000-06-23 Paul Eggert <eggert@twinsun.com>
63126 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63127 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
63129 2000-06-23 Paul Eggert <eggert@twinsun.com>
63131 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63132 (mbrtowc, mbstate_t): Define substitutes if
63133 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63134 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63135 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63137 2000-06-23 Jim Meyering <meyering@lucent.com>
63139 * m4/afs.m4: Add missing AC_MSG_RESULT.
63140 Reported by Bruno Haible.
63142 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63143 Suggestion from Bruno Haible.
63145 2000-06-23 Jim Meyering <meyering@lucent.com>
63147 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
63149 2000-06-21 Jim Meyering <meyering@lucent.com>
63151 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63153 2000-06-21 Jim Meyering <meyering@lucent.com>
63155 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63156 (noinst_HEADERS): Add getstr.h.
63158 * lib/getline.c (getstr): Move into a separate file.
63159 * lib/getstr.c (getstr): New file, extracted from getline.c, with
63160 the following changes: new parameter, delim2; both delim[12]
63161 parameters have type `int', not `char'. The latter would lose
63162 with 8-bit delimiters.
63163 * lib/getstr.h: New file.
63165 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63167 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63168 than 1024, return a memory chunk of least possible size, instead
63169 of size PATH_MAX + 2. In the loop, increment the size proportionally.
63170 Use free/xmalloc instead of xrealloc to avoid copying for very long
63173 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63175 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63178 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63180 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63181 address, not strdup. Include <stdlib.h> and don't declare free().
63183 2000-06-19 Jim Meyering <meyering@lucent.com>
63185 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63187 2000-06-18 Jim Meyering <meyering@lucent.com>
63189 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63191 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63192 `checking whether...' message to be consistent with that of the
63195 2000-06-18 Jim Meyering <meyering@lucent.com>
63197 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63198 Besides, these days every porting target provides a mkdir function.
63200 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63201 needed. (this snippet comes from src/system.h).
63203 2000-06-16 Bruno Haible <haible@clisp.cons.org>
63205 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63207 2000-06-15 Paul Eggert <eggert@twinsun.com>
63209 * lib/human.c (adjust_value): New function.
63210 (human_readable_inexact): Apply rounding style even when
63211 printing approximate values.
63213 2000-06-14 Paul Eggert <eggert@twinsun.com>
63215 * lib/human.c (human_readable_inexact): Allow an input block
63216 size that is not a multiple of the output block size, and vice versa.
63217 Reported by Piergiorgio Sartor.
63219 2000-06-14 Paul Eggert <eggert@twinsun.com>
63221 * lib/getdate.y (get_date): Apply relative times after time
63222 zone indicator, not before. Reported by Todd A. Jacobs.
63224 2000-06-13 Jim Meyering <meyering@lucent.com>
63226 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63228 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63230 2000-06-12 Paul Eggert <eggert@twinsun.com>
63232 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63234 2000-06-12 Jim Meyering <meyering@lucent.com>
63236 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63237 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63239 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63240 the optional argument, `lib'.
63242 2000-06-08 Jim Meyering <meyering@lucent.com>
63244 * m4/largefile.m4: Remove file (now that it's part of autoconf).
63246 2000-06-04 Paul Eggert <eggert@twinsun.com>
63248 Rewrite largefile configuration so that we don't need to run
63249 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
63250 AC_CANONICAL_HOST in configure.in -- jmm]
63252 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63253 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63254 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63255 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63256 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63258 Instead of inspecting the output of getconf, try to compile the
63259 test program without and with the macro definition.
63260 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63261 for getconf. Instead, check for the needed flags by compiling
63264 2000-06-04 Paul Eggert <eggert@twinsun.com>
63266 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63268 2000-06-04 Jim Meyering <meyering@lucent.com>
63270 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63271 SunOS 4.1.4 for which gid_t is an unsigned type.
63273 2000-06-03 Jim Meyering <meyering@lucent.com>
63275 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63276 now that autoconf requires that.
63278 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63279 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63280 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63282 2000-06-03 Jim Meyering <meyering@lucent.com>
63284 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63286 2000-06-03 Bruno Haible <haible@clisp.cons.org>
63288 * m4/glibc21.m4: New file.
63289 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63291 2000-06-03 Bruno Haible <haible@clisp.cons.org>
63293 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63294 newer, don't install charset.alias.
63295 * lib/config.charset: Change the Linux/glibc rules so they become empty
63296 on glibc-2.1 or newer.
63298 2000-06-02 Jim Meyering <meyering@lucent.com>
63300 * lib/mountlist.c: Back out last change. Instead, do this...
63301 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63302 me_dummy member using the same `ignore'-testing code.
63303 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63307 2000-05-29 Jim Meyering <meyering@lucent.com>
63309 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63310 mounts with the `ignore' attribute. Based on a patch from
63313 2000-05-28 Jim Meyering <meyering@lucent.com>
63315 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63316 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63317 * m4/stat.m4: Likewise.
63318 * m4/lstat.m4: Likewise.
63319 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63321 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63322 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63324 2000-05-26 Jim Meyering <meyering@lucent.com>
63326 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63328 2000-05-24 Jim Meyering <meyering@lucent.com>
63330 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63331 autoconf requires that.
63332 * m4/lib-check.m4: Likewise.
63333 * m4/jm-macros.m4: Likewise.
63334 * m4/strftime.m4: Likewise.
63336 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63337 AC_CHECK_DECLS, now that autoconf requires that.
63339 2000-05-22 Jim Meyering <meyering@lucent.com>
63341 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63342 * m4/lstat.m4: Likewise.
63344 2000-05-22 Jim Meyering <meyering@lucent.com>
63346 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63348 2000-05-20 Jim Meyering <meyering@lucent.com>
63350 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63351 (jm_PREREQ): Use it.
63353 2000-05-18 Jim Meyering <meyering@lucent.com>
63355 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63356 back, too, since it may have been modified by allocate_entry.
63357 (hash_delete): Rewrite to use neither the assignment operator
63358 nor the comma operator in an if-expression.
63360 2000-05-15 Paul Eggert <eggert@twinsun.com>
63363 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63364 Remove; no longer needed.
63365 "quotearg.h": Add include.
63366 (file_name): Do not bother to explicitly initialize to NULL; it's less
63367 efficient on some hosts.
63368 (close_stdout_status): Remove test as to whether stdout was already
63369 closed; it breaks for the case "echo x | sort >&-".
63370 Quote file name colons.
63371 Do not assume that _("write error") lacks format strings.
63373 2000-05-15 Jim Meyering <meyering@lucent.com>
63375 * lib/version-etc.c (version_etc_copyright): Update the copyright
63376 string used in all --version output.
63378 2000-05-14 Jim Meyering <meyering@lucent.com>
63380 * lib/closeout.c (close_stdout_set_file_name): New function.
63381 (close_stdout_status): Use new file-scoped global.
63382 Return right away if fstat says the stdout file descriptor is invalid.
63383 * lib/closeout.h (close_stdout_set_file_name): Declare.
63385 2000-05-10 Jim Meyering <meyering@lucent.com>
63387 * lib/closeout.c [default_exit_status]: New file-scoped variable.
63388 (close_stdout_set_status): New function.
63389 * lib/closeout.h (close_stdout_set_status): Declare.
63391 2000-05-09 Jim Meyering <meyering@lucent.com>
63393 * m4/gettext.m4: Rename this...
63394 * m4/libintl.m4: ...to this.
63396 2000-05-08 Jim Meyering <meyering@lucent.com>
63398 * lib/long-options.c: Don't include closeout.h.
63399 (parse_long_options): Don't call close_stdout for --version.
63401 2000-05-06 Paul Eggert <eggert@twinsun.com>
63403 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63404 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63405 2.1.3 bug. This avoids a clash when files like regex.c define
63408 2000-05-06 Jim Meyering <meyering@lucent.com>
63410 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63411 (AC_REPLACE_FUNCS): Add strnlen.
63413 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63414 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63416 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63417 AC_SEARCH_LIBS call for nanosleep.
63418 (LIB_NANOSLEEP): Set and AC_SUBST.
63420 2000-05-06 Jim Meyering <meyering@lucent.com>
63422 * lib/strnlen.c: Undefine __strnlen and strnlen.
63423 [!weak_alias]: Define __strnlen to strnlen.
63425 * lib/atexit.c: New file, from libiberty.
63427 2000-05-06 Jim Meyering <meyering@lucent.com>
63429 * lib/closeout.c (close_stdout_status): Also check for errors on the
63432 2000-05-05 Jim Meyering <meyering@lucent.com>
63434 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63435 AC_SEARCH_LIBS call for clock_gettime.
63436 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63438 * m4/search-libs.m4: Update from autoconf.
63440 su doesn't work on Solaris 2.6.
63441 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63442 <shadow.h>. Reported by Dragos Harabor.
63444 2000-05-05 Bruno Haible <haible@clisp.cons.org>
63446 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63447 memcpy instead of xmalloc, xrealloc, path_concat.
63448 (locale_charset): Treat empty environment variables as absent.
63449 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63451 2000-05-04 Jim Meyering <meyering@lucent.com>
63453 * lib/getopt.c: Update from glibc.
63454 * lib/obstack.c: Likewise.
63455 * lib/obstack.h: Likewise.
63456 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
63459 * lib/regex.h: Likewise.
63460 * lib/strndup.c: Likewise.
63461 * lib/strnlen.c: New file, from glibc.
63463 2000-05-03 Jim Meyering <meyering@lucent.com>
63465 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63467 2000-05-02 Paul Eggert <eggert@twinsun.com>
63469 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63470 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
63471 compile-time test, rather than inspecting host and OS, to
63472 decide whether to define _LARGEFILE_SOURCE.
63474 2000-05-01 Jim Meyering <meyering@lucent.com>
63476 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63478 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63479 Based on a patch from Bruno Haible.
63481 2000-05-01 Jim Meyering <meyering@lucent.com>
63483 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63485 2000-04-29 Jim Meyering <meyering@lucent.com>
63487 * lib/path-concat.c: Declare strdup only if it's not defined.
63488 * lib/canon-host.c: Likewise.
63490 2000-04-28 Jim Meyering <meyering@lucent.com>
63492 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63493 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
63494 is included first, then limits.h is included by locale.h by libintl.h.
63495 From John David Anglin.
63497 2000-04-25 Jim Meyering <meyering@lucent.com>
63499 * lib/makepath.c (S_IRWXUGO): Define.
63500 (make_path): Always perform explicit chmod if MODE specifies any
63501 of the `special' permission bits. Prompted by a bug report against
63502 install from Mate Wierdl and Joost van Baal.
63504 2000-04-18 Jim Meyering <meyering@lucent.com>
63506 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63507 (jm_PREREQ): Use it.
63509 2000-04-18 Jim Meyering <meyering@lucent.com>
63511 * lib/README: New file.
63513 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63514 getpagesize. For BeOS. Based on a patch from Bruno Haible.
63516 2000-04-17 Jim Meyering <meyering@lucent.com>
63519 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63520 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
63521 Suggestion from Akim Demaille.
63523 2000-04-17 Jim Meyering <meyering@lucent.com>
63525 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63526 the definition of it to rpl_strftime also defined-away the system's
63529 2000-04-15 Jim Meyering <meyering@lucent.com>
63531 Use `C' to denote so-called `contiguous' files, the same way
63533 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63534 (ftypelet): Use S_ISCTG.
63535 From Michael Deutschmann.
63537 2000-04-14 Jim Meyering <meyering@lucent.com>
63539 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63540 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
63543 2000-04-14 Jim Meyering <meyering@lucent.com>
63545 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63547 2000-04-13 Jim Meyering <meyering@lucent.com>
63549 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63550 AH_VERBATIM to insert required #ifndef into config.h.in.
63551 Suggestion from Akim Demaille.
63553 2000-04-12 Jim Meyering <meyering@lucent.com>
63555 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63556 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
63557 Christian Krackowizer.
63559 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63560 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63561 (AC_SYS_LARGEFILE): Require.
63562 (AM_C_PROTOTYPES): Require.
63564 2000-04-08 Jim Meyering <meyering@lucent.com>
63566 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63567 names don't conflict. Reported by Eli Zaretskii.
63569 2000-04-07 Jim Meyering <meyering@lucent.com>
63571 * lib/putenv.c: Move inclusion of errno.h so it follows that of
63572 sys/types.h, to work around system header problems on AIX 3.2.5.
63575 2000-04-07 Bruno Haible <haible@clisp.cons.org>
63577 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63578 bug. Deal with the different error behavior of Irix iconv.
63580 2000-04-05 Paul Eggert <eggert@twinsun.com>
63582 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63583 IRIX if the installer said otherwise.
63585 2000-04-05 Jim Meyering <meyering@lucent.com>
63587 Portability tweaks required for ultrix4.3.
63588 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63589 (jm_CHECK_DECLS): Add getutent to the list of functions.
63590 (_jm_DECL_HEADERS): Add utmpx.h.
63591 From John David Anglin.
63593 * m4/strftime.m4: Back out the 2000-04-02 change.
63594 Instead of that change, simply undefine putenv in the test program.
63596 2000-04-05 Jim Meyering <meyering@lucent.com>
63598 Portability tweaks required for ultrix4.3.
63599 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63601 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63602 * lib/canon-host.c: Declare strdup.
63603 * lib/path-concat.c: Likewise.
63604 From John David Anglin.
63606 2000-04-04 Jim Meyering <meyering@lucent.com>
63608 Be more DOS 8.3-friendly.
63609 * lib/ref-add.sin: Renamed from ref-add.sed.in.
63610 * lib/ref-del.sin: Renamed from ref-del.sed.in.
63611 * lib/Makefile.am: Reflect renaming.
63612 Reported by Eli Zaretskii.
63614 Use a temporary file name that won't clash with `charset.alias'
63615 in the DOS 8.3 name space.
63616 * lib/Makefile.am (charset_tmp): Define.
63617 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63618 (uninstall-local): Likewise.
63619 Reported by Eli Zaretskii.
63621 2000-04-03 Jim Meyering <meyering@lucent.com>
63623 * m4/gettext.m4: Fix typo in comment.
63625 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63626 textutils/configure.in). Suggestion from Paul Eggert.
63627 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
63629 2000-04-02 Paul Eggert <eggert@twinsun.com>
63631 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63632 variable in the shell rather than using putenv, which isn't
63633 portable. This avoids the configure-time inter-test dependency
63634 on the potentially-renamed putenv function.
63636 2000-03-30 Paul Eggert <eggert@twinsun.com>
63638 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63639 before checking struct stat.st_blksize, so that
63640 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63642 2000-03-29 Paul Eggert <eggert@twinsun.com>
63644 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63645 since strftime.c uses HAVE_STRFTIME to decide whether to use
63646 the underlying strftime.
63648 2000-03-29 Paul Eggert <eggert@twinsun.com>
63650 * lib/time/strftime.c (my_strftime): Make sure we call the system
63651 strftime, not ourselves, when invoking the underlying strftime.
63653 2000-03-24 Jim Meyering <meyering@lucent.com>
63655 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63656 (charset_alias): Define.
63657 (install-exec-local): Factor out common code.
63658 (uninstall-local): Split lines longer than 80.
63659 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63660 (SUFFIXES): Define.
63661 (.sed.in.sed): New rule. Don't redirect directly to $@.
63662 (CLEANFILES): Add ref-add.sed and ref-del.sed.
63664 2000-03-19 Bruno Haible <haible@clisp.cons.org>
63666 * lib/config.charset: Output a line containing "Packages using this
63668 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63669 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63670 ref-del.sed): New rules.
63672 2000-03-17 Jim Meyering <meyering@lucent.com>
63674 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63675 Otherwise, include <strings.h>
63677 2000-03-17 Bruno Haible <haible@clisp.cons.org>
63679 * lib/unicodeio.c (utf8_wctomb): New function.
63680 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63681 format instead of in UCS-4 with platform dependent endianness.
63683 2000-03-10 Jim Meyering <meyering@lucent.com>
63685 * m4/lib-check.m4: Look for getspnam in -lgen, too.
63686 From Marco Franzen.
63688 2000-03-07 Paul Eggert <eggert@twinsun.com>
63690 * lib/savedir.c (savedir): Work even if directory size is
63691 negative; this can happen with some screwy NFS configurations.
63693 2000-03-06 Jim Meyering <meyering@lucent.com>
63695 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63696 if it's NULL (because we ran out of memory). From Bruno Haible.
63698 2000-03-05 Jim Meyering <meyering@lucent.com>
63700 * lib/localcharset.c ("path-concat.h"): Include.
63701 (get_charset_aliases): Use path_concat instead of ANSI string
63704 * lib/unicodeio.h (PARAMS): Define.
63705 Use it to guard prototype.
63707 2000-03-04 Jim Meyering <meyering@lucent.com>
63709 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63710 for lib/localcharset.c.
63712 2000-03-04 Jim Meyering <meyering@lucent.com>
63714 * lib/Makefile.am (install-exec-local): Create $(libdir) before
63715 installing into it.
63716 (uninstall-local): Uncomment this rule so `make distcheck' works
63719 * lib/unicodeio.c (<errno.h>): Include it.
63720 (errno): Declare if not defined.
63722 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63724 * lib/config.charset: New version, incorporating remarks from a linux
63725 i18n mailing list. From Bruno Haible.
63727 2000-03-04 Bruno Haible <haible@clisp.cons.org>
63729 * m4/codeset.m4: New file.
63730 * m4/iconv.m4: New file.
63731 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63733 2000-03-03 Jim Meyering <meyering@lucent.com>
63735 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63737 2000-03-02 Jim Meyering <meyering@lucent.com>
63739 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63740 the messages come out on separate lines.
63742 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63743 rather than jm_CHECK_DECLARATIONS.
63744 * m4/decl.m4: Remove now-unused file.
63746 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63749 2000-03-02 Jim Meyering <meyering@lucent.com>
63751 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63753 2000-03-01 Jim Meyering <meyering@lucent.com>
63755 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63756 * lib/unicodeio.c: Likewise.
63758 2000-03-01 Bruno Haible <haible@clisp.cons.org>
63760 * lib/config.charset: New file.
63761 * lib/localcharset.c: New file.
63762 * lib/unicodeio.h, lib/unicodeio.c: New files.
63763 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63764 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63765 (noinst_HEADERS): Add unicodeio.h.
63766 (all-local, install-exec-local, charset.alias): New targets.
63768 2000-02-28 Paul Eggert <eggert@twinsun.com>
63770 * lib/quotearg.c (ALERT_CHAR): New macro.
63771 (quotearg_buffer_restyled): Use it.
63773 2000-02-27 Jim Meyering <meyering@lucent.com>
63775 * m4/check-decl.m4: Add getenv to the list.
63777 2000-02-27 Jim Meyering <meyering@lucent.com>
63779 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63780 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63782 * lib/backupfile.c: Guard inclusion of stdlib.h with
63783 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63784 Declare malloc if needed.
63786 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63787 `#ifndef HAVE_DECL..'
63788 now that autoconf always defines the HAVE_DECL_ symbols.
63789 * lib/human.c: Likewise.
63790 * lib/same.c: Likewise.
63791 * lib/strtoumax.c: Likewise.
63793 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63794 declaration check was not run.
63795 * lib/hash.c: Likewise.
63796 * lib/human.c: Likewise.
63797 * lib/same.c: Likewise.
63798 * lib/strtoumax.c: Likewise.
63800 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63801 `.', then first look up the entire `.'-containing string as a login
63804 2000-02-23 Jim Meyering <meyering@lucent.com>
63806 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63807 in place of my hack.
63809 2000-02-18 Paul Eggert <eggert@twinsun.com>
63811 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63812 (textint): New typedef.
63813 (parser_control): Member year changed from int to textint.
63815 (YYSTYPE): Removed; replaced by %union with int and textint members.
63816 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63817 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63818 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63819 (tSNUMBER, tUNUMBER): Now of type <textintval>.
63820 (date, number, to_year): Use width of number in digits, not its value,
63821 to determine whether it's a 2-digit year, or a 2-digit time.
63822 (yylex): Store number of digits of numeric tokens.
63823 Reported by John Kendall.
63825 (parser_control): Changed from struct parser_control to typedef (for
63826 consistency). All uses changed.
63828 (tID): Removed; not used.
63829 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63831 2000-02-14 Paul Eggert <eggert@twinsun.com>
63833 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63834 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63836 2000-02-12 Jim Meyering <meyering@lucent.com>
63838 * lib/userspec.c (ISDIGIT): Define it.
63839 (isdigit): Remove definition.
63840 (is_number): Use ISDIGIT, not isdigit.
63841 <libintl.h>: Include.
63842 (_ and N_): Define.
63843 (parse_user_spec): Mark translatable strings.
63845 2000-02-10 Jim Meyering <meyering@lucent.com>
63847 With these changes, nanosleep.[ch] are finally enough like the other
63848 lib/* replacement files to compile on a few more losing systems.
63850 * lib/nanosleep.h: Don't include config.h.
63851 Remove prototype from declaration of nanosleep.
63852 (PARAMS): Remove now-unneeded definition.
63853 * lib/nanosleep.c: #undef nanosleep.
63854 (rpl_nanosleep): Rename from nanosleep.
63856 2000-02-10 Jim Meyering <meyering@lucent.com>
63858 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63859 gnu_nanosleep to rpl_nanosleep.
63861 2000-02-09 Jim Meyering <meyering@lucent.com>
63863 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63864 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
63866 2000-02-08 Akim Demaille <akim@epita.fr>
63868 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63869 `[' and `]' and remove uses of `changequote'.
63870 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63871 (AC_SYS_LARGEFILE): Likewise.
63872 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63873 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63875 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63876 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63877 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63878 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63880 2000-02-05 Jim Meyering <meyering@lucent.com>
63882 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63883 Remove explicit use of AC_HEADER_TIME. It is required by
63884 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
63885 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63886 in autoconf whereby the expansion of the latter ended up preceding
63887 the expansion of its prerequisite, AC_HEADER_TIME.
63888 Reported by Volker Borchert.
63890 2000-02-03 Jim Meyering <meyering@lucent.com>
63892 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63894 2000-02-03 Jim Meyering <meyering@lucent.com>
63896 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63897 rather than with `#if HAVE_UTMPNAME'.
63899 2000-02-02 Jim Meyering <meyering@lucent.com>
63901 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63902 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63903 Reported by Eli Zaretskii.
63905 2000-02-01 Jim Meyering <meyering@lucent.com>
63907 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
63909 2000-01-31 Jim Meyering <meyering@lucent.com>
63911 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63912 functions. Add the time.h and sys/time.h headers along with the
63913 AC_REQUIRE'ment of AC_HEADER_TIME.
63915 2000-01-31 Jim Meyering <meyering@lucent.com>
63917 * lib/nanosleep.h (nanosleep): Guard declaration with
63918 `#if ! HAVE_DECL_NANOSLEEP'.
63919 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63920 the declaration in that vendor's sys/timers.h.
63921 Reported by Christian Krackowizer.
63923 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63924 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63925 (ISPRINT): Likewise.
63926 Reported by Tom Tromey.
63928 2000-01-30 Jim Meyering <meyering@lucent.com>
63930 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63932 * m4/prereq.m4 (utmp_includes): Define.
63933 Check for ut_user and ut_name members in both struct utmpx
63936 2000-01-30 Jim Meyering <meyering@lucent.com>
63938 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63939 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
63940 header files where only utmpx.ut_user is declared.
63942 * lib/readutmp.h (UT_USER): Define.
63944 2000-01-29 Jim Meyering <meyering@lucent.com>
63946 * m4/lib-check.m4: New file containing library-related checks from
63947 fileutils and sh-utils (textutils had none).
63949 2000-01-28 Jim Meyering <meyering@lucent.com>
63951 * m4/perl.m4: Change format of warning message to look more like that
63952 from the missing script. Suggestion from François Pinard.
63954 2000-01-25 Jim Meyering <meyering@lucent.com>
63956 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63957 well as time.h in the compile check.
63958 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63959 Fix typo in cross-compiling case: s/yes/no/.
63961 2000-01-23 Jim Meyering <meyering@lucent.com>
63963 * m4/jm-macros.m4: Move df-related tests here from
63964 fileutils/configure.in
63966 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63967 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63969 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
63970 s/space/ac_fsusage_space/.
63971 (jm_FILE_SYSTEM_USAGE): Take two parameters.
63973 * m4/ftruncate.m4: New file (derived from part of
63974 fileutils/configure.in).
63975 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63976 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63978 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63979 AC_SUBST these here, rather than just in sh-util/configure.in, so
63980 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63982 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63983 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63984 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63985 (AC_SUBST(POW_LIBM)): Likewise.
63986 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63988 2000-01-23 Jim Meyering <meyering@lucent.com>
63990 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63993 2000-01-22 Jim Meyering <meyering@lucent.com>
63995 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63997 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63999 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64001 (AC_CHECK_HEADERS): Likewise for sh-utils.
64002 (AC_CHECK_HEADERS): Likewise for textutils.
64003 Merge the three lists of headers.
64005 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
64006 from fileutils' configure.in.
64008 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64009 code. Moved tests into their own function (_jm_DECL_HEADERS) in
64012 * m4/check-decl.m4: Use #if rather than #ifdef.
64013 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64014 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64015 (_jm_DECL_HEADERS): Define new function.
64016 (jm_CHECK_DECLARATIONS): Require it.
64018 2000-01-22 Jim Meyering <meyering@lucent.com>
64020 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64021 [! HAVE_DECL_STRTOULL]: Declare strtoull.
64022 Required for some AIX systems. Reported by Christian Krackowizer.
64023 [TESTING] (main): New function.
64025 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
64026 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64029 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64032 * lib/strverscmp.c (ISDIGIT): Define.
64033 (strverscmp): Use ISDIGIT, not isdigit.
64035 2000-01-19 Jim Meyering <meyering@lucent.com>
64037 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64038 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
64039 defines `struct timespec' in <sys/time.h>
64041 * m4/c-bs-a.m4: Remove uses of changequote altogether.
64042 Thanks to Akim for explaining.
64044 2000-01-17 Paul Eggert <eggert@twinsun.com>
64046 * lib/nanosleep.c (nanosleep):
64047 Don't use SA_INTERRUPT to decide whether to call sigaction, as
64048 POSIX.1 doesn't require SA_INTERRUPT and some systems
64049 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
64050 it's been part of POSIX.1 since day 1 (in 1988).
64052 2000-01-17 Jim Meyering <meyering@lucent.com>
64054 * lib/interlock: Remove unused file. Reported by François Pinard.
64056 2000-01-16 Paul Eggert <eggert@twinsun.com>
64058 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64059 alert, backslash, formfeed, and vertical tab unnecessarily in
64060 shell quoting style.
64062 2000-01-16 Jim Meyering <meyering@lucent.com>
64064 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64065 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64066 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64067 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64069 2000-01-16 Jim Meyering <meyering@lucent.com>
64071 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64072 because the latter didn't work.
64074 2000-01-15 Jim Meyering <meyering@lucent.com>
64076 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64077 (AC_REPLACE_FUNCS): Add memcpy and memset.
64078 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64080 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64082 2000-01-12 Jim Meyering <meyering@lucent.com>
64084 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64085 (jm_PREREQ): Use it.
64086 (jm_PREREQ_READUTMP): New macro.
64087 (jm_PREREQ): Use it.
64089 2000-01-11 Paul Eggert <eggert@twinsun.com>
64091 Quote multibyte characters correctly.
64092 * m4/c-bs-a.m4: New file.
64093 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64094 (jm_PREREQ): Use it.
64096 2000-01-11 Paul Eggert <eggert@twinsun.com>
64098 * m4/uintmax_t.m4: Port to autoconf 2.13.
64100 2000-01-08 Jim Meyering <meyering@ascend.com>
64102 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64103 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64105 2000-01-04 Jim Meyering <meyering@ascend.com>
64107 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64108 jm_STRUCT_DIRENT_D_TYPE.
64109 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64110 jm_STRUCT_DIRENT_D_INO.
64111 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64113 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64115 * m4/utime.m4: Likewise.
64117 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64118 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64120 2000-01-03 Paul Eggert <eggert@twinsun.com>
64122 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64123 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64125 2000-01-02 Jim Meyering <meyering@ascend.com>
64127 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
64128 remember if this is necessary.
64130 1999-12-26 Jim Meyering <meyering@ascend.com>
64132 * m4/jm-macros.m4: Use it here.
64133 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64135 1999-12-23 Jim Meyering <meyering@ascend.com>
64137 * m4/jm-macros.m4: Check for clock_gettime (moved from
64138 fileutils/configure.in)
64139 Check for gettimeofday.
64141 1999-12-20 Jim Meyering <meyering@ascend.com>
64143 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64144 autoconf-2.14a-1999-12-20.
64146 1999-12-19 Jim Meyering <meyering@ascend.com>
64148 * m4/lstat-slash.m4: New file.
64149 * m4/jm-macros.m4: Use the new macro:
64150 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64152 1999-12-07 Jim Meyering <meyering@ascend.com>
64154 * m4/perl.m4: Require that File::Compare be available, too.
64155 Too many systems seem to lack it.
64157 * m4/strftime.m4: Add checks for most of the cpp macros tested in
64158 GNU's strftime.c. Prompted by a patch from Paul Eggert.
64160 1999-11-18 Paul Eggert <eggert@twinsun.com>
64162 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64163 problem with the QNX 4.25 shell, which doesn't propagate exit
64164 status of failed commands inside shell assignments.
64166 1999-11-17 Jim Meyering <meyering@ascend.com>
64168 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64170 1999-11-07 Jim Meyering <meyering@ascend.com>
64172 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64174 1999-11-06 Jim Meyering <meyering@ascend.com>
64176 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64177 * m4/jm-macros.m4 (jm_MACROS): Use it here.
64179 1999-11-05 Jim Meyering <meyering@ascend.com>
64181 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64182 configure.in of textutils, fileutils, and sh-utils into this one
64183 (shared between those packages) file.
64184 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64185 AC_STRUCT_ST_BLKSIZE.
64187 1999-11-03 Jim Meyering <meyering@ascend.com>
64189 * m4/ssize_t.m4: Remove file. No longer needed since the new version
64190 of AC_CHECK_TYPE checks includes unistd.h.
64191 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64192 Suggestion from Akim Demaille.
64194 1999-10-30 Jim Meyering <meyering@ascend.com>
64196 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
64198 * m4/ls-mntd-fs.m4: Likewise.
64199 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
64200 * m4/jm-winsz1.m4: Likewise.
64202 * m4/const.m4: Remove file, since the fix made it into the experimental
64203 version of autoconf.
64204 * m4/mktime.m4: Likewise.
64206 * m4/check-type.m4: Remove file, now that the latest version of
64207 AC_CHECK_TYPE takes a third arg to specify additional #includes.
64209 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64210 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64213 1999-10-04 Jim Meyering <meyering@ascend.com>
64215 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64217 1999-09-22 Paul Eggert <eggert@twinsun.com>
64219 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64220 2.95.1 bug with HP-UX 10.20.
64222 1999-09-17 Jim Meyering <meyering@ascend.com>
64224 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64225 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64226 due to missing strdup (against sh-utils-2.0).
64228 1999-08-29 Jim Meyering <meyering@ascend.com>
64230 * m4/jm-macros.m4: Require jm_BISON.
64231 * m4/bison.m4: New file.
64233 1999-08-17 Paul Eggert <eggert@twinsun.com>
64235 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64236 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64238 1999-08-05 Jim Meyering <meyering@ascend.com>
64240 * m4/getline.m4: Rename test file from conftestdata to conftest.data
64241 to avoid conflicts with `conftest' on 8+3 filesystems.
64242 Suggestion from Eli Zaretskii.
64244 1999-08-04 Jim Meyering <meyering@ascend.com>
64246 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64247 fileutils and sh-utils (textutils's getline test was inadequate).
64248 (AM_FUNC_GETLINE): Run this test.
64249 (AC_CHECK_FUNCS): Check for getdelim.
64250 Reported by Bob Proulx.
64252 1999-08-02 Jim Meyering <meyering@ascend.com>
64254 * m4/jm-macros.m4: Add a comment.
64256 1999-08-01 Paul Eggert <eggert@twinsun.com>
64258 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64259 <inttypes.h> defines strtoumax as a macro (and not as a
64262 1999-08-01 Paul Eggert <eggert@twinsun.com>
64264 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64265 that we can shift, multiply and divide unsigned long long
64266 values; Ultrix cc can't do it.
64268 1999-08-01 Paul Eggert <eggert@twinsun.com>
64270 * m4/mktime.m4: New file, which is a preview of what should appear
64271 in the next public autoconf release.
64273 1999-08-01 Paul Eggert <eggert@twinsun.com>
64275 * m4/lfs.m4: Remove this file.
64276 * m4/largefile.m4: New file. It contains the old contents of
64277 lfs.m4, except that all names with prefix AC_LFS have been
64278 changed to use the prefix AC_SYS_LARGEFILE instead, to be
64279 compatible with future autoconf versions. Also, some minor m4
64280 quoting problems have been fixed.
64282 1999-08-01 Paul Eggert <eggert@twinsun.com>
64284 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64285 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64286 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64287 and simplify the shell code.
64289 1999-08-01 Jim Meyering <meyering@ascend.com>
64291 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64294 1999-07-20 Jim Meyering <meyering@ascend.com>
64296 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64298 1999-07-15 Jim Meyering <meyering@ascend.com>
64300 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64302 1999-05-22 Jim Meyering <meyering@ascend.com>
64304 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64306 1999-05-20 Jim Meyering <meyering@ascend.com>
64308 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64309 Add a colon after each `then' in case $4 is empty.
64311 1999-05-16 Jim Meyering <meyering@ascend.com>
64313 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64315 1999-05-10 Jim Meyering <meyering@ascend.com>
64317 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64319 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64322 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
64324 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64326 1999-05-04 Paul Eggert <eggert@twinsun.com>
64328 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64329 not CPPFLAGS, so that linking works correctly in IRIX.
64331 1999-04-30 Paul Eggert <eggert@twinsun.com>
64333 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64335 1999-04-20 Paul Eggert <eggert@twinsun.com>
64337 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64338 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64339 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64340 jm_AC_TYPE_UNSIGNED_LONG_LONG.
64341 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64343 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
64345 1999-04-20 Jim Meyering <meyering@ascend.com>
64347 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64348 AC_REPLACE xstroull if necessary. From Paul Eggert.
64349 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64351 1999-04-18 Jim Meyering <meyering@ascend.com>
64353 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64354 * m4/jm-macros.m4: Use it.
64356 1999-04-06 Jim Meyering <meyering@ascend.com>
64358 * m4/strftime.m4: Remove test for %f.
64360 1999-03-29 Jim Meyering <meyering@ascend.com>
64362 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64363 superset of the AC_TYPE_* checks in the textutils, fileutils,
64364 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
64367 1999-03-28 Jim Meyering <meyering@ascend.com>
64369 * m4/jm-macros.m4: Define GNU_PACKAGE here.
64370 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64371 replaced e.g., in the *.sh files of the sh-utils.
64373 1999-03-20 Jim Meyering <meyering@ascend.com>
64375 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64376 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64377 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
64379 1999-03-19 Jim Meyering <meyering@ascend.com>
64381 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64383 1999-03-12 Jim Meyering <meyering@ascend.com>
64385 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64387 1999-03-07 Jim Meyering <meyering@ascend.com>
64389 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64392 1999-02-17 Jim Meyering <meyering@ascend.com>
64394 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64395 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
64397 1999-02-07 Jim Meyering <meyering@ascend.com>
64399 * m4/group-member.m4: New file -- extracted from sh-utils'
64402 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
64403 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64405 1999-02-06 Jim Meyering <meyering@ascend.com>
64407 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64408 * m4/fnmatch.m4: Likewise.
64409 * m4/getgroups.m4: Likewise.
64410 * m4/lstat.m4: Likewise.
64411 * m4/malloc.m4: Likewise.
64412 * m4/putenv.m4: Likewise.
64413 * m4/realloc.m4: Likewise.
64414 * m4/regex.m4: Likewise.
64415 * m4/stat.m4: Likewise.
64416 * m4/strftime.m4: Likewise.
64417 Suggestion from Alain Magloire.
64419 * m4/chown.m4: Use `.$ac_objext', not `.o'.
64420 * m4/fnmatch.m4: Likewise.
64421 * m4/getgroups.m4: Likewise.
64422 * m4/getline.m4: Likewise.
64423 * m4/lstat.m4: Likewise.
64424 * m4/malloc.m4: Likewise.
64425 * m4/memcmp.m4: Likewise.
64426 * m4/putenv.m4: Likewise.
64427 * m4/realloc.m4: Likewise.
64428 * m4/regex.m4: Likewise.
64429 * m4/stat.m4: Likewise.
64430 * m4/strftime.m4: Likewise.
64431 Suggestion from Alain Magloire.
64433 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64436 * m4/regex.m4: Add a run-time Test for proper operation of
64437 re_compile_pattern.
64439 1999-01-31 Jim Meyering <meyering@ascend.com>
64441 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64443 1999-01-30 Jim Meyering <meyering@ascend.com>
64445 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64447 * m4/jm-mktime.m4: Make this a wrapper around the official
64448 AM_FUNC_MKTIME rather than my private copy, now that the official one
64450 * m4/mktime.m4: Remove file.
64452 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64453 * m4/uptime.m4: Likewise.
64454 * m4/uintmax_t.m4: Likewise.
64456 1999-01-28 Jim Meyering <meyering@ascend.com>
64458 * m4/jm-macros.m4: Use jm_AFS.
64459 * m4/afs.m4: New file (from fileutils' configure.in).
64461 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64462 * m4/chown.m4: Likewise.
64463 * m4/d-ino.m4: Likewise.
64464 * m4/d-type.m4: Likewise.
64465 * m4/fnmatch.m4: Likewise.
64466 * m4/getgroups.m4: Likewise.
64467 * m4/gettext.m4: Likewise.
64468 * m4/jm-mktime.m4: Likewise.
64469 * m4/jm-winsz2.m4: Likewise.
64470 * m4/lcmessage.m4: Likewise.
64471 * m4/ls-mntd-fs.m4: Likewise.
64472 * m4/malloc.m4: Likewise.
64473 * m4/memcmp.m4: Likewise.
64474 * m4/putenv.m4: Likewise.
64475 * m4/realloc.m4: Likewise.
64476 * m4/st_mtim.m4: Likewise.
64477 * m4/strftime.m4: Likewise.
64479 1999-01-16 Jim Meyering <meyering@ascend.com>
64481 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64482 (ARGMATCH_DIE_DECL): Define.
64484 1999-01-12 Jim Meyering <meyering@ascend.com>
64486 * m4/Makefile.am.in: Rewrite to avoid using fmt.
64487 Reported by Lars Hecking.
64489 1999-01-10 Jim Meyering <meyering@ascend.com>
64491 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64493 * m4/inttypes_h.m4: Likewise.
64494 * m4/lstat.m4: Likewise.
64495 * m4/malloc.m4: Likewise.
64496 * m4/readdir.m4: Likewise.
64497 * m4/realloc.m4: Likewise.
64498 * m4/st_dm_mode.m4: Likewise.
64499 * m4/stat.m4: Likewise.
64500 * m4/utimbuf.m4: Likewise.
64501 * m4/utimes.m4: Likewise.
64503 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64504 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
64505 comments in config.h.in are meaningful.
64507 * m4/jm-macros.m4: Require autoconf-2.13 here.
64509 * m4/regex.m4: By default, don't use the included regex.c on systems
64510 with glibc 2. Suggestion from Uli Drepper.
64512 1999-01-02 Jim Meyering <meyering@ascend.com>
64514 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64516 1998-12-18 Jim Meyering <meyering@ascend.com>
64518 * m4/Makefile.am.in (Makefile.am): Simplify rule.
64519 Based on a suggestion from Lars Hecking.
64521 1998-11-16 Paul Eggert <eggert@twinsun.com>
64523 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64525 1998-11-16 Jim Meyering <meyering@ascend.com>
64527 * m4/lfs.m4: Double-quote the `uname...` expression.
64529 1998-11-14 Jim Meyering <meyering@ascend.com>
64531 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
64532 * m4/stat.m4: Likewise.
64534 1998-11-03 Jim Meyering <meyering@ascend.com>
64536 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64537 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64539 1998-10-18 Jim Meyering <meyering@ascend.com>
64541 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64543 1998-10-17 Jim Meyering <meyering@ascend.com>
64545 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64546 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64547 calls for those previously hard-coded headers. Instead, take a new
64549 (jm_CHECK_DECLARATIONS): Reflect interface change.
64550 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64551 (jm_CHECK_DECL_LOCALTIME_R): New macro.
64553 * m4/mktime.m4: Test for spring-forward gap before long-running test.
64555 1998-10-14 Jim Meyering <meyering@ascend.com>
64557 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64558 instead of "TZ=America/Vancouver". From Paul Eggert.
64560 1998-10-11 Jim Meyering <meyering@ascend.com>
64562 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64563 This adds a test for a recently added compatibility fix for mktime.c.
64564 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64566 1998-09-27 Jim Meyering <meyering@ascend.com>
64568 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64570 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
64571 ../configure.in, including a change from Gordon Matzigkeit to allow
64572 cross-compiling for the Hurd.
64574 * m4/glibc.m4: New file/macro to test for the GNU C Library
64575 versions 1 and 2. From Gordon Matzigkeit.
64578 1998-09-21 Jim Meyering <meyering@ascend.com>
64580 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
64582 1998-08-18 Paul Eggert <eggert@twinsun.com>
64584 Port nanosecond-resolution times to UnixWare 2.1.2 and
64585 pedantic Solaris 2.6.
64587 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64589 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64590 Generate name of ns member, instead of just 1 or undef.
64591 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64593 1998-08-15 Jim Meyering <meyering@ascend.com>
64595 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64596 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
64597 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64598 instead of jm_TYPE_SSIZE_T.
64600 1998-08-12 Jim Meyering <meyering@ascend.com>
64602 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
64604 1998-08-02 Jim Meyering <meyering@ascend.com>
64606 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64607 in acconfig.h manually.
64609 1998-07-31 Paul Eggert <eggert@twinsun.com>
64611 * m4/st_mtim.m4: New file.
64613 1998-07-28 Jim Meyering <meyering@ascend.com>
64615 * m4/utimes.m4: Undef stat.
64617 1998-07-25 Jim Meyering <meyering@ascend.com>
64619 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64620 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64622 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
64624 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64625 uid and gid actually remain unchanged.
64627 1998-07-07 Jim Meyering <meyering@ascend.com>
64629 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64631 1998-07-04 Jim Meyering <meyering@ascend.com>
64633 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
64634 to prove that this macro can be used in packages without regex.c.
64636 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
64638 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64641 1998-07-03 Jim Meyering <meyering@ascend.com>
64643 * m4/gettext.m4: Add -lintl if it's found to be necessary.
64645 * m4/gettext.m4: New file -- from gettext-0.10.35.
64646 * m4/lcmessage.m4: Likewise.
64647 * m4/progtest.m4: Likewise.
64649 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64650 * m4/jm-macros.m4: Require the new macro.
64652 1998-06-29 Jim Meyering <meyering@ascend.com>
64654 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
64655 for the definition of NGROUPS (used in a system header included
64658 1998-06-28 Jim Meyering <meyering@ascend.com>
64660 * m4/ls-mntd-fs.m4: New file.
64661 * m4/fstypename.m4: New file.
64663 * m4/jm-macros.m4: Require the new macro.
64664 * m4/jm-glibc-io.m4: New file.
64666 1998-05-19 Jim Meyering <meyering@ascend.com>
64668 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64669 * m4/lchown.m4: New file.
64671 * m4/Makefile.am.in: New file.
64672 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64674 1998-05-14 Jim Meyering <meyering@ascend.com>
64676 * m4/Makefile.am (EXTRA_DIST): Add them.
64677 * m4/jm-macros.m4: New file.
64678 * m4/utimbuf.m4: New file.
64680 1998-05-12 Jim Meyering <meyering@ascend.com>
64682 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64684 1998-05-11 Jim Meyering <meyering@ascend.com>
64686 * m4/isc-posix.m4: New file.
64688 1998-05-10 Jim Meyering <meyering@ascend.com>
64690 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64692 1998-05-09 Jim Meyering <meyering@ascend.com>
64694 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64695 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64698 * m4/ssize_t.m4: New file.
64699 * m4/mktime.m4: Remove file -- the new automake has this now.
64701 1998-04-26 Jim Meyering <meyering@ascend.com>
64703 * m4/assert.m4: New file.
64704 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64706 1998-04-05 Jim Meyering <meyering@ascend.com>
64708 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64709 (jm_PREREQ): Use it here.
64711 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
64713 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64716 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
64718 * m4/prereq.m4: New file.
64719 * m4/error.m4: New file.
64720 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64722 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
64724 * m4/getline.m4: Don't set am_cv_func_working_getline before the
64725 cache-check for the same variable -- that defeated the purpose of
64726 the test; the test program was never run. This was a problem only
64727 on systems with losing getline functions -- HP-UX 10.20 is one.
64728 Reported by Bjorn Helgaas.
64730 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
64732 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64734 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
64736 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64738 * m4/const.m4: New file. Use an initializer in this declaration
64739 typedef int charset[2]; const charset x;
64740 Reported by Bob Glickstein.
64742 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
64744 * m4/chown.m4: Fix reversed types on -1 args to chown.
64747 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
64749 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64750 Add lseek and memchr.
64752 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64753 T.E.Dickey <dickey@clark.net> said that some older preprocessors
64754 have a 20-character limit on names.
64756 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
64758 * m4/inttypes_h.m4: New file.
64759 * m4/uintmax_t.m4: New file.
64760 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64769 Copyright (C) 1997-2010 Free Software Foundation, Inc.
64771 Copying and distribution of this file, with or without
64772 modification, are permitted provided the copyright notice
64773 and this notice are preserved.